足力健前端,vue版本

runtime.js 23KB

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