9 lines
129 KiB
JavaScript
9 lines
129 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-40ad1794"],{1368:function(e,t,i){(function(t,i){
|
||
|
/*!
|
||
|
* @overview es6-promise - a tiny implementation of Promises/A+.
|
||
|
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
||
|
* @license Licensed under MIT license
|
||
|
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
||
|
* @version v4.2.8+1e68dce6
|
||
|
*/
|
||
|
(function(t,i){e.exports=i()})(0,(function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function s(e){return"function"===typeof e}var r=void 0;r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var n=r,a=0,o=void 0,h=void 0,l=function(e,t){b[a]=e,b[a+1]=t,a+=2,2===a&&(h?h(A):L())};function d(e){h=e}function u(e){l=e}var _="undefined"!==typeof window?window:void 0,c=_||{},m=c.MutationObserver||c.WebKitMutationObserver,f="undefined"===typeof self&&"undefined"!==typeof t&&"[object process]"==={}.toString.call(t),p="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel;function g(){return function(){return t.nextTick(A)}}function E(){return"undefined"!==typeof o?function(){o(A)}:y()}function v(){var e=0,t=new m(A),i=document.createTextNode("");return t.observe(i,{characterData:!0}),function(){i.data=e=++e%2}}function S(){var e=new MessageChannel;return e.port1.onmessage=A,function(){return e.port2.postMessage(0)}}function y(){var e=setTimeout;return function(){return e(A,1)}}var b=new Array(1e3);function A(){for(var e=0;e<a;e+=2){var t=b[e],i=b[e+1];t(i),b[e]=void 0,b[e+1]=void 0}a=0}function R(){try{var e=Function("return this")().require("vertx");return o=e.runOnLoop||e.runOnContext,E()}catch(t){return y()}}var L=void 0;function w(e,t){var i=this,s=new this.constructor(C);void 0===s[k]&&X(s);var r=i._state;if(r){var n=arguments[r-1];l((function(){return H(r,s,n,i._result)}))}else j(i,s,e,t);return s}function T(e){var t=this;if(e&&"object"===typeof e&&e.constructor===t)return e;var i=new t(C);return F(i,e),i}L=f?g():m?v():p?S():void 0===_?R():y();var k=Math.random().toString(36).substring(2);function C(){}var I=void 0,D=1,O=2;function M(){return new TypeError("You cannot resolve a promise with itself")}function B(){return new TypeError("A promises callback cannot return that same promise.")}function x(e,t,i,s){try{e.call(t,i,s)}catch(r){return r}}function U(e,t,i){l((function(e){var s=!1,r=x(i,t,(function(i){s||(s=!0,t!==i?F(e,i):V(e,i))}),(function(t){s||(s=!0,z(e,t))}),"Settle: "+(e._label||" unknown promise"));!s&&r&&(s=!0,z(e,r))}),e)}function N(e,t){t._state===D?V(e,t._result):t._state===O?z(e,t._result):j(t,void 0,(function(t){return F(e,t)}),(function(t){return z(e,t)}))}function P(e,t,i){t.constructor===e.constructor&&i===w&&t.constructor.resolve===T?N(e,t):void 0===i?V(e,t):s(i)?U(e,t,i):V(e,t)}function F(t,i){if(t===i)z(t,M());else if(e(i)){var s=void 0;try{s=i.then}catch(r){return void z(t,r)}P(t,i,s)}else V(t,i)}function G(e){e._onerror&&e._onerror(e._result),K(e)}function V(e,t){e._state===I&&(e._result=t,e._state=D,0!==e._subscribers.length&&l(K,e))}function z(e,t){e._state===I&&(e._state=O,e._result=t,l(G,e))}function j(e,t,i,s){var r=e._subscribers,n=r.length;e._onerror=null,r[n]=t,r[n+D]=i,r[n+O]=s,0===n&&e._state&&l(K,e)}function K(e){var t=e._subscribers,i=e._state;if(0!==t.length){for(var s=void 0,r=void 0,n=e._result,a=0;a<t.length;a+=3)s=t[a],r=t[a+i],s?H(i,s,r,n):r(n);e._subscribers.length=0}}function H(e,t,i,r){var n=s(i),a=void 0,o=void 0,h=!0;if(n){try{a=i(r)}catch(l){h=!1,o=l}if(t===a)return void z(t,B())}else a=r;t._state!==I||(n&&h?F(t,a):!1===h?z(t,o):e===D?V(t,a):e===O&&z(t,a))}function q(e,t){try{t((function(t){F(e,t)}),(function(t){z(e,t)}))}catch(i){z(e,i)}}var W=0;function $(){return W++}function X(e){e[k]=W++,e._state=void 0,e._result=void 0,e._subscribers=[]}function Y(){return new Error("Array Methods must be provided an Array")}var Z=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(C),this.promise[k]||X(this.promise),n(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?V(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&V(this.promise,this._result))):z(this.promise,Y())}return e.prototype._enumerate=function(e){for(var t=0;this._state===I&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t
|