UNPKG

tableexport.jquery.plugin

Version:
19 lines (17 loc) 19.6 kB
es6-promise.auto.min.js:1: WARNING - Suspicious code. The result of the 'not' operator is not being used. !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.ES6Promise=e()}(this,function(){"use strict";function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function e(t){return"function"==typeof t}function n(t){B=t}function r(t){G=t}function o(){return function(){return process.nextTick(a)}}function i(){return"undefined"!=typeof z?function(){z(a)}:c()}function s(){var t=0,e=new J(a),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function u(){var t=new MessageChannel;return t.port1.onmessage=a,function(){return t.port2.postMessage(0)}}function c(){var t=setTimeout;return function(){return t(a,1)}}function a(){for(var t=0;t<W;t+=2){var e=V[t],n=V[t+1];e(n),V[t]=void 0,V[t+1]=void 0}W=0}function f(){try{var t=Function("return this")().require("vertx");return z=t.runOnLoop||t.runOnContext,i()}catch(e){return c()}}function l(t,e){var n=this,r=new this.constructor(p);void 0===r[Z]&&O(r);var o=n._state;if(o){var i=arguments[o-1];G(function(){return P(o,r,i,n._result)})}else E(n,r,t,e);return r}function h(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(p);return g(n,t),n}function p(){}function v(){return new TypeError("You cannot resolve a promise with itself")}function d(){return new TypeError("A promises callback cannot return that same promise.")}function _(t){try{return t.then}catch(e){return nt.error=e,nt}}function y(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function m(t,e,n){G(function(t){var r=!1,o=y(n,e,function(n){r||(r=!0,e!==n?g(t,n):S(t,n))},function(e){r||(r=!0,j(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,j(t,o))},t)}function b(t,e){e._state===tt?S(t,e._result):e._state===et?j(t,e._result):E(e,void 0,function(e){return g(t,e)},function(e){return j(t,e)})}function w(t,n,r){n.constructor===t.constructor&&r===l&&n.constructor.resolve===h?b(t,n):r===nt?(j(t,nt.error),nt.error=null):void 0===r?S(t,n):e(r)?m(t,n,r):S(t,n)}function g(e,n){e===n?j(e,v()):t(n)?w(e,n,_(n)):S(e,n)}function A(t){t._onerror&&t._onerror(t._result),T(t)}function S(t,e){t._state===$&&(t._result=e,t._state=tt,0!==t._subscribers.length&&G(T,t))}function j(t,e){t._state===$&&(t._state=et,t._result=e,G(A,t))}function E(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+tt]=n,o[i+et]=r,0===i&&t._state&&G(T,t)}function T(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,s=0;s<e.length;s+=3)r=e[s],o=e[s+n],r?P(n,r,o,i):o(i);t._subscribers.length=0}}function M(t,e){try{return t(e)}catch(n){return nt.error=n,nt}}function P(t,n,r,o){var i=e(r),s=void 0,u=void 0,c=void 0,a=void 0;if(i){if(s=M(r,o),s===nt?(a=!0,u=s.error,s.error=null):c=!0,n===s)return void j(n,d())}else s=o,c=!0;n._state!==$||(i&&c?g(n,s):a?j(n,u):t===tt?S(n,s):t===et&&j(n,s))}function x(t,e){try{e(function(e){g(t,e)},function(e){j(t,e)})}catch(n){j(t,n)}}function C(){return rt++}function O(t){t[Z]=rt++,t._state=void 0,t._result=void 0,t._subscribers=[]}function k(){return new Error("Array Methods must be provided an Array")}function F(t){return new ot(this,t).promise}function Y(t){var e=this;return new e(U(t)?function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)}:function(t,e){return e(new TypeError("You must pass an array to race."))})}function q(t){var e=this,n=new e(p);return j(n,t),n}function D(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function K(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function L(){var t=void 0;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;if(n){var r=null;try{r=Object.prototype.toString.call(n.resolve())}catch(e){}if("[object Promise]"===r&&!n.cast)return}t.Promise=it}var N=void 0;N=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var U=N,W=0,z=void 0,B=void 0,G=function(t,e){V[W]=t,V[W+1]=e,W+=2,2===W&&(B?B(a):X())},H="undefined"!=typeof window?window:void 0,I=H||{},J=I.MutationObserver||I.WebKitMutationObserver,Q="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),R="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,V=new Array(1e3),X=void 0;X=Q?o():J?s():R?u():void 0===H&&"function"==typeof require?f():c();var Z=Math.random().toString(36).substring(2),$=void 0,tt=1,et=2,nt={error:null},rt=0,ot=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(p),this.promise[Z]||O(this.promise),U(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?S(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&S(this.promise,this._result))):j(this.promise,k())}return t.prototype._enumerate=function(t){for(var e=0;this._state===$&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===h){var o=_(t);if(o===l&&t._state!==$)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===it){var i=new n(p);w(i,t,o),this._willSettleAt(i,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===$&&(this._remaining--,t===et?j(r,n):this._result[e]=n),0===this._remaining&&S(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;E(t,void 0,function(t){return n._settledAt(tt,e,t)},function(t){return n._settledAt(et,e,t)})},t}(),it=function(){function t(e){this[Z]=C(),this._result=this._state=void 0,this._subscribers=[],p!==e&&("function"!=typeof e&&D(),this instanceof t?x(this,e):K())}return t.prototype["catch"]=function(t){return this.then(null,t)},t.prototype["finally"]=function(t){var e=this,n=e.constructor;return e.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){throw e})})},t}();return it.prototype.then=l,it.all=F,it.race=Y,it.resolve=h,it.reject=q,it._setScheduler=n,it._setAsap=r,it._asap=G,it.polyfill=L,it.Promise=it,it.polyfill(),it}); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 0 error(s), 1 warning(s) !function(A,v){"object"==typeof exports&&"undefined"!=typeof module?module.exports=v():"function"==typeof define&&define.amd?define(v):A.ES6Promise=v()}(this,function(){function A(){return function(){return process.nextTick(l)}}function v(){return"undefined"!=typeof B?function(){B(l)}:C()}function R(){var a=0,b=new J(l),c=document.createTextNode("");return b.observe(c,{characterData:!0}),function(){c.data=a=++a%2}}function S(){var a=new MessageChannel;return a.port1.onmessage=l,function(){return a.port2.postMessage(0)}} function C(){var a=setTimeout;return function(){return a(l,1)}}function l(){for(var a=0;a<m;a+=2)(0,q[a])(q[a+1]),q[a]=void 0,q[a+1]=void 0;m=0}function T(){try{var a=Function("return this")().require("vertx");return B=a.runOnLoop||a.runOnContext,v()}catch(b){return C()}}function D(a,b){var c=this,f=new this.constructor(r);void 0===f[y]&&K(f);var d=c._state;if(d){var g=arguments[d-1];k(function(){return L(d,f,g,c._result)})}else E(c,f,a,b);return f}function F(a){if(a&&"object"==typeof a&&a.constructor=== this)return a;var b=new this(r);return w(b,a),b}function r(){}function M(a){try{return a.then}catch(b){return p.error=b,p}}function U(a,b,c,f){try{a.call(b,c,f)}catch(d){return d}}function V(a,b,c){k(function(a){var d=!1,f=U(c,b,function(c){d||(d=!0,b!==c?w(a,c):n(a,c))},function(b){d||(d=!0,h(a,b))},"Settle: "+(a._label||" unknown promise"));!d&&f&&(d=!0,h(a,f))},a)}function W(a,b){b._state===x?n(a,b._result):b._state===t?h(a,b._result):E(b,void 0,function(b){return w(a,b)},function(b){return h(a, b)})}function N(a,b,c){b.constructor===a.constructor&&c===D&&b.constructor.resolve===F?W(a,b):c===p?(h(a,p.error),p.error=null):void 0===c?n(a,b):"function"==typeof c?V(a,b,c):n(a,b)}function w(a,b){if(a===b)h(a,new TypeError("You cannot resolve a promise with itself"));else{var c=typeof b;null===b||"object"!==c&&"function"!==c?n(a,b):N(a,b,M(b))}}function X(a){a._onerror&&a._onerror(a._result);G(a)}function n(a,b){a._state===u&&(a._result=b,a._state=x,0!==a._subscribers.length&&k(G,a))}function h(a, b){a._state===u&&(a._state=t,a._result=b,k(X,a))}function E(a,b,c,f){var d=a._subscribers,g=d.length;a._onerror=null;d[g]=b;d[g+x]=c;d[g+t]=f;0===g&&a._state&&k(G,a)}function G(a){var b=a._subscribers,c=a._state;if(0!==b.length){for(var f,d,g=a._result,e=0;e<b.length;e+=3)f=b[e],d=b[e+c],f?L(c,f,d,g):d(g);a._subscribers.length=0}}function L(a,b,c,f){var d="function"==typeof c,g=void 0,e=void 0,k=void 0,l=void 0;if(d){try{var m=c(f)}catch(Y){m=(p.error=Y,p)}if(g=m,g===p?(l=!0,e=g.error,g.error=null): k=!0,b===g)return void h(b,new TypeError("A promises callback cannot return that same promise."))}else g=f,k=!0;b._state!==u||(d&&k?w(b,g):l?h(b,e):a===x?n(b,g):a===t&&h(b,g))}function Z(a,b){try{b(function(b){w(a,b)},function(b){h(a,b)})}catch(c){h(a,c)}}function K(a){a[y]=O++;a._state=void 0;a._result=void 0;a._subscribers=[]}var H=void 0,P=H=Array.isArray?Array.isArray:function(a){return"[object Array]"===Object.prototype.toString.call(a)},m=0,B=void 0,I=void 0,k=function(a,b){q[m]=a;q[m+1]=b; m+=2;2===m&&(I?I(l):Q())},z=(H="undefined"!=typeof window?window:void 0)||{},J=z.MutationObserver||z.WebKitMutationObserver;z="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process);var aa="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,q=Array(1E3),Q=void 0;Q=z?A():J?R():aa?S():void 0===H&&"function"==typeof require?T():C();var y=Math.random().toString(36).substring(2),u=void 0,x=1,t=2,p={error:null}, O=0,ba=function(){function a(a,c){this._instanceConstructor=a;this.promise=new a(r);this.promise[y]||K(this.promise);P(c)?(this.length=c.length,this._remaining=c.length,this._result=Array(this.length),0===this.length?n(this.promise,this._result):(this.length=this.length||0,this._enumerate(c),0===this._remaining&&n(this.promise,this._result))):h(this.promise,Error("Array Methods must be provided an Array"))}return a.prototype._enumerate=function(a){for(var b=0;this._state===u&&b<a.length;b++)this._eachEntry(a[b], b)},a.prototype._eachEntry=function(a,c){var b=this._instanceConstructor,d=b.resolve;d===F?(d=M(a),d===D&&a._state!==u?this._settledAt(a._state,c,a._result):"function"!=typeof d?(this._remaining--,this._result[c]=a):b===e?(b=new b(r),N(b,a,d),this._willSettleAt(b,c)):this._willSettleAt(new b(function(b){return b(a)}),c)):this._willSettleAt(d(a),c)},a.prototype._settledAt=function(a,c,f){var b=this.promise;b._state===u&&(this._remaining--,a===t?h(b,f):this._result[c]=f);0===this._remaining&&n(b,this._result)}, a.prototype._willSettleAt=function(a,c){var b=this;E(a,void 0,function(a){return b._settledAt(x,c,a)},function(a){return b._settledAt(t,c,a)})},a}(),e=function(){function a(b){this[y]=O++;this._result=this._state=void 0;this._subscribers=[];if(r!==b){if("function"!=typeof b)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(this instanceof a)Z(this,b);else throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."); }}return a.prototype["catch"]=function(a){return this.then(null,a)},a.prototype["finally"]=function(a){var b=this.constructor;return this.then(function(c){return b.resolve(a()).then(function(){return c})},function(c){return b.resolve(a()).then(function(){throw c;})})},a}();return e.prototype.then=D,e.all=function(a){return(new ba(this,a)).promise},e.race=function(a){var b=this;return new b(P(a)?function(c,f){for(var d=a.length,e=0;e<d;e++)b.resolve(a[e]).then(c,f)}:function(a,b){return b(new TypeError("You must pass an array to race."))})}, e.resolve=F,e.reject=function(a){var b=new this(r);return h(b,a),b},e._setScheduler=function(a){I=a},e._setAsap=function(a){k=a},e._asap=k,e.polyfill=function(){var a=void 0;if("undefined"!=typeof global)a=global;else if("undefined"!=typeof self)a=self;else try{a=Function("return this")()}catch(f){throw Error("polyfill failed because global object is unavailable in this environment");}var b=a.Promise;if(b){var c=null;try{c=Object.prototype.toString.call(b.resolve())}catch(f){}if("[object Promise]"=== c&&!b.cast)return}a.Promise=e},e.Promise=e,e.polyfill(),e});