@xysfe/actui
Version:
A fantastic mobile ui lib implement by Vue
1 lines • 22 kB
JavaScript
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.ResourcePreload=n():t.ResourcePreload=n()}("undefined"!=typeof self?self:this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="../es",n(n.s=1759)}({0:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},1:function(t,n,e){var r=e(31)("wks"),o=e(24),i=e(0).Symbol,c="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=c&&i[t]||(c?i:o)("Symbol."+t))}).store=r},10:function(t,n,e){var r=e(4),o=e(41),i=e(38),c=Object.defineProperty;n.f=e(3)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return c(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},100:function(t,n,e){"use strict";var r=e(9),o=e(2),i=e(0),c=e(64),s=e(67);r(r.P+r.R,"Promise",{finally:function(t){var n=c(this,o.Promise||i.Promise),e="function"==typeof t;return this.then(e?function(e){return s(n,t()).then(function(){return e})}:t,e?function(e){return s(n,t()).then(function(){throw e})}:t)}})},101:function(t,n,e){"use strict";var r=e(9),o=e(44),i=e(66);r(r.S,"Promise",{try:function(t){var n=o.f(this),e=i(t);return(e.e?n.reject:n.resolve)(e.v),n.promise}})},11:function(t,n){t.exports={}},12:function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},13:function(t,n,e){var r=e(34),o=e(15);t.exports=function(t){return r(o(t))}},14:function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},15:function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},16:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},17:function(t,n,e){var r=e(19);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},1759:function(t,n,e){"use strict";function r(t,n){return new u.a(function(e,r){var o=new Image;o.onload=function(){e(o)},o.onerror=o.onabort=function(){r("")},n&&(o.crossOrigin="Anonymous"),o.src=t})}function o(t,n){return new u.a(function(e,r){var o=document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript",i.charset="utf-8",i.async=!0,i.timeout=1e4,n&&(i.crossOrigin="Anonymous"),i.onload=function(){e(i)},i.onerror=i.onabort=function(){o.removeChild(i),r("")},i.src=t,o.appendChild(i)})}Object.defineProperty(n,"__esModule",{value:!0});var i=e(630),c=e.n(i),s=e(71),u=e.n(s),a={jpeg:r,jpg:r,png:r,gif:r,js:o};Function.prototype.insertAfter=function(t){var n=this;return function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=n.apply(this,r);t.apply(this,[i])}};var f=function(){function t(n){var e=n.resourceList,r=n.limit,o=n.retry,i=n.crossOrigin,s=void 0!==i&&i;c()(this,t),this.resourceList=e,this.listLen=e.length||0,this.limit=r&&r>0?Math.ceil(r):this.listLen,this.retry=o&&o>0?Math.ceil(o):0,this.promiseList=[],this.Resolve="",this.events={},this.crossOrigin=s,this.retData={errmsg:"",success:0,fail:0,list:[]}}return t.prototype.load=function(t){var n=this;t&&this.reset(t);var e=this.handleErrData(),r=e.errType,o=e.errmsg,i=[];return i=this.resourceList.splice(0,this.limit),new u.a(function(t,e){r?(n.retData.errmsg=o,t(n.retData)):(n.Resolve=t,i.forEach(function(t){n.newEachItem(t)}))})},t.prototype.newEachItem=function(t){var n=this,e={type:"",state:0,downloadObj:"",url:t,resolve:"",_retry:this.retry};e.type=this.getResourceType(t);var r=new u.a(function(t,r){e.resolve=t,n.loadEachItem(e)});this.promiseList.push(r),this.promiseList.length===this.listLen&&u.a.all(this.promiseList).then(function(t){n.Resolve(n.retData)})},t.prototype.loadEachItem=function(t){var n=this,e=t.type.toLowerCase(),r=a[e],o=this.loadSuccess.insertAfter(this.loadFinal),i=this.loadFailed.insertAfter(this.loadFinal);r?r(t.url,this.crossOrigin).then(function(e){o.call(n,t,e)}).catch(function(e){t._retry<=0?i.call(n,t):(t._retry--,n.loadEachItem(t))}):i.call(this,t)},t.prototype.loadSuccess=function(t,n){return t.state=1,t.downloadObj=n,this.retData.success++,t},t.prototype.loadFailed=function(t){return t.state=0,t.downloadObj=null,this.retData.fail++,t},t.prototype.loadFinal=function(t){this.emit("loaded",this.retData.fail+this.retData.success,this.listLen);var n=t.resolve;if(delete t.resolve,delete t._retry,this.retData.list.push(t),this.resourceList.length>0){var e=this.resourceList.shift();this.newEachItem(e)}n(t)},t.prototype.handleErrData=function(){var t=0,n="";return"Array"!==Object.prototype.toString.call(this.resourceList).slice(8,-1)&&(t=1,n="resourceList requires an array!"),this.listLen||(t=2,n="resourceList has no item!"),{errType:t,errmsg:n}},t.prototype.on=function(t,n){this.events[t]||(this.events[t]=[]),this.events[t].push(n)},t.prototype.emit=function(t){for(var n=this,e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];this.events[t]&&this.events[t].forEach(function(t,e){t&&t.call.apply(t,[n].concat(r))})},t.prototype.off=function(t){delete this.events[t]},t.prototype.getResourceType=function(t){var n=t.match(/^data:image\/(\w+);/)||t.match(/\.(\w+)($|\?)/);return n?n[1]:""},t.prototype.reset=function(t){this.resourceList=t,this.listLen=t.length||0,this.promiseList=[],this.Resolve="",this.retData={errmsg:"",success:0,fail:0,list:[]}},t}();n.default=f},18:function(t,n){t.exports=!0},19:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},2:function(t,n){var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},20:function(t,n,e){var r=e(31)("keys"),o=e(24);t.exports=function(t){return r[t]||(r[t]=o(t))}},22:function(t,n,e){var r=e(6),o=e(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},23:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},24:function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},27:function(t,n,e){var r=e(10).f,o=e(8),i=e(1)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},28:function(t,n,e){var r=e(42),o=e(32);t.exports=Object.keys||function(t){return r(t,o)}},3:function(t,n,e){t.exports=!e(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},31:function(t,n,e){var r=e(2),o=e(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return i[t]||(i[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(18)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},32:function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},33:function(t,n,e){var r=e(15);t.exports=function(t){return Object(r(t))}},34:function(t,n,e){var r=e(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},35:function(t,n,e){var r=e(16),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},36:function(t,n,e){"use strict";var r=e(18),o=e(9),i=e(54),c=e(5),s=e(11),u=e(60),a=e(27),f=e(62),l=e(1)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,n,e,v,d,y,m){u(e,n,v);var g,x,_,w=function(t){if(!p&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},b=n+" Iterator",j="values"==d,L=!1,O=t.prototype,P=O[l]||O["@@iterator"]||d&&O[d],S=P||w(d),T=d?j?w("entries"):S:void 0,E="Array"==n?O.entries||P:P;if(E&&(_=f(E.call(new t)))!==Object.prototype&&_.next&&(a(_,b,!0),r||"function"==typeof _[l]||c(_,l,h)),j&&P&&"values"!==P.name&&(L=!0,S=function(){return P.call(this)}),r&&!m||!p&&!L&&O[l]||c(O,l,S),s[n]=S,s[b]=h,d)if(g={values:j?S:w("values"),keys:y?S:w("keys"),entries:T},m)for(x in g)x in O||i(O,x,g[x]);else o(o.P+o.F*(p||L),n,g);return g}},38:function(t,n,e){var r=e(6);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},4:function(t,n,e){var r=e(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},41:function(t,n,e){t.exports=!e(3)&&!e(12)(function(){return 7!=Object.defineProperty(e(22)("div"),"a",{get:function(){return 7}}).a})},42:function(t,n,e){var r=e(8),o=e(13),i=e(46)(!1),c=e(20)("IE_PROTO");t.exports=function(t,n){var e,s=o(t),u=0,a=[];for(e in s)e!=c&&r(s,e)&&a.push(e);for(;n.length>u;)r(s,e=n[u++])&&(~i(a,e)||a.push(e));return a}},43:function(t,n,e){var r=e(0).document;t.exports=r&&r.documentElement},44:function(t,n,e){"use strict";function r(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=r}),this.resolve=o(n),this.reject=o(e)}var o=e(19);t.exports.f=function(t){return new r(t)}},45:function(t,n,e){var r=e(14),o=e(1)("toStringTag"),i="Arguments"==r(function(){return arguments}()),c=function(t,n){try{return t[n]}catch(t){}};t.exports=function(t){var n,e,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=c(n=Object(t),o))?e:i?r(n):"Object"==(s=r(n))&&"function"==typeof n.callee?"Arguments":s}},46:function(t,n,e){var r=e(13),o=e(35),i=e(47);t.exports=function(t){return function(n,e,c){var s,u=r(n),a=o(u.length),f=i(c,a);if(t&&e!=e){for(;a>f;)if((s=u[f++])!=s)return!0}else for(;a>f;f++)if((t||f in u)&&u[f]===e)return t||f||0;return!t&&-1}}},47:function(t,n,e){var r=e(16),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},48:function(t,n,e){"use strict";var r=e(59)(!0);e(36)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},5:function(t,n,e){var r=e(10),o=e(23);t.exports=e(3)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},50:function(t,n,e){e(68);for(var r=e(0),o=e(5),i=e(11),c=e(1)("toStringTag"),s="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(","),u=0;u<s.length;u++){var a=s[u],f=r[a],l=f&&f.prototype;l&&!l[c]&&o(l,c,a),i[a]=i.Array}},52:function(t,n,e){var r=e(4),o=e(61),i=e(32),c=e(20)("IE_PROTO"),s=function(){},u=function(){var t,n=e(22)("iframe"),r=i.length;for(n.style.display="none",e(43).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[i[r]];return u()};t.exports=Object.create||function(t,n){var e;return null!==t?(s.prototype=r(t),e=new s,s.prototype=null,e[c]=t):e=u(),void 0===n?e:o(e,n)}},54:function(t,n,e){t.exports=e(5)},56:function(t,n,e){var r=e(45),o=e(1)("iterator"),i=e(11);t.exports=e(2).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},59:function(t,n,e){var r=e(16),o=e(15);t.exports=function(t){return function(n,e){var i,c,s=String(o(n)),u=r(e),a=s.length;return u<0||u>=a?t?"":void 0:(i=s.charCodeAt(u),i<55296||i>56319||u+1===a||(c=s.charCodeAt(u+1))<56320||c>57343?t?s.charAt(u):i:t?s.slice(u,u+2):c-56320+(i-55296<<10)+65536)}}},6:function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},60:function(t,n,e){"use strict";var r=e(52),o=e(23),i=e(27),c={};e(5)(c,e(1)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(c,{next:o(1,e)}),i(t,n+" Iterator")}},61:function(t,n,e){var r=e(10),o=e(4),i=e(28);t.exports=e(3)?Object.defineProperties:function(t,n){o(t);for(var e,c=i(n),s=c.length,u=0;s>u;)r.f(t,e=c[u++],n[e]);return t}},62:function(t,n,e){var r=e(8),o=e(33),i=e(20)("IE_PROTO"),c=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},63:function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},630:function(t,n,e){"use strict";n.__esModule=!0,n.default=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},64:function(t,n,e){var r=e(4),o=e(19),i=e(1)("species");t.exports=function(t,n){var e,c=r(t).constructor;return void 0===c||void 0==(e=r(c)[i])?n:o(e)}},65:function(t,n,e){var r,o,i,c=e(17),s=e(97),u=e(43),a=e(22),f=e(0),l=f.process,p=f.setImmediate,h=f.clearImmediate,v=f.MessageChannel,d=f.Dispatch,y=0,m={},g=function(){var t=+this;if(m.hasOwnProperty(t)){var n=m[t];delete m[t],n()}},x=function(t){g.call(t.data)};p&&h||(p=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return m[++y]=function(){s("function"==typeof t?t:Function(t),n)},r(y),y},h=function(t){delete m[t]},"process"==e(14)(l)?r=function(t){l.nextTick(c(g,t,1))}:d&&d.now?r=function(t){d.now(c(g,t,1))}:v?(o=new v,i=o.port2,o.port1.onmessage=x,r=c(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",x,!1)):r="onreadystatechange"in a("script")?function(t){u.appendChild(a("script")).onreadystatechange=function(){u.removeChild(this),g.call(t)}}:function(t){setTimeout(c(g,t,1),0)}),t.exports={set:p,clear:h}},66:function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},67:function(t,n,e){var r=e(4),o=e(6),i=e(44);t.exports=function(t,n){if(r(t),o(n)&&n.constructor===t)return n;var e=i.f(t);return(0,e.resolve)(n),e.promise}},68:function(t,n,e){"use strict";var r=e(69),o=e(63),i=e(11),c=e(13);t.exports=e(36)(Array,"Array",function(t,n){this._t=c(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},69:function(t,n){t.exports=function(){}},71:function(t,n,e){t.exports={default:e(95),__esModule:!0}},73:function(t,n){},8:function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},82:function(t,n,e){var r=e(17),o=e(83),i=e(84),c=e(4),s=e(35),u=e(56),a={},f={},n=t.exports=function(t,n,e,l,p){var h,v,d,y,m=p?function(){return t}:u(t),g=r(e,l,n?2:1),x=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(h=s(t.length);h>x;x++)if((y=n?g(c(v=t[x])[0],v[1]):g(t[x]))===a||y===f)return y}else for(d=m.call(t);!(v=d.next()).done;)if((y=o(d,g,v.value,n))===a||y===f)return y};n.BREAK=a,n.RETURN=f},83:function(t,n,e){var r=e(4);t.exports=function(t,n,e,o){try{return o?n(r(e)[0],e[1]):n(e)}catch(n){var i=t.return;throw void 0!==i&&r(i.call(t)),n}}},84:function(t,n,e){var r=e(11),o=e(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},85:function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},86:function(t,n,e){var r=e(5);t.exports=function(t,n,e){for(var o in n)e&&t[o]?t[o]=n[o]:r(t,o,n[o]);return t}},87:function(t,n,e){var r=e(1)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var e=!1;try{var i=[7],c=i[r]();c.next=function(){return{done:e=!0}},i[r]=function(){return c},t(i)}catch(t){}return e}},9:function(t,n,e){var r=e(0),o=e(2),i=e(17),c=e(5),s=e(8),u=function(t,n,e){var a,f,l,p=t&u.F,h=t&u.G,v=t&u.S,d=t&u.P,y=t&u.B,m=t&u.W,g=h?o:o[n]||(o[n]={}),x=g.prototype,_=h?r:v?r[n]:(r[n]||{}).prototype;h&&(e=n);for(a in e)(f=!p&&_&&void 0!==_[a])&&s(g,a)||(l=f?_[a]:e[a],g[a]=h&&"function"!=typeof _[a]?e[a]:y&&f?i(l,r):m&&_[a]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):d&&"function"==typeof l?i(Function.call,l):l,d&&((g.virtual||(g.virtual={}))[a]=l,t&u.R&&x&&!x[a]&&c(x,a,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},91:function(t,n,e){"use strict";var r=e(0),o=e(2),i=e(10),c=e(3),s=e(1)("species");t.exports=function(t){var n="function"==typeof o[t]?o[t]:r[t];c&&n&&!n[s]&&i.f(n,s,{configurable:!0,get:function(){return this}})}},95:function(t,n,e){e(73),e(48),e(50),e(96),e(100),e(101),t.exports=e(2).Promise},96:function(t,n,e){"use strict";var r,o,i,c,s=e(18),u=e(0),a=e(17),f=e(45),l=e(9),p=e(6),h=e(19),v=e(85),d=e(82),y=e(64),m=e(65).set,g=e(98)(),x=e(44),_=e(66),w=e(99),b=e(67),j=u.TypeError,L=u.process,O=L&&L.versions,P=O&&O.v8||"",S=u.Promise,T="process"==f(L),E=function(){},M=o=x.f,A=!!function(){try{var t=S.resolve(1),n=(t.constructor={})[e(1)("species")]=function(t){t(E,E)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof n&&0!==P.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),R=function(t){var n;return!(!p(t)||"function"!=typeof(n=t.then))&&n},k=function(t,n){if(!t._n){t._n=!0;var e=t._c;g(function(){for(var r=t._v,o=1==t._s,i=0;e.length>i;)!function(n){var e,i,c,s=o?n.ok:n.fail,u=n.resolve,a=n.reject,f=n.domain;try{s?(o||(2==t._h&&F(t),t._h=1),!0===s?e=r:(f&&f.enter(),e=s(r),f&&(f.exit(),c=!0)),e===n.promise?a(j("Promise-chain cycle")):(i=R(e))?i.call(e,u,a):u(e)):a(r)}catch(t){f&&!c&&f.exit(),a(t)}}(e[i++]);t._c=[],t._n=!1,n&&!t._h&&C(t)})}},C=function(t){m.call(u,function(){var n,e,r,o=t._v,i=D(t);if(i&&(n=_(function(){T?L.emit("unhandledRejection",o,t):(e=u.onunhandledrejection)?e({promise:t,reason:o}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=T||D(t)?2:1),t._a=void 0,i&&n.e)throw n.v})},D=function(t){return 1!==t._h&&0===(t._a||t._c).length},F=function(t){m.call(u,function(){var n;T?L.emit("rejectionHandled",t):(n=u.onrejectionhandled)&&n({promise:t,reason:t._v})})},I=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),k(n,!0))},N=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw j("Promise can't be resolved itself");(n=R(t))?g(function(){var r={_w:e,_d:!1};try{n.call(t,a(N,r,1),a(I,r,1))}catch(t){I.call(r,t)}}):(e._v=t,e._s=1,k(e,!1))}catch(t){I.call({_w:e,_d:!1},t)}}};A||(S=function(t){v(this,S,"Promise","_h"),h(t),r.call(this);try{t(a(N,this,1),a(I,this,1))}catch(t){I.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=e(86)(S.prototype,{then:function(t,n){var e=M(y(this,S));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=T?L.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&k(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=a(N,t,1),this.reject=a(I,t,1)},x.f=M=function(t){return t===S||t===c?new i(t):o(t)}),l(l.G+l.W+l.F*!A,{Promise:S}),e(27)(S,"Promise"),e(91)("Promise"),c=e(2).Promise,l(l.S+l.F*!A,"Promise",{reject:function(t){var n=M(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(s||!A),"Promise",{resolve:function(t){return b(s&&this===c?S:this,t)}}),l(l.S+l.F*!(A&&e(87)(function(t){S.all(t).catch(E)})),"Promise",{all:function(t){var n=this,e=M(n),r=e.resolve,o=e.reject,i=_(function(){var e=[],i=0,c=1;d(t,!1,function(t){var s=i++,u=!1;e.push(void 0),c++,n.resolve(t).then(function(t){u||(u=!0,e[s]=t,--c||r(e))},o)}),--c||r(e)});return i.e&&o(i.v),e.promise},race:function(t){var n=this,e=M(n),r=e.reject,o=_(function(){d(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return o.e&&r(o.v),e.promise}})},97:function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},98:function(t,n,e){var r=e(0),o=e(65).set,i=r.MutationObserver||r.WebKitMutationObserver,c=r.process,s=r.Promise,u="process"==e(14)(c);t.exports=function(){var t,n,e,a=function(){var r,o;for(u&&(r=c.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(u)e=function(){c.nextTick(a)};else if(!i||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var f=s.resolve(void 0);e=function(){f.then(a)}}else e=function(){o.call(r,a)};else{var l=!0,p=document.createTextNode("");new i(a).observe(p,{characterData:!0}),e=function(){p.data=l=!l}}return function(r){var o={fn:r,next:void 0};n&&(n.next=o),t||(t=o,e()),n=o}}},99:function(t,n,e){var r=e(0),o=r.navigator;t.exports=o&&o.userAgent||""}})});