@ahoo-wang/fetcher-react 3.1.6 → 3.1.8

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/index.es.js CHANGED
@@ -1,444 +1,465 @@
1
- var k = Object.defineProperty;
2
- var y = (e, t) => k(e, "name", { value: t, configurable: !0 });
3
- import { useRef as m, useCallback as u, useEffect as C, useState as Q, useMemo as h, useReducer as A, useSyncExternalStore as U } from "react";
4
- import { nameGenerator as z } from "@ahoo-wang/fetcher-eventbus";
5
- import { fetcherRegistrar as G, getFetcher as K } from "@ahoo-wang/fetcher";
6
- function p() {
7
- const e = m(!1), t = u(() => e.current, []);
8
- return C(() => (e.current = !0, () => {
1
+ var M = Object.defineProperty;
2
+ var b = (e, t) => M(e, "name", { value: t, configurable: !0 });
3
+ import { useRef as v, useCallback as c, useEffect as F, useState as Q, useMemo as h, useReducer as O, useSyncExternalStore as k } from "react";
4
+ import { nameGenerator as q } from "@ahoo-wang/fetcher-eventbus";
5
+ import { fetcherRegistrar as U, getFetcher as z } from "@ahoo-wang/fetcher";
6
+ function D() {
7
+ const e = v(!1), t = c(() => e.current, []);
8
+ return F(() => (e.current = !0, () => {
9
9
  e.current = !1;
10
10
  }), []), t;
11
11
  }
12
- y(p, "useMounted");
13
- function S(e) {
14
- const t = m(e);
12
+ b(D, "useMounted");
13
+ function C(e) {
14
+ const t = v(e);
15
15
  return t.current = e, t;
16
16
  }
17
- y(S, "useLatest");
18
- var T = /* @__PURE__ */ ((e) => (e.IDLE = "idle", e.LOADING = "loading", e.SUCCESS = "success", e.ERROR = "error", e))(T || {});
19
- function D(e) {
20
- const [t, r] = Q(
17
+ b(C, "useLatest");
18
+ var G = /* @__PURE__ */ ((e) => (e.IDLE = "idle", e.LOADING = "loading", e.SUCCESS = "success", e.ERROR = "error", e))(G || {});
19
+ function K(e) {
20
+ const [t, n] = Q(
21
21
  e?.initialStatus ?? "idle"
22
22
  /* IDLE */
23
- ), [s, o] = Q(void 0), [i, n] = Q(void 0), c = p(), a = S(e), l = u(() => {
24
- c() && (r(
23
+ ), [o, i] = Q(void 0), [l, s] = Q(void 0), u = D(), d = C(e), a = c(() => {
24
+ u() && (n(
25
25
  "loading"
26
26
  /* LOADING */
27
- ), n(void 0));
28
- }, [c]), f = u(
29
- async (b) => {
30
- if (c()) {
31
- o(b), r(
27
+ ), s(void 0));
28
+ }, [u]), f = c(
29
+ async (y) => {
30
+ if (u()) {
31
+ i(y), n(
32
32
  "success"
33
33
  /* SUCCESS */
34
- ), n(void 0);
34
+ ), s(void 0);
35
35
  try {
36
- await a.current?.onSuccess?.(b);
36
+ await d.current?.onSuccess?.(y);
37
37
  } catch (E) {
38
38
  console.warn("PromiseState onSuccess callback error:", E);
39
39
  }
40
40
  }
41
41
  },
42
- [c, a]
43
- ), d = u(
44
- async (b) => {
45
- if (c()) {
46
- n(b), r(
42
+ [u, d]
43
+ ), r = c(
44
+ async (y) => {
45
+ if (u()) {
46
+ s(y), n(
47
47
  "error"
48
48
  /* ERROR */
49
- ), o(void 0);
49
+ ), i(void 0);
50
50
  try {
51
- await a.current?.onError?.(b);
51
+ await d.current?.onError?.(y);
52
52
  } catch (E) {
53
53
  console.warn("PromiseState onError callback error:", E);
54
54
  }
55
55
  }
56
56
  },
57
- [c, a]
58
- ), g = u(() => {
59
- c() && (r(
57
+ [u, d]
58
+ ), g = c(() => {
59
+ u() && (n(
60
60
  "idle"
61
61
  /* IDLE */
62
- ), n(void 0), o(void 0));
63
- }, [c]);
62
+ ), s(void 0), i(void 0));
63
+ }, [u]);
64
64
  return h(
65
65
  () => ({
66
66
  status: t,
67
67
  loading: t === "loading",
68
- result: s,
69
- error: i,
70
- setLoading: l,
68
+ result: o,
69
+ error: l,
70
+ setLoading: a,
71
71
  setSuccess: f,
72
- setError: d,
72
+ setError: r,
73
73
  setIdle: g
74
74
  }),
75
- [t, s, i, l, f, d, g]
75
+ [t, o, l, a, f, r, g]
76
76
  );
77
77
  }
78
- y(D, "usePromiseState");
79
- function P() {
80
- const e = m(0), t = u(() => ++e.current, []), r = u(() => e.current, []), s = u((n) => n === e.current, []), o = u(() => {
78
+ b(K, "usePromiseState");
79
+ function T() {
80
+ const e = v(0), t = c(() => ++e.current, []), n = c(() => e.current, []), o = c((s) => s === e.current, []), i = c(() => {
81
81
  e.current++;
82
- }, []), i = u(() => {
82
+ }, []), l = c(() => {
83
83
  e.current = 0;
84
84
  }, []);
85
85
  return h(() => ({
86
86
  generate: t,
87
- current: r,
88
- isLatest: s,
89
- invalidate: o,
90
- reset: i
91
- }), [t, r, s, o, i]);
87
+ current: n,
88
+ isLatest: o,
89
+ invalidate: i,
90
+ reset: l
91
+ }), [t, n, o, i, l]);
92
92
  }
93
- y(P, "useRequestId");
94
- function O(e) {
93
+ b(T, "useRequestId");
94
+ function P(e) {
95
95
  const {
96
96
  loading: t,
97
- result: r,
98
- error: s,
99
- status: o,
100
- setLoading: i,
101
- setSuccess: n,
102
- setError: c,
103
- setIdle: a
104
- } = D(e), l = p(), f = P(), d = e?.propagateError, g = u(
105
- async (E) => {
106
- if (!l())
107
- throw new Error("Component is unmounted");
108
- const w = f.generate();
109
- i();
97
+ result: n,
98
+ error: o,
99
+ status: i,
100
+ setLoading: l,
101
+ setSuccess: s,
102
+ setError: u,
103
+ setIdle: d
104
+ } = K(e), a = D(), f = T(), r = v(void 0), g = e?.propagateError, y = e?.onAbort, E = c(async () => {
105
+ try {
106
+ await y?.();
107
+ } catch (w) {
108
+ console.warn("useExecutePromise onAbort callback error:", w);
109
+ }
110
+ }, [y]), S = c(
111
+ async (w) => {
112
+ r.current && (r.current.abort(), await E());
113
+ const I = new AbortController();
114
+ r.current = I;
115
+ const A = f.generate();
116
+ l();
110
117
  try {
111
- const R = await (typeof E == "function" ? E() : E);
112
- return l() && f.isLatest(w) && await n(R), R;
113
- } catch (x) {
114
- if (l() && f.isLatest(w) && await c(x), d)
115
- throw x;
116
- return x;
118
+ const R = await w(I);
119
+ a() && f.isLatest(A) && await s(R);
120
+ } catch (R) {
121
+ if (R instanceof Error && R.name === "AbortError") {
122
+ a() && d();
123
+ return;
124
+ }
125
+ if (a() && f.isLatest(A) && await u(R), g)
126
+ throw R;
127
+ } finally {
128
+ r.current === I && (r.current = void 0);
117
129
  }
118
130
  },
119
- [i, n, c, l, f, d]
120
- ), b = u(() => {
121
- l() && a();
122
- }, [a, l]);
123
- return h(
131
+ [
132
+ l,
133
+ s,
134
+ u,
135
+ d,
136
+ a,
137
+ f,
138
+ g,
139
+ E
140
+ ]
141
+ ), m = c(() => {
142
+ a() && d();
143
+ }, [d, a]), x = c(async () => {
144
+ m(), r.current && (r.current.abort(), r.current = void 0, await E());
145
+ }, [m, E]);
146
+ return F(() => () => {
147
+ x();
148
+ }, [x]), h(
124
149
  () => ({
125
150
  loading: t,
126
- result: r,
127
- error: s,
128
- status: o,
129
- execute: g,
130
- reset: b
151
+ result: n,
152
+ error: o,
153
+ status: i,
154
+ execute: S,
155
+ reset: m,
156
+ abort: x
131
157
  }),
132
- [t, r, s, o, g, b]
158
+ [t, n, o, i, S, m, x]
133
159
  );
134
160
  }
135
- y(O, "useExecutePromise");
161
+ b(P, "useExecutePromise");
136
162
  function J() {
137
- const e = m(/* @__PURE__ */ new Map()), t = u((d) => e.current.get(d), []), r = u(
138
- (d, g) => e.current.set(d, g),
163
+ const e = v(/* @__PURE__ */ new Map()), t = c((r) => e.current.get(r), []), n = c(
164
+ (r, g) => e.current.set(r, g),
139
165
  []
140
- ), s = u((d) => e.current.has(d), []), o = u((d) => e.current.delete(d), []), i = u(() => e.current.clear(), []), n = u(() => e.current.keys(), []), c = u(() => e.current.values(), []), a = u(() => e.current.entries(), []), l = u(() => e.current[Symbol.iterator](), []), f = u((d) => (g) => {
141
- g ? e.current.set(d, g) : e.current.delete(d);
166
+ ), o = c((r) => e.current.has(r), []), i = c((r) => e.current.delete(r), []), l = c(() => e.current.clear(), []), s = c(() => e.current.keys(), []), u = c(() => e.current.values(), []), d = c(() => e.current.entries(), []), a = c(() => e.current[Symbol.iterator](), []), f = c((r) => (g) => {
167
+ g ? e.current.set(r, g) : e.current.delete(r);
142
168
  }, []);
143
- return C(() => () => {
169
+ return F(() => () => {
144
170
  e.current.clear();
145
171
  }, []), h(
146
172
  () => ({
147
173
  register: f,
148
174
  get: t,
149
- set: r,
150
- has: s,
151
- delete: o,
152
- clear: i,
153
- keys: n,
154
- values: c,
155
- entries: a,
175
+ set: n,
176
+ has: o,
177
+ delete: i,
178
+ clear: l,
179
+ keys: s,
180
+ values: u,
181
+ entries: d,
156
182
  get size() {
157
183
  return e.current.size;
158
184
  },
159
- [Symbol.iterator]: l
185
+ [Symbol.iterator]: a
160
186
  }),
161
- [f, t, r, s, o, i, n, c, a, l]
187
+ [f, t, n, o, i, l, s, u, d, a]
162
188
  );
163
189
  }
164
- y(J, "useRefs");
165
- function M(e, t) {
190
+ b(J, "useRefs");
191
+ function p(e, t) {
166
192
  if (t.leading === !1 && t.trailing === !1)
167
193
  throw new Error(
168
194
  "useDebouncedCallback: at least one of leading or trailing must be true"
169
195
  );
170
- const r = m(
196
+ const n = v(
171
197
  void 0
172
- ), s = m(!1), o = S(e), i = S(t), n = u(() => r.current !== void 0, []), c = u(() => {
173
- r.current !== void 0 && (clearTimeout(r.current), r.current = void 0);
198
+ ), o = v(!1), i = C(e), l = C(t), s = c(() => n.current !== void 0, []), u = c(() => {
199
+ n.current !== void 0 && (clearTimeout(n.current), n.current = void 0);
174
200
  }, []);
175
- C(() => () => {
176
- c();
177
- }, [c]);
178
- const a = u(
179
- (...l) => {
180
- const { leading: f = !1, trailing: d = !0, delay: g } = i.current;
181
- c(), f && !s.current && (o.current(...l), s.current = !0), d && (r.current = setTimeout(() => {
182
- s.current || o.current(...l), s.current = !1, r.current = void 0;
201
+ F(() => () => {
202
+ u();
203
+ }, [u]);
204
+ const d = c(
205
+ (...a) => {
206
+ const { leading: f = !1, trailing: r = !0, delay: g } = l.current;
207
+ u(), f && !o.current && (i.current(...a), o.current = !0), r && (n.current = setTimeout(() => {
208
+ o.current || i.current(...a), o.current = !1, n.current = void 0;
183
209
  }, g));
184
210
  },
185
- [o, i, c]
211
+ [i, l, u]
186
212
  );
187
213
  return h(
188
214
  () => ({
189
- run: a,
190
- cancel: c,
191
- isPending: n
215
+ run: d,
216
+ cancel: u,
217
+ isPending: s
192
218
  }),
193
- [a, c, n]
219
+ [d, u, s]
194
220
  );
195
221
  }
196
- y(M, "useDebouncedCallback");
222
+ b(p, "useDebouncedCallback");
197
223
  function W(e) {
198
- const { loading: t, result: r, error: s, execute: o, reset: i, status: n } = O(e), { run: c, cancel: a, isPending: l } = M(
199
- o,
224
+ const { loading: t, result: n, error: o, execute: i, reset: l, abort: s, status: u } = P(e), { run: d, cancel: a, isPending: f } = p(
225
+ i,
200
226
  e.debounce
201
227
  );
202
228
  return h(
203
229
  () => ({
204
230
  loading: t,
205
- result: r,
206
- error: s,
207
- status: n,
208
- run: c,
231
+ result: n,
232
+ error: o,
233
+ status: u,
234
+ reset: l,
235
+ abort: s,
236
+ run: d,
209
237
  cancel: a,
210
- isPending: l,
211
- reset: i
238
+ isPending: f
212
239
  }),
213
- [t, r, s, n, c, a, l, i]
240
+ [t, n, o, u, l, s, d, a, f]
214
241
  );
215
242
  }
216
- y(W, "useDebouncedExecutePromise");
243
+ b(W, "useDebouncedExecutePromise");
217
244
  function X() {
218
- const [, e] = A((t) => t + 1, 0);
245
+ const [, e] = O((t) => t + 1, 0);
219
246
  return e;
220
247
  }
221
- y(X, "useForceUpdate");
248
+ b(X, "useForceUpdate");
222
249
  function Y(e, t) {
223
- const r = u(
224
- (n) => e.addListener({
225
- name: z.generate("useKeyStorage"),
250
+ const n = c(
251
+ (s) => e.addListener({
252
+ name: q.generate("useKeyStorage"),
226
253
  // Generate unique listener name
227
- handle: n
254
+ handle: s
228
255
  // Callback to trigger React re-render on storage changes
229
256
  }),
230
257
  [e]
231
258
  // Recreate subscription only if keyStorage changes
232
- ), s = u(() => {
233
- const n = e.get();
234
- return n !== null ? n : t ?? null;
235
- }, [e, t]), o = U(r, s, s), i = u(
236
- (n) => e.set(n),
259
+ ), o = c(() => {
260
+ const s = e.get();
261
+ return s !== null ? s : t ?? null;
262
+ }, [e, t]), i = k(n, o, o), l = c(
263
+ (s) => e.set(s),
237
264
  [e]
238
265
  // Recreate setter only if keyStorage changes
239
266
  );
240
- return [o, i];
267
+ return [i, l];
241
268
  }
242
- y(Y, "useKeyStorage");
269
+ b(Y, "useKeyStorage");
243
270
  function N(e) {
244
- const { fetcher: t = G.default } = e || {}, {
245
- loading: r,
246
- result: s,
247
- error: o,
248
- status: i,
249
- setLoading: n,
250
- setSuccess: c,
251
- setError: a,
252
- setIdle: l
253
- } = D(e), [f, d] = Q(
271
+ const { fetcher: t = U.default } = e || {}, {
272
+ loading: n,
273
+ result: o,
274
+ error: i,
275
+ status: l,
276
+ execute: s,
277
+ reset: u,
278
+ abort: d
279
+ } = P(e), [a, f] = Q(
254
280
  void 0
255
- ), g = p(), b = m(void 0), E = P(), w = S(e), x = K(t), R = u(
256
- async (I) => {
257
- b.current && b.current.abort(), b.current = I.abortController ?? new AbortController(), I.abortController = b.current;
258
- const F = E.generate();
259
- n();
281
+ ), r = C(e), g = z(t), y = c(
282
+ async (m) => {
260
283
  try {
261
- const v = await x.exchange(
262
- I,
263
- w.current
264
- );
265
- g() && E.isLatest(F) && d(v);
266
- const q = await v.extractResult();
267
- g() && E.isLatest(F) && await c(q);
268
- } catch (v) {
269
- if (v instanceof Error && v.name === "AbortError") {
270
- g() && l();
271
- return;
272
- }
273
- g() && E.isLatest(F) && await a(v);
274
- } finally {
275
- b.current === I.abortController && (b.current = void 0);
284
+ await s(async (x) => {
285
+ m.abortController = x;
286
+ const w = await g.exchange(
287
+ m,
288
+ r.current
289
+ );
290
+ return f(w), await w.extractResult();
291
+ });
292
+ } catch (x) {
293
+ throw f(void 0), x;
276
294
  }
277
295
  },
278
- [
279
- x,
280
- g,
281
- w,
282
- n,
283
- c,
284
- l,
285
- a,
286
- E
287
- ]
288
- );
289
- return C(() => () => {
290
- b.current?.abort(), b.current = void 0;
291
- }, []), h(
296
+ [s, g, r]
297
+ ), E = c(() => {
298
+ u(), f(void 0);
299
+ }, [u]), S = c(() => {
300
+ d(), f(void 0);
301
+ }, [d]);
302
+ return h(
292
303
  () => ({
293
- loading: r,
294
- result: s,
295
- error: o,
296
- status: i,
297
- exchange: f,
298
- execute: R
304
+ loading: n,
305
+ result: o,
306
+ error: i,
307
+ status: l,
308
+ exchange: a,
309
+ execute: y,
310
+ reset: E,
311
+ abort: S
299
312
  }),
300
- [r, s, o, i, f, R]
313
+ [n, o, i, l, a, y, E, S]
301
314
  );
302
315
  }
303
- y(N, "useFetcher");
316
+ b(N, "useFetcher");
304
317
  function Z(e) {
305
- const { loading: t, result: r, error: s, status: o, exchange: i, execute: n } = N(e), { run: c, cancel: a, isPending: l } = M(
306
- n,
318
+ const { loading: t, result: n, error: o, status: i, exchange: l, execute: s, reset: u, abort: d } = N(e), { run: a, cancel: f, isPending: r } = p(
319
+ s,
307
320
  e.debounce
308
321
  );
309
322
  return h(
310
323
  () => ({
311
324
  loading: t,
312
- result: r,
313
- error: s,
314
- status: o,
315
- exchange: i,
316
- run: c,
317
- cancel: a,
318
- isPending: l
325
+ result: n,
326
+ error: o,
327
+ status: i,
328
+ exchange: l,
329
+ reset: u,
330
+ abort: d,
331
+ run: a,
332
+ cancel: f,
333
+ isPending: r
319
334
  }),
320
- [t, r, s, o, i, c, a, l]
335
+ [t, n, o, i, l, u, d, a, f, r]
321
336
  );
322
337
  }
323
- y(Z, "useDebouncedFetcher");
338
+ b(Z, "useDebouncedFetcher");
324
339
  function L(e) {
325
- const t = S(e), {
326
- loading: r,
327
- result: s,
328
- error: o,
329
- status: i,
330
- execute: n,
331
- reset: c
332
- } = O(t.current), a = m(e.initialQuery), l = u(async () => t.current.execute(
340
+ const t = C(e), {
341
+ loading: n,
342
+ result: o,
343
+ error: i,
344
+ status: l,
345
+ execute: s,
346
+ reset: u,
347
+ abort: d
348
+ } = P(t.current), a = v(e.initialQuery), f = c(async (E) => t.current.execute(
333
349
  a.current,
334
- t.current.attributes
335
- ), [a, t]), f = u(() => n(l), [n, l]), d = u(() => a.current, [a]), g = u(
336
- (b) => {
337
- a.current = b, t.current.autoExecute && f();
350
+ t.current.attributes,
351
+ E
352
+ ), [a, t]), r = c(() => s(f), [s, f]), g = c(() => a.current, [a]), y = c(
353
+ (E) => {
354
+ a.current = E, t.current.autoExecute && r();
338
355
  },
339
- [a, t, f]
356
+ [a, t, r]
340
357
  );
341
- return C(() => {
342
- t.current.autoExecute && f();
343
- }, [t, f]), h(
358
+ return F(() => {
359
+ t.current.autoExecute && r();
360
+ }, [t, r]), h(
344
361
  () => ({
345
- loading: r,
346
- result: s,
347
- error: o,
348
- status: i,
349
- execute: f,
350
- reset: c,
351
- getQuery: d,
352
- setQuery: g
362
+ loading: n,
363
+ result: o,
364
+ error: i,
365
+ status: l,
366
+ execute: r,
367
+ reset: u,
368
+ abort: d,
369
+ getQuery: g,
370
+ setQuery: y
353
371
  }),
354
372
  [
355
- r,
356
- s,
373
+ n,
357
374
  o,
358
375
  i,
359
- f,
360
- c,
376
+ l,
377
+ r,
378
+ u,
361
379
  d,
362
- g
380
+ g,
381
+ y
363
382
  ]
364
383
  );
365
384
  }
366
- y(L, "useQuery");
385
+ b(L, "useQuery");
367
386
  function _(e) {
368
387
  return L(e);
369
388
  }
370
- y(_, "usePagedQuery");
389
+ b(_, "usePagedQuery");
371
390
  function $(e) {
372
391
  return L(e);
373
392
  }
374
- y($, "useSingleQuery");
393
+ b($, "useSingleQuery");
375
394
  function ee(e) {
376
395
  return L(e);
377
396
  }
378
- y(ee, "useCountQuery");
397
+ b(ee, "useCountQuery");
379
398
  function te(e) {
380
399
  return L(e);
381
400
  }
382
- y(te, "useListQuery");
401
+ b(te, "useListQuery");
383
402
  function re(e) {
384
403
  return L(
385
404
  e
386
405
  );
387
406
  }
388
- y(re, "useListStreamQuery");
407
+ b(re, "useListStreamQuery");
389
408
  function ne(e) {
390
- const { loading: t, result: r, error: s, status: o, execute: i, reset: n, getQuery: c, setQuery: a } = L(e), { run: l, cancel: f, isPending: d } = M(
391
- i,
409
+ const { loading: t, result: n, error: o, status: i, execute: l, reset: s, abort: u, getQuery: d, setQuery: a } = L(e), { run: f, cancel: r, isPending: g } = p(
410
+ l,
392
411
  e.debounce
393
412
  );
394
413
  return h(
395
414
  () => ({
396
415
  loading: t,
397
- result: r,
398
- error: s,
399
- status: o,
400
- reset: n,
401
- getQuery: c,
416
+ result: n,
417
+ error: o,
418
+ status: i,
419
+ reset: s,
420
+ abort: u,
421
+ getQuery: d,
402
422
  setQuery: a,
403
- run: l,
404
- cancel: f,
405
- isPending: d
423
+ run: f,
424
+ cancel: r,
425
+ isPending: g
406
426
  }),
407
427
  [
408
428
  t,
409
- r,
410
- s,
411
- o,
412
429
  n,
413
- c,
430
+ o,
431
+ i,
432
+ s,
433
+ u,
434
+ d,
414
435
  a,
415
- l,
416
436
  f,
417
- d
437
+ r,
438
+ g
418
439
  ]
419
440
  );
420
441
  }
421
- y(ne, "useDebouncedQuery");
442
+ b(ne, "useDebouncedQuery");
422
443
  export {
423
- T as PromiseStatus,
444
+ G as PromiseStatus,
424
445
  ee as useCountQuery,
425
- M as useDebouncedCallback,
446
+ p as useDebouncedCallback,
426
447
  W as useDebouncedExecutePromise,
427
448
  Z as useDebouncedFetcher,
428
449
  ne as useDebouncedQuery,
429
- O as useExecutePromise,
450
+ P as useExecutePromise,
430
451
  N as useFetcher,
431
452
  X as useForceUpdate,
432
453
  Y as useKeyStorage,
433
- S as useLatest,
454
+ C as useLatest,
434
455
  te as useListQuery,
435
456
  re as useListStreamQuery,
436
- p as useMounted,
457
+ D as useMounted,
437
458
  _ as usePagedQuery,
438
- D as usePromiseState,
459
+ K as usePromiseState,
439
460
  L as useQuery,
440
461
  J as useRefs,
441
- P as useRequestId,
462
+ T as useRequestId,
442
463
  $ as useSingleQuery
443
464
  };
444
465
  //# sourceMappingURL=index.es.js.map