Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/dist/vendor
File: regenerator-runtime.js
/**
[0] Fix | Delete
* Copyright (c) 2014-present, Facebook, Inc.
[1] Fix | Delete
*
[2] Fix | Delete
* This source code is licensed under the MIT license found in the
[3] Fix | Delete
* LICENSE file in the root directory of this source tree.
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
var runtime = (function (exports) {
[7] Fix | Delete
"use strict";
[8] Fix | Delete
[9] Fix | Delete
var Op = Object.prototype;
[10] Fix | Delete
var hasOwn = Op.hasOwnProperty;
[11] Fix | Delete
var defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; };
[12] Fix | Delete
var undefined; // More compressible than void 0.
[13] Fix | Delete
var $Symbol = typeof Symbol === "function" ? Symbol : {};
[14] Fix | Delete
var iteratorSymbol = $Symbol.iterator || "@@iterator";
[15] Fix | Delete
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
[16] Fix | Delete
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
[17] Fix | Delete
[18] Fix | Delete
function define(obj, key, value) {
[19] Fix | Delete
Object.defineProperty(obj, key, {
[20] Fix | Delete
value: value,
[21] Fix | Delete
enumerable: true,
[22] Fix | Delete
configurable: true,
[23] Fix | Delete
writable: true
[24] Fix | Delete
});
[25] Fix | Delete
return obj[key];
[26] Fix | Delete
}
[27] Fix | Delete
try {
[28] Fix | Delete
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
[29] Fix | Delete
define({}, "");
[30] Fix | Delete
} catch (err) {
[31] Fix | Delete
define = function(obj, key, value) {
[32] Fix | Delete
return obj[key] = value;
[33] Fix | Delete
};
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
function wrap(innerFn, outerFn, self, tryLocsList) {
[37] Fix | Delete
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
[38] Fix | Delete
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
[39] Fix | Delete
var generator = Object.create(protoGenerator.prototype);
[40] Fix | Delete
var context = new Context(tryLocsList || []);
[41] Fix | Delete
[42] Fix | Delete
// The ._invoke method unifies the implementations of the .next,
[43] Fix | Delete
// .throw, and .return methods.
[44] Fix | Delete
defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) });
[45] Fix | Delete
[46] Fix | Delete
return generator;
[47] Fix | Delete
}
[48] Fix | Delete
exports.wrap = wrap;
[49] Fix | Delete
[50] Fix | Delete
// Try/catch helper to minimize deoptimizations. Returns a completion
[51] Fix | Delete
// record like context.tryEntries[i].completion. This interface could
[52] Fix | Delete
// have been (and was previously) designed to take a closure to be
[53] Fix | Delete
// invoked without arguments, but in all the cases we care about we
[54] Fix | Delete
// already have an existing method we want to call, so there's no need
[55] Fix | Delete
// to create a new function object. We can even get away with assuming
[56] Fix | Delete
// the method takes exactly one argument, since that happens to be true
[57] Fix | Delete
// in every case, so we don't have to touch the arguments object. The
[58] Fix | Delete
// only additional allocation required is the completion record, which
[59] Fix | Delete
// has a stable shape and so hopefully should be cheap to allocate.
[60] Fix | Delete
function tryCatch(fn, obj, arg) {
[61] Fix | Delete
try {
[62] Fix | Delete
return { type: "normal", arg: fn.call(obj, arg) };
[63] Fix | Delete
} catch (err) {
[64] Fix | Delete
return { type: "throw", arg: err };
[65] Fix | Delete
}
[66] Fix | Delete
}
[67] Fix | Delete
[68] Fix | Delete
var GenStateSuspendedStart = "suspendedStart";
[69] Fix | Delete
var GenStateSuspendedYield = "suspendedYield";
[70] Fix | Delete
var GenStateExecuting = "executing";
[71] Fix | Delete
var GenStateCompleted = "completed";
[72] Fix | Delete
[73] Fix | Delete
// Returning this object from the innerFn has the same effect as
[74] Fix | Delete
// breaking out of the dispatch switch statement.
[75] Fix | Delete
var ContinueSentinel = {};
[76] Fix | Delete
[77] Fix | Delete
// Dummy constructor functions that we use as the .constructor and
[78] Fix | Delete
// .constructor.prototype properties for functions that return Generator
[79] Fix | Delete
// objects. For full spec compliance, you may wish to configure your
[80] Fix | Delete
// minifier not to mangle the names of these two functions.
[81] Fix | Delete
function Generator() {}
[82] Fix | Delete
function GeneratorFunction() {}
[83] Fix | Delete
function GeneratorFunctionPrototype() {}
[84] Fix | Delete
[85] Fix | Delete
// This is a polyfill for %IteratorPrototype% for environments that
[86] Fix | Delete
// don't natively support it.
[87] Fix | Delete
var IteratorPrototype = {};
[88] Fix | Delete
define(IteratorPrototype, iteratorSymbol, function () {
[89] Fix | Delete
return this;
[90] Fix | Delete
});
[91] Fix | Delete
[92] Fix | Delete
var getProto = Object.getPrototypeOf;
[93] Fix | Delete
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
[94] Fix | Delete
if (NativeIteratorPrototype &&
[95] Fix | Delete
NativeIteratorPrototype !== Op &&
[96] Fix | Delete
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
[97] Fix | Delete
// This environment has a native %IteratorPrototype%; use it instead
[98] Fix | Delete
// of the polyfill.
[99] Fix | Delete
IteratorPrototype = NativeIteratorPrototype;
[100] Fix | Delete
}
[101] Fix | Delete
[102] Fix | Delete
var Gp = GeneratorFunctionPrototype.prototype =
[103] Fix | Delete
Generator.prototype = Object.create(IteratorPrototype);
[104] Fix | Delete
GeneratorFunction.prototype = GeneratorFunctionPrototype;
[105] Fix | Delete
defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: true });
[106] Fix | Delete
defineProperty(
[107] Fix | Delete
GeneratorFunctionPrototype,
[108] Fix | Delete
"constructor",
[109] Fix | Delete
{ value: GeneratorFunction, configurable: true }
[110] Fix | Delete
);
[111] Fix | Delete
GeneratorFunction.displayName = define(
[112] Fix | Delete
GeneratorFunctionPrototype,
[113] Fix | Delete
toStringTagSymbol,
[114] Fix | Delete
"GeneratorFunction"
[115] Fix | Delete
);
[116] Fix | Delete
[117] Fix | Delete
// Helper for defining the .next, .throw, and .return methods of the
[118] Fix | Delete
// Iterator interface in terms of a single ._invoke method.
[119] Fix | Delete
function defineIteratorMethods(prototype) {
[120] Fix | Delete
["next", "throw", "return"].forEach(function(method) {
[121] Fix | Delete
define(prototype, method, function(arg) {
[122] Fix | Delete
return this._invoke(method, arg);
[123] Fix | Delete
});
[124] Fix | Delete
});
[125] Fix | Delete
}
[126] Fix | Delete
[127] Fix | Delete
exports.isGeneratorFunction = function(genFun) {
[128] Fix | Delete
var ctor = typeof genFun === "function" && genFun.constructor;
[129] Fix | Delete
return ctor
[130] Fix | Delete
? ctor === GeneratorFunction ||
[131] Fix | Delete
// For the native GeneratorFunction constructor, the best we can
[132] Fix | Delete
// do is to check its .name property.
[133] Fix | Delete
(ctor.displayName || ctor.name) === "GeneratorFunction"
[134] Fix | Delete
: false;
[135] Fix | Delete
};
[136] Fix | Delete
[137] Fix | Delete
exports.mark = function(genFun) {
[138] Fix | Delete
if (Object.setPrototypeOf) {
[139] Fix | Delete
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
[140] Fix | Delete
} else {
[141] Fix | Delete
genFun.__proto__ = GeneratorFunctionPrototype;
[142] Fix | Delete
define(genFun, toStringTagSymbol, "GeneratorFunction");
[143] Fix | Delete
}
[144] Fix | Delete
genFun.prototype = Object.create(Gp);
[145] Fix | Delete
return genFun;
[146] Fix | Delete
};
[147] Fix | Delete
[148] Fix | Delete
// Within the body of any async function, `await x` is transformed to
[149] Fix | Delete
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
[150] Fix | Delete
// `hasOwn.call(value, "__await")` to determine if the yielded value is
[151] Fix | Delete
// meant to be awaited.
[152] Fix | Delete
exports.awrap = function(arg) {
[153] Fix | Delete
return { __await: arg };
[154] Fix | Delete
};
[155] Fix | Delete
[156] Fix | Delete
function AsyncIterator(generator, PromiseImpl) {
[157] Fix | Delete
function invoke(method, arg, resolve, reject) {
[158] Fix | Delete
var record = tryCatch(generator[method], generator, arg);
[159] Fix | Delete
if (record.type === "throw") {
[160] Fix | Delete
reject(record.arg);
[161] Fix | Delete
} else {
[162] Fix | Delete
var result = record.arg;
[163] Fix | Delete
var value = result.value;
[164] Fix | Delete
if (value &&
[165] Fix | Delete
typeof value === "object" &&
[166] Fix | Delete
hasOwn.call(value, "__await")) {
[167] Fix | Delete
return PromiseImpl.resolve(value.__await).then(function(value) {
[168] Fix | Delete
invoke("next", value, resolve, reject);
[169] Fix | Delete
}, function(err) {
[170] Fix | Delete
invoke("throw", err, resolve, reject);
[171] Fix | Delete
});
[172] Fix | Delete
}
[173] Fix | Delete
[174] Fix | Delete
return PromiseImpl.resolve(value).then(function(unwrapped) {
[175] Fix | Delete
// When a yielded Promise is resolved, its final value becomes
[176] Fix | Delete
// the .value of the Promise<{value,done}> result for the
[177] Fix | Delete
// current iteration.
[178] Fix | Delete
result.value = unwrapped;
[179] Fix | Delete
resolve(result);
[180] Fix | Delete
}, function(error) {
[181] Fix | Delete
// If a rejected Promise was yielded, throw the rejection back
[182] Fix | Delete
// into the async generator function so it can be handled there.
[183] Fix | Delete
return invoke("throw", error, resolve, reject);
[184] Fix | Delete
});
[185] Fix | Delete
}
[186] Fix | Delete
}
[187] Fix | Delete
[188] Fix | Delete
var previousPromise;
[189] Fix | Delete
[190] Fix | Delete
function enqueue(method, arg) {
[191] Fix | Delete
function callInvokeWithMethodAndArg() {
[192] Fix | Delete
return new PromiseImpl(function(resolve, reject) {
[193] Fix | Delete
invoke(method, arg, resolve, reject);
[194] Fix | Delete
});
[195] Fix | Delete
}
[196] Fix | Delete
[197] Fix | Delete
return previousPromise =
[198] Fix | Delete
// If enqueue has been called before, then we want to wait until
[199] Fix | Delete
// all previous Promises have been resolved before calling invoke,
[200] Fix | Delete
// so that results are always delivered in the correct order. If
[201] Fix | Delete
// enqueue has not been called before, then it is important to
[202] Fix | Delete
// call invoke immediately, without waiting on a callback to fire,
[203] Fix | Delete
// so that the async generator function has the opportunity to do
[204] Fix | Delete
// any necessary setup in a predictable way. This predictability
[205] Fix | Delete
// is why the Promise constructor synchronously invokes its
[206] Fix | Delete
// executor callback, and why async functions synchronously
[207] Fix | Delete
// execute code before the first await. Since we implement simple
[208] Fix | Delete
// async functions in terms of async generators, it is especially
[209] Fix | Delete
// important to get this right, even though it requires care.
[210] Fix | Delete
previousPromise ? previousPromise.then(
[211] Fix | Delete
callInvokeWithMethodAndArg,
[212] Fix | Delete
// Avoid propagating failures to Promises returned by later
[213] Fix | Delete
// invocations of the iterator.
[214] Fix | Delete
callInvokeWithMethodAndArg
[215] Fix | Delete
) : callInvokeWithMethodAndArg();
[216] Fix | Delete
}
[217] Fix | Delete
[218] Fix | Delete
// Define the unified helper method that is used to implement .next,
[219] Fix | Delete
// .throw, and .return (see defineIteratorMethods).
[220] Fix | Delete
defineProperty(this, "_invoke", { value: enqueue });
[221] Fix | Delete
}
[222] Fix | Delete
[223] Fix | Delete
defineIteratorMethods(AsyncIterator.prototype);
[224] Fix | Delete
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
[225] Fix | Delete
return this;
[226] Fix | Delete
});
[227] Fix | Delete
exports.AsyncIterator = AsyncIterator;
[228] Fix | Delete
[229] Fix | Delete
// Note that simple async functions are implemented on top of
[230] Fix | Delete
// AsyncIterator objects; they just return a Promise for the value of
[231] Fix | Delete
// the final result produced by the iterator.
[232] Fix | Delete
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
[233] Fix | Delete
if (PromiseImpl === void 0) PromiseImpl = Promise;
[234] Fix | Delete
[235] Fix | Delete
var iter = new AsyncIterator(
[236] Fix | Delete
wrap(innerFn, outerFn, self, tryLocsList),
[237] Fix | Delete
PromiseImpl
[238] Fix | Delete
);
[239] Fix | Delete
[240] Fix | Delete
return exports.isGeneratorFunction(outerFn)
[241] Fix | Delete
? iter // If outerFn is a generator, return the full iterator.
[242] Fix | Delete
: iter.next().then(function(result) {
[243] Fix | Delete
return result.done ? result.value : iter.next();
[244] Fix | Delete
});
[245] Fix | Delete
};
[246] Fix | Delete
[247] Fix | Delete
function makeInvokeMethod(innerFn, self, context) {
[248] Fix | Delete
var state = GenStateSuspendedStart;
[249] Fix | Delete
[250] Fix | Delete
return function invoke(method, arg) {
[251] Fix | Delete
if (state === GenStateExecuting) {
[252] Fix | Delete
throw new Error("Generator is already running");
[253] Fix | Delete
}
[254] Fix | Delete
[255] Fix | Delete
if (state === GenStateCompleted) {
[256] Fix | Delete
if (method === "throw") {
[257] Fix | Delete
throw arg;
[258] Fix | Delete
}
[259] Fix | Delete
[260] Fix | Delete
// Be forgiving, per 25.3.3.3.3 of the spec:
[261] Fix | Delete
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
[262] Fix | Delete
return doneResult();
[263] Fix | Delete
}
[264] Fix | Delete
[265] Fix | Delete
context.method = method;
[266] Fix | Delete
context.arg = arg;
[267] Fix | Delete
[268] Fix | Delete
while (true) {
[269] Fix | Delete
var delegate = context.delegate;
[270] Fix | Delete
if (delegate) {
[271] Fix | Delete
var delegateResult = maybeInvokeDelegate(delegate, context);
[272] Fix | Delete
if (delegateResult) {
[273] Fix | Delete
if (delegateResult === ContinueSentinel) continue;
[274] Fix | Delete
return delegateResult;
[275] Fix | Delete
}
[276] Fix | Delete
}
[277] Fix | Delete
[278] Fix | Delete
if (context.method === "next") {
[279] Fix | Delete
// Setting context._sent for legacy support of Babel's
[280] Fix | Delete
// function.sent implementation.
[281] Fix | Delete
context.sent = context._sent = context.arg;
[282] Fix | Delete
[283] Fix | Delete
} else if (context.method === "throw") {
[284] Fix | Delete
if (state === GenStateSuspendedStart) {
[285] Fix | Delete
state = GenStateCompleted;
[286] Fix | Delete
throw context.arg;
[287] Fix | Delete
}
[288] Fix | Delete
[289] Fix | Delete
context.dispatchException(context.arg);
[290] Fix | Delete
[291] Fix | Delete
} else if (context.method === "return") {
[292] Fix | Delete
context.abrupt("return", context.arg);
[293] Fix | Delete
}
[294] Fix | Delete
[295] Fix | Delete
state = GenStateExecuting;
[296] Fix | Delete
[297] Fix | Delete
var record = tryCatch(innerFn, self, context);
[298] Fix | Delete
if (record.type === "normal") {
[299] Fix | Delete
// If an exception is thrown from innerFn, we leave state ===
[300] Fix | Delete
// GenStateExecuting and loop back for another invocation.
[301] Fix | Delete
state = context.done
[302] Fix | Delete
? GenStateCompleted
[303] Fix | Delete
: GenStateSuspendedYield;
[304] Fix | Delete
[305] Fix | Delete
if (record.arg === ContinueSentinel) {
[306] Fix | Delete
continue;
[307] Fix | Delete
}
[308] Fix | Delete
[309] Fix | Delete
return {
[310] Fix | Delete
value: record.arg,
[311] Fix | Delete
done: context.done
[312] Fix | Delete
};
[313] Fix | Delete
[314] Fix | Delete
} else if (record.type === "throw") {
[315] Fix | Delete
state = GenStateCompleted;
[316] Fix | Delete
// Dispatch the exception by looping back around to the
[317] Fix | Delete
// context.dispatchException(context.arg) call above.
[318] Fix | Delete
context.method = "throw";
[319] Fix | Delete
context.arg = record.arg;
[320] Fix | Delete
}
[321] Fix | Delete
}
[322] Fix | Delete
};
[323] Fix | Delete
}
[324] Fix | Delete
[325] Fix | Delete
// Call delegate.iterator[context.method](context.arg) and handle the
[326] Fix | Delete
// result, either by returning a { value, done } result from the
[327] Fix | Delete
// delegate iterator, or by modifying context.method and context.arg,
[328] Fix | Delete
// setting context.delegate to null, and returning the ContinueSentinel.
[329] Fix | Delete
function maybeInvokeDelegate(delegate, context) {
[330] Fix | Delete
var methodName = context.method;
[331] Fix | Delete
var method = delegate.iterator[methodName];
[332] Fix | Delete
if (method === undefined) {
[333] Fix | Delete
// A .throw or .return when the delegate iterator has no .throw
[334] Fix | Delete
// method, or a missing .next mehtod, always terminate the
[335] Fix | Delete
// yield* loop.
[336] Fix | Delete
context.delegate = null;
[337] Fix | Delete
[338] Fix | Delete
// Note: ["return"] must be used for ES3 parsing compatibility.
[339] Fix | Delete
if (methodName === "throw" && delegate.iterator["return"]) {
[340] Fix | Delete
// If the delegate iterator has a return method, give it a
[341] Fix | Delete
// chance to clean up.
[342] Fix | Delete
context.method = "return";
[343] Fix | Delete
context.arg = undefined;
[344] Fix | Delete
maybeInvokeDelegate(delegate, context);
[345] Fix | Delete
[346] Fix | Delete
if (context.method === "throw") {
[347] Fix | Delete
// If maybeInvokeDelegate(context) changed context.method from
[348] Fix | Delete
// "return" to "throw", let that override the TypeError below.
[349] Fix | Delete
return ContinueSentinel;
[350] Fix | Delete
}
[351] Fix | Delete
}
[352] Fix | Delete
if (methodName !== "return") {
[353] Fix | Delete
context.method = "throw";
[354] Fix | Delete
context.arg = new TypeError(
[355] Fix | Delete
"The iterator does not provide a '" + methodName + "' method");
[356] Fix | Delete
}
[357] Fix | Delete
[358] Fix | Delete
return ContinueSentinel;
[359] Fix | Delete
}
[360] Fix | Delete
[361] Fix | Delete
var record = tryCatch(method, delegate.iterator, context.arg);
[362] Fix | Delete
[363] Fix | Delete
if (record.type === "throw") {
[364] Fix | Delete
context.method = "throw";
[365] Fix | Delete
context.arg = record.arg;
[366] Fix | Delete
context.delegate = null;
[367] Fix | Delete
return ContinueSentinel;
[368] Fix | Delete
}
[369] Fix | Delete
[370] Fix | Delete
var info = record.arg;
[371] Fix | Delete
[372] Fix | Delete
if (! info) {
[373] Fix | Delete
context.method = "throw";
[374] Fix | Delete
context.arg = new TypeError("iterator result is not an object");
[375] Fix | Delete
context.delegate = null;
[376] Fix | Delete
return ContinueSentinel;
[377] Fix | Delete
}
[378] Fix | Delete
[379] Fix | Delete
if (info.done) {
[380] Fix | Delete
// Assign the result of the finished delegate to the temporary
[381] Fix | Delete
// variable specified by delegate.resultName (see delegateYield).
[382] Fix | Delete
context[delegate.resultName] = info.value;
[383] Fix | Delete
[384] Fix | Delete
// Resume execution at the desired location (see delegateYield).
[385] Fix | Delete
context.next = delegate.nextLoc;
[386] Fix | Delete
[387] Fix | Delete
// If context.method was "throw" but the delegate handled the
[388] Fix | Delete
// exception, let the outer generator proceed normally. If
[389] Fix | Delete
// context.method was "next", forget context.arg since it has been
[390] Fix | Delete
// "consumed" by the delegate iterator. If context.method was
[391] Fix | Delete
// "return", allow the original .return call to continue in the
[392] Fix | Delete
// outer generator.
[393] Fix | Delete
if (context.method !== "return") {
[394] Fix | Delete
context.method = "next";
[395] Fix | Delete
context.arg = undefined;
[396] Fix | Delete
}
[397] Fix | Delete
[398] Fix | Delete
} else {
[399] Fix | Delete
// Re-yield the result returned by the delegate method.
[400] Fix | Delete
return info;
[401] Fix | Delete
}
[402] Fix | Delete
[403] Fix | Delete
// The delegate iterator is finished, so forget it and continue with
[404] Fix | Delete
// the outer generator.
[405] Fix | Delete
context.delegate = null;
[406] Fix | Delete
return ContinueSentinel;
[407] Fix | Delete
}
[408] Fix | Delete
[409] Fix | Delete
// Define Generator.prototype.{next,throw,return} in terms of the
[410] Fix | Delete
// unified ._invoke helper method.
[411] Fix | Delete
defineIteratorMethods(Gp);
[412] Fix | Delete
[413] Fix | Delete
define(Gp, toStringTagSymbol, "Generator");
[414] Fix | Delete
[415] Fix | Delete
// A Generator should always return itself as the iterator object when the
[416] Fix | Delete
// @@iterator function is called on it. Some browsers' implementations of the
[417] Fix | Delete
// iterator prototype chain incorrectly implement this, causing the Generator
[418] Fix | Delete
// object to not be returned from this call. This ensures that doesn't happen.
[419] Fix | Delete
// See https://github.com/facebook/regenerator/issues/274 for more details.
[420] Fix | Delete
define(Gp, iteratorSymbol, function() {
[421] Fix | Delete
return this;
[422] Fix | Delete
});
[423] Fix | Delete
[424] Fix | Delete
define(Gp, "toString", function() {
[425] Fix | Delete
return "[object Generator]";
[426] Fix | Delete
});
[427] Fix | Delete
[428] Fix | Delete
function pushTryEntry(locs) {
[429] Fix | Delete
var entry = { tryLoc: locs[0] };
[430] Fix | Delete
[431] Fix | Delete
if (1 in locs) {
[432] Fix | Delete
entry.catchLoc = locs[1];
[433] Fix | Delete
}
[434] Fix | Delete
[435] Fix | Delete
if (2 in locs) {
[436] Fix | Delete
entry.finallyLoc = locs[2];
[437] Fix | Delete
entry.afterLoc = locs[3];
[438] Fix | Delete
}
[439] Fix | Delete
[440] Fix | Delete
this.tryEntries.push(entry);
[441] Fix | Delete
}
[442] Fix | Delete
[443] Fix | Delete
function resetTryEntry(entry) {
[444] Fix | Delete
var record = entry.completion || {};
[445] Fix | Delete
record.type = "normal";
[446] Fix | Delete
delete record.arg;
[447] Fix | Delete
entry.completion = record;
[448] Fix | Delete
}
[449] Fix | Delete
[450] Fix | Delete
function Context(tryLocsList) {
[451] Fix | Delete
// The root entry object (effectively a try statement without a catch
[452] Fix | Delete
// or a finally block) gives us a place to store values thrown from
[453] Fix | Delete
// locations where there is no enclosing try statement.
[454] Fix | Delete
this.tryEntries = [{ tryLoc: "root" }];
[455] Fix | Delete
tryLocsList.forEach(pushTryEntry, this);
[456] Fix | Delete
this.reset(true);
[457] Fix | Delete
}
[458] Fix | Delete
[459] Fix | Delete
exports.keys = function(val) {
[460] Fix | Delete
var object = Object(val);
[461] Fix | Delete
var keys = [];
[462] Fix | Delete
for (var key in object) {
[463] Fix | Delete
keys.push(key);
[464] Fix | Delete
}
[465] Fix | Delete
keys.reverse();
[466] Fix | Delete
[467] Fix | Delete
// Rather than returning an object with a next method, we keep
[468] Fix | Delete
// things simple and return the next function itself.
[469] Fix | Delete
return function next() {
[470] Fix | Delete
while (keys.length) {
[471] Fix | Delete
var key = keys.pop();
[472] Fix | Delete
if (key in object) {
[473] Fix | Delete
next.value = key;
[474] Fix | Delete
next.done = false;
[475] Fix | Delete
return next;
[476] Fix | Delete
}
[477] Fix | Delete
}
[478] Fix | Delete
[479] Fix | Delete
// To avoid creating an additional object, we just hang the .value
[480] Fix | Delete
// and .done properties off the next function object itself. This
[481] Fix | Delete
// also ensures that the minifier will not anonymize the function.
[482] Fix | Delete
next.done = true;
[483] Fix | Delete
return next;
[484] Fix | Delete
};
[485] Fix | Delete
};
[486] Fix | Delete
[487] Fix | Delete
function values(iterable) {
[488] Fix | Delete
if (iterable || iterable === "") {
[489] Fix | Delete
var iteratorMethod = iterable[iteratorSymbol];
[490] Fix | Delete
if (iteratorMethod) {
[491] Fix | Delete
return iteratorMethod.call(iterable);
[492] Fix | Delete
}
[493] Fix | Delete
[494] Fix | Delete
if (typeof iterable.next === "function") {
[495] Fix | Delete
return iterable;
[496] Fix | Delete
}
[497] Fix | Delete
[498] Fix | Delete
if (!isNaN(iterable.length)) {
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function