@civet/core 2.1.2 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createContext as xe, useContext as Ae, useMemo as se, useReducer as qe, useState as Pe, useEffect as de, useCallback as Le } from "react";
1
+ import { createContext as xe, useContext as Ae, useMemo as se, useReducer as Ce, useState as Pe, useEffect as de, useCallback as Le } from "react";
2
2
  import { jsx as ue } from "react/jsx-runtime";
3
3
  const ae = xe({});
4
4
  ae.displayName = "ConfigContext";
@@ -123,21 +123,21 @@ function De() {
123
123
  if (s === u) return !0;
124
124
  if (s && u && typeof s == "object" && typeof u == "object") {
125
125
  if (s.constructor !== u.constructor) return !1;
126
- var p, y, g;
126
+ var p, g, y;
127
127
  if (Array.isArray(s)) {
128
128
  if (p = s.length, p != u.length) return !1;
129
- for (y = p; y-- !== 0; )
130
- if (!h(s[y], u[y])) return !1;
129
+ for (g = p; g-- !== 0; )
130
+ if (!h(s[g], u[g])) return !1;
131
131
  return !0;
132
132
  }
133
133
  if (s.constructor === RegExp) return s.source === u.source && s.flags === u.flags;
134
134
  if (s.valueOf !== Object.prototype.valueOf) return s.valueOf() === u.valueOf();
135
135
  if (s.toString !== Object.prototype.toString) return s.toString() === u.toString();
136
- if (g = Object.keys(s), p = g.length, p !== Object.keys(u).length) return !1;
137
- for (y = p; y-- !== 0; )
138
- if (!Object.prototype.hasOwnProperty.call(u, g[y])) return !1;
139
- for (y = p; y-- !== 0; ) {
140
- var B = g[y];
136
+ if (y = Object.keys(s), p = y.length, p !== Object.keys(u).length) return !1;
137
+ for (g = p; g-- !== 0; )
138
+ if (!Object.prototype.hasOwnProperty.call(u, y[g])) return !1;
139
+ for (g = p; g-- !== 0; ) {
140
+ var B = y[g];
141
141
  if (!h(s[B], u[B])) return !1;
142
142
  }
143
143
  return !0;
@@ -145,8 +145,8 @@ function De() {
145
145
  return s !== s && u !== u;
146
146
  }), he;
147
147
  }
148
- var Oe = De();
149
- const Re = /* @__PURE__ */ Se(Oe);
148
+ var Re = De();
149
+ const Oe = /* @__PURE__ */ Se(Re);
150
150
  function ie(h) {
151
151
  throw new Error('Could not dynamically require "' + h + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
152
152
  }
@@ -156,39 +156,39 @@ function Ne() {
156
156
  (function(u) {
157
157
  h.exports = u();
158
158
  })(function() {
159
- return (function u(p, y, g) {
159
+ return (function u(p, g, y) {
160
160
  function B(q, M) {
161
- if (!y[q]) {
161
+ if (!g[q]) {
162
162
  if (!p[q]) {
163
163
  var N = typeof ie == "function" && ie;
164
164
  if (!M && N) return N(q, !0);
165
165
  if (k) return k(q, !0);
166
166
  throw new Error("Cannot find module '" + q + "'");
167
167
  }
168
- M = y[q] = { exports: {} }, p[q][0].call(M.exports, function(R) {
169
- var T = p[q][1][R];
170
- return B(T || R);
171
- }, M, M.exports, u, p, y, g);
168
+ M = g[q] = { exports: {} }, p[q][0].call(M.exports, function(O) {
169
+ var F = p[q][1][O];
170
+ return B(F || O);
171
+ }, M, M.exports, u, p, g, y);
172
172
  }
173
- return y[q].exports;
173
+ return g[q].exports;
174
174
  }
175
- for (var k = typeof ie == "function" && ie, D = 0; D < g.length; D++) B(g[D]);
175
+ for (var k = typeof ie == "function" && ie, U = 0; U < y.length; U++) B(y[U]);
176
176
  return B;
177
- })({ 1: [function(u, p, y) {
178
- (function(g, B, k, D, q, M, N, R, T) {
177
+ })({ 1: [function(u, p, g) {
178
+ (function(y, B, k, U, q, M, N, O, F) {
179
179
  var E = u("crypto");
180
180
  function S(a, d) {
181
181
  d = A(a, d);
182
182
  var r;
183
183
  return (r = d.algorithm !== "passthrough" ? E.createHash(d.algorithm) : new C()).write === void 0 && (r.write = r.update, r.end = r.update), v(d, r).dispatch(a), r.update || r.end(""), r.digest ? r.digest(d.encoding === "buffer" ? void 0 : d.encoding) : (a = r.read(), d.encoding !== "buffer" ? a.toString(d.encoding) : a);
184
184
  }
185
- (y = p.exports = S).sha1 = function(a) {
185
+ (g = p.exports = S).sha1 = function(a) {
186
186
  return S(a);
187
- }, y.keys = function(a) {
187
+ }, g.keys = function(a) {
188
188
  return S(a, { excludeValues: !0, algorithm: "sha1", encoding: "hex" });
189
- }, y.MD5 = function(a) {
189
+ }, g.MD5 = function(a) {
190
190
  return S(a, { algorithm: "md5", encoding: "hex" });
191
- }, y.keysMD5 = function(a) {
191
+ }, g.keysMD5 = function(a) {
192
192
  return S(a, { algorithm: "md5", encoding: "hex", excludeValues: !0 });
193
193
  };
194
194
  var c = E.getHashes ? E.getHashes().slice() : ["sha1", "md5"], b = (c.push("passthrough"), ["buffer", "hex", "binary", "base64"]);
@@ -227,12 +227,12 @@ function Ne() {
227
227
  }, _array: function(t, L) {
228
228
  L = L !== void 0 ? L : a.unorderedArrays !== !1;
229
229
  var l = this;
230
- if (o("array:" + t.length + ":"), !L || t.length <= 1) return t.forEach(function(U) {
231
- return l.dispatch(U);
230
+ if (o("array:" + t.length + ":"), !L || t.length <= 1) return t.forEach(function(D) {
231
+ return l.dispatch(D);
232
232
  });
233
- var P = [], L = t.map(function(U) {
233
+ var P = [], L = t.map(function(D) {
234
234
  var j = new C(), Y = r.slice();
235
- return v(a, j, Y).dispatch(U), P = P.concat(Y.slice(r.length)), j.read().toString();
235
+ return v(a, j, Y).dispatch(D), P = P.concat(Y.slice(r.length)), j.read().toString();
236
236
  });
237
237
  return r = r.concat(P), L.sort(), this._array(L, !1);
238
238
  }, _date: function(t) {
@@ -340,12 +340,12 @@ Use "options.replacer" or "options.ignoreUnknown"
340
340
  return this.buf;
341
341
  } };
342
342
  }
343
- y.writeToStream = function(a, d, r) {
343
+ g.writeToStream = function(a, d, r) {
344
344
  return r === void 0 && (r = d, d = {}), v(d = A(a, d), r).dispatch(a);
345
345
  };
346
346
  }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/fake_9a5aa49d.js", "/");
347
- }, { buffer: 3, crypto: 5, lYpoI2: 11 }], 2: [function(u, p, y) {
348
- (function(g, B, k, D, q, M, N, R, T) {
347
+ }, { buffer: 3, crypto: 5, lYpoI2: 11 }], 2: [function(u, p, g) {
348
+ (function(y, B, k, U, q, M, N, O, F) {
349
349
  (function(E) {
350
350
  var S = typeof Uint8Array < "u" ? Uint8Array : Array, c = 43, b = 47, A = 48, _ = 97, v = 65, C = 45, a = 95;
351
351
  function d(r) {
@@ -355,57 +355,57 @@ Use "options.replacer" or "options.ignoreUnknown"
355
355
  var o, t;
356
356
  if (0 < r.length % 4) throw new Error("Invalid string. Length must be a multiple of 4");
357
357
  var f = r.length, f = r.charAt(f - 2) === "=" ? 2 : r.charAt(f - 1) === "=" ? 1 : 0, l = new S(3 * r.length / 4 - f), P = 0 < f ? r.length - 4 : r.length, L = 0;
358
- function U(j) {
358
+ function D(j) {
359
359
  l[L++] = j;
360
360
  }
361
- for (o = 0; o < P; o += 4, 0) U((16711680 & (t = d(r.charAt(o)) << 18 | d(r.charAt(o + 1)) << 12 | d(r.charAt(o + 2)) << 6 | d(r.charAt(o + 3)))) >> 16), U((65280 & t) >> 8), U(255 & t);
362
- return f == 2 ? U(255 & (t = d(r.charAt(o)) << 2 | d(r.charAt(o + 1)) >> 4)) : f == 1 && (U((t = d(r.charAt(o)) << 10 | d(r.charAt(o + 1)) << 4 | d(r.charAt(o + 2)) >> 2) >> 8 & 255), U(255 & t)), l;
361
+ for (o = 0; o < P; o += 4, 0) D((16711680 & (t = d(r.charAt(o)) << 18 | d(r.charAt(o + 1)) << 12 | d(r.charAt(o + 2)) << 6 | d(r.charAt(o + 3)))) >> 16), D((65280 & t) >> 8), D(255 & t);
362
+ return f == 2 ? D(255 & (t = d(r.charAt(o)) << 2 | d(r.charAt(o + 1)) >> 4)) : f == 1 && (D((t = d(r.charAt(o)) << 10 | d(r.charAt(o + 1)) << 4 | d(r.charAt(o + 2)) >> 2) >> 8 & 255), D(255 & t)), l;
363
363
  }, E.fromByteArray = function(r) {
364
364
  var o, t, f, l, P = r.length % 3, L = "";
365
- function U(j) {
365
+ function D(j) {
366
366
  return "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(j);
367
367
  }
368
- for (o = 0, f = r.length - P; o < f; o += 3) t = (r[o] << 16) + (r[o + 1] << 8) + r[o + 2], L += U((l = t) >> 18 & 63) + U(l >> 12 & 63) + U(l >> 6 & 63) + U(63 & l);
368
+ for (o = 0, f = r.length - P; o < f; o += 3) t = (r[o] << 16) + (r[o + 1] << 8) + r[o + 2], L += D((l = t) >> 18 & 63) + D(l >> 12 & 63) + D(l >> 6 & 63) + D(63 & l);
369
369
  switch (P) {
370
370
  case 1:
371
- L = (L += U((t = r[r.length - 1]) >> 2)) + U(t << 4 & 63) + "==";
371
+ L = (L += D((t = r[r.length - 1]) >> 2)) + D(t << 4 & 63) + "==";
372
372
  break;
373
373
  case 2:
374
- L = (L = (L += U((t = (r[r.length - 2] << 8) + r[r.length - 1]) >> 10)) + U(t >> 4 & 63)) + U(t << 2 & 63) + "=";
374
+ L = (L = (L += D((t = (r[r.length - 2] << 8) + r[r.length - 1]) >> 10)) + D(t >> 4 & 63)) + D(t << 2 & 63) + "=";
375
375
  }
376
376
  return L;
377
377
  };
378
- })(y === void 0 ? this.base64js = {} : y);
378
+ })(g === void 0 ? this.base64js = {} : g);
379
379
  }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js", "/node_modules/gulp-browserify/node_modules/base64-js/lib");
380
- }, { buffer: 3, lYpoI2: 11 }], 3: [function(u, p, y) {
381
- (function(g, B, c, D, q, M, N, R, T) {
380
+ }, { buffer: 3, lYpoI2: 11 }], 3: [function(u, p, g) {
381
+ (function(y, B, c, U, q, M, N, O, F) {
382
382
  var E = u("base64-js"), S = u("ieee754");
383
383
  function c(e, n, i) {
384
384
  if (!(this instanceof c)) return new c(e, n, i);
385
- var w, m, x, O, $ = typeof e;
386
- if (n === "base64" && $ == "string") for (e = (O = e).trim ? O.trim() : O.replace(/^\s+|\s+$/g, ""); e.length % 4 != 0; ) e += "=";
387
- if ($ == "number") w = J(e);
388
- else if ($ == "string") w = c.byteLength(e, n);
385
+ var w, m, x, R, V = typeof e;
386
+ if (n === "base64" && V == "string") for (e = (R = e).trim ? R.trim() : R.replace(/^\s+|\s+$/g, ""); e.length % 4 != 0; ) e += "=";
387
+ if (V == "number") w = J(e);
388
+ else if (V == "string") w = c.byteLength(e, n);
389
389
  else {
390
- if ($ != "object") throw new Error("First argument needs to be a number, array or string.");
390
+ if (V != "object") throw new Error("First argument needs to be a number, array or string.");
391
391
  w = J(e.length);
392
392
  }
393
393
  if (c._useTypedArrays ? m = c._augment(new Uint8Array(w)) : ((m = this).length = w, m._isBuffer = !0), c._useTypedArrays && typeof e.byteLength == "number") m._set(e);
394
- else if (V(O = e) || c.isBuffer(O) || O && typeof O == "object" && typeof O.length == "number") for (x = 0; x < w; x++) c.isBuffer(e) ? m[x] = e.readUInt8(x) : m[x] = e[x];
395
- else if ($ == "string") m.write(e, 0, n);
396
- else if ($ == "number" && !c._useTypedArrays && !i) for (x = 0; x < w; x++) m[x] = 0;
394
+ else if ($(R = e) || c.isBuffer(R) || R && typeof R == "object" && typeof R.length == "number") for (x = 0; x < w; x++) c.isBuffer(e) ? m[x] = e.readUInt8(x) : m[x] = e[x];
395
+ else if (V == "string") m.write(e, 0, n);
396
+ else if (V == "number" && !c._useTypedArrays && !i) for (x = 0; x < w; x++) m[x] = 0;
397
397
  return m;
398
398
  }
399
399
  function b(e, n, i, w) {
400
400
  return c._charsWritten = oe((function(m) {
401
- for (var x = [], O = 0; O < m.length; O++) x.push(255 & m.charCodeAt(O));
401
+ for (var x = [], R = 0; R < m.length; R++) x.push(255 & m.charCodeAt(R));
402
402
  return x;
403
403
  })(n), e, i, w);
404
404
  }
405
405
  function A(e, n, i, w) {
406
406
  return c._charsWritten = oe((function(m) {
407
- for (var x, O, $ = [], H = 0; H < m.length; H++) O = m.charCodeAt(H), x = O >> 8, O = O % 256, $.push(O), $.push(x);
408
- return $;
407
+ for (var x, R, V = [], G = 0; G < m.length; G++) R = m.charCodeAt(G), x = R >> 8, R = R % 256, V.push(R), V.push(x);
408
+ return V;
409
409
  })(n), e, i, w);
410
410
  }
411
411
  function _(e, n, i) {
@@ -437,10 +437,10 @@ Use "options.replacer" or "options.ignoreUnknown"
437
437
  return w || (I(typeof i == "boolean", "missing or invalid endian"), I(n + 7 < e.length, "Trying to read beyond buffer length")), S.read(e, n, i, 52, 8);
438
438
  }
439
439
  function t(e, n, i, w, m) {
440
- if (m || (I(n != null, "missing value"), I(typeof w == "boolean", "missing or invalid endian"), I(i != null, "missing offset"), I(i + 1 < e.length, "trying to write beyond buffer length"), le(n, 65535)), m = e.length, !(m <= i)) for (var x = 0, O = Math.min(m - i, 2); x < O; x++) e[i + x] = (n & 255 << 8 * (w ? x : 1 - x)) >>> 8 * (w ? x : 1 - x);
440
+ if (m || (I(n != null, "missing value"), I(typeof w == "boolean", "missing or invalid endian"), I(i != null, "missing offset"), I(i + 1 < e.length, "trying to write beyond buffer length"), le(n, 65535)), m = e.length, !(m <= i)) for (var x = 0, R = Math.min(m - i, 2); x < R; x++) e[i + x] = (n & 255 << 8 * (w ? x : 1 - x)) >>> 8 * (w ? x : 1 - x);
441
441
  }
442
442
  function f(e, n, i, w, m) {
443
- if (m || (I(n != null, "missing value"), I(typeof w == "boolean", "missing or invalid endian"), I(i != null, "missing offset"), I(i + 3 < e.length, "trying to write beyond buffer length"), le(n, 4294967295)), m = e.length, !(m <= i)) for (var x = 0, O = Math.min(m - i, 4); x < O; x++) e[i + x] = n >>> 8 * (w ? x : 3 - x) & 255;
443
+ if (m || (I(n != null, "missing value"), I(typeof w == "boolean", "missing or invalid endian"), I(i != null, "missing offset"), I(i + 3 < e.length, "trying to write beyond buffer length"), le(n, 4294967295)), m = e.length, !(m <= i)) for (var x = 0, R = Math.min(m - i, 4); x < R; x++) e[i + x] = n >>> 8 * (w ? x : 3 - x) & 255;
444
444
  }
445
445
  function l(e, n, i, w, m) {
446
446
  m || (I(n != null, "missing value"), I(typeof w == "boolean", "missing or invalid endian"), I(i != null, "missing offset"), I(i + 1 < e.length, "Trying to write beyond buffer length"), ce(n, 32767, -32768)), e.length <= i || t(e, 0 <= n ? n : 65535 + n + 1, i, w, m);
@@ -451,10 +451,10 @@ Use "options.replacer" or "options.ignoreUnknown"
451
451
  function L(e, n, i, w, m) {
452
452
  m || (I(n != null, "missing value"), I(typeof w == "boolean", "missing or invalid endian"), I(i != null, "missing offset"), I(i + 3 < e.length, "Trying to write beyond buffer length"), ve(n, 34028234663852886e22, -34028234663852886e22)), e.length <= i || S.write(e, n, i, w, 23, 4);
453
453
  }
454
- function U(e, n, i, w, m) {
454
+ function D(e, n, i, w, m) {
455
455
  m || (I(n != null, "missing value"), I(typeof w == "boolean", "missing or invalid endian"), I(i != null, "missing offset"), I(i + 7 < e.length, "Trying to write beyond buffer length"), ve(n, 17976931348623157e292, -17976931348623157e292)), e.length <= i || S.write(e, n, i, w, 52, 8);
456
456
  }
457
- y.Buffer = c, y.SlowBuffer = c, y.INSPECT_MAX_BYTES = 50, c.poolSize = 8192, c._useTypedArrays = (function() {
457
+ g.Buffer = c, g.SlowBuffer = c, g.INSPECT_MAX_BYTES = 50, c.poolSize = 8192, c._useTypedArrays = (function() {
458
458
  try {
459
459
  var e = new ArrayBuffer(0), n = new Uint8Array(e);
460
460
  return n.foo = function() {
@@ -511,7 +511,7 @@ Use "options.replacer" or "options.ignoreUnknown"
511
511
  }
512
512
  return i;
513
513
  }, c.concat = function(e, n) {
514
- if (I(V(e), `Usage: Buffer.concat(list, [totalLength])
514
+ if (I($(e), `Usage: Buffer.concat(list, [totalLength])
515
515
  list should be an Array.`), e.length === 0) return new c(0);
516
516
  if (e.length === 1) return e[0];
517
517
  if (typeof n != "number") for (m = n = 0; m < e.length; m++) n += e[m].length;
@@ -521,15 +521,15 @@ list should be an Array.`), e.length === 0) return new c(0);
521
521
  }
522
522
  return i;
523
523
  }, c.prototype.write = function(e, n, i, w) {
524
- isFinite(n) ? isFinite(i) || (w = i, i = void 0) : (H = w, w = n, n = i, i = H), n = Number(n) || 0;
525
- var m, x, O, $, H = this.length - n;
526
- switch ((!i || H < (i = Number(i))) && (i = H), w = String(w || "utf8").toLowerCase()) {
524
+ isFinite(n) ? isFinite(i) || (w = i, i = void 0) : (G = w, w = n, n = i, i = G), n = Number(n) || 0;
525
+ var m, x, R, V, G = this.length - n;
526
+ switch ((!i || G < (i = Number(i))) && (i = G), w = String(w || "utf8").toLowerCase()) {
527
527
  case "hex":
528
- m = (function(Q, K, X, G) {
528
+ m = (function(Q, K, X, H) {
529
529
  X = Number(X) || 0;
530
530
  var z = Q.length - X;
531
- (!G || z < (G = Number(G))) && (G = z), I((z = K.length) % 2 == 0, "Invalid hex string"), z / 2 < G && (G = z / 2);
532
- for (var ee = 0; ee < G; ee++) {
531
+ (!H || z < (H = Number(H))) && (H = z), I((z = K.length) % 2 == 0, "Invalid hex string"), z / 2 < H && (H = z / 2);
532
+ for (var ee = 0; ee < H; ee++) {
533
533
  var _e = parseInt(K.substr(2 * ee, 2), 16);
534
534
  I(!isNaN(_e), "Invalid hex string"), Q[X + ee] = _e;
535
535
  }
@@ -538,14 +538,14 @@ list should be an Array.`), e.length === 0) return new c(0);
538
538
  break;
539
539
  case "utf8":
540
540
  case "utf-8":
541
- x = this, O = n, $ = i, m = c._charsWritten = oe(Z(e), x, O, $);
541
+ x = this, R = n, V = i, m = c._charsWritten = oe(Z(e), x, R, V);
542
542
  break;
543
543
  case "ascii":
544
544
  case "binary":
545
545
  m = b(this, e, n, i);
546
546
  break;
547
547
  case "base64":
548
- x = this, O = n, $ = i, m = c._charsWritten = oe(we(e), x, O, $);
548
+ x = this, R = n, V = i, m = c._charsWritten = oe(we(e), x, R, V);
549
549
  break;
550
550
  case "ucs2":
551
551
  case "ucs-2":
@@ -558,41 +558,41 @@ list should be an Array.`), e.length === 0) return new c(0);
558
558
  }
559
559
  return m;
560
560
  }, c.prototype.toString = function(e, n, i) {
561
- var w, m, x, O, $ = this;
562
- if (e = String(e || "utf8").toLowerCase(), n = Number(n) || 0, (i = i !== void 0 ? Number(i) : $.length) === n) return "";
561
+ var w, m, x, R, V = this;
562
+ if (e = String(e || "utf8").toLowerCase(), n = Number(n) || 0, (i = i !== void 0 ? Number(i) : V.length) === n) return "";
563
563
  switch (e) {
564
564
  case "hex":
565
- w = (function(H, Q, K) {
566
- var X = H.length;
565
+ w = (function(G, Q, K) {
566
+ var X = G.length;
567
567
  (!Q || Q < 0) && (Q = 0), (!K || K < 0 || X < K) && (K = X);
568
- for (var G = "", z = Q; z < K; z++) G += F(H[z]);
569
- return G;
570
- })($, n, i);
568
+ for (var H = "", z = Q; z < K; z++) H += T(G[z]);
569
+ return H;
570
+ })(V, n, i);
571
571
  break;
572
572
  case "utf8":
573
573
  case "utf-8":
574
- w = (function(H, Q, K) {
575
- var X = "", G = "";
576
- K = Math.min(H.length, K);
577
- for (var z = Q; z < K; z++) H[z] <= 127 ? (X += be(G) + String.fromCharCode(H[z]), G = "") : G += "%" + H[z].toString(16);
578
- return X + be(G);
579
- })($, n, i);
574
+ w = (function(G, Q, K) {
575
+ var X = "", H = "";
576
+ K = Math.min(G.length, K);
577
+ for (var z = Q; z < K; z++) G[z] <= 127 ? (X += be(H) + String.fromCharCode(G[z]), H = "") : H += "%" + G[z].toString(16);
578
+ return X + be(H);
579
+ })(V, n, i);
580
580
  break;
581
581
  case "ascii":
582
582
  case "binary":
583
- w = _($, n, i);
583
+ w = _(V, n, i);
584
584
  break;
585
585
  case "base64":
586
- m = $, O = i, w = (x = n) === 0 && O === m.length ? E.fromByteArray(m) : E.fromByteArray(m.slice(x, O));
586
+ m = V, R = i, w = (x = n) === 0 && R === m.length ? E.fromByteArray(m) : E.fromByteArray(m.slice(x, R));
587
587
  break;
588
588
  case "ucs2":
589
589
  case "ucs-2":
590
590
  case "utf16le":
591
591
  case "utf-16le":
592
- w = (function(H, Q, K) {
593
- for (var X = H.slice(Q, K), G = "", z = 0; z < X.length; z += 2) G += String.fromCharCode(X[z] + 256 * X[z + 1]);
594
- return G;
595
- })($, n, i);
592
+ w = (function(G, Q, K) {
593
+ for (var X = G.slice(Q, K), H = "", z = 0; z < X.length; z += 2) H += String.fromCharCode(X[z] + 256 * X[z + 1]);
594
+ return H;
595
+ })(V, n, i);
596
596
  break;
597
597
  default:
598
598
  throw new Error("Unknown encoding");
@@ -669,16 +669,16 @@ list should be an Array.`), e.length === 0) return new c(0);
669
669
  }, c.prototype.writeFloatBE = function(e, n, i) {
670
670
  L(this, e, n, !1, i);
671
671
  }, c.prototype.writeDoubleLE = function(e, n, i) {
672
- U(this, e, n, !0, i);
672
+ D(this, e, n, !0, i);
673
673
  }, c.prototype.writeDoubleBE = function(e, n, i) {
674
- U(this, e, n, !1, i);
674
+ D(this, e, n, !1, i);
675
675
  }, c.prototype.fill = function(e, n, i) {
676
676
  if (n = n || 0, i = i || this.length, I(typeof (e = typeof (e = e || 0) == "string" ? e.charCodeAt(0) : e) == "number" && !isNaN(e), "value is not a number"), I(n <= i, "end < start"), i !== n && this.length !== 0) {
677
677
  I(0 <= n && n < this.length, "start out of bounds"), I(0 <= i && i <= this.length, "end out of bounds");
678
678
  for (var w = n; w < i; w++) this[w] = e;
679
679
  }
680
680
  }, c.prototype.inspect = function() {
681
- for (var e = [], n = this.length, i = 0; i < n; i++) if (e[i] = F(this[i]), i === y.INSPECT_MAX_BYTES) {
681
+ for (var e = [], n = this.length, i = 0; i < n; i++) if (e[i] = T(this[i]), i === g.INSPECT_MAX_BYTES) {
682
682
  e[i + 1] = "...";
683
683
  break;
684
684
  }
@@ -696,19 +696,19 @@ list should be an Array.`), e.length === 0) return new c(0);
696
696
  function J(e) {
697
697
  return (e = ~~Math.ceil(+e)) < 0 ? 0 : e;
698
698
  }
699
- function V(e) {
699
+ function $(e) {
700
700
  return (Array.isArray || function(n) {
701
701
  return Object.prototype.toString.call(n) === "[object Array]";
702
702
  })(e);
703
703
  }
704
- function F(e) {
704
+ function T(e) {
705
705
  return e < 16 ? "0" + e.toString(16) : e.toString(16);
706
706
  }
707
707
  function Z(e) {
708
708
  for (var n = [], i = 0; i < e.length; i++) {
709
709
  var w = e.charCodeAt(i);
710
710
  if (w <= 127) n.push(e.charCodeAt(i));
711
- else for (var m = i, x = (55296 <= w && w <= 57343 && i++, encodeURIComponent(e.slice(m, i + 1)).substr(1).split("%")), O = 0; O < x.length; O++) n.push(parseInt(x[O], 16));
711
+ else for (var m = i, x = (55296 <= w && w <= 57343 && i++, encodeURIComponent(e.slice(m, i + 1)).substr(1).split("%")), R = 0; R < x.length; R++) n.push(parseInt(x[R], 16));
712
712
  }
713
713
  return n;
714
714
  }
@@ -742,32 +742,32 @@ list should be an Array.`), e.length === 0) return new c(0);
742
742
  return e._isBuffer = !0, e._get = e.get, e._set = e.set, e.get = j.get, e.set = j.set, e.write = j.write, e.toString = j.toString, e.toLocaleString = j.toString, e.toJSON = j.toJSON, e.copy = j.copy, e.slice = j.slice, e.readUInt8 = j.readUInt8, e.readUInt16LE = j.readUInt16LE, e.readUInt16BE = j.readUInt16BE, e.readUInt32LE = j.readUInt32LE, e.readUInt32BE = j.readUInt32BE, e.readInt8 = j.readInt8, e.readInt16LE = j.readInt16LE, e.readInt16BE = j.readInt16BE, e.readInt32LE = j.readInt32LE, e.readInt32BE = j.readInt32BE, e.readFloatLE = j.readFloatLE, e.readFloatBE = j.readFloatBE, e.readDoubleLE = j.readDoubleLE, e.readDoubleBE = j.readDoubleBE, e.writeUInt8 = j.writeUInt8, e.writeUInt16LE = j.writeUInt16LE, e.writeUInt16BE = j.writeUInt16BE, e.writeUInt32LE = j.writeUInt32LE, e.writeUInt32BE = j.writeUInt32BE, e.writeInt8 = j.writeInt8, e.writeInt16LE = j.writeInt16LE, e.writeInt16BE = j.writeInt16BE, e.writeInt32LE = j.writeInt32LE, e.writeInt32BE = j.writeInt32BE, e.writeFloatLE = j.writeFloatLE, e.writeFloatBE = j.writeFloatBE, e.writeDoubleLE = j.writeDoubleLE, e.writeDoubleBE = j.writeDoubleBE, e.fill = j.fill, e.inspect = j.inspect, e.toArrayBuffer = j.toArrayBuffer, e;
743
743
  };
744
744
  }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/buffer/index.js", "/node_modules/gulp-browserify/node_modules/buffer");
745
- }, { "base64-js": 2, buffer: 3, ieee754: 10, lYpoI2: 11 }], 4: [function(u, p, y) {
746
- (function(g, B, E, D, q, M, N, R, T) {
745
+ }, { "base64-js": 2, buffer: 3, ieee754: 10, lYpoI2: 11 }], 4: [function(u, p, g) {
746
+ (function(y, B, E, U, q, M, N, O, F) {
747
747
  var E = u("buffer").Buffer, S = 4, c = new E(S);
748
748
  c.fill(0), p.exports = { hash: function(b, A, _, v) {
749
749
  for (var C = A((function(t, f) {
750
750
  t.length % S != 0 && (l = t.length + (S - t.length % S), t = E.concat([t, c], l));
751
- for (var l, P = [], L = f ? t.readInt32BE : t.readInt32LE, U = 0; U < t.length; U += S) P.push(L.call(t, U));
751
+ for (var l, P = [], L = f ? t.readInt32BE : t.readInt32LE, D = 0; D < t.length; D += S) P.push(L.call(t, D));
752
752
  return P;
753
753
  })(b = E.isBuffer(b) ? b : new E(b), v), 8 * b.length), A = v, a = new E(_), d = A ? a.writeInt32BE : a.writeInt32LE, r = 0; r < C.length; r++) d.call(a, C[r], 4 * r, !0);
754
754
  return a;
755
755
  } };
756
756
  }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
757
- }, { buffer: 3, lYpoI2: 11 }], 5: [function(u, p, y) {
758
- (function(g, B, E, D, q, M, N, R, T) {
757
+ }, { buffer: 3, lYpoI2: 11 }], 5: [function(u, p, g) {
758
+ (function(y, B, E, U, q, M, N, O, F) {
759
759
  var E = u("buffer").Buffer, S = u("./sha"), c = u("./sha256"), b = u("./rng"), A = { sha1: S, sha256: c, md5: u("./md5") }, _ = 64, v = new E(_);
760
760
  function C(t, f) {
761
761
  var l = A[t = t || "sha1"], P = [];
762
762
  return l || a("algorithm:", t, "is not yet supported"), { update: function(L) {
763
763
  return E.isBuffer(L) || (L = new E(L)), P.push(L), L.length, this;
764
764
  }, digest: function(L) {
765
- var U = E.concat(P), U = f ? (function(j, Y, J) {
765
+ var D = E.concat(P), D = f ? (function(j, Y, J) {
766
766
  E.isBuffer(Y) || (Y = new E(Y)), E.isBuffer(J) || (J = new E(J)), Y.length > _ ? Y = j(Y) : Y.length < _ && (Y = E.concat([Y, v], _));
767
- for (var V = new E(_), F = new E(_), Z = 0; Z < _; Z++) V[Z] = 54 ^ Y[Z], F[Z] = 92 ^ Y[Z];
768
- return J = j(E.concat([V, J])), j(E.concat([F, J]));
769
- })(l, f, U) : l(U);
770
- return P = null, L ? U.toString(L) : U;
767
+ for (var $ = new E(_), T = new E(_), Z = 0; Z < _; Z++) $[Z] = 54 ^ Y[Z], T[Z] = 92 ^ Y[Z];
768
+ return J = j(E.concat([$, J])), j(E.concat([T, J]));
769
+ })(l, f, D) : l(D);
770
+ return P = null, L ? D.toString(L) : D;
771
771
  } };
772
772
  }
773
773
  function a() {
@@ -775,9 +775,9 @@ list should be an Array.`), e.length === 0) return new c(0);
775
775
  throw new Error([t, "we accept pull requests", "http://github.com/dominictarr/crypto-browserify"].join(`
776
776
  `));
777
777
  }
778
- v.fill(0), y.createHash = function(t) {
778
+ v.fill(0), g.createHash = function(t) {
779
779
  return C(t);
780
- }, y.createHmac = C, y.randomBytes = function(t, f) {
780
+ }, g.createHmac = C, g.randomBytes = function(t, f) {
781
781
  if (!f || !f.call) return new E(b(t));
782
782
  try {
783
783
  f.call(this, void 0, new E(b(t)));
@@ -786,20 +786,20 @@ list should be an Array.`), e.length === 0) return new c(0);
786
786
  }
787
787
  };
788
788
  var d, r = ["createCredentials", "createCipher", "createCipheriv", "createDecipher", "createDecipheriv", "createSign", "createVerify", "createDiffieHellman", "pbkdf2"], o = function(t) {
789
- y[t] = function() {
789
+ g[t] = function() {
790
790
  a("sorry,", t, "is not implemented yet");
791
791
  };
792
792
  };
793
793
  for (d in r) o(r[d]);
794
794
  }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
795
- }, { "./md5": 6, "./rng": 7, "./sha": 8, "./sha256": 9, buffer: 3, lYpoI2: 11 }], 6: [function(u, p, y) {
796
- (function(g, B, k, D, q, M, N, R, T) {
795
+ }, { "./md5": 6, "./rng": 7, "./sha": 8, "./sha256": 9, buffer: 3, lYpoI2: 11 }], 6: [function(u, p, g) {
796
+ (function(y, B, k, U, q, M, N, O, F) {
797
797
  var E = u("./helpers");
798
798
  function S(a, d) {
799
799
  a[d >> 5] |= 128 << d % 32, a[14 + (d + 64 >>> 9 << 4)] = d;
800
800
  for (var r = 1732584193, o = -271733879, t = -1732584194, f = 271733878, l = 0; l < a.length; l += 16) {
801
- var P = r, L = o, U = t, j = f, r = b(r, o, t, f, a[l + 0], 7, -680876936), f = b(f, r, o, t, a[l + 1], 12, -389564586), t = b(t, f, r, o, a[l + 2], 17, 606105819), o = b(o, t, f, r, a[l + 3], 22, -1044525330);
802
- r = b(r, o, t, f, a[l + 4], 7, -176418897), f = b(f, r, o, t, a[l + 5], 12, 1200080426), t = b(t, f, r, o, a[l + 6], 17, -1473231341), o = b(o, t, f, r, a[l + 7], 22, -45705983), r = b(r, o, t, f, a[l + 8], 7, 1770035416), f = b(f, r, o, t, a[l + 9], 12, -1958414417), t = b(t, f, r, o, a[l + 10], 17, -42063), o = b(o, t, f, r, a[l + 11], 22, -1990404162), r = b(r, o, t, f, a[l + 12], 7, 1804603682), f = b(f, r, o, t, a[l + 13], 12, -40341101), t = b(t, f, r, o, a[l + 14], 17, -1502002290), r = A(r, o = b(o, t, f, r, a[l + 15], 22, 1236535329), t, f, a[l + 1], 5, -165796510), f = A(f, r, o, t, a[l + 6], 9, -1069501632), t = A(t, f, r, o, a[l + 11], 14, 643717713), o = A(o, t, f, r, a[l + 0], 20, -373897302), r = A(r, o, t, f, a[l + 5], 5, -701558691), f = A(f, r, o, t, a[l + 10], 9, 38016083), t = A(t, f, r, o, a[l + 15], 14, -660478335), o = A(o, t, f, r, a[l + 4], 20, -405537848), r = A(r, o, t, f, a[l + 9], 5, 568446438), f = A(f, r, o, t, a[l + 14], 9, -1019803690), t = A(t, f, r, o, a[l + 3], 14, -187363961), o = A(o, t, f, r, a[l + 8], 20, 1163531501), r = A(r, o, t, f, a[l + 13], 5, -1444681467), f = A(f, r, o, t, a[l + 2], 9, -51403784), t = A(t, f, r, o, a[l + 7], 14, 1735328473), r = _(r, o = A(o, t, f, r, a[l + 12], 20, -1926607734), t, f, a[l + 5], 4, -378558), f = _(f, r, o, t, a[l + 8], 11, -2022574463), t = _(t, f, r, o, a[l + 11], 16, 1839030562), o = _(o, t, f, r, a[l + 14], 23, -35309556), r = _(r, o, t, f, a[l + 1], 4, -1530992060), f = _(f, r, o, t, a[l + 4], 11, 1272893353), t = _(t, f, r, o, a[l + 7], 16, -155497632), o = _(o, t, f, r, a[l + 10], 23, -1094730640), r = _(r, o, t, f, a[l + 13], 4, 681279174), f = _(f, r, o, t, a[l + 0], 11, -358537222), t = _(t, f, r, o, a[l + 3], 16, -722521979), o = _(o, t, f, r, a[l + 6], 23, 76029189), r = _(r, o, t, f, a[l + 9], 4, -640364487), f = _(f, r, o, t, a[l + 12], 11, -421815835), t = _(t, f, r, o, a[l + 15], 16, 530742520), r = v(r, o = _(o, t, f, r, a[l + 2], 23, -995338651), t, f, a[l + 0], 6, -198630844), f = v(f, r, o, t, a[l + 7], 10, 1126891415), t = v(t, f, r, o, a[l + 14], 15, -1416354905), o = v(o, t, f, r, a[l + 5], 21, -57434055), r = v(r, o, t, f, a[l + 12], 6, 1700485571), f = v(f, r, o, t, a[l + 3], 10, -1894986606), t = v(t, f, r, o, a[l + 10], 15, -1051523), o = v(o, t, f, r, a[l + 1], 21, -2054922799), r = v(r, o, t, f, a[l + 8], 6, 1873313359), f = v(f, r, o, t, a[l + 15], 10, -30611744), t = v(t, f, r, o, a[l + 6], 15, -1560198380), o = v(o, t, f, r, a[l + 13], 21, 1309151649), r = v(r, o, t, f, a[l + 4], 6, -145523070), f = v(f, r, o, t, a[l + 11], 10, -1120210379), t = v(t, f, r, o, a[l + 2], 15, 718787259), o = v(o, t, f, r, a[l + 9], 21, -343485551), r = C(r, P), o = C(o, L), t = C(t, U), f = C(f, j);
801
+ var P = r, L = o, D = t, j = f, r = b(r, o, t, f, a[l + 0], 7, -680876936), f = b(f, r, o, t, a[l + 1], 12, -389564586), t = b(t, f, r, o, a[l + 2], 17, 606105819), o = b(o, t, f, r, a[l + 3], 22, -1044525330);
802
+ r = b(r, o, t, f, a[l + 4], 7, -176418897), f = b(f, r, o, t, a[l + 5], 12, 1200080426), t = b(t, f, r, o, a[l + 6], 17, -1473231341), o = b(o, t, f, r, a[l + 7], 22, -45705983), r = b(r, o, t, f, a[l + 8], 7, 1770035416), f = b(f, r, o, t, a[l + 9], 12, -1958414417), t = b(t, f, r, o, a[l + 10], 17, -42063), o = b(o, t, f, r, a[l + 11], 22, -1990404162), r = b(r, o, t, f, a[l + 12], 7, 1804603682), f = b(f, r, o, t, a[l + 13], 12, -40341101), t = b(t, f, r, o, a[l + 14], 17, -1502002290), r = A(r, o = b(o, t, f, r, a[l + 15], 22, 1236535329), t, f, a[l + 1], 5, -165796510), f = A(f, r, o, t, a[l + 6], 9, -1069501632), t = A(t, f, r, o, a[l + 11], 14, 643717713), o = A(o, t, f, r, a[l + 0], 20, -373897302), r = A(r, o, t, f, a[l + 5], 5, -701558691), f = A(f, r, o, t, a[l + 10], 9, 38016083), t = A(t, f, r, o, a[l + 15], 14, -660478335), o = A(o, t, f, r, a[l + 4], 20, -405537848), r = A(r, o, t, f, a[l + 9], 5, 568446438), f = A(f, r, o, t, a[l + 14], 9, -1019803690), t = A(t, f, r, o, a[l + 3], 14, -187363961), o = A(o, t, f, r, a[l + 8], 20, 1163531501), r = A(r, o, t, f, a[l + 13], 5, -1444681467), f = A(f, r, o, t, a[l + 2], 9, -51403784), t = A(t, f, r, o, a[l + 7], 14, 1735328473), r = _(r, o = A(o, t, f, r, a[l + 12], 20, -1926607734), t, f, a[l + 5], 4, -378558), f = _(f, r, o, t, a[l + 8], 11, -2022574463), t = _(t, f, r, o, a[l + 11], 16, 1839030562), o = _(o, t, f, r, a[l + 14], 23, -35309556), r = _(r, o, t, f, a[l + 1], 4, -1530992060), f = _(f, r, o, t, a[l + 4], 11, 1272893353), t = _(t, f, r, o, a[l + 7], 16, -155497632), o = _(o, t, f, r, a[l + 10], 23, -1094730640), r = _(r, o, t, f, a[l + 13], 4, 681279174), f = _(f, r, o, t, a[l + 0], 11, -358537222), t = _(t, f, r, o, a[l + 3], 16, -722521979), o = _(o, t, f, r, a[l + 6], 23, 76029189), r = _(r, o, t, f, a[l + 9], 4, -640364487), f = _(f, r, o, t, a[l + 12], 11, -421815835), t = _(t, f, r, o, a[l + 15], 16, 530742520), r = v(r, o = _(o, t, f, r, a[l + 2], 23, -995338651), t, f, a[l + 0], 6, -198630844), f = v(f, r, o, t, a[l + 7], 10, 1126891415), t = v(t, f, r, o, a[l + 14], 15, -1416354905), o = v(o, t, f, r, a[l + 5], 21, -57434055), r = v(r, o, t, f, a[l + 12], 6, 1700485571), f = v(f, r, o, t, a[l + 3], 10, -1894986606), t = v(t, f, r, o, a[l + 10], 15, -1051523), o = v(o, t, f, r, a[l + 1], 21, -2054922799), r = v(r, o, t, f, a[l + 8], 6, 1873313359), f = v(f, r, o, t, a[l + 15], 10, -30611744), t = v(t, f, r, o, a[l + 6], 15, -1560198380), o = v(o, t, f, r, a[l + 13], 21, 1309151649), r = v(r, o, t, f, a[l + 4], 6, -145523070), f = v(f, r, o, t, a[l + 11], 10, -1120210379), t = v(t, f, r, o, a[l + 2], 15, 718787259), o = v(o, t, f, r, a[l + 9], 21, -343485551), r = C(r, P), o = C(o, L), t = C(t, D), f = C(f, j);
803
803
  }
804
804
  return Array(r, o, t, f);
805
805
  }
@@ -826,24 +826,24 @@ list should be an Array.`), e.length === 0) return new c(0);
826
826
  return E.hash(a, S, 16);
827
827
  };
828
828
  }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
829
- }, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 7: [function(u, p, y) {
830
- (function(g, B, k, D, q, M, N, R, T) {
829
+ }, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 7: [function(u, p, g) {
830
+ (function(y, B, k, U, q, M, N, O, F) {
831
831
  p.exports = function(E) {
832
832
  for (var S, c = new Array(E), b = 0; b < E; b++) (3 & b) == 0 && (S = 4294967296 * Math.random()), c[b] = S >>> ((3 & b) << 3) & 255;
833
833
  return c;
834
834
  };
835
835
  }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
836
- }, { buffer: 3, lYpoI2: 11 }], 8: [function(u, p, y) {
837
- (function(g, B, k, D, q, M, N, R, T) {
836
+ }, { buffer: 3, lYpoI2: 11 }], 8: [function(u, p, g) {
837
+ (function(y, B, k, U, q, M, N, O, F) {
838
838
  var E = u("./helpers");
839
839
  function S(A, _) {
840
840
  A[_ >> 5] |= 128 << 24 - _ % 32, A[15 + (_ + 64 >> 9 << 4)] = _;
841
841
  for (var v, C, a, d = Array(80), r = 1732584193, o = -271733879, t = -1732584194, f = 271733878, l = -1009589776, P = 0; P < A.length; P += 16) {
842
- for (var L = r, U = o, j = t, Y = f, J = l, V = 0; V < 80; V++) {
843
- d[V] = V < 16 ? A[P + V] : b(d[V - 3] ^ d[V - 8] ^ d[V - 14] ^ d[V - 16], 1);
844
- var F = c(c(b(r, 5), (F = o, C = t, a = f, (v = V) < 20 ? F & C | ~F & a : !(v < 40) && v < 60 ? F & C | F & a | C & a : F ^ C ^ a)), c(c(l, d[V]), (v = V) < 20 ? 1518500249 : v < 40 ? 1859775393 : v < 60 ? -1894007588 : -899497514)), l = f, f = t, t = b(o, 30), o = r, r = F;
842
+ for (var L = r, D = o, j = t, Y = f, J = l, $ = 0; $ < 80; $++) {
843
+ d[$] = $ < 16 ? A[P + $] : b(d[$ - 3] ^ d[$ - 8] ^ d[$ - 14] ^ d[$ - 16], 1);
844
+ var T = c(c(b(r, 5), (T = o, C = t, a = f, (v = $) < 20 ? T & C | ~T & a : !(v < 40) && v < 60 ? T & C | T & a | C & a : T ^ C ^ a)), c(c(l, d[$]), (v = $) < 20 ? 1518500249 : v < 40 ? 1859775393 : v < 60 ? -1894007588 : -899497514)), l = f, f = t, t = b(o, 30), o = r, r = T;
845
845
  }
846
- r = c(r, L), o = c(o, U), t = c(t, j), f = c(f, Y), l = c(l, J);
846
+ r = c(r, L), o = c(o, D), t = c(t, j), f = c(f, Y), l = c(l, J);
847
847
  }
848
848
  return Array(r, o, t, f, l);
849
849
  }
@@ -858,8 +858,8 @@ list should be an Array.`), e.length === 0) return new c(0);
858
858
  return E.hash(A, S, 20, !0);
859
859
  };
860
860
  }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
861
- }, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 9: [function(u, p, y) {
862
- (function(g, B, k, D, q, M, N, R, T) {
861
+ }, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 9: [function(u, p, g) {
862
+ (function(y, B, k, U, q, M, N, O, F) {
863
863
  function E(_, v) {
864
864
  var C = (65535 & _) + (65535 & v);
865
865
  return (_ >> 16) + (v >> 16) + (C >> 16) << 16 | 65535 & C;
@@ -868,8 +868,8 @@ list should be an Array.`), e.length === 0) return new c(0);
868
868
  var C, a = new Array(1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298), d = new Array(1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225), r = new Array(64);
869
869
  _[v >> 5] |= 128 << 24 - v % 32, _[15 + (v + 64 >> 9 << 4)] = v;
870
870
  for (var o, t, f = 0; f < _.length; f += 16) {
871
- for (var l = d[0], P = d[1], L = d[2], U = d[3], j = d[4], Y = d[5], J = d[6], V = d[7], F = 0; F < 64; F++) r[F] = F < 16 ? _[F + f] : E(E(E((t = r[F - 2], b(t, 17) ^ b(t, 19) ^ A(t, 10)), r[F - 7]), (t = r[F - 15], b(t, 7) ^ b(t, 18) ^ A(t, 3))), r[F - 16]), C = E(E(E(E(V, b(t = j, 6) ^ b(t, 11) ^ b(t, 25)), j & Y ^ ~j & J), a[F]), r[F]), o = E(b(o = l, 2) ^ b(o, 13) ^ b(o, 22), l & P ^ l & L ^ P & L), V = J, J = Y, Y = j, j = E(U, C), U = L, L = P, P = l, l = E(C, o);
872
- d[0] = E(l, d[0]), d[1] = E(P, d[1]), d[2] = E(L, d[2]), d[3] = E(U, d[3]), d[4] = E(j, d[4]), d[5] = E(Y, d[5]), d[6] = E(J, d[6]), d[7] = E(V, d[7]);
871
+ for (var l = d[0], P = d[1], L = d[2], D = d[3], j = d[4], Y = d[5], J = d[6], $ = d[7], T = 0; T < 64; T++) r[T] = T < 16 ? _[T + f] : E(E(E((t = r[T - 2], b(t, 17) ^ b(t, 19) ^ A(t, 10)), r[T - 7]), (t = r[T - 15], b(t, 7) ^ b(t, 18) ^ A(t, 3))), r[T - 16]), C = E(E(E(E($, b(t = j, 6) ^ b(t, 11) ^ b(t, 25)), j & Y ^ ~j & J), a[T]), r[T]), o = E(b(o = l, 2) ^ b(o, 13) ^ b(o, 22), l & P ^ l & L ^ P & L), $ = J, J = Y, Y = j, j = E(D, C), D = L, L = P, P = l, l = E(C, o);
872
+ d[0] = E(l, d[0]), d[1] = E(P, d[1]), d[2] = E(L, d[2]), d[3] = E(D, d[3]), d[4] = E(j, d[4]), d[5] = E(Y, d[5]), d[6] = E(J, d[6]), d[7] = E($, d[7]);
873
873
  }
874
874
  return d;
875
875
  }
@@ -882,9 +882,9 @@ list should be an Array.`), e.length === 0) return new c(0);
882
882
  return c.hash(_, S, 32, !0);
883
883
  };
884
884
  }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
885
- }, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 10: [function(u, p, y) {
886
- (function(g, B, k, D, q, M, N, R, T) {
887
- y.read = function(E, S, c, b, f) {
885
+ }, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 10: [function(u, p, g) {
886
+ (function(y, B, k, U, q, M, N, O, F) {
887
+ g.read = function(E, S, c, b, f) {
888
888
  var _, v, C = 8 * f - b - 1, a = (1 << C) - 1, d = a >> 1, r = -7, o = c ? f - 1 : 0, t = c ? -1 : 1, f = E[S + o];
889
889
  for (o += t, _ = f & (1 << -r) - 1, f >>= -r, r += C; 0 < r; _ = 256 * _ + E[S + o], o += t, r -= 8) ;
890
890
  for (v = _ & (1 << -r) - 1, _ >>= -r, r += b; 0 < r; v = 256 * v + E[S + o], o += t, r -= 8) ;
@@ -894,19 +894,19 @@ list should be an Array.`), e.length === 0) return new c(0);
894
894
  v += Math.pow(2, b), _ -= d;
895
895
  }
896
896
  return (f ? -1 : 1) * v * Math.pow(2, _ - b);
897
- }, y.write = function(E, S, c, b, A, l) {
897
+ }, g.write = function(E, S, c, b, A, l) {
898
898
  var v, C, a = 8 * l - A - 1, d = (1 << a) - 1, r = d >> 1, o = A === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, t = b ? 0 : l - 1, f = b ? 1 : -1, l = S < 0 || S === 0 && 1 / S < 0 ? 1 : 0;
899
899
  for (S = Math.abs(S), isNaN(S) || S === 1 / 0 ? (C = isNaN(S) ? 1 : 0, v = d) : (v = Math.floor(Math.log(S) / Math.LN2), S * (b = Math.pow(2, -v)) < 1 && (v--, b *= 2), 2 <= (S += 1 <= v + r ? o / b : o * Math.pow(2, 1 - r)) * b && (v++, b /= 2), d <= v + r ? (C = 0, v = d) : 1 <= v + r ? (C = (S * b - 1) * Math.pow(2, A), v += r) : (C = S * Math.pow(2, r - 1) * Math.pow(2, A), v = 0)); 8 <= A; E[c + t] = 255 & C, t += f, C /= 256, A -= 8) ;
900
900
  for (v = v << A | C, a += A; 0 < a; E[c + t] = 255 & v, t += f, v /= 256, a -= 8) ;
901
901
  E[c + t - f] |= 128 * l;
902
902
  };
903
903
  }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/ieee754/index.js", "/node_modules/gulp-browserify/node_modules/ieee754");
904
- }, { buffer: 3, lYpoI2: 11 }], 11: [function(u, p, y) {
905
- (function(g, B, k, D, q, M, N, R, T) {
904
+ }, { buffer: 3, lYpoI2: 11 }], 11: [function(u, p, g) {
905
+ (function(y, B, k, U, q, M, N, O, F) {
906
906
  var E, S, c;
907
907
  function b() {
908
908
  }
909
- (g = p.exports = {}).nextTick = (S = typeof window < "u" && window.setImmediate, c = typeof window < "u" && window.postMessage && window.addEventListener, S ? function(A) {
909
+ (y = p.exports = {}).nextTick = (S = typeof window < "u" && window.setImmediate, c = typeof window < "u" && window.postMessage && window.addEventListener, S ? function(A) {
910
910
  return window.setImmediate(A);
911
911
  } : c ? (E = [], window.addEventListener("message", function(A) {
912
912
  var _ = A.source;
@@ -915,11 +915,11 @@ list should be an Array.`), e.length === 0) return new c(0);
915
915
  E.push(A), window.postMessage("process-tick", "*");
916
916
  }) : function(A) {
917
917
  setTimeout(A, 0);
918
- }), g.title = "browser", g.browser = !0, g.env = {}, g.argv = [], g.on = b, g.addListener = b, g.once = b, g.off = b, g.removeListener = b, g.removeAllListeners = b, g.emit = b, g.binding = function(A) {
918
+ }), y.title = "browser", y.browser = !0, y.env = {}, y.argv = [], y.on = b, y.addListener = b, y.once = b, y.off = b, y.removeListener = b, y.removeAllListeners = b, y.emit = b, y.binding = function(A) {
919
919
  throw new Error("process.binding is not supported");
920
- }, g.cwd = function() {
920
+ }, y.cwd = function() {
921
921
  return "/";
922
- }, g.chdir = function(A) {
922
+ }, y.chdir = function(A) {
923
923
  throw new Error("process.chdir is not supported");
924
924
  };
925
925
  }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/process/browser.js", "/node_modules/gulp-browserify/node_modules/process");
@@ -956,19 +956,20 @@ class ye {
956
956
  values = () => Object.values(this.data);
957
957
  commit = (s, u) => {
958
958
  const p = { ...this.data };
959
- u?.forEach((g) => {
960
- delete p[g];
959
+ u?.forEach((y) => {
960
+ delete p[y];
961
961
  });
962
- const y = Object.keys(p);
963
- return s != null && Object.keys(s).length === y.length && y.reduce((g, B) => g && Object.is(p[B], s[B]), !0) ? s : p;
962
+ const g = Object.keys(p);
963
+ return s != null && Object.keys(s).length === g.length && g.reduce((y, B) => y && Object.is(p[B], s[B]), !0) ? s : p;
964
964
  };
965
965
  }
966
966
  const te = (h) => h instanceof ye ? h : new ye(h);
967
- class Ce {
967
+ class qe {
968
968
  _inferItem;
969
969
  _inferQuery;
970
970
  _inferOptions;
971
971
  _inferMetaType;
972
+ _inferGetResult;
972
973
  _inferCreateData;
973
974
  _inferCreateResult;
974
975
  _inferUpdateData;
@@ -983,12 +984,12 @@ class Ce {
983
984
  const s = [], u = [];
984
985
  this.extend({
985
986
  context: (p) => {
986
- const y = s;
987
- p != null && !y.includes(p) && y.push(p);
987
+ const g = s;
988
+ p != null && !g.includes(p) && g.push(p);
988
989
  },
989
990
  ui: (p) => {
990
- const y = u;
991
- p != null && !y.includes(p) && y.push(p);
991
+ const g = u;
992
+ p != null && !g.includes(p) && g.push(p);
992
993
  }
993
994
  }), Object.defineProperties(this, {
994
995
  contextPlugins: {
@@ -1018,89 +1019,91 @@ class Ce {
1018
1019
  notify(s) {
1019
1020
  this.notifier.trigger(s);
1020
1021
  }
1021
- get(s, u, p, y, g) {
1022
+ get(s, u, p, g, y) {
1022
1023
  return new Promise(
1023
1024
  (B, k) => this.continuousGet(
1024
1025
  s,
1025
1026
  u,
1026
1027
  p,
1027
- y,
1028
- (D, q, M) => {
1029
- if (D != null) {
1030
- k(D);
1028
+ g,
1029
+ (U, q, M) => {
1030
+ if (U != null) {
1031
+ k(U);
1031
1032
  return;
1032
1033
  }
1033
1034
  q && B(M);
1034
1035
  },
1035
- g
1036
+ y
1036
1037
  )
1037
1038
  );
1038
1039
  }
1039
- continuousGet(s, u, p, y, g, B) {
1040
+ continuousGet(s, u, p, g, y, B) {
1040
1041
  const k = B ?? new je();
1041
- new Promise((D) => {
1042
+ new Promise((U) => {
1042
1043
  if (s == null) throw new Error("No resource name specified");
1043
- const q = (N, R, T) => {
1044
- k.locked || ((N != null || R) && k.lock(), N != null ? g(N, !0, []) : T == null ? g(void 0, R, []) : Array.isArray(T) ? g(void 0, R, T) : g(void 0, R, [T]));
1044
+ const q = (N, O, F) => {
1045
+ k.locked || ((N != null || O) && k.lock(), N != null ? y(N, !0, void 0) : y(void 0, O, F));
1045
1046
  }, M = k.proxy();
1046
- D(
1047
+ U(
1047
1048
  Promise.resolve(
1048
- this.handleGet(s, u, p, te(y), M)
1049
+ this.handleGet(s, u, p, te(g), M)
1049
1050
  ).then((N) => {
1050
1051
  typeof N == "function" ? N(q, M) : q(void 0, !0, N);
1051
1052
  })
1052
1053
  );
1053
- }).catch((D) => {
1054
- k.locked || g(D, !0, []);
1054
+ }).catch((U) => {
1055
+ k.locked || y(U, !0, void 0);
1055
1056
  });
1056
1057
  }
1057
- create(s, u, p, y) {
1058
- return new Promise((g) => {
1058
+ create(s, u, p, g) {
1059
+ return new Promise((y) => {
1059
1060
  if (s == null) throw new Error("No resource name specified");
1060
1061
  if (u == null) throw new Error("No data specified");
1061
- g(
1062
+ y(
1062
1063
  Promise.resolve(
1063
- this.handleCreate(s, u, p, te(y))
1064
+ this.handleCreate(s, u, p, te(g))
1064
1065
  )
1065
1066
  );
1066
1067
  });
1067
1068
  }
1068
- update(s, u, p, y, g) {
1069
+ update(s, u, p, g, y) {
1069
1070
  return new Promise((B) => {
1070
1071
  if (s == null) throw new Error("No resource name specified");
1071
1072
  if (p == null) throw new Error("No data specified");
1072
1073
  B(
1073
1074
  Promise.resolve(
1074
- this.handleUpdate(s, u, p, y, te(g))
1075
+ this.handleUpdate(s, u, p, g, te(y))
1075
1076
  )
1076
1077
  );
1077
1078
  });
1078
1079
  }
1079
- patch(s, u, p, y, g) {
1080
+ patch(s, u, p, g, y) {
1080
1081
  return new Promise((B) => {
1081
1082
  if (s == null) throw new Error("No resource name specified");
1082
1083
  if (p == null) throw new Error("No data specified");
1083
1084
  B(
1084
1085
  Promise.resolve(
1085
- this.handlePatch(s, u, p, y, te(g))
1086
+ this.handlePatch(s, u, p, g, te(y))
1086
1087
  )
1087
1088
  );
1088
1089
  });
1089
1090
  }
1090
- remove(s, u, p, y) {
1091
- return new Promise((g) => {
1091
+ remove(s, u, p, g) {
1092
+ return new Promise((y) => {
1092
1093
  if (s == null) throw new Error("No resource name specified");
1093
- g(
1094
+ y(
1094
1095
  Promise.resolve(
1095
- this.handleRemove(s, u, p, te(y))
1096
+ this.handleRemove(s, u, p, te(g))
1096
1097
  )
1097
1098
  );
1098
1099
  });
1099
1100
  }
1100
1101
  compareRequests(s, u) {
1101
- return Re(s, u);
1102
+ return Oe(s, u);
1102
1103
  }
1103
- shouldPersist(s, u, p, y) {
1104
+ getEmptyResponse(s) {
1105
+ }
1106
+ shouldPersist(s, u, p, g) {
1104
1107
  return p === "very" || p && u.name === s.name;
1105
1108
  }
1106
1109
  compareItemVersions(s, u) {
@@ -1113,26 +1116,28 @@ class Ce {
1113
1116
  return s.data;
1114
1117
  }
1115
1118
  recycleItems(s, u) {
1116
- const p = {};
1117
- s.data.length > 0 && u.data.forEach((g) => {
1118
- const B = this.getItemIdentifier(g);
1119
- B != null && (p[B] = g);
1119
+ if (s.data == null || u.data == null)
1120
+ return s.data;
1121
+ const p = Array.isArray(s.data) ? s.data : [s.data], g = Array.isArray(u.data) ? u.data : [u.data], y = {};
1122
+ p.length > 0 && g.forEach((k) => {
1123
+ const U = this.getItemIdentifier(k);
1124
+ U != null && (y[U] = k);
1120
1125
  });
1121
- let y;
1122
- return u.data.length > 0 ? y = s.data.map((g) => {
1123
- const B = this.getItemIdentifier(g);
1124
- if (B != null && Object.prototype.hasOwnProperty.call(p, B)) {
1125
- const k = p[B];
1126
- if (this.compareItemVersions(g, k)) return k;
1126
+ let B;
1127
+ return g.length > 0 ? B = p.map((k) => {
1128
+ const U = this.getItemIdentifier(k);
1129
+ if (U != null && Object.prototype.hasOwnProperty.call(y, U)) {
1130
+ const q = y[U];
1131
+ if (this.compareItemVersions(k, q)) return q;
1127
1132
  }
1128
- return g;
1129
- }) : y = s.data, u.data.length === y.length && y.reduce(
1130
- (g, B, k) => g && Object.is(u.data[k], B),
1133
+ return k;
1134
+ }) : B = p, Array.isArray(s.data) ? g.length === B.length && B.reduce(
1135
+ (k, U, q) => k && Object.is(g[q], U),
1131
1136
  !0
1132
- ) ? u.data : y;
1137
+ ) ? g : B : B[0];
1133
1138
  }
1134
1139
  }
1135
- const nt = (h) => h instanceof Ce;
1140
+ const nt = (h) => h instanceof qe;
1136
1141
  function ot({
1137
1142
  dataProvider: h,
1138
1143
  children: s
@@ -1144,7 +1149,7 @@ function it(h) {
1144
1149
  if (typeof h != "function")
1145
1150
  throw new Error("No valid plugin definition specified");
1146
1151
  return (s) => {
1147
- Object.prototype.isPrototypeOf.call(Ce, s) || console.error(
1152
+ Object.prototype.isPrototypeOf.call(qe, s) || console.error(
1148
1153
  "A plugin should be given a derivative of the DataProvider class as its first parameter"
1149
1154
  );
1150
1155
  const p = h(class extends s {
@@ -1169,50 +1174,50 @@ function Ye(h, s = 0) {
1169
1174
  return (W[h[s + 0]] + W[h[s + 1]] + W[h[s + 2]] + W[h[s + 3]] + "-" + W[h[s + 4]] + W[h[s + 5]] + "-" + W[h[s + 6]] + W[h[s + 7]] + "-" + W[h[s + 8]] + W[h[s + 9]] + "-" + W[h[s + 10]] + W[h[s + 11]] + W[h[s + 12]] + W[h[s + 13]] + W[h[s + 14]] + W[h[s + 15]]).toLowerCase();
1170
1175
  }
1171
1176
  let ge;
1172
- const Ve = new Uint8Array(16);
1173
- function $e() {
1177
+ const $e = new Uint8Array(16);
1178
+ function Ve() {
1174
1179
  if (!ge) {
1175
1180
  if (typeof crypto > "u" || !crypto.getRandomValues)
1176
1181
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1177
1182
  ge = crypto.getRandomValues.bind(crypto);
1178
1183
  }
1179
- return ge(Ve);
1184
+ return ge($e);
1180
1185
  }
1181
1186
  const re = {};
1182
1187
  function ze(h, s, u) {
1183
1188
  let p;
1184
1189
  {
1185
- const y = Date.now(), g = $e();
1186
- He(re, y, g), p = Ge(g, re.msecs, re.nsecs, re.clockseq, re.node, s, u);
1190
+ const g = Date.now(), y = Ve();
1191
+ Ge(re, g, y), p = He(y, re.msecs, re.nsecs, re.clockseq, re.node, s, u);
1187
1192
  }
1188
1193
  return s ?? Ye(p);
1189
1194
  }
1190
- function He(h, s, u) {
1195
+ function Ge(h, s, u) {
1191
1196
  return h.msecs ??= -1 / 0, h.nsecs ??= 0, s === h.msecs ? (h.nsecs++, h.nsecs >= 1e4 && (h.node = void 0, h.nsecs = 0)) : s > h.msecs ? h.nsecs = 0 : s < h.msecs && (h.node = void 0), h.node || (h.node = u.slice(10, 16), h.node[0] |= 1, h.clockseq = (u[8] << 8 | u[9]) & 16383), h.msecs = s, h;
1192
1197
  }
1193
- function Ge(h, s, u, p, y, g, B = 0) {
1198
+ function He(h, s, u, p, g, y, B = 0) {
1194
1199
  if (h.length < 16)
1195
1200
  throw new Error("Random bytes length must be >= 16");
1196
- if (!g)
1197
- g = new Uint8Array(16), B = 0;
1198
- else if (B < 0 || B + 16 > g.length)
1201
+ if (!y)
1202
+ y = new Uint8Array(16), B = 0;
1203
+ else if (B < 0 || B + 16 > y.length)
1199
1204
  throw new RangeError(`UUID byte range ${B}:${B + 15} is out of buffer bounds`);
1200
- s ??= Date.now(), u ??= 0, p ??= (h[8] << 8 | h[9]) & 16383, y ??= h.slice(10, 16), s += 122192928e5;
1205
+ s ??= Date.now(), u ??= 0, p ??= (h[8] << 8 | h[9]) & 16383, g ??= h.slice(10, 16), s += 122192928e5;
1201
1206
  const k = ((s & 268435455) * 1e4 + u) % 4294967296;
1202
- g[B++] = k >>> 24 & 255, g[B++] = k >>> 16 & 255, g[B++] = k >>> 8 & 255, g[B++] = k & 255;
1203
- const D = s / 4294967296 * 1e4 & 268435455;
1204
- g[B++] = D >>> 8 & 255, g[B++] = D & 255, g[B++] = D >>> 24 & 15 | 16, g[B++] = D >>> 16 & 255, g[B++] = p >>> 8 | 128, g[B++] = p & 255;
1207
+ y[B++] = k >>> 24 & 255, y[B++] = k >>> 16 & 255, y[B++] = k >>> 8 & 255, y[B++] = k & 255;
1208
+ const U = s / 4294967296 * 1e4 & 268435455;
1209
+ y[B++] = U >>> 8 & 255, y[B++] = U & 255, y[B++] = U >>> 24 & 15 | 16, y[B++] = U >>> 16 & 255, y[B++] = p >>> 8 | 128, y[B++] = p & 255;
1205
1210
  for (let q = 0; q < 6; ++q)
1206
- g[B++] = y[q];
1207
- return g;
1211
+ y[B++] = g[q];
1212
+ return y;
1208
1213
  }
1209
1214
  function ne(h) {
1210
1215
  let s, u, p;
1211
1216
  if (typeof h != "string")
1212
1217
  s = "~", u = 0, p = ze();
1213
1218
  else {
1214
- let y;
1215
- [s, y, p] = h.split("$"), u = ((parseInt(y, 36) || 0) + 1) % Number.MAX_SAFE_INTEGER, u === 0 && (s += "~");
1219
+ let g;
1220
+ [s, g, p] = h.split("$"), u = ((parseInt(g, 36) || 0) + 1) % Number.MAX_SAFE_INTEGER, u === 0 && (s += "~");
1216
1221
  }
1217
1222
  return `${s}$${u.toString(36).padStart(11, "0")}$${p}`;
1218
1223
  }
@@ -1232,7 +1237,7 @@ function We(h, s) {
1232
1237
  switch (s.type) {
1233
1238
  // Creates a new request and instructs the resource to fetch data.
1234
1239
  case "next-request": {
1235
- const { requestDetails: u, persistent: p } = s, y = ne(h.request), g = ne(h.revision);
1240
+ const { requestDetails: u, persistent: p } = s, g = ne(h.request), y = ne(h.revision);
1236
1241
  let B = !1;
1237
1242
  h.persistent === "very" && p === "very" ? B = "very" : h.persistent && p && (B = !0);
1238
1243
  const k = !u.empty && h.dataProvider.shouldPersist(
@@ -1244,16 +1249,18 @@ function We(h, s) {
1244
1249
  return me({
1245
1250
  dataProvider: h.dataProvider,
1246
1251
  requestDetails: u,
1247
- request: y,
1248
- revision: g,
1252
+ request: g,
1253
+ revision: y,
1249
1254
  isLoading: !u.empty,
1250
1255
  value: k ? h.value : {
1251
1256
  name: u.name,
1252
1257
  query: u.query,
1253
1258
  options: u.options,
1254
- request: y,
1255
- revision: g,
1256
- data: [],
1259
+ request: g,
1260
+ revision: y,
1261
+ data: h.dataProvider.getEmptyResponse(
1262
+ u
1263
+ ),
1257
1264
  meta: {},
1258
1265
  error: void 0,
1259
1266
  isEmpty: !!u.empty,
@@ -1282,44 +1289,47 @@ function We(h, s) {
1282
1289
  }
1283
1290
  // Updates the current request's data.
1284
1291
  case "update-data": {
1285
- const { request: u, revision: p, value: y } = s;
1292
+ const { request: u, revision: p, value: g } = s;
1286
1293
  return u !== h.request || p !== h.revision ? h : {
1287
1294
  ...h,
1288
- isLoading: y.isIncomplete,
1289
- value: y
1295
+ isLoading: g.isIncomplete,
1296
+ value: g
1290
1297
  };
1291
1298
  }
1292
1299
  }
1293
1300
  return h;
1294
1301
  }
1295
1302
  function Je(h, s, u, p) {
1296
- const { dataProvider: y, requestDetails: g, request: B, revision: k, value: D } = h, q = new ye({ ...D.meta }, s);
1297
- let M = Promise.resolve(D);
1298
- const N = (R, T, E) => {
1303
+ const { dataProvider: g, requestDetails: y, request: B, revision: k, value: U } = h, q = new ye({ ...U.meta }, s);
1304
+ let M = Promise.resolve(U);
1305
+ const N = (O, F, E) => {
1299
1306
  M = M.then((S) => {
1300
1307
  try {
1301
1308
  let c;
1302
- if (R != null)
1309
+ if (O != null)
1303
1310
  c = {
1304
1311
  ...S,
1305
- error: R,
1312
+ error: O,
1306
1313
  isIncomplete: !1
1307
1314
  };
1308
1315
  else {
1309
1316
  const b = {
1310
- name: g.name,
1311
- query: g.query,
1312
- options: g.options,
1317
+ name: y.name,
1318
+ query: y.query,
1319
+ options: y.options,
1313
1320
  request: B,
1314
1321
  revision: k,
1315
1322
  data: E,
1316
1323
  meta: q.commit(S.meta),
1317
1324
  error: void 0,
1318
1325
  isEmpty: !1,
1319
- isIncomplete: !T,
1320
- isInitial: !!S.isInitial && !T
1326
+ isIncomplete: !F,
1327
+ isInitial: !!S.isInitial && !F
1321
1328
  };
1322
- b.data = y.transition(b, S), b.data = y.recycleItems(
1329
+ b.data = g.transition(
1330
+ b,
1331
+ S
1332
+ ), b.data = g.recycleItems(
1323
1333
  b,
1324
1334
  S
1325
1335
  ), c = b;
@@ -1330,10 +1340,10 @@ function Je(h, s, u, p) {
1330
1340
  }
1331
1341
  });
1332
1342
  };
1333
- y.continuousGet(
1334
- g.name,
1335
- g.query,
1336
- g.options,
1343
+ g.continuousGet(
1344
+ y.name,
1345
+ y.query,
1346
+ y.options,
1337
1347
  q,
1338
1348
  N,
1339
1349
  u
@@ -1344,22 +1354,22 @@ function Ke({
1344
1354
  name: s,
1345
1355
  query: u,
1346
1356
  empty: p,
1347
- options: y,
1348
- persistent: g,
1357
+ options: g,
1358
+ persistent: y,
1349
1359
  ...B
1350
1360
  }) {
1351
- const k = Ue(), D = h || k.dataProvider, q = se(
1361
+ const k = Ue(), U = h || k.dataProvider, q = se(
1352
1362
  () => ({
1353
1363
  name: s,
1354
1364
  query: u,
1355
1365
  empty: !!p,
1356
- options: y
1366
+ options: g
1357
1367
  }),
1358
- [s, u, p, y]
1359
- ), [M, N] = qe(We, void 0, () => {
1368
+ [s, u, p, g]
1369
+ ), [M, N] = Ce(We, void 0, () => {
1360
1370
  const l = ne(), P = ne();
1361
1371
  return me({
1362
- dataProvider: D,
1372
+ dataProvider: U,
1363
1373
  requestDetails: q,
1364
1374
  request: l,
1365
1375
  revision: P,
@@ -1370,18 +1380,20 @@ function Ke({
1370
1380
  options: q.options,
1371
1381
  request: l,
1372
1382
  revision: P,
1373
- data: [],
1383
+ data: U?.getEmptyResponse(
1384
+ q
1385
+ ),
1374
1386
  meta: {},
1375
1387
  error: void 0,
1376
1388
  isEmpty: !!q.empty,
1377
1389
  isIncomplete: !q.empty,
1378
1390
  isInitial: !q.empty
1379
1391
  },
1380
- persistent: g ?? !1
1392
+ persistent: y ?? !1
1381
1393
  });
1382
1394
  }), {
1383
- dataProvider: R,
1384
- requestDetails: T,
1395
+ dataProvider: O,
1396
+ requestDetails: F,
1385
1397
  request: E,
1386
1398
  revision: S,
1387
1399
  isLoading: c,
@@ -1389,32 +1401,32 @@ function Ke({
1389
1401
  persistent: A,
1390
1402
  requestInstruction: _
1391
1403
  } = M;
1392
- if (R == null)
1404
+ if (O == null)
1393
1405
  throw new Error(
1394
1406
  "Unmet requirement: The DataProvider for the useResource hook is missing - Check your ConfigContext provider and the dataProvider property"
1395
1407
  );
1396
- if (R !== D)
1408
+ if (O !== U)
1397
1409
  throw new Error(
1398
1410
  "Constant violation: The DataProvider provided to the useResource hook must not be replaced - Check your ConfigContext provider and the dataProvider property"
1399
1411
  );
1400
1412
  const [v, C] = Pe();
1401
1413
  de(() => {
1402
- const l = R.createInstance() ?? {};
1414
+ const l = O.createInstance() ?? {};
1403
1415
  return C(l), () => {
1404
- R.releaseInstance(l);
1416
+ O.releaseInstance(l);
1405
1417
  };
1406
- }, [R]), T !== q && !R.compareRequests(q, T) ? N({
1418
+ }, [O]), F !== q && !O.compareRequests(q, F) ? N({
1407
1419
  type: "next-request",
1408
1420
  requestDetails: q,
1409
- persistent: g ?? !1
1410
- }) : A !== (g ?? !1) && N({ type: "set-persistence", persistent: g ?? !1 });
1421
+ persistent: y ?? !1
1422
+ }) : A !== (y ?? !1) && N({ type: "set-persistence", persistent: y ?? !1 });
1411
1423
  const a = Le(
1412
1424
  async () => new Promise((l) => {
1413
1425
  N({ type: "next-revision", notify: l });
1414
1426
  }),
1415
1427
  []
1416
1428
  );
1417
- de(() => T.empty ? void 0 : R.subscribe(T.name, a), [T.empty, R, T.name, a]), de(() => {
1429
+ de(() => F.empty ? void 0 : O.subscribe(F.name, a), [F.empty, O, F.name, a]), de(() => {
1418
1430
  if (v == null || _.requestDetails.empty)
1419
1431
  return;
1420
1432
  const l = new je();
@@ -1431,10 +1443,10 @@ function Ke({
1431
1443
  () => ({ request: r, revision: o }),
1432
1444
  [r, o]
1433
1445
  ), f = se(
1434
- () => ({ ...b, dataProvider: R, isLoading: c, isStale: d, next: t, notify: a }),
1435
- [b, R, c, d, t, a]
1446
+ () => ({ ...b, dataProvider: O, isLoading: c, isStale: d, next: t, notify: a }),
1447
+ [b, O, c, d, t, a]
1436
1448
  );
1437
- return R.contextPlugins.reduce(
1449
+ return O.contextPlugins.reduce(
1438
1450
  (l, P) => P(l, B),
1439
1451
  f
1440
1452
  );
@@ -1444,31 +1456,31 @@ function st({
1444
1456
  name: s,
1445
1457
  query: u,
1446
1458
  empty: p,
1447
- options: y,
1448
- persistent: g,
1459
+ options: g,
1460
+ persistent: y,
1449
1461
  children: B,
1450
1462
  ...k
1451
1463
  }) {
1452
- const D = Ke({
1464
+ const U = Ke({
1453
1465
  dataProvider: h,
1454
1466
  name: s,
1455
1467
  query: u,
1456
1468
  empty: p,
1457
- options: y,
1458
- persistent: g,
1469
+ options: g,
1470
+ persistent: y,
1459
1471
  ...k
1460
1472
  });
1461
- return D.dataProvider.uiPlugins.reduceRight(
1473
+ return U.dataProvider.uiPlugins.reduceRight(
1462
1474
  (q, M) => (N) => /* @__PURE__ */ ue(M, { ...k, context: N, children: q }),
1463
1475
  (q) => /* @__PURE__ */ ue(Fe, { resource: q, children: B })
1464
- )(D);
1476
+ )(U);
1465
1477
  }
1466
1478
  export {
1467
1479
  je as AbortSignal,
1468
1480
  ke as ChannelNotifier,
1469
1481
  Ze as ConfigConsumer,
1470
1482
  ot as ConfigProvider,
1471
- Ce as DataProvider,
1483
+ qe as DataProvider,
1472
1484
  ye as Meta,
1473
1485
  Be as Notifier,
1474
1486
  st as Resource,