@plasmicpkgs/lottie-react 0.0.237 → 0.0.239
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/lottie-react.cjs.development.js +120 -317
- package/dist/lottie-react.cjs.development.js.map +1 -1
- package/dist/lottie-react.cjs.production.min.js +1 -1
- package/dist/lottie-react.cjs.production.min.js.map +1 -1
- package/dist/lottie-react.esm.js +120 -317
- package/dist/lottie-react.esm.js.map +1 -1
- package/package.json +3 -3
|
@@ -44,306 +44,113 @@ function _extends() {
|
|
|
44
44
|
return n;
|
|
45
45
|
}, _extends.apply(null, arguments);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
return o(a, "_invoke", {
|
|
82
|
-
value: makeInvokeMethod(t, r, c)
|
|
83
|
-
}), a;
|
|
84
|
-
}
|
|
85
|
-
function tryCatch(t, e, r) {
|
|
86
|
-
try {
|
|
87
|
-
return {
|
|
88
|
-
type: "normal",
|
|
89
|
-
arg: t.call(e, r)
|
|
90
|
-
};
|
|
91
|
-
} catch (t) {
|
|
92
|
-
return {
|
|
93
|
-
type: "throw",
|
|
94
|
-
arg: t
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
e.wrap = wrap;
|
|
99
|
-
var h = "suspendedStart",
|
|
100
|
-
l = "suspendedYield",
|
|
101
|
-
f = "executing",
|
|
102
|
-
s = "completed",
|
|
103
|
-
y = {};
|
|
104
|
-
function Generator() {}
|
|
105
|
-
function GeneratorFunction() {}
|
|
106
|
-
function GeneratorFunctionPrototype() {}
|
|
107
|
-
var p = {};
|
|
108
|
-
define(p, a, function () {
|
|
109
|
-
return this;
|
|
110
|
-
});
|
|
111
|
-
var d = Object.getPrototypeOf,
|
|
112
|
-
v = d && d(d(values([])));
|
|
113
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
114
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
115
|
-
function defineIteratorMethods(t) {
|
|
116
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
117
|
-
define(t, e, function (t) {
|
|
118
|
-
return this._invoke(e, t);
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
function AsyncIterator(t, e) {
|
|
123
|
-
function invoke(r, o, i, a) {
|
|
124
|
-
var c = tryCatch(t[r], t, o);
|
|
125
|
-
if ("throw" !== c.type) {
|
|
126
|
-
var u = c.arg,
|
|
127
|
-
h = u.value;
|
|
128
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
129
|
-
invoke("next", t, i, a);
|
|
130
|
-
}, function (t) {
|
|
131
|
-
invoke("throw", t, i, a);
|
|
132
|
-
}) : e.resolve(h).then(function (t) {
|
|
133
|
-
u.value = t, i(u);
|
|
134
|
-
}, function (t) {
|
|
135
|
-
return invoke("throw", t, i, a);
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
a(c.arg);
|
|
139
|
-
}
|
|
140
|
-
var r;
|
|
141
|
-
o(this, "_invoke", {
|
|
142
|
-
value: function (t, n) {
|
|
143
|
-
function callInvokeWithMethodAndArg() {
|
|
144
|
-
return new e(function (e, r) {
|
|
145
|
-
invoke(t, n, e, r);
|
|
146
|
-
});
|
|
47
|
+
function _regenerator() {
|
|
48
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
49
|
+
var e,
|
|
50
|
+
t,
|
|
51
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
52
|
+
n = r.iterator || "@@iterator",
|
|
53
|
+
o = r.toStringTag || "@@toStringTag";
|
|
54
|
+
function i(r, n, o, i) {
|
|
55
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
56
|
+
u = Object.create(c.prototype);
|
|
57
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
58
|
+
var i,
|
|
59
|
+
c,
|
|
60
|
+
u,
|
|
61
|
+
f = 0,
|
|
62
|
+
p = o || [],
|
|
63
|
+
y = !1,
|
|
64
|
+
G = {
|
|
65
|
+
p: 0,
|
|
66
|
+
n: 0,
|
|
67
|
+
v: e,
|
|
68
|
+
a: d,
|
|
69
|
+
f: d.bind(e, 4),
|
|
70
|
+
d: function (t, r) {
|
|
71
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
function d(r, n) {
|
|
75
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
76
|
+
var o,
|
|
77
|
+
i = p[t],
|
|
78
|
+
d = G.p,
|
|
79
|
+
l = i[2];
|
|
80
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
147
81
|
}
|
|
148
|
-
|
|
82
|
+
if (o || r > 1) return a;
|
|
83
|
+
throw y = !0, n;
|
|
149
84
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
85
|
+
return function (o, p, l) {
|
|
86
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
87
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
88
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
89
|
+
try {
|
|
90
|
+
if (f = 2, i) {
|
|
91
|
+
if (c || (o = "next"), t = i[o]) {
|
|
92
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
93
|
+
if (!t.done) return t;
|
|
94
|
+
u = t.value, c < 2 && (c = 0);
|
|
95
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
96
|
+
i = e;
|
|
97
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
98
|
+
} catch (t) {
|
|
99
|
+
i = e, c = 1, u = t;
|
|
100
|
+
} finally {
|
|
101
|
+
f = 1;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
158
104
|
return {
|
|
159
105
|
value: t,
|
|
160
|
-
done:
|
|
106
|
+
done: y
|
|
161
107
|
};
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
var c = n.delegate;
|
|
165
|
-
if (c) {
|
|
166
|
-
var u = maybeInvokeDelegate(c, n);
|
|
167
|
-
if (u) {
|
|
168
|
-
if (u === y) continue;
|
|
169
|
-
return u;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
173
|
-
if (o === h) throw o = s, n.arg;
|
|
174
|
-
n.dispatchException(n.arg);
|
|
175
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
176
|
-
o = f;
|
|
177
|
-
var p = tryCatch(e, r, n);
|
|
178
|
-
if ("normal" === p.type) {
|
|
179
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
180
|
-
return {
|
|
181
|
-
value: p.arg,
|
|
182
|
-
done: n.done
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
function maybeInvokeDelegate(e, r) {
|
|
190
|
-
var n = r.method,
|
|
191
|
-
o = e.iterator[n];
|
|
192
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
193
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
194
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
195
|
-
var a = i.arg;
|
|
196
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
197
|
-
}
|
|
198
|
-
function pushTryEntry(t) {
|
|
199
|
-
var e = {
|
|
200
|
-
tryLoc: t[0]
|
|
201
|
-
};
|
|
202
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
203
|
-
}
|
|
204
|
-
function resetTryEntry(t) {
|
|
205
|
-
var e = t.completion || {};
|
|
206
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
207
|
-
}
|
|
208
|
-
function Context(t) {
|
|
209
|
-
this.tryEntries = [{
|
|
210
|
-
tryLoc: "root"
|
|
211
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
108
|
+
};
|
|
109
|
+
}(r, o, i), !0), u;
|
|
212
110
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
return i.next = i;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
111
|
+
var a = {};
|
|
112
|
+
function Generator() {}
|
|
113
|
+
function GeneratorFunction() {}
|
|
114
|
+
function GeneratorFunctionPrototype() {}
|
|
115
|
+
t = Object.getPrototypeOf;
|
|
116
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
117
|
+
return this;
|
|
118
|
+
}), t),
|
|
119
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
120
|
+
function f(e) {
|
|
121
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
228
122
|
}
|
|
229
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
230
|
-
value: GeneratorFunctionPrototype,
|
|
231
|
-
configurable: !0
|
|
232
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
233
|
-
value: GeneratorFunction,
|
|
234
|
-
configurable: !0
|
|
235
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
236
|
-
var e = "function" == typeof t && t.constructor;
|
|
237
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
238
|
-
}, e.mark = function (t) {
|
|
239
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
240
|
-
}, e.awrap = function (t) {
|
|
241
|
-
return {
|
|
242
|
-
__await: t
|
|
243
|
-
};
|
|
244
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
123
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
245
124
|
return this;
|
|
246
|
-
}),
|
|
247
|
-
void 0 === i && (i = Promise);
|
|
248
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
249
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
250
|
-
return t.done ? t.value : a.next();
|
|
251
|
-
});
|
|
252
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
253
|
-
return this;
|
|
254
|
-
}), define(g, "toString", function () {
|
|
125
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
255
126
|
return "[object Generator]";
|
|
256
|
-
}),
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
return r.reverse(), function next() {
|
|
261
|
-
for (; r.length;) {
|
|
262
|
-
var t = r.pop();
|
|
263
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
264
|
-
}
|
|
265
|
-
return next.done = !0, next;
|
|
127
|
+
}), (_regenerator = function () {
|
|
128
|
+
return {
|
|
129
|
+
w: i,
|
|
130
|
+
m: f
|
|
266
131
|
};
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
function handle(n, o) {
|
|
282
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
283
|
-
}
|
|
284
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
285
|
-
var i = this.tryEntries[o],
|
|
286
|
-
a = i.completion;
|
|
287
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
288
|
-
if (i.tryLoc <= this.prev) {
|
|
289
|
-
var c = n.call(i, "catchLoc"),
|
|
290
|
-
u = n.call(i, "finallyLoc");
|
|
291
|
-
if (c && u) {
|
|
292
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
293
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
294
|
-
} else if (c) {
|
|
295
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
296
|
-
} else {
|
|
297
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
298
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
},
|
|
303
|
-
abrupt: function (t, e) {
|
|
304
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
305
|
-
var o = this.tryEntries[r];
|
|
306
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
307
|
-
var i = o;
|
|
308
|
-
break;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
312
|
-
var a = i ? i.completion : {};
|
|
313
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
314
|
-
},
|
|
315
|
-
complete: function (t, e) {
|
|
316
|
-
if ("throw" === t.type) throw t.arg;
|
|
317
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
318
|
-
},
|
|
319
|
-
finish: function (t) {
|
|
320
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
321
|
-
var r = this.tryEntries[e];
|
|
322
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
323
|
-
}
|
|
324
|
-
},
|
|
325
|
-
catch: function (t) {
|
|
326
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
327
|
-
var r = this.tryEntries[e];
|
|
328
|
-
if (r.tryLoc === t) {
|
|
329
|
-
var n = r.completion;
|
|
330
|
-
if ("throw" === n.type) {
|
|
331
|
-
var o = n.arg;
|
|
332
|
-
resetTryEntry(r);
|
|
333
|
-
}
|
|
334
|
-
return o;
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
throw Error("illegal catch attempt");
|
|
338
|
-
},
|
|
339
|
-
delegateYield: function (e, r, n) {
|
|
340
|
-
return this.delegate = {
|
|
341
|
-
iterator: values(e),
|
|
342
|
-
resultName: r,
|
|
343
|
-
nextLoc: n
|
|
344
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
132
|
+
})();
|
|
133
|
+
}
|
|
134
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
135
|
+
var i = Object.defineProperty;
|
|
136
|
+
try {
|
|
137
|
+
i({}, "", {});
|
|
138
|
+
} catch (e) {
|
|
139
|
+
i = 0;
|
|
140
|
+
}
|
|
141
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
142
|
+
function o(r, n) {
|
|
143
|
+
_regeneratorDefine(e, r, function (e) {
|
|
144
|
+
return this._invoke(r, n, e);
|
|
145
|
+
});
|
|
345
146
|
}
|
|
346
|
-
|
|
147
|
+
r ? i ? i(e, r, {
|
|
148
|
+
value: n,
|
|
149
|
+
enumerable: !t,
|
|
150
|
+
configurable: !t,
|
|
151
|
+
writable: !t
|
|
152
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
153
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
347
154
|
}
|
|
348
155
|
|
|
349
156
|
var isBrowser = typeof window !== "undefined";
|
|
@@ -982,54 +789,50 @@ function fetchAnimationData(_x) {
|
|
|
982
789
|
return _fetchAnimationData.apply(this, arguments);
|
|
983
790
|
}
|
|
984
791
|
function _fetchAnimationData() {
|
|
985
|
-
_fetchAnimationData = _asyncToGenerator(/*#__PURE__*/
|
|
986
|
-
return
|
|
987
|
-
while (1) switch (_context2.
|
|
792
|
+
_fetchAnimationData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(url) {
|
|
793
|
+
return _regenerator().w(function (_context2) {
|
|
794
|
+
while (1) switch (_context2.n) {
|
|
988
795
|
case 0:
|
|
989
796
|
if (!(url in DATA_CACHE)) {
|
|
990
|
-
_context2.
|
|
797
|
+
_context2.n = 1;
|
|
991
798
|
break;
|
|
992
799
|
}
|
|
993
|
-
return _context2.
|
|
994
|
-
case
|
|
800
|
+
return _context2.a(2, DATA_CACHE[url]);
|
|
801
|
+
case 1:
|
|
995
802
|
if (!(url in PROMISE_CACHE)) {
|
|
996
|
-
_context2.
|
|
803
|
+
_context2.n = 2;
|
|
997
804
|
break;
|
|
998
805
|
}
|
|
999
|
-
return _context2.
|
|
1000
|
-
case
|
|
1001
|
-
PROMISE_CACHE[url] = _asyncToGenerator(/*#__PURE__*/
|
|
806
|
+
return _context2.a(2, PROMISE_CACHE[url]);
|
|
807
|
+
case 2:
|
|
808
|
+
PROMISE_CACHE[url] = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
1002
809
|
var resp, json;
|
|
1003
|
-
return
|
|
1004
|
-
while (1) switch (_context.
|
|
810
|
+
return _regenerator().w(function (_context) {
|
|
811
|
+
while (1) switch (_context.n) {
|
|
1005
812
|
case 0:
|
|
1006
|
-
_context.
|
|
813
|
+
_context.n = 1;
|
|
1007
814
|
return fetch(url);
|
|
1008
|
-
case
|
|
1009
|
-
resp = _context.
|
|
815
|
+
case 1:
|
|
816
|
+
resp = _context.v;
|
|
1010
817
|
if (resp.ok) {
|
|
1011
|
-
_context.
|
|
818
|
+
_context.n = 2;
|
|
1012
819
|
break;
|
|
1013
820
|
}
|
|
1014
821
|
throw new Error("Error downloading Lottie animation from " + url + ": " + resp.statusText);
|
|
1015
|
-
case
|
|
1016
|
-
_context.
|
|
822
|
+
case 2:
|
|
823
|
+
_context.n = 3;
|
|
1017
824
|
return resp.json();
|
|
1018
|
-
case
|
|
1019
|
-
json = _context.
|
|
825
|
+
case 3:
|
|
826
|
+
json = _context.v;
|
|
1020
827
|
// Only delete from PROMISE_CACHE upon success
|
|
1021
828
|
delete PROMISE_CACHE[url];
|
|
1022
|
-
return _context.
|
|
1023
|
-
case 10:
|
|
1024
|
-
case "end":
|
|
1025
|
-
return _context.stop();
|
|
829
|
+
return _context.a(2, json);
|
|
1026
830
|
}
|
|
1027
831
|
}, _callee);
|
|
1028
832
|
}))();
|
|
1029
|
-
return _context2.
|
|
1030
|
-
case
|
|
1031
|
-
|
|
1032
|
-
return _context2.stop();
|
|
833
|
+
return _context2.a(2, PROMISE_CACHE[url]);
|
|
834
|
+
case 3:
|
|
835
|
+
return _context2.a(2);
|
|
1033
836
|
}
|
|
1034
837
|
}, _callee2);
|
|
1035
838
|
}));
|