|
1 (function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({1:[function(_dereq_,module,exports){ |
|
2 (function (global){ |
|
3 "use strict"; |
|
4 |
|
5 _dereq_(2); |
|
6 |
|
7 _dereq_(3); |
|
8 |
|
9 _dereq_(9); |
|
10 |
|
11 _dereq_(8); |
|
12 |
|
13 _dereq_(10); |
|
14 |
|
15 _dereq_(5); |
|
16 |
|
17 _dereq_(6); |
|
18 |
|
19 _dereq_(4); |
|
20 |
|
21 _dereq_(7); |
|
22 |
|
23 _dereq_(279); |
|
24 |
|
25 _dereq_(280); |
|
26 |
|
27 if (global._babelPolyfill && typeof console !== "undefined" && console.warn) { |
|
28 console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended " + "and may have consequences if different versions of the polyfills are applied sequentially. " + "If you do need to load the polyfill more than once, use @babel/polyfill/noConflict " + "instead to bypass the warning."); |
|
29 } |
|
30 |
|
31 global._babelPolyfill = true; |
|
32 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) |
|
33 },{"10":10,"2":2,"279":279,"280":280,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9}],2:[function(_dereq_,module,exports){ |
|
34 _dereq_(254); |
|
35 _dereq_(190); |
|
36 _dereq_(192); |
|
37 _dereq_(191); |
|
38 _dereq_(194); |
|
39 _dereq_(196); |
|
40 _dereq_(201); |
|
41 _dereq_(195); |
|
42 _dereq_(193); |
|
43 _dereq_(203); |
|
44 _dereq_(202); |
|
45 _dereq_(198); |
|
46 _dereq_(199); |
|
47 _dereq_(197); |
|
48 _dereq_(189); |
|
49 _dereq_(200); |
|
50 _dereq_(204); |
|
51 _dereq_(205); |
|
52 _dereq_(156); |
|
53 _dereq_(158); |
|
54 _dereq_(157); |
|
55 _dereq_(207); |
|
56 _dereq_(206); |
|
57 _dereq_(177); |
|
58 _dereq_(187); |
|
59 _dereq_(188); |
|
60 _dereq_(178); |
|
61 _dereq_(179); |
|
62 _dereq_(180); |
|
63 _dereq_(181); |
|
64 _dereq_(182); |
|
65 _dereq_(183); |
|
66 _dereq_(184); |
|
67 _dereq_(185); |
|
68 _dereq_(186); |
|
69 _dereq_(160); |
|
70 _dereq_(161); |
|
71 _dereq_(162); |
|
72 _dereq_(163); |
|
73 _dereq_(164); |
|
74 _dereq_(165); |
|
75 _dereq_(166); |
|
76 _dereq_(167); |
|
77 _dereq_(168); |
|
78 _dereq_(169); |
|
79 _dereq_(170); |
|
80 _dereq_(171); |
|
81 _dereq_(172); |
|
82 _dereq_(173); |
|
83 _dereq_(174); |
|
84 _dereq_(175); |
|
85 _dereq_(176); |
|
86 _dereq_(241); |
|
87 _dereq_(246); |
|
88 _dereq_(253); |
|
89 _dereq_(244); |
|
90 _dereq_(236); |
|
91 _dereq_(237); |
|
92 _dereq_(242); |
|
93 _dereq_(247); |
|
94 _dereq_(249); |
|
95 _dereq_(232); |
|
96 _dereq_(233); |
|
97 _dereq_(234); |
|
98 _dereq_(235); |
|
99 _dereq_(238); |
|
100 _dereq_(239); |
|
101 _dereq_(240); |
|
102 _dereq_(243); |
|
103 _dereq_(245); |
|
104 _dereq_(248); |
|
105 _dereq_(250); |
|
106 _dereq_(251); |
|
107 _dereq_(252); |
|
108 _dereq_(151); |
|
109 _dereq_(153); |
|
110 _dereq_(152); |
|
111 _dereq_(155); |
|
112 _dereq_(154); |
|
113 _dereq_(139); |
|
114 _dereq_(137); |
|
115 _dereq_(144); |
|
116 _dereq_(141); |
|
117 _dereq_(147); |
|
118 _dereq_(149); |
|
119 _dereq_(136); |
|
120 _dereq_(143); |
|
121 _dereq_(133); |
|
122 _dereq_(148); |
|
123 _dereq_(131); |
|
124 _dereq_(146); |
|
125 _dereq_(145); |
|
126 _dereq_(138); |
|
127 _dereq_(142); |
|
128 _dereq_(130); |
|
129 _dereq_(132); |
|
130 _dereq_(135); |
|
131 _dereq_(134); |
|
132 _dereq_(150); |
|
133 _dereq_(140); |
|
134 _dereq_(223); |
|
135 _dereq_(224); |
|
136 _dereq_(230); |
|
137 _dereq_(225); |
|
138 _dereq_(226); |
|
139 _dereq_(227); |
|
140 _dereq_(228); |
|
141 _dereq_(229); |
|
142 _dereq_(208); |
|
143 _dereq_(159); |
|
144 _dereq_(231); |
|
145 _dereq_(266); |
|
146 _dereq_(267); |
|
147 _dereq_(255); |
|
148 _dereq_(256); |
|
149 _dereq_(261); |
|
150 _dereq_(264); |
|
151 _dereq_(265); |
|
152 _dereq_(259); |
|
153 _dereq_(262); |
|
154 _dereq_(260); |
|
155 _dereq_(263); |
|
156 _dereq_(257); |
|
157 _dereq_(258); |
|
158 _dereq_(209); |
|
159 _dereq_(210); |
|
160 _dereq_(211); |
|
161 _dereq_(212); |
|
162 _dereq_(213); |
|
163 _dereq_(216); |
|
164 _dereq_(214); |
|
165 _dereq_(215); |
|
166 _dereq_(217); |
|
167 _dereq_(218); |
|
168 _dereq_(219); |
|
169 _dereq_(220); |
|
170 _dereq_(222); |
|
171 _dereq_(221); |
|
172 module.exports = _dereq_(30); |
|
173 |
|
174 },{"130":130,"131":131,"132":132,"133":133,"134":134,"135":135,"136":136,"137":137,"138":138,"139":139,"140":140,"141":141,"142":142,"143":143,"144":144,"145":145,"146":146,"147":147,"148":148,"149":149,"150":150,"151":151,"152":152,"153":153,"154":154,"155":155,"156":156,"157":157,"158":158,"159":159,"160":160,"161":161,"162":162,"163":163,"164":164,"165":165,"166":166,"167":167,"168":168,"169":169,"170":170,"171":171,"172":172,"173":173,"174":174,"175":175,"176":176,"177":177,"178":178,"179":179,"180":180,"181":181,"182":182,"183":183,"184":184,"185":185,"186":186,"187":187,"188":188,"189":189,"190":190,"191":191,"192":192,"193":193,"194":194,"195":195,"196":196,"197":197,"198":198,"199":199,"200":200,"201":201,"202":202,"203":203,"204":204,"205":205,"206":206,"207":207,"208":208,"209":209,"210":210,"211":211,"212":212,"213":213,"214":214,"215":215,"216":216,"217":217,"218":218,"219":219,"220":220,"221":221,"222":222,"223":223,"224":224,"225":225,"226":226,"227":227,"228":228,"229":229,"230":230,"231":231,"232":232,"233":233,"234":234,"235":235,"236":236,"237":237,"238":238,"239":239,"240":240,"241":241,"242":242,"243":243,"244":244,"245":245,"246":246,"247":247,"248":248,"249":249,"250":250,"251":251,"252":252,"253":253,"254":254,"255":255,"256":256,"257":257,"258":258,"259":259,"260":260,"261":261,"262":262,"263":263,"264":264,"265":265,"266":266,"267":267,"30":30}],3:[function(_dereq_,module,exports){ |
|
175 _dereq_(268); |
|
176 module.exports = _dereq_(30).Array.includes; |
|
177 |
|
178 },{"268":268,"30":30}],4:[function(_dereq_,module,exports){ |
|
179 _dereq_(269); |
|
180 module.exports = _dereq_(30).Object.entries; |
|
181 |
|
182 },{"269":269,"30":30}],5:[function(_dereq_,module,exports){ |
|
183 _dereq_(270); |
|
184 module.exports = _dereq_(30).Object.getOwnPropertyDescriptors; |
|
185 |
|
186 },{"270":270,"30":30}],6:[function(_dereq_,module,exports){ |
|
187 _dereq_(271); |
|
188 module.exports = _dereq_(30).Object.values; |
|
189 |
|
190 },{"271":271,"30":30}],7:[function(_dereq_,module,exports){ |
|
191 'use strict'; |
|
192 _dereq_(208); |
|
193 _dereq_(272); |
|
194 module.exports = _dereq_(30).Promise['finally']; |
|
195 |
|
196 },{"208":208,"272":272,"30":30}],8:[function(_dereq_,module,exports){ |
|
197 _dereq_(273); |
|
198 module.exports = _dereq_(30).String.padEnd; |
|
199 |
|
200 },{"273":273,"30":30}],9:[function(_dereq_,module,exports){ |
|
201 _dereq_(274); |
|
202 module.exports = _dereq_(30).String.padStart; |
|
203 |
|
204 },{"274":274,"30":30}],10:[function(_dereq_,module,exports){ |
|
205 _dereq_(275); |
|
206 module.exports = _dereq_(127).f('asyncIterator'); |
|
207 |
|
208 },{"127":127,"275":275}],11:[function(_dereq_,module,exports){ |
|
209 module.exports = function (it) { |
|
210 if (typeof it != 'function') throw TypeError(it + ' is not a function!'); |
|
211 return it; |
|
212 }; |
|
213 |
|
214 },{}],12:[function(_dereq_,module,exports){ |
|
215 var cof = _dereq_(26); |
|
216 module.exports = function (it, msg) { |
|
217 if (typeof it != 'number' && cof(it) != 'Number') throw TypeError(msg); |
|
218 return +it; |
|
219 }; |
|
220 |
|
221 },{"26":26}],13:[function(_dereq_,module,exports){ |
|
222 // 22.1.3.31 Array.prototype[@@unscopables] |
|
223 var UNSCOPABLES = _dereq_(128)('unscopables'); |
|
224 var ArrayProto = Array.prototype; |
|
225 if (ArrayProto[UNSCOPABLES] == undefined) _dereq_(48)(ArrayProto, UNSCOPABLES, {}); |
|
226 module.exports = function (key) { |
|
227 ArrayProto[UNSCOPABLES][key] = true; |
|
228 }; |
|
229 |
|
230 },{"128":128,"48":48}],14:[function(_dereq_,module,exports){ |
|
231 'use strict'; |
|
232 var at = _dereq_(105)(true); |
|
233 |
|
234 // `AdvanceStringIndex` abstract operation |
|
235 // https://tc39.github.io/ecma262/#sec-advancestringindex |
|
236 module.exports = function (S, index, unicode) { |
|
237 return index + (unicode ? at(S, index).length : 1); |
|
238 }; |
|
239 |
|
240 },{"105":105}],15:[function(_dereq_,module,exports){ |
|
241 module.exports = function (it, Constructor, name, forbiddenField) { |
|
242 if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) { |
|
243 throw TypeError(name + ': incorrect invocation!'); |
|
244 } return it; |
|
245 }; |
|
246 |
|
247 },{}],16:[function(_dereq_,module,exports){ |
|
248 var isObject = _dereq_(57); |
|
249 module.exports = function (it) { |
|
250 if (!isObject(it)) throw TypeError(it + ' is not an object!'); |
|
251 return it; |
|
252 }; |
|
253 |
|
254 },{"57":57}],17:[function(_dereq_,module,exports){ |
|
255 // 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length) |
|
256 'use strict'; |
|
257 var toObject = _dereq_(118); |
|
258 var toAbsoluteIndex = _dereq_(113); |
|
259 var toLength = _dereq_(117); |
|
260 |
|
261 module.exports = [].copyWithin || function copyWithin(target /* = 0 */, start /* = 0, end = @length */) { |
|
262 var O = toObject(this); |
|
263 var len = toLength(O.length); |
|
264 var to = toAbsoluteIndex(target, len); |
|
265 var from = toAbsoluteIndex(start, len); |
|
266 var end = arguments.length > 2 ? arguments[2] : undefined; |
|
267 var count = Math.min((end === undefined ? len : toAbsoluteIndex(end, len)) - from, len - to); |
|
268 var inc = 1; |
|
269 if (from < to && to < from + count) { |
|
270 inc = -1; |
|
271 from += count - 1; |
|
272 to += count - 1; |
|
273 } |
|
274 while (count-- > 0) { |
|
275 if (from in O) O[to] = O[from]; |
|
276 else delete O[to]; |
|
277 to += inc; |
|
278 from += inc; |
|
279 } return O; |
|
280 }; |
|
281 |
|
282 },{"113":113,"117":117,"118":118}],18:[function(_dereq_,module,exports){ |
|
283 // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length) |
|
284 'use strict'; |
|
285 var toObject = _dereq_(118); |
|
286 var toAbsoluteIndex = _dereq_(113); |
|
287 var toLength = _dereq_(117); |
|
288 module.exports = function fill(value /* , start = 0, end = @length */) { |
|
289 var O = toObject(this); |
|
290 var length = toLength(O.length); |
|
291 var aLen = arguments.length; |
|
292 var index = toAbsoluteIndex(aLen > 1 ? arguments[1] : undefined, length); |
|
293 var end = aLen > 2 ? arguments[2] : undefined; |
|
294 var endPos = end === undefined ? length : toAbsoluteIndex(end, length); |
|
295 while (endPos > index) O[index++] = value; |
|
296 return O; |
|
297 }; |
|
298 |
|
299 },{"113":113,"117":117,"118":118}],19:[function(_dereq_,module,exports){ |
|
300 // false -> Array#indexOf |
|
301 // true -> Array#includes |
|
302 var toIObject = _dereq_(116); |
|
303 var toLength = _dereq_(117); |
|
304 var toAbsoluteIndex = _dereq_(113); |
|
305 module.exports = function (IS_INCLUDES) { |
|
306 return function ($this, el, fromIndex) { |
|
307 var O = toIObject($this); |
|
308 var length = toLength(O.length); |
|
309 var index = toAbsoluteIndex(fromIndex, length); |
|
310 var value; |
|
311 // Array#includes uses SameValueZero equality algorithm |
|
312 // eslint-disable-next-line no-self-compare |
|
313 if (IS_INCLUDES && el != el) while (length > index) { |
|
314 value = O[index++]; |
|
315 // eslint-disable-next-line no-self-compare |
|
316 if (value != value) return true; |
|
317 // Array#indexOf ignores holes, Array#includes - not |
|
318 } else for (;length > index; index++) if (IS_INCLUDES || index in O) { |
|
319 if (O[index] === el) return IS_INCLUDES || index || 0; |
|
320 } return !IS_INCLUDES && -1; |
|
321 }; |
|
322 }; |
|
323 |
|
324 },{"113":113,"116":116,"117":117}],20:[function(_dereq_,module,exports){ |
|
325 // 0 -> Array#forEach |
|
326 // 1 -> Array#map |
|
327 // 2 -> Array#filter |
|
328 // 3 -> Array#some |
|
329 // 4 -> Array#every |
|
330 // 5 -> Array#find |
|
331 // 6 -> Array#findIndex |
|
332 var ctx = _dereq_(32); |
|
333 var IObject = _dereq_(53); |
|
334 var toObject = _dereq_(118); |
|
335 var toLength = _dereq_(117); |
|
336 var asc = _dereq_(23); |
|
337 module.exports = function (TYPE, $create) { |
|
338 var IS_MAP = TYPE == 1; |
|
339 var IS_FILTER = TYPE == 2; |
|
340 var IS_SOME = TYPE == 3; |
|
341 var IS_EVERY = TYPE == 4; |
|
342 var IS_FIND_INDEX = TYPE == 6; |
|
343 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; |
|
344 var create = $create || asc; |
|
345 return function ($this, callbackfn, that) { |
|
346 var O = toObject($this); |
|
347 var self = IObject(O); |
|
348 var f = ctx(callbackfn, that, 3); |
|
349 var length = toLength(self.length); |
|
350 var index = 0; |
|
351 var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; |
|
352 var val, res; |
|
353 for (;length > index; index++) if (NO_HOLES || index in self) { |
|
354 val = self[index]; |
|
355 res = f(val, index, O); |
|
356 if (TYPE) { |
|
357 if (IS_MAP) result[index] = res; // map |
|
358 else if (res) switch (TYPE) { |
|
359 case 3: return true; // some |
|
360 case 5: return val; // find |
|
361 case 6: return index; // findIndex |
|
362 case 2: result.push(val); // filter |
|
363 } else if (IS_EVERY) return false; // every |
|
364 } |
|
365 } |
|
366 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; |
|
367 }; |
|
368 }; |
|
369 |
|
370 },{"117":117,"118":118,"23":23,"32":32,"53":53}],21:[function(_dereq_,module,exports){ |
|
371 var aFunction = _dereq_(11); |
|
372 var toObject = _dereq_(118); |
|
373 var IObject = _dereq_(53); |
|
374 var toLength = _dereq_(117); |
|
375 |
|
376 module.exports = function (that, callbackfn, aLen, memo, isRight) { |
|
377 aFunction(callbackfn); |
|
378 var O = toObject(that); |
|
379 var self = IObject(O); |
|
380 var length = toLength(O.length); |
|
381 var index = isRight ? length - 1 : 0; |
|
382 var i = isRight ? -1 : 1; |
|
383 if (aLen < 2) for (;;) { |
|
384 if (index in self) { |
|
385 memo = self[index]; |
|
386 index += i; |
|
387 break; |
|
388 } |
|
389 index += i; |
|
390 if (isRight ? index < 0 : length <= index) { |
|
391 throw TypeError('Reduce of empty array with no initial value'); |
|
392 } |
|
393 } |
|
394 for (;isRight ? index >= 0 : length > index; index += i) if (index in self) { |
|
395 memo = callbackfn(memo, self[index], index, O); |
|
396 } |
|
397 return memo; |
|
398 }; |
|
399 |
|
400 },{"11":11,"117":117,"118":118,"53":53}],22:[function(_dereq_,module,exports){ |
|
401 var isObject = _dereq_(57); |
|
402 var isArray = _dereq_(55); |
|
403 var SPECIES = _dereq_(128)('species'); |
|
404 |
|
405 module.exports = function (original) { |
|
406 var C; |
|
407 if (isArray(original)) { |
|
408 C = original.constructor; |
|
409 // cross-realm fallback |
|
410 if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; |
|
411 if (isObject(C)) { |
|
412 C = C[SPECIES]; |
|
413 if (C === null) C = undefined; |
|
414 } |
|
415 } return C === undefined ? Array : C; |
|
416 }; |
|
417 |
|
418 },{"128":128,"55":55,"57":57}],23:[function(_dereq_,module,exports){ |
|
419 // 9.4.2.3 ArraySpeciesCreate(originalArray, length) |
|
420 var speciesConstructor = _dereq_(22); |
|
421 |
|
422 module.exports = function (original, length) { |
|
423 return new (speciesConstructor(original))(length); |
|
424 }; |
|
425 |
|
426 },{"22":22}],24:[function(_dereq_,module,exports){ |
|
427 'use strict'; |
|
428 var aFunction = _dereq_(11); |
|
429 var isObject = _dereq_(57); |
|
430 var invoke = _dereq_(52); |
|
431 var arraySlice = [].slice; |
|
432 var factories = {}; |
|
433 |
|
434 var construct = function (F, len, args) { |
|
435 if (!(len in factories)) { |
|
436 for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']'; |
|
437 // eslint-disable-next-line no-new-func |
|
438 factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')'); |
|
439 } return factories[len](F, args); |
|
440 }; |
|
441 |
|
442 module.exports = Function.bind || function bind(that /* , ...args */) { |
|
443 var fn = aFunction(this); |
|
444 var partArgs = arraySlice.call(arguments, 1); |
|
445 var bound = function (/* args... */) { |
|
446 var args = partArgs.concat(arraySlice.call(arguments)); |
|
447 return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that); |
|
448 }; |
|
449 if (isObject(fn.prototype)) bound.prototype = fn.prototype; |
|
450 return bound; |
|
451 }; |
|
452 |
|
453 },{"11":11,"52":52,"57":57}],25:[function(_dereq_,module,exports){ |
|
454 // getting tag from 19.1.3.6 Object.prototype.toString() |
|
455 var cof = _dereq_(26); |
|
456 var TAG = _dereq_(128)('toStringTag'); |
|
457 // ES3 wrong here |
|
458 var ARG = cof(function () { return arguments; }()) == 'Arguments'; |
|
459 |
|
460 // fallback for IE11 Script Access Denied error |
|
461 var tryGet = function (it, key) { |
|
462 try { |
|
463 return it[key]; |
|
464 } catch (e) { /* empty */ } |
|
465 }; |
|
466 |
|
467 module.exports = function (it) { |
|
468 var O, T, B; |
|
469 return it === undefined ? 'Undefined' : it === null ? 'Null' |
|
470 // @@toStringTag case |
|
471 : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T |
|
472 // builtinTag case |
|
473 : ARG ? cof(O) |
|
474 // ES3 arguments fallback |
|
475 : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; |
|
476 }; |
|
477 |
|
478 },{"128":128,"26":26}],26:[function(_dereq_,module,exports){ |
|
479 var toString = {}.toString; |
|
480 |
|
481 module.exports = function (it) { |
|
482 return toString.call(it).slice(8, -1); |
|
483 }; |
|
484 |
|
485 },{}],27:[function(_dereq_,module,exports){ |
|
486 'use strict'; |
|
487 var dP = _dereq_(75).f; |
|
488 var create = _dereq_(74); |
|
489 var redefineAll = _dereq_(93); |
|
490 var ctx = _dereq_(32); |
|
491 var anInstance = _dereq_(15); |
|
492 var forOf = _dereq_(45); |
|
493 var $iterDefine = _dereq_(61); |
|
494 var step = _dereq_(63); |
|
495 var setSpecies = _dereq_(99); |
|
496 var DESCRIPTORS = _dereq_(36); |
|
497 var fastKey = _dereq_(70).fastKey; |
|
498 var validate = _dereq_(125); |
|
499 var SIZE = DESCRIPTORS ? '_s' : 'size'; |
|
500 |
|
501 var getEntry = function (that, key) { |
|
502 // fast case |
|
503 var index = fastKey(key); |
|
504 var entry; |
|
505 if (index !== 'F') return that._i[index]; |
|
506 // frozen object case |
|
507 for (entry = that._f; entry; entry = entry.n) { |
|
508 if (entry.k == key) return entry; |
|
509 } |
|
510 }; |
|
511 |
|
512 module.exports = { |
|
513 getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { |
|
514 var C = wrapper(function (that, iterable) { |
|
515 anInstance(that, C, NAME, '_i'); |
|
516 that._t = NAME; // collection type |
|
517 that._i = create(null); // index |
|
518 that._f = undefined; // first entry |
|
519 that._l = undefined; // last entry |
|
520 that[SIZE] = 0; // size |
|
521 if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); |
|
522 }); |
|
523 redefineAll(C.prototype, { |
|
524 // 23.1.3.1 Map.prototype.clear() |
|
525 // 23.2.3.2 Set.prototype.clear() |
|
526 clear: function clear() { |
|
527 for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) { |
|
528 entry.r = true; |
|
529 if (entry.p) entry.p = entry.p.n = undefined; |
|
530 delete data[entry.i]; |
|
531 } |
|
532 that._f = that._l = undefined; |
|
533 that[SIZE] = 0; |
|
534 }, |
|
535 // 23.1.3.3 Map.prototype.delete(key) |
|
536 // 23.2.3.4 Set.prototype.delete(value) |
|
537 'delete': function (key) { |
|
538 var that = validate(this, NAME); |
|
539 var entry = getEntry(that, key); |
|
540 if (entry) { |
|
541 var next = entry.n; |
|
542 var prev = entry.p; |
|
543 delete that._i[entry.i]; |
|
544 entry.r = true; |
|
545 if (prev) prev.n = next; |
|
546 if (next) next.p = prev; |
|
547 if (that._f == entry) that._f = next; |
|
548 if (that._l == entry) that._l = prev; |
|
549 that[SIZE]--; |
|
550 } return !!entry; |
|
551 }, |
|
552 // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined) |
|
553 // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined) |
|
554 forEach: function forEach(callbackfn /* , that = undefined */) { |
|
555 validate(this, NAME); |
|
556 var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3); |
|
557 var entry; |
|
558 while (entry = entry ? entry.n : this._f) { |
|
559 f(entry.v, entry.k, this); |
|
560 // revert to the last existing entry |
|
561 while (entry && entry.r) entry = entry.p; |
|
562 } |
|
563 }, |
|
564 // 23.1.3.7 Map.prototype.has(key) |
|
565 // 23.2.3.7 Set.prototype.has(value) |
|
566 has: function has(key) { |
|
567 return !!getEntry(validate(this, NAME), key); |
|
568 } |
|
569 }); |
|
570 if (DESCRIPTORS) dP(C.prototype, 'size', { |
|
571 get: function () { |
|
572 return validate(this, NAME)[SIZE]; |
|
573 } |
|
574 }); |
|
575 return C; |
|
576 }, |
|
577 def: function (that, key, value) { |
|
578 var entry = getEntry(that, key); |
|
579 var prev, index; |
|
580 // change existing entry |
|
581 if (entry) { |
|
582 entry.v = value; |
|
583 // create new entry |
|
584 } else { |
|
585 that._l = entry = { |
|
586 i: index = fastKey(key, true), // <- index |
|
587 k: key, // <- key |
|
588 v: value, // <- value |
|
589 p: prev = that._l, // <- previous entry |
|
590 n: undefined, // <- next entry |
|
591 r: false // <- removed |
|
592 }; |
|
593 if (!that._f) that._f = entry; |
|
594 if (prev) prev.n = entry; |
|
595 that[SIZE]++; |
|
596 // add to index |
|
597 if (index !== 'F') that._i[index] = entry; |
|
598 } return that; |
|
599 }, |
|
600 getEntry: getEntry, |
|
601 setStrong: function (C, NAME, IS_MAP) { |
|
602 // add .keys, .values, .entries, [@@iterator] |
|
603 // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11 |
|
604 $iterDefine(C, NAME, function (iterated, kind) { |
|
605 this._t = validate(iterated, NAME); // target |
|
606 this._k = kind; // kind |
|
607 this._l = undefined; // previous |
|
608 }, function () { |
|
609 var that = this; |
|
610 var kind = that._k; |
|
611 var entry = that._l; |
|
612 // revert to the last existing entry |
|
613 while (entry && entry.r) entry = entry.p; |
|
614 // get next entry |
|
615 if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) { |
|
616 // or finish the iteration |
|
617 that._t = undefined; |
|
618 return step(1); |
|
619 } |
|
620 // return step by kind |
|
621 if (kind == 'keys') return step(0, entry.k); |
|
622 if (kind == 'values') return step(0, entry.v); |
|
623 return step(0, [entry.k, entry.v]); |
|
624 }, IS_MAP ? 'entries' : 'values', !IS_MAP, true); |
|
625 |
|
626 // add [@@species], 23.1.2.2, 23.2.2.2 |
|
627 setSpecies(NAME); |
|
628 } |
|
629 }; |
|
630 |
|
631 },{"125":125,"15":15,"32":32,"36":36,"45":45,"61":61,"63":63,"70":70,"74":74,"75":75,"93":93,"99":99}],28:[function(_dereq_,module,exports){ |
|
632 'use strict'; |
|
633 var redefineAll = _dereq_(93); |
|
634 var getWeak = _dereq_(70).getWeak; |
|
635 var anObject = _dereq_(16); |
|
636 var isObject = _dereq_(57); |
|
637 var anInstance = _dereq_(15); |
|
638 var forOf = _dereq_(45); |
|
639 var createArrayMethod = _dereq_(20); |
|
640 var $has = _dereq_(47); |
|
641 var validate = _dereq_(125); |
|
642 var arrayFind = createArrayMethod(5); |
|
643 var arrayFindIndex = createArrayMethod(6); |
|
644 var id = 0; |
|
645 |
|
646 // fallback for uncaught frozen keys |
|
647 var uncaughtFrozenStore = function (that) { |
|
648 return that._l || (that._l = new UncaughtFrozenStore()); |
|
649 }; |
|
650 var UncaughtFrozenStore = function () { |
|
651 this.a = []; |
|
652 }; |
|
653 var findUncaughtFrozen = function (store, key) { |
|
654 return arrayFind(store.a, function (it) { |
|
655 return it[0] === key; |
|
656 }); |
|
657 }; |
|
658 UncaughtFrozenStore.prototype = { |
|
659 get: function (key) { |
|
660 var entry = findUncaughtFrozen(this, key); |
|
661 if (entry) return entry[1]; |
|
662 }, |
|
663 has: function (key) { |
|
664 return !!findUncaughtFrozen(this, key); |
|
665 }, |
|
666 set: function (key, value) { |
|
667 var entry = findUncaughtFrozen(this, key); |
|
668 if (entry) entry[1] = value; |
|
669 else this.a.push([key, value]); |
|
670 }, |
|
671 'delete': function (key) { |
|
672 var index = arrayFindIndex(this.a, function (it) { |
|
673 return it[0] === key; |
|
674 }); |
|
675 if (~index) this.a.splice(index, 1); |
|
676 return !!~index; |
|
677 } |
|
678 }; |
|
679 |
|
680 module.exports = { |
|
681 getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { |
|
682 var C = wrapper(function (that, iterable) { |
|
683 anInstance(that, C, NAME, '_i'); |
|
684 that._t = NAME; // collection type |
|
685 that._i = id++; // collection id |
|
686 that._l = undefined; // leak store for uncaught frozen objects |
|
687 if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); |
|
688 }); |
|
689 redefineAll(C.prototype, { |
|
690 // 23.3.3.2 WeakMap.prototype.delete(key) |
|
691 // 23.4.3.3 WeakSet.prototype.delete(value) |
|
692 'delete': function (key) { |
|
693 if (!isObject(key)) return false; |
|
694 var data = getWeak(key); |
|
695 if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key); |
|
696 return data && $has(data, this._i) && delete data[this._i]; |
|
697 }, |
|
698 // 23.3.3.4 WeakMap.prototype.has(key) |
|
699 // 23.4.3.4 WeakSet.prototype.has(value) |
|
700 has: function has(key) { |
|
701 if (!isObject(key)) return false; |
|
702 var data = getWeak(key); |
|
703 if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key); |
|
704 return data && $has(data, this._i); |
|
705 } |
|
706 }); |
|
707 return C; |
|
708 }, |
|
709 def: function (that, key, value) { |
|
710 var data = getWeak(anObject(key), true); |
|
711 if (data === true) uncaughtFrozenStore(that).set(key, value); |
|
712 else data[that._i] = value; |
|
713 return that; |
|
714 }, |
|
715 ufstore: uncaughtFrozenStore |
|
716 }; |
|
717 |
|
718 },{"125":125,"15":15,"16":16,"20":20,"45":45,"47":47,"57":57,"70":70,"93":93}],29:[function(_dereq_,module,exports){ |
|
719 'use strict'; |
|
720 var global = _dereq_(46); |
|
721 var $export = _dereq_(40); |
|
722 var redefine = _dereq_(94); |
|
723 var redefineAll = _dereq_(93); |
|
724 var meta = _dereq_(70); |
|
725 var forOf = _dereq_(45); |
|
726 var anInstance = _dereq_(15); |
|
727 var isObject = _dereq_(57); |
|
728 var fails = _dereq_(42); |
|
729 var $iterDetect = _dereq_(62); |
|
730 var setToStringTag = _dereq_(100); |
|
731 var inheritIfRequired = _dereq_(51); |
|
732 |
|
733 module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { |
|
734 var Base = global[NAME]; |
|
735 var C = Base; |
|
736 var ADDER = IS_MAP ? 'set' : 'add'; |
|
737 var proto = C && C.prototype; |
|
738 var O = {}; |
|
739 var fixMethod = function (KEY) { |
|
740 var fn = proto[KEY]; |
|
741 redefine(proto, KEY, |
|
742 KEY == 'delete' ? function (a) { |
|
743 return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); |
|
744 } : KEY == 'has' ? function has(a) { |
|
745 return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); |
|
746 } : KEY == 'get' ? function get(a) { |
|
747 return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a); |
|
748 } : KEY == 'add' ? function add(a) { fn.call(this, a === 0 ? 0 : a); return this; } |
|
749 : function set(a, b) { fn.call(this, a === 0 ? 0 : a, b); return this; } |
|
750 ); |
|
751 }; |
|
752 if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () { |
|
753 new C().entries().next(); |
|
754 }))) { |
|
755 // create collection constructor |
|
756 C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER); |
|
757 redefineAll(C.prototype, methods); |
|
758 meta.NEED = true; |
|
759 } else { |
|
760 var instance = new C(); |
|
761 // early implementations not supports chaining |
|
762 var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance; |
|
763 // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false |
|
764 var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); }); |
|
765 // most early implementations doesn't supports iterables, most modern - not close it correctly |
|
766 var ACCEPT_ITERABLES = $iterDetect(function (iter) { new C(iter); }); // eslint-disable-line no-new |
|
767 // for early implementations -0 and +0 not the same |
|
768 var BUGGY_ZERO = !IS_WEAK && fails(function () { |
|
769 // V8 ~ Chromium 42- fails only with 5+ elements |
|
770 var $instance = new C(); |
|
771 var index = 5; |
|
772 while (index--) $instance[ADDER](index, index); |
|
773 return !$instance.has(-0); |
|
774 }); |
|
775 if (!ACCEPT_ITERABLES) { |
|
776 C = wrapper(function (target, iterable) { |
|
777 anInstance(target, C, NAME); |
|
778 var that = inheritIfRequired(new Base(), target, C); |
|
779 if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); |
|
780 return that; |
|
781 }); |
|
782 C.prototype = proto; |
|
783 proto.constructor = C; |
|
784 } |
|
785 if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) { |
|
786 fixMethod('delete'); |
|
787 fixMethod('has'); |
|
788 IS_MAP && fixMethod('get'); |
|
789 } |
|
790 if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER); |
|
791 // weak collections should not contains .clear method |
|
792 if (IS_WEAK && proto.clear) delete proto.clear; |
|
793 } |
|
794 |
|
795 setToStringTag(C, NAME); |
|
796 |
|
797 O[NAME] = C; |
|
798 $export($export.G + $export.W + $export.F * (C != Base), O); |
|
799 |
|
800 if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP); |
|
801 |
|
802 return C; |
|
803 }; |
|
804 |
|
805 },{"100":100,"15":15,"40":40,"42":42,"45":45,"46":46,"51":51,"57":57,"62":62,"70":70,"93":93,"94":94}],30:[function(_dereq_,module,exports){ |
|
806 var core = module.exports = { version: '2.6.1' }; |
|
807 if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef |
|
808 |
|
809 },{}],31:[function(_dereq_,module,exports){ |
|
810 'use strict'; |
|
811 var $defineProperty = _dereq_(75); |
|
812 var createDesc = _dereq_(92); |
|
813 |
|
814 module.exports = function (object, index, value) { |
|
815 if (index in object) $defineProperty.f(object, index, createDesc(0, value)); |
|
816 else object[index] = value; |
|
817 }; |
|
818 |
|
819 },{"75":75,"92":92}],32:[function(_dereq_,module,exports){ |
|
820 // optional / simple context binding |
|
821 var aFunction = _dereq_(11); |
|
822 module.exports = function (fn, that, length) { |
|
823 aFunction(fn); |
|
824 if (that === undefined) return fn; |
|
825 switch (length) { |
|
826 case 1: return function (a) { |
|
827 return fn.call(that, a); |
|
828 }; |
|
829 case 2: return function (a, b) { |
|
830 return fn.call(that, a, b); |
|
831 }; |
|
832 case 3: return function (a, b, c) { |
|
833 return fn.call(that, a, b, c); |
|
834 }; |
|
835 } |
|
836 return function (/* ...args */) { |
|
837 return fn.apply(that, arguments); |
|
838 }; |
|
839 }; |
|
840 |
|
841 },{"11":11}],33:[function(_dereq_,module,exports){ |
|
842 'use strict'; |
|
843 // 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString() |
|
844 var fails = _dereq_(42); |
|
845 var getTime = Date.prototype.getTime; |
|
846 var $toISOString = Date.prototype.toISOString; |
|
847 |
|
848 var lz = function (num) { |
|
849 return num > 9 ? num : '0' + num; |
|
850 }; |
|
851 |
|
852 // PhantomJS / old WebKit has a broken implementations |
|
853 module.exports = (fails(function () { |
|
854 return $toISOString.call(new Date(-5e13 - 1)) != '0385-07-25T07:06:39.999Z'; |
|
855 }) || !fails(function () { |
|
856 $toISOString.call(new Date(NaN)); |
|
857 })) ? function toISOString() { |
|
858 if (!isFinite(getTime.call(this))) throw RangeError('Invalid time value'); |
|
859 var d = this; |
|
860 var y = d.getUTCFullYear(); |
|
861 var m = d.getUTCMilliseconds(); |
|
862 var s = y < 0 ? '-' : y > 9999 ? '+' : ''; |
|
863 return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) + |
|
864 '-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) + |
|
865 'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) + |
|
866 ':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'Z'; |
|
867 } : $toISOString; |
|
868 |
|
869 },{"42":42}],34:[function(_dereq_,module,exports){ |
|
870 'use strict'; |
|
871 var anObject = _dereq_(16); |
|
872 var toPrimitive = _dereq_(119); |
|
873 var NUMBER = 'number'; |
|
874 |
|
875 module.exports = function (hint) { |
|
876 if (hint !== 'string' && hint !== NUMBER && hint !== 'default') throw TypeError('Incorrect hint'); |
|
877 return toPrimitive(anObject(this), hint != NUMBER); |
|
878 }; |
|
879 |
|
880 },{"119":119,"16":16}],35:[function(_dereq_,module,exports){ |
|
881 // 7.2.1 RequireObjectCoercible(argument) |
|
882 module.exports = function (it) { |
|
883 if (it == undefined) throw TypeError("Can't call method on " + it); |
|
884 return it; |
|
885 }; |
|
886 |
|
887 },{}],36:[function(_dereq_,module,exports){ |
|
888 // Thank's IE8 for his funny defineProperty |
|
889 module.exports = !_dereq_(42)(function () { |
|
890 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; |
|
891 }); |
|
892 |
|
893 },{"42":42}],37:[function(_dereq_,module,exports){ |
|
894 var isObject = _dereq_(57); |
|
895 var document = _dereq_(46).document; |
|
896 // typeof document.createElement is 'object' in old IE |
|
897 var is = isObject(document) && isObject(document.createElement); |
|
898 module.exports = function (it) { |
|
899 return is ? document.createElement(it) : {}; |
|
900 }; |
|
901 |
|
902 },{"46":46,"57":57}],38:[function(_dereq_,module,exports){ |
|
903 // IE 8- don't enum bug keys |
|
904 module.exports = ( |
|
905 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' |
|
906 ).split(','); |
|
907 |
|
908 },{}],39:[function(_dereq_,module,exports){ |
|
909 // all enumerable object keys, includes symbols |
|
910 var getKeys = _dereq_(83); |
|
911 var gOPS = _dereq_(80); |
|
912 var pIE = _dereq_(84); |
|
913 module.exports = function (it) { |
|
914 var result = getKeys(it); |
|
915 var getSymbols = gOPS.f; |
|
916 if (getSymbols) { |
|
917 var symbols = getSymbols(it); |
|
918 var isEnum = pIE.f; |
|
919 var i = 0; |
|
920 var key; |
|
921 while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); |
|
922 } return result; |
|
923 }; |
|
924 |
|
925 },{"80":80,"83":83,"84":84}],40:[function(_dereq_,module,exports){ |
|
926 var global = _dereq_(46); |
|
927 var core = _dereq_(30); |
|
928 var hide = _dereq_(48); |
|
929 var redefine = _dereq_(94); |
|
930 var ctx = _dereq_(32); |
|
931 var PROTOTYPE = 'prototype'; |
|
932 |
|
933 var $export = function (type, name, source) { |
|
934 var IS_FORCED = type & $export.F; |
|
935 var IS_GLOBAL = type & $export.G; |
|
936 var IS_STATIC = type & $export.S; |
|
937 var IS_PROTO = type & $export.P; |
|
938 var IS_BIND = type & $export.B; |
|
939 var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; |
|
940 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); |
|
941 var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); |
|
942 var key, own, out, exp; |
|
943 if (IS_GLOBAL) source = name; |
|
944 for (key in source) { |
|
945 // contains in native |
|
946 own = !IS_FORCED && target && target[key] !== undefined; |
|
947 // export native or passed |
|
948 out = (own ? target : source)[key]; |
|
949 // bind timers to global for call from export context |
|
950 exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; |
|
951 // extend global |
|
952 if (target) redefine(target, key, out, type & $export.U); |
|
953 // export |
|
954 if (exports[key] != out) hide(exports, key, exp); |
|
955 if (IS_PROTO && expProto[key] != out) expProto[key] = out; |
|
956 } |
|
957 }; |
|
958 global.core = core; |
|
959 // type bitmap |
|
960 $export.F = 1; // forced |
|
961 $export.G = 2; // global |
|
962 $export.S = 4; // static |
|
963 $export.P = 8; // proto |
|
964 $export.B = 16; // bind |
|
965 $export.W = 32; // wrap |
|
966 $export.U = 64; // safe |
|
967 $export.R = 128; // real proto method for `library` |
|
968 module.exports = $export; |
|
969 |
|
970 },{"30":30,"32":32,"46":46,"48":48,"94":94}],41:[function(_dereq_,module,exports){ |
|
971 var MATCH = _dereq_(128)('match'); |
|
972 module.exports = function (KEY) { |
|
973 var re = /./; |
|
974 try { |
|
975 '/./'[KEY](re); |
|
976 } catch (e) { |
|
977 try { |
|
978 re[MATCH] = false; |
|
979 return !'/./'[KEY](re); |
|
980 } catch (f) { /* empty */ } |
|
981 } return true; |
|
982 }; |
|
983 |
|
984 },{"128":128}],42:[function(_dereq_,module,exports){ |
|
985 module.exports = function (exec) { |
|
986 try { |
|
987 return !!exec(); |
|
988 } catch (e) { |
|
989 return true; |
|
990 } |
|
991 }; |
|
992 |
|
993 },{}],43:[function(_dereq_,module,exports){ |
|
994 'use strict'; |
|
995 _dereq_(224); |
|
996 var redefine = _dereq_(94); |
|
997 var hide = _dereq_(48); |
|
998 var fails = _dereq_(42); |
|
999 var defined = _dereq_(35); |
|
1000 var wks = _dereq_(128); |
|
1001 var regexpExec = _dereq_(96); |
|
1002 |
|
1003 var SPECIES = wks('species'); |
|
1004 |
|
1005 var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () { |
|
1006 // #replace needs built-in support for named groups. |
|
1007 // #match works fine because it just return the exec results, even if it has |
|
1008 // a "grops" property. |
|
1009 var re = /./; |
|
1010 re.exec = function () { |
|
1011 var result = []; |
|
1012 result.groups = { a: '7' }; |
|
1013 return result; |
|
1014 }; |
|
1015 return ''.replace(re, '$<a>') !== '7'; |
|
1016 }); |
|
1017 |
|
1018 var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () { |
|
1019 // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec |
|
1020 var re = /(?:)/; |
|
1021 var originalExec = re.exec; |
|
1022 re.exec = function () { return originalExec.apply(this, arguments); }; |
|
1023 var result = 'ab'.split(re); |
|
1024 return result.length === 2 && result[0] === 'a' && result[1] === 'b'; |
|
1025 })(); |
|
1026 |
|
1027 module.exports = function (KEY, length, exec) { |
|
1028 var SYMBOL = wks(KEY); |
|
1029 |
|
1030 var DELEGATES_TO_SYMBOL = !fails(function () { |
|
1031 // String methods call symbol-named RegEp methods |
|
1032 var O = {}; |
|
1033 O[SYMBOL] = function () { return 7; }; |
|
1034 return ''[KEY](O) != 7; |
|
1035 }); |
|
1036 |
|
1037 var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () { |
|
1038 // Symbol-named RegExp methods call .exec |
|
1039 var execCalled = false; |
|
1040 var re = /a/; |
|
1041 re.exec = function () { execCalled = true; return null; }; |
|
1042 if (KEY === 'split') { |
|
1043 // RegExp[@@split] doesn't call the regex's exec method, but first creates |
|
1044 // a new one. We need to return the patched regex when creating the new one. |
|
1045 re.constructor = {}; |
|
1046 re.constructor[SPECIES] = function () { return re; }; |
|
1047 } |
|
1048 re[SYMBOL](''); |
|
1049 return !execCalled; |
|
1050 }) : undefined; |
|
1051 |
|
1052 if ( |
|
1053 !DELEGATES_TO_SYMBOL || |
|
1054 !DELEGATES_TO_EXEC || |
|
1055 (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) || |
|
1056 (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC) |
|
1057 ) { |
|
1058 var nativeRegExpMethod = /./[SYMBOL]; |
|
1059 var fns = exec( |
|
1060 defined, |
|
1061 SYMBOL, |
|
1062 ''[KEY], |
|
1063 function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) { |
|
1064 if (regexp.exec === regexpExec) { |
|
1065 if (DELEGATES_TO_SYMBOL && !forceStringMethod) { |
|
1066 // The native String method already delegates to @@method (this |
|
1067 // polyfilled function), leasing to infinite recursion. |
|
1068 // We avoid it by directly calling the native @@method method. |
|
1069 return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) }; |
|
1070 } |
|
1071 return { done: true, value: nativeMethod.call(str, regexp, arg2) }; |
|
1072 } |
|
1073 return { done: false }; |
|
1074 } |
|
1075 ); |
|
1076 var strfn = fns[0]; |
|
1077 var rxfn = fns[1]; |
|
1078 |
|
1079 redefine(String.prototype, KEY, strfn); |
|
1080 hide(RegExp.prototype, SYMBOL, length == 2 |
|
1081 // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) |
|
1082 // 21.2.5.11 RegExp.prototype[@@split](string, limit) |
|
1083 ? function (string, arg) { return rxfn.call(string, this, arg); } |
|
1084 // 21.2.5.6 RegExp.prototype[@@match](string) |
|
1085 // 21.2.5.9 RegExp.prototype[@@search](string) |
|
1086 : function (string) { return rxfn.call(string, this); } |
|
1087 ); |
|
1088 } |
|
1089 }; |
|
1090 |
|
1091 },{"128":128,"224":224,"35":35,"42":42,"48":48,"94":94,"96":96}],44:[function(_dereq_,module,exports){ |
|
1092 'use strict'; |
|
1093 // 21.2.5.3 get RegExp.prototype.flags |
|
1094 var anObject = _dereq_(16); |
|
1095 module.exports = function () { |
|
1096 var that = anObject(this); |
|
1097 var result = ''; |
|
1098 if (that.global) result += 'g'; |
|
1099 if (that.ignoreCase) result += 'i'; |
|
1100 if (that.multiline) result += 'm'; |
|
1101 if (that.unicode) result += 'u'; |
|
1102 if (that.sticky) result += 'y'; |
|
1103 return result; |
|
1104 }; |
|
1105 |
|
1106 },{"16":16}],45:[function(_dereq_,module,exports){ |
|
1107 var ctx = _dereq_(32); |
|
1108 var call = _dereq_(59); |
|
1109 var isArrayIter = _dereq_(54); |
|
1110 var anObject = _dereq_(16); |
|
1111 var toLength = _dereq_(117); |
|
1112 var getIterFn = _dereq_(129); |
|
1113 var BREAK = {}; |
|
1114 var RETURN = {}; |
|
1115 var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) { |
|
1116 var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable); |
|
1117 var f = ctx(fn, that, entries ? 2 : 1); |
|
1118 var index = 0; |
|
1119 var length, step, iterator, result; |
|
1120 if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!'); |
|
1121 // fast case for arrays with default iterator |
|
1122 if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) { |
|
1123 result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]); |
|
1124 if (result === BREAK || result === RETURN) return result; |
|
1125 } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) { |
|
1126 result = call(iterator, f, step.value, entries); |
|
1127 if (result === BREAK || result === RETURN) return result; |
|
1128 } |
|
1129 }; |
|
1130 exports.BREAK = BREAK; |
|
1131 exports.RETURN = RETURN; |
|
1132 |
|
1133 },{"117":117,"129":129,"16":16,"32":32,"54":54,"59":59}],46:[function(_dereq_,module,exports){ |
|
1134 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 |
|
1135 var global = module.exports = typeof window != 'undefined' && window.Math == Math |
|
1136 ? window : typeof self != 'undefined' && self.Math == Math ? self |
|
1137 // eslint-disable-next-line no-new-func |
|
1138 : Function('return this')(); |
|
1139 if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef |
|
1140 |
|
1141 },{}],47:[function(_dereq_,module,exports){ |
|
1142 var hasOwnProperty = {}.hasOwnProperty; |
|
1143 module.exports = function (it, key) { |
|
1144 return hasOwnProperty.call(it, key); |
|
1145 }; |
|
1146 |
|
1147 },{}],48:[function(_dereq_,module,exports){ |
|
1148 var dP = _dereq_(75); |
|
1149 var createDesc = _dereq_(92); |
|
1150 module.exports = _dereq_(36) ? function (object, key, value) { |
|
1151 return dP.f(object, key, createDesc(1, value)); |
|
1152 } : function (object, key, value) { |
|
1153 object[key] = value; |
|
1154 return object; |
|
1155 }; |
|
1156 |
|
1157 },{"36":36,"75":75,"92":92}],49:[function(_dereq_,module,exports){ |
|
1158 var document = _dereq_(46).document; |
|
1159 module.exports = document && document.documentElement; |
|
1160 |
|
1161 },{"46":46}],50:[function(_dereq_,module,exports){ |
|
1162 module.exports = !_dereq_(36) && !_dereq_(42)(function () { |
|
1163 return Object.defineProperty(_dereq_(37)('div'), 'a', { get: function () { return 7; } }).a != 7; |
|
1164 }); |
|
1165 |
|
1166 },{"36":36,"37":37,"42":42}],51:[function(_dereq_,module,exports){ |
|
1167 var isObject = _dereq_(57); |
|
1168 var setPrototypeOf = _dereq_(98).set; |
|
1169 module.exports = function (that, target, C) { |
|
1170 var S = target.constructor; |
|
1171 var P; |
|
1172 if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) { |
|
1173 setPrototypeOf(that, P); |
|
1174 } return that; |
|
1175 }; |
|
1176 |
|
1177 },{"57":57,"98":98}],52:[function(_dereq_,module,exports){ |
|
1178 // fast apply, http://jsperf.lnkit.com/fast-apply/5 |
|
1179 module.exports = function (fn, args, that) { |
|
1180 var un = that === undefined; |
|
1181 switch (args.length) { |
|
1182 case 0: return un ? fn() |
|
1183 : fn.call(that); |
|
1184 case 1: return un ? fn(args[0]) |
|
1185 : fn.call(that, args[0]); |
|
1186 case 2: return un ? fn(args[0], args[1]) |
|
1187 : fn.call(that, args[0], args[1]); |
|
1188 case 3: return un ? fn(args[0], args[1], args[2]) |
|
1189 : fn.call(that, args[0], args[1], args[2]); |
|
1190 case 4: return un ? fn(args[0], args[1], args[2], args[3]) |
|
1191 : fn.call(that, args[0], args[1], args[2], args[3]); |
|
1192 } return fn.apply(that, args); |
|
1193 }; |
|
1194 |
|
1195 },{}],53:[function(_dereq_,module,exports){ |
|
1196 // fallback for non-array-like ES3 and non-enumerable old V8 strings |
|
1197 var cof = _dereq_(26); |
|
1198 // eslint-disable-next-line no-prototype-builtins |
|
1199 module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { |
|
1200 return cof(it) == 'String' ? it.split('') : Object(it); |
|
1201 }; |
|
1202 |
|
1203 },{"26":26}],54:[function(_dereq_,module,exports){ |
|
1204 // check on default Array iterator |
|
1205 var Iterators = _dereq_(64); |
|
1206 var ITERATOR = _dereq_(128)('iterator'); |
|
1207 var ArrayProto = Array.prototype; |
|
1208 |
|
1209 module.exports = function (it) { |
|
1210 return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); |
|
1211 }; |
|
1212 |
|
1213 },{"128":128,"64":64}],55:[function(_dereq_,module,exports){ |
|
1214 // 7.2.2 IsArray(argument) |
|
1215 var cof = _dereq_(26); |
|
1216 module.exports = Array.isArray || function isArray(arg) { |
|
1217 return cof(arg) == 'Array'; |
|
1218 }; |
|
1219 |
|
1220 },{"26":26}],56:[function(_dereq_,module,exports){ |
|
1221 // 20.1.2.3 Number.isInteger(number) |
|
1222 var isObject = _dereq_(57); |
|
1223 var floor = Math.floor; |
|
1224 module.exports = function isInteger(it) { |
|
1225 return !isObject(it) && isFinite(it) && floor(it) === it; |
|
1226 }; |
|
1227 |
|
1228 },{"57":57}],57:[function(_dereq_,module,exports){ |
|
1229 module.exports = function (it) { |
|
1230 return typeof it === 'object' ? it !== null : typeof it === 'function'; |
|
1231 }; |
|
1232 |
|
1233 },{}],58:[function(_dereq_,module,exports){ |
|
1234 // 7.2.8 IsRegExp(argument) |
|
1235 var isObject = _dereq_(57); |
|
1236 var cof = _dereq_(26); |
|
1237 var MATCH = _dereq_(128)('match'); |
|
1238 module.exports = function (it) { |
|
1239 var isRegExp; |
|
1240 return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp'); |
|
1241 }; |
|
1242 |
|
1243 },{"128":128,"26":26,"57":57}],59:[function(_dereq_,module,exports){ |
|
1244 // call something on iterator step with safe closing on error |
|
1245 var anObject = _dereq_(16); |
|
1246 module.exports = function (iterator, fn, value, entries) { |
|
1247 try { |
|
1248 return entries ? fn(anObject(value)[0], value[1]) : fn(value); |
|
1249 // 7.4.6 IteratorClose(iterator, completion) |
|
1250 } catch (e) { |
|
1251 var ret = iterator['return']; |
|
1252 if (ret !== undefined) anObject(ret.call(iterator)); |
|
1253 throw e; |
|
1254 } |
|
1255 }; |
|
1256 |
|
1257 },{"16":16}],60:[function(_dereq_,module,exports){ |
|
1258 'use strict'; |
|
1259 var create = _dereq_(74); |
|
1260 var descriptor = _dereq_(92); |
|
1261 var setToStringTag = _dereq_(100); |
|
1262 var IteratorPrototype = {}; |
|
1263 |
|
1264 // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() |
|
1265 _dereq_(48)(IteratorPrototype, _dereq_(128)('iterator'), function () { return this; }); |
|
1266 |
|
1267 module.exports = function (Constructor, NAME, next) { |
|
1268 Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); |
|
1269 setToStringTag(Constructor, NAME + ' Iterator'); |
|
1270 }; |
|
1271 |
|
1272 },{"100":100,"128":128,"48":48,"74":74,"92":92}],61:[function(_dereq_,module,exports){ |
|
1273 'use strict'; |
|
1274 var LIBRARY = _dereq_(65); |
|
1275 var $export = _dereq_(40); |
|
1276 var redefine = _dereq_(94); |
|
1277 var hide = _dereq_(48); |
|
1278 var Iterators = _dereq_(64); |
|
1279 var $iterCreate = _dereq_(60); |
|
1280 var setToStringTag = _dereq_(100); |
|
1281 var getPrototypeOf = _dereq_(81); |
|
1282 var ITERATOR = _dereq_(128)('iterator'); |
|
1283 var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` |
|
1284 var FF_ITERATOR = '@@iterator'; |
|
1285 var KEYS = 'keys'; |
|
1286 var VALUES = 'values'; |
|
1287 |
|
1288 var returnThis = function () { return this; }; |
|
1289 |
|
1290 module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { |
|
1291 $iterCreate(Constructor, NAME, next); |
|
1292 var getMethod = function (kind) { |
|
1293 if (!BUGGY && kind in proto) return proto[kind]; |
|
1294 switch (kind) { |
|
1295 case KEYS: return function keys() { return new Constructor(this, kind); }; |
|
1296 case VALUES: return function values() { return new Constructor(this, kind); }; |
|
1297 } return function entries() { return new Constructor(this, kind); }; |
|
1298 }; |
|
1299 var TAG = NAME + ' Iterator'; |
|
1300 var DEF_VALUES = DEFAULT == VALUES; |
|
1301 var VALUES_BUG = false; |
|
1302 var proto = Base.prototype; |
|
1303 var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; |
|
1304 var $default = $native || getMethod(DEFAULT); |
|
1305 var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; |
|
1306 var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; |
|
1307 var methods, key, IteratorPrototype; |
|
1308 // Fix native |
|
1309 if ($anyNative) { |
|
1310 IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); |
|
1311 if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { |
|
1312 // Set @@toStringTag to native iterators |
|
1313 setToStringTag(IteratorPrototype, TAG, true); |
|
1314 // fix for some old engines |
|
1315 if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); |
|
1316 } |
|
1317 } |
|
1318 // fix Array#{values, @@iterator}.name in V8 / FF |
|
1319 if (DEF_VALUES && $native && $native.name !== VALUES) { |
|
1320 VALUES_BUG = true; |
|
1321 $default = function values() { return $native.call(this); }; |
|
1322 } |
|
1323 // Define iterator |
|
1324 if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { |
|
1325 hide(proto, ITERATOR, $default); |
|
1326 } |
|
1327 // Plug for library |
|
1328 Iterators[NAME] = $default; |
|
1329 Iterators[TAG] = returnThis; |
|
1330 if (DEFAULT) { |
|
1331 methods = { |
|
1332 values: DEF_VALUES ? $default : getMethod(VALUES), |
|
1333 keys: IS_SET ? $default : getMethod(KEYS), |
|
1334 entries: $entries |
|
1335 }; |
|
1336 if (FORCED) for (key in methods) { |
|
1337 if (!(key in proto)) redefine(proto, key, methods[key]); |
|
1338 } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); |
|
1339 } |
|
1340 return methods; |
|
1341 }; |
|
1342 |
|
1343 },{"100":100,"128":128,"40":40,"48":48,"60":60,"64":64,"65":65,"81":81,"94":94}],62:[function(_dereq_,module,exports){ |
|
1344 var ITERATOR = _dereq_(128)('iterator'); |
|
1345 var SAFE_CLOSING = false; |
|
1346 |
|
1347 try { |
|
1348 var riter = [7][ITERATOR](); |
|
1349 riter['return'] = function () { SAFE_CLOSING = true; }; |
|
1350 // eslint-disable-next-line no-throw-literal |
|
1351 Array.from(riter, function () { throw 2; }); |
|
1352 } catch (e) { /* empty */ } |
|
1353 |
|
1354 module.exports = function (exec, skipClosing) { |
|
1355 if (!skipClosing && !SAFE_CLOSING) return false; |
|
1356 var safe = false; |
|
1357 try { |
|
1358 var arr = [7]; |
|
1359 var iter = arr[ITERATOR](); |
|
1360 iter.next = function () { return { done: safe = true }; }; |
|
1361 arr[ITERATOR] = function () { return iter; }; |
|
1362 exec(arr); |
|
1363 } catch (e) { /* empty */ } |
|
1364 return safe; |
|
1365 }; |
|
1366 |
|
1367 },{"128":128}],63:[function(_dereq_,module,exports){ |
|
1368 module.exports = function (done, value) { |
|
1369 return { value: value, done: !!done }; |
|
1370 }; |
|
1371 |
|
1372 },{}],64:[function(_dereq_,module,exports){ |
|
1373 module.exports = {}; |
|
1374 |
|
1375 },{}],65:[function(_dereq_,module,exports){ |
|
1376 module.exports = false; |
|
1377 |
|
1378 },{}],66:[function(_dereq_,module,exports){ |
|
1379 // 20.2.2.14 Math.expm1(x) |
|
1380 var $expm1 = Math.expm1; |
|
1381 module.exports = (!$expm1 |
|
1382 // Old FF bug |
|
1383 || $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168 |
|
1384 // Tor Browser bug |
|
1385 || $expm1(-2e-17) != -2e-17 |
|
1386 ) ? function expm1(x) { |
|
1387 return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1; |
|
1388 } : $expm1; |
|
1389 |
|
1390 },{}],67:[function(_dereq_,module,exports){ |
|
1391 // 20.2.2.16 Math.fround(x) |
|
1392 var sign = _dereq_(69); |
|
1393 var pow = Math.pow; |
|
1394 var EPSILON = pow(2, -52); |
|
1395 var EPSILON32 = pow(2, -23); |
|
1396 var MAX32 = pow(2, 127) * (2 - EPSILON32); |
|
1397 var MIN32 = pow(2, -126); |
|
1398 |
|
1399 var roundTiesToEven = function (n) { |
|
1400 return n + 1 / EPSILON - 1 / EPSILON; |
|
1401 }; |
|
1402 |
|
1403 module.exports = Math.fround || function fround(x) { |
|
1404 var $abs = Math.abs(x); |
|
1405 var $sign = sign(x); |
|
1406 var a, result; |
|
1407 if ($abs < MIN32) return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32; |
|
1408 a = (1 + EPSILON32 / EPSILON) * $abs; |
|
1409 result = a - (a - $abs); |
|
1410 // eslint-disable-next-line no-self-compare |
|
1411 if (result > MAX32 || result != result) return $sign * Infinity; |
|
1412 return $sign * result; |
|
1413 }; |
|
1414 |
|
1415 },{"69":69}],68:[function(_dereq_,module,exports){ |
|
1416 // 20.2.2.20 Math.log1p(x) |
|
1417 module.exports = Math.log1p || function log1p(x) { |
|
1418 return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x); |
|
1419 }; |
|
1420 |
|
1421 },{}],69:[function(_dereq_,module,exports){ |
|
1422 // 20.2.2.28 Math.sign(x) |
|
1423 module.exports = Math.sign || function sign(x) { |
|
1424 // eslint-disable-next-line no-self-compare |
|
1425 return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1; |
|
1426 }; |
|
1427 |
|
1428 },{}],70:[function(_dereq_,module,exports){ |
|
1429 var META = _dereq_(123)('meta'); |
|
1430 var isObject = _dereq_(57); |
|
1431 var has = _dereq_(47); |
|
1432 var setDesc = _dereq_(75).f; |
|
1433 var id = 0; |
|
1434 var isExtensible = Object.isExtensible || function () { |
|
1435 return true; |
|
1436 }; |
|
1437 var FREEZE = !_dereq_(42)(function () { |
|
1438 return isExtensible(Object.preventExtensions({})); |
|
1439 }); |
|
1440 var setMeta = function (it) { |
|
1441 setDesc(it, META, { value: { |
|
1442 i: 'O' + ++id, // object ID |
|
1443 w: {} // weak collections IDs |
|
1444 } }); |
|
1445 }; |
|
1446 var fastKey = function (it, create) { |
|
1447 // return primitive with prefix |
|
1448 if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; |
|
1449 if (!has(it, META)) { |
|
1450 // can't set metadata to uncaught frozen object |
|
1451 if (!isExtensible(it)) return 'F'; |
|
1452 // not necessary to add metadata |
|
1453 if (!create) return 'E'; |
|
1454 // add missing metadata |
|
1455 setMeta(it); |
|
1456 // return object ID |
|
1457 } return it[META].i; |
|
1458 }; |
|
1459 var getWeak = function (it, create) { |
|
1460 if (!has(it, META)) { |
|
1461 // can't set metadata to uncaught frozen object |
|
1462 if (!isExtensible(it)) return true; |
|
1463 // not necessary to add metadata |
|
1464 if (!create) return false; |
|
1465 // add missing metadata |
|
1466 setMeta(it); |
|
1467 // return hash weak collections IDs |
|
1468 } return it[META].w; |
|
1469 }; |
|
1470 // add metadata on freeze-family methods calling |
|
1471 var onFreeze = function (it) { |
|
1472 if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); |
|
1473 return it; |
|
1474 }; |
|
1475 var meta = module.exports = { |
|
1476 KEY: META, |
|
1477 NEED: false, |
|
1478 fastKey: fastKey, |
|
1479 getWeak: getWeak, |
|
1480 onFreeze: onFreeze |
|
1481 }; |
|
1482 |
|
1483 },{"123":123,"42":42,"47":47,"57":57,"75":75}],71:[function(_dereq_,module,exports){ |
|
1484 var global = _dereq_(46); |
|
1485 var macrotask = _dereq_(112).set; |
|
1486 var Observer = global.MutationObserver || global.WebKitMutationObserver; |
|
1487 var process = global.process; |
|
1488 var Promise = global.Promise; |
|
1489 var isNode = _dereq_(26)(process) == 'process'; |
|
1490 |
|
1491 module.exports = function () { |
|
1492 var head, last, notify; |
|
1493 |
|
1494 var flush = function () { |
|
1495 var parent, fn; |
|
1496 if (isNode && (parent = process.domain)) parent.exit(); |
|
1497 while (head) { |
|
1498 fn = head.fn; |
|
1499 head = head.next; |
|
1500 try { |
|
1501 fn(); |
|
1502 } catch (e) { |
|
1503 if (head) notify(); |
|
1504 else last = undefined; |
|
1505 throw e; |
|
1506 } |
|
1507 } last = undefined; |
|
1508 if (parent) parent.enter(); |
|
1509 }; |
|
1510 |
|
1511 // Node.js |
|
1512 if (isNode) { |
|
1513 notify = function () { |
|
1514 process.nextTick(flush); |
|
1515 }; |
|
1516 // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339 |
|
1517 } else if (Observer && !(global.navigator && global.navigator.standalone)) { |
|
1518 var toggle = true; |
|
1519 var node = document.createTextNode(''); |
|
1520 new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new |
|
1521 notify = function () { |
|
1522 node.data = toggle = !toggle; |
|
1523 }; |
|
1524 // environments with maybe non-completely correct, but existent Promise |
|
1525 } else if (Promise && Promise.resolve) { |
|
1526 // Promise.resolve without an argument throws an error in LG WebOS 2 |
|
1527 var promise = Promise.resolve(undefined); |
|
1528 notify = function () { |
|
1529 promise.then(flush); |
|
1530 }; |
|
1531 // for other environments - macrotask based on: |
|
1532 // - setImmediate |
|
1533 // - MessageChannel |
|
1534 // - window.postMessag |
|
1535 // - onreadystatechange |
|
1536 // - setTimeout |
|
1537 } else { |
|
1538 notify = function () { |
|
1539 // strange IE + webpack dev server bug - use .call(global) |
|
1540 macrotask.call(global, flush); |
|
1541 }; |
|
1542 } |
|
1543 |
|
1544 return function (fn) { |
|
1545 var task = { fn: fn, next: undefined }; |
|
1546 if (last) last.next = task; |
|
1547 if (!head) { |
|
1548 head = task; |
|
1549 notify(); |
|
1550 } last = task; |
|
1551 }; |
|
1552 }; |
|
1553 |
|
1554 },{"112":112,"26":26,"46":46}],72:[function(_dereq_,module,exports){ |
|
1555 'use strict'; |
|
1556 // 25.4.1.5 NewPromiseCapability(C) |
|
1557 var aFunction = _dereq_(11); |
|
1558 |
|
1559 function PromiseCapability(C) { |
|
1560 var resolve, reject; |
|
1561 this.promise = new C(function ($$resolve, $$reject) { |
|
1562 if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor'); |
|
1563 resolve = $$resolve; |
|
1564 reject = $$reject; |
|
1565 }); |
|
1566 this.resolve = aFunction(resolve); |
|
1567 this.reject = aFunction(reject); |
|
1568 } |
|
1569 |
|
1570 module.exports.f = function (C) { |
|
1571 return new PromiseCapability(C); |
|
1572 }; |
|
1573 |
|
1574 },{"11":11}],73:[function(_dereq_,module,exports){ |
|
1575 'use strict'; |
|
1576 // 19.1.2.1 Object.assign(target, source, ...) |
|
1577 var getKeys = _dereq_(83); |
|
1578 var gOPS = _dereq_(80); |
|
1579 var pIE = _dereq_(84); |
|
1580 var toObject = _dereq_(118); |
|
1581 var IObject = _dereq_(53); |
|
1582 var $assign = Object.assign; |
|
1583 |
|
1584 // should work with symbols and should have deterministic property order (V8 bug) |
|
1585 module.exports = !$assign || _dereq_(42)(function () { |
|
1586 var A = {}; |
|
1587 var B = {}; |
|
1588 // eslint-disable-next-line no-undef |
|
1589 var S = Symbol(); |
|
1590 var K = 'abcdefghijklmnopqrst'; |
|
1591 A[S] = 7; |
|
1592 K.split('').forEach(function (k) { B[k] = k; }); |
|
1593 return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; |
|
1594 }) ? function assign(target, source) { // eslint-disable-line no-unused-vars |
|
1595 var T = toObject(target); |
|
1596 var aLen = arguments.length; |
|
1597 var index = 1; |
|
1598 var getSymbols = gOPS.f; |
|
1599 var isEnum = pIE.f; |
|
1600 while (aLen > index) { |
|
1601 var S = IObject(arguments[index++]); |
|
1602 var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S); |
|
1603 var length = keys.length; |
|
1604 var j = 0; |
|
1605 var key; |
|
1606 while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key]; |
|
1607 } return T; |
|
1608 } : $assign; |
|
1609 |
|
1610 },{"118":118,"42":42,"53":53,"80":80,"83":83,"84":84}],74:[function(_dereq_,module,exports){ |
|
1611 // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) |
|
1612 var anObject = _dereq_(16); |
|
1613 var dPs = _dereq_(76); |
|
1614 var enumBugKeys = _dereq_(38); |
|
1615 var IE_PROTO = _dereq_(101)('IE_PROTO'); |
|
1616 var Empty = function () { /* empty */ }; |
|
1617 var PROTOTYPE = 'prototype'; |
|
1618 |
|
1619 // Create object with fake `null` prototype: use iframe Object with cleared prototype |
|
1620 var createDict = function () { |
|
1621 // Thrash, waste and sodomy: IE GC bug |
|
1622 var iframe = _dereq_(37)('iframe'); |
|
1623 var i = enumBugKeys.length; |
|
1624 var lt = '<'; |
|
1625 var gt = '>'; |
|
1626 var iframeDocument; |
|
1627 iframe.style.display = 'none'; |
|
1628 _dereq_(49).appendChild(iframe); |
|
1629 iframe.src = 'javascript:'; // eslint-disable-line no-script-url |
|
1630 // createDict = iframe.contentWindow.Object; |
|
1631 // html.removeChild(iframe); |
|
1632 iframeDocument = iframe.contentWindow.document; |
|
1633 iframeDocument.open(); |
|
1634 iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); |
|
1635 iframeDocument.close(); |
|
1636 createDict = iframeDocument.F; |
|
1637 while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; |
|
1638 return createDict(); |
|
1639 }; |
|
1640 |
|
1641 module.exports = Object.create || function create(O, Properties) { |
|
1642 var result; |
|
1643 if (O !== null) { |
|
1644 Empty[PROTOTYPE] = anObject(O); |
|
1645 result = new Empty(); |
|
1646 Empty[PROTOTYPE] = null; |
|
1647 // add "__proto__" for Object.getPrototypeOf polyfill |
|
1648 result[IE_PROTO] = O; |
|
1649 } else result = createDict(); |
|
1650 return Properties === undefined ? result : dPs(result, Properties); |
|
1651 }; |
|
1652 |
|
1653 },{"101":101,"16":16,"37":37,"38":38,"49":49,"76":76}],75:[function(_dereq_,module,exports){ |
|
1654 var anObject = _dereq_(16); |
|
1655 var IE8_DOM_DEFINE = _dereq_(50); |
|
1656 var toPrimitive = _dereq_(119); |
|
1657 var dP = Object.defineProperty; |
|
1658 |
|
1659 exports.f = _dereq_(36) ? Object.defineProperty : function defineProperty(O, P, Attributes) { |
|
1660 anObject(O); |
|
1661 P = toPrimitive(P, true); |
|
1662 anObject(Attributes); |
|
1663 if (IE8_DOM_DEFINE) try { |
|
1664 return dP(O, P, Attributes); |
|
1665 } catch (e) { /* empty */ } |
|
1666 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); |
|
1667 if ('value' in Attributes) O[P] = Attributes.value; |
|
1668 return O; |
|
1669 }; |
|
1670 |
|
1671 },{"119":119,"16":16,"36":36,"50":50}],76:[function(_dereq_,module,exports){ |
|
1672 var dP = _dereq_(75); |
|
1673 var anObject = _dereq_(16); |
|
1674 var getKeys = _dereq_(83); |
|
1675 |
|
1676 module.exports = _dereq_(36) ? Object.defineProperties : function defineProperties(O, Properties) { |
|
1677 anObject(O); |
|
1678 var keys = getKeys(Properties); |
|
1679 var length = keys.length; |
|
1680 var i = 0; |
|
1681 var P; |
|
1682 while (length > i) dP.f(O, P = keys[i++], Properties[P]); |
|
1683 return O; |
|
1684 }; |
|
1685 |
|
1686 },{"16":16,"36":36,"75":75,"83":83}],77:[function(_dereq_,module,exports){ |
|
1687 var pIE = _dereq_(84); |
|
1688 var createDesc = _dereq_(92); |
|
1689 var toIObject = _dereq_(116); |
|
1690 var toPrimitive = _dereq_(119); |
|
1691 var has = _dereq_(47); |
|
1692 var IE8_DOM_DEFINE = _dereq_(50); |
|
1693 var gOPD = Object.getOwnPropertyDescriptor; |
|
1694 |
|
1695 exports.f = _dereq_(36) ? gOPD : function getOwnPropertyDescriptor(O, P) { |
|
1696 O = toIObject(O); |
|
1697 P = toPrimitive(P, true); |
|
1698 if (IE8_DOM_DEFINE) try { |
|
1699 return gOPD(O, P); |
|
1700 } catch (e) { /* empty */ } |
|
1701 if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); |
|
1702 }; |
|
1703 |
|
1704 },{"116":116,"119":119,"36":36,"47":47,"50":50,"84":84,"92":92}],78:[function(_dereq_,module,exports){ |
|
1705 // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window |
|
1706 var toIObject = _dereq_(116); |
|
1707 var gOPN = _dereq_(79).f; |
|
1708 var toString = {}.toString; |
|
1709 |
|
1710 var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames |
|
1711 ? Object.getOwnPropertyNames(window) : []; |
|
1712 |
|
1713 var getWindowNames = function (it) { |
|
1714 try { |
|
1715 return gOPN(it); |
|
1716 } catch (e) { |
|
1717 return windowNames.slice(); |
|
1718 } |
|
1719 }; |
|
1720 |
|
1721 module.exports.f = function getOwnPropertyNames(it) { |
|
1722 return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); |
|
1723 }; |
|
1724 |
|
1725 },{"116":116,"79":79}],79:[function(_dereq_,module,exports){ |
|
1726 // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) |
|
1727 var $keys = _dereq_(82); |
|
1728 var hiddenKeys = _dereq_(38).concat('length', 'prototype'); |
|
1729 |
|
1730 exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { |
|
1731 return $keys(O, hiddenKeys); |
|
1732 }; |
|
1733 |
|
1734 },{"38":38,"82":82}],80:[function(_dereq_,module,exports){ |
|
1735 exports.f = Object.getOwnPropertySymbols; |
|
1736 |
|
1737 },{}],81:[function(_dereq_,module,exports){ |
|
1738 // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) |
|
1739 var has = _dereq_(47); |
|
1740 var toObject = _dereq_(118); |
|
1741 var IE_PROTO = _dereq_(101)('IE_PROTO'); |
|
1742 var ObjectProto = Object.prototype; |
|
1743 |
|
1744 module.exports = Object.getPrototypeOf || function (O) { |
|
1745 O = toObject(O); |
|
1746 if (has(O, IE_PROTO)) return O[IE_PROTO]; |
|
1747 if (typeof O.constructor == 'function' && O instanceof O.constructor) { |
|
1748 return O.constructor.prototype; |
|
1749 } return O instanceof Object ? ObjectProto : null; |
|
1750 }; |
|
1751 |
|
1752 },{"101":101,"118":118,"47":47}],82:[function(_dereq_,module,exports){ |
|
1753 var has = _dereq_(47); |
|
1754 var toIObject = _dereq_(116); |
|
1755 var arrayIndexOf = _dereq_(19)(false); |
|
1756 var IE_PROTO = _dereq_(101)('IE_PROTO'); |
|
1757 |
|
1758 module.exports = function (object, names) { |
|
1759 var O = toIObject(object); |
|
1760 var i = 0; |
|
1761 var result = []; |
|
1762 var key; |
|
1763 for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); |
|
1764 // Don't enum bug & hidden keys |
|
1765 while (names.length > i) if (has(O, key = names[i++])) { |
|
1766 ~arrayIndexOf(result, key) || result.push(key); |
|
1767 } |
|
1768 return result; |
|
1769 }; |
|
1770 |
|
1771 },{"101":101,"116":116,"19":19,"47":47}],83:[function(_dereq_,module,exports){ |
|
1772 // 19.1.2.14 / 15.2.3.14 Object.keys(O) |
|
1773 var $keys = _dereq_(82); |
|
1774 var enumBugKeys = _dereq_(38); |
|
1775 |
|
1776 module.exports = Object.keys || function keys(O) { |
|
1777 return $keys(O, enumBugKeys); |
|
1778 }; |
|
1779 |
|
1780 },{"38":38,"82":82}],84:[function(_dereq_,module,exports){ |
|
1781 exports.f = {}.propertyIsEnumerable; |
|
1782 |
|
1783 },{}],85:[function(_dereq_,module,exports){ |
|
1784 // most Object methods by ES6 should accept primitives |
|
1785 var $export = _dereq_(40); |
|
1786 var core = _dereq_(30); |
|
1787 var fails = _dereq_(42); |
|
1788 module.exports = function (KEY, exec) { |
|
1789 var fn = (core.Object || {})[KEY] || Object[KEY]; |
|
1790 var exp = {}; |
|
1791 exp[KEY] = exec(fn); |
|
1792 $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp); |
|
1793 }; |
|
1794 |
|
1795 },{"30":30,"40":40,"42":42}],86:[function(_dereq_,module,exports){ |
|
1796 var getKeys = _dereq_(83); |
|
1797 var toIObject = _dereq_(116); |
|
1798 var isEnum = _dereq_(84).f; |
|
1799 module.exports = function (isEntries) { |
|
1800 return function (it) { |
|
1801 var O = toIObject(it); |
|
1802 var keys = getKeys(O); |
|
1803 var length = keys.length; |
|
1804 var i = 0; |
|
1805 var result = []; |
|
1806 var key; |
|
1807 while (length > i) if (isEnum.call(O, key = keys[i++])) { |
|
1808 result.push(isEntries ? [key, O[key]] : O[key]); |
|
1809 } return result; |
|
1810 }; |
|
1811 }; |
|
1812 |
|
1813 },{"116":116,"83":83,"84":84}],87:[function(_dereq_,module,exports){ |
|
1814 // all object keys, includes non-enumerable and symbols |
|
1815 var gOPN = _dereq_(79); |
|
1816 var gOPS = _dereq_(80); |
|
1817 var anObject = _dereq_(16); |
|
1818 var Reflect = _dereq_(46).Reflect; |
|
1819 module.exports = Reflect && Reflect.ownKeys || function ownKeys(it) { |
|
1820 var keys = gOPN.f(anObject(it)); |
|
1821 var getSymbols = gOPS.f; |
|
1822 return getSymbols ? keys.concat(getSymbols(it)) : keys; |
|
1823 }; |
|
1824 |
|
1825 },{"16":16,"46":46,"79":79,"80":80}],88:[function(_dereq_,module,exports){ |
|
1826 var $parseFloat = _dereq_(46).parseFloat; |
|
1827 var $trim = _dereq_(110).trim; |
|
1828 |
|
1829 module.exports = 1 / $parseFloat(_dereq_(111) + '-0') !== -Infinity ? function parseFloat(str) { |
|
1830 var string = $trim(String(str), 3); |
|
1831 var result = $parseFloat(string); |
|
1832 return result === 0 && string.charAt(0) == '-' ? -0 : result; |
|
1833 } : $parseFloat; |
|
1834 |
|
1835 },{"110":110,"111":111,"46":46}],89:[function(_dereq_,module,exports){ |
|
1836 var $parseInt = _dereq_(46).parseInt; |
|
1837 var $trim = _dereq_(110).trim; |
|
1838 var ws = _dereq_(111); |
|
1839 var hex = /^[-+]?0[xX]/; |
|
1840 |
|
1841 module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) { |
|
1842 var string = $trim(String(str), 3); |
|
1843 return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10)); |
|
1844 } : $parseInt; |
|
1845 |
|
1846 },{"110":110,"111":111,"46":46}],90:[function(_dereq_,module,exports){ |
|
1847 module.exports = function (exec) { |
|
1848 try { |
|
1849 return { e: false, v: exec() }; |
|
1850 } catch (e) { |
|
1851 return { e: true, v: e }; |
|
1852 } |
|
1853 }; |
|
1854 |
|
1855 },{}],91:[function(_dereq_,module,exports){ |
|
1856 var anObject = _dereq_(16); |
|
1857 var isObject = _dereq_(57); |
|
1858 var newPromiseCapability = _dereq_(72); |
|
1859 |
|
1860 module.exports = function (C, x) { |
|
1861 anObject(C); |
|
1862 if (isObject(x) && x.constructor === C) return x; |
|
1863 var promiseCapability = newPromiseCapability.f(C); |
|
1864 var resolve = promiseCapability.resolve; |
|
1865 resolve(x); |
|
1866 return promiseCapability.promise; |
|
1867 }; |
|
1868 |
|
1869 },{"16":16,"57":57,"72":72}],92:[function(_dereq_,module,exports){ |
|
1870 module.exports = function (bitmap, value) { |
|
1871 return { |
|
1872 enumerable: !(bitmap & 1), |
|
1873 configurable: !(bitmap & 2), |
|
1874 writable: !(bitmap & 4), |
|
1875 value: value |
|
1876 }; |
|
1877 }; |
|
1878 |
|
1879 },{}],93:[function(_dereq_,module,exports){ |
|
1880 var redefine = _dereq_(94); |
|
1881 module.exports = function (target, src, safe) { |
|
1882 for (var key in src) redefine(target, key, src[key], safe); |
|
1883 return target; |
|
1884 }; |
|
1885 |
|
1886 },{"94":94}],94:[function(_dereq_,module,exports){ |
|
1887 var global = _dereq_(46); |
|
1888 var hide = _dereq_(48); |
|
1889 var has = _dereq_(47); |
|
1890 var SRC = _dereq_(123)('src'); |
|
1891 var TO_STRING = 'toString'; |
|
1892 var $toString = Function[TO_STRING]; |
|
1893 var TPL = ('' + $toString).split(TO_STRING); |
|
1894 |
|
1895 _dereq_(30).inspectSource = function (it) { |
|
1896 return $toString.call(it); |
|
1897 }; |
|
1898 |
|
1899 (module.exports = function (O, key, val, safe) { |
|
1900 var isFunction = typeof val == 'function'; |
|
1901 if (isFunction) has(val, 'name') || hide(val, 'name', key); |
|
1902 if (O[key] === val) return; |
|
1903 if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); |
|
1904 if (O === global) { |
|
1905 O[key] = val; |
|
1906 } else if (!safe) { |
|
1907 delete O[key]; |
|
1908 hide(O, key, val); |
|
1909 } else if (O[key]) { |
|
1910 O[key] = val; |
|
1911 } else { |
|
1912 hide(O, key, val); |
|
1913 } |
|
1914 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative |
|
1915 })(Function.prototype, TO_STRING, function toString() { |
|
1916 return typeof this == 'function' && this[SRC] || $toString.call(this); |
|
1917 }); |
|
1918 |
|
1919 },{"123":123,"30":30,"46":46,"47":47,"48":48}],95:[function(_dereq_,module,exports){ |
|
1920 'use strict'; |
|
1921 |
|
1922 var classof = _dereq_(25); |
|
1923 var builtinExec = RegExp.prototype.exec; |
|
1924 |
|
1925 // `RegExpExec` abstract operation |
|
1926 // https://tc39.github.io/ecma262/#sec-regexpexec |
|
1927 module.exports = function (R, S) { |
|
1928 var exec = R.exec; |
|
1929 if (typeof exec === 'function') { |
|
1930 var result = exec.call(R, S); |
|
1931 if (typeof result !== 'object') { |
|
1932 throw new TypeError('RegExp exec method returned something other than an Object or null'); |
|
1933 } |
|
1934 return result; |
|
1935 } |
|
1936 if (classof(R) !== 'RegExp') { |
|
1937 throw new TypeError('RegExp#exec called on incompatible receiver'); |
|
1938 } |
|
1939 return builtinExec.call(R, S); |
|
1940 }; |
|
1941 |
|
1942 },{"25":25}],96:[function(_dereq_,module,exports){ |
|
1943 'use strict'; |
|
1944 |
|
1945 var regexpFlags = _dereq_(44); |
|
1946 |
|
1947 var nativeExec = RegExp.prototype.exec; |
|
1948 // This always refers to the native implementation, because the |
|
1949 // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js, |
|
1950 // which loads this file before patching the method. |
|
1951 var nativeReplace = String.prototype.replace; |
|
1952 |
|
1953 var patchedExec = nativeExec; |
|
1954 |
|
1955 var LAST_INDEX = 'lastIndex'; |
|
1956 |
|
1957 var UPDATES_LAST_INDEX_WRONG = (function () { |
|
1958 var re1 = /a/, |
|
1959 re2 = /b*/g; |
|
1960 nativeExec.call(re1, 'a'); |
|
1961 nativeExec.call(re2, 'a'); |
|
1962 return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0; |
|
1963 })(); |
|
1964 |
|
1965 // nonparticipating capturing group, copied from es5-shim's String#split patch. |
|
1966 var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; |
|
1967 |
|
1968 var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED; |
|
1969 |
|
1970 if (PATCH) { |
|
1971 patchedExec = function exec(str) { |
|
1972 var re = this; |
|
1973 var lastIndex, reCopy, match, i; |
|
1974 |
|
1975 if (NPCG_INCLUDED) { |
|
1976 reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re)); |
|
1977 } |
|
1978 if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX]; |
|
1979 |
|
1980 match = nativeExec.call(re, str); |
|
1981 |
|
1982 if (UPDATES_LAST_INDEX_WRONG && match) { |
|
1983 re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex; |
|
1984 } |
|
1985 if (NPCG_INCLUDED && match && match.length > 1) { |
|
1986 // Fix browsers whose `exec` methods don't consistently return `undefined` |
|
1987 // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/ |
|
1988 // eslint-disable-next-line no-loop-func |
|
1989 nativeReplace.call(match[0], reCopy, function () { |
|
1990 for (i = 1; i < arguments.length - 2; i++) { |
|
1991 if (arguments[i] === undefined) match[i] = undefined; |
|
1992 } |
|
1993 }); |
|
1994 } |
|
1995 |
|
1996 return match; |
|
1997 }; |
|
1998 } |
|
1999 |
|
2000 module.exports = patchedExec; |
|
2001 |
|
2002 },{"44":44}],97:[function(_dereq_,module,exports){ |
|
2003 // 7.2.9 SameValue(x, y) |
|
2004 module.exports = Object.is || function is(x, y) { |
|
2005 // eslint-disable-next-line no-self-compare |
|
2006 return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y; |
|
2007 }; |
|
2008 |
|
2009 },{}],98:[function(_dereq_,module,exports){ |
|
2010 // Works with __proto__ only. Old v8 can't work with null proto objects. |
|
2011 /* eslint-disable no-proto */ |
|
2012 var isObject = _dereq_(57); |
|
2013 var anObject = _dereq_(16); |
|
2014 var check = function (O, proto) { |
|
2015 anObject(O); |
|
2016 if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); |
|
2017 }; |
|
2018 module.exports = { |
|
2019 set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line |
|
2020 function (test, buggy, set) { |
|
2021 try { |
|
2022 set = _dereq_(32)(Function.call, _dereq_(77).f(Object.prototype, '__proto__').set, 2); |
|
2023 set(test, []); |
|
2024 buggy = !(test instanceof Array); |
|
2025 } catch (e) { buggy = true; } |
|
2026 return function setPrototypeOf(O, proto) { |
|
2027 check(O, proto); |
|
2028 if (buggy) O.__proto__ = proto; |
|
2029 else set(O, proto); |
|
2030 return O; |
|
2031 }; |
|
2032 }({}, false) : undefined), |
|
2033 check: check |
|
2034 }; |
|
2035 |
|
2036 },{"16":16,"32":32,"57":57,"77":77}],99:[function(_dereq_,module,exports){ |
|
2037 'use strict'; |
|
2038 var global = _dereq_(46); |
|
2039 var dP = _dereq_(75); |
|
2040 var DESCRIPTORS = _dereq_(36); |
|
2041 var SPECIES = _dereq_(128)('species'); |
|
2042 |
|
2043 module.exports = function (KEY) { |
|
2044 var C = global[KEY]; |
|
2045 if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, { |
|
2046 configurable: true, |
|
2047 get: function () { return this; } |
|
2048 }); |
|
2049 }; |
|
2050 |
|
2051 },{"128":128,"36":36,"46":46,"75":75}],100:[function(_dereq_,module,exports){ |
|
2052 var def = _dereq_(75).f; |
|
2053 var has = _dereq_(47); |
|
2054 var TAG = _dereq_(128)('toStringTag'); |
|
2055 |
|
2056 module.exports = function (it, tag, stat) { |
|
2057 if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); |
|
2058 }; |
|
2059 |
|
2060 },{"128":128,"47":47,"75":75}],101:[function(_dereq_,module,exports){ |
|
2061 var shared = _dereq_(102)('keys'); |
|
2062 var uid = _dereq_(123); |
|
2063 module.exports = function (key) { |
|
2064 return shared[key] || (shared[key] = uid(key)); |
|
2065 }; |
|
2066 |
|
2067 },{"102":102,"123":123}],102:[function(_dereq_,module,exports){ |
|
2068 var core = _dereq_(30); |
|
2069 var global = _dereq_(46); |
|
2070 var SHARED = '__core-js_shared__'; |
|
2071 var store = global[SHARED] || (global[SHARED] = {}); |
|
2072 |
|
2073 (module.exports = function (key, value) { |
|
2074 return store[key] || (store[key] = value !== undefined ? value : {}); |
|
2075 })('versions', []).push({ |
|
2076 version: core.version, |
|
2077 mode: _dereq_(65) ? 'pure' : 'global', |
|
2078 copyright: '© 2018 Denis Pushkarev (zloirock.ru)' |
|
2079 }); |
|
2080 |
|
2081 },{"30":30,"46":46,"65":65}],103:[function(_dereq_,module,exports){ |
|
2082 // 7.3.20 SpeciesConstructor(O, defaultConstructor) |
|
2083 var anObject = _dereq_(16); |
|
2084 var aFunction = _dereq_(11); |
|
2085 var SPECIES = _dereq_(128)('species'); |
|
2086 module.exports = function (O, D) { |
|
2087 var C = anObject(O).constructor; |
|
2088 var S; |
|
2089 return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S); |
|
2090 }; |
|
2091 |
|
2092 },{"11":11,"128":128,"16":16}],104:[function(_dereq_,module,exports){ |
|
2093 'use strict'; |
|
2094 var fails = _dereq_(42); |
|
2095 |
|
2096 module.exports = function (method, arg) { |
|
2097 return !!method && fails(function () { |
|
2098 // eslint-disable-next-line no-useless-call |
|
2099 arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null); |
|
2100 }); |
|
2101 }; |
|
2102 |
|
2103 },{"42":42}],105:[function(_dereq_,module,exports){ |
|
2104 var toInteger = _dereq_(115); |
|
2105 var defined = _dereq_(35); |
|
2106 // true -> String#at |
|
2107 // false -> String#codePointAt |
|
2108 module.exports = function (TO_STRING) { |
|
2109 return function (that, pos) { |
|
2110 var s = String(defined(that)); |
|
2111 var i = toInteger(pos); |
|
2112 var l = s.length; |
|
2113 var a, b; |
|
2114 if (i < 0 || i >= l) return TO_STRING ? '' : undefined; |
|
2115 a = s.charCodeAt(i); |
|
2116 return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff |
|
2117 ? TO_STRING ? s.charAt(i) : a |
|
2118 : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; |
|
2119 }; |
|
2120 }; |
|
2121 |
|
2122 },{"115":115,"35":35}],106:[function(_dereq_,module,exports){ |
|
2123 // helper for String#{startsWith, endsWith, includes} |
|
2124 var isRegExp = _dereq_(58); |
|
2125 var defined = _dereq_(35); |
|
2126 |
|
2127 module.exports = function (that, searchString, NAME) { |
|
2128 if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!"); |
|
2129 return String(defined(that)); |
|
2130 }; |
|
2131 |
|
2132 },{"35":35,"58":58}],107:[function(_dereq_,module,exports){ |
|
2133 var $export = _dereq_(40); |
|
2134 var fails = _dereq_(42); |
|
2135 var defined = _dereq_(35); |
|
2136 var quot = /"/g; |
|
2137 // B.2.3.2.1 CreateHTML(string, tag, attribute, value) |
|
2138 var createHTML = function (string, tag, attribute, value) { |
|
2139 var S = String(defined(string)); |
|
2140 var p1 = '<' + tag; |
|
2141 if (attribute !== '') p1 += ' ' + attribute + '="' + String(value).replace(quot, '"') + '"'; |
|
2142 return p1 + '>' + S + '</' + tag + '>'; |
|
2143 }; |
|
2144 module.exports = function (NAME, exec) { |
|
2145 var O = {}; |
|
2146 O[NAME] = exec(createHTML); |
|
2147 $export($export.P + $export.F * fails(function () { |
|
2148 var test = ''[NAME]('"'); |
|
2149 return test !== test.toLowerCase() || test.split('"').length > 3; |
|
2150 }), 'String', O); |
|
2151 }; |
|
2152 |
|
2153 },{"35":35,"40":40,"42":42}],108:[function(_dereq_,module,exports){ |
|
2154 // https://github.com/tc39/proposal-string-pad-start-end |
|
2155 var toLength = _dereq_(117); |
|
2156 var repeat = _dereq_(109); |
|
2157 var defined = _dereq_(35); |
|
2158 |
|
2159 module.exports = function (that, maxLength, fillString, left) { |
|
2160 var S = String(defined(that)); |
|
2161 var stringLength = S.length; |
|
2162 var fillStr = fillString === undefined ? ' ' : String(fillString); |
|
2163 var intMaxLength = toLength(maxLength); |
|
2164 if (intMaxLength <= stringLength || fillStr == '') return S; |
|
2165 var fillLen = intMaxLength - stringLength; |
|
2166 var stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length)); |
|
2167 if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen); |
|
2168 return left ? stringFiller + S : S + stringFiller; |
|
2169 }; |
|
2170 |
|
2171 },{"109":109,"117":117,"35":35}],109:[function(_dereq_,module,exports){ |
|
2172 'use strict'; |
|
2173 var toInteger = _dereq_(115); |
|
2174 var defined = _dereq_(35); |
|
2175 |
|
2176 module.exports = function repeat(count) { |
|
2177 var str = String(defined(this)); |
|
2178 var res = ''; |
|
2179 var n = toInteger(count); |
|
2180 if (n < 0 || n == Infinity) throw RangeError("Count can't be negative"); |
|
2181 for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) res += str; |
|
2182 return res; |
|
2183 }; |
|
2184 |
|
2185 },{"115":115,"35":35}],110:[function(_dereq_,module,exports){ |
|
2186 var $export = _dereq_(40); |
|
2187 var defined = _dereq_(35); |
|
2188 var fails = _dereq_(42); |
|
2189 var spaces = _dereq_(111); |
|
2190 var space = '[' + spaces + ']'; |
|
2191 var non = '\u200b\u0085'; |
|
2192 var ltrim = RegExp('^' + space + space + '*'); |
|
2193 var rtrim = RegExp(space + space + '*$'); |
|
2194 |
|
2195 var exporter = function (KEY, exec, ALIAS) { |
|
2196 var exp = {}; |
|
2197 var FORCE = fails(function () { |
|
2198 return !!spaces[KEY]() || non[KEY]() != non; |
|
2199 }); |
|
2200 var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY]; |
|
2201 if (ALIAS) exp[ALIAS] = fn; |
|
2202 $export($export.P + $export.F * FORCE, 'String', exp); |
|
2203 }; |
|
2204 |
|
2205 // 1 -> String#trimLeft |
|
2206 // 2 -> String#trimRight |
|
2207 // 3 -> String#trim |
|
2208 var trim = exporter.trim = function (string, TYPE) { |
|
2209 string = String(defined(string)); |
|
2210 if (TYPE & 1) string = string.replace(ltrim, ''); |
|
2211 if (TYPE & 2) string = string.replace(rtrim, ''); |
|
2212 return string; |
|
2213 }; |
|
2214 |
|
2215 module.exports = exporter; |
|
2216 |
|
2217 },{"111":111,"35":35,"40":40,"42":42}],111:[function(_dereq_,module,exports){ |
|
2218 module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + |
|
2219 '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; |
|
2220 |
|
2221 },{}],112:[function(_dereq_,module,exports){ |
|
2222 var ctx = _dereq_(32); |
|
2223 var invoke = _dereq_(52); |
|
2224 var html = _dereq_(49); |
|
2225 var cel = _dereq_(37); |
|
2226 var global = _dereq_(46); |
|
2227 var process = global.process; |
|
2228 var setTask = global.setImmediate; |
|
2229 var clearTask = global.clearImmediate; |
|
2230 var MessageChannel = global.MessageChannel; |
|
2231 var Dispatch = global.Dispatch; |
|
2232 var counter = 0; |
|
2233 var queue = {}; |
|
2234 var ONREADYSTATECHANGE = 'onreadystatechange'; |
|
2235 var defer, channel, port; |
|
2236 var run = function () { |
|
2237 var id = +this; |
|
2238 // eslint-disable-next-line no-prototype-builtins |
|
2239 if (queue.hasOwnProperty(id)) { |
|
2240 var fn = queue[id]; |
|
2241 delete queue[id]; |
|
2242 fn(); |
|
2243 } |
|
2244 }; |
|
2245 var listener = function (event) { |
|
2246 run.call(event.data); |
|
2247 }; |
|
2248 // Node.js 0.9+ & IE10+ has setImmediate, otherwise: |
|
2249 if (!setTask || !clearTask) { |
|
2250 setTask = function setImmediate(fn) { |
|
2251 var args = []; |
|
2252 var i = 1; |
|
2253 while (arguments.length > i) args.push(arguments[i++]); |
|
2254 queue[++counter] = function () { |
|
2255 // eslint-disable-next-line no-new-func |
|
2256 invoke(typeof fn == 'function' ? fn : Function(fn), args); |
|
2257 }; |
|
2258 defer(counter); |
|
2259 return counter; |
|
2260 }; |
|
2261 clearTask = function clearImmediate(id) { |
|
2262 delete queue[id]; |
|
2263 }; |
|
2264 // Node.js 0.8- |
|
2265 if (_dereq_(26)(process) == 'process') { |
|
2266 defer = function (id) { |
|
2267 process.nextTick(ctx(run, id, 1)); |
|
2268 }; |
|
2269 // Sphere (JS game engine) Dispatch API |
|
2270 } else if (Dispatch && Dispatch.now) { |
|
2271 defer = function (id) { |
|
2272 Dispatch.now(ctx(run, id, 1)); |
|
2273 }; |
|
2274 // Browsers with MessageChannel, includes WebWorkers |
|
2275 } else if (MessageChannel) { |
|
2276 channel = new MessageChannel(); |
|
2277 port = channel.port2; |
|
2278 channel.port1.onmessage = listener; |
|
2279 defer = ctx(port.postMessage, port, 1); |
|
2280 // Browsers with postMessage, skip WebWorkers |
|
2281 // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' |
|
2282 } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) { |
|
2283 defer = function (id) { |
|
2284 global.postMessage(id + '', '*'); |
|
2285 }; |
|
2286 global.addEventListener('message', listener, false); |
|
2287 // IE8- |
|
2288 } else if (ONREADYSTATECHANGE in cel('script')) { |
|
2289 defer = function (id) { |
|
2290 html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () { |
|
2291 html.removeChild(this); |
|
2292 run.call(id); |
|
2293 }; |
|
2294 }; |
|
2295 // Rest old browsers |
|
2296 } else { |
|
2297 defer = function (id) { |
|
2298 setTimeout(ctx(run, id, 1), 0); |
|
2299 }; |
|
2300 } |
|
2301 } |
|
2302 module.exports = { |
|
2303 set: setTask, |
|
2304 clear: clearTask |
|
2305 }; |
|
2306 |
|
2307 },{"26":26,"32":32,"37":37,"46":46,"49":49,"52":52}],113:[function(_dereq_,module,exports){ |
|
2308 var toInteger = _dereq_(115); |
|
2309 var max = Math.max; |
|
2310 var min = Math.min; |
|
2311 module.exports = function (index, length) { |
|
2312 index = toInteger(index); |
|
2313 return index < 0 ? max(index + length, 0) : min(index, length); |
|
2314 }; |
|
2315 |
|
2316 },{"115":115}],114:[function(_dereq_,module,exports){ |
|
2317 // https://tc39.github.io/ecma262/#sec-toindex |
|
2318 var toInteger = _dereq_(115); |
|
2319 var toLength = _dereq_(117); |
|
2320 module.exports = function (it) { |
|
2321 if (it === undefined) return 0; |
|
2322 var number = toInteger(it); |
|
2323 var length = toLength(number); |
|
2324 if (number !== length) throw RangeError('Wrong length!'); |
|
2325 return length; |
|
2326 }; |
|
2327 |
|
2328 },{"115":115,"117":117}],115:[function(_dereq_,module,exports){ |
|
2329 // 7.1.4 ToInteger |
|
2330 var ceil = Math.ceil; |
|
2331 var floor = Math.floor; |
|
2332 module.exports = function (it) { |
|
2333 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); |
|
2334 }; |
|
2335 |
|
2336 },{}],116:[function(_dereq_,module,exports){ |
|
2337 // to indexed object, toObject with fallback for non-array-like ES3 strings |
|
2338 var IObject = _dereq_(53); |
|
2339 var defined = _dereq_(35); |
|
2340 module.exports = function (it) { |
|
2341 return IObject(defined(it)); |
|
2342 }; |
|
2343 |
|
2344 },{"35":35,"53":53}],117:[function(_dereq_,module,exports){ |
|
2345 // 7.1.15 ToLength |
|
2346 var toInteger = _dereq_(115); |
|
2347 var min = Math.min; |
|
2348 module.exports = function (it) { |
|
2349 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 |
|
2350 }; |
|
2351 |
|
2352 },{"115":115}],118:[function(_dereq_,module,exports){ |
|
2353 // 7.1.13 ToObject(argument) |
|
2354 var defined = _dereq_(35); |
|
2355 module.exports = function (it) { |
|
2356 return Object(defined(it)); |
|
2357 }; |
|
2358 |
|
2359 },{"35":35}],119:[function(_dereq_,module,exports){ |
|
2360 // 7.1.1 ToPrimitive(input [, PreferredType]) |
|
2361 var isObject = _dereq_(57); |
|
2362 // instead of the ES6 spec version, we didn't implement @@toPrimitive case |
|
2363 // and the second argument - flag - preferred type is a string |
|
2364 module.exports = function (it, S) { |
|
2365 if (!isObject(it)) return it; |
|
2366 var fn, val; |
|
2367 if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; |
|
2368 if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; |
|
2369 if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; |
|
2370 throw TypeError("Can't convert object to primitive value"); |
|
2371 }; |
|
2372 |
|
2373 },{"57":57}],120:[function(_dereq_,module,exports){ |
|
2374 'use strict'; |
|
2375 if (_dereq_(36)) { |
|
2376 var LIBRARY = _dereq_(65); |
|
2377 var global = _dereq_(46); |
|
2378 var fails = _dereq_(42); |
|
2379 var $export = _dereq_(40); |
|
2380 var $typed = _dereq_(122); |
|
2381 var $buffer = _dereq_(121); |
|
2382 var ctx = _dereq_(32); |
|
2383 var anInstance = _dereq_(15); |
|
2384 var propertyDesc = _dereq_(92); |
|
2385 var hide = _dereq_(48); |
|
2386 var redefineAll = _dereq_(93); |
|
2387 var toInteger = _dereq_(115); |
|
2388 var toLength = _dereq_(117); |
|
2389 var toIndex = _dereq_(114); |
|
2390 var toAbsoluteIndex = _dereq_(113); |
|
2391 var toPrimitive = _dereq_(119); |
|
2392 var has = _dereq_(47); |
|
2393 var classof = _dereq_(25); |
|
2394 var isObject = _dereq_(57); |
|
2395 var toObject = _dereq_(118); |
|
2396 var isArrayIter = _dereq_(54); |
|
2397 var create = _dereq_(74); |
|
2398 var getPrototypeOf = _dereq_(81); |
|
2399 var gOPN = _dereq_(79).f; |
|
2400 var getIterFn = _dereq_(129); |
|
2401 var uid = _dereq_(123); |
|
2402 var wks = _dereq_(128); |
|
2403 var createArrayMethod = _dereq_(20); |
|
2404 var createArrayIncludes = _dereq_(19); |
|
2405 var speciesConstructor = _dereq_(103); |
|
2406 var ArrayIterators = _dereq_(140); |
|
2407 var Iterators = _dereq_(64); |
|
2408 var $iterDetect = _dereq_(62); |
|
2409 var setSpecies = _dereq_(99); |
|
2410 var arrayFill = _dereq_(18); |
|
2411 var arrayCopyWithin = _dereq_(17); |
|
2412 var $DP = _dereq_(75); |
|
2413 var $GOPD = _dereq_(77); |
|
2414 var dP = $DP.f; |
|
2415 var gOPD = $GOPD.f; |
|
2416 var RangeError = global.RangeError; |
|
2417 var TypeError = global.TypeError; |
|
2418 var Uint8Array = global.Uint8Array; |
|
2419 var ARRAY_BUFFER = 'ArrayBuffer'; |
|
2420 var SHARED_BUFFER = 'Shared' + ARRAY_BUFFER; |
|
2421 var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT'; |
|
2422 var PROTOTYPE = 'prototype'; |
|
2423 var ArrayProto = Array[PROTOTYPE]; |
|
2424 var $ArrayBuffer = $buffer.ArrayBuffer; |
|
2425 var $DataView = $buffer.DataView; |
|
2426 var arrayForEach = createArrayMethod(0); |
|
2427 var arrayFilter = createArrayMethod(2); |
|
2428 var arraySome = createArrayMethod(3); |
|
2429 var arrayEvery = createArrayMethod(4); |
|
2430 var arrayFind = createArrayMethod(5); |
|
2431 var arrayFindIndex = createArrayMethod(6); |
|
2432 var arrayIncludes = createArrayIncludes(true); |
|
2433 var arrayIndexOf = createArrayIncludes(false); |
|
2434 var arrayValues = ArrayIterators.values; |
|
2435 var arrayKeys = ArrayIterators.keys; |
|
2436 var arrayEntries = ArrayIterators.entries; |
|
2437 var arrayLastIndexOf = ArrayProto.lastIndexOf; |
|
2438 var arrayReduce = ArrayProto.reduce; |
|
2439 var arrayReduceRight = ArrayProto.reduceRight; |
|
2440 var arrayJoin = ArrayProto.join; |
|
2441 var arraySort = ArrayProto.sort; |
|
2442 var arraySlice = ArrayProto.slice; |
|
2443 var arrayToString = ArrayProto.toString; |
|
2444 var arrayToLocaleString = ArrayProto.toLocaleString; |
|
2445 var ITERATOR = wks('iterator'); |
|
2446 var TAG = wks('toStringTag'); |
|
2447 var TYPED_CONSTRUCTOR = uid('typed_constructor'); |
|
2448 var DEF_CONSTRUCTOR = uid('def_constructor'); |
|
2449 var ALL_CONSTRUCTORS = $typed.CONSTR; |
|
2450 var TYPED_ARRAY = $typed.TYPED; |
|
2451 var VIEW = $typed.VIEW; |
|
2452 var WRONG_LENGTH = 'Wrong length!'; |
|
2453 |
|
2454 var $map = createArrayMethod(1, function (O, length) { |
|
2455 return allocate(speciesConstructor(O, O[DEF_CONSTRUCTOR]), length); |
|
2456 }); |
|
2457 |
|
2458 var LITTLE_ENDIAN = fails(function () { |
|
2459 // eslint-disable-next-line no-undef |
|
2460 return new Uint8Array(new Uint16Array([1]).buffer)[0] === 1; |
|
2461 }); |
|
2462 |
|
2463 var FORCED_SET = !!Uint8Array && !!Uint8Array[PROTOTYPE].set && fails(function () { |
|
2464 new Uint8Array(1).set({}); |
|
2465 }); |
|
2466 |
|
2467 var toOffset = function (it, BYTES) { |
|
2468 var offset = toInteger(it); |
|
2469 if (offset < 0 || offset % BYTES) throw RangeError('Wrong offset!'); |
|
2470 return offset; |
|
2471 }; |
|
2472 |
|
2473 var validate = function (it) { |
|
2474 if (isObject(it) && TYPED_ARRAY in it) return it; |
|
2475 throw TypeError(it + ' is not a typed array!'); |
|
2476 }; |
|
2477 |
|
2478 var allocate = function (C, length) { |
|
2479 if (!(isObject(C) && TYPED_CONSTRUCTOR in C)) { |
|
2480 throw TypeError('It is not a typed array constructor!'); |
|
2481 } return new C(length); |
|
2482 }; |
|
2483 |
|
2484 var speciesFromList = function (O, list) { |
|
2485 return fromList(speciesConstructor(O, O[DEF_CONSTRUCTOR]), list); |
|
2486 }; |
|
2487 |
|
2488 var fromList = function (C, list) { |
|
2489 var index = 0; |
|
2490 var length = list.length; |
|
2491 var result = allocate(C, length); |
|
2492 while (length > index) result[index] = list[index++]; |
|
2493 return result; |
|
2494 }; |
|
2495 |
|
2496 var addGetter = function (it, key, internal) { |
|
2497 dP(it, key, { get: function () { return this._d[internal]; } }); |
|
2498 }; |
|
2499 |
|
2500 var $from = function from(source /* , mapfn, thisArg */) { |
|
2501 var O = toObject(source); |
|
2502 var aLen = arguments.length; |
|
2503 var mapfn = aLen > 1 ? arguments[1] : undefined; |
|
2504 var mapping = mapfn !== undefined; |
|
2505 var iterFn = getIterFn(O); |
|
2506 var i, length, values, result, step, iterator; |
|
2507 if (iterFn != undefined && !isArrayIter(iterFn)) { |
|
2508 for (iterator = iterFn.call(O), values = [], i = 0; !(step = iterator.next()).done; i++) { |
|
2509 values.push(step.value); |
|
2510 } O = values; |
|
2511 } |
|
2512 if (mapping && aLen > 2) mapfn = ctx(mapfn, arguments[2], 2); |
|
2513 for (i = 0, length = toLength(O.length), result = allocate(this, length); length > i; i++) { |
|
2514 result[i] = mapping ? mapfn(O[i], i) : O[i]; |
|
2515 } |
|
2516 return result; |
|
2517 }; |
|
2518 |
|
2519 var $of = function of(/* ...items */) { |
|
2520 var index = 0; |
|
2521 var length = arguments.length; |
|
2522 var result = allocate(this, length); |
|
2523 while (length > index) result[index] = arguments[index++]; |
|
2524 return result; |
|
2525 }; |
|
2526 |
|
2527 // iOS Safari 6.x fails here |
|
2528 var TO_LOCALE_BUG = !!Uint8Array && fails(function () { arrayToLocaleString.call(new Uint8Array(1)); }); |
|
2529 |
|
2530 var $toLocaleString = function toLocaleString() { |
|
2531 return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(validate(this)) : validate(this), arguments); |
|
2532 }; |
|
2533 |
|
2534 var proto = { |
|
2535 copyWithin: function copyWithin(target, start /* , end */) { |
|
2536 return arrayCopyWithin.call(validate(this), target, start, arguments.length > 2 ? arguments[2] : undefined); |
|
2537 }, |
|
2538 every: function every(callbackfn /* , thisArg */) { |
|
2539 return arrayEvery(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); |
|
2540 }, |
|
2541 fill: function fill(value /* , start, end */) { // eslint-disable-line no-unused-vars |
|
2542 return arrayFill.apply(validate(this), arguments); |
|
2543 }, |
|
2544 filter: function filter(callbackfn /* , thisArg */) { |
|
2545 return speciesFromList(this, arrayFilter(validate(this), callbackfn, |
|
2546 arguments.length > 1 ? arguments[1] : undefined)); |
|
2547 }, |
|
2548 find: function find(predicate /* , thisArg */) { |
|
2549 return arrayFind(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined); |
|
2550 }, |
|
2551 findIndex: function findIndex(predicate /* , thisArg */) { |
|
2552 return arrayFindIndex(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined); |
|
2553 }, |
|
2554 forEach: function forEach(callbackfn /* , thisArg */) { |
|
2555 arrayForEach(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); |
|
2556 }, |
|
2557 indexOf: function indexOf(searchElement /* , fromIndex */) { |
|
2558 return arrayIndexOf(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined); |
|
2559 }, |
|
2560 includes: function includes(searchElement /* , fromIndex */) { |
|
2561 return arrayIncludes(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined); |
|
2562 }, |
|
2563 join: function join(separator) { // eslint-disable-line no-unused-vars |
|
2564 return arrayJoin.apply(validate(this), arguments); |
|
2565 }, |
|
2566 lastIndexOf: function lastIndexOf(searchElement /* , fromIndex */) { // eslint-disable-line no-unused-vars |
|
2567 return arrayLastIndexOf.apply(validate(this), arguments); |
|
2568 }, |
|
2569 map: function map(mapfn /* , thisArg */) { |
|
2570 return $map(validate(this), mapfn, arguments.length > 1 ? arguments[1] : undefined); |
|
2571 }, |
|
2572 reduce: function reduce(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars |
|
2573 return arrayReduce.apply(validate(this), arguments); |
|
2574 }, |
|
2575 reduceRight: function reduceRight(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars |
|
2576 return arrayReduceRight.apply(validate(this), arguments); |
|
2577 }, |
|
2578 reverse: function reverse() { |
|
2579 var that = this; |
|
2580 var length = validate(that).length; |
|
2581 var middle = Math.floor(length / 2); |
|
2582 var index = 0; |
|
2583 var value; |
|
2584 while (index < middle) { |
|
2585 value = that[index]; |
|
2586 that[index++] = that[--length]; |
|
2587 that[length] = value; |
|
2588 } return that; |
|
2589 }, |
|
2590 some: function some(callbackfn /* , thisArg */) { |
|
2591 return arraySome(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); |
|
2592 }, |
|
2593 sort: function sort(comparefn) { |
|
2594 return arraySort.call(validate(this), comparefn); |
|
2595 }, |
|
2596 subarray: function subarray(begin, end) { |
|
2597 var O = validate(this); |
|
2598 var length = O.length; |
|
2599 var $begin = toAbsoluteIndex(begin, length); |
|
2600 return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))( |
|
2601 O.buffer, |
|
2602 O.byteOffset + $begin * O.BYTES_PER_ELEMENT, |
|
2603 toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - $begin) |
|
2604 ); |
|
2605 } |
|
2606 }; |
|
2607 |
|
2608 var $slice = function slice(start, end) { |
|
2609 return speciesFromList(this, arraySlice.call(validate(this), start, end)); |
|
2610 }; |
|
2611 |
|
2612 var $set = function set(arrayLike /* , offset */) { |
|
2613 validate(this); |
|
2614 var offset = toOffset(arguments[1], 1); |
|
2615 var length = this.length; |
|
2616 var src = toObject(arrayLike); |
|
2617 var len = toLength(src.length); |
|
2618 var index = 0; |
|
2619 if (len + offset > length) throw RangeError(WRONG_LENGTH); |
|
2620 while (index < len) this[offset + index] = src[index++]; |
|
2621 }; |
|
2622 |
|
2623 var $iterators = { |
|
2624 entries: function entries() { |
|
2625 return arrayEntries.call(validate(this)); |
|
2626 }, |
|
2627 keys: function keys() { |
|
2628 return arrayKeys.call(validate(this)); |
|
2629 }, |
|
2630 values: function values() { |
|
2631 return arrayValues.call(validate(this)); |
|
2632 } |
|
2633 }; |
|
2634 |
|
2635 var isTAIndex = function (target, key) { |
|
2636 return isObject(target) |
|
2637 && target[TYPED_ARRAY] |
|
2638 && typeof key != 'symbol' |
|
2639 && key in target |
|
2640 && String(+key) == String(key); |
|
2641 }; |
|
2642 var $getDesc = function getOwnPropertyDescriptor(target, key) { |
|
2643 return isTAIndex(target, key = toPrimitive(key, true)) |
|
2644 ? propertyDesc(2, target[key]) |
|
2645 : gOPD(target, key); |
|
2646 }; |
|
2647 var $setDesc = function defineProperty(target, key, desc) { |
|
2648 if (isTAIndex(target, key = toPrimitive(key, true)) |
|
2649 && isObject(desc) |
|
2650 && has(desc, 'value') |
|
2651 && !has(desc, 'get') |
|
2652 && !has(desc, 'set') |
|
2653 // TODO: add validation descriptor w/o calling accessors |
|
2654 && !desc.configurable |
|
2655 && (!has(desc, 'writable') || desc.writable) |
|
2656 && (!has(desc, 'enumerable') || desc.enumerable) |
|
2657 ) { |
|
2658 target[key] = desc.value; |
|
2659 return target; |
|
2660 } return dP(target, key, desc); |
|
2661 }; |
|
2662 |
|
2663 if (!ALL_CONSTRUCTORS) { |
|
2664 $GOPD.f = $getDesc; |
|
2665 $DP.f = $setDesc; |
|
2666 } |
|
2667 |
|
2668 $export($export.S + $export.F * !ALL_CONSTRUCTORS, 'Object', { |
|
2669 getOwnPropertyDescriptor: $getDesc, |
|
2670 defineProperty: $setDesc |
|
2671 }); |
|
2672 |
|
2673 if (fails(function () { arrayToString.call({}); })) { |
|
2674 arrayToString = arrayToLocaleString = function toString() { |
|
2675 return arrayJoin.call(this); |
|
2676 }; |
|
2677 } |
|
2678 |
|
2679 var $TypedArrayPrototype$ = redefineAll({}, proto); |
|
2680 redefineAll($TypedArrayPrototype$, $iterators); |
|
2681 hide($TypedArrayPrototype$, ITERATOR, $iterators.values); |
|
2682 redefineAll($TypedArrayPrototype$, { |
|
2683 slice: $slice, |
|
2684 set: $set, |
|
2685 constructor: function () { /* noop */ }, |
|
2686 toString: arrayToString, |
|
2687 toLocaleString: $toLocaleString |
|
2688 }); |
|
2689 addGetter($TypedArrayPrototype$, 'buffer', 'b'); |
|
2690 addGetter($TypedArrayPrototype$, 'byteOffset', 'o'); |
|
2691 addGetter($TypedArrayPrototype$, 'byteLength', 'l'); |
|
2692 addGetter($TypedArrayPrototype$, 'length', 'e'); |
|
2693 dP($TypedArrayPrototype$, TAG, { |
|
2694 get: function () { return this[TYPED_ARRAY]; } |
|
2695 }); |
|
2696 |
|
2697 // eslint-disable-next-line max-statements |
|
2698 module.exports = function (KEY, BYTES, wrapper, CLAMPED) { |
|
2699 CLAMPED = !!CLAMPED; |
|
2700 var NAME = KEY + (CLAMPED ? 'Clamped' : '') + 'Array'; |
|
2701 var GETTER = 'get' + KEY; |
|
2702 var SETTER = 'set' + KEY; |
|
2703 var TypedArray = global[NAME]; |
|
2704 var Base = TypedArray || {}; |
|
2705 var TAC = TypedArray && getPrototypeOf(TypedArray); |
|
2706 var FORCED = !TypedArray || !$typed.ABV; |
|
2707 var O = {}; |
|
2708 var TypedArrayPrototype = TypedArray && TypedArray[PROTOTYPE]; |
|
2709 var getter = function (that, index) { |
|
2710 var data = that._d; |
|
2711 return data.v[GETTER](index * BYTES + data.o, LITTLE_ENDIAN); |
|
2712 }; |
|
2713 var setter = function (that, index, value) { |
|
2714 var data = that._d; |
|
2715 if (CLAMPED) value = (value = Math.round(value)) < 0 ? 0 : value > 0xff ? 0xff : value & 0xff; |
|
2716 data.v[SETTER](index * BYTES + data.o, value, LITTLE_ENDIAN); |
|
2717 }; |
|
2718 var addElement = function (that, index) { |
|
2719 dP(that, index, { |
|
2720 get: function () { |
|
2721 return getter(this, index); |
|
2722 }, |
|
2723 set: function (value) { |
|
2724 return setter(this, index, value); |
|
2725 }, |
|
2726 enumerable: true |
|
2727 }); |
|
2728 }; |
|
2729 if (FORCED) { |
|
2730 TypedArray = wrapper(function (that, data, $offset, $length) { |
|
2731 anInstance(that, TypedArray, NAME, '_d'); |
|
2732 var index = 0; |
|
2733 var offset = 0; |
|
2734 var buffer, byteLength, length, klass; |
|
2735 if (!isObject(data)) { |
|
2736 length = toIndex(data); |
|
2737 byteLength = length * BYTES; |
|
2738 buffer = new $ArrayBuffer(byteLength); |
|
2739 } else if (data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) { |
|
2740 buffer = data; |
|
2741 offset = toOffset($offset, BYTES); |
|
2742 var $len = data.byteLength; |
|
2743 if ($length === undefined) { |
|
2744 if ($len % BYTES) throw RangeError(WRONG_LENGTH); |
|
2745 byteLength = $len - offset; |
|
2746 if (byteLength < 0) throw RangeError(WRONG_LENGTH); |
|
2747 } else { |
|
2748 byteLength = toLength($length) * BYTES; |
|
2749 if (byteLength + offset > $len) throw RangeError(WRONG_LENGTH); |
|
2750 } |
|
2751 length = byteLength / BYTES; |
|
2752 } else if (TYPED_ARRAY in data) { |
|
2753 return fromList(TypedArray, data); |
|
2754 } else { |
|
2755 return $from.call(TypedArray, data); |
|
2756 } |
|
2757 hide(that, '_d', { |
|
2758 b: buffer, |
|
2759 o: offset, |
|
2760 l: byteLength, |
|
2761 e: length, |
|
2762 v: new $DataView(buffer) |
|
2763 }); |
|
2764 while (index < length) addElement(that, index++); |
|
2765 }); |
|
2766 TypedArrayPrototype = TypedArray[PROTOTYPE] = create($TypedArrayPrototype$); |
|
2767 hide(TypedArrayPrototype, 'constructor', TypedArray); |
|
2768 } else if (!fails(function () { |
|
2769 TypedArray(1); |
|
2770 }) || !fails(function () { |
|
2771 new TypedArray(-1); // eslint-disable-line no-new |
|
2772 }) || !$iterDetect(function (iter) { |
|
2773 new TypedArray(); // eslint-disable-line no-new |
|
2774 new TypedArray(null); // eslint-disable-line no-new |
|
2775 new TypedArray(1.5); // eslint-disable-line no-new |
|
2776 new TypedArray(iter); // eslint-disable-line no-new |
|
2777 }, true)) { |
|
2778 TypedArray = wrapper(function (that, data, $offset, $length) { |
|
2779 anInstance(that, TypedArray, NAME); |
|
2780 var klass; |
|
2781 // `ws` module bug, temporarily remove validation length for Uint8Array |
|
2782 // https://github.com/websockets/ws/pull/645 |
|
2783 if (!isObject(data)) return new Base(toIndex(data)); |
|
2784 if (data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) { |
|
2785 return $length !== undefined |
|
2786 ? new Base(data, toOffset($offset, BYTES), $length) |
|
2787 : $offset !== undefined |
|
2788 ? new Base(data, toOffset($offset, BYTES)) |
|
2789 : new Base(data); |
|
2790 } |
|
2791 if (TYPED_ARRAY in data) return fromList(TypedArray, data); |
|
2792 return $from.call(TypedArray, data); |
|
2793 }); |
|
2794 arrayForEach(TAC !== Function.prototype ? gOPN(Base).concat(gOPN(TAC)) : gOPN(Base), function (key) { |
|
2795 if (!(key in TypedArray)) hide(TypedArray, key, Base[key]); |
|
2796 }); |
|
2797 TypedArray[PROTOTYPE] = TypedArrayPrototype; |
|
2798 if (!LIBRARY) TypedArrayPrototype.constructor = TypedArray; |
|
2799 } |
|
2800 var $nativeIterator = TypedArrayPrototype[ITERATOR]; |
|
2801 var CORRECT_ITER_NAME = !!$nativeIterator |
|
2802 && ($nativeIterator.name == 'values' || $nativeIterator.name == undefined); |
|
2803 var $iterator = $iterators.values; |
|
2804 hide(TypedArray, TYPED_CONSTRUCTOR, true); |
|
2805 hide(TypedArrayPrototype, TYPED_ARRAY, NAME); |
|
2806 hide(TypedArrayPrototype, VIEW, true); |
|
2807 hide(TypedArrayPrototype, DEF_CONSTRUCTOR, TypedArray); |
|
2808 |
|
2809 if (CLAMPED ? new TypedArray(1)[TAG] != NAME : !(TAG in TypedArrayPrototype)) { |
|
2810 dP(TypedArrayPrototype, TAG, { |
|
2811 get: function () { return NAME; } |
|
2812 }); |
|
2813 } |
|
2814 |
|
2815 O[NAME] = TypedArray; |
|
2816 |
|
2817 $export($export.G + $export.W + $export.F * (TypedArray != Base), O); |
|
2818 |
|
2819 $export($export.S, NAME, { |
|
2820 BYTES_PER_ELEMENT: BYTES |
|
2821 }); |
|
2822 |
|
2823 $export($export.S + $export.F * fails(function () { Base.of.call(TypedArray, 1); }), NAME, { |
|
2824 from: $from, |
|
2825 of: $of |
|
2826 }); |
|
2827 |
|
2828 if (!(BYTES_PER_ELEMENT in TypedArrayPrototype)) hide(TypedArrayPrototype, BYTES_PER_ELEMENT, BYTES); |
|
2829 |
|
2830 $export($export.P, NAME, proto); |
|
2831 |
|
2832 setSpecies(NAME); |
|
2833 |
|
2834 $export($export.P + $export.F * FORCED_SET, NAME, { set: $set }); |
|
2835 |
|
2836 $export($export.P + $export.F * !CORRECT_ITER_NAME, NAME, $iterators); |
|
2837 |
|
2838 if (!LIBRARY && TypedArrayPrototype.toString != arrayToString) TypedArrayPrototype.toString = arrayToString; |
|
2839 |
|
2840 $export($export.P + $export.F * fails(function () { |
|
2841 new TypedArray(1).slice(); |
|
2842 }), NAME, { slice: $slice }); |
|
2843 |
|
2844 $export($export.P + $export.F * (fails(function () { |
|
2845 return [1, 2].toLocaleString() != new TypedArray([1, 2]).toLocaleString(); |
|
2846 }) || !fails(function () { |
|
2847 TypedArrayPrototype.toLocaleString.call([1, 2]); |
|
2848 })), NAME, { toLocaleString: $toLocaleString }); |
|
2849 |
|
2850 Iterators[NAME] = CORRECT_ITER_NAME ? $nativeIterator : $iterator; |
|
2851 if (!LIBRARY && !CORRECT_ITER_NAME) hide(TypedArrayPrototype, ITERATOR, $iterator); |
|
2852 }; |
|
2853 } else module.exports = function () { /* empty */ }; |
|
2854 |
|
2855 },{"103":103,"113":113,"114":114,"115":115,"117":117,"118":118,"119":119,"121":121,"122":122,"123":123,"128":128,"129":129,"140":140,"15":15,"17":17,"18":18,"19":19,"20":20,"25":25,"32":32,"36":36,"40":40,"42":42,"46":46,"47":47,"48":48,"54":54,"57":57,"62":62,"64":64,"65":65,"74":74,"75":75,"77":77,"79":79,"81":81,"92":92,"93":93,"99":99}],121:[function(_dereq_,module,exports){ |
|
2856 'use strict'; |
|
2857 var global = _dereq_(46); |
|
2858 var DESCRIPTORS = _dereq_(36); |
|
2859 var LIBRARY = _dereq_(65); |
|
2860 var $typed = _dereq_(122); |
|
2861 var hide = _dereq_(48); |
|
2862 var redefineAll = _dereq_(93); |
|
2863 var fails = _dereq_(42); |
|
2864 var anInstance = _dereq_(15); |
|
2865 var toInteger = _dereq_(115); |
|
2866 var toLength = _dereq_(117); |
|
2867 var toIndex = _dereq_(114); |
|
2868 var gOPN = _dereq_(79).f; |
|
2869 var dP = _dereq_(75).f; |
|
2870 var arrayFill = _dereq_(18); |
|
2871 var setToStringTag = _dereq_(100); |
|
2872 var ARRAY_BUFFER = 'ArrayBuffer'; |
|
2873 var DATA_VIEW = 'DataView'; |
|
2874 var PROTOTYPE = 'prototype'; |
|
2875 var WRONG_LENGTH = 'Wrong length!'; |
|
2876 var WRONG_INDEX = 'Wrong index!'; |
|
2877 var $ArrayBuffer = global[ARRAY_BUFFER]; |
|
2878 var $DataView = global[DATA_VIEW]; |
|
2879 var Math = global.Math; |
|
2880 var RangeError = global.RangeError; |
|
2881 // eslint-disable-next-line no-shadow-restricted-names |
|
2882 var Infinity = global.Infinity; |
|
2883 var BaseBuffer = $ArrayBuffer; |
|
2884 var abs = Math.abs; |
|
2885 var pow = Math.pow; |
|
2886 var floor = Math.floor; |
|
2887 var log = Math.log; |
|
2888 var LN2 = Math.LN2; |
|
2889 var BUFFER = 'buffer'; |
|
2890 var BYTE_LENGTH = 'byteLength'; |
|
2891 var BYTE_OFFSET = 'byteOffset'; |
|
2892 var $BUFFER = DESCRIPTORS ? '_b' : BUFFER; |
|
2893 var $LENGTH = DESCRIPTORS ? '_l' : BYTE_LENGTH; |
|
2894 var $OFFSET = DESCRIPTORS ? '_o' : BYTE_OFFSET; |
|
2895 |
|
2896 // IEEE754 conversions based on https://github.com/feross/ieee754 |
|
2897 function packIEEE754(value, mLen, nBytes) { |
|
2898 var buffer = new Array(nBytes); |
|
2899 var eLen = nBytes * 8 - mLen - 1; |
|
2900 var eMax = (1 << eLen) - 1; |
|
2901 var eBias = eMax >> 1; |
|
2902 var rt = mLen === 23 ? pow(2, -24) - pow(2, -77) : 0; |
|
2903 var i = 0; |
|
2904 var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0; |
|
2905 var e, m, c; |
|
2906 value = abs(value); |
|
2907 // eslint-disable-next-line no-self-compare |
|
2908 if (value != value || value === Infinity) { |
|
2909 // eslint-disable-next-line no-self-compare |
|
2910 m = value != value ? 1 : 0; |
|
2911 e = eMax; |
|
2912 } else { |
|
2913 e = floor(log(value) / LN2); |
|
2914 if (value * (c = pow(2, -e)) < 1) { |
|
2915 e--; |
|
2916 c *= 2; |
|
2917 } |
|
2918 if (e + eBias >= 1) { |
|
2919 value += rt / c; |
|
2920 } else { |
|
2921 value += rt * pow(2, 1 - eBias); |
|
2922 } |
|
2923 if (value * c >= 2) { |
|
2924 e++; |
|
2925 c /= 2; |
|
2926 } |
|
2927 if (e + eBias >= eMax) { |
|
2928 m = 0; |
|
2929 e = eMax; |
|
2930 } else if (e + eBias >= 1) { |
|
2931 m = (value * c - 1) * pow(2, mLen); |
|
2932 e = e + eBias; |
|
2933 } else { |
|
2934 m = value * pow(2, eBias - 1) * pow(2, mLen); |
|
2935 e = 0; |
|
2936 } |
|
2937 } |
|
2938 for (; mLen >= 8; buffer[i++] = m & 255, m /= 256, mLen -= 8); |
|
2939 e = e << mLen | m; |
|
2940 eLen += mLen; |
|
2941 for (; eLen > 0; buffer[i++] = e & 255, e /= 256, eLen -= 8); |
|
2942 buffer[--i] |= s * 128; |
|
2943 return buffer; |
|
2944 } |
|
2945 function unpackIEEE754(buffer, mLen, nBytes) { |
|
2946 var eLen = nBytes * 8 - mLen - 1; |
|
2947 var eMax = (1 << eLen) - 1; |
|
2948 var eBias = eMax >> 1; |
|
2949 var nBits = eLen - 7; |
|
2950 var i = nBytes - 1; |
|
2951 var s = buffer[i--]; |
|
2952 var e = s & 127; |
|
2953 var m; |
|
2954 s >>= 7; |
|
2955 for (; nBits > 0; e = e * 256 + buffer[i], i--, nBits -= 8); |
|
2956 m = e & (1 << -nBits) - 1; |
|
2957 e >>= -nBits; |
|
2958 nBits += mLen; |
|
2959 for (; nBits > 0; m = m * 256 + buffer[i], i--, nBits -= 8); |
|
2960 if (e === 0) { |
|
2961 e = 1 - eBias; |
|
2962 } else if (e === eMax) { |
|
2963 return m ? NaN : s ? -Infinity : Infinity; |
|
2964 } else { |
|
2965 m = m + pow(2, mLen); |
|
2966 e = e - eBias; |
|
2967 } return (s ? -1 : 1) * m * pow(2, e - mLen); |
|
2968 } |
|
2969 |
|
2970 function unpackI32(bytes) { |
|
2971 return bytes[3] << 24 | bytes[2] << 16 | bytes[1] << 8 | bytes[0]; |
|
2972 } |
|
2973 function packI8(it) { |
|
2974 return [it & 0xff]; |
|
2975 } |
|
2976 function packI16(it) { |
|
2977 return [it & 0xff, it >> 8 & 0xff]; |
|
2978 } |
|
2979 function packI32(it) { |
|
2980 return [it & 0xff, it >> 8 & 0xff, it >> 16 & 0xff, it >> 24 & 0xff]; |
|
2981 } |
|
2982 function packF64(it) { |
|
2983 return packIEEE754(it, 52, 8); |
|
2984 } |
|
2985 function packF32(it) { |
|
2986 return packIEEE754(it, 23, 4); |
|
2987 } |
|
2988 |
|
2989 function addGetter(C, key, internal) { |
|
2990 dP(C[PROTOTYPE], key, { get: function () { return this[internal]; } }); |
|
2991 } |
|
2992 |
|
2993 function get(view, bytes, index, isLittleEndian) { |
|
2994 var numIndex = +index; |
|
2995 var intIndex = toIndex(numIndex); |
|
2996 if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX); |
|
2997 var store = view[$BUFFER]._b; |
|
2998 var start = intIndex + view[$OFFSET]; |
|
2999 var pack = store.slice(start, start + bytes); |
|
3000 return isLittleEndian ? pack : pack.reverse(); |
|
3001 } |
|
3002 function set(view, bytes, index, conversion, value, isLittleEndian) { |
|
3003 var numIndex = +index; |
|
3004 var intIndex = toIndex(numIndex); |
|
3005 if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX); |
|
3006 var store = view[$BUFFER]._b; |
|
3007 var start = intIndex + view[$OFFSET]; |
|
3008 var pack = conversion(+value); |
|
3009 for (var i = 0; i < bytes; i++) store[start + i] = pack[isLittleEndian ? i : bytes - i - 1]; |
|
3010 } |
|
3011 |
|
3012 if (!$typed.ABV) { |
|
3013 $ArrayBuffer = function ArrayBuffer(length) { |
|
3014 anInstance(this, $ArrayBuffer, ARRAY_BUFFER); |
|
3015 var byteLength = toIndex(length); |
|
3016 this._b = arrayFill.call(new Array(byteLength), 0); |
|
3017 this[$LENGTH] = byteLength; |
|
3018 }; |
|
3019 |
|
3020 $DataView = function DataView(buffer, byteOffset, byteLength) { |
|
3021 anInstance(this, $DataView, DATA_VIEW); |
|
3022 anInstance(buffer, $ArrayBuffer, DATA_VIEW); |
|
3023 var bufferLength = buffer[$LENGTH]; |
|
3024 var offset = toInteger(byteOffset); |
|
3025 if (offset < 0 || offset > bufferLength) throw RangeError('Wrong offset!'); |
|
3026 byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength); |
|
3027 if (offset + byteLength > bufferLength) throw RangeError(WRONG_LENGTH); |
|
3028 this[$BUFFER] = buffer; |
|
3029 this[$OFFSET] = offset; |
|
3030 this[$LENGTH] = byteLength; |
|
3031 }; |
|
3032 |
|
3033 if (DESCRIPTORS) { |
|
3034 addGetter($ArrayBuffer, BYTE_LENGTH, '_l'); |
|
3035 addGetter($DataView, BUFFER, '_b'); |
|
3036 addGetter($DataView, BYTE_LENGTH, '_l'); |
|
3037 addGetter($DataView, BYTE_OFFSET, '_o'); |
|
3038 } |
|
3039 |
|
3040 redefineAll($DataView[PROTOTYPE], { |
|
3041 getInt8: function getInt8(byteOffset) { |
|
3042 return get(this, 1, byteOffset)[0] << 24 >> 24; |
|
3043 }, |
|
3044 getUint8: function getUint8(byteOffset) { |
|
3045 return get(this, 1, byteOffset)[0]; |
|
3046 }, |
|
3047 getInt16: function getInt16(byteOffset /* , littleEndian */) { |
|
3048 var bytes = get(this, 2, byteOffset, arguments[1]); |
|
3049 return (bytes[1] << 8 | bytes[0]) << 16 >> 16; |
|
3050 }, |
|
3051 getUint16: function getUint16(byteOffset /* , littleEndian */) { |
|
3052 var bytes = get(this, 2, byteOffset, arguments[1]); |
|
3053 return bytes[1] << 8 | bytes[0]; |
|
3054 }, |
|
3055 getInt32: function getInt32(byteOffset /* , littleEndian */) { |
|
3056 return unpackI32(get(this, 4, byteOffset, arguments[1])); |
|
3057 }, |
|
3058 getUint32: function getUint32(byteOffset /* , littleEndian */) { |
|
3059 return unpackI32(get(this, 4, byteOffset, arguments[1])) >>> 0; |
|
3060 }, |
|
3061 getFloat32: function getFloat32(byteOffset /* , littleEndian */) { |
|
3062 return unpackIEEE754(get(this, 4, byteOffset, arguments[1]), 23, 4); |
|
3063 }, |
|
3064 getFloat64: function getFloat64(byteOffset /* , littleEndian */) { |
|
3065 return unpackIEEE754(get(this, 8, byteOffset, arguments[1]), 52, 8); |
|
3066 }, |
|
3067 setInt8: function setInt8(byteOffset, value) { |
|
3068 set(this, 1, byteOffset, packI8, value); |
|
3069 }, |
|
3070 setUint8: function setUint8(byteOffset, value) { |
|
3071 set(this, 1, byteOffset, packI8, value); |
|
3072 }, |
|
3073 setInt16: function setInt16(byteOffset, value /* , littleEndian */) { |
|
3074 set(this, 2, byteOffset, packI16, value, arguments[2]); |
|
3075 }, |
|
3076 setUint16: function setUint16(byteOffset, value /* , littleEndian */) { |
|
3077 set(this, 2, byteOffset, packI16, value, arguments[2]); |
|
3078 }, |
|
3079 setInt32: function setInt32(byteOffset, value /* , littleEndian */) { |
|
3080 set(this, 4, byteOffset, packI32, value, arguments[2]); |
|
3081 }, |
|
3082 setUint32: function setUint32(byteOffset, value /* , littleEndian */) { |
|
3083 set(this, 4, byteOffset, packI32, value, arguments[2]); |
|
3084 }, |
|
3085 setFloat32: function setFloat32(byteOffset, value /* , littleEndian */) { |
|
3086 set(this, 4, byteOffset, packF32, value, arguments[2]); |
|
3087 }, |
|
3088 setFloat64: function setFloat64(byteOffset, value /* , littleEndian */) { |
|
3089 set(this, 8, byteOffset, packF64, value, arguments[2]); |
|
3090 } |
|
3091 }); |
|
3092 } else { |
|
3093 if (!fails(function () { |
|
3094 $ArrayBuffer(1); |
|
3095 }) || !fails(function () { |
|
3096 new $ArrayBuffer(-1); // eslint-disable-line no-new |
|
3097 }) || fails(function () { |
|
3098 new $ArrayBuffer(); // eslint-disable-line no-new |
|
3099 new $ArrayBuffer(1.5); // eslint-disable-line no-new |
|
3100 new $ArrayBuffer(NaN); // eslint-disable-line no-new |
|
3101 return $ArrayBuffer.name != ARRAY_BUFFER; |
|
3102 })) { |
|
3103 $ArrayBuffer = function ArrayBuffer(length) { |
|
3104 anInstance(this, $ArrayBuffer); |
|
3105 return new BaseBuffer(toIndex(length)); |
|
3106 }; |
|
3107 var ArrayBufferProto = $ArrayBuffer[PROTOTYPE] = BaseBuffer[PROTOTYPE]; |
|
3108 for (var keys = gOPN(BaseBuffer), j = 0, key; keys.length > j;) { |
|
3109 if (!((key = keys[j++]) in $ArrayBuffer)) hide($ArrayBuffer, key, BaseBuffer[key]); |
|
3110 } |
|
3111 if (!LIBRARY) ArrayBufferProto.constructor = $ArrayBuffer; |
|
3112 } |
|
3113 // iOS Safari 7.x bug |
|
3114 var view = new $DataView(new $ArrayBuffer(2)); |
|
3115 var $setInt8 = $DataView[PROTOTYPE].setInt8; |
|
3116 view.setInt8(0, 2147483648); |
|
3117 view.setInt8(1, 2147483649); |
|
3118 if (view.getInt8(0) || !view.getInt8(1)) redefineAll($DataView[PROTOTYPE], { |
|
3119 setInt8: function setInt8(byteOffset, value) { |
|
3120 $setInt8.call(this, byteOffset, value << 24 >> 24); |
|
3121 }, |
|
3122 setUint8: function setUint8(byteOffset, value) { |
|
3123 $setInt8.call(this, byteOffset, value << 24 >> 24); |
|
3124 } |
|
3125 }, true); |
|
3126 } |
|
3127 setToStringTag($ArrayBuffer, ARRAY_BUFFER); |
|
3128 setToStringTag($DataView, DATA_VIEW); |
|
3129 hide($DataView[PROTOTYPE], $typed.VIEW, true); |
|
3130 exports[ARRAY_BUFFER] = $ArrayBuffer; |
|
3131 exports[DATA_VIEW] = $DataView; |
|
3132 |
|
3133 },{"100":100,"114":114,"115":115,"117":117,"122":122,"15":15,"18":18,"36":36,"42":42,"46":46,"48":48,"65":65,"75":75,"79":79,"93":93}],122:[function(_dereq_,module,exports){ |
|
3134 var global = _dereq_(46); |
|
3135 var hide = _dereq_(48); |
|
3136 var uid = _dereq_(123); |
|
3137 var TYPED = uid('typed_array'); |
|
3138 var VIEW = uid('view'); |
|
3139 var ABV = !!(global.ArrayBuffer && global.DataView); |
|
3140 var CONSTR = ABV; |
|
3141 var i = 0; |
|
3142 var l = 9; |
|
3143 var Typed; |
|
3144 |
|
3145 var TypedArrayConstructors = ( |
|
3146 'Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array' |
|
3147 ).split(','); |
|
3148 |
|
3149 while (i < l) { |
|
3150 if (Typed = global[TypedArrayConstructors[i++]]) { |
|
3151 hide(Typed.prototype, TYPED, true); |
|
3152 hide(Typed.prototype, VIEW, true); |
|
3153 } else CONSTR = false; |
|
3154 } |
|
3155 |
|
3156 module.exports = { |
|
3157 ABV: ABV, |
|
3158 CONSTR: CONSTR, |
|
3159 TYPED: TYPED, |
|
3160 VIEW: VIEW |
|
3161 }; |
|
3162 |
|
3163 },{"123":123,"46":46,"48":48}],123:[function(_dereq_,module,exports){ |
|
3164 var id = 0; |
|
3165 var px = Math.random(); |
|
3166 module.exports = function (key) { |
|
3167 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); |
|
3168 }; |
|
3169 |
|
3170 },{}],124:[function(_dereq_,module,exports){ |
|
3171 var global = _dereq_(46); |
|
3172 var navigator = global.navigator; |
|
3173 |
|
3174 module.exports = navigator && navigator.userAgent || ''; |
|
3175 |
|
3176 },{"46":46}],125:[function(_dereq_,module,exports){ |
|
3177 var isObject = _dereq_(57); |
|
3178 module.exports = function (it, TYPE) { |
|
3179 if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!'); |
|
3180 return it; |
|
3181 }; |
|
3182 |
|
3183 },{"57":57}],126:[function(_dereq_,module,exports){ |
|
3184 var global = _dereq_(46); |
|
3185 var core = _dereq_(30); |
|
3186 var LIBRARY = _dereq_(65); |
|
3187 var wksExt = _dereq_(127); |
|
3188 var defineProperty = _dereq_(75).f; |
|
3189 module.exports = function (name) { |
|
3190 var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); |
|
3191 if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); |
|
3192 }; |
|
3193 |
|
3194 },{"127":127,"30":30,"46":46,"65":65,"75":75}],127:[function(_dereq_,module,exports){ |
|
3195 exports.f = _dereq_(128); |
|
3196 |
|
3197 },{"128":128}],128:[function(_dereq_,module,exports){ |
|
3198 var store = _dereq_(102)('wks'); |
|
3199 var uid = _dereq_(123); |
|
3200 var Symbol = _dereq_(46).Symbol; |
|
3201 var USE_SYMBOL = typeof Symbol == 'function'; |
|
3202 |
|
3203 var $exports = module.exports = function (name) { |
|
3204 return store[name] || (store[name] = |
|
3205 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); |
|
3206 }; |
|
3207 |
|
3208 $exports.store = store; |
|
3209 |
|
3210 },{"102":102,"123":123,"46":46}],129:[function(_dereq_,module,exports){ |
|
3211 var classof = _dereq_(25); |
|
3212 var ITERATOR = _dereq_(128)('iterator'); |
|
3213 var Iterators = _dereq_(64); |
|
3214 module.exports = _dereq_(30).getIteratorMethod = function (it) { |
|
3215 if (it != undefined) return it[ITERATOR] |
|
3216 || it['@@iterator'] |
|
3217 || Iterators[classof(it)]; |
|
3218 }; |
|
3219 |
|
3220 },{"128":128,"25":25,"30":30,"64":64}],130:[function(_dereq_,module,exports){ |
|
3221 // 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length) |
|
3222 var $export = _dereq_(40); |
|
3223 |
|
3224 $export($export.P, 'Array', { copyWithin: _dereq_(17) }); |
|
3225 |
|
3226 _dereq_(13)('copyWithin'); |
|
3227 |
|
3228 },{"13":13,"17":17,"40":40}],131:[function(_dereq_,module,exports){ |
|
3229 'use strict'; |
|
3230 var $export = _dereq_(40); |
|
3231 var $every = _dereq_(20)(4); |
|
3232 |
|
3233 $export($export.P + $export.F * !_dereq_(104)([].every, true), 'Array', { |
|
3234 // 22.1.3.5 / 15.4.4.16 Array.prototype.every(callbackfn [, thisArg]) |
|
3235 every: function every(callbackfn /* , thisArg */) { |
|
3236 return $every(this, callbackfn, arguments[1]); |
|
3237 } |
|
3238 }); |
|
3239 |
|
3240 },{"104":104,"20":20,"40":40}],132:[function(_dereq_,module,exports){ |
|
3241 // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length) |
|
3242 var $export = _dereq_(40); |
|
3243 |
|
3244 $export($export.P, 'Array', { fill: _dereq_(18) }); |
|
3245 |
|
3246 _dereq_(13)('fill'); |
|
3247 |
|
3248 },{"13":13,"18":18,"40":40}],133:[function(_dereq_,module,exports){ |
|
3249 'use strict'; |
|
3250 var $export = _dereq_(40); |
|
3251 var $filter = _dereq_(20)(2); |
|
3252 |
|
3253 $export($export.P + $export.F * !_dereq_(104)([].filter, true), 'Array', { |
|
3254 // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg]) |
|
3255 filter: function filter(callbackfn /* , thisArg */) { |
|
3256 return $filter(this, callbackfn, arguments[1]); |
|
3257 } |
|
3258 }); |
|
3259 |
|
3260 },{"104":104,"20":20,"40":40}],134:[function(_dereq_,module,exports){ |
|
3261 'use strict'; |
|
3262 // 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined) |
|
3263 var $export = _dereq_(40); |
|
3264 var $find = _dereq_(20)(6); |
|
3265 var KEY = 'findIndex'; |
|
3266 var forced = true; |
|
3267 // Shouldn't skip holes |
|
3268 if (KEY in []) Array(1)[KEY](function () { forced = false; }); |
|
3269 $export($export.P + $export.F * forced, 'Array', { |
|
3270 findIndex: function findIndex(callbackfn /* , that = undefined */) { |
|
3271 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); |
|
3272 } |
|
3273 }); |
|
3274 _dereq_(13)(KEY); |
|
3275 |
|
3276 },{"13":13,"20":20,"40":40}],135:[function(_dereq_,module,exports){ |
|
3277 'use strict'; |
|
3278 // 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined) |
|
3279 var $export = _dereq_(40); |
|
3280 var $find = _dereq_(20)(5); |
|
3281 var KEY = 'find'; |
|
3282 var forced = true; |
|
3283 // Shouldn't skip holes |
|
3284 if (KEY in []) Array(1)[KEY](function () { forced = false; }); |
|
3285 $export($export.P + $export.F * forced, 'Array', { |
|
3286 find: function find(callbackfn /* , that = undefined */) { |
|
3287 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); |
|
3288 } |
|
3289 }); |
|
3290 _dereq_(13)(KEY); |
|
3291 |
|
3292 },{"13":13,"20":20,"40":40}],136:[function(_dereq_,module,exports){ |
|
3293 'use strict'; |
|
3294 var $export = _dereq_(40); |
|
3295 var $forEach = _dereq_(20)(0); |
|
3296 var STRICT = _dereq_(104)([].forEach, true); |
|
3297 |
|
3298 $export($export.P + $export.F * !STRICT, 'Array', { |
|
3299 // 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg]) |
|
3300 forEach: function forEach(callbackfn /* , thisArg */) { |
|
3301 return $forEach(this, callbackfn, arguments[1]); |
|
3302 } |
|
3303 }); |
|
3304 |
|
3305 },{"104":104,"20":20,"40":40}],137:[function(_dereq_,module,exports){ |
|
3306 'use strict'; |
|
3307 var ctx = _dereq_(32); |
|
3308 var $export = _dereq_(40); |
|
3309 var toObject = _dereq_(118); |
|
3310 var call = _dereq_(59); |
|
3311 var isArrayIter = _dereq_(54); |
|
3312 var toLength = _dereq_(117); |
|
3313 var createProperty = _dereq_(31); |
|
3314 var getIterFn = _dereq_(129); |
|
3315 |
|
3316 $export($export.S + $export.F * !_dereq_(62)(function (iter) { Array.from(iter); }), 'Array', { |
|
3317 // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) |
|
3318 from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { |
|
3319 var O = toObject(arrayLike); |
|
3320 var C = typeof this == 'function' ? this : Array; |
|
3321 var aLen = arguments.length; |
|
3322 var mapfn = aLen > 1 ? arguments[1] : undefined; |
|
3323 var mapping = mapfn !== undefined; |
|
3324 var index = 0; |
|
3325 var iterFn = getIterFn(O); |
|
3326 var length, result, step, iterator; |
|
3327 if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2); |
|
3328 // if object isn't iterable or it's array with default iterator - use simple case |
|
3329 if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) { |
|
3330 for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) { |
|
3331 createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value); |
|
3332 } |
|
3333 } else { |
|
3334 length = toLength(O.length); |
|
3335 for (result = new C(length); length > index; index++) { |
|
3336 createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); |
|
3337 } |
|
3338 } |
|
3339 result.length = index; |
|
3340 return result; |
|
3341 } |
|
3342 }); |
|
3343 |
|
3344 },{"117":117,"118":118,"129":129,"31":31,"32":32,"40":40,"54":54,"59":59,"62":62}],138:[function(_dereq_,module,exports){ |
|
3345 'use strict'; |
|
3346 var $export = _dereq_(40); |
|
3347 var $indexOf = _dereq_(19)(false); |
|
3348 var $native = [].indexOf; |
|
3349 var NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0; |
|
3350 |
|
3351 $export($export.P + $export.F * (NEGATIVE_ZERO || !_dereq_(104)($native)), 'Array', { |
|
3352 // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex]) |
|
3353 indexOf: function indexOf(searchElement /* , fromIndex = 0 */) { |
|
3354 return NEGATIVE_ZERO |
|
3355 // convert -0 to +0 |
|
3356 ? $native.apply(this, arguments) || 0 |
|
3357 : $indexOf(this, searchElement, arguments[1]); |
|
3358 } |
|
3359 }); |
|
3360 |
|
3361 },{"104":104,"19":19,"40":40}],139:[function(_dereq_,module,exports){ |
|
3362 // 22.1.2.2 / 15.4.3.2 Array.isArray(arg) |
|
3363 var $export = _dereq_(40); |
|
3364 |
|
3365 $export($export.S, 'Array', { isArray: _dereq_(55) }); |
|
3366 |
|
3367 },{"40":40,"55":55}],140:[function(_dereq_,module,exports){ |
|
3368 'use strict'; |
|
3369 var addToUnscopables = _dereq_(13); |
|
3370 var step = _dereq_(63); |
|
3371 var Iterators = _dereq_(64); |
|
3372 var toIObject = _dereq_(116); |
|
3373 |
|
3374 // 22.1.3.4 Array.prototype.entries() |
|
3375 // 22.1.3.13 Array.prototype.keys() |
|
3376 // 22.1.3.29 Array.prototype.values() |
|
3377 // 22.1.3.30 Array.prototype[@@iterator]() |
|
3378 module.exports = _dereq_(61)(Array, 'Array', function (iterated, kind) { |
|
3379 this._t = toIObject(iterated); // target |
|
3380 this._i = 0; // next index |
|
3381 this._k = kind; // kind |
|
3382 // 22.1.5.2.1 %ArrayIteratorPrototype%.next() |
|
3383 }, function () { |
|
3384 var O = this._t; |
|
3385 var kind = this._k; |
|
3386 var index = this._i++; |
|
3387 if (!O || index >= O.length) { |
|
3388 this._t = undefined; |
|
3389 return step(1); |
|
3390 } |
|
3391 if (kind == 'keys') return step(0, index); |
|
3392 if (kind == 'values') return step(0, O[index]); |
|
3393 return step(0, [index, O[index]]); |
|
3394 }, 'values'); |
|
3395 |
|
3396 // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) |
|
3397 Iterators.Arguments = Iterators.Array; |
|
3398 |
|
3399 addToUnscopables('keys'); |
|
3400 addToUnscopables('values'); |
|
3401 addToUnscopables('entries'); |
|
3402 |
|
3403 },{"116":116,"13":13,"61":61,"63":63,"64":64}],141:[function(_dereq_,module,exports){ |
|
3404 'use strict'; |
|
3405 // 22.1.3.13 Array.prototype.join(separator) |
|
3406 var $export = _dereq_(40); |
|
3407 var toIObject = _dereq_(116); |
|
3408 var arrayJoin = [].join; |
|
3409 |
|
3410 // fallback for not array-like strings |
|
3411 $export($export.P + $export.F * (_dereq_(53) != Object || !_dereq_(104)(arrayJoin)), 'Array', { |
|
3412 join: function join(separator) { |
|
3413 return arrayJoin.call(toIObject(this), separator === undefined ? ',' : separator); |
|
3414 } |
|
3415 }); |
|
3416 |
|
3417 },{"104":104,"116":116,"40":40,"53":53}],142:[function(_dereq_,module,exports){ |
|
3418 'use strict'; |
|
3419 var $export = _dereq_(40); |
|
3420 var toIObject = _dereq_(116); |
|
3421 var toInteger = _dereq_(115); |
|
3422 var toLength = _dereq_(117); |
|
3423 var $native = [].lastIndexOf; |
|
3424 var NEGATIVE_ZERO = !!$native && 1 / [1].lastIndexOf(1, -0) < 0; |
|
3425 |
|
3426 $export($export.P + $export.F * (NEGATIVE_ZERO || !_dereq_(104)($native)), 'Array', { |
|
3427 // 22.1.3.14 / 15.4.4.15 Array.prototype.lastIndexOf(searchElement [, fromIndex]) |
|
3428 lastIndexOf: function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) { |
|
3429 // convert -0 to +0 |
|
3430 if (NEGATIVE_ZERO) return $native.apply(this, arguments) || 0; |
|
3431 var O = toIObject(this); |
|
3432 var length = toLength(O.length); |
|
3433 var index = length - 1; |
|
3434 if (arguments.length > 1) index = Math.min(index, toInteger(arguments[1])); |
|
3435 if (index < 0) index = length + index; |
|
3436 for (;index >= 0; index--) if (index in O) if (O[index] === searchElement) return index || 0; |
|
3437 return -1; |
|
3438 } |
|
3439 }); |
|
3440 |
|
3441 },{"104":104,"115":115,"116":116,"117":117,"40":40}],143:[function(_dereq_,module,exports){ |
|
3442 'use strict'; |
|
3443 var $export = _dereq_(40); |
|
3444 var $map = _dereq_(20)(1); |
|
3445 |
|
3446 $export($export.P + $export.F * !_dereq_(104)([].map, true), 'Array', { |
|
3447 // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg]) |
|
3448 map: function map(callbackfn /* , thisArg */) { |
|
3449 return $map(this, callbackfn, arguments[1]); |
|
3450 } |
|
3451 }); |
|
3452 |
|
3453 },{"104":104,"20":20,"40":40}],144:[function(_dereq_,module,exports){ |
|
3454 'use strict'; |
|
3455 var $export = _dereq_(40); |
|
3456 var createProperty = _dereq_(31); |
|
3457 |
|
3458 // WebKit Array.of isn't generic |
|
3459 $export($export.S + $export.F * _dereq_(42)(function () { |
|
3460 function F() { /* empty */ } |
|
3461 return !(Array.of.call(F) instanceof F); |
|
3462 }), 'Array', { |
|
3463 // 22.1.2.3 Array.of( ...items) |
|
3464 of: function of(/* ...args */) { |
|
3465 var index = 0; |
|
3466 var aLen = arguments.length; |
|
3467 var result = new (typeof this == 'function' ? this : Array)(aLen); |
|
3468 while (aLen > index) createProperty(result, index, arguments[index++]); |
|
3469 result.length = aLen; |
|
3470 return result; |
|
3471 } |
|
3472 }); |
|
3473 |
|
3474 },{"31":31,"40":40,"42":42}],145:[function(_dereq_,module,exports){ |
|
3475 'use strict'; |
|
3476 var $export = _dereq_(40); |
|
3477 var $reduce = _dereq_(21); |
|
3478 |
|
3479 $export($export.P + $export.F * !_dereq_(104)([].reduceRight, true), 'Array', { |
|
3480 // 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue]) |
|
3481 reduceRight: function reduceRight(callbackfn /* , initialValue */) { |
|
3482 return $reduce(this, callbackfn, arguments.length, arguments[1], true); |
|
3483 } |
|
3484 }); |
|
3485 |
|
3486 },{"104":104,"21":21,"40":40}],146:[function(_dereq_,module,exports){ |
|
3487 'use strict'; |
|
3488 var $export = _dereq_(40); |
|
3489 var $reduce = _dereq_(21); |
|
3490 |
|
3491 $export($export.P + $export.F * !_dereq_(104)([].reduce, true), 'Array', { |
|
3492 // 22.1.3.18 / 15.4.4.21 Array.prototype.reduce(callbackfn [, initialValue]) |
|
3493 reduce: function reduce(callbackfn /* , initialValue */) { |
|
3494 return $reduce(this, callbackfn, arguments.length, arguments[1], false); |
|
3495 } |
|
3496 }); |
|
3497 |
|
3498 },{"104":104,"21":21,"40":40}],147:[function(_dereq_,module,exports){ |
|
3499 'use strict'; |
|
3500 var $export = _dereq_(40); |
|
3501 var html = _dereq_(49); |
|
3502 var cof = _dereq_(26); |
|
3503 var toAbsoluteIndex = _dereq_(113); |
|
3504 var toLength = _dereq_(117); |
|
3505 var arraySlice = [].slice; |
|
3506 |
|
3507 // fallback for not array-like ES3 strings and DOM objects |
|
3508 $export($export.P + $export.F * _dereq_(42)(function () { |
|
3509 if (html) arraySlice.call(html); |
|
3510 }), 'Array', { |
|
3511 slice: function slice(begin, end) { |
|
3512 var len = toLength(this.length); |
|
3513 var klass = cof(this); |
|
3514 end = end === undefined ? len : end; |
|
3515 if (klass == 'Array') return arraySlice.call(this, begin, end); |
|
3516 var start = toAbsoluteIndex(begin, len); |
|
3517 var upTo = toAbsoluteIndex(end, len); |
|
3518 var size = toLength(upTo - start); |
|
3519 var cloned = new Array(size); |
|
3520 var i = 0; |
|
3521 for (; i < size; i++) cloned[i] = klass == 'String' |
|
3522 ? this.charAt(start + i) |
|
3523 : this[start + i]; |
|
3524 return cloned; |
|
3525 } |
|
3526 }); |
|
3527 |
|
3528 },{"113":113,"117":117,"26":26,"40":40,"42":42,"49":49}],148:[function(_dereq_,module,exports){ |
|
3529 'use strict'; |
|
3530 var $export = _dereq_(40); |
|
3531 var $some = _dereq_(20)(3); |
|
3532 |
|
3533 $export($export.P + $export.F * !_dereq_(104)([].some, true), 'Array', { |
|
3534 // 22.1.3.23 / 15.4.4.17 Array.prototype.some(callbackfn [, thisArg]) |
|
3535 some: function some(callbackfn /* , thisArg */) { |
|
3536 return $some(this, callbackfn, arguments[1]); |
|
3537 } |
|
3538 }); |
|
3539 |
|
3540 },{"104":104,"20":20,"40":40}],149:[function(_dereq_,module,exports){ |
|
3541 'use strict'; |
|
3542 var $export = _dereq_(40); |
|
3543 var aFunction = _dereq_(11); |
|
3544 var toObject = _dereq_(118); |
|
3545 var fails = _dereq_(42); |
|
3546 var $sort = [].sort; |
|
3547 var test = [1, 2, 3]; |
|
3548 |
|
3549 $export($export.P + $export.F * (fails(function () { |
|
3550 // IE8- |
|
3551 test.sort(undefined); |
|
3552 }) || !fails(function () { |
|
3553 // V8 bug |
|
3554 test.sort(null); |
|
3555 // Old WebKit |
|
3556 }) || !_dereq_(104)($sort)), 'Array', { |
|
3557 // 22.1.3.25 Array.prototype.sort(comparefn) |
|
3558 sort: function sort(comparefn) { |
|
3559 return comparefn === undefined |
|
3560 ? $sort.call(toObject(this)) |
|
3561 : $sort.call(toObject(this), aFunction(comparefn)); |
|
3562 } |
|
3563 }); |
|
3564 |
|
3565 },{"104":104,"11":11,"118":118,"40":40,"42":42}],150:[function(_dereq_,module,exports){ |
|
3566 _dereq_(99)('Array'); |
|
3567 |
|
3568 },{"99":99}],151:[function(_dereq_,module,exports){ |
|
3569 // 20.3.3.1 / 15.9.4.4 Date.now() |
|
3570 var $export = _dereq_(40); |
|
3571 |
|
3572 $export($export.S, 'Date', { now: function () { return new Date().getTime(); } }); |
|
3573 |
|
3574 },{"40":40}],152:[function(_dereq_,module,exports){ |
|
3575 // 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString() |
|
3576 var $export = _dereq_(40); |
|
3577 var toISOString = _dereq_(33); |
|
3578 |
|
3579 // PhantomJS / old WebKit has a broken implementations |
|
3580 $export($export.P + $export.F * (Date.prototype.toISOString !== toISOString), 'Date', { |
|
3581 toISOString: toISOString |
|
3582 }); |
|
3583 |
|
3584 },{"33":33,"40":40}],153:[function(_dereq_,module,exports){ |
|
3585 'use strict'; |
|
3586 var $export = _dereq_(40); |
|
3587 var toObject = _dereq_(118); |
|
3588 var toPrimitive = _dereq_(119); |
|
3589 |
|
3590 $export($export.P + $export.F * _dereq_(42)(function () { |
|
3591 return new Date(NaN).toJSON() !== null |
|
3592 || Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1; |
|
3593 }), 'Date', { |
|
3594 // eslint-disable-next-line no-unused-vars |
|
3595 toJSON: function toJSON(key) { |
|
3596 var O = toObject(this); |
|
3597 var pv = toPrimitive(O); |
|
3598 return typeof pv == 'number' && !isFinite(pv) ? null : O.toISOString(); |
|
3599 } |
|
3600 }); |
|
3601 |
|
3602 },{"118":118,"119":119,"40":40,"42":42}],154:[function(_dereq_,module,exports){ |
|
3603 var TO_PRIMITIVE = _dereq_(128)('toPrimitive'); |
|
3604 var proto = Date.prototype; |
|
3605 |
|
3606 if (!(TO_PRIMITIVE in proto)) _dereq_(48)(proto, TO_PRIMITIVE, _dereq_(34)); |
|
3607 |
|
3608 },{"128":128,"34":34,"48":48}],155:[function(_dereq_,module,exports){ |
|
3609 var DateProto = Date.prototype; |
|
3610 var INVALID_DATE = 'Invalid Date'; |
|
3611 var TO_STRING = 'toString'; |
|
3612 var $toString = DateProto[TO_STRING]; |
|
3613 var getTime = DateProto.getTime; |
|
3614 if (new Date(NaN) + '' != INVALID_DATE) { |
|
3615 _dereq_(94)(DateProto, TO_STRING, function toString() { |
|
3616 var value = getTime.call(this); |
|
3617 // eslint-disable-next-line no-self-compare |
|
3618 return value === value ? $toString.call(this) : INVALID_DATE; |
|
3619 }); |
|
3620 } |
|
3621 |
|
3622 },{"94":94}],156:[function(_dereq_,module,exports){ |
|
3623 // 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...) |
|
3624 var $export = _dereq_(40); |
|
3625 |
|
3626 $export($export.P, 'Function', { bind: _dereq_(24) }); |
|
3627 |
|
3628 },{"24":24,"40":40}],157:[function(_dereq_,module,exports){ |
|
3629 'use strict'; |
|
3630 var isObject = _dereq_(57); |
|
3631 var getPrototypeOf = _dereq_(81); |
|
3632 var HAS_INSTANCE = _dereq_(128)('hasInstance'); |
|
3633 var FunctionProto = Function.prototype; |
|
3634 // 19.2.3.6 Function.prototype[@@hasInstance](V) |
|
3635 if (!(HAS_INSTANCE in FunctionProto)) _dereq_(75).f(FunctionProto, HAS_INSTANCE, { value: function (O) { |
|
3636 if (typeof this != 'function' || !isObject(O)) return false; |
|
3637 if (!isObject(this.prototype)) return O instanceof this; |
|
3638 // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this: |
|
3639 while (O = getPrototypeOf(O)) if (this.prototype === O) return true; |
|
3640 return false; |
|
3641 } }); |
|
3642 |
|
3643 },{"128":128,"57":57,"75":75,"81":81}],158:[function(_dereq_,module,exports){ |
|
3644 var dP = _dereq_(75).f; |
|
3645 var FProto = Function.prototype; |
|
3646 var nameRE = /^\s*function ([^ (]*)/; |
|
3647 var NAME = 'name'; |
|
3648 |
|
3649 // 19.2.4.2 name |
|
3650 NAME in FProto || _dereq_(36) && dP(FProto, NAME, { |
|
3651 configurable: true, |
|
3652 get: function () { |
|
3653 try { |
|
3654 return ('' + this).match(nameRE)[1]; |
|
3655 } catch (e) { |
|
3656 return ''; |
|
3657 } |
|
3658 } |
|
3659 }); |
|
3660 |
|
3661 },{"36":36,"75":75}],159:[function(_dereq_,module,exports){ |
|
3662 'use strict'; |
|
3663 var strong = _dereq_(27); |
|
3664 var validate = _dereq_(125); |
|
3665 var MAP = 'Map'; |
|
3666 |
|
3667 // 23.1 Map Objects |
|
3668 module.exports = _dereq_(29)(MAP, function (get) { |
|
3669 return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; |
|
3670 }, { |
|
3671 // 23.1.3.6 Map.prototype.get(key) |
|
3672 get: function get(key) { |
|
3673 var entry = strong.getEntry(validate(this, MAP), key); |
|
3674 return entry && entry.v; |
|
3675 }, |
|
3676 // 23.1.3.9 Map.prototype.set(key, value) |
|
3677 set: function set(key, value) { |
|
3678 return strong.def(validate(this, MAP), key === 0 ? 0 : key, value); |
|
3679 } |
|
3680 }, strong, true); |
|
3681 |
|
3682 },{"125":125,"27":27,"29":29}],160:[function(_dereq_,module,exports){ |
|
3683 // 20.2.2.3 Math.acosh(x) |
|
3684 var $export = _dereq_(40); |
|
3685 var log1p = _dereq_(68); |
|
3686 var sqrt = Math.sqrt; |
|
3687 var $acosh = Math.acosh; |
|
3688 |
|
3689 $export($export.S + $export.F * !($acosh |
|
3690 // V8 bug: https://code.google.com/p/v8/issues/detail?id=3509 |
|
3691 && Math.floor($acosh(Number.MAX_VALUE)) == 710 |
|
3692 // Tor Browser bug: Math.acosh(Infinity) -> NaN |
|
3693 && $acosh(Infinity) == Infinity |
|
3694 ), 'Math', { |
|
3695 acosh: function acosh(x) { |
|
3696 return (x = +x) < 1 ? NaN : x > 94906265.62425156 |
|
3697 ? Math.log(x) + Math.LN2 |
|
3698 : log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1)); |
|
3699 } |
|
3700 }); |
|
3701 |
|
3702 },{"40":40,"68":68}],161:[function(_dereq_,module,exports){ |
|
3703 // 20.2.2.5 Math.asinh(x) |
|
3704 var $export = _dereq_(40); |
|
3705 var $asinh = Math.asinh; |
|
3706 |
|
3707 function asinh(x) { |
|
3708 return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : Math.log(x + Math.sqrt(x * x + 1)); |
|
3709 } |
|
3710 |
|
3711 // Tor Browser bug: Math.asinh(0) -> -0 |
|
3712 $export($export.S + $export.F * !($asinh && 1 / $asinh(0) > 0), 'Math', { asinh: asinh }); |
|
3713 |
|
3714 },{"40":40}],162:[function(_dereq_,module,exports){ |
|
3715 // 20.2.2.7 Math.atanh(x) |
|
3716 var $export = _dereq_(40); |
|
3717 var $atanh = Math.atanh; |
|
3718 |
|
3719 // Tor Browser bug: Math.atanh(-0) -> 0 |
|
3720 $export($export.S + $export.F * !($atanh && 1 / $atanh(-0) < 0), 'Math', { |
|
3721 atanh: function atanh(x) { |
|
3722 return (x = +x) == 0 ? x : Math.log((1 + x) / (1 - x)) / 2; |
|
3723 } |
|
3724 }); |
|
3725 |
|
3726 },{"40":40}],163:[function(_dereq_,module,exports){ |
|
3727 // 20.2.2.9 Math.cbrt(x) |
|
3728 var $export = _dereq_(40); |
|
3729 var sign = _dereq_(69); |
|
3730 |
|
3731 $export($export.S, 'Math', { |
|
3732 cbrt: function cbrt(x) { |
|
3733 return sign(x = +x) * Math.pow(Math.abs(x), 1 / 3); |
|
3734 } |
|
3735 }); |
|
3736 |
|
3737 },{"40":40,"69":69}],164:[function(_dereq_,module,exports){ |
|
3738 // 20.2.2.11 Math.clz32(x) |
|
3739 var $export = _dereq_(40); |
|
3740 |
|
3741 $export($export.S, 'Math', { |
|
3742 clz32: function clz32(x) { |
|
3743 return (x >>>= 0) ? 31 - Math.floor(Math.log(x + 0.5) * Math.LOG2E) : 32; |
|
3744 } |
|
3745 }); |
|
3746 |
|
3747 },{"40":40}],165:[function(_dereq_,module,exports){ |
|
3748 // 20.2.2.12 Math.cosh(x) |
|
3749 var $export = _dereq_(40); |
|
3750 var exp = Math.exp; |
|
3751 |
|
3752 $export($export.S, 'Math', { |
|
3753 cosh: function cosh(x) { |
|
3754 return (exp(x = +x) + exp(-x)) / 2; |
|
3755 } |
|
3756 }); |
|
3757 |
|
3758 },{"40":40}],166:[function(_dereq_,module,exports){ |
|
3759 // 20.2.2.14 Math.expm1(x) |
|
3760 var $export = _dereq_(40); |
|
3761 var $expm1 = _dereq_(66); |
|
3762 |
|
3763 $export($export.S + $export.F * ($expm1 != Math.expm1), 'Math', { expm1: $expm1 }); |
|
3764 |
|
3765 },{"40":40,"66":66}],167:[function(_dereq_,module,exports){ |
|
3766 // 20.2.2.16 Math.fround(x) |
|
3767 var $export = _dereq_(40); |
|
3768 |
|
3769 $export($export.S, 'Math', { fround: _dereq_(67) }); |
|
3770 |
|
3771 },{"40":40,"67":67}],168:[function(_dereq_,module,exports){ |
|
3772 // 20.2.2.17 Math.hypot([value1[, value2[, … ]]]) |
|
3773 var $export = _dereq_(40); |
|
3774 var abs = Math.abs; |
|
3775 |
|
3776 $export($export.S, 'Math', { |
|
3777 hypot: function hypot(value1, value2) { // eslint-disable-line no-unused-vars |
|
3778 var sum = 0; |
|
3779 var i = 0; |
|
3780 var aLen = arguments.length; |
|
3781 var larg = 0; |
|
3782 var arg, div; |
|
3783 while (i < aLen) { |
|
3784 arg = abs(arguments[i++]); |
|
3785 if (larg < arg) { |
|
3786 div = larg / arg; |
|
3787 sum = sum * div * div + 1; |
|
3788 larg = arg; |
|
3789 } else if (arg > 0) { |
|
3790 div = arg / larg; |
|
3791 sum += div * div; |
|
3792 } else sum += arg; |
|
3793 } |
|
3794 return larg === Infinity ? Infinity : larg * Math.sqrt(sum); |
|
3795 } |
|
3796 }); |
|
3797 |
|
3798 },{"40":40}],169:[function(_dereq_,module,exports){ |
|
3799 // 20.2.2.18 Math.imul(x, y) |
|
3800 var $export = _dereq_(40); |
|
3801 var $imul = Math.imul; |
|
3802 |
|
3803 // some WebKit versions fails with big numbers, some has wrong arity |
|
3804 $export($export.S + $export.F * _dereq_(42)(function () { |
|
3805 return $imul(0xffffffff, 5) != -5 || $imul.length != 2; |
|
3806 }), 'Math', { |
|
3807 imul: function imul(x, y) { |
|
3808 var UINT16 = 0xffff; |
|
3809 var xn = +x; |
|
3810 var yn = +y; |
|
3811 var xl = UINT16 & xn; |
|
3812 var yl = UINT16 & yn; |
|
3813 return 0 | xl * yl + ((UINT16 & xn >>> 16) * yl + xl * (UINT16 & yn >>> 16) << 16 >>> 0); |
|
3814 } |
|
3815 }); |
|
3816 |
|
3817 },{"40":40,"42":42}],170:[function(_dereq_,module,exports){ |
|
3818 // 20.2.2.21 Math.log10(x) |
|
3819 var $export = _dereq_(40); |
|
3820 |
|
3821 $export($export.S, 'Math', { |
|
3822 log10: function log10(x) { |
|
3823 return Math.log(x) * Math.LOG10E; |
|
3824 } |
|
3825 }); |
|
3826 |
|
3827 },{"40":40}],171:[function(_dereq_,module,exports){ |
|
3828 // 20.2.2.20 Math.log1p(x) |
|
3829 var $export = _dereq_(40); |
|
3830 |
|
3831 $export($export.S, 'Math', { log1p: _dereq_(68) }); |
|
3832 |
|
3833 },{"40":40,"68":68}],172:[function(_dereq_,module,exports){ |
|
3834 // 20.2.2.22 Math.log2(x) |
|
3835 var $export = _dereq_(40); |
|
3836 |
|
3837 $export($export.S, 'Math', { |
|
3838 log2: function log2(x) { |
|
3839 return Math.log(x) / Math.LN2; |
|
3840 } |
|
3841 }); |
|
3842 |
|
3843 },{"40":40}],173:[function(_dereq_,module,exports){ |
|
3844 // 20.2.2.28 Math.sign(x) |
|
3845 var $export = _dereq_(40); |
|
3846 |
|
3847 $export($export.S, 'Math', { sign: _dereq_(69) }); |
|
3848 |
|
3849 },{"40":40,"69":69}],174:[function(_dereq_,module,exports){ |
|
3850 // 20.2.2.30 Math.sinh(x) |
|
3851 var $export = _dereq_(40); |
|
3852 var expm1 = _dereq_(66); |
|
3853 var exp = Math.exp; |
|
3854 |
|
3855 // V8 near Chromium 38 has a problem with very small numbers |
|
3856 $export($export.S + $export.F * _dereq_(42)(function () { |
|
3857 return !Math.sinh(-2e-17) != -2e-17; |
|
3858 }), 'Math', { |
|
3859 sinh: function sinh(x) { |
|
3860 return Math.abs(x = +x) < 1 |
|
3861 ? (expm1(x) - expm1(-x)) / 2 |
|
3862 : (exp(x - 1) - exp(-x - 1)) * (Math.E / 2); |
|
3863 } |
|
3864 }); |
|
3865 |
|
3866 },{"40":40,"42":42,"66":66}],175:[function(_dereq_,module,exports){ |
|
3867 // 20.2.2.33 Math.tanh(x) |
|
3868 var $export = _dereq_(40); |
|
3869 var expm1 = _dereq_(66); |
|
3870 var exp = Math.exp; |
|
3871 |
|
3872 $export($export.S, 'Math', { |
|
3873 tanh: function tanh(x) { |
|
3874 var a = expm1(x = +x); |
|
3875 var b = expm1(-x); |
|
3876 return a == Infinity ? 1 : b == Infinity ? -1 : (a - b) / (exp(x) + exp(-x)); |
|
3877 } |
|
3878 }); |
|
3879 |
|
3880 },{"40":40,"66":66}],176:[function(_dereq_,module,exports){ |
|
3881 // 20.2.2.34 Math.trunc(x) |
|
3882 var $export = _dereq_(40); |
|
3883 |
|
3884 $export($export.S, 'Math', { |
|
3885 trunc: function trunc(it) { |
|
3886 return (it > 0 ? Math.floor : Math.ceil)(it); |
|
3887 } |
|
3888 }); |
|
3889 |
|
3890 },{"40":40}],177:[function(_dereq_,module,exports){ |
|
3891 'use strict'; |
|
3892 var global = _dereq_(46); |
|
3893 var has = _dereq_(47); |
|
3894 var cof = _dereq_(26); |
|
3895 var inheritIfRequired = _dereq_(51); |
|
3896 var toPrimitive = _dereq_(119); |
|
3897 var fails = _dereq_(42); |
|
3898 var gOPN = _dereq_(79).f; |
|
3899 var gOPD = _dereq_(77).f; |
|
3900 var dP = _dereq_(75).f; |
|
3901 var $trim = _dereq_(110).trim; |
|
3902 var NUMBER = 'Number'; |
|
3903 var $Number = global[NUMBER]; |
|
3904 var Base = $Number; |
|
3905 var proto = $Number.prototype; |
|
3906 // Opera ~12 has broken Object#toString |
|
3907 var BROKEN_COF = cof(_dereq_(74)(proto)) == NUMBER; |
|
3908 var TRIM = 'trim' in String.prototype; |
|
3909 |
|
3910 // 7.1.3 ToNumber(argument) |
|
3911 var toNumber = function (argument) { |
|
3912 var it = toPrimitive(argument, false); |
|
3913 if (typeof it == 'string' && it.length > 2) { |
|
3914 it = TRIM ? it.trim() : $trim(it, 3); |
|
3915 var first = it.charCodeAt(0); |
|
3916 var third, radix, maxCode; |
|
3917 if (first === 43 || first === 45) { |
|
3918 third = it.charCodeAt(2); |
|
3919 if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix |
|
3920 } else if (first === 48) { |
|
3921 switch (it.charCodeAt(1)) { |
|
3922 case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i |
|
3923 case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i |
|
3924 default: return +it; |
|
3925 } |
|
3926 for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) { |
|
3927 code = digits.charCodeAt(i); |
|
3928 // parseInt parses a string to a first unavailable symbol |
|
3929 // but ToNumber should return NaN if a string contains unavailable symbols |
|
3930 if (code < 48 || code > maxCode) return NaN; |
|
3931 } return parseInt(digits, radix); |
|
3932 } |
|
3933 } return +it; |
|
3934 }; |
|
3935 |
|
3936 if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { |
|
3937 $Number = function Number(value) { |
|
3938 var it = arguments.length < 1 ? 0 : value; |
|
3939 var that = this; |
|
3940 return that instanceof $Number |
|
3941 // check on 1..constructor(foo) case |
|
3942 && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER) |
|
3943 ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it); |
|
3944 }; |
|
3945 for (var keys = _dereq_(36) ? gOPN(Base) : ( |
|
3946 // ES3: |
|
3947 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + |
|
3948 // ES6 (in case, if modules with ES6 Number statics required before): |
|
3949 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + |
|
3950 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger' |
|
3951 ).split(','), j = 0, key; keys.length > j; j++) { |
|
3952 if (has(Base, key = keys[j]) && !has($Number, key)) { |
|
3953 dP($Number, key, gOPD(Base, key)); |
|
3954 } |
|
3955 } |
|
3956 $Number.prototype = proto; |
|
3957 proto.constructor = $Number; |
|
3958 _dereq_(94)(global, NUMBER, $Number); |
|
3959 } |
|
3960 |
|
3961 },{"110":110,"119":119,"26":26,"36":36,"42":42,"46":46,"47":47,"51":51,"74":74,"75":75,"77":77,"79":79,"94":94}],178:[function(_dereq_,module,exports){ |
|
3962 // 20.1.2.1 Number.EPSILON |
|
3963 var $export = _dereq_(40); |
|
3964 |
|
3965 $export($export.S, 'Number', { EPSILON: Math.pow(2, -52) }); |
|
3966 |
|
3967 },{"40":40}],179:[function(_dereq_,module,exports){ |
|
3968 // 20.1.2.2 Number.isFinite(number) |
|
3969 var $export = _dereq_(40); |
|
3970 var _isFinite = _dereq_(46).isFinite; |
|
3971 |
|
3972 $export($export.S, 'Number', { |
|
3973 isFinite: function isFinite(it) { |
|
3974 return typeof it == 'number' && _isFinite(it); |
|
3975 } |
|
3976 }); |
|
3977 |
|
3978 },{"40":40,"46":46}],180:[function(_dereq_,module,exports){ |
|
3979 // 20.1.2.3 Number.isInteger(number) |
|
3980 var $export = _dereq_(40); |
|
3981 |
|
3982 $export($export.S, 'Number', { isInteger: _dereq_(56) }); |
|
3983 |
|
3984 },{"40":40,"56":56}],181:[function(_dereq_,module,exports){ |
|
3985 // 20.1.2.4 Number.isNaN(number) |
|
3986 var $export = _dereq_(40); |
|
3987 |
|
3988 $export($export.S, 'Number', { |
|
3989 isNaN: function isNaN(number) { |
|
3990 // eslint-disable-next-line no-self-compare |
|
3991 return number != number; |
|
3992 } |
|
3993 }); |
|
3994 |
|
3995 },{"40":40}],182:[function(_dereq_,module,exports){ |
|
3996 // 20.1.2.5 Number.isSafeInteger(number) |
|
3997 var $export = _dereq_(40); |
|
3998 var isInteger = _dereq_(56); |
|
3999 var abs = Math.abs; |
|
4000 |
|
4001 $export($export.S, 'Number', { |
|
4002 isSafeInteger: function isSafeInteger(number) { |
|
4003 return isInteger(number) && abs(number) <= 0x1fffffffffffff; |
|
4004 } |
|
4005 }); |
|
4006 |
|
4007 },{"40":40,"56":56}],183:[function(_dereq_,module,exports){ |
|
4008 // 20.1.2.6 Number.MAX_SAFE_INTEGER |
|
4009 var $export = _dereq_(40); |
|
4010 |
|
4011 $export($export.S, 'Number', { MAX_SAFE_INTEGER: 0x1fffffffffffff }); |
|
4012 |
|
4013 },{"40":40}],184:[function(_dereq_,module,exports){ |
|
4014 // 20.1.2.10 Number.MIN_SAFE_INTEGER |
|
4015 var $export = _dereq_(40); |
|
4016 |
|
4017 $export($export.S, 'Number', { MIN_SAFE_INTEGER: -0x1fffffffffffff }); |
|
4018 |
|
4019 },{"40":40}],185:[function(_dereq_,module,exports){ |
|
4020 var $export = _dereq_(40); |
|
4021 var $parseFloat = _dereq_(88); |
|
4022 // 20.1.2.12 Number.parseFloat(string) |
|
4023 $export($export.S + $export.F * (Number.parseFloat != $parseFloat), 'Number', { parseFloat: $parseFloat }); |
|
4024 |
|
4025 },{"40":40,"88":88}],186:[function(_dereq_,module,exports){ |
|
4026 var $export = _dereq_(40); |
|
4027 var $parseInt = _dereq_(89); |
|
4028 // 20.1.2.13 Number.parseInt(string, radix) |
|
4029 $export($export.S + $export.F * (Number.parseInt != $parseInt), 'Number', { parseInt: $parseInt }); |
|
4030 |
|
4031 },{"40":40,"89":89}],187:[function(_dereq_,module,exports){ |
|
4032 'use strict'; |
|
4033 var $export = _dereq_(40); |
|
4034 var toInteger = _dereq_(115); |
|
4035 var aNumberValue = _dereq_(12); |
|
4036 var repeat = _dereq_(109); |
|
4037 var $toFixed = 1.0.toFixed; |
|
4038 var floor = Math.floor; |
|
4039 var data = [0, 0, 0, 0, 0, 0]; |
|
4040 var ERROR = 'Number.toFixed: incorrect invocation!'; |
|
4041 var ZERO = '0'; |
|
4042 |
|
4043 var multiply = function (n, c) { |
|
4044 var i = -1; |
|
4045 var c2 = c; |
|
4046 while (++i < 6) { |
|
4047 c2 += n * data[i]; |
|
4048 data[i] = c2 % 1e7; |
|
4049 c2 = floor(c2 / 1e7); |
|
4050 } |
|
4051 }; |
|
4052 var divide = function (n) { |
|
4053 var i = 6; |
|
4054 var c = 0; |
|
4055 while (--i >= 0) { |
|
4056 c += data[i]; |
|
4057 data[i] = floor(c / n); |
|
4058 c = (c % n) * 1e7; |
|
4059 } |
|
4060 }; |
|
4061 var numToString = function () { |
|
4062 var i = 6; |
|
4063 var s = ''; |
|
4064 while (--i >= 0) { |
|
4065 if (s !== '' || i === 0 || data[i] !== 0) { |
|
4066 var t = String(data[i]); |
|
4067 s = s === '' ? t : s + repeat.call(ZERO, 7 - t.length) + t; |
|
4068 } |
|
4069 } return s; |
|
4070 }; |
|
4071 var pow = function (x, n, acc) { |
|
4072 return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc); |
|
4073 }; |
|
4074 var log = function (x) { |
|
4075 var n = 0; |
|
4076 var x2 = x; |
|
4077 while (x2 >= 4096) { |
|
4078 n += 12; |
|
4079 x2 /= 4096; |
|
4080 } |
|
4081 while (x2 >= 2) { |
|
4082 n += 1; |
|
4083 x2 /= 2; |
|
4084 } return n; |
|
4085 }; |
|
4086 |
|
4087 $export($export.P + $export.F * (!!$toFixed && ( |
|
4088 0.00008.toFixed(3) !== '0.000' || |
|
4089 0.9.toFixed(0) !== '1' || |
|
4090 1.255.toFixed(2) !== '1.25' || |
|
4091 1000000000000000128.0.toFixed(0) !== '1000000000000000128' |
|
4092 ) || !_dereq_(42)(function () { |
|
4093 // V8 ~ Android 4.3- |
|
4094 $toFixed.call({}); |
|
4095 })), 'Number', { |
|
4096 toFixed: function toFixed(fractionDigits) { |
|
4097 var x = aNumberValue(this, ERROR); |
|
4098 var f = toInteger(fractionDigits); |
|
4099 var s = ''; |
|
4100 var m = ZERO; |
|
4101 var e, z, j, k; |
|
4102 if (f < 0 || f > 20) throw RangeError(ERROR); |
|
4103 // eslint-disable-next-line no-self-compare |
|
4104 if (x != x) return 'NaN'; |
|
4105 if (x <= -1e21 || x >= 1e21) return String(x); |
|
4106 if (x < 0) { |
|
4107 s = '-'; |
|
4108 x = -x; |
|
4109 } |
|
4110 if (x > 1e-21) { |
|
4111 e = log(x * pow(2, 69, 1)) - 69; |
|
4112 z = e < 0 ? x * pow(2, -e, 1) : x / pow(2, e, 1); |
|
4113 z *= 0x10000000000000; |
|
4114 e = 52 - e; |
|
4115 if (e > 0) { |
|
4116 multiply(0, z); |
|
4117 j = f; |
|
4118 while (j >= 7) { |
|
4119 multiply(1e7, 0); |
|
4120 j -= 7; |
|
4121 } |
|
4122 multiply(pow(10, j, 1), 0); |
|
4123 j = e - 1; |
|
4124 while (j >= 23) { |
|
4125 divide(1 << 23); |
|
4126 j -= 23; |
|
4127 } |
|
4128 divide(1 << j); |
|
4129 multiply(1, 1); |
|
4130 divide(2); |
|
4131 m = numToString(); |
|
4132 } else { |
|
4133 multiply(0, z); |
|
4134 multiply(1 << -e, 0); |
|
4135 m = numToString() + repeat.call(ZERO, f); |
|
4136 } |
|
4137 } |
|
4138 if (f > 0) { |
|
4139 k = m.length; |
|
4140 m = s + (k <= f ? '0.' + repeat.call(ZERO, f - k) + m : m.slice(0, k - f) + '.' + m.slice(k - f)); |
|
4141 } else { |
|
4142 m = s + m; |
|
4143 } return m; |
|
4144 } |
|
4145 }); |
|
4146 |
|
4147 },{"109":109,"115":115,"12":12,"40":40,"42":42}],188:[function(_dereq_,module,exports){ |
|
4148 'use strict'; |
|
4149 var $export = _dereq_(40); |
|
4150 var $fails = _dereq_(42); |
|
4151 var aNumberValue = _dereq_(12); |
|
4152 var $toPrecision = 1.0.toPrecision; |
|
4153 |
|
4154 $export($export.P + $export.F * ($fails(function () { |
|
4155 // IE7- |
|
4156 return $toPrecision.call(1, undefined) !== '1'; |
|
4157 }) || !$fails(function () { |
|
4158 // V8 ~ Android 4.3- |
|
4159 $toPrecision.call({}); |
|
4160 })), 'Number', { |
|
4161 toPrecision: function toPrecision(precision) { |
|
4162 var that = aNumberValue(this, 'Number#toPrecision: incorrect invocation!'); |
|
4163 return precision === undefined ? $toPrecision.call(that) : $toPrecision.call(that, precision); |
|
4164 } |
|
4165 }); |
|
4166 |
|
4167 },{"12":12,"40":40,"42":42}],189:[function(_dereq_,module,exports){ |
|
4168 // 19.1.3.1 Object.assign(target, source) |
|
4169 var $export = _dereq_(40); |
|
4170 |
|
4171 $export($export.S + $export.F, 'Object', { assign: _dereq_(73) }); |
|
4172 |
|
4173 },{"40":40,"73":73}],190:[function(_dereq_,module,exports){ |
|
4174 var $export = _dereq_(40); |
|
4175 // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) |
|
4176 $export($export.S, 'Object', { create: _dereq_(74) }); |
|
4177 |
|
4178 },{"40":40,"74":74}],191:[function(_dereq_,module,exports){ |
|
4179 var $export = _dereq_(40); |
|
4180 // 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties) |
|
4181 $export($export.S + $export.F * !_dereq_(36), 'Object', { defineProperties: _dereq_(76) }); |
|
4182 |
|
4183 },{"36":36,"40":40,"76":76}],192:[function(_dereq_,module,exports){ |
|
4184 var $export = _dereq_(40); |
|
4185 // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) |
|
4186 $export($export.S + $export.F * !_dereq_(36), 'Object', { defineProperty: _dereq_(75).f }); |
|
4187 |
|
4188 },{"36":36,"40":40,"75":75}],193:[function(_dereq_,module,exports){ |
|
4189 // 19.1.2.5 Object.freeze(O) |
|
4190 var isObject = _dereq_(57); |
|
4191 var meta = _dereq_(70).onFreeze; |
|
4192 |
|
4193 _dereq_(85)('freeze', function ($freeze) { |
|
4194 return function freeze(it) { |
|
4195 return $freeze && isObject(it) ? $freeze(meta(it)) : it; |
|
4196 }; |
|
4197 }); |
|
4198 |
|
4199 },{"57":57,"70":70,"85":85}],194:[function(_dereq_,module,exports){ |
|
4200 // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) |
|
4201 var toIObject = _dereq_(116); |
|
4202 var $getOwnPropertyDescriptor = _dereq_(77).f; |
|
4203 |
|
4204 _dereq_(85)('getOwnPropertyDescriptor', function () { |
|
4205 return function getOwnPropertyDescriptor(it, key) { |
|
4206 return $getOwnPropertyDescriptor(toIObject(it), key); |
|
4207 }; |
|
4208 }); |
|
4209 |
|
4210 },{"116":116,"77":77,"85":85}],195:[function(_dereq_,module,exports){ |
|
4211 // 19.1.2.7 Object.getOwnPropertyNames(O) |
|
4212 _dereq_(85)('getOwnPropertyNames', function () { |
|
4213 return _dereq_(78).f; |
|
4214 }); |
|
4215 |
|
4216 },{"78":78,"85":85}],196:[function(_dereq_,module,exports){ |
|
4217 // 19.1.2.9 Object.getPrototypeOf(O) |
|
4218 var toObject = _dereq_(118); |
|
4219 var $getPrototypeOf = _dereq_(81); |
|
4220 |
|
4221 _dereq_(85)('getPrototypeOf', function () { |
|
4222 return function getPrototypeOf(it) { |
|
4223 return $getPrototypeOf(toObject(it)); |
|
4224 }; |
|
4225 }); |
|
4226 |
|
4227 },{"118":118,"81":81,"85":85}],197:[function(_dereq_,module,exports){ |
|
4228 // 19.1.2.11 Object.isExtensible(O) |
|
4229 var isObject = _dereq_(57); |
|
4230 |
|
4231 _dereq_(85)('isExtensible', function ($isExtensible) { |
|
4232 return function isExtensible(it) { |
|
4233 return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false; |
|
4234 }; |
|
4235 }); |
|
4236 |
|
4237 },{"57":57,"85":85}],198:[function(_dereq_,module,exports){ |
|
4238 // 19.1.2.12 Object.isFrozen(O) |
|
4239 var isObject = _dereq_(57); |
|
4240 |
|
4241 _dereq_(85)('isFrozen', function ($isFrozen) { |
|
4242 return function isFrozen(it) { |
|
4243 return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true; |
|
4244 }; |
|
4245 }); |
|
4246 |
|
4247 },{"57":57,"85":85}],199:[function(_dereq_,module,exports){ |
|
4248 // 19.1.2.13 Object.isSealed(O) |
|
4249 var isObject = _dereq_(57); |
|
4250 |
|
4251 _dereq_(85)('isSealed', function ($isSealed) { |
|
4252 return function isSealed(it) { |
|
4253 return isObject(it) ? $isSealed ? $isSealed(it) : false : true; |
|
4254 }; |
|
4255 }); |
|
4256 |
|
4257 },{"57":57,"85":85}],200:[function(_dereq_,module,exports){ |
|
4258 // 19.1.3.10 Object.is(value1, value2) |
|
4259 var $export = _dereq_(40); |
|
4260 $export($export.S, 'Object', { is: _dereq_(97) }); |
|
4261 |
|
4262 },{"40":40,"97":97}],201:[function(_dereq_,module,exports){ |
|
4263 // 19.1.2.14 Object.keys(O) |
|
4264 var toObject = _dereq_(118); |
|
4265 var $keys = _dereq_(83); |
|
4266 |
|
4267 _dereq_(85)('keys', function () { |
|
4268 return function keys(it) { |
|
4269 return $keys(toObject(it)); |
|
4270 }; |
|
4271 }); |
|
4272 |
|
4273 },{"118":118,"83":83,"85":85}],202:[function(_dereq_,module,exports){ |
|
4274 // 19.1.2.15 Object.preventExtensions(O) |
|
4275 var isObject = _dereq_(57); |
|
4276 var meta = _dereq_(70).onFreeze; |
|
4277 |
|
4278 _dereq_(85)('preventExtensions', function ($preventExtensions) { |
|
4279 return function preventExtensions(it) { |
|
4280 return $preventExtensions && isObject(it) ? $preventExtensions(meta(it)) : it; |
|
4281 }; |
|
4282 }); |
|
4283 |
|
4284 },{"57":57,"70":70,"85":85}],203:[function(_dereq_,module,exports){ |
|
4285 // 19.1.2.17 Object.seal(O) |
|
4286 var isObject = _dereq_(57); |
|
4287 var meta = _dereq_(70).onFreeze; |
|
4288 |
|
4289 _dereq_(85)('seal', function ($seal) { |
|
4290 return function seal(it) { |
|
4291 return $seal && isObject(it) ? $seal(meta(it)) : it; |
|
4292 }; |
|
4293 }); |
|
4294 |
|
4295 },{"57":57,"70":70,"85":85}],204:[function(_dereq_,module,exports){ |
|
4296 // 19.1.3.19 Object.setPrototypeOf(O, proto) |
|
4297 var $export = _dereq_(40); |
|
4298 $export($export.S, 'Object', { setPrototypeOf: _dereq_(98).set }); |
|
4299 |
|
4300 },{"40":40,"98":98}],205:[function(_dereq_,module,exports){ |
|
4301 'use strict'; |
|
4302 // 19.1.3.6 Object.prototype.toString() |
|
4303 var classof = _dereq_(25); |
|
4304 var test = {}; |
|
4305 test[_dereq_(128)('toStringTag')] = 'z'; |
|
4306 if (test + '' != '[object z]') { |
|
4307 _dereq_(94)(Object.prototype, 'toString', function toString() { |
|
4308 return '[object ' + classof(this) + ']'; |
|
4309 }, true); |
|
4310 } |
|
4311 |
|
4312 },{"128":128,"25":25,"94":94}],206:[function(_dereq_,module,exports){ |
|
4313 var $export = _dereq_(40); |
|
4314 var $parseFloat = _dereq_(88); |
|
4315 // 18.2.4 parseFloat(string) |
|
4316 $export($export.G + $export.F * (parseFloat != $parseFloat), { parseFloat: $parseFloat }); |
|
4317 |
|
4318 },{"40":40,"88":88}],207:[function(_dereq_,module,exports){ |
|
4319 var $export = _dereq_(40); |
|
4320 var $parseInt = _dereq_(89); |
|
4321 // 18.2.5 parseInt(string, radix) |
|
4322 $export($export.G + $export.F * (parseInt != $parseInt), { parseInt: $parseInt }); |
|
4323 |
|
4324 },{"40":40,"89":89}],208:[function(_dereq_,module,exports){ |
|
4325 'use strict'; |
|
4326 var LIBRARY = _dereq_(65); |
|
4327 var global = _dereq_(46); |
|
4328 var ctx = _dereq_(32); |
|
4329 var classof = _dereq_(25); |
|
4330 var $export = _dereq_(40); |
|
4331 var isObject = _dereq_(57); |
|
4332 var aFunction = _dereq_(11); |
|
4333 var anInstance = _dereq_(15); |
|
4334 var forOf = _dereq_(45); |
|
4335 var speciesConstructor = _dereq_(103); |
|
4336 var task = _dereq_(112).set; |
|
4337 var microtask = _dereq_(71)(); |
|
4338 var newPromiseCapabilityModule = _dereq_(72); |
|
4339 var perform = _dereq_(90); |
|
4340 var userAgent = _dereq_(124); |
|
4341 var promiseResolve = _dereq_(91); |
|
4342 var PROMISE = 'Promise'; |
|
4343 var TypeError = global.TypeError; |
|
4344 var process = global.process; |
|
4345 var versions = process && process.versions; |
|
4346 var v8 = versions && versions.v8 || ''; |
|
4347 var $Promise = global[PROMISE]; |
|
4348 var isNode = classof(process) == 'process'; |
|
4349 var empty = function () { /* empty */ }; |
|
4350 var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper; |
|
4351 var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f; |
|
4352 |
|
4353 var USE_NATIVE = !!function () { |
|
4354 try { |
|
4355 // correct subclassing with @@species support |
|
4356 var promise = $Promise.resolve(1); |
|
4357 var FakePromise = (promise.constructor = {})[_dereq_(128)('species')] = function (exec) { |
|
4358 exec(empty, empty); |
|
4359 }; |
|
4360 // unhandled rejections tracking support, NodeJS Promise without it fails @@species test |
|
4361 return (isNode || typeof PromiseRejectionEvent == 'function') |
|
4362 && promise.then(empty) instanceof FakePromise |
|
4363 // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables |
|
4364 // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 |
|
4365 // we can't detect it synchronously, so just check versions |
|
4366 && v8.indexOf('6.6') !== 0 |
|
4367 && userAgent.indexOf('Chrome/66') === -1; |
|
4368 } catch (e) { /* empty */ } |
|
4369 }(); |
|
4370 |
|
4371 // helpers |
|
4372 var isThenable = function (it) { |
|
4373 var then; |
|
4374 return isObject(it) && typeof (then = it.then) == 'function' ? then : false; |
|
4375 }; |
|
4376 var notify = function (promise, isReject) { |
|
4377 if (promise._n) return; |
|
4378 promise._n = true; |
|
4379 var chain = promise._c; |
|
4380 microtask(function () { |
|
4381 var value = promise._v; |
|
4382 var ok = promise._s == 1; |
|
4383 var i = 0; |
|
4384 var run = function (reaction) { |
|
4385 var handler = ok ? reaction.ok : reaction.fail; |
|
4386 var resolve = reaction.resolve; |
|
4387 var reject = reaction.reject; |
|
4388 var domain = reaction.domain; |
|
4389 var result, then, exited; |
|
4390 try { |
|
4391 if (handler) { |
|
4392 if (!ok) { |
|
4393 if (promise._h == 2) onHandleUnhandled(promise); |
|
4394 promise._h = 1; |
|
4395 } |
|
4396 if (handler === true) result = value; |
|
4397 else { |
|
4398 if (domain) domain.enter(); |
|
4399 result = handler(value); // may throw |
|
4400 if (domain) { |
|
4401 domain.exit(); |
|
4402 exited = true; |
|
4403 } |
|
4404 } |
|
4405 if (result === reaction.promise) { |
|
4406 reject(TypeError('Promise-chain cycle')); |
|
4407 } else if (then = isThenable(result)) { |
|
4408 then.call(result, resolve, reject); |
|
4409 } else resolve(result); |
|
4410 } else reject(value); |
|
4411 } catch (e) { |
|
4412 if (domain && !exited) domain.exit(); |
|
4413 reject(e); |
|
4414 } |
|
4415 }; |
|
4416 while (chain.length > i) run(chain[i++]); // variable length - can't use forEach |
|
4417 promise._c = []; |
|
4418 promise._n = false; |
|
4419 if (isReject && !promise._h) onUnhandled(promise); |
|
4420 }); |
|
4421 }; |
|
4422 var onUnhandled = function (promise) { |
|
4423 task.call(global, function () { |
|
4424 var value = promise._v; |
|
4425 var unhandled = isUnhandled(promise); |
|
4426 var result, handler, console; |
|
4427 if (unhandled) { |
|
4428 result = perform(function () { |
|
4429 if (isNode) { |
|
4430 process.emit('unhandledRejection', value, promise); |
|
4431 } else if (handler = global.onunhandledrejection) { |
|
4432 handler({ promise: promise, reason: value }); |
|
4433 } else if ((console = global.console) && console.error) { |
|
4434 console.error('Unhandled promise rejection', value); |
|
4435 } |
|
4436 }); |
|
4437 // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should |
|
4438 promise._h = isNode || isUnhandled(promise) ? 2 : 1; |
|
4439 } promise._a = undefined; |
|
4440 if (unhandled && result.e) throw result.v; |
|
4441 }); |
|
4442 }; |
|
4443 var isUnhandled = function (promise) { |
|
4444 return promise._h !== 1 && (promise._a || promise._c).length === 0; |
|
4445 }; |
|
4446 var onHandleUnhandled = function (promise) { |
|
4447 task.call(global, function () { |
|
4448 var handler; |
|
4449 if (isNode) { |
|
4450 process.emit('rejectionHandled', promise); |
|
4451 } else if (handler = global.onrejectionhandled) { |
|
4452 handler({ promise: promise, reason: promise._v }); |
|
4453 } |
|
4454 }); |
|
4455 }; |
|
4456 var $reject = function (value) { |
|
4457 var promise = this; |
|
4458 if (promise._d) return; |
|
4459 promise._d = true; |
|
4460 promise = promise._w || promise; // unwrap |
|
4461 promise._v = value; |
|
4462 promise._s = 2; |
|
4463 if (!promise._a) promise._a = promise._c.slice(); |
|
4464 notify(promise, true); |
|
4465 }; |
|
4466 var $resolve = function (value) { |
|
4467 var promise = this; |
|
4468 var then; |
|
4469 if (promise._d) return; |
|
4470 promise._d = true; |
|
4471 promise = promise._w || promise; // unwrap |
|
4472 try { |
|
4473 if (promise === value) throw TypeError("Promise can't be resolved itself"); |
|
4474 if (then = isThenable(value)) { |
|
4475 microtask(function () { |
|
4476 var wrapper = { _w: promise, _d: false }; // wrap |
|
4477 try { |
|
4478 then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1)); |
|
4479 } catch (e) { |
|
4480 $reject.call(wrapper, e); |
|
4481 } |
|
4482 }); |
|
4483 } else { |
|
4484 promise._v = value; |
|
4485 promise._s = 1; |
|
4486 notify(promise, false); |
|
4487 } |
|
4488 } catch (e) { |
|
4489 $reject.call({ _w: promise, _d: false }, e); // wrap |
|
4490 } |
|
4491 }; |
|
4492 |
|
4493 // constructor polyfill |
|
4494 if (!USE_NATIVE) { |
|
4495 // 25.4.3.1 Promise(executor) |
|
4496 $Promise = function Promise(executor) { |
|
4497 anInstance(this, $Promise, PROMISE, '_h'); |
|
4498 aFunction(executor); |
|
4499 Internal.call(this); |
|
4500 try { |
|
4501 executor(ctx($resolve, this, 1), ctx($reject, this, 1)); |
|
4502 } catch (err) { |
|
4503 $reject.call(this, err); |
|
4504 } |
|
4505 }; |
|
4506 // eslint-disable-next-line no-unused-vars |
|
4507 Internal = function Promise(executor) { |
|
4508 this._c = []; // <- awaiting reactions |
|
4509 this._a = undefined; // <- checked in isUnhandled reactions |
|
4510 this._s = 0; // <- state |
|
4511 this._d = false; // <- done |
|
4512 this._v = undefined; // <- value |
|
4513 this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled |
|
4514 this._n = false; // <- notify |
|
4515 }; |
|
4516 Internal.prototype = _dereq_(93)($Promise.prototype, { |
|
4517 // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) |
|
4518 then: function then(onFulfilled, onRejected) { |
|
4519 var reaction = newPromiseCapability(speciesConstructor(this, $Promise)); |
|
4520 reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true; |
|
4521 reaction.fail = typeof onRejected == 'function' && onRejected; |
|
4522 reaction.domain = isNode ? process.domain : undefined; |
|
4523 this._c.push(reaction); |
|
4524 if (this._a) this._a.push(reaction); |
|
4525 if (this._s) notify(this, false); |
|
4526 return reaction.promise; |
|
4527 }, |
|
4528 // 25.4.5.1 Promise.prototype.catch(onRejected) |
|
4529 'catch': function (onRejected) { |
|
4530 return this.then(undefined, onRejected); |
|
4531 } |
|
4532 }); |
|
4533 OwnPromiseCapability = function () { |
|
4534 var promise = new Internal(); |
|
4535 this.promise = promise; |
|
4536 this.resolve = ctx($resolve, promise, 1); |
|
4537 this.reject = ctx($reject, promise, 1); |
|
4538 }; |
|
4539 newPromiseCapabilityModule.f = newPromiseCapability = function (C) { |
|
4540 return C === $Promise || C === Wrapper |
|
4541 ? new OwnPromiseCapability(C) |
|
4542 : newGenericPromiseCapability(C); |
|
4543 }; |
|
4544 } |
|
4545 |
|
4546 $export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise }); |
|
4547 _dereq_(100)($Promise, PROMISE); |
|
4548 _dereq_(99)(PROMISE); |
|
4549 Wrapper = _dereq_(30)[PROMISE]; |
|
4550 |
|
4551 // statics |
|
4552 $export($export.S + $export.F * !USE_NATIVE, PROMISE, { |
|
4553 // 25.4.4.5 Promise.reject(r) |
|
4554 reject: function reject(r) { |
|
4555 var capability = newPromiseCapability(this); |
|
4556 var $$reject = capability.reject; |
|
4557 $$reject(r); |
|
4558 return capability.promise; |
|
4559 } |
|
4560 }); |
|
4561 $export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, { |
|
4562 // 25.4.4.6 Promise.resolve(x) |
|
4563 resolve: function resolve(x) { |
|
4564 return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x); |
|
4565 } |
|
4566 }); |
|
4567 $export($export.S + $export.F * !(USE_NATIVE && _dereq_(62)(function (iter) { |
|
4568 $Promise.all(iter)['catch'](empty); |
|
4569 })), PROMISE, { |
|
4570 // 25.4.4.1 Promise.all(iterable) |
|
4571 all: function all(iterable) { |
|
4572 var C = this; |
|
4573 var capability = newPromiseCapability(C); |
|
4574 var resolve = capability.resolve; |
|
4575 var reject = capability.reject; |
|
4576 var result = perform(function () { |
|
4577 var values = []; |
|
4578 var index = 0; |
|
4579 var remaining = 1; |
|
4580 forOf(iterable, false, function (promise) { |
|
4581 var $index = index++; |
|
4582 var alreadyCalled = false; |
|
4583 values.push(undefined); |
|
4584 remaining++; |
|
4585 C.resolve(promise).then(function (value) { |
|
4586 if (alreadyCalled) return; |
|
4587 alreadyCalled = true; |
|
4588 values[$index] = value; |
|
4589 --remaining || resolve(values); |
|
4590 }, reject); |
|
4591 }); |
|
4592 --remaining || resolve(values); |
|
4593 }); |
|
4594 if (result.e) reject(result.v); |
|
4595 return capability.promise; |
|
4596 }, |
|
4597 // 25.4.4.4 Promise.race(iterable) |
|
4598 race: function race(iterable) { |
|
4599 var C = this; |
|
4600 var capability = newPromiseCapability(C); |
|
4601 var reject = capability.reject; |
|
4602 var result = perform(function () { |
|
4603 forOf(iterable, false, function (promise) { |
|
4604 C.resolve(promise).then(capability.resolve, reject); |
|
4605 }); |
|
4606 }); |
|
4607 if (result.e) reject(result.v); |
|
4608 return capability.promise; |
|
4609 } |
|
4610 }); |
|
4611 |
|
4612 },{"100":100,"103":103,"11":11,"112":112,"124":124,"128":128,"15":15,"25":25,"30":30,"32":32,"40":40,"45":45,"46":46,"57":57,"62":62,"65":65,"71":71,"72":72,"90":90,"91":91,"93":93,"99":99}],209:[function(_dereq_,module,exports){ |
|
4613 // 26.1.1 Reflect.apply(target, thisArgument, argumentsList) |
|
4614 var $export = _dereq_(40); |
|
4615 var aFunction = _dereq_(11); |
|
4616 var anObject = _dereq_(16); |
|
4617 var rApply = (_dereq_(46).Reflect || {}).apply; |
|
4618 var fApply = Function.apply; |
|
4619 // MS Edge argumentsList argument is optional |
|
4620 $export($export.S + $export.F * !_dereq_(42)(function () { |
|
4621 rApply(function () { /* empty */ }); |
|
4622 }), 'Reflect', { |
|
4623 apply: function apply(target, thisArgument, argumentsList) { |
|
4624 var T = aFunction(target); |
|
4625 var L = anObject(argumentsList); |
|
4626 return rApply ? rApply(T, thisArgument, L) : fApply.call(T, thisArgument, L); |
|
4627 } |
|
4628 }); |
|
4629 |
|
4630 },{"11":11,"16":16,"40":40,"42":42,"46":46}],210:[function(_dereq_,module,exports){ |
|
4631 // 26.1.2 Reflect.construct(target, argumentsList [, newTarget]) |
|
4632 var $export = _dereq_(40); |
|
4633 var create = _dereq_(74); |
|
4634 var aFunction = _dereq_(11); |
|
4635 var anObject = _dereq_(16); |
|
4636 var isObject = _dereq_(57); |
|
4637 var fails = _dereq_(42); |
|
4638 var bind = _dereq_(24); |
|
4639 var rConstruct = (_dereq_(46).Reflect || {}).construct; |
|
4640 |
|
4641 // MS Edge supports only 2 arguments and argumentsList argument is optional |
|
4642 // FF Nightly sets third argument as `new.target`, but does not create `this` from it |
|
4643 var NEW_TARGET_BUG = fails(function () { |
|
4644 function F() { /* empty */ } |
|
4645 return !(rConstruct(function () { /* empty */ }, [], F) instanceof F); |
|
4646 }); |
|
4647 var ARGS_BUG = !fails(function () { |
|
4648 rConstruct(function () { /* empty */ }); |
|
4649 }); |
|
4650 |
|
4651 $export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', { |
|
4652 construct: function construct(Target, args /* , newTarget */) { |
|
4653 aFunction(Target); |
|
4654 anObject(args); |
|
4655 var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]); |
|
4656 if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget); |
|
4657 if (Target == newTarget) { |
|
4658 // w/o altered newTarget, optimization for 0-4 arguments |
|
4659 switch (args.length) { |
|
4660 case 0: return new Target(); |
|
4661 case 1: return new Target(args[0]); |
|
4662 case 2: return new Target(args[0], args[1]); |
|
4663 case 3: return new Target(args[0], args[1], args[2]); |
|
4664 case 4: return new Target(args[0], args[1], args[2], args[3]); |
|
4665 } |
|
4666 // w/o altered newTarget, lot of arguments case |
|
4667 var $args = [null]; |
|
4668 $args.push.apply($args, args); |
|
4669 return new (bind.apply(Target, $args))(); |
|
4670 } |
|
4671 // with altered newTarget, not support built-in constructors |
|
4672 var proto = newTarget.prototype; |
|
4673 var instance = create(isObject(proto) ? proto : Object.prototype); |
|
4674 var result = Function.apply.call(Target, instance, args); |
|
4675 return isObject(result) ? result : instance; |
|
4676 } |
|
4677 }); |
|
4678 |
|
4679 },{"11":11,"16":16,"24":24,"40":40,"42":42,"46":46,"57":57,"74":74}],211:[function(_dereq_,module,exports){ |
|
4680 // 26.1.3 Reflect.defineProperty(target, propertyKey, attributes) |
|
4681 var dP = _dereq_(75); |
|
4682 var $export = _dereq_(40); |
|
4683 var anObject = _dereq_(16); |
|
4684 var toPrimitive = _dereq_(119); |
|
4685 |
|
4686 // MS Edge has broken Reflect.defineProperty - throwing instead of returning false |
|
4687 $export($export.S + $export.F * _dereq_(42)(function () { |
|
4688 // eslint-disable-next-line no-undef |
|
4689 Reflect.defineProperty(dP.f({}, 1, { value: 1 }), 1, { value: 2 }); |
|
4690 }), 'Reflect', { |
|
4691 defineProperty: function defineProperty(target, propertyKey, attributes) { |
|
4692 anObject(target); |
|
4693 propertyKey = toPrimitive(propertyKey, true); |
|
4694 anObject(attributes); |
|
4695 try { |
|
4696 dP.f(target, propertyKey, attributes); |
|
4697 return true; |
|
4698 } catch (e) { |
|
4699 return false; |
|
4700 } |
|
4701 } |
|
4702 }); |
|
4703 |
|
4704 },{"119":119,"16":16,"40":40,"42":42,"75":75}],212:[function(_dereq_,module,exports){ |
|
4705 // 26.1.4 Reflect.deleteProperty(target, propertyKey) |
|
4706 var $export = _dereq_(40); |
|
4707 var gOPD = _dereq_(77).f; |
|
4708 var anObject = _dereq_(16); |
|
4709 |
|
4710 $export($export.S, 'Reflect', { |
|
4711 deleteProperty: function deleteProperty(target, propertyKey) { |
|
4712 var desc = gOPD(anObject(target), propertyKey); |
|
4713 return desc && !desc.configurable ? false : delete target[propertyKey]; |
|
4714 } |
|
4715 }); |
|
4716 |
|
4717 },{"16":16,"40":40,"77":77}],213:[function(_dereq_,module,exports){ |
|
4718 'use strict'; |
|
4719 // 26.1.5 Reflect.enumerate(target) |
|
4720 var $export = _dereq_(40); |
|
4721 var anObject = _dereq_(16); |
|
4722 var Enumerate = function (iterated) { |
|
4723 this._t = anObject(iterated); // target |
|
4724 this._i = 0; // next index |
|
4725 var keys = this._k = []; // keys |
|
4726 var key; |
|
4727 for (key in iterated) keys.push(key); |
|
4728 }; |
|
4729 _dereq_(60)(Enumerate, 'Object', function () { |
|
4730 var that = this; |
|
4731 var keys = that._k; |
|
4732 var key; |
|
4733 do { |
|
4734 if (that._i >= keys.length) return { value: undefined, done: true }; |
|
4735 } while (!((key = keys[that._i++]) in that._t)); |
|
4736 return { value: key, done: false }; |
|
4737 }); |
|
4738 |
|
4739 $export($export.S, 'Reflect', { |
|
4740 enumerate: function enumerate(target) { |
|
4741 return new Enumerate(target); |
|
4742 } |
|
4743 }); |
|
4744 |
|
4745 },{"16":16,"40":40,"60":60}],214:[function(_dereq_,module,exports){ |
|
4746 // 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey) |
|
4747 var gOPD = _dereq_(77); |
|
4748 var $export = _dereq_(40); |
|
4749 var anObject = _dereq_(16); |
|
4750 |
|
4751 $export($export.S, 'Reflect', { |
|
4752 getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) { |
|
4753 return gOPD.f(anObject(target), propertyKey); |
|
4754 } |
|
4755 }); |
|
4756 |
|
4757 },{"16":16,"40":40,"77":77}],215:[function(_dereq_,module,exports){ |
|
4758 // 26.1.8 Reflect.getPrototypeOf(target) |
|
4759 var $export = _dereq_(40); |
|
4760 var getProto = _dereq_(81); |
|
4761 var anObject = _dereq_(16); |
|
4762 |
|
4763 $export($export.S, 'Reflect', { |
|
4764 getPrototypeOf: function getPrototypeOf(target) { |
|
4765 return getProto(anObject(target)); |
|
4766 } |
|
4767 }); |
|
4768 |
|
4769 },{"16":16,"40":40,"81":81}],216:[function(_dereq_,module,exports){ |
|
4770 // 26.1.6 Reflect.get(target, propertyKey [, receiver]) |
|
4771 var gOPD = _dereq_(77); |
|
4772 var getPrototypeOf = _dereq_(81); |
|
4773 var has = _dereq_(47); |
|
4774 var $export = _dereq_(40); |
|
4775 var isObject = _dereq_(57); |
|
4776 var anObject = _dereq_(16); |
|
4777 |
|
4778 function get(target, propertyKey /* , receiver */) { |
|
4779 var receiver = arguments.length < 3 ? target : arguments[2]; |
|
4780 var desc, proto; |
|
4781 if (anObject(target) === receiver) return target[propertyKey]; |
|
4782 if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value') |
|
4783 ? desc.value |
|
4784 : desc.get !== undefined |
|
4785 ? desc.get.call(receiver) |
|
4786 : undefined; |
|
4787 if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver); |
|
4788 } |
|
4789 |
|
4790 $export($export.S, 'Reflect', { get: get }); |
|
4791 |
|
4792 },{"16":16,"40":40,"47":47,"57":57,"77":77,"81":81}],217:[function(_dereq_,module,exports){ |
|
4793 // 26.1.9 Reflect.has(target, propertyKey) |
|
4794 var $export = _dereq_(40); |
|
4795 |
|
4796 $export($export.S, 'Reflect', { |
|
4797 has: function has(target, propertyKey) { |
|
4798 return propertyKey in target; |
|
4799 } |
|
4800 }); |
|
4801 |
|
4802 },{"40":40}],218:[function(_dereq_,module,exports){ |
|
4803 // 26.1.10 Reflect.isExtensible(target) |
|
4804 var $export = _dereq_(40); |
|
4805 var anObject = _dereq_(16); |
|
4806 var $isExtensible = Object.isExtensible; |
|
4807 |
|
4808 $export($export.S, 'Reflect', { |
|
4809 isExtensible: function isExtensible(target) { |
|
4810 anObject(target); |
|
4811 return $isExtensible ? $isExtensible(target) : true; |
|
4812 } |
|
4813 }); |
|
4814 |
|
4815 },{"16":16,"40":40}],219:[function(_dereq_,module,exports){ |
|
4816 // 26.1.11 Reflect.ownKeys(target) |
|
4817 var $export = _dereq_(40); |
|
4818 |
|
4819 $export($export.S, 'Reflect', { ownKeys: _dereq_(87) }); |
|
4820 |
|
4821 },{"40":40,"87":87}],220:[function(_dereq_,module,exports){ |
|
4822 // 26.1.12 Reflect.preventExtensions(target) |
|
4823 var $export = _dereq_(40); |
|
4824 var anObject = _dereq_(16); |
|
4825 var $preventExtensions = Object.preventExtensions; |
|
4826 |
|
4827 $export($export.S, 'Reflect', { |
|
4828 preventExtensions: function preventExtensions(target) { |
|
4829 anObject(target); |
|
4830 try { |
|
4831 if ($preventExtensions) $preventExtensions(target); |
|
4832 return true; |
|
4833 } catch (e) { |
|
4834 return false; |
|
4835 } |
|
4836 } |
|
4837 }); |
|
4838 |
|
4839 },{"16":16,"40":40}],221:[function(_dereq_,module,exports){ |
|
4840 // 26.1.14 Reflect.setPrototypeOf(target, proto) |
|
4841 var $export = _dereq_(40); |
|
4842 var setProto = _dereq_(98); |
|
4843 |
|
4844 if (setProto) $export($export.S, 'Reflect', { |
|
4845 setPrototypeOf: function setPrototypeOf(target, proto) { |
|
4846 setProto.check(target, proto); |
|
4847 try { |
|
4848 setProto.set(target, proto); |
|
4849 return true; |
|
4850 } catch (e) { |
|
4851 return false; |
|
4852 } |
|
4853 } |
|
4854 }); |
|
4855 |
|
4856 },{"40":40,"98":98}],222:[function(_dereq_,module,exports){ |
|
4857 // 26.1.13 Reflect.set(target, propertyKey, V [, receiver]) |
|
4858 var dP = _dereq_(75); |
|
4859 var gOPD = _dereq_(77); |
|
4860 var getPrototypeOf = _dereq_(81); |
|
4861 var has = _dereq_(47); |
|
4862 var $export = _dereq_(40); |
|
4863 var createDesc = _dereq_(92); |
|
4864 var anObject = _dereq_(16); |
|
4865 var isObject = _dereq_(57); |
|
4866 |
|
4867 function set(target, propertyKey, V /* , receiver */) { |
|
4868 var receiver = arguments.length < 4 ? target : arguments[3]; |
|
4869 var ownDesc = gOPD.f(anObject(target), propertyKey); |
|
4870 var existingDescriptor, proto; |
|
4871 if (!ownDesc) { |
|
4872 if (isObject(proto = getPrototypeOf(target))) { |
|
4873 return set(proto, propertyKey, V, receiver); |
|
4874 } |
|
4875 ownDesc = createDesc(0); |
|
4876 } |
|
4877 if (has(ownDesc, 'value')) { |
|
4878 if (ownDesc.writable === false || !isObject(receiver)) return false; |
|
4879 if (existingDescriptor = gOPD.f(receiver, propertyKey)) { |
|
4880 if (existingDescriptor.get || existingDescriptor.set || existingDescriptor.writable === false) return false; |
|
4881 existingDescriptor.value = V; |
|
4882 dP.f(receiver, propertyKey, existingDescriptor); |
|
4883 } else dP.f(receiver, propertyKey, createDesc(0, V)); |
|
4884 return true; |
|
4885 } |
|
4886 return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true); |
|
4887 } |
|
4888 |
|
4889 $export($export.S, 'Reflect', { set: set }); |
|
4890 |
|
4891 },{"16":16,"40":40,"47":47,"57":57,"75":75,"77":77,"81":81,"92":92}],223:[function(_dereq_,module,exports){ |
|
4892 var global = _dereq_(46); |
|
4893 var inheritIfRequired = _dereq_(51); |
|
4894 var dP = _dereq_(75).f; |
|
4895 var gOPN = _dereq_(79).f; |
|
4896 var isRegExp = _dereq_(58); |
|
4897 var $flags = _dereq_(44); |
|
4898 var $RegExp = global.RegExp; |
|
4899 var Base = $RegExp; |
|
4900 var proto = $RegExp.prototype; |
|
4901 var re1 = /a/g; |
|
4902 var re2 = /a/g; |
|
4903 // "new" creates a new object, old webkit buggy here |
|
4904 var CORRECT_NEW = new $RegExp(re1) !== re1; |
|
4905 |
|
4906 if (_dereq_(36) && (!CORRECT_NEW || _dereq_(42)(function () { |
|
4907 re2[_dereq_(128)('match')] = false; |
|
4908 // RegExp constructor can alter flags and IsRegExp works correct with @@match |
|
4909 return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i'; |
|
4910 }))) { |
|
4911 $RegExp = function RegExp(p, f) { |
|
4912 var tiRE = this instanceof $RegExp; |
|
4913 var piRE = isRegExp(p); |
|
4914 var fiU = f === undefined; |
|
4915 return !tiRE && piRE && p.constructor === $RegExp && fiU ? p |
|
4916 : inheritIfRequired(CORRECT_NEW |
|
4917 ? new Base(piRE && !fiU ? p.source : p, f) |
|
4918 : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f) |
|
4919 , tiRE ? this : proto, $RegExp); |
|
4920 }; |
|
4921 var proxy = function (key) { |
|
4922 key in $RegExp || dP($RegExp, key, { |
|
4923 configurable: true, |
|
4924 get: function () { return Base[key]; }, |
|
4925 set: function (it) { Base[key] = it; } |
|
4926 }); |
|
4927 }; |
|
4928 for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]); |
|
4929 proto.constructor = $RegExp; |
|
4930 $RegExp.prototype = proto; |
|
4931 _dereq_(94)(global, 'RegExp', $RegExp); |
|
4932 } |
|
4933 |
|
4934 _dereq_(99)('RegExp'); |
|
4935 |
|
4936 },{"128":128,"36":36,"42":42,"44":44,"46":46,"51":51,"58":58,"75":75,"79":79,"94":94,"99":99}],224:[function(_dereq_,module,exports){ |
|
4937 'use strict'; |
|
4938 var regexpExec = _dereq_(96); |
|
4939 _dereq_(40)({ |
|
4940 target: 'RegExp', |
|
4941 proto: true, |
|
4942 forced: regexpExec !== /./.exec |
|
4943 }, { |
|
4944 exec: regexpExec |
|
4945 }); |
|
4946 |
|
4947 },{"40":40,"96":96}],225:[function(_dereq_,module,exports){ |
|
4948 // 21.2.5.3 get RegExp.prototype.flags() |
|
4949 if (_dereq_(36) && /./g.flags != 'g') _dereq_(75).f(RegExp.prototype, 'flags', { |
|
4950 configurable: true, |
|
4951 get: _dereq_(44) |
|
4952 }); |
|
4953 |
|
4954 },{"36":36,"44":44,"75":75}],226:[function(_dereq_,module,exports){ |
|
4955 'use strict'; |
|
4956 |
|
4957 var anObject = _dereq_(16); |
|
4958 var toLength = _dereq_(117); |
|
4959 var advanceStringIndex = _dereq_(14); |
|
4960 var regExpExec = _dereq_(95); |
|
4961 |
|
4962 // @@match logic |
|
4963 _dereq_(43)('match', 1, function (defined, MATCH, $match, maybeCallNative) { |
|
4964 return [ |
|
4965 // `String.prototype.match` method |
|
4966 // https://tc39.github.io/ecma262/#sec-string.prototype.match |
|
4967 function match(regexp) { |
|
4968 var O = defined(this); |
|
4969 var fn = regexp == undefined ? undefined : regexp[MATCH]; |
|
4970 return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O)); |
|
4971 }, |
|
4972 // `RegExp.prototype[@@match]` method |
|
4973 // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match |
|
4974 function (regexp) { |
|
4975 var res = maybeCallNative($match, regexp, this); |
|
4976 if (res.done) return res.value; |
|
4977 var rx = anObject(regexp); |
|
4978 var S = String(this); |
|
4979 if (!rx.global) return regExpExec(rx, S); |
|
4980 var fullUnicode = rx.unicode; |
|
4981 rx.lastIndex = 0; |
|
4982 var A = []; |
|
4983 var n = 0; |
|
4984 var result; |
|
4985 while ((result = regExpExec(rx, S)) !== null) { |
|
4986 var matchStr = String(result[0]); |
|
4987 A[n] = matchStr; |
|
4988 if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); |
|
4989 n++; |
|
4990 } |
|
4991 return n === 0 ? null : A; |
|
4992 } |
|
4993 ]; |
|
4994 }); |
|
4995 |
|
4996 },{"117":117,"14":14,"16":16,"43":43,"95":95}],227:[function(_dereq_,module,exports){ |
|
4997 'use strict'; |
|
4998 |
|
4999 var anObject = _dereq_(16); |
|
5000 var toObject = _dereq_(118); |
|
5001 var toLength = _dereq_(117); |
|
5002 var toInteger = _dereq_(115); |
|
5003 var advanceStringIndex = _dereq_(14); |
|
5004 var regExpExec = _dereq_(95); |
|
5005 var max = Math.max; |
|
5006 var min = Math.min; |
|
5007 var floor = Math.floor; |
|
5008 var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g; |
|
5009 var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g; |
|
5010 |
|
5011 var maybeToString = function (it) { |
|
5012 return it === undefined ? it : String(it); |
|
5013 }; |
|
5014 |
|
5015 // @@replace logic |
|
5016 _dereq_(43)('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) { |
|
5017 return [ |
|
5018 // `String.prototype.replace` method |
|
5019 // https://tc39.github.io/ecma262/#sec-string.prototype.replace |
|
5020 function replace(searchValue, replaceValue) { |
|
5021 var O = defined(this); |
|
5022 var fn = searchValue == undefined ? undefined : searchValue[REPLACE]; |
|
5023 return fn !== undefined |
|
5024 ? fn.call(searchValue, O, replaceValue) |
|
5025 : $replace.call(String(O), searchValue, replaceValue); |
|
5026 }, |
|
5027 // `RegExp.prototype[@@replace]` method |
|
5028 // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace |
|
5029 function (regexp, replaceValue) { |
|
5030 var res = maybeCallNative($replace, regexp, this, replaceValue); |
|
5031 if (res.done) return res.value; |
|
5032 |
|
5033 var rx = anObject(regexp); |
|
5034 var S = String(this); |
|
5035 var functionalReplace = typeof replaceValue === 'function'; |
|
5036 if (!functionalReplace) replaceValue = String(replaceValue); |
|
5037 var global = rx.global; |
|
5038 if (global) { |
|
5039 var fullUnicode = rx.unicode; |
|
5040 rx.lastIndex = 0; |
|
5041 } |
|
5042 var results = []; |
|
5043 while (true) { |
|
5044 var result = regExpExec(rx, S); |
|
5045 if (result === null) break; |
|
5046 results.push(result); |
|
5047 if (!global) break; |
|
5048 var matchStr = String(result[0]); |
|
5049 if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); |
|
5050 } |
|
5051 var accumulatedResult = ''; |
|
5052 var nextSourcePosition = 0; |
|
5053 for (var i = 0; i < results.length; i++) { |
|
5054 result = results[i]; |
|
5055 var matched = String(result[0]); |
|
5056 var position = max(min(toInteger(result.index), S.length), 0); |
|
5057 var captures = []; |
|
5058 // NOTE: This is equivalent to |
|
5059 // captures = result.slice(1).map(maybeToString) |
|
5060 // but for some reason `nativeSlice.call(result, 1, result.length)` (called in |
|
5061 // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and |
|
5062 // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it. |
|
5063 for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j])); |
|
5064 var namedCaptures = result.groups; |
|
5065 if (functionalReplace) { |
|
5066 var replacerArgs = [matched].concat(captures, position, S); |
|
5067 if (namedCaptures !== undefined) replacerArgs.push(namedCaptures); |
|
5068 var replacement = String(replaceValue.apply(undefined, replacerArgs)); |
|
5069 } else { |
|
5070 replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue); |
|
5071 } |
|
5072 if (position >= nextSourcePosition) { |
|
5073 accumulatedResult += S.slice(nextSourcePosition, position) + replacement; |
|
5074 nextSourcePosition = position + matched.length; |
|
5075 } |
|
5076 } |
|
5077 return accumulatedResult + S.slice(nextSourcePosition); |
|
5078 } |
|
5079 ]; |
|
5080 |
|
5081 // https://tc39.github.io/ecma262/#sec-getsubstitution |
|
5082 function getSubstitution(matched, str, position, captures, namedCaptures, replacement) { |
|
5083 var tailPos = position + matched.length; |
|
5084 var m = captures.length; |
|
5085 var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; |
|
5086 if (namedCaptures !== undefined) { |
|
5087 namedCaptures = toObject(namedCaptures); |
|
5088 symbols = SUBSTITUTION_SYMBOLS; |
|
5089 } |
|
5090 return $replace.call(replacement, symbols, function (match, ch) { |
|
5091 var capture; |
|
5092 switch (ch.charAt(0)) { |
|
5093 case '$': return '$'; |
|
5094 case '&': return matched; |
|
5095 case '`': return str.slice(0, position); |
|
5096 case "'": return str.slice(tailPos); |
|
5097 case '<': |
|
5098 capture = namedCaptures[ch.slice(1, -1)]; |
|
5099 break; |
|
5100 default: // \d\d? |
|
5101 var n = +ch; |
|
5102 if (n === 0) return ch; |
|
5103 if (n > m) { |
|
5104 var f = floor(n / 10); |
|
5105 if (f === 0) return ch; |
|
5106 if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1); |
|
5107 return ch; |
|
5108 } |
|
5109 capture = captures[n - 1]; |
|
5110 } |
|
5111 return capture === undefined ? '' : capture; |
|
5112 }); |
|
5113 } |
|
5114 }); |
|
5115 |
|
5116 },{"115":115,"117":117,"118":118,"14":14,"16":16,"43":43,"95":95}],228:[function(_dereq_,module,exports){ |
|
5117 'use strict'; |
|
5118 |
|
5119 var anObject = _dereq_(16); |
|
5120 var sameValue = _dereq_(97); |
|
5121 var regExpExec = _dereq_(95); |
|
5122 |
|
5123 // @@search logic |
|
5124 _dereq_(43)('search', 1, function (defined, SEARCH, $search, maybeCallNative) { |
|
5125 return [ |
|
5126 // `String.prototype.search` method |
|
5127 // https://tc39.github.io/ecma262/#sec-string.prototype.search |
|
5128 function search(regexp) { |
|
5129 var O = defined(this); |
|
5130 var fn = regexp == undefined ? undefined : regexp[SEARCH]; |
|
5131 return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O)); |
|
5132 }, |
|
5133 // `RegExp.prototype[@@search]` method |
|
5134 // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@search |
|
5135 function (regexp) { |
|
5136 var res = maybeCallNative($search, regexp, this); |
|
5137 if (res.done) return res.value; |
|
5138 var rx = anObject(regexp); |
|
5139 var S = String(this); |
|
5140 var previousLastIndex = rx.lastIndex; |
|
5141 if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0; |
|
5142 var result = regExpExec(rx, S); |
|
5143 if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex; |
|
5144 return result === null ? -1 : result.index; |
|
5145 } |
|
5146 ]; |
|
5147 }); |
|
5148 |
|
5149 },{"16":16,"43":43,"95":95,"97":97}],229:[function(_dereq_,module,exports){ |
|
5150 'use strict'; |
|
5151 |
|
5152 var isRegExp = _dereq_(58); |
|
5153 var anObject = _dereq_(16); |
|
5154 var speciesConstructor = _dereq_(103); |
|
5155 var advanceStringIndex = _dereq_(14); |
|
5156 var toLength = _dereq_(117); |
|
5157 var callRegExpExec = _dereq_(95); |
|
5158 var regexpExec = _dereq_(96); |
|
5159 var $min = Math.min; |
|
5160 var $push = [].push; |
|
5161 var $SPLIT = 'split'; |
|
5162 var LENGTH = 'length'; |
|
5163 var LAST_INDEX = 'lastIndex'; |
|
5164 |
|
5165 // eslint-disable-next-line no-empty |
|
5166 var SUPPORTS_Y = !!(function () { try { return new RegExp('x', 'y'); } catch (e) {} })(); |
|
5167 |
|
5168 // @@split logic |
|
5169 _dereq_(43)('split', 2, function (defined, SPLIT, $split, maybeCallNative) { |
|
5170 var internalSplit; |
|
5171 if ( |
|
5172 'abbc'[$SPLIT](/(b)*/)[1] == 'c' || |
|
5173 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 || |
|
5174 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 || |
|
5175 '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 || |
|
5176 '.'[$SPLIT](/()()/)[LENGTH] > 1 || |
|
5177 ''[$SPLIT](/.?/)[LENGTH] |
|
5178 ) { |
|
5179 // based on es5-shim implementation, need to rework it |
|
5180 internalSplit = function (separator, limit) { |
|
5181 var string = String(this); |
|
5182 if (separator === undefined && limit === 0) return []; |
|
5183 // If `separator` is not a regex, use native split |
|
5184 if (!isRegExp(separator)) return $split.call(string, separator, limit); |
|
5185 var output = []; |
|
5186 var flags = (separator.ignoreCase ? 'i' : '') + |
|
5187 (separator.multiline ? 'm' : '') + |
|
5188 (separator.unicode ? 'u' : '') + |
|
5189 (separator.sticky ? 'y' : ''); |
|
5190 var lastLastIndex = 0; |
|
5191 var splitLimit = limit === undefined ? 4294967295 : limit >>> 0; |
|
5192 // Make `global` and avoid `lastIndex` issues by working with a copy |
|
5193 var separatorCopy = new RegExp(separator.source, flags + 'g'); |
|
5194 var match, lastIndex, lastLength; |
|
5195 while (match = regexpExec.call(separatorCopy, string)) { |
|
5196 lastIndex = separatorCopy[LAST_INDEX]; |
|
5197 if (lastIndex > lastLastIndex) { |
|
5198 output.push(string.slice(lastLastIndex, match.index)); |
|
5199 if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1)); |
|
5200 lastLength = match[0][LENGTH]; |
|
5201 lastLastIndex = lastIndex; |
|
5202 if (output[LENGTH] >= splitLimit) break; |
|
5203 } |
|
5204 if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop |
|
5205 } |
|
5206 if (lastLastIndex === string[LENGTH]) { |
|
5207 if (lastLength || !separatorCopy.test('')) output.push(''); |
|
5208 } else output.push(string.slice(lastLastIndex)); |
|
5209 return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output; |
|
5210 }; |
|
5211 // Chakra, V8 |
|
5212 } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) { |
|
5213 internalSplit = function (separator, limit) { |
|
5214 return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit); |
|
5215 }; |
|
5216 } else { |
|
5217 internalSplit = $split; |
|
5218 } |
|
5219 |
|
5220 return [ |
|
5221 // `String.prototype.split` method |
|
5222 // https://tc39.github.io/ecma262/#sec-string.prototype.split |
|
5223 function split(separator, limit) { |
|
5224 var O = defined(this); |
|
5225 var splitter = separator == undefined ? undefined : separator[SPLIT]; |
|
5226 return splitter !== undefined |
|
5227 ? splitter.call(separator, O, limit) |
|
5228 : internalSplit.call(String(O), separator, limit); |
|
5229 }, |
|
5230 // `RegExp.prototype[@@split]` method |
|
5231 // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split |
|
5232 // |
|
5233 // NOTE: This cannot be properly polyfilled in engines that don't support |
|
5234 // the 'y' flag. |
|
5235 function (regexp, limit) { |
|
5236 var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split); |
|
5237 if (res.done) return res.value; |
|
5238 |
|
5239 var rx = anObject(regexp); |
|
5240 var S = String(this); |
|
5241 var C = speciesConstructor(rx, RegExp); |
|
5242 |
|
5243 var unicodeMatching = rx.unicode; |
|
5244 var flags = (rx.ignoreCase ? 'i' : '') + |
|
5245 (rx.multiline ? 'm' : '') + |
|
5246 (rx.unicode ? 'u' : '') + |
|
5247 (SUPPORTS_Y ? 'y' : 'g'); |
|
5248 |
|
5249 // ^(? + rx + ) is needed, in combination with some S slicing, to |
|
5250 // simulate the 'y' flag. |
|
5251 var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags); |
|
5252 var lim = limit === undefined ? 0xffffffff : limit >>> 0; |
|
5253 if (lim === 0) return []; |
|
5254 if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : []; |
|
5255 var p = 0; |
|
5256 var q = 0; |
|
5257 var A = []; |
|
5258 while (q < S.length) { |
|
5259 splitter.lastIndex = SUPPORTS_Y ? q : 0; |
|
5260 var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q)); |
|
5261 var e; |
|
5262 if ( |
|
5263 z === null || |
|
5264 (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p |
|
5265 ) { |
|
5266 q = advanceStringIndex(S, q, unicodeMatching); |
|
5267 } else { |
|
5268 A.push(S.slice(p, q)); |
|
5269 if (A.length === lim) return A; |
|
5270 for (var i = 1; i <= z.length - 1; i++) { |
|
5271 A.push(z[i]); |
|
5272 if (A.length === lim) return A; |
|
5273 } |
|
5274 q = p = e; |
|
5275 } |
|
5276 } |
|
5277 A.push(S.slice(p)); |
|
5278 return A; |
|
5279 } |
|
5280 ]; |
|
5281 }); |
|
5282 |
|
5283 },{"103":103,"117":117,"14":14,"16":16,"43":43,"58":58,"95":95,"96":96}],230:[function(_dereq_,module,exports){ |
|
5284 'use strict'; |
|
5285 _dereq_(225); |
|
5286 var anObject = _dereq_(16); |
|
5287 var $flags = _dereq_(44); |
|
5288 var DESCRIPTORS = _dereq_(36); |
|
5289 var TO_STRING = 'toString'; |
|
5290 var $toString = /./[TO_STRING]; |
|
5291 |
|
5292 var define = function (fn) { |
|
5293 _dereq_(94)(RegExp.prototype, TO_STRING, fn, true); |
|
5294 }; |
|
5295 |
|
5296 // 21.2.5.14 RegExp.prototype.toString() |
|
5297 if (_dereq_(42)(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) { |
|
5298 define(function toString() { |
|
5299 var R = anObject(this); |
|
5300 return '/'.concat(R.source, '/', |
|
5301 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined); |
|
5302 }); |
|
5303 // FF44- RegExp#toString has a wrong name |
|
5304 } else if ($toString.name != TO_STRING) { |
|
5305 define(function toString() { |
|
5306 return $toString.call(this); |
|
5307 }); |
|
5308 } |
|
5309 |
|
5310 },{"16":16,"225":225,"36":36,"42":42,"44":44,"94":94}],231:[function(_dereq_,module,exports){ |
|
5311 'use strict'; |
|
5312 var strong = _dereq_(27); |
|
5313 var validate = _dereq_(125); |
|
5314 var SET = 'Set'; |
|
5315 |
|
5316 // 23.2 Set Objects |
|
5317 module.exports = _dereq_(29)(SET, function (get) { |
|
5318 return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; |
|
5319 }, { |
|
5320 // 23.2.3.1 Set.prototype.add(value) |
|
5321 add: function add(value) { |
|
5322 return strong.def(validate(this, SET), value = value === 0 ? 0 : value, value); |
|
5323 } |
|
5324 }, strong); |
|
5325 |
|
5326 },{"125":125,"27":27,"29":29}],232:[function(_dereq_,module,exports){ |
|
5327 'use strict'; |
|
5328 // B.2.3.2 String.prototype.anchor(name) |
|
5329 _dereq_(107)('anchor', function (createHTML) { |
|
5330 return function anchor(name) { |
|
5331 return createHTML(this, 'a', 'name', name); |
|
5332 }; |
|
5333 }); |
|
5334 |
|
5335 },{"107":107}],233:[function(_dereq_,module,exports){ |
|
5336 'use strict'; |
|
5337 // B.2.3.3 String.prototype.big() |
|
5338 _dereq_(107)('big', function (createHTML) { |
|
5339 return function big() { |
|
5340 return createHTML(this, 'big', '', ''); |
|
5341 }; |
|
5342 }); |
|
5343 |
|
5344 },{"107":107}],234:[function(_dereq_,module,exports){ |
|
5345 'use strict'; |
|
5346 // B.2.3.4 String.prototype.blink() |
|
5347 _dereq_(107)('blink', function (createHTML) { |
|
5348 return function blink() { |
|
5349 return createHTML(this, 'blink', '', ''); |
|
5350 }; |
|
5351 }); |
|
5352 |
|
5353 },{"107":107}],235:[function(_dereq_,module,exports){ |
|
5354 'use strict'; |
|
5355 // B.2.3.5 String.prototype.bold() |
|
5356 _dereq_(107)('bold', function (createHTML) { |
|
5357 return function bold() { |
|
5358 return createHTML(this, 'b', '', ''); |
|
5359 }; |
|
5360 }); |
|
5361 |
|
5362 },{"107":107}],236:[function(_dereq_,module,exports){ |
|
5363 'use strict'; |
|
5364 var $export = _dereq_(40); |
|
5365 var $at = _dereq_(105)(false); |
|
5366 $export($export.P, 'String', { |
|
5367 // 21.1.3.3 String.prototype.codePointAt(pos) |
|
5368 codePointAt: function codePointAt(pos) { |
|
5369 return $at(this, pos); |
|
5370 } |
|
5371 }); |
|
5372 |
|
5373 },{"105":105,"40":40}],237:[function(_dereq_,module,exports){ |
|
5374 // 21.1.3.6 String.prototype.endsWith(searchString [, endPosition]) |
|
5375 'use strict'; |
|
5376 var $export = _dereq_(40); |
|
5377 var toLength = _dereq_(117); |
|
5378 var context = _dereq_(106); |
|
5379 var ENDS_WITH = 'endsWith'; |
|
5380 var $endsWith = ''[ENDS_WITH]; |
|
5381 |
|
5382 $export($export.P + $export.F * _dereq_(41)(ENDS_WITH), 'String', { |
|
5383 endsWith: function endsWith(searchString /* , endPosition = @length */) { |
|
5384 var that = context(this, searchString, ENDS_WITH); |
|
5385 var endPosition = arguments.length > 1 ? arguments[1] : undefined; |
|
5386 var len = toLength(that.length); |
|
5387 var end = endPosition === undefined ? len : Math.min(toLength(endPosition), len); |
|
5388 var search = String(searchString); |
|
5389 return $endsWith |
|
5390 ? $endsWith.call(that, search, end) |
|
5391 : that.slice(end - search.length, end) === search; |
|
5392 } |
|
5393 }); |
|
5394 |
|
5395 },{"106":106,"117":117,"40":40,"41":41}],238:[function(_dereq_,module,exports){ |
|
5396 'use strict'; |
|
5397 // B.2.3.6 String.prototype.fixed() |
|
5398 _dereq_(107)('fixed', function (createHTML) { |
|
5399 return function fixed() { |
|
5400 return createHTML(this, 'tt', '', ''); |
|
5401 }; |
|
5402 }); |
|
5403 |
|
5404 },{"107":107}],239:[function(_dereq_,module,exports){ |
|
5405 'use strict'; |
|
5406 // B.2.3.7 String.prototype.fontcolor(color) |
|
5407 _dereq_(107)('fontcolor', function (createHTML) { |
|
5408 return function fontcolor(color) { |
|
5409 return createHTML(this, 'font', 'color', color); |
|
5410 }; |
|
5411 }); |
|
5412 |
|
5413 },{"107":107}],240:[function(_dereq_,module,exports){ |
|
5414 'use strict'; |
|
5415 // B.2.3.8 String.prototype.fontsize(size) |
|
5416 _dereq_(107)('fontsize', function (createHTML) { |
|
5417 return function fontsize(size) { |
|
5418 return createHTML(this, 'font', 'size', size); |
|
5419 }; |
|
5420 }); |
|
5421 |
|
5422 },{"107":107}],241:[function(_dereq_,module,exports){ |
|
5423 var $export = _dereq_(40); |
|
5424 var toAbsoluteIndex = _dereq_(113); |
|
5425 var fromCharCode = String.fromCharCode; |
|
5426 var $fromCodePoint = String.fromCodePoint; |
|
5427 |
|
5428 // length should be 1, old FF problem |
|
5429 $export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', { |
|
5430 // 21.1.2.2 String.fromCodePoint(...codePoints) |
|
5431 fromCodePoint: function fromCodePoint(x) { // eslint-disable-line no-unused-vars |
|
5432 var res = []; |
|
5433 var aLen = arguments.length; |
|
5434 var i = 0; |
|
5435 var code; |
|
5436 while (aLen > i) { |
|
5437 code = +arguments[i++]; |
|
5438 if (toAbsoluteIndex(code, 0x10ffff) !== code) throw RangeError(code + ' is not a valid code point'); |
|
5439 res.push(code < 0x10000 |
|
5440 ? fromCharCode(code) |
|
5441 : fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00) |
|
5442 ); |
|
5443 } return res.join(''); |
|
5444 } |
|
5445 }); |
|
5446 |
|
5447 },{"113":113,"40":40}],242:[function(_dereq_,module,exports){ |
|
5448 // 21.1.3.7 String.prototype.includes(searchString, position = 0) |
|
5449 'use strict'; |
|
5450 var $export = _dereq_(40); |
|
5451 var context = _dereq_(106); |
|
5452 var INCLUDES = 'includes'; |
|
5453 |
|
5454 $export($export.P + $export.F * _dereq_(41)(INCLUDES), 'String', { |
|
5455 includes: function includes(searchString /* , position = 0 */) { |
|
5456 return !!~context(this, searchString, INCLUDES) |
|
5457 .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined); |
|
5458 } |
|
5459 }); |
|
5460 |
|
5461 },{"106":106,"40":40,"41":41}],243:[function(_dereq_,module,exports){ |
|
5462 'use strict'; |
|
5463 // B.2.3.9 String.prototype.italics() |
|
5464 _dereq_(107)('italics', function (createHTML) { |
|
5465 return function italics() { |
|
5466 return createHTML(this, 'i', '', ''); |
|
5467 }; |
|
5468 }); |
|
5469 |
|
5470 },{"107":107}],244:[function(_dereq_,module,exports){ |
|
5471 'use strict'; |
|
5472 var $at = _dereq_(105)(true); |
|
5473 |
|
5474 // 21.1.3.27 String.prototype[@@iterator]() |
|
5475 _dereq_(61)(String, 'String', function (iterated) { |
|
5476 this._t = String(iterated); // target |
|
5477 this._i = 0; // next index |
|
5478 // 21.1.5.2.1 %StringIteratorPrototype%.next() |
|
5479 }, function () { |
|
5480 var O = this._t; |
|
5481 var index = this._i; |
|
5482 var point; |
|
5483 if (index >= O.length) return { value: undefined, done: true }; |
|
5484 point = $at(O, index); |
|
5485 this._i += point.length; |
|
5486 return { value: point, done: false }; |
|
5487 }); |
|
5488 |
|
5489 },{"105":105,"61":61}],245:[function(_dereq_,module,exports){ |
|
5490 'use strict'; |
|
5491 // B.2.3.10 String.prototype.link(url) |
|
5492 _dereq_(107)('link', function (createHTML) { |
|
5493 return function link(url) { |
|
5494 return createHTML(this, 'a', 'href', url); |
|
5495 }; |
|
5496 }); |
|
5497 |
|
5498 },{"107":107}],246:[function(_dereq_,module,exports){ |
|
5499 var $export = _dereq_(40); |
|
5500 var toIObject = _dereq_(116); |
|
5501 var toLength = _dereq_(117); |
|
5502 |
|
5503 $export($export.S, 'String', { |
|
5504 // 21.1.2.4 String.raw(callSite, ...substitutions) |
|
5505 raw: function raw(callSite) { |
|
5506 var tpl = toIObject(callSite.raw); |
|
5507 var len = toLength(tpl.length); |
|
5508 var aLen = arguments.length; |
|
5509 var res = []; |
|
5510 var i = 0; |
|
5511 while (len > i) { |
|
5512 res.push(String(tpl[i++])); |
|
5513 if (i < aLen) res.push(String(arguments[i])); |
|
5514 } return res.join(''); |
|
5515 } |
|
5516 }); |
|
5517 |
|
5518 },{"116":116,"117":117,"40":40}],247:[function(_dereq_,module,exports){ |
|
5519 var $export = _dereq_(40); |
|
5520 |
|
5521 $export($export.P, 'String', { |
|
5522 // 21.1.3.13 String.prototype.repeat(count) |
|
5523 repeat: _dereq_(109) |
|
5524 }); |
|
5525 |
|
5526 },{"109":109,"40":40}],248:[function(_dereq_,module,exports){ |
|
5527 'use strict'; |
|
5528 // B.2.3.11 String.prototype.small() |
|
5529 _dereq_(107)('small', function (createHTML) { |
|
5530 return function small() { |
|
5531 return createHTML(this, 'small', '', ''); |
|
5532 }; |
|
5533 }); |
|
5534 |
|
5535 },{"107":107}],249:[function(_dereq_,module,exports){ |
|
5536 // 21.1.3.18 String.prototype.startsWith(searchString [, position ]) |
|
5537 'use strict'; |
|
5538 var $export = _dereq_(40); |
|
5539 var toLength = _dereq_(117); |
|
5540 var context = _dereq_(106); |
|
5541 var STARTS_WITH = 'startsWith'; |
|
5542 var $startsWith = ''[STARTS_WITH]; |
|
5543 |
|
5544 $export($export.P + $export.F * _dereq_(41)(STARTS_WITH), 'String', { |
|
5545 startsWith: function startsWith(searchString /* , position = 0 */) { |
|
5546 var that = context(this, searchString, STARTS_WITH); |
|
5547 var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length)); |
|
5548 var search = String(searchString); |
|
5549 return $startsWith |
|
5550 ? $startsWith.call(that, search, index) |
|
5551 : that.slice(index, index + search.length) === search; |
|
5552 } |
|
5553 }); |
|
5554 |
|
5555 },{"106":106,"117":117,"40":40,"41":41}],250:[function(_dereq_,module,exports){ |
|
5556 'use strict'; |
|
5557 // B.2.3.12 String.prototype.strike() |
|
5558 _dereq_(107)('strike', function (createHTML) { |
|
5559 return function strike() { |
|
5560 return createHTML(this, 'strike', '', ''); |
|
5561 }; |
|
5562 }); |
|
5563 |
|
5564 },{"107":107}],251:[function(_dereq_,module,exports){ |
|
5565 'use strict'; |
|
5566 // B.2.3.13 String.prototype.sub() |
|
5567 _dereq_(107)('sub', function (createHTML) { |
|
5568 return function sub() { |
|
5569 return createHTML(this, 'sub', '', ''); |
|
5570 }; |
|
5571 }); |
|
5572 |
|
5573 },{"107":107}],252:[function(_dereq_,module,exports){ |
|
5574 'use strict'; |
|
5575 // B.2.3.14 String.prototype.sup() |
|
5576 _dereq_(107)('sup', function (createHTML) { |
|
5577 return function sup() { |
|
5578 return createHTML(this, 'sup', '', ''); |
|
5579 }; |
|
5580 }); |
|
5581 |
|
5582 },{"107":107}],253:[function(_dereq_,module,exports){ |
|
5583 'use strict'; |
|
5584 // 21.1.3.25 String.prototype.trim() |
|
5585 _dereq_(110)('trim', function ($trim) { |
|
5586 return function trim() { |
|
5587 return $trim(this, 3); |
|
5588 }; |
|
5589 }); |
|
5590 |
|
5591 },{"110":110}],254:[function(_dereq_,module,exports){ |
|
5592 'use strict'; |
|
5593 // ECMAScript 6 symbols shim |
|
5594 var global = _dereq_(46); |
|
5595 var has = _dereq_(47); |
|
5596 var DESCRIPTORS = _dereq_(36); |
|
5597 var $export = _dereq_(40); |
|
5598 var redefine = _dereq_(94); |
|
5599 var META = _dereq_(70).KEY; |
|
5600 var $fails = _dereq_(42); |
|
5601 var shared = _dereq_(102); |
|
5602 var setToStringTag = _dereq_(100); |
|
5603 var uid = _dereq_(123); |
|
5604 var wks = _dereq_(128); |
|
5605 var wksExt = _dereq_(127); |
|
5606 var wksDefine = _dereq_(126); |
|
5607 var enumKeys = _dereq_(39); |
|
5608 var isArray = _dereq_(55); |
|
5609 var anObject = _dereq_(16); |
|
5610 var isObject = _dereq_(57); |
|
5611 var toIObject = _dereq_(116); |
|
5612 var toPrimitive = _dereq_(119); |
|
5613 var createDesc = _dereq_(92); |
|
5614 var _create = _dereq_(74); |
|
5615 var gOPNExt = _dereq_(78); |
|
5616 var $GOPD = _dereq_(77); |
|
5617 var $DP = _dereq_(75); |
|
5618 var $keys = _dereq_(83); |
|
5619 var gOPD = $GOPD.f; |
|
5620 var dP = $DP.f; |
|
5621 var gOPN = gOPNExt.f; |
|
5622 var $Symbol = global.Symbol; |
|
5623 var $JSON = global.JSON; |
|
5624 var _stringify = $JSON && $JSON.stringify; |
|
5625 var PROTOTYPE = 'prototype'; |
|
5626 var HIDDEN = wks('_hidden'); |
|
5627 var TO_PRIMITIVE = wks('toPrimitive'); |
|
5628 var isEnum = {}.propertyIsEnumerable; |
|
5629 var SymbolRegistry = shared('symbol-registry'); |
|
5630 var AllSymbols = shared('symbols'); |
|
5631 var OPSymbols = shared('op-symbols'); |
|
5632 var ObjectProto = Object[PROTOTYPE]; |
|
5633 var USE_NATIVE = typeof $Symbol == 'function'; |
|
5634 var QObject = global.QObject; |
|
5635 // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 |
|
5636 var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; |
|
5637 |
|
5638 // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 |
|
5639 var setSymbolDesc = DESCRIPTORS && $fails(function () { |
|
5640 return _create(dP({}, 'a', { |
|
5641 get: function () { return dP(this, 'a', { value: 7 }).a; } |
|
5642 })).a != 7; |
|
5643 }) ? function (it, key, D) { |
|
5644 var protoDesc = gOPD(ObjectProto, key); |
|
5645 if (protoDesc) delete ObjectProto[key]; |
|
5646 dP(it, key, D); |
|
5647 if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); |
|
5648 } : dP; |
|
5649 |
|
5650 var wrap = function (tag) { |
|
5651 var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); |
|
5652 sym._k = tag; |
|
5653 return sym; |
|
5654 }; |
|
5655 |
|
5656 var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { |
|
5657 return typeof it == 'symbol'; |
|
5658 } : function (it) { |
|
5659 return it instanceof $Symbol; |
|
5660 }; |
|
5661 |
|
5662 var $defineProperty = function defineProperty(it, key, D) { |
|
5663 if (it === ObjectProto) $defineProperty(OPSymbols, key, D); |
|
5664 anObject(it); |
|
5665 key = toPrimitive(key, true); |
|
5666 anObject(D); |
|
5667 if (has(AllSymbols, key)) { |
|
5668 if (!D.enumerable) { |
|
5669 if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); |
|
5670 it[HIDDEN][key] = true; |
|
5671 } else { |
|
5672 if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; |
|
5673 D = _create(D, { enumerable: createDesc(0, false) }); |
|
5674 } return setSymbolDesc(it, key, D); |
|
5675 } return dP(it, key, D); |
|
5676 }; |
|
5677 var $defineProperties = function defineProperties(it, P) { |
|
5678 anObject(it); |
|
5679 var keys = enumKeys(P = toIObject(P)); |
|
5680 var i = 0; |
|
5681 var l = keys.length; |
|
5682 var key; |
|
5683 while (l > i) $defineProperty(it, key = keys[i++], P[key]); |
|
5684 return it; |
|
5685 }; |
|
5686 var $create = function create(it, P) { |
|
5687 return P === undefined ? _create(it) : $defineProperties(_create(it), P); |
|
5688 }; |
|
5689 var $propertyIsEnumerable = function propertyIsEnumerable(key) { |
|
5690 var E = isEnum.call(this, key = toPrimitive(key, true)); |
|
5691 if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false; |
|
5692 return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; |
|
5693 }; |
|
5694 var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { |
|
5695 it = toIObject(it); |
|
5696 key = toPrimitive(key, true); |
|
5697 if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return; |
|
5698 var D = gOPD(it, key); |
|
5699 if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; |
|
5700 return D; |
|
5701 }; |
|
5702 var $getOwnPropertyNames = function getOwnPropertyNames(it) { |
|
5703 var names = gOPN(toIObject(it)); |
|
5704 var result = []; |
|
5705 var i = 0; |
|
5706 var key; |
|
5707 while (names.length > i) { |
|
5708 if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); |
|
5709 } return result; |
|
5710 }; |
|
5711 var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { |
|
5712 var IS_OP = it === ObjectProto; |
|
5713 var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); |
|
5714 var result = []; |
|
5715 var i = 0; |
|
5716 var key; |
|
5717 while (names.length > i) { |
|
5718 if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); |
|
5719 } return result; |
|
5720 }; |
|
5721 |
|
5722 // 19.4.1.1 Symbol([description]) |
|
5723 if (!USE_NATIVE) { |
|
5724 $Symbol = function Symbol() { |
|
5725 if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); |
|
5726 var tag = uid(arguments.length > 0 ? arguments[0] : undefined); |
|
5727 var $set = function (value) { |
|
5728 if (this === ObjectProto) $set.call(OPSymbols, value); |
|
5729 if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; |
|
5730 setSymbolDesc(this, tag, createDesc(1, value)); |
|
5731 }; |
|
5732 if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set }); |
|
5733 return wrap(tag); |
|
5734 }; |
|
5735 redefine($Symbol[PROTOTYPE], 'toString', function toString() { |
|
5736 return this._k; |
|
5737 }); |
|
5738 |
|
5739 $GOPD.f = $getOwnPropertyDescriptor; |
|
5740 $DP.f = $defineProperty; |
|
5741 _dereq_(79).f = gOPNExt.f = $getOwnPropertyNames; |
|
5742 _dereq_(84).f = $propertyIsEnumerable; |
|
5743 _dereq_(80).f = $getOwnPropertySymbols; |
|
5744 |
|
5745 if (DESCRIPTORS && !_dereq_(65)) { |
|
5746 redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); |
|
5747 } |
|
5748 |
|
5749 wksExt.f = function (name) { |
|
5750 return wrap(wks(name)); |
|
5751 }; |
|
5752 } |
|
5753 |
|
5754 $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); |
|
5755 |
|
5756 for (var es6Symbols = ( |
|
5757 // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 |
|
5758 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' |
|
5759 ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); |
|
5760 |
|
5761 for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); |
|
5762 |
|
5763 $export($export.S + $export.F * !USE_NATIVE, 'Symbol', { |
|
5764 // 19.4.2.1 Symbol.for(key) |
|
5765 'for': function (key) { |
|
5766 return has(SymbolRegistry, key += '') |
|
5767 ? SymbolRegistry[key] |
|
5768 : SymbolRegistry[key] = $Symbol(key); |
|
5769 }, |
|
5770 // 19.4.2.5 Symbol.keyFor(sym) |
|
5771 keyFor: function keyFor(sym) { |
|
5772 if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); |
|
5773 for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; |
|
5774 }, |
|
5775 useSetter: function () { setter = true; }, |
|
5776 useSimple: function () { setter = false; } |
|
5777 }); |
|
5778 |
|
5779 $export($export.S + $export.F * !USE_NATIVE, 'Object', { |
|
5780 // 19.1.2.2 Object.create(O [, Properties]) |
|
5781 create: $create, |
|
5782 // 19.1.2.4 Object.defineProperty(O, P, Attributes) |
|
5783 defineProperty: $defineProperty, |
|
5784 // 19.1.2.3 Object.defineProperties(O, Properties) |
|
5785 defineProperties: $defineProperties, |
|
5786 // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) |
|
5787 getOwnPropertyDescriptor: $getOwnPropertyDescriptor, |
|
5788 // 19.1.2.7 Object.getOwnPropertyNames(O) |
|
5789 getOwnPropertyNames: $getOwnPropertyNames, |
|
5790 // 19.1.2.8 Object.getOwnPropertySymbols(O) |
|
5791 getOwnPropertySymbols: $getOwnPropertySymbols |
|
5792 }); |
|
5793 |
|
5794 // 24.3.2 JSON.stringify(value [, replacer [, space]]) |
|
5795 $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { |
|
5796 var S = $Symbol(); |
|
5797 // MS Edge converts symbol values to JSON as {} |
|
5798 // WebKit converts symbol values to JSON as null |
|
5799 // V8 throws on boxed symbols |
|
5800 return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}'; |
|
5801 })), 'JSON', { |
|
5802 stringify: function stringify(it) { |
|
5803 var args = [it]; |
|
5804 var i = 1; |
|
5805 var replacer, $replacer; |
|
5806 while (arguments.length > i) args.push(arguments[i++]); |
|
5807 $replacer = replacer = args[1]; |
|
5808 if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined |
|
5809 if (!isArray(replacer)) replacer = function (key, value) { |
|
5810 if (typeof $replacer == 'function') value = $replacer.call(this, key, value); |
|
5811 if (!isSymbol(value)) return value; |
|
5812 }; |
|
5813 args[1] = replacer; |
|
5814 return _stringify.apply($JSON, args); |
|
5815 } |
|
5816 }); |
|
5817 |
|
5818 // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) |
|
5819 $Symbol[PROTOTYPE][TO_PRIMITIVE] || _dereq_(48)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); |
|
5820 // 19.4.3.5 Symbol.prototype[@@toStringTag] |
|
5821 setToStringTag($Symbol, 'Symbol'); |
|
5822 // 20.2.1.9 Math[@@toStringTag] |
|
5823 setToStringTag(Math, 'Math', true); |
|
5824 // 24.3.3 JSON[@@toStringTag] |
|
5825 setToStringTag(global.JSON, 'JSON', true); |
|
5826 |
|
5827 },{"100":100,"102":102,"116":116,"119":119,"123":123,"126":126,"127":127,"128":128,"16":16,"36":36,"39":39,"40":40,"42":42,"46":46,"47":47,"48":48,"55":55,"57":57,"65":65,"70":70,"74":74,"75":75,"77":77,"78":78,"79":79,"80":80,"83":83,"84":84,"92":92,"94":94}],255:[function(_dereq_,module,exports){ |
|
5828 'use strict'; |
|
5829 var $export = _dereq_(40); |
|
5830 var $typed = _dereq_(122); |
|
5831 var buffer = _dereq_(121); |
|
5832 var anObject = _dereq_(16); |
|
5833 var toAbsoluteIndex = _dereq_(113); |
|
5834 var toLength = _dereq_(117); |
|
5835 var isObject = _dereq_(57); |
|
5836 var ArrayBuffer = _dereq_(46).ArrayBuffer; |
|
5837 var speciesConstructor = _dereq_(103); |
|
5838 var $ArrayBuffer = buffer.ArrayBuffer; |
|
5839 var $DataView = buffer.DataView; |
|
5840 var $isView = $typed.ABV && ArrayBuffer.isView; |
|
5841 var $slice = $ArrayBuffer.prototype.slice; |
|
5842 var VIEW = $typed.VIEW; |
|
5843 var ARRAY_BUFFER = 'ArrayBuffer'; |
|
5844 |
|
5845 $export($export.G + $export.W + $export.F * (ArrayBuffer !== $ArrayBuffer), { ArrayBuffer: $ArrayBuffer }); |
|
5846 |
|
5847 $export($export.S + $export.F * !$typed.CONSTR, ARRAY_BUFFER, { |
|
5848 // 24.1.3.1 ArrayBuffer.isView(arg) |
|
5849 isView: function isView(it) { |
|
5850 return $isView && $isView(it) || isObject(it) && VIEW in it; |
|
5851 } |
|
5852 }); |
|
5853 |
|
5854 $export($export.P + $export.U + $export.F * _dereq_(42)(function () { |
|
5855 return !new $ArrayBuffer(2).slice(1, undefined).byteLength; |
|
5856 }), ARRAY_BUFFER, { |
|
5857 // 24.1.4.3 ArrayBuffer.prototype.slice(start, end) |
|
5858 slice: function slice(start, end) { |
|
5859 if ($slice !== undefined && end === undefined) return $slice.call(anObject(this), start); // FF fix |
|
5860 var len = anObject(this).byteLength; |
|
5861 var first = toAbsoluteIndex(start, len); |
|
5862 var fin = toAbsoluteIndex(end === undefined ? len : end, len); |
|
5863 var result = new (speciesConstructor(this, $ArrayBuffer))(toLength(fin - first)); |
|
5864 var viewS = new $DataView(this); |
|
5865 var viewT = new $DataView(result); |
|
5866 var index = 0; |
|
5867 while (first < fin) { |
|
5868 viewT.setUint8(index++, viewS.getUint8(first++)); |
|
5869 } return result; |
|
5870 } |
|
5871 }); |
|
5872 |
|
5873 _dereq_(99)(ARRAY_BUFFER); |
|
5874 |
|
5875 },{"103":103,"113":113,"117":117,"121":121,"122":122,"16":16,"40":40,"42":42,"46":46,"57":57,"99":99}],256:[function(_dereq_,module,exports){ |
|
5876 var $export = _dereq_(40); |
|
5877 $export($export.G + $export.W + $export.F * !_dereq_(122).ABV, { |
|
5878 DataView: _dereq_(121).DataView |
|
5879 }); |
|
5880 |
|
5881 },{"121":121,"122":122,"40":40}],257:[function(_dereq_,module,exports){ |
|
5882 _dereq_(120)('Float32', 4, function (init) { |
|
5883 return function Float32Array(data, byteOffset, length) { |
|
5884 return init(this, data, byteOffset, length); |
|
5885 }; |
|
5886 }); |
|
5887 |
|
5888 },{"120":120}],258:[function(_dereq_,module,exports){ |
|
5889 _dereq_(120)('Float64', 8, function (init) { |
|
5890 return function Float64Array(data, byteOffset, length) { |
|
5891 return init(this, data, byteOffset, length); |
|
5892 }; |
|
5893 }); |
|
5894 |
|
5895 },{"120":120}],259:[function(_dereq_,module,exports){ |
|
5896 _dereq_(120)('Int16', 2, function (init) { |
|
5897 return function Int16Array(data, byteOffset, length) { |
|
5898 return init(this, data, byteOffset, length); |
|
5899 }; |
|
5900 }); |
|
5901 |
|
5902 },{"120":120}],260:[function(_dereq_,module,exports){ |
|
5903 _dereq_(120)('Int32', 4, function (init) { |
|
5904 return function Int32Array(data, byteOffset, length) { |
|
5905 return init(this, data, byteOffset, length); |
|
5906 }; |
|
5907 }); |
|
5908 |
|
5909 },{"120":120}],261:[function(_dereq_,module,exports){ |
|
5910 _dereq_(120)('Int8', 1, function (init) { |
|
5911 return function Int8Array(data, byteOffset, length) { |
|
5912 return init(this, data, byteOffset, length); |
|
5913 }; |
|
5914 }); |
|
5915 |
|
5916 },{"120":120}],262:[function(_dereq_,module,exports){ |
|
5917 _dereq_(120)('Uint16', 2, function (init) { |
|
5918 return function Uint16Array(data, byteOffset, length) { |
|
5919 return init(this, data, byteOffset, length); |
|
5920 }; |
|
5921 }); |
|
5922 |
|
5923 },{"120":120}],263:[function(_dereq_,module,exports){ |
|
5924 _dereq_(120)('Uint32', 4, function (init) { |
|
5925 return function Uint32Array(data, byteOffset, length) { |
|
5926 return init(this, data, byteOffset, length); |
|
5927 }; |
|
5928 }); |
|
5929 |
|
5930 },{"120":120}],264:[function(_dereq_,module,exports){ |
|
5931 _dereq_(120)('Uint8', 1, function (init) { |
|
5932 return function Uint8Array(data, byteOffset, length) { |
|
5933 return init(this, data, byteOffset, length); |
|
5934 }; |
|
5935 }); |
|
5936 |
|
5937 },{"120":120}],265:[function(_dereq_,module,exports){ |
|
5938 _dereq_(120)('Uint8', 1, function (init) { |
|
5939 return function Uint8ClampedArray(data, byteOffset, length) { |
|
5940 return init(this, data, byteOffset, length); |
|
5941 }; |
|
5942 }, true); |
|
5943 |
|
5944 },{"120":120}],266:[function(_dereq_,module,exports){ |
|
5945 'use strict'; |
|
5946 var each = _dereq_(20)(0); |
|
5947 var redefine = _dereq_(94); |
|
5948 var meta = _dereq_(70); |
|
5949 var assign = _dereq_(73); |
|
5950 var weak = _dereq_(28); |
|
5951 var isObject = _dereq_(57); |
|
5952 var fails = _dereq_(42); |
|
5953 var validate = _dereq_(125); |
|
5954 var WEAK_MAP = 'WeakMap'; |
|
5955 var getWeak = meta.getWeak; |
|
5956 var isExtensible = Object.isExtensible; |
|
5957 var uncaughtFrozenStore = weak.ufstore; |
|
5958 var tmp = {}; |
|
5959 var InternalMap; |
|
5960 |
|
5961 var wrapper = function (get) { |
|
5962 return function WeakMap() { |
|
5963 return get(this, arguments.length > 0 ? arguments[0] : undefined); |
|
5964 }; |
|
5965 }; |
|
5966 |
|
5967 var methods = { |
|
5968 // 23.3.3.3 WeakMap.prototype.get(key) |
|
5969 get: function get(key) { |
|
5970 if (isObject(key)) { |
|
5971 var data = getWeak(key); |
|
5972 if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key); |
|
5973 return data ? data[this._i] : undefined; |
|
5974 } |
|
5975 }, |
|
5976 // 23.3.3.5 WeakMap.prototype.set(key, value) |
|
5977 set: function set(key, value) { |
|
5978 return weak.def(validate(this, WEAK_MAP), key, value); |
|
5979 } |
|
5980 }; |
|
5981 |
|
5982 // 23.3 WeakMap Objects |
|
5983 var $WeakMap = module.exports = _dereq_(29)(WEAK_MAP, wrapper, methods, weak, true, true); |
|
5984 |
|
5985 // IE11 WeakMap frozen keys fix |
|
5986 if (fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) { |
|
5987 InternalMap = weak.getConstructor(wrapper, WEAK_MAP); |
|
5988 assign(InternalMap.prototype, methods); |
|
5989 meta.NEED = true; |
|
5990 each(['delete', 'has', 'get', 'set'], function (key) { |
|
5991 var proto = $WeakMap.prototype; |
|
5992 var method = proto[key]; |
|
5993 redefine(proto, key, function (a, b) { |
|
5994 // store frozen objects on internal weakmap shim |
|
5995 if (isObject(a) && !isExtensible(a)) { |
|
5996 if (!this._f) this._f = new InternalMap(); |
|
5997 var result = this._f[key](a, b); |
|
5998 return key == 'set' ? this : result; |
|
5999 // store all the rest on native weakmap |
|
6000 } return method.call(this, a, b); |
|
6001 }); |
|
6002 }); |
|
6003 } |
|
6004 |
|
6005 },{"125":125,"20":20,"28":28,"29":29,"42":42,"57":57,"70":70,"73":73,"94":94}],267:[function(_dereq_,module,exports){ |
|
6006 'use strict'; |
|
6007 var weak = _dereq_(28); |
|
6008 var validate = _dereq_(125); |
|
6009 var WEAK_SET = 'WeakSet'; |
|
6010 |
|
6011 // 23.4 WeakSet Objects |
|
6012 _dereq_(29)(WEAK_SET, function (get) { |
|
6013 return function WeakSet() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; |
|
6014 }, { |
|
6015 // 23.4.3.1 WeakSet.prototype.add(value) |
|
6016 add: function add(value) { |
|
6017 return weak.def(validate(this, WEAK_SET), value, true); |
|
6018 } |
|
6019 }, weak, false, true); |
|
6020 |
|
6021 },{"125":125,"28":28,"29":29}],268:[function(_dereq_,module,exports){ |
|
6022 'use strict'; |
|
6023 // https://github.com/tc39/Array.prototype.includes |
|
6024 var $export = _dereq_(40); |
|
6025 var $includes = _dereq_(19)(true); |
|
6026 |
|
6027 $export($export.P, 'Array', { |
|
6028 includes: function includes(el /* , fromIndex = 0 */) { |
|
6029 return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined); |
|
6030 } |
|
6031 }); |
|
6032 |
|
6033 _dereq_(13)('includes'); |
|
6034 |
|
6035 },{"13":13,"19":19,"40":40}],269:[function(_dereq_,module,exports){ |
|
6036 // https://github.com/tc39/proposal-object-values-entries |
|
6037 var $export = _dereq_(40); |
|
6038 var $entries = _dereq_(86)(true); |
|
6039 |
|
6040 $export($export.S, 'Object', { |
|
6041 entries: function entries(it) { |
|
6042 return $entries(it); |
|
6043 } |
|
6044 }); |
|
6045 |
|
6046 },{"40":40,"86":86}],270:[function(_dereq_,module,exports){ |
|
6047 // https://github.com/tc39/proposal-object-getownpropertydescriptors |
|
6048 var $export = _dereq_(40); |
|
6049 var ownKeys = _dereq_(87); |
|
6050 var toIObject = _dereq_(116); |
|
6051 var gOPD = _dereq_(77); |
|
6052 var createProperty = _dereq_(31); |
|
6053 |
|
6054 $export($export.S, 'Object', { |
|
6055 getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) { |
|
6056 var O = toIObject(object); |
|
6057 var getDesc = gOPD.f; |
|
6058 var keys = ownKeys(O); |
|
6059 var result = {}; |
|
6060 var i = 0; |
|
6061 var key, desc; |
|
6062 while (keys.length > i) { |
|
6063 desc = getDesc(O, key = keys[i++]); |
|
6064 if (desc !== undefined) createProperty(result, key, desc); |
|
6065 } |
|
6066 return result; |
|
6067 } |
|
6068 }); |
|
6069 |
|
6070 },{"116":116,"31":31,"40":40,"77":77,"87":87}],271:[function(_dereq_,module,exports){ |
|
6071 // https://github.com/tc39/proposal-object-values-entries |
|
6072 var $export = _dereq_(40); |
|
6073 var $values = _dereq_(86)(false); |
|
6074 |
|
6075 $export($export.S, 'Object', { |
|
6076 values: function values(it) { |
|
6077 return $values(it); |
|
6078 } |
|
6079 }); |
|
6080 |
|
6081 },{"40":40,"86":86}],272:[function(_dereq_,module,exports){ |
|
6082 // https://github.com/tc39/proposal-promise-finally |
|
6083 'use strict'; |
|
6084 var $export = _dereq_(40); |
|
6085 var core = _dereq_(30); |
|
6086 var global = _dereq_(46); |
|
6087 var speciesConstructor = _dereq_(103); |
|
6088 var promiseResolve = _dereq_(91); |
|
6089 |
|
6090 $export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) { |
|
6091 var C = speciesConstructor(this, core.Promise || global.Promise); |
|
6092 var isFunction = typeof onFinally == 'function'; |
|
6093 return this.then( |
|
6094 isFunction ? function (x) { |
|
6095 return promiseResolve(C, onFinally()).then(function () { return x; }); |
|
6096 } : onFinally, |
|
6097 isFunction ? function (e) { |
|
6098 return promiseResolve(C, onFinally()).then(function () { throw e; }); |
|
6099 } : onFinally |
|
6100 ); |
|
6101 } }); |
|
6102 |
|
6103 },{"103":103,"30":30,"40":40,"46":46,"91":91}],273:[function(_dereq_,module,exports){ |
|
6104 'use strict'; |
|
6105 // https://github.com/tc39/proposal-string-pad-start-end |
|
6106 var $export = _dereq_(40); |
|
6107 var $pad = _dereq_(108); |
|
6108 var userAgent = _dereq_(124); |
|
6109 |
|
6110 // https://github.com/zloirock/core-js/issues/280 |
|
6111 $export($export.P + $export.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(userAgent), 'String', { |
|
6112 padEnd: function padEnd(maxLength /* , fillString = ' ' */) { |
|
6113 return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false); |
|
6114 } |
|
6115 }); |
|
6116 |
|
6117 },{"108":108,"124":124,"40":40}],274:[function(_dereq_,module,exports){ |
|
6118 'use strict'; |
|
6119 // https://github.com/tc39/proposal-string-pad-start-end |
|
6120 var $export = _dereq_(40); |
|
6121 var $pad = _dereq_(108); |
|
6122 var userAgent = _dereq_(124); |
|
6123 |
|
6124 // https://github.com/zloirock/core-js/issues/280 |
|
6125 $export($export.P + $export.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(userAgent), 'String', { |
|
6126 padStart: function padStart(maxLength /* , fillString = ' ' */) { |
|
6127 return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true); |
|
6128 } |
|
6129 }); |
|
6130 |
|
6131 },{"108":108,"124":124,"40":40}],275:[function(_dereq_,module,exports){ |
|
6132 _dereq_(126)('asyncIterator'); |
|
6133 |
|
6134 },{"126":126}],276:[function(_dereq_,module,exports){ |
|
6135 var $iterators = _dereq_(140); |
|
6136 var getKeys = _dereq_(83); |
|
6137 var redefine = _dereq_(94); |
|
6138 var global = _dereq_(46); |
|
6139 var hide = _dereq_(48); |
|
6140 var Iterators = _dereq_(64); |
|
6141 var wks = _dereq_(128); |
|
6142 var ITERATOR = wks('iterator'); |
|
6143 var TO_STRING_TAG = wks('toStringTag'); |
|
6144 var ArrayValues = Iterators.Array; |
|
6145 |
|
6146 var DOMIterables = { |
|
6147 CSSRuleList: true, // TODO: Not spec compliant, should be false. |
|
6148 CSSStyleDeclaration: false, |
|
6149 CSSValueList: false, |
|
6150 ClientRectList: false, |
|
6151 DOMRectList: false, |
|
6152 DOMStringList: false, |
|
6153 DOMTokenList: true, |
|
6154 DataTransferItemList: false, |
|
6155 FileList: false, |
|
6156 HTMLAllCollection: false, |
|
6157 HTMLCollection: false, |
|
6158 HTMLFormElement: false, |
|
6159 HTMLSelectElement: false, |
|
6160 MediaList: true, // TODO: Not spec compliant, should be false. |
|
6161 MimeTypeArray: false, |
|
6162 NamedNodeMap: false, |
|
6163 NodeList: true, |
|
6164 PaintRequestList: false, |
|
6165 Plugin: false, |
|
6166 PluginArray: false, |
|
6167 SVGLengthList: false, |
|
6168 SVGNumberList: false, |
|
6169 SVGPathSegList: false, |
|
6170 SVGPointList: false, |
|
6171 SVGStringList: false, |
|
6172 SVGTransformList: false, |
|
6173 SourceBufferList: false, |
|
6174 StyleSheetList: true, // TODO: Not spec compliant, should be false. |
|
6175 TextTrackCueList: false, |
|
6176 TextTrackList: false, |
|
6177 TouchList: false |
|
6178 }; |
|
6179 |
|
6180 for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) { |
|
6181 var NAME = collections[i]; |
|
6182 var explicit = DOMIterables[NAME]; |
|
6183 var Collection = global[NAME]; |
|
6184 var proto = Collection && Collection.prototype; |
|
6185 var key; |
|
6186 if (proto) { |
|
6187 if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues); |
|
6188 if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); |
|
6189 Iterators[NAME] = ArrayValues; |
|
6190 if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true); |
|
6191 } |
|
6192 } |
|
6193 |
|
6194 },{"128":128,"140":140,"46":46,"48":48,"64":64,"83":83,"94":94}],277:[function(_dereq_,module,exports){ |
|
6195 var $export = _dereq_(40); |
|
6196 var $task = _dereq_(112); |
|
6197 $export($export.G + $export.B, { |
|
6198 setImmediate: $task.set, |
|
6199 clearImmediate: $task.clear |
|
6200 }); |
|
6201 |
|
6202 },{"112":112,"40":40}],278:[function(_dereq_,module,exports){ |
|
6203 // ie9- setTimeout & setInterval additional parameters fix |
|
6204 var global = _dereq_(46); |
|
6205 var $export = _dereq_(40); |
|
6206 var userAgent = _dereq_(124); |
|
6207 var slice = [].slice; |
|
6208 var MSIE = /MSIE .\./.test(userAgent); // <- dirty ie9- check |
|
6209 var wrap = function (set) { |
|
6210 return function (fn, time /* , ...args */) { |
|
6211 var boundArgs = arguments.length > 2; |
|
6212 var args = boundArgs ? slice.call(arguments, 2) : false; |
|
6213 return set(boundArgs ? function () { |
|
6214 // eslint-disable-next-line no-new-func |
|
6215 (typeof fn == 'function' ? fn : Function(fn)).apply(this, args); |
|
6216 } : fn, time); |
|
6217 }; |
|
6218 }; |
|
6219 $export($export.G + $export.B + $export.F * MSIE, { |
|
6220 setTimeout: wrap(global.setTimeout), |
|
6221 setInterval: wrap(global.setInterval) |
|
6222 }); |
|
6223 |
|
6224 },{"124":124,"40":40,"46":46}],279:[function(_dereq_,module,exports){ |
|
6225 _dereq_(278); |
|
6226 _dereq_(277); |
|
6227 _dereq_(276); |
|
6228 module.exports = _dereq_(30); |
|
6229 |
|
6230 },{"276":276,"277":277,"278":278,"30":30}],280:[function(_dereq_,module,exports){ |
|
6231 /** |
|
6232 * Copyright (c) 2014-present, Facebook, Inc. |
|
6233 * |
|
6234 * This source code is licensed under the MIT license found in the |
|
6235 * LICENSE file in the root directory of this source tree. |
|
6236 */ |
|
6237 |
|
6238 !(function(global) { |
|
6239 "use strict"; |
|
6240 |
|
6241 var Op = Object.prototype; |
|
6242 var hasOwn = Op.hasOwnProperty; |
|
6243 var undefined; // More compressible than void 0. |
|
6244 var $Symbol = typeof Symbol === "function" ? Symbol : {}; |
|
6245 var iteratorSymbol = $Symbol.iterator || "@@iterator"; |
|
6246 var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; |
|
6247 var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; |
|
6248 |
|
6249 var inModule = typeof module === "object"; |
|
6250 var runtime = global.regeneratorRuntime; |
|
6251 if (runtime) { |
|
6252 if (inModule) { |
|
6253 // If regeneratorRuntime is defined globally and we're in a module, |
|
6254 // make the exports object identical to regeneratorRuntime. |
|
6255 module.exports = runtime; |
|
6256 } |
|
6257 // Don't bother evaluating the rest of this file if the runtime was |
|
6258 // already defined globally. |
|
6259 return; |
|
6260 } |
|
6261 |
|
6262 // Define the runtime globally (as expected by generated code) as either |
|
6263 // module.exports (if we're in a module) or a new, empty object. |
|
6264 runtime = global.regeneratorRuntime = inModule ? module.exports : {}; |
|
6265 |
|
6266 function wrap(innerFn, outerFn, self, tryLocsList) { |
|
6267 // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. |
|
6268 var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; |
|
6269 var generator = Object.create(protoGenerator.prototype); |
|
6270 var context = new Context(tryLocsList || []); |
|
6271 |
|
6272 // The ._invoke method unifies the implementations of the .next, |
|
6273 // .throw, and .return methods. |
|
6274 generator._invoke = makeInvokeMethod(innerFn, self, context); |
|
6275 |
|
6276 return generator; |
|
6277 } |
|
6278 runtime.wrap = wrap; |
|
6279 |
|
6280 // Try/catch helper to minimize deoptimizations. Returns a completion |
|
6281 // record like context.tryEntries[i].completion. This interface could |
|
6282 // have been (and was previously) designed to take a closure to be |
|
6283 // invoked without arguments, but in all the cases we care about we |
|
6284 // already have an existing method we want to call, so there's no need |
|
6285 // to create a new function object. We can even get away with assuming |
|
6286 // the method takes exactly one argument, since that happens to be true |
|
6287 // in every case, so we don't have to touch the arguments object. The |
|
6288 // only additional allocation required is the completion record, which |
|
6289 // has a stable shape and so hopefully should be cheap to allocate. |
|
6290 function tryCatch(fn, obj, arg) { |
|
6291 try { |
|
6292 return { type: "normal", arg: fn.call(obj, arg) }; |
|
6293 } catch (err) { |
|
6294 return { type: "throw", arg: err }; |
|
6295 } |
|
6296 } |
|
6297 |
|
6298 var GenStateSuspendedStart = "suspendedStart"; |
|
6299 var GenStateSuspendedYield = "suspendedYield"; |
|
6300 var GenStateExecuting = "executing"; |
|
6301 var GenStateCompleted = "completed"; |
|
6302 |
|
6303 // Returning this object from the innerFn has the same effect as |
|
6304 // breaking out of the dispatch switch statement. |
|
6305 var ContinueSentinel = {}; |
|
6306 |
|
6307 // Dummy constructor functions that we use as the .constructor and |
|
6308 // .constructor.prototype properties for functions that return Generator |
|
6309 // objects. For full spec compliance, you may wish to configure your |
|
6310 // minifier not to mangle the names of these two functions. |
|
6311 function Generator() {} |
|
6312 function GeneratorFunction() {} |
|
6313 function GeneratorFunctionPrototype() {} |
|
6314 |
|
6315 // This is a polyfill for %IteratorPrototype% for environments that |
|
6316 // don't natively support it. |
|
6317 var IteratorPrototype = {}; |
|
6318 IteratorPrototype[iteratorSymbol] = function () { |
|
6319 return this; |
|
6320 }; |
|
6321 |
|
6322 var getProto = Object.getPrototypeOf; |
|
6323 var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); |
|
6324 if (NativeIteratorPrototype && |
|
6325 NativeIteratorPrototype !== Op && |
|
6326 hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { |
|
6327 // This environment has a native %IteratorPrototype%; use it instead |
|
6328 // of the polyfill. |
|
6329 IteratorPrototype = NativeIteratorPrototype; |
|
6330 } |
|
6331 |
|
6332 var Gp = GeneratorFunctionPrototype.prototype = |
|
6333 Generator.prototype = Object.create(IteratorPrototype); |
|
6334 GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; |
|
6335 GeneratorFunctionPrototype.constructor = GeneratorFunction; |
|
6336 GeneratorFunctionPrototype[toStringTagSymbol] = |
|
6337 GeneratorFunction.displayName = "GeneratorFunction"; |
|
6338 |
|
6339 // Helper for defining the .next, .throw, and .return methods of the |
|
6340 // Iterator interface in terms of a single ._invoke method. |
|
6341 function defineIteratorMethods(prototype) { |
|
6342 ["next", "throw", "return"].forEach(function(method) { |
|
6343 prototype[method] = function(arg) { |
|
6344 return this._invoke(method, arg); |
|
6345 }; |
|
6346 }); |
|
6347 } |
|
6348 |
|
6349 runtime.isGeneratorFunction = function(genFun) { |
|
6350 var ctor = typeof genFun === "function" && genFun.constructor; |
|
6351 return ctor |
|
6352 ? ctor === GeneratorFunction || |
|
6353 // For the native GeneratorFunction constructor, the best we can |
|
6354 // do is to check its .name property. |
|
6355 (ctor.displayName || ctor.name) === "GeneratorFunction" |
|
6356 : false; |
|
6357 }; |
|
6358 |
|
6359 runtime.mark = function(genFun) { |
|
6360 if (Object.setPrototypeOf) { |
|
6361 Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); |
|
6362 } else { |
|
6363 genFun.__proto__ = GeneratorFunctionPrototype; |
|
6364 if (!(toStringTagSymbol in genFun)) { |
|
6365 genFun[toStringTagSymbol] = "GeneratorFunction"; |
|
6366 } |
|
6367 } |
|
6368 genFun.prototype = Object.create(Gp); |
|
6369 return genFun; |
|
6370 }; |
|
6371 |
|
6372 // Within the body of any async function, `await x` is transformed to |
|
6373 // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test |
|
6374 // `hasOwn.call(value, "__await")` to determine if the yielded value is |
|
6375 // meant to be awaited. |
|
6376 runtime.awrap = function(arg) { |
|
6377 return { __await: arg }; |
|
6378 }; |
|
6379 |
|
6380 function AsyncIterator(generator) { |
|
6381 function invoke(method, arg, resolve, reject) { |
|
6382 var record = tryCatch(generator[method], generator, arg); |
|
6383 if (record.type === "throw") { |
|
6384 reject(record.arg); |
|
6385 } else { |
|
6386 var result = record.arg; |
|
6387 var value = result.value; |
|
6388 if (value && |
|
6389 typeof value === "object" && |
|
6390 hasOwn.call(value, "__await")) { |
|
6391 return Promise.resolve(value.__await).then(function(value) { |
|
6392 invoke("next", value, resolve, reject); |
|
6393 }, function(err) { |
|
6394 invoke("throw", err, resolve, reject); |
|
6395 }); |
|
6396 } |
|
6397 |
|
6398 return Promise.resolve(value).then(function(unwrapped) { |
|
6399 // When a yielded Promise is resolved, its final value becomes |
|
6400 // the .value of the Promise<{value,done}> result for the |
|
6401 // current iteration. |
|
6402 result.value = unwrapped; |
|
6403 resolve(result); |
|
6404 }, function(error) { |
|
6405 // If a rejected Promise was yielded, throw the rejection back |
|
6406 // into the async generator function so it can be handled there. |
|
6407 return invoke("throw", error, resolve, reject); |
|
6408 }); |
|
6409 } |
|
6410 } |
|
6411 |
|
6412 var previousPromise; |
|
6413 |
|
6414 function enqueue(method, arg) { |
|
6415 function callInvokeWithMethodAndArg() { |
|
6416 return new Promise(function(resolve, reject) { |
|
6417 invoke(method, arg, resolve, reject); |
|
6418 }); |
|
6419 } |
|
6420 |
|
6421 return previousPromise = |
|
6422 // If enqueue has been called before, then we want to wait until |
|
6423 // all previous Promises have been resolved before calling invoke, |
|
6424 // so that results are always delivered in the correct order. If |
|
6425 // enqueue has not been called before, then it is important to |
|
6426 // call invoke immediately, without waiting on a callback to fire, |
|
6427 // so that the async generator function has the opportunity to do |
|
6428 // any necessary setup in a predictable way. This predictability |
|
6429 // is why the Promise constructor synchronously invokes its |
|
6430 // executor callback, and why async functions synchronously |
|
6431 // execute code before the first await. Since we implement simple |
|
6432 // async functions in terms of async generators, it is especially |
|
6433 // important to get this right, even though it requires care. |
|
6434 previousPromise ? previousPromise.then( |
|
6435 callInvokeWithMethodAndArg, |
|
6436 // Avoid propagating failures to Promises returned by later |
|
6437 // invocations of the iterator. |
|
6438 callInvokeWithMethodAndArg |
|
6439 ) : callInvokeWithMethodAndArg(); |
|
6440 } |
|
6441 |
|
6442 // Define the unified helper method that is used to implement .next, |
|
6443 // .throw, and .return (see defineIteratorMethods). |
|
6444 this._invoke = enqueue; |
|
6445 } |
|
6446 |
|
6447 defineIteratorMethods(AsyncIterator.prototype); |
|
6448 AsyncIterator.prototype[asyncIteratorSymbol] = function () { |
|
6449 return this; |
|
6450 }; |
|
6451 runtime.AsyncIterator = AsyncIterator; |
|
6452 |
|
6453 // Note that simple async functions are implemented on top of |
|
6454 // AsyncIterator objects; they just return a Promise for the value of |
|
6455 // the final result produced by the iterator. |
|
6456 runtime.async = function(innerFn, outerFn, self, tryLocsList) { |
|
6457 var iter = new AsyncIterator( |
|
6458 wrap(innerFn, outerFn, self, tryLocsList) |
|
6459 ); |
|
6460 |
|
6461 return runtime.isGeneratorFunction(outerFn) |
|
6462 ? iter // If outerFn is a generator, return the full iterator. |
|
6463 : iter.next().then(function(result) { |
|
6464 return result.done ? result.value : iter.next(); |
|
6465 }); |
|
6466 }; |
|
6467 |
|
6468 function makeInvokeMethod(innerFn, self, context) { |
|
6469 var state = GenStateSuspendedStart; |
|
6470 |
|
6471 return function invoke(method, arg) { |
|
6472 if (state === GenStateExecuting) { |
|
6473 throw new Error("Generator is already running"); |
|
6474 } |
|
6475 |
|
6476 if (state === GenStateCompleted) { |
|
6477 if (method === "throw") { |
|
6478 throw arg; |
|
6479 } |
|
6480 |
|
6481 // Be forgiving, per 25.3.3.3.3 of the spec: |
|
6482 // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume |
|
6483 return doneResult(); |
|
6484 } |
|
6485 |
|
6486 context.method = method; |
|
6487 context.arg = arg; |
|
6488 |
|
6489 while (true) { |
|
6490 var delegate = context.delegate; |
|
6491 if (delegate) { |
|
6492 var delegateResult = maybeInvokeDelegate(delegate, context); |
|
6493 if (delegateResult) { |
|
6494 if (delegateResult === ContinueSentinel) continue; |
|
6495 return delegateResult; |
|
6496 } |
|
6497 } |
|
6498 |
|
6499 if (context.method === "next") { |
|
6500 // Setting context._sent for legacy support of Babel's |
|
6501 // function.sent implementation. |
|
6502 context.sent = context._sent = context.arg; |
|
6503 |
|
6504 } else if (context.method === "throw") { |
|
6505 if (state === GenStateSuspendedStart) { |
|
6506 state = GenStateCompleted; |
|
6507 throw context.arg; |
|
6508 } |
|
6509 |
|
6510 context.dispatchException(context.arg); |
|
6511 |
|
6512 } else if (context.method === "return") { |
|
6513 context.abrupt("return", context.arg); |
|
6514 } |
|
6515 |
|
6516 state = GenStateExecuting; |
|
6517 |
|
6518 var record = tryCatch(innerFn, self, context); |
|
6519 if (record.type === "normal") { |
|
6520 // If an exception is thrown from innerFn, we leave state === |
|
6521 // GenStateExecuting and loop back for another invocation. |
|
6522 state = context.done |
|
6523 ? GenStateCompleted |
|
6524 : GenStateSuspendedYield; |
|
6525 |
|
6526 if (record.arg === ContinueSentinel) { |
|
6527 continue; |
|
6528 } |
|
6529 |
|
6530 return { |
|
6531 value: record.arg, |
|
6532 done: context.done |
|
6533 }; |
|
6534 |
|
6535 } else if (record.type === "throw") { |
|
6536 state = GenStateCompleted; |
|
6537 // Dispatch the exception by looping back around to the |
|
6538 // context.dispatchException(context.arg) call above. |
|
6539 context.method = "throw"; |
|
6540 context.arg = record.arg; |
|
6541 } |
|
6542 } |
|
6543 }; |
|
6544 } |
|
6545 |
|
6546 // Call delegate.iterator[context.method](context.arg) and handle the |
|
6547 // result, either by returning a { value, done } result from the |
|
6548 // delegate iterator, or by modifying context.method and context.arg, |
|
6549 // setting context.delegate to null, and returning the ContinueSentinel. |
|
6550 function maybeInvokeDelegate(delegate, context) { |
|
6551 var method = delegate.iterator[context.method]; |
|
6552 if (method === undefined) { |
|
6553 // A .throw or .return when the delegate iterator has no .throw |
|
6554 // method always terminates the yield* loop. |
|
6555 context.delegate = null; |
|
6556 |
|
6557 if (context.method === "throw") { |
|
6558 if (delegate.iterator.return) { |
|
6559 // If the delegate iterator has a return method, give it a |
|
6560 // chance to clean up. |
|
6561 context.method = "return"; |
|
6562 context.arg = undefined; |
|
6563 maybeInvokeDelegate(delegate, context); |
|
6564 |
|
6565 if (context.method === "throw") { |
|
6566 // If maybeInvokeDelegate(context) changed context.method from |
|
6567 // "return" to "throw", let that override the TypeError below. |
|
6568 return ContinueSentinel; |
|
6569 } |
|
6570 } |
|
6571 |
|
6572 context.method = "throw"; |
|
6573 context.arg = new TypeError( |
|
6574 "The iterator does not provide a 'throw' method"); |
|
6575 } |
|
6576 |
|
6577 return ContinueSentinel; |
|
6578 } |
|
6579 |
|
6580 var record = tryCatch(method, delegate.iterator, context.arg); |
|
6581 |
|
6582 if (record.type === "throw") { |
|
6583 context.method = "throw"; |
|
6584 context.arg = record.arg; |
|
6585 context.delegate = null; |
|
6586 return ContinueSentinel; |
|
6587 } |
|
6588 |
|
6589 var info = record.arg; |
|
6590 |
|
6591 if (! info) { |
|
6592 context.method = "throw"; |
|
6593 context.arg = new TypeError("iterator result is not an object"); |
|
6594 context.delegate = null; |
|
6595 return ContinueSentinel; |
|
6596 } |
|
6597 |
|
6598 if (info.done) { |
|
6599 // Assign the result of the finished delegate to the temporary |
|
6600 // variable specified by delegate.resultName (see delegateYield). |
|
6601 context[delegate.resultName] = info.value; |
|
6602 |
|
6603 // Resume execution at the desired location (see delegateYield). |
|
6604 context.next = delegate.nextLoc; |
|
6605 |
|
6606 // If context.method was "throw" but the delegate handled the |
|
6607 // exception, let the outer generator proceed normally. If |
|
6608 // context.method was "next", forget context.arg since it has been |
|
6609 // "consumed" by the delegate iterator. If context.method was |
|
6610 // "return", allow the original .return call to continue in the |
|
6611 // outer generator. |
|
6612 if (context.method !== "return") { |
|
6613 context.method = "next"; |
|
6614 context.arg = undefined; |
|
6615 } |
|
6616 |
|
6617 } else { |
|
6618 // Re-yield the result returned by the delegate method. |
|
6619 return info; |
|
6620 } |
|
6621 |
|
6622 // The delegate iterator is finished, so forget it and continue with |
|
6623 // the outer generator. |
|
6624 context.delegate = null; |
|
6625 return ContinueSentinel; |
|
6626 } |
|
6627 |
|
6628 // Define Generator.prototype.{next,throw,return} in terms of the |
|
6629 // unified ._invoke helper method. |
|
6630 defineIteratorMethods(Gp); |
|
6631 |
|
6632 Gp[toStringTagSymbol] = "Generator"; |
|
6633 |
|
6634 // A Generator should always return itself as the iterator object when the |
|
6635 // @@iterator function is called on it. Some browsers' implementations of the |
|
6636 // iterator prototype chain incorrectly implement this, causing the Generator |
|
6637 // object to not be returned from this call. This ensures that doesn't happen. |
|
6638 // See https://github.com/facebook/regenerator/issues/274 for more details. |
|
6639 Gp[iteratorSymbol] = function() { |
|
6640 return this; |
|
6641 }; |
|
6642 |
|
6643 Gp.toString = function() { |
|
6644 return "[object Generator]"; |
|
6645 }; |
|
6646 |
|
6647 function pushTryEntry(locs) { |
|
6648 var entry = { tryLoc: locs[0] }; |
|
6649 |
|
6650 if (1 in locs) { |
|
6651 entry.catchLoc = locs[1]; |
|
6652 } |
|
6653 |
|
6654 if (2 in locs) { |
|
6655 entry.finallyLoc = locs[2]; |
|
6656 entry.afterLoc = locs[3]; |
|
6657 } |
|
6658 |
|
6659 this.tryEntries.push(entry); |
|
6660 } |
|
6661 |
|
6662 function resetTryEntry(entry) { |
|
6663 var record = entry.completion || {}; |
|
6664 record.type = "normal"; |
|
6665 delete record.arg; |
|
6666 entry.completion = record; |
|
6667 } |
|
6668 |
|
6669 function Context(tryLocsList) { |
|
6670 // The root entry object (effectively a try statement without a catch |
|
6671 // or a finally block) gives us a place to store values thrown from |
|
6672 // locations where there is no enclosing try statement. |
|
6673 this.tryEntries = [{ tryLoc: "root" }]; |
|
6674 tryLocsList.forEach(pushTryEntry, this); |
|
6675 this.reset(true); |
|
6676 } |
|
6677 |
|
6678 runtime.keys = function(object) { |
|
6679 var keys = []; |
|
6680 for (var key in object) { |
|
6681 keys.push(key); |
|
6682 } |
|
6683 keys.reverse(); |
|
6684 |
|
6685 // Rather than returning an object with a next method, we keep |
|
6686 // things simple and return the next function itself. |
|
6687 return function next() { |
|
6688 while (keys.length) { |
|
6689 var key = keys.pop(); |
|
6690 if (key in object) { |
|
6691 next.value = key; |
|
6692 next.done = false; |
|
6693 return next; |
|
6694 } |
|
6695 } |
|
6696 |
|
6697 // To avoid creating an additional object, we just hang the .value |
|
6698 // and .done properties off the next function object itself. This |
|
6699 // also ensures that the minifier will not anonymize the function. |
|
6700 next.done = true; |
|
6701 return next; |
|
6702 }; |
|
6703 }; |
|
6704 |
|
6705 function values(iterable) { |
|
6706 if (iterable) { |
|
6707 var iteratorMethod = iterable[iteratorSymbol]; |
|
6708 if (iteratorMethod) { |
|
6709 return iteratorMethod.call(iterable); |
|
6710 } |
|
6711 |
|
6712 if (typeof iterable.next === "function") { |
|
6713 return iterable; |
|
6714 } |
|
6715 |
|
6716 if (!isNaN(iterable.length)) { |
|
6717 var i = -1, next = function next() { |
|
6718 while (++i < iterable.length) { |
|
6719 if (hasOwn.call(iterable, i)) { |
|
6720 next.value = iterable[i]; |
|
6721 next.done = false; |
|
6722 return next; |
|
6723 } |
|
6724 } |
|
6725 |
|
6726 next.value = undefined; |
|
6727 next.done = true; |
|
6728 |
|
6729 return next; |
|
6730 }; |
|
6731 |
|
6732 return next.next = next; |
|
6733 } |
|
6734 } |
|
6735 |
|
6736 // Return an iterator with no values. |
|
6737 return { next: doneResult }; |
|
6738 } |
|
6739 runtime.values = values; |
|
6740 |
|
6741 function doneResult() { |
|
6742 return { value: undefined, done: true }; |
|
6743 } |
|
6744 |
|
6745 Context.prototype = { |
|
6746 constructor: Context, |
|
6747 |
|
6748 reset: function(skipTempReset) { |
|
6749 this.prev = 0; |
|
6750 this.next = 0; |
|
6751 // Resetting context._sent for legacy support of Babel's |
|
6752 // function.sent implementation. |
|
6753 this.sent = this._sent = undefined; |
|
6754 this.done = false; |
|
6755 this.delegate = null; |
|
6756 |
|
6757 this.method = "next"; |
|
6758 this.arg = undefined; |
|
6759 |
|
6760 this.tryEntries.forEach(resetTryEntry); |
|
6761 |
|
6762 if (!skipTempReset) { |
|
6763 for (var name in this) { |
|
6764 // Not sure about the optimal order of these conditions: |
|
6765 if (name.charAt(0) === "t" && |
|
6766 hasOwn.call(this, name) && |
|
6767 !isNaN(+name.slice(1))) { |
|
6768 this[name] = undefined; |
|
6769 } |
|
6770 } |
|
6771 } |
|
6772 }, |
|
6773 |
|
6774 stop: function() { |
|
6775 this.done = true; |
|
6776 |
|
6777 var rootEntry = this.tryEntries[0]; |
|
6778 var rootRecord = rootEntry.completion; |
|
6779 if (rootRecord.type === "throw") { |
|
6780 throw rootRecord.arg; |
|
6781 } |
|
6782 |
|
6783 return this.rval; |
|
6784 }, |
|
6785 |
|
6786 dispatchException: function(exception) { |
|
6787 if (this.done) { |
|
6788 throw exception; |
|
6789 } |
|
6790 |
|
6791 var context = this; |
|
6792 function handle(loc, caught) { |
|
6793 record.type = "throw"; |
|
6794 record.arg = exception; |
|
6795 context.next = loc; |
|
6796 |
|
6797 if (caught) { |
|
6798 // If the dispatched exception was caught by a catch block, |
|
6799 // then let that catch block handle the exception normally. |
|
6800 context.method = "next"; |
|
6801 context.arg = undefined; |
|
6802 } |
|
6803 |
|
6804 return !! caught; |
|
6805 } |
|
6806 |
|
6807 for (var i = this.tryEntries.length - 1; i >= 0; --i) { |
|
6808 var entry = this.tryEntries[i]; |
|
6809 var record = entry.completion; |
|
6810 |
|
6811 if (entry.tryLoc === "root") { |
|
6812 // Exception thrown outside of any try block that could handle |
|
6813 // it, so set the completion value of the entire function to |
|
6814 // throw the exception. |
|
6815 return handle("end"); |
|
6816 } |
|
6817 |
|
6818 if (entry.tryLoc <= this.prev) { |
|
6819 var hasCatch = hasOwn.call(entry, "catchLoc"); |
|
6820 var hasFinally = hasOwn.call(entry, "finallyLoc"); |
|
6821 |
|
6822 if (hasCatch && hasFinally) { |
|
6823 if (this.prev < entry.catchLoc) { |
|
6824 return handle(entry.catchLoc, true); |
|
6825 } else if (this.prev < entry.finallyLoc) { |
|
6826 return handle(entry.finallyLoc); |
|
6827 } |
|
6828 |
|
6829 } else if (hasCatch) { |
|
6830 if (this.prev < entry.catchLoc) { |
|
6831 return handle(entry.catchLoc, true); |
|
6832 } |
|
6833 |
|
6834 } else if (hasFinally) { |
|
6835 if (this.prev < entry.finallyLoc) { |
|
6836 return handle(entry.finallyLoc); |
|
6837 } |
|
6838 |
|
6839 } else { |
|
6840 throw new Error("try statement without catch or finally"); |
|
6841 } |
|
6842 } |
|
6843 } |
|
6844 }, |
|
6845 |
|
6846 abrupt: function(type, arg) { |
|
6847 for (var i = this.tryEntries.length - 1; i >= 0; --i) { |
|
6848 var entry = this.tryEntries[i]; |
|
6849 if (entry.tryLoc <= this.prev && |
|
6850 hasOwn.call(entry, "finallyLoc") && |
|
6851 this.prev < entry.finallyLoc) { |
|
6852 var finallyEntry = entry; |
|
6853 break; |
|
6854 } |
|
6855 } |
|
6856 |
|
6857 if (finallyEntry && |
|
6858 (type === "break" || |
|
6859 type === "continue") && |
|
6860 finallyEntry.tryLoc <= arg && |
|
6861 arg <= finallyEntry.finallyLoc) { |
|
6862 // Ignore the finally entry if control is not jumping to a |
|
6863 // location outside the try/catch block. |
|
6864 finallyEntry = null; |
|
6865 } |
|
6866 |
|
6867 var record = finallyEntry ? finallyEntry.completion : {}; |
|
6868 record.type = type; |
|
6869 record.arg = arg; |
|
6870 |
|
6871 if (finallyEntry) { |
|
6872 this.method = "next"; |
|
6873 this.next = finallyEntry.finallyLoc; |
|
6874 return ContinueSentinel; |
|
6875 } |
|
6876 |
|
6877 return this.complete(record); |
|
6878 }, |
|
6879 |
|
6880 complete: function(record, afterLoc) { |
|
6881 if (record.type === "throw") { |
|
6882 throw record.arg; |
|
6883 } |
|
6884 |
|
6885 if (record.type === "break" || |
|
6886 record.type === "continue") { |
|
6887 this.next = record.arg; |
|
6888 } else if (record.type === "return") { |
|
6889 this.rval = this.arg = record.arg; |
|
6890 this.method = "return"; |
|
6891 this.next = "end"; |
|
6892 } else if (record.type === "normal" && afterLoc) { |
|
6893 this.next = afterLoc; |
|
6894 } |
|
6895 |
|
6896 return ContinueSentinel; |
|
6897 }, |
|
6898 |
|
6899 finish: function(finallyLoc) { |
|
6900 for (var i = this.tryEntries.length - 1; i >= 0; --i) { |
|
6901 var entry = this.tryEntries[i]; |
|
6902 if (entry.finallyLoc === finallyLoc) { |
|
6903 this.complete(entry.completion, entry.afterLoc); |
|
6904 resetTryEntry(entry); |
|
6905 return ContinueSentinel; |
|
6906 } |
|
6907 } |
|
6908 }, |
|
6909 |
|
6910 "catch": function(tryLoc) { |
|
6911 for (var i = this.tryEntries.length - 1; i >= 0; --i) { |
|
6912 var entry = this.tryEntries[i]; |
|
6913 if (entry.tryLoc === tryLoc) { |
|
6914 var record = entry.completion; |
|
6915 if (record.type === "throw") { |
|
6916 var thrown = record.arg; |
|
6917 resetTryEntry(entry); |
|
6918 } |
|
6919 return thrown; |
|
6920 } |
|
6921 } |
|
6922 |
|
6923 // The context.catch method must only be called with a location |
|
6924 // argument that corresponds to a known catch block. |
|
6925 throw new Error("illegal catch attempt"); |
|
6926 }, |
|
6927 |
|
6928 delegateYield: function(iterable, resultName, nextLoc) { |
|
6929 this.delegate = { |
|
6930 iterator: values(iterable), |
|
6931 resultName: resultName, |
|
6932 nextLoc: nextLoc |
|
6933 }; |
|
6934 |
|
6935 if (this.method === "next") { |
|
6936 // Deliberately forget the last sent value so that we don't |
|
6937 // accidentally pass it on to the delegate. |
|
6938 this.arg = undefined; |
|
6939 } |
|
6940 |
|
6941 return ContinueSentinel; |
|
6942 } |
|
6943 }; |
|
6944 })( |
|
6945 // In sloppy mode, unbound `this` refers to the global object, fallback to |
|
6946 // Function constructor if we're in global strict mode. That is sadly a form |
|
6947 // of indirect eval which violates Content Security Policy. |
|
6948 (function() { |
|
6949 return this || (typeof self === "object" && self); |
|
6950 })() || Function("return this")() |
|
6951 ); |
|
6952 |
|
6953 },{}]},{},[1]); |