scratch-storage 6.1.6 → 6.1.7

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.
@@ -18,6 +18,20 @@ module.exports = __webpack_require__(14)("iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAAAAA
18
18
 
19
19
  /***/ },
20
20
 
21
+ /***/ 680
22
+ (module, __unused_webpack_exports, __webpack_require__) {
23
+
24
+ module.exports = __webpack_require__(14)("UklGRiYAAABXQVZFZm10IBAAAAABAAEAIlYAAESsAAACABAAZGF0YQIAAAAAAA==")
25
+
26
+ /***/ },
27
+
28
+ /***/ 914
29
+ (module, __unused_webpack_exports, __webpack_require__) {
30
+
31
+ module.exports = __webpack_require__(14)("PD94bWwgdmVyc2lvbj0iMS4wIj8+Cjxzdmcgd2lkdGg9IjEyOCIgaGVpZ2h0PSIxMjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiA8Zz4KICA8cmVjdCBmaWxsPSIjQ0NDIiBoZWlnaHQ9IjEyOCIgd2lkdGg9IjEyOCIvPgogIDx0ZXh0IGZpbGw9ImJsYWNrIiB5PSIxMDciIHg9IjM1LjUiIGZvbnQtc2l6ZT0iMTI4Ij4/PC90ZXh0PgogPC9nPgo8L3N2Zz4K")
32
+
33
+ /***/ },
34
+
21
35
  /***/ 14
22
36
  (module, __unused_webpack_exports, __webpack_require__) {
23
37
 
@@ -40,353 +54,160 @@ module.exports = function (base64Data) {
40
54
 
41
55
  /***/ },
42
56
 
43
- /***/ 15
44
- (module, exports, __webpack_require__) {
45
-
46
- var Transform = __webpack_require__(408),
47
- Filter = __webpack_require__(84);
48
-
49
- var log = new Transform(),
50
- slice = Array.prototype.slice;
51
-
52
- exports = module.exports = function create(name) {
53
- var o = function() { log.write(name, undefined, slice.call(arguments)); return o; };
54
- o.debug = function() { log.write(name, 'debug', slice.call(arguments)); return o; };
55
- o.info = function() { log.write(name, 'info', slice.call(arguments)); return o; };
56
- o.warn = function() { log.write(name, 'warn', slice.call(arguments)); return o; };
57
- o.error = function() { log.write(name, 'error', slice.call(arguments)); return o; };
58
- o.log = o.debug; // for interface compliance with Node and browser consoles
59
- o.suggest = exports.suggest;
60
- o.format = log.format;
61
- return o;
62
- };
63
-
64
- // filled in separately
65
- exports.defaultBackend = exports.defaultFormatter = null;
66
-
67
- exports.pipe = function(dest) {
68
- return log.pipe(dest);
69
- };
70
-
71
- exports.end = exports.unpipe = exports.disable = function(from) {
72
- return log.unpipe(from);
73
- };
74
-
75
- exports.Transform = Transform;
76
- exports.Filter = Filter;
77
- // this is the default filter that's applied when .enable() is called normally
78
- // you can bypass it completely and set up your own pipes
79
- exports.suggest = new Filter();
80
-
81
- exports.enable = function() {
82
- if(exports.defaultFormatter) {
83
- return log.pipe(exports.suggest) // filter
84
- .pipe(exports.defaultFormatter) // formatter
85
- .pipe(exports.defaultBackend); // backend
86
- }
87
- return log.pipe(exports.suggest) // filter
88
- .pipe(exports.defaultBackend); // formatter
89
- };
90
-
91
-
57
+ /***/ 526
58
+ (__unused_webpack_module, exports) {
92
59
 
93
- /***/ },
60
+ "use strict";
94
61
 
95
- /***/ 84
96
- (module, __unused_webpack_exports, __webpack_require__) {
97
62
 
98
- // default filter
99
- var Transform = __webpack_require__(408);
63
+ exports.byteLength = byteLength
64
+ exports.toByteArray = toByteArray
65
+ exports.fromByteArray = fromByteArray
100
66
 
101
- var levelMap = { debug: 1, info: 2, warn: 3, error: 4 };
67
+ var lookup = []
68
+ var revLookup = []
69
+ var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
102
70
 
103
- function Filter() {
104
- this.enabled = true;
105
- this.defaultResult = true;
106
- this.clear();
71
+ var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
72
+ for (var i = 0, len = code.length; i < len; ++i) {
73
+ lookup[i] = code[i]
74
+ revLookup[code.charCodeAt(i)] = i
107
75
  }
108
76
 
109
- Transform.mixin(Filter);
110
-
111
- // allow all matching, with level >= given level
112
- Filter.prototype.allow = function(name, level) {
113
- this._white.push({ n: name, l: levelMap[level] });
114
- return this;
115
- };
116
-
117
- // deny all matching, with level <= given level
118
- Filter.prototype.deny = function(name, level) {
119
- this._black.push({ n: name, l: levelMap[level] });
120
- return this;
121
- };
122
-
123
- Filter.prototype.clear = function() {
124
- this._white = [];
125
- this._black = [];
126
- return this;
127
- };
128
-
129
- function test(rule, name) {
130
- // use .test for RegExps
131
- return (rule.n.test ? rule.n.test(name) : rule.n == name);
132
- };
133
-
134
- Filter.prototype.test = function(name, level) {
135
- var i, len = Math.max(this._white.length, this._black.length);
136
- for(i = 0; i < len; i++) {
137
- if(this._white[i] && test(this._white[i], name) && levelMap[level] >= this._white[i].l) {
138
- return true;
139
- }
140
- if(this._black[i] && test(this._black[i], name) && levelMap[level] <= this._black[i].l) {
141
- return false;
142
- }
143
- }
144
- return this.defaultResult;
145
- };
146
-
147
- Filter.prototype.write = function(name, level, args) {
148
- if(!this.enabled || this.test(name, level)) {
149
- return this.emit('item', name, level, args);
150
- }
151
- };
152
-
153
- module.exports = Filter;
154
-
155
-
156
- /***/ },
157
-
158
- /***/ 113
159
- (module, __unused_webpack_exports, __webpack_require__) {
160
-
161
- var Transform = __webpack_require__(408),
162
- cache = false;
163
-
164
- var logger = new Transform();
165
-
166
- logger.write = function(name, level, args) {
167
- if(typeof window == 'undefined' || typeof JSON == 'undefined' || !JSON.stringify || !JSON.parse) return;
168
- try {
169
- if(!cache) { cache = (window.localStorage.minilog ? JSON.parse(window.localStorage.minilog) : []); }
170
- cache.push([ new Date().toString(), name, level, args ]);
171
- window.localStorage.minilog = JSON.stringify(cache);
172
- } catch(e) {}
173
- };
174
-
175
- module.exports = logger;
176
-
177
- /***/ },
77
+ // Support decoding URL-safe base64 strings, as Node.js does.
78
+ // See: https://en.wikipedia.org/wiki/Base64#URL_applications
79
+ revLookup['-'.charCodeAt(0)] = 62
80
+ revLookup['_'.charCodeAt(0)] = 63
178
81
 
179
- /***/ 173
180
- (module) {
82
+ function getLens (b64) {
83
+ var len = b64.length
181
84
 
182
- function M() { this._events = {}; }
183
- M.prototype = {
184
- on: function(ev, cb) {
185
- this._events || (this._events = {});
186
- var e = this._events;
187
- (e[ev] || (e[ev] = [])).push(cb);
188
- return this;
189
- },
190
- removeListener: function(ev, cb) {
191
- var e = this._events[ev] || [], i;
192
- for(i = e.length-1; i >= 0 && e[i]; i--){
193
- if(e[i] === cb || e[i].cb === cb) { e.splice(i, 1); }
194
- }
195
- },
196
- removeAllListeners: function(ev) {
197
- if(!ev) { this._events = {}; }
198
- else { this._events[ev] && (this._events[ev] = []); }
199
- },
200
- listeners: function(ev) {
201
- return (this._events ? this._events[ev] || [] : []);
202
- },
203
- emit: function(ev) {
204
- this._events || (this._events = {});
205
- var args = Array.prototype.slice.call(arguments, 1), i, e = this._events[ev] || [];
206
- for(i = e.length-1; i >= 0 && e[i]; i--){
207
- e[i].apply(this, args);
208
- }
209
- return this;
210
- },
211
- when: function(ev, cb) {
212
- return this.once(ev, cb, true);
213
- },
214
- once: function(ev, cb, when) {
215
- if(!cb) return this;
216
- function c() {
217
- if(!when) this.removeListener(ev, c);
218
- if(cb.apply(this, arguments) && when) this.removeListener(ev, c);
219
- }
220
- c.cb = cb;
221
- this.on(ev, c);
222
- return this;
223
- }
224
- };
225
- M.mixin = function(dest) {
226
- var o = M.prototype, k;
227
- for (k in o) {
228
- o.hasOwnProperty(k) && (dest.prototype[k] = o[k]);
85
+ if (len % 4 > 0) {
86
+ throw new Error('Invalid string. Length must be a multiple of 4')
229
87
  }
230
- };
231
- module.exports = M;
232
88
 
89
+ // Trim off extra bytes after placeholder bytes are found
90
+ // See: https://github.com/beatgammit/base64-js/issues/42
91
+ var validLen = b64.indexOf('=')
92
+ if (validLen === -1) validLen = len
233
93
 
234
- /***/ },
235
-
236
- /***/ 193
237
- (module) {
94
+ var placeHoldersLen = validLen === len
95
+ ? 0
96
+ : 4 - (validLen % 4)
238
97
 
239
- var hex = {
240
- black: '#000',
241
- red: '#c23621',
242
- green: '#25bc26',
243
- yellow: '#bbbb00',
244
- blue: '#492ee1',
245
- magenta: '#d338d3',
246
- cyan: '#33bbc8',
247
- gray: '#808080',
248
- purple: '#708'
249
- };
250
- function color(fg, isInverse) {
251
- if(isInverse) {
252
- return 'color: #fff; background: '+hex[fg]+';';
253
- } else {
254
- return 'color: '+hex[fg]+';';
255
- }
98
+ return [validLen, placeHoldersLen]
256
99
  }
257
100
 
258
- module.exports = color;
259
-
260
-
261
- /***/ },
262
-
263
- /***/ 251
264
- (__unused_webpack_module, exports) {
265
-
266
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
267
- exports.read = function (buffer, offset, isLE, mLen, nBytes) {
268
- var e, m
269
- var eLen = (nBytes * 8) - mLen - 1
270
- var eMax = (1 << eLen) - 1
271
- var eBias = eMax >> 1
272
- var nBits = -7
273
- var i = isLE ? (nBytes - 1) : 0
274
- var d = isLE ? -1 : 1
275
- var s = buffer[offset + i]
276
-
277
- i += d
278
-
279
- e = s & ((1 << (-nBits)) - 1)
280
- s >>= (-nBits)
281
- nBits += eLen
282
- for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
283
-
284
- m = e & ((1 << (-nBits)) - 1)
285
- e >>= (-nBits)
286
- nBits += mLen
287
- for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
288
-
289
- if (e === 0) {
290
- e = 1 - eBias
291
- } else if (e === eMax) {
292
- return m ? NaN : ((s ? -1 : 1) * Infinity)
293
- } else {
294
- m = m + Math.pow(2, mLen)
295
- e = e - eBias
296
- }
297
- return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
101
+ // base64 is 4/3 + up to two characters of the original data
102
+ function byteLength (b64) {
103
+ var lens = getLens(b64)
104
+ var validLen = lens[0]
105
+ var placeHoldersLen = lens[1]
106
+ return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
107
+ }
108
+
109
+ function _byteLength (b64, validLen, placeHoldersLen) {
110
+ return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
298
111
  }
299
112
 
300
- exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
301
- var e, m, c
302
- var eLen = (nBytes * 8) - mLen - 1
303
- var eMax = (1 << eLen) - 1
304
- var eBias = eMax >> 1
305
- var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
306
- var i = isLE ? 0 : (nBytes - 1)
307
- var d = isLE ? 1 : -1
308
- var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
113
+ function toByteArray (b64) {
114
+ var tmp
115
+ var lens = getLens(b64)
116
+ var validLen = lens[0]
117
+ var placeHoldersLen = lens[1]
309
118
 
310
- value = Math.abs(value)
119
+ var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
311
120
 
312
- if (isNaN(value) || value === Infinity) {
313
- m = isNaN(value) ? 1 : 0
314
- e = eMax
315
- } else {
316
- e = Math.floor(Math.log(value) / Math.LN2)
317
- if (value * (c = Math.pow(2, -e)) < 1) {
318
- e--
319
- c *= 2
320
- }
321
- if (e + eBias >= 1) {
322
- value += rt / c
323
- } else {
324
- value += rt * Math.pow(2, 1 - eBias)
325
- }
326
- if (value * c >= 2) {
327
- e++
328
- c /= 2
329
- }
121
+ var curByte = 0
330
122
 
331
- if (e + eBias >= eMax) {
332
- m = 0
333
- e = eMax
334
- } else if (e + eBias >= 1) {
335
- m = ((value * c) - 1) * Math.pow(2, mLen)
336
- e = e + eBias
337
- } else {
338
- m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
339
- e = 0
340
- }
123
+ // if there are placeholders, only get up to the last complete 4 chars
124
+ var len = placeHoldersLen > 0
125
+ ? validLen - 4
126
+ : validLen
127
+
128
+ var i
129
+ for (i = 0; i < len; i += 4) {
130
+ tmp =
131
+ (revLookup[b64.charCodeAt(i)] << 18) |
132
+ (revLookup[b64.charCodeAt(i + 1)] << 12) |
133
+ (revLookup[b64.charCodeAt(i + 2)] << 6) |
134
+ revLookup[b64.charCodeAt(i + 3)]
135
+ arr[curByte++] = (tmp >> 16) & 0xFF
136
+ arr[curByte++] = (tmp >> 8) & 0xFF
137
+ arr[curByte++] = tmp & 0xFF
341
138
  }
342
139
 
343
- for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
140
+ if (placeHoldersLen === 2) {
141
+ tmp =
142
+ (revLookup[b64.charCodeAt(i)] << 2) |
143
+ (revLookup[b64.charCodeAt(i + 1)] >> 4)
144
+ arr[curByte++] = tmp & 0xFF
145
+ }
344
146
 
345
- e = (e << mLen) | m
346
- eLen += mLen
347
- for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
147
+ if (placeHoldersLen === 1) {
148
+ tmp =
149
+ (revLookup[b64.charCodeAt(i)] << 10) |
150
+ (revLookup[b64.charCodeAt(i + 1)] << 4) |
151
+ (revLookup[b64.charCodeAt(i + 2)] >> 2)
152
+ arr[curByte++] = (tmp >> 8) & 0xFF
153
+ arr[curByte++] = tmp & 0xFF
154
+ }
348
155
 
349
- buffer[offset + i - d] |= s * 128
156
+ return arr
350
157
  }
351
158
 
159
+ function tripletToBase64 (num) {
160
+ return lookup[num >> 18 & 0x3F] +
161
+ lookup[num >> 12 & 0x3F] +
162
+ lookup[num >> 6 & 0x3F] +
163
+ lookup[num & 0x3F]
164
+ }
352
165
 
353
- /***/ },
354
-
355
- /***/ 260
356
- (module, __unused_webpack_exports, __webpack_require__) {
357
-
358
- var Transform = __webpack_require__(408);
166
+ function encodeChunk (uint8, start, end) {
167
+ var tmp
168
+ var output = []
169
+ for (var i = start; i < end; i += 3) {
170
+ tmp =
171
+ ((uint8[i] << 16) & 0xFF0000) +
172
+ ((uint8[i + 1] << 8) & 0xFF00) +
173
+ (uint8[i + 2] & 0xFF)
174
+ output.push(tripletToBase64(tmp))
175
+ }
176
+ return output.join('')
177
+ }
359
178
 
360
- var newlines = /\n+$/,
361
- logger = new Transform();
179
+ function fromByteArray (uint8) {
180
+ var tmp
181
+ var len = uint8.length
182
+ var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
183
+ var parts = []
184
+ var maxChunkLength = 16383 // must be multiple of 3
362
185
 
363
- logger.write = function(name, level, args) {
364
- var i = args.length-1;
365
- if (typeof console === 'undefined' || !console.log) {
366
- return;
367
- }
368
- if(console.log.apply) {
369
- return console.log.apply(console, [name, level].concat(args));
370
- } else if(JSON && JSON.stringify) {
371
- // console.log.apply is undefined in IE8 and IE9
372
- // for IE8/9: make console.log at least a bit less awful
373
- if(args[i] && typeof args[i] == 'string') {
374
- args[i] = args[i].replace(newlines, '');
375
- }
376
- try {
377
- for(i = 0; i < args.length; i++) {
378
- args[i] = JSON.stringify(args[i]);
379
- }
380
- } catch(e) {}
381
- console.log(args.join(' '));
186
+ // go through the array every three bytes, we'll deal with trailing stuff later
187
+ for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
188
+ parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
382
189
  }
383
- };
384
190
 
385
- logger.formatters = ['color', 'minilog'];
386
- logger.color = __webpack_require__(638);
387
- logger.minilog = __webpack_require__(658);
191
+ // pad the end with zeros, but make sure to not forget the extra bytes
192
+ if (extraBytes === 1) {
193
+ tmp = uint8[len - 1]
194
+ parts.push(
195
+ lookup[tmp >> 2] +
196
+ lookup[(tmp << 4) & 0x3F] +
197
+ '=='
198
+ )
199
+ } else if (extraBytes === 2) {
200
+ tmp = (uint8[len - 2] << 8) + uint8[len - 1]
201
+ parts.push(
202
+ lookup[tmp >> 10] +
203
+ lookup[(tmp >> 4) & 0x3F] +
204
+ lookup[(tmp << 2) & 0x3F] +
205
+ '='
206
+ )
207
+ }
388
208
 
389
- module.exports = logger;
209
+ return parts.join('')
210
+ }
390
211
 
391
212
 
392
213
  /***/ },
@@ -2491,16 +2312,122 @@ const hexSliceLookupTable = (function () {
2491
2312
  table[i16 + j] = alphabet[i] + alphabet[j]
2492
2313
  }
2493
2314
  }
2494
- return table
2495
- })()
2315
+ return table
2316
+ })()
2317
+
2318
+ // Return not function with Error if BigInt not supported
2319
+ function defineBigIntMethod (fn) {
2320
+ return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn
2321
+ }
2322
+
2323
+ function BufferBigIntNotDefined () {
2324
+ throw new Error('BigInt not supported')
2325
+ }
2326
+
2327
+
2328
+ /***/ },
2329
+
2330
+ /***/ 767
2331
+ (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
2332
+
2333
+ "use strict";
2334
+ (function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'");
2335
+ g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1):
2336
+ (m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length|
2337
+ 0,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q?
2338
+ f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof __webpack_require__.g?""+void 0==typeof self?this:self:__webpack_require__.g);//AnonyCo
2339
+ //# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map
2340
+
2341
+
2342
+ /***/ },
2343
+
2344
+ /***/ 251
2345
+ (__unused_webpack_module, exports) {
2346
+
2347
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
2348
+ exports.read = function (buffer, offset, isLE, mLen, nBytes) {
2349
+ var e, m
2350
+ var eLen = (nBytes * 8) - mLen - 1
2351
+ var eMax = (1 << eLen) - 1
2352
+ var eBias = eMax >> 1
2353
+ var nBits = -7
2354
+ var i = isLE ? (nBytes - 1) : 0
2355
+ var d = isLE ? -1 : 1
2356
+ var s = buffer[offset + i]
2357
+
2358
+ i += d
2359
+
2360
+ e = s & ((1 << (-nBits)) - 1)
2361
+ s >>= (-nBits)
2362
+ nBits += eLen
2363
+ for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
2364
+
2365
+ m = e & ((1 << (-nBits)) - 1)
2366
+ e >>= (-nBits)
2367
+ nBits += mLen
2368
+ for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
2369
+
2370
+ if (e === 0) {
2371
+ e = 1 - eBias
2372
+ } else if (e === eMax) {
2373
+ return m ? NaN : ((s ? -1 : 1) * Infinity)
2374
+ } else {
2375
+ m = m + Math.pow(2, mLen)
2376
+ e = e - eBias
2377
+ }
2378
+ return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
2379
+ }
2380
+
2381
+ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
2382
+ var e, m, c
2383
+ var eLen = (nBytes * 8) - mLen - 1
2384
+ var eMax = (1 << eLen) - 1
2385
+ var eBias = eMax >> 1
2386
+ var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
2387
+ var i = isLE ? 0 : (nBytes - 1)
2388
+ var d = isLE ? 1 : -1
2389
+ var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
2390
+
2391
+ value = Math.abs(value)
2392
+
2393
+ if (isNaN(value) || value === Infinity) {
2394
+ m = isNaN(value) ? 1 : 0
2395
+ e = eMax
2396
+ } else {
2397
+ e = Math.floor(Math.log(value) / Math.LN2)
2398
+ if (value * (c = Math.pow(2, -e)) < 1) {
2399
+ e--
2400
+ c *= 2
2401
+ }
2402
+ if (e + eBias >= 1) {
2403
+ value += rt / c
2404
+ } else {
2405
+ value += rt * Math.pow(2, 1 - eBias)
2406
+ }
2407
+ if (value * c >= 2) {
2408
+ e++
2409
+ c /= 2
2410
+ }
2411
+
2412
+ if (e + eBias >= eMax) {
2413
+ m = 0
2414
+ e = eMax
2415
+ } else if (e + eBias >= 1) {
2416
+ m = ((value * c) - 1) * Math.pow(2, mLen)
2417
+ e = e + eBias
2418
+ } else {
2419
+ m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
2420
+ e = 0
2421
+ }
2422
+ }
2496
2423
 
2497
- // Return not function with Error if BigInt not supported
2498
- function defineBigIntMethod (fn) {
2499
- return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn
2500
- }
2424
+ for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
2501
2425
 
2502
- function BufferBigIntNotDefined () {
2503
- throw new Error('BigInt not supported')
2426
+ e = (e << mLen) | m
2427
+ eLen += mLen
2428
+ for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
2429
+
2430
+ buffer[offset + i - d] |= s * 128
2504
2431
  }
2505
2432
 
2506
2433
 
@@ -3078,121 +3005,293 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/**
3078
3005
  Md5.prototype.digest = function () {
3079
3006
  this.finalize();
3080
3007
 
3081
- var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3;
3082
- return [
3083
- h0 & 0xFF, (h0 >> 8) & 0xFF, (h0 >> 16) & 0xFF, (h0 >> 24) & 0xFF,
3084
- h1 & 0xFF, (h1 >> 8) & 0xFF, (h1 >> 16) & 0xFF, (h1 >> 24) & 0xFF,
3085
- h2 & 0xFF, (h2 >> 8) & 0xFF, (h2 >> 16) & 0xFF, (h2 >> 24) & 0xFF,
3086
- h3 & 0xFF, (h3 >> 8) & 0xFF, (h3 >> 16) & 0xFF, (h3 >> 24) & 0xFF
3087
- ];
3088
- };
3008
+ var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3;
3009
+ return [
3010
+ h0 & 0xFF, (h0 >> 8) & 0xFF, (h0 >> 16) & 0xFF, (h0 >> 24) & 0xFF,
3011
+ h1 & 0xFF, (h1 >> 8) & 0xFF, (h1 >> 16) & 0xFF, (h1 >> 24) & 0xFF,
3012
+ h2 & 0xFF, (h2 >> 8) & 0xFF, (h2 >> 16) & 0xFF, (h2 >> 24) & 0xFF,
3013
+ h3 & 0xFF, (h3 >> 8) & 0xFF, (h3 >> 16) & 0xFF, (h3 >> 24) & 0xFF
3014
+ ];
3015
+ };
3016
+
3017
+ /**
3018
+ * @method array
3019
+ * @memberof Md5
3020
+ * @instance
3021
+ * @description Output hash as bytes array
3022
+ * @returns {Array} Bytes array
3023
+ * @see {@link md5.array}
3024
+ * @example
3025
+ * hash.array();
3026
+ */
3027
+ Md5.prototype.array = Md5.prototype.digest;
3028
+
3029
+ /**
3030
+ * @method arrayBuffer
3031
+ * @memberof Md5
3032
+ * @instance
3033
+ * @description Output hash as ArrayBuffer
3034
+ * @returns {ArrayBuffer} ArrayBuffer
3035
+ * @see {@link md5.arrayBuffer}
3036
+ * @example
3037
+ * hash.arrayBuffer();
3038
+ */
3039
+ Md5.prototype.arrayBuffer = function () {
3040
+ this.finalize();
3041
+
3042
+ var buffer = new ArrayBuffer(16);
3043
+ var blocks = new Uint32Array(buffer);
3044
+ blocks[0] = this.h0;
3045
+ blocks[1] = this.h1;
3046
+ blocks[2] = this.h2;
3047
+ blocks[3] = this.h3;
3048
+ return buffer;
3049
+ };
3050
+
3051
+ /**
3052
+ * @method buffer
3053
+ * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead.
3054
+ * @memberof Md5
3055
+ * @instance
3056
+ * @description Output hash as ArrayBuffer
3057
+ * @returns {ArrayBuffer} ArrayBuffer
3058
+ * @see {@link md5.buffer}
3059
+ * @example
3060
+ * hash.buffer();
3061
+ */
3062
+ Md5.prototype.buffer = Md5.prototype.arrayBuffer;
3063
+
3064
+ /**
3065
+ * @method base64
3066
+ * @memberof Md5
3067
+ * @instance
3068
+ * @description Output hash as base64 string
3069
+ * @returns {String} base64 string
3070
+ * @see {@link md5.base64}
3071
+ * @example
3072
+ * hash.base64();
3073
+ */
3074
+ Md5.prototype.base64 = function () {
3075
+ var v1, v2, v3, base64Str = '', bytes = this.array();
3076
+ for (var i = 0; i < 15;) {
3077
+ v1 = bytes[i++];
3078
+ v2 = bytes[i++];
3079
+ v3 = bytes[i++];
3080
+ base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] +
3081
+ BASE64_ENCODE_CHAR[(v1 << 4 | v2 >>> 4) & 63] +
3082
+ BASE64_ENCODE_CHAR[(v2 << 2 | v3 >>> 6) & 63] +
3083
+ BASE64_ENCODE_CHAR[v3 & 63];
3084
+ }
3085
+ v1 = bytes[i];
3086
+ base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] +
3087
+ BASE64_ENCODE_CHAR[(v1 << 4) & 63] +
3088
+ '==';
3089
+ return base64Str;
3090
+ };
3091
+
3092
+ var exports = createMethod();
3093
+
3094
+ if (COMMON_JS) {
3095
+ module.exports = exports;
3096
+ } else {
3097
+ /**
3098
+ * @method md5
3099
+ * @description Md5 hash function, export to global in browsers.
3100
+ * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
3101
+ * @returns {String} md5 hashes
3102
+ * @example
3103
+ * md5(''); // d41d8cd98f00b204e9800998ecf8427e
3104
+ * md5('The quick brown fox jumps over the lazy dog'); // 9e107d9d372bb6826bd81d3542a419d6
3105
+ * md5('The quick brown fox jumps over the lazy dog.'); // e4d909c290d0fb1ca068ffaddf22cbd0
3106
+ *
3107
+ * // It also supports UTF-8 encoding
3108
+ * md5('中文'); // a7bac2239fcdcb3a067903d8077c4a07
3109
+ *
3110
+ * // It also supports byte `Array`, `Uint8Array`, `ArrayBuffer`
3111
+ * md5([]); // d41d8cd98f00b204e9800998ecf8427e
3112
+ * md5(new Uint8Array([])); // d41d8cd98f00b204e9800998ecf8427e
3113
+ */
3114
+ root.md5 = exports;
3115
+ if (AMD) {
3116
+ !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {
3117
+ return exports;
3118
+ }).call(exports, __webpack_require__, exports, module),
3119
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
3120
+ }
3121
+ }
3122
+ })();
3123
+
3124
+
3125
+ /***/ },
3126
+
3127
+ /***/ 173
3128
+ (module) {
3129
+
3130
+ function M() { this._events = {}; }
3131
+ M.prototype = {
3132
+ on: function(ev, cb) {
3133
+ this._events || (this._events = {});
3134
+ var e = this._events;
3135
+ (e[ev] || (e[ev] = [])).push(cb);
3136
+ return this;
3137
+ },
3138
+ removeListener: function(ev, cb) {
3139
+ var e = this._events[ev] || [], i;
3140
+ for(i = e.length-1; i >= 0 && e[i]; i--){
3141
+ if(e[i] === cb || e[i].cb === cb) { e.splice(i, 1); }
3142
+ }
3143
+ },
3144
+ removeAllListeners: function(ev) {
3145
+ if(!ev) { this._events = {}; }
3146
+ else { this._events[ev] && (this._events[ev] = []); }
3147
+ },
3148
+ listeners: function(ev) {
3149
+ return (this._events ? this._events[ev] || [] : []);
3150
+ },
3151
+ emit: function(ev) {
3152
+ this._events || (this._events = {});
3153
+ var args = Array.prototype.slice.call(arguments, 1), i, e = this._events[ev] || [];
3154
+ for(i = e.length-1; i >= 0 && e[i]; i--){
3155
+ e[i].apply(this, args);
3156
+ }
3157
+ return this;
3158
+ },
3159
+ when: function(ev, cb) {
3160
+ return this.once(ev, cb, true);
3161
+ },
3162
+ once: function(ev, cb, when) {
3163
+ if(!cb) return this;
3164
+ function c() {
3165
+ if(!when) this.removeListener(ev, c);
3166
+ if(cb.apply(this, arguments) && when) this.removeListener(ev, c);
3167
+ }
3168
+ c.cb = cb;
3169
+ this.on(ev, c);
3170
+ return this;
3171
+ }
3172
+ };
3173
+ M.mixin = function(dest) {
3174
+ var o = M.prototype, k;
3175
+ for (k in o) {
3176
+ o.hasOwnProperty(k) && (dest.prototype[k] = o[k]);
3177
+ }
3178
+ };
3179
+ module.exports = M;
3180
+
3181
+
3182
+ /***/ },
3183
+
3184
+ /***/ 84
3185
+ (module, __unused_webpack_exports, __webpack_require__) {
3186
+
3187
+ // default filter
3188
+ var Transform = __webpack_require__(408);
3189
+
3190
+ var levelMap = { debug: 1, info: 2, warn: 3, error: 4 };
3191
+
3192
+ function Filter() {
3193
+ this.enabled = true;
3194
+ this.defaultResult = true;
3195
+ this.clear();
3196
+ }
3197
+
3198
+ Transform.mixin(Filter);
3199
+
3200
+ // allow all matching, with level >= given level
3201
+ Filter.prototype.allow = function(name, level) {
3202
+ this._white.push({ n: name, l: levelMap[level] });
3203
+ return this;
3204
+ };
3205
+
3206
+ // deny all matching, with level <= given level
3207
+ Filter.prototype.deny = function(name, level) {
3208
+ this._black.push({ n: name, l: levelMap[level] });
3209
+ return this;
3210
+ };
3211
+
3212
+ Filter.prototype.clear = function() {
3213
+ this._white = [];
3214
+ this._black = [];
3215
+ return this;
3216
+ };
3217
+
3218
+ function test(rule, name) {
3219
+ // use .test for RegExps
3220
+ return (rule.n.test ? rule.n.test(name) : rule.n == name);
3221
+ };
3222
+
3223
+ Filter.prototype.test = function(name, level) {
3224
+ var i, len = Math.max(this._white.length, this._black.length);
3225
+ for(i = 0; i < len; i++) {
3226
+ if(this._white[i] && test(this._white[i], name) && levelMap[level] >= this._white[i].l) {
3227
+ return true;
3228
+ }
3229
+ if(this._black[i] && test(this._black[i], name) && levelMap[level] <= this._black[i].l) {
3230
+ return false;
3231
+ }
3232
+ }
3233
+ return this.defaultResult;
3234
+ };
3235
+
3236
+ Filter.prototype.write = function(name, level, args) {
3237
+ if(!this.enabled || this.test(name, level)) {
3238
+ return this.emit('item', name, level, args);
3239
+ }
3240
+ };
3241
+
3242
+ module.exports = Filter;
3089
3243
 
3090
- /**
3091
- * @method array
3092
- * @memberof Md5
3093
- * @instance
3094
- * @description Output hash as bytes array
3095
- * @returns {Array} Bytes array
3096
- * @see {@link md5.array}
3097
- * @example
3098
- * hash.array();
3099
- */
3100
- Md5.prototype.array = Md5.prototype.digest;
3101
3244
 
3102
- /**
3103
- * @method arrayBuffer
3104
- * @memberof Md5
3105
- * @instance
3106
- * @description Output hash as ArrayBuffer
3107
- * @returns {ArrayBuffer} ArrayBuffer
3108
- * @see {@link md5.arrayBuffer}
3109
- * @example
3110
- * hash.arrayBuffer();
3111
- */
3112
- Md5.prototype.arrayBuffer = function () {
3113
- this.finalize();
3245
+ /***/ },
3114
3246
 
3115
- var buffer = new ArrayBuffer(16);
3116
- var blocks = new Uint32Array(buffer);
3117
- blocks[0] = this.h0;
3118
- blocks[1] = this.h1;
3119
- blocks[2] = this.h2;
3120
- blocks[3] = this.h3;
3121
- return buffer;
3122
- };
3247
+ /***/ 15
3248
+ (module, exports, __webpack_require__) {
3123
3249
 
3124
- /**
3125
- * @method buffer
3126
- * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead.
3127
- * @memberof Md5
3128
- * @instance
3129
- * @description Output hash as ArrayBuffer
3130
- * @returns {ArrayBuffer} ArrayBuffer
3131
- * @see {@link md5.buffer}
3132
- * @example
3133
- * hash.buffer();
3134
- */
3135
- Md5.prototype.buffer = Md5.prototype.arrayBuffer;
3250
+ var Transform = __webpack_require__(408),
3251
+ Filter = __webpack_require__(84);
3136
3252
 
3137
- /**
3138
- * @method base64
3139
- * @memberof Md5
3140
- * @instance
3141
- * @description Output hash as base64 string
3142
- * @returns {String} base64 string
3143
- * @see {@link md5.base64}
3144
- * @example
3145
- * hash.base64();
3146
- */
3147
- Md5.prototype.base64 = function () {
3148
- var v1, v2, v3, base64Str = '', bytes = this.array();
3149
- for (var i = 0; i < 15;) {
3150
- v1 = bytes[i++];
3151
- v2 = bytes[i++];
3152
- v3 = bytes[i++];
3153
- base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] +
3154
- BASE64_ENCODE_CHAR[(v1 << 4 | v2 >>> 4) & 63] +
3155
- BASE64_ENCODE_CHAR[(v2 << 2 | v3 >>> 6) & 63] +
3156
- BASE64_ENCODE_CHAR[v3 & 63];
3157
- }
3158
- v1 = bytes[i];
3159
- base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] +
3160
- BASE64_ENCODE_CHAR[(v1 << 4) & 63] +
3161
- '==';
3162
- return base64Str;
3163
- };
3253
+ var log = new Transform(),
3254
+ slice = Array.prototype.slice;
3164
3255
 
3165
- var exports = createMethod();
3256
+ exports = module.exports = function create(name) {
3257
+ var o = function() { log.write(name, undefined, slice.call(arguments)); return o; };
3258
+ o.debug = function() { log.write(name, 'debug', slice.call(arguments)); return o; };
3259
+ o.info = function() { log.write(name, 'info', slice.call(arguments)); return o; };
3260
+ o.warn = function() { log.write(name, 'warn', slice.call(arguments)); return o; };
3261
+ o.error = function() { log.write(name, 'error', slice.call(arguments)); return o; };
3262
+ o.log = o.debug; // for interface compliance with Node and browser consoles
3263
+ o.suggest = exports.suggest;
3264
+ o.format = log.format;
3265
+ return o;
3266
+ };
3166
3267
 
3167
- if (COMMON_JS) {
3168
- module.exports = exports;
3169
- } else {
3170
- /**
3171
- * @method md5
3172
- * @description Md5 hash function, export to global in browsers.
3173
- * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
3174
- * @returns {String} md5 hashes
3175
- * @example
3176
- * md5(''); // d41d8cd98f00b204e9800998ecf8427e
3177
- * md5('The quick brown fox jumps over the lazy dog'); // 9e107d9d372bb6826bd81d3542a419d6
3178
- * md5('The quick brown fox jumps over the lazy dog.'); // e4d909c290d0fb1ca068ffaddf22cbd0
3179
- *
3180
- * // It also supports UTF-8 encoding
3181
- * md5('中文'); // a7bac2239fcdcb3a067903d8077c4a07
3182
- *
3183
- * // It also supports byte `Array`, `Uint8Array`, `ArrayBuffer`
3184
- * md5([]); // d41d8cd98f00b204e9800998ecf8427e
3185
- * md5(new Uint8Array([])); // d41d8cd98f00b204e9800998ecf8427e
3186
- */
3187
- root.md5 = exports;
3188
- if (AMD) {
3189
- !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {
3190
- return exports;
3191
- }).call(exports, __webpack_require__, exports, module),
3192
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
3193
- }
3268
+ // filled in separately
3269
+ exports.defaultBackend = exports.defaultFormatter = null;
3270
+
3271
+ exports.pipe = function(dest) {
3272
+ return log.pipe(dest);
3273
+ };
3274
+
3275
+ exports.end = exports.unpipe = exports.disable = function(from) {
3276
+ return log.unpipe(from);
3277
+ };
3278
+
3279
+ exports.Transform = Transform;
3280
+ exports.Filter = Filter;
3281
+ // this is the default filter that's applied when .enable() is called normally
3282
+ // you can bypass it completely and set up your own pipes
3283
+ exports.suggest = new Filter();
3284
+
3285
+ exports.enable = function() {
3286
+ if(exports.defaultFormatter) {
3287
+ return log.pipe(exports.suggest) // filter
3288
+ .pipe(exports.defaultFormatter) // formatter
3289
+ .pipe(exports.defaultBackend); // backend
3194
3290
  }
3195
- })();
3291
+ return log.pipe(exports.suggest) // filter
3292
+ .pipe(exports.defaultBackend); // formatter
3293
+ };
3294
+
3196
3295
 
3197
3296
 
3198
3297
  /***/ },
@@ -3259,226 +3358,79 @@ Transform.prototype.format = function(dest) {
3259
3358
  throw new Error([
3260
3359
  'Warning: .format() is deprecated in Minilog v2! Use .pipe() instead. For example:',
3261
3360
  'var Minilog = require(\'minilog\');',
3262
- 'Minilog',
3263
- ' .pipe(Minilog.backends.console.formatClean)',
3264
- ' .pipe(Minilog.backends.console);'].join('\n'));
3265
- };
3266
-
3267
- Transform.mixin = function(dest) {
3268
- var o = Transform.prototype, k;
3269
- for (k in o) {
3270
- o.hasOwnProperty(k) && (dest.prototype[k] = o[k]);
3271
- }
3272
- };
3273
-
3274
- module.exports = Transform;
3275
-
3276
-
3277
- /***/ },
3278
-
3279
- /***/ 526
3280
- (__unused_webpack_module, exports) {
3281
-
3282
- "use strict";
3283
-
3284
-
3285
- exports.byteLength = byteLength
3286
- exports.toByteArray = toByteArray
3287
- exports.fromByteArray = fromByteArray
3288
-
3289
- var lookup = []
3290
- var revLookup = []
3291
- var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
3292
-
3293
- var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
3294
- for (var i = 0, len = code.length; i < len; ++i) {
3295
- lookup[i] = code[i]
3296
- revLookup[code.charCodeAt(i)] = i
3297
- }
3298
-
3299
- // Support decoding URL-safe base64 strings, as Node.js does.
3300
- // See: https://en.wikipedia.org/wiki/Base64#URL_applications
3301
- revLookup['-'.charCodeAt(0)] = 62
3302
- revLookup['_'.charCodeAt(0)] = 63
3303
-
3304
- function getLens (b64) {
3305
- var len = b64.length
3306
-
3307
- if (len % 4 > 0) {
3308
- throw new Error('Invalid string. Length must be a multiple of 4')
3309
- }
3310
-
3311
- // Trim off extra bytes after placeholder bytes are found
3312
- // See: https://github.com/beatgammit/base64-js/issues/42
3313
- var validLen = b64.indexOf('=')
3314
- if (validLen === -1) validLen = len
3315
-
3316
- var placeHoldersLen = validLen === len
3317
- ? 0
3318
- : 4 - (validLen % 4)
3319
-
3320
- return [validLen, placeHoldersLen]
3321
- }
3322
-
3323
- // base64 is 4/3 + up to two characters of the original data
3324
- function byteLength (b64) {
3325
- var lens = getLens(b64)
3326
- var validLen = lens[0]
3327
- var placeHoldersLen = lens[1]
3328
- return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
3329
- }
3330
-
3331
- function _byteLength (b64, validLen, placeHoldersLen) {
3332
- return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
3333
- }
3334
-
3335
- function toByteArray (b64) {
3336
- var tmp
3337
- var lens = getLens(b64)
3338
- var validLen = lens[0]
3339
- var placeHoldersLen = lens[1]
3340
-
3341
- var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
3342
-
3343
- var curByte = 0
3344
-
3345
- // if there are placeholders, only get up to the last complete 4 chars
3346
- var len = placeHoldersLen > 0
3347
- ? validLen - 4
3348
- : validLen
3349
-
3350
- var i
3351
- for (i = 0; i < len; i += 4) {
3352
- tmp =
3353
- (revLookup[b64.charCodeAt(i)] << 18) |
3354
- (revLookup[b64.charCodeAt(i + 1)] << 12) |
3355
- (revLookup[b64.charCodeAt(i + 2)] << 6) |
3356
- revLookup[b64.charCodeAt(i + 3)]
3357
- arr[curByte++] = (tmp >> 16) & 0xFF
3358
- arr[curByte++] = (tmp >> 8) & 0xFF
3359
- arr[curByte++] = tmp & 0xFF
3360
- }
3361
+ 'Minilog',
3362
+ ' .pipe(Minilog.backends.console.formatClean)',
3363
+ ' .pipe(Minilog.backends.console);'].join('\n'));
3364
+ };
3361
3365
 
3362
- if (placeHoldersLen === 2) {
3363
- tmp =
3364
- (revLookup[b64.charCodeAt(i)] << 2) |
3365
- (revLookup[b64.charCodeAt(i + 1)] >> 4)
3366
- arr[curByte++] = tmp & 0xFF
3366
+ Transform.mixin = function(dest) {
3367
+ var o = Transform.prototype, k;
3368
+ for (k in o) {
3369
+ o.hasOwnProperty(k) && (dest.prototype[k] = o[k]);
3367
3370
  }
3371
+ };
3368
3372
 
3369
- if (placeHoldersLen === 1) {
3370
- tmp =
3371
- (revLookup[b64.charCodeAt(i)] << 10) |
3372
- (revLookup[b64.charCodeAt(i + 1)] << 4) |
3373
- (revLookup[b64.charCodeAt(i + 2)] >> 2)
3374
- arr[curByte++] = (tmp >> 8) & 0xFF
3375
- arr[curByte++] = tmp & 0xFF
3376
- }
3373
+ module.exports = Transform;
3377
3374
 
3378
- return arr
3379
- }
3380
3375
 
3381
- function tripletToBase64 (num) {
3382
- return lookup[num >> 18 & 0x3F] +
3383
- lookup[num >> 12 & 0x3F] +
3384
- lookup[num >> 6 & 0x3F] +
3385
- lookup[num & 0x3F]
3386
- }
3376
+ /***/ },
3387
3377
 
3388
- function encodeChunk (uint8, start, end) {
3389
- var tmp
3390
- var output = []
3391
- for (var i = start; i < end; i += 3) {
3392
- tmp =
3393
- ((uint8[i] << 16) & 0xFF0000) +
3394
- ((uint8[i + 1] << 8) & 0xFF00) +
3395
- (uint8[i + 2] & 0xFF)
3396
- output.push(tripletToBase64(tmp))
3397
- }
3398
- return output.join('')
3399
- }
3378
+ /***/ 692
3379
+ (module, __unused_webpack_exports, __webpack_require__) {
3400
3380
 
3401
- function fromByteArray (uint8) {
3402
- var tmp
3403
- var len = uint8.length
3404
- var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
3405
- var parts = []
3406
- var maxChunkLength = 16383 // must be multiple of 3
3381
+ var Transform = __webpack_require__(408),
3382
+ cache = [ ];
3407
3383
 
3408
- // go through the array every three bytes, we'll deal with trailing stuff later
3409
- for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
3410
- parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
3411
- }
3384
+ var logger = new Transform();
3412
3385
 
3413
- // pad the end with zeros, but make sure to not forget the extra bytes
3414
- if (extraBytes === 1) {
3415
- tmp = uint8[len - 1]
3416
- parts.push(
3417
- lookup[tmp >> 2] +
3418
- lookup[(tmp << 4) & 0x3F] +
3419
- '=='
3420
- )
3421
- } else if (extraBytes === 2) {
3422
- tmp = (uint8[len - 2] << 8) + uint8[len - 1]
3423
- parts.push(
3424
- lookup[tmp >> 10] +
3425
- lookup[(tmp >> 4) & 0x3F] +
3426
- lookup[(tmp << 2) & 0x3F] +
3427
- '='
3428
- )
3429
- }
3386
+ logger.write = function(name, level, args) {
3387
+ cache.push([ name, level, args ]);
3388
+ };
3430
3389
 
3431
- return parts.join('')
3432
- }
3390
+ // utility functions
3391
+ logger.get = function() { return cache; };
3392
+ logger.empty = function() { cache = []; };
3433
3393
 
3394
+ module.exports = logger;
3434
3395
 
3435
- /***/ },
3436
3396
 
3437
- /***/ 557
3438
- (module, exports, __webpack_require__) {
3397
+ /***/ },
3439
3398
 
3440
- var Minilog = __webpack_require__(15);
3399
+ /***/ 260
3400
+ (module, __unused_webpack_exports, __webpack_require__) {
3441
3401
 
3442
- var oldEnable = Minilog.enable,
3443
- oldDisable = Minilog.disable,
3444
- isChrome = (typeof navigator != 'undefined' && /chrome/i.test(navigator.userAgent)),
3445
- console = __webpack_require__(260);
3402
+ var Transform = __webpack_require__(408);
3446
3403
 
3447
- // Use a more capable logging backend if on Chrome
3448
- Minilog.defaultBackend = (isChrome ? console.minilog : console);
3404
+ var newlines = /\n+$/,
3405
+ logger = new Transform();
3449
3406
 
3450
- // apply enable inputs from localStorage and from the URL
3451
- if(typeof window != 'undefined') {
3452
- try {
3453
- Minilog.enable(JSON.parse(window.localStorage['minilogSettings']));
3454
- } catch(e) {}
3455
- if(window.location && window.location.search) {
3456
- var match = RegExp('[?&]minilog=([^&]*)').exec(window.location.search);
3457
- match && Minilog.enable(decodeURIComponent(match[1]));
3407
+ logger.write = function(name, level, args) {
3408
+ var i = args.length-1;
3409
+ if (typeof console === 'undefined' || !console.log) {
3410
+ return;
3411
+ }
3412
+ if(console.log.apply) {
3413
+ return console.log.apply(console, [name, level].concat(args));
3414
+ } else if(JSON && JSON.stringify) {
3415
+ // console.log.apply is undefined in IE8 and IE9
3416
+ // for IE8/9: make console.log at least a bit less awful
3417
+ if(args[i] && typeof args[i] == 'string') {
3418
+ args[i] = args[i].replace(newlines, '');
3419
+ }
3420
+ try {
3421
+ for(i = 0; i < args.length; i++) {
3422
+ args[i] = JSON.stringify(args[i]);
3423
+ }
3424
+ } catch(e) {}
3425
+ console.log(args.join(' '));
3458
3426
  }
3459
- }
3460
-
3461
- // Make enable also add to localStorage
3462
- Minilog.enable = function() {
3463
- oldEnable.call(Minilog, true);
3464
- try { window.localStorage['minilogSettings'] = JSON.stringify(true); } catch(e) {}
3465
- return this;
3466
- };
3467
-
3468
- Minilog.disable = function() {
3469
- oldDisable.call(Minilog);
3470
- try { delete window.localStorage.minilogSettings; } catch(e) {}
3471
- return this;
3472
3427
  };
3473
3428
 
3474
- exports = module.exports = Minilog;
3429
+ logger.formatters = ['color', 'minilog'];
3430
+ logger.color = __webpack_require__(638);
3431
+ logger.minilog = __webpack_require__(658);
3475
3432
 
3476
- exports.backends = {
3477
- array: __webpack_require__(692),
3478
- browser: Minilog.defaultBackend,
3479
- localStorage: __webpack_require__(113),
3480
- jQuery: __webpack_require__(740)
3481
- };
3433
+ module.exports = logger;
3482
3434
 
3483
3435
 
3484
3436
  /***/ },
@@ -3541,30 +3493,78 @@ module.exports = logger;
3541
3493
 
3542
3494
  /***/ },
3543
3495
 
3544
- /***/ 680
3545
- (module, __unused_webpack_exports, __webpack_require__) {
3496
+ /***/ 193
3497
+ (module) {
3498
+
3499
+ var hex = {
3500
+ black: '#000',
3501
+ red: '#c23621',
3502
+ green: '#25bc26',
3503
+ yellow: '#bbbb00',
3504
+ blue: '#492ee1',
3505
+ magenta: '#d338d3',
3506
+ cyan: '#33bbc8',
3507
+ gray: '#808080',
3508
+ purple: '#708'
3509
+ };
3510
+ function color(fg, isInverse) {
3511
+ if(isInverse) {
3512
+ return 'color: #fff; background: '+hex[fg]+';';
3513
+ } else {
3514
+ return 'color: '+hex[fg]+';';
3515
+ }
3516
+ }
3517
+
3518
+ module.exports = color;
3546
3519
 
3547
- module.exports = __webpack_require__(14)("UklGRiYAAABXQVZFZm10IBAAAAABAAEAIlYAAESsAAACABAAZGF0YQIAAAAAAA==")
3548
3520
 
3549
3521
  /***/ },
3550
3522
 
3551
- /***/ 692
3552
- (module, __unused_webpack_exports, __webpack_require__) {
3523
+ /***/ 557
3524
+ (module, exports, __webpack_require__) {
3553
3525
 
3554
- var Transform = __webpack_require__(408),
3555
- cache = [ ];
3526
+ var Minilog = __webpack_require__(15);
3556
3527
 
3557
- var logger = new Transform();
3528
+ var oldEnable = Minilog.enable,
3529
+ oldDisable = Minilog.disable,
3530
+ isChrome = (typeof navigator != 'undefined' && /chrome/i.test(navigator.userAgent)),
3531
+ console = __webpack_require__(260);
3558
3532
 
3559
- logger.write = function(name, level, args) {
3560
- cache.push([ name, level, args ]);
3533
+ // Use a more capable logging backend if on Chrome
3534
+ Minilog.defaultBackend = (isChrome ? console.minilog : console);
3535
+
3536
+ // apply enable inputs from localStorage and from the URL
3537
+ if(typeof window != 'undefined') {
3538
+ try {
3539
+ Minilog.enable(JSON.parse(window.localStorage['minilogSettings']));
3540
+ } catch(e) {}
3541
+ if(window.location && window.location.search) {
3542
+ var match = RegExp('[?&]minilog=([^&]*)').exec(window.location.search);
3543
+ match && Minilog.enable(decodeURIComponent(match[1]));
3544
+ }
3545
+ }
3546
+
3547
+ // Make enable also add to localStorage
3548
+ Minilog.enable = function() {
3549
+ oldEnable.call(Minilog, true);
3550
+ try { window.localStorage['minilogSettings'] = JSON.stringify(true); } catch(e) {}
3551
+ return this;
3561
3552
  };
3562
3553
 
3563
- // utility functions
3564
- logger.get = function() { return cache; };
3565
- logger.empty = function() { cache = []; };
3554
+ Minilog.disable = function() {
3555
+ oldDisable.call(Minilog);
3556
+ try { delete window.localStorage.minilogSettings; } catch(e) {}
3557
+ return this;
3558
+ };
3566
3559
 
3567
- module.exports = logger;
3560
+ exports = module.exports = Minilog;
3561
+
3562
+ exports.backends = {
3563
+ array: __webpack_require__(692),
3564
+ browser: Minilog.defaultBackend,
3565
+ localStorage: __webpack_require__(113),
3566
+ jQuery: __webpack_require__(740)
3567
+ };
3568
3568
 
3569
3569
 
3570
3570
  /***/ },
@@ -3650,24 +3650,24 @@ module.exports = AjaxLogger;
3650
3650
 
3651
3651
  /***/ },
3652
3652
 
3653
- /***/ 767
3654
- (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
3655
-
3656
- "use strict";
3657
- (function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'");
3658
- g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1):
3659
- (m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length|
3660
- 0,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q?
3661
- f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof __webpack_require__.g?""+void 0==typeof self?this:self:__webpack_require__.g);//AnonyCo
3662
- //# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map
3653
+ /***/ 113
3654
+ (module, __unused_webpack_exports, __webpack_require__) {
3663
3655
 
3656
+ var Transform = __webpack_require__(408),
3657
+ cache = false;
3664
3658
 
3665
- /***/ },
3659
+ var logger = new Transform();
3666
3660
 
3667
- /***/ 914
3668
- (module, __unused_webpack_exports, __webpack_require__) {
3661
+ logger.write = function(name, level, args) {
3662
+ if(typeof window == 'undefined' || typeof JSON == 'undefined' || !JSON.stringify || !JSON.parse) return;
3663
+ try {
3664
+ if(!cache) { cache = (window.localStorage.minilog ? JSON.parse(window.localStorage.minilog) : []); }
3665
+ cache.push([ new Date().toString(), name, level, args ]);
3666
+ window.localStorage.minilog = JSON.stringify(cache);
3667
+ } catch(e) {}
3668
+ };
3669
3669
 
3670
- module.exports = __webpack_require__(14)("PD94bWwgdmVyc2lvbj0iMS4wIj8+Cjxzdmcgd2lkdGg9IjEyOCIgaGVpZ2h0PSIxMjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiA8Zz4KICA8cmVjdCBmaWxsPSIjQ0NDIiBoZWlnaHQ9IjEyOCIgd2lkdGg9IjEyOCIvPgogIDx0ZXh0IGZpbGw9ImJsYWNrIiB5PSIxMDciIHg9IjM1LjUiIGZvbnQtc2l6ZT0iMTI4Ij4/PC90ZXh0PgogPC9nPgo8L3N2Zz4K")
3670
+ module.exports = logger;
3671
3671
 
3672
3672
  /***/ }
3673
3673