@awaitbox/document-ready
Version:
@awaitbox/document-ready ========================
1 lines • 17.8 kB
JavaScript
var documentReady=function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};return a[d].call(e.exports,e,e.exports,b),e.l=!0,e.exports}var c={};return b.m=a,b.c=c,b.d=function(a,c,d){b.o(a,c)||Object.defineProperty(a,c,{configurable:!1,enumerable:!0,get:d})},b.n=function(a){var c=a&&a.__esModule?function(){return a['default']}:function(){return a};return b.d(c,'a',c),c},b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},b.p='',b(b.s=35)}([function(a){var b=a.exports='undefined'!=typeof window&&window.Math==Math?window:'undefined'!=typeof self&&self.Math==Math?self:Function('return this')();'number'==typeof __g&&(__g=b)},function(a,b,c){var d=c(26)('wks'),e=c(27),f=c(0).Symbol,g='function'==typeof f,h=a.exports=function(a){return d[a]||(d[a]=g&&f[a]||(g?f:e)('Symbol.'+a))};h.store=d},function(a,b,c){var d=c(5);a.exports=function(a){if(!d(a))throw TypeError(a+' is not an object!');return a}},function(a){var b=a.exports={version:'2.5.5'};'number'==typeof __e&&(__e=b)},function(a,b,c){var d=c(11),e=c(24);a.exports=c(6)?function(a,b,c){return d.f(a,b,e(1,c))}:function(a,b,c){return a[b]=c,a}},function(a){a.exports=function(a){return'object'==typeof a?null!==a:'function'==typeof a}},function(a,b,c){a.exports=!c(23)(function(){return 7!=Object.defineProperty({},'a',{get:function(){return 7}}).a})},function(a){a.exports={}},function(a,b,c){var d=c(0),e=c(3),f=c(9),g=c(4),h=c(12),i='prototype',j=function(a,b,c){var k,l,m,n=a&j.F,o=a&j.G,p=a&j.S,q=a&j.P,r=a&j.B,s=a&j.W,t=o?e:e[b]||(e[b]={}),u=t[i],v=o?d:p?d[b]:(d[b]||{})[i];for(k in o&&(c=b),c)l=!n&&v&&void 0!==v[k],l&&h(t,k)||(m=l?v[k]:c[k],t[k]=o&&'function'!=typeof v[k]?c[k]:r&&l?f(m,d):s&&v[k]==m?function(d){var a=function(e,a,b){if(this instanceof d){switch(arguments.length){case 0:return new d;case 1:return new d(e);case 2:return new d(e,a);}return new d(e,a,b)}return d.apply(this,arguments)};return a[i]=d[i],a}(m):q&&'function'==typeof m?f(Function.call,m):m,q&&((t.virtual||(t.virtual={}))[k]=m,a&j.R&&u&&!u[k]&&g(u,k,m)))};j.F=1,j.G=2,j.S=4,j.P=8,j.B=16,j.W=32,j.U=64,j.R=128,a.exports=j},function(a,b,c){var d=c(10);a.exports=function(e,f,a){return(d(e),void 0===f)?e:1===a?function(b){return e.call(f,b)}:2===a?function(c,a){return e.call(f,c,a)}:3===a?function(d,a,b){return e.call(f,d,a,b)}:function(){return e.apply(f,arguments)}}},function(a){a.exports=function(a){if('function'!=typeof a)throw TypeError(a+' is not a function!');return a}},function(a,b,c){var d=c(2),e=c(41),f=c(42),g=Object.defineProperty;b.f=c(6)?Object.defineProperty:function(a,b,c){if(d(a),b=f(b,!0),d(c),e)try{return g(a,b,c)}catch(a){}if('get'in c||'set'in c)throw TypeError('Accessors not supported!');return'value'in c&&(a[b]=c.value),a}},function(a){var b={}.hasOwnProperty;a.exports=function(a,c){return b.call(a,c)}},function(a){var b={}.toString;a.exports=function(a){return b.call(a).slice(8,-1)}},function(a){var b=Math.ceil,c=Math.floor;a.exports=function(a){return isNaN(a=+a)?0:(0<a?c:b)(a)}},function(a){a.exports=function(a){if(a==void 0)throw TypeError('Can\'t call method on '+a);return a}},function(a,b,c){var d=c(5),e=c(0).document,f=d(e)&&d(e.createElement);a.exports=function(a){return f?e.createElement(a):{}}},function(a,b,c){var d=c(49),e=c(15);a.exports=function(a){return d(e(a))}},function(a,b,c){var d=c(26)('keys'),e=c(27);a.exports=function(a){return d[a]||(d[a]=e(a))}},function(a,b,c){var d=c(11).f,e=c(12),f=c(1)('toStringTag');a.exports=function(a,b,c){a&&!e(a=c?a:a.prototype,f)&&d(a,f,{configurable:!0,value:b})}},function(a,b,c){'use strict';function d(a){var b,c;this.promise=new a(function(a,d){if(b!=void 0||c!=void 0)throw TypeError('Bad Promise constructor');b=a,c=d}),this.resolve=e(b),this.reject=e(c)}var e=c(10);a.exports.f=function(a){return new d(a)}},function(a,b,c){'use strict';var d=c(22),e=c(8),f=c(43),g=c(4),h=c(7),i=c(44),j=c(19),k=c(52),l=c(1)('iterator'),m=!([].keys&&'next'in[].keys()),n='keys',o='values',p=function(){return this};a.exports=function(a,b,c,q,r,s,t){i(c,b,q);var u,v,w,x=function(a){return!m&&a in B?B[a]:a===n?function(){return new c(this,a)}:a===o?function(){return new c(this,a)}:function(){return new c(this,a)}},y=b+' Iterator',z=r==o,A=!1,B=a.prototype,C=B[l]||B['@@iterator']||r&&B[r],D=C||x(r),E=r?z?x('entries'):D:void 0,F='Array'==b?B.entries||C:C;if(F&&(w=k(F.call(new a)),w!==Object.prototype&&w.next&&(j(w,y,!0),!d&&'function'!=typeof w[l]&&g(w,l,p))),z&&C&&C.name!==o&&(A=!0,D=function(){return C.call(this)}),(!d||t)&&(m||A||!B[l])&&g(B,l,D),h[b]=D,h[y]=p,r)if(u={values:z?D:x(o),keys:s?D:x(n),entries:E},t)for(v in u)v in B||f(B,v,u[v]);else e(e.P+e.F*(m||A),b,u);return u}},function(a){a.exports=!0},function(a){a.exports=function(a){try{return!!a()}catch(a){return!0}}},function(a){a.exports=function(a,b){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:b}}},function(a,b,c){var d=c(14),e=Math.min;a.exports=function(a){return 0<a?e(d(a),9007199254740991):0}},function(a,b,c){var d=c(0),e='__core-js_shared__',f=d[e]||(d[e]={});a.exports=function(a){return f[a]||(f[a]={})}},function(a){var b=0,c=Math.random();a.exports=function(a){return'Symbol('.concat(a===void 0?'':a,')_',(++b+c).toString(36))}},function(a){a.exports=['constructor','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','toLocaleString','toString','valueOf']},function(a,b,c){var d=c(0).document;a.exports=d&&d.documentElement},function(a,b,c){var d=c(13),e=c(1)('toStringTag'),f='Arguments'==d(function(){return arguments}()),g=function(a,b){try{return a[b]}catch(a){}};a.exports=function(a){var b,c,h;return a===void 0?'Undefined':null===a?'Null':'string'==typeof(c=g(b=Object(a),e))?c:f?d(b):'Object'==(h=d(b))&&'function'==typeof b.callee?'Arguments':h}},function(a,b,c){var d=c(2),e=c(10),f=c(1)('species');a.exports=function(a,b){var c,g=d(a).constructor;return g===void 0||(c=d(g)[f])==void 0?b:e(c)}},function(a,b,c){var d,e,f,g=c(9),h=c(64),i=c(29),j=c(16),k=c(0),l=k.process,m=k.setImmediate,n=k.clearImmediate,o=k.MessageChannel,p=k.Dispatch,q=0,r={},s='onreadystatechange',t=function(){var a=+this;if(r.hasOwnProperty(a)){var b=r[a];delete r[a],b()}},u=function(a){t.call(a.data)};m&&n||(m=function(a){for(var b=[],c=1;arguments.length>c;)b.push(arguments[c++]);return r[++q]=function(){h('function'==typeof a?a:Function(a),b)},d(q),q},n=function(a){delete r[a]},'process'==c(13)(l)?d=function(a){l.nextTick(g(t,a,1))}:p&&p.now?d=function(a){p.now(g(t,a,1))}:o?(e=new o,f=e.port2,e.port1.onmessage=u,d=g(f.postMessage,f,1)):k.addEventListener&&'function'==typeof postMessage&&!k.importScripts?(d=function(a){k.postMessage(a+'','*')},k.addEventListener('message',u,!1)):s in j('script')?d=function(a){i.appendChild(j('script'))[s]=function(){i.removeChild(this),t.call(a)}}:d=function(a){setTimeout(g(t,a,1),0)}),a.exports={set:m,clear:n}},function(a){a.exports=function(a){try{return{e:!1,v:a()}}catch(a){return{e:!0,v:a}}}},function(a,b,c){var d=c(2),e=c(5),f=c(20);a.exports=function(a,b){if(d(a),e(b)&&b.constructor===a)return b;var c=f.f(a),g=c.resolve;return g(b),c.promise}},function(a,b,c){'use strict';function d(a){return'loading'===document.readyState?new f.a(function(b){document.addEventListener('DOMContentLoaded',function(){return b(a)})}):f.a.resolve(a)}Object.defineProperty(b,'__esModule',{value:!0}),c.d(b,'documentReady',function(){return d}),c.d(b,'version',function(){return g});var e=c(36),f=c.n(e);b['default']=d;var g='2.0.1'},function(a,b,c){a.exports={default:c(37),__esModule:!0}},function(a,b,c){c(38),c(39),c(54),c(58),c(69),c(70),a.exports=c(3).Promise},function(){},function(a,b,c){'use strict';var d=c(40)(!0);c(21)(String,'String',function(a){this._t=a+'',this._i=0},function(){var a,b=this._t,c=this._i;return c>=b.length?{value:void 0,done:!0}:(a=d(b,c),this._i+=a.length,{value:a,done:!1})})},function(a,b,c){var d=c(14),e=c(15);a.exports=function(c){return function(f,g){var h,a,b=e(f)+'',j=d(g),i=b.length;return 0>j||j>=i?c?'':void 0:(h=b.charCodeAt(j),55296>h||56319<h||j+1===i||56320>(a=b.charCodeAt(j+1))||57343<a?c?b.charAt(j):h:c?b.slice(j,j+2):(h-55296<<10)+(a-56320)+65536)}}},function(a,b,c){a.exports=!c(6)&&!c(23)(function(){return 7!=Object.defineProperty(c(16)('div'),'a',{get:function(){return 7}}).a})},function(a,b,c){var d=c(5);a.exports=function(a,b){if(!d(a))return a;var c,e;if(b&&'function'==typeof(c=a.toString)&&!d(e=c.call(a)))return e;if('function'==typeof(c=a.valueOf)&&!d(e=c.call(a)))return e;if(!b&&'function'==typeof(c=a.toString)&&!d(e=c.call(a)))return e;throw TypeError('Can\'t convert object to primitive value')}},function(a,b,c){a.exports=c(4)},function(a,b,c){'use strict';var d=c(45),e=c(24),f=c(19),g={};c(4)(g,c(1)('iterator'),function(){return this}),a.exports=function(a,b,c){a.prototype=d(g,{next:e(1,c)}),f(a,b+' Iterator')}},function(a,b,c){var d=c(2),e=c(46),f=c(28),g=c(18)('IE_PROTO'),h=function(){},j='prototype',k=function(){var a,b=c(16)('iframe'),d=f.length,e='<',g='>';for(b.style.display='none',c(29).appendChild(b),b.src='javascript:',a=b.contentWindow.document,a.open(),a.write(e+'script'+g+'document.F=Object'+e+'/script'+g),a.close(),k=a.F;d--;)delete k[j][f[d]];return k()};a.exports=Object.create||function(a,b){var c;return null===a?c=k():(h[j]=d(a),c=new h,h[j]=null,c[g]=a),void 0===b?c:e(c,b)}},function(a,b,c){var d=c(11),e=c(2),f=c(47);a.exports=c(6)?Object.defineProperties:function(a,b){e(a);for(var c,g=f(b),h=g.length,j=0;h>j;)d.f(a,c=g[j++],b[c]);return a}},function(a,b,c){var d=c(48),e=c(28);a.exports=Object.keys||function(a){return d(a,e)}},function(a,b,c){var d=c(12),e=c(17),f=c(50)(!1),g=c(18)('IE_PROTO');a.exports=function(a,b){var c,h=e(a),j=0,i=[];for(c in h)c!=g&&d(h,c)&&i.push(c);for(;b.length>j;)d(h,c=b[j++])&&(~f(i,c)||i.push(c));return i}},function(a,b,c){var d=c(13);a.exports=Object('z').propertyIsEnumerable(0)?Object:function(a){return'String'==d(a)?a.split(''):Object(a)}},function(a,b,c){var d=c(17),e=c(25),f=c(51);a.exports=function(a){return function(b,c,g){var h,i=d(b),j=e(i.length),k=f(g,j);if(a&&c!=c){for(;j>k;)if(h=i[k++],h!=h)return!0;}else for(;j>k;k++)if((a||k in i)&&i[k]===c)return a||k||0;return!a&&-1}}},function(a,b,c){var d=c(14),e=Math.max,f=Math.min;a.exports=function(a,b){return a=d(a),0>a?e(a+b,0):f(a,b)}},function(a,b,c){var d=c(12),e=c(53),f=c(18)('IE_PROTO'),g=Object.prototype;a.exports=Object.getPrototypeOf||function(a){return a=e(a),d(a,f)?a[f]:'function'==typeof a.constructor&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?g:null}},function(a,b,c){var d=c(15);a.exports=function(a){return Object(d(a))}},function(a,b,c){c(55);for(var d=c(0),e=c(4),f=c(7),g=c(1)('toStringTag'),h='CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList'.split(','),j=0;j<h.length;j++){var i=h[j],k=d[i],l=k&&k.prototype;l&&!l[g]&&e(l,g,i),f[i]=f.Array}},function(a,b,c){'use strict';var d=c(56),e=c(57),f=c(7),g=c(17);a.exports=c(21)(Array,'Array',function(a,b){this._t=g(a),this._i=0,this._k=b},function(){var a=this._t,b=this._k,c=this._i++;return!a||c>=a.length?(this._t=void 0,e(1)):'keys'==b?e(0,c):'values'==b?e(0,a[c]):e(0,[c,a[c]])},'values'),f.Arguments=f.Array,d('keys'),d('values'),d('entries')},function(a){a.exports=function(){}},function(a){a.exports=function(a,b){return{value:b,done:!!a}}},function(a,b,c){'use strict';var d,e,f,g,h=c(22),i=c(0),j=c(9),k=c(30),l=c(8),m=c(5),n=c(10),o=c(59),p=c(60),q=c(31),r=c(32).set,s=c(65)(),t=c(20),u=c(33),v=c(34),w='Promise',x=i.TypeError,y=i.process,z=i[w],A='process'==k(y),B=function(){},D=e=t.f,C=!!function(){try{var a=z.resolve(1),b=(a.constructor={})[c(1)('species')]=function(a){a(B,B)};return(A||'function'==typeof PromiseRejectionEvent)&&a.then(B)instanceof b}catch(a){}}(),E=function(a){var b;return m(a)&&'function'==typeof(b=a.then)&&b},F=function(a,b){if(!a._n){a._n=!0;var c=a._c;s(function(){for(var d=a._v,e=1==a._s,f=0,g=function(b){var c,f,g,h=e?b.ok:b.fail,i=b.resolve,j=b.reject,k=b.domain;try{h?(!e&&(2==a._h&&I(a),a._h=1),!0===h?c=d:(k&&k.enter(),c=h(d),k&&(k.exit(),g=!0)),c===b.promise?j(x('Promise-chain cycle')):(f=E(c))?f.call(c,i,j):i(c)):j(d)}catch(a){k&&!g&&k.exit(),j(a)}};c.length>f;)g(c[f++]);a._c=[],a._n=!1,b&&!a._h&&G(a)})}},G=function(a){r.call(i,function(){var b,c,d,e=a._v,f=H(a);if(f&&(b=u(function(){A?y.emit('unhandledRejection',e,a):(c=i.onunhandledrejection)?c({promise:a,reason:e}):(d=i.console)&&d.error&&d.error('Unhandled promise rejection',e)}),a._h=A||H(a)?2:1),a._a=void 0,f&&b.e)throw b.v})},H=function(a){return 1!==a._h&&0===(a._a||a._c).length},I=function(a){r.call(i,function(){var b;A?y.emit('rejectionHandled',a):(b=i.onrejectionhandled)&&b({promise:a,reason:a._v})})},J=function(a){var b=this;b._d||(b._d=!0,b=b._w||b,b._v=a,b._s=2,!b._a&&(b._a=b._c.slice()),F(b,!0))},K=function(a){var b,c=this;if(!c._d){c._d=!0,c=c._w||c;try{if(c===a)throw x('Promise can\'t be resolved itself');(b=E(a))?s(function(){var d={_w:c,_d:!1};try{b.call(a,j(K,d,1),j(J,d,1))}catch(a){J.call(d,a)}}):(c._v=a,c._s=1,F(c,!1))}catch(a){J.call({_w:c,_d:!1},a)}}};C||(z=function(a){o(this,z,w,'_h'),n(a),d.call(this);try{a(j(K,this,1),j(J,this,1))}catch(a){J.call(this,a)}},d=function(){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},d.prototype=c(66)(z.prototype,{then:function(a,b){var c=D(q(this,z));return c.ok='function'!=typeof a||a,c.fail='function'==typeof b&&b,c.domain=A?y.domain:void 0,this._c.push(c),this._a&&this._a.push(c),this._s&&F(this,!1),c.promise},catch:function(a){return this.then(void 0,a)}}),f=function(){var a=new d;this.promise=a,this.resolve=j(K,a,1),this.reject=j(J,a,1)},t.f=D=function(a){return a===z||a===g?new f(a):e(a)}),l(l.G+l.W+l.F*!C,{Promise:z}),c(19)(z,w),c(67)(w),g=c(3)[w],l(l.S+l.F*!C,w,{reject:function(a){var b=D(this),c=b.reject;return c(a),b.promise}}),l(l.S+l.F*(h||!C),w,{resolve:function(a){return v(h&&this===g?z:this,a)}}),l(l.S+l.F*!(C&&c(68)(function(a){z.all(a)['catch'](B)})),w,{all:function(a){var b=this,c=D(b),d=c.resolve,e=c.reject,f=u(function(){var c=[],f=0,g=1;p(a,!1,function(a){var h=f++,i=!1;c.push(void 0),g++,b.resolve(a).then(function(a){i||(i=!0,c[h]=a,--g||d(c))},e)}),--g||d(c)});return f.e&&e(f.v),c.promise},race:function(a){var b=this,c=D(b),d=c.reject,e=u(function(){p(a,!1,function(a){b.resolve(a).then(c.resolve,d)})});return e.e&&d(e.v),c.promise}})},function(a){a.exports=function(a,b,c,d){if(!(a instanceof b)||d!==void 0&&d in a)throw TypeError(c+': incorrect invocation!');return a}},function(a,b,c){var d=c(9),e=c(61),g=c(62),h=c(2),i=c(25),j=c(63),k={},l={},b=a.exports=function(a,b,c,m,n){var o,p,q,r,s=n?function(){return a}:j(a),t=d(c,m,b?2:1),f=0;if('function'!=typeof s)throw TypeError(a+' is not iterable!');if(g(s)){for(o=i(a.length);o>f;f++)if(r=b?t(h(p=a[f])[0],p[1]):t(a[f]),r===k||r===l)return r;}else for(q=s.call(a);!(p=q.next()).done;)if(r=e(q,t,p.value,b),r===k||r===l)return r};b.BREAK=k,b.RETURN=l},function(a,b,c){var d=c(2);a.exports=function(a,b,c,e){try{return e?b(d(c)[0],c[1]):b(c)}catch(b){var f=a['return'];throw void 0!==f&&d(f.call(a)),b}}},function(a,b,c){var d=c(7),e=c(1)('iterator'),f=Array.prototype;a.exports=function(a){return a!==void 0&&(d.Array===a||f[e]===a)}},function(a,b,c){var d=c(30),e=c(1)('iterator'),f=c(7);a.exports=c(3).getIteratorMethod=function(a){if(a!=void 0)return a[e]||a['@@iterator']||f[d(a)]}},function(a){a.exports=function(a,b,c){var d=c===void 0;switch(b.length){case 0:return d?a():a.call(c);case 1:return d?a(b[0]):a.call(c,b[0]);case 2:return d?a(b[0],b[1]):a.call(c,b[0],b[1]);case 3:return d?a(b[0],b[1],b[2]):a.call(c,b[0],b[1],b[2]);case 4:return d?a(b[0],b[1],b[2],b[3]):a.call(c,b[0],b[1],b[2],b[3]);}return a.apply(c,b)}},function(a,b,c){var d=c(0),e=c(32).set,f=d.MutationObserver||d.WebKitMutationObserver,g=d.process,h=d.Promise,i='process'==c(13)(g);a.exports=function(){var a,b,c,j=function(){var d,e;for(i&&(d=g.domain)&&d.exit();a;){e=a.fn,a=a.next;try{e()}catch(d){throw a?c():b=void 0,d}}b=void 0,d&&d.enter()};if(i)c=function(){g.nextTick(j)};else if(f&&!(d.navigator&&d.navigator.standalone)){var k=!0,l=document.createTextNode('');new f(j).observe(l,{characterData:!0}),c=function(){l.data=k=!k}}else if(h&&h.resolve){var m=h.resolve();c=function(){m.then(j)}}else c=function(){e.call(d,j)};return function(d){var e={fn:d,next:void 0};b&&(b.next=e),a||(a=e,c()),b=e}}},function(a,b,c){var d=c(4);a.exports=function(a,b,c){for(var e in b)c&&a[e]?a[e]=b[e]:d(a,e,b[e]);return a}},function(a,b,c){'use strict';var d=c(0),e=c(3),f=c(11),g=c(6),h=c(1)('species');a.exports=function(a){var b='function'==typeof e[a]?e[a]:d[a];g&&b&&!b[h]&&f.f(b,h,{configurable:!0,get:function(){return this}})}},function(a,b,c){var d=c(1)('iterator'),e=!1;try{var f=[7][d]();f['return']=function(){e=!0},Array.from(f,function(){throw 2})}catch(a){}a.exports=function(a,b){if(!b&&!e)return!1;var c=!1;try{var f=[7],g=f[d]();g.next=function(){return{done:c=!0}},f[d]=function(){return g},a(f)}catch(a){}return c}},function(a,b,c){'use strict';var d=c(8),e=c(3),f=c(0),g=c(31),h=c(34);d(d.P+d.R,'Promise',{finally:function(a){var b=g(this,e.Promise||f.Promise),c='function'==typeof a;return this.then(c?function(c){return h(b,a()).then(function(){return c})}:a,c?function(c){return h(b,a()).then(function(){throw c})}:a)}})},function(a,b,c){'use strict';var d=c(8),e=c(20),f=c(33);d(d.S,'Promise',{try:function(a){var b=e.f(this),c=f(a);return(c.e?b.reject:b.resolve)(c.v),b.promise}})}]);