vue-sfc-compiler/compiler/dist/core/rp-pages.js

1 line
21 KiB
JavaScript

!function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=36)}([function(t,n,e){var r=e(20)("wks"),o=e(19),i=e(1).Symbol,c="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=c&&i[t]||(c?i:o)("Symbol."+t))}).store=r},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)},function(t,n,e){var r=e(7);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){var r=e(8),o=e(33);t.exports=e(5)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n){var e=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=e)},function(t,n,e){t.exports=!e(23)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){t.exports={}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(2),o=e(68),i=e(67),c=Object.defineProperty;n.f=e(5)?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}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(1),o=e(3),i=e(9),c=e(19)("src"),u=e(65),a=(""+u).split("toString");e(4).inspectSource=function(t){return u.call(t)},(t.exports=function(t,n,e,u){var s="function"==typeof e;s&&(i(e,"name")||o(e,"name",n)),t[n]!==e&&(s&&(i(e,c)||o(e,c,t[n]?""+t[n]:a.join(String(n)))),t===r?t[n]=e:u?t[n]?t[n]=e:o(t,n,e):(delete t[n],o(t,n,e)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[c]||u.call(this)})},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(12);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)}}},function(t,n,e){var r=e(20)("keys"),o=e(19);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(42),o=e(25);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n,e){var r=e(47),o=e(26);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(8).f,o=e(9),i=e(0)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){var r=e(1),o=e(4),i=e(3),c=e(10),u=e(13),a=function(t,n,e){var s,f,p,l,v=t&a.F,h=t&a.G,d=t&a.S,y=t&a.P,_=t&a.B,m=h?r:d?r[n]||(r[n]={}):(r[n]||{}).prototype,g=h?o:o[n]||(o[n]={}),x=g.prototype||(g.prototype={});for(s in h&&(e=n),e)p=((f=!v&&m&&void 0!==m[s])?m:e)[s],l=_&&f?u(p,r):y&&"function"==typeof p?u(Function.call,p):p,m&&c(m,s,p,t&a.U),g[s]!=p&&i(g,s,l),y&&x[s]!=p&&(x[s]=p)};r.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n,e){var r=e(4),o=e(1),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(21)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,n){t.exports=!1},function(t,n,e){var r=e(7),o=e(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(26);t.exports=function(t){return Object(r(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){"use strict";var r=e(49),o=e(48),i=e(6),c=e(16);t.exports=e(46)(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)):o(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n,e){"use strict";var r=e(12);t.exports.f=function(t){return new function(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=r(n),this.reject=r(e)}(t)}},function(t,n,e){var r=e(1).document;t.exports=r&&r.documentElement},function(t,n,e){var r,o,i,c=e(13),u=e(58),a=e(29),s=e(22),f=e(1),p=f.process,l=f.setImmediate,v=f.clearImmediate,h=f.MessageChannel,d=f.Dispatch,y=0,_={},m=function(){var t=+this;if(_.hasOwnProperty(t)){var n=_[t];delete _[t],n()}},g=function(t){m.call(t.data)};l&&v||(l=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return _[++y]=function(){u("function"==typeof t?t:Function(t),n)},r(y),y},v=function(t){delete _[t]},"process"==e(11)(p)?r=function(t){p.nextTick(c(m,t,1))}:d&&d.now?r=function(t){d.now(c(m,t,1))}:h?(i=(o=new h).port2,o.port1.onmessage=g,r=c(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",g,!1)):r="onreadystatechange"in s("script")?function(t){a.appendChild(s("script")).onreadystatechange=function(){a.removeChild(this),m.call(t)}}:function(t){setTimeout(c(m,t,1),0)}),t.exports={set:l,clear:v}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(31),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r=e(11),o=e(0)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var n,e,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),o))?e:i?r(n):"Object"==(c=r(n))&&"function"==typeof n.callee?"Arguments":c}},function(t,n){t.exports=API},function(t,n,e){"use strict";e.r(n);var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("div",{attrs:{id:"pages-list"}},[t.pages.error?e("p",{staticStyle:{color:"orangered"}},[t._v(t._s(t.pages.error))]):t.pages.data?e("div",[t._l(t.pages.data,function(n,r){return[t.activePage!=r?e("button",{on:{click:function(n){t.showPage(r)}}},[t._v(t._s(n.name))]):e("p",[t._v(t._s(n.name))])]})],2):e("main-loader")],1),e("div",{attrs:{id:"active-page"}},[t.activePage?e("div",[e("keep-alive",[e(t.activeComponent,{tag:"div"})],1)],1):t._e()]),e("p",[t._v("Hello world")])])};r._withStripped=!0;e(69),e(66),e(50),e(27),e(38);var o=function(){var t=this.$createElement;return(this._self._c||t)("p",[this._v("Loading...")])};o._withStripped=!0;function i(t,n,e,r,o,i,c,u){var a,s="function"==typeof t?t.options:t;if(n&&(s.render=n,s.staticRenderFns=e,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),c?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(c)},s._ssrRegister=a):o&&(a=u?function(){o.call(this,this.$root.$options.shadowRoot)}:o),a)if(s.functional){s._injectStyles=a;var f=s.render;s.render=function(t,n){return a.call(n),f(t,n)}}else{var p=s.beforeCreate;s.beforeCreate=p?[].concat(p,a):[a]}return{exports:t,options:s}}var c=i({name:"rp-main-loader"},o,[],!1,null,null,null);c.options.__file="src/core/rp-main-loader.vue";var u=c.exports,a=function(){var t=this.$createElement;return(this._self._c||t)("p",[this._v("Loading...")])};a._withStripped=!0;var s=i({name:"rp-page-loader"},a,[],!1,null,null,null);s.options.__file="src/core/rp-page-loader.vue";var f=s.exports,p=function(){var t=this.$createElement;return(this._self._c||t)("p",{staticStyle:{color:"red"}},[this._v("Can't load module")])};p._withStripped=!0;var l=i({name:"rp-page-error"},p,[],!1,null,null,null);l.options.__file="src/core/rp-page-error.vue";var v=l.exports,h=e(35),d=e.n(h),y=i({name:"rp-pages",components:{"main-loader":u},data:function(){return{pages:{error:null,data:null},activePage:null}},created:function(){var t=this;d.a.pages().then(function(n){t.pages.data=n.data;var e=function(){t.showPage(window.location.hash.length>0?window.location.hash.substr(2):Object.keys(t.pages.data)[0])};t.$nextTick(e),window.onhashchange=e}).catch(function(n){t.pages.error=n.response.statusText})},computed:{activeComponent:function(){return"raith-"+this.activePage}},methods:{showPage:function(t){var n="raith-"+t;if(!(t in this.pages.data))return console.error("Module not found: ".concat(t)),void(this.$options.components[n]=v);var e=this.pages.data[t];n in this.$options.components||(this.$options.components[n]=function(){return{component:new Promise(function(t,r){var o=function(){return n in Vue.options.components},i=function(){return o()?t(Vue.options.components[n]):r()};if(o()||document.querySelector('script[src="'+e.src+'"]'))i();else{var c=document.createElement("script");c.type="text/javascript",c.async=!0,c.src=e.src,null!=e.integrity&&(c.integrity=e.integrity),c.addEventListener("load",i),c.addEventListener("error",r),c.addEventListener("abort",r),document.head.appendChild(c)}}),loading:f,error:v,timeout:5e3}}),document.title="Raith - ".concat(e.name),window.history.pushState({},document.title,"/#/"+t),this.activePage=t}}},r,[],!1,null,null,null);y.options.__file="src/core/rp-pages.vue";var _=y.exports;Vue.component(_.name,_)},function(t,n,e){var r=e(18),o=e(4),i=e(23);t.exports=function(t,n){var e=(o.Object||{})[t]||Object[t],c={};c[t]=n(e),r(r.S+r.F*i(function(){e(1)}),"Object",c)}},function(t,n,e){var r=e(24),o=e(15);e(37)("keys",function(){return function(t){return o(r(t))}})},function(t,n,e){var r=e(9),o=e(24),i=e(14)("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}},function(t,n,e){var r=e(31),o=Math.max,i=Math.min;t.exports=function(t,n){return(t=r(t))<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(16),o=e(32),i=e(40);t.exports=function(t){return function(n,e,c){var u,a=r(n),s=o(a.length),f=i(c,s);if(t&&e!=e){for(;s>f;)if((u=a[f++])!=u)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===e)return t||f||0;return!t&&-1}}},function(t,n,e){var r=e(9),o=e(16),i=e(41)(!1),c=e(14)("IE_PROTO");t.exports=function(t,n){var e,u=o(t),a=0,s=[];for(e in u)e!=c&&r(u,e)&&s.push(e);for(;n.length>a;)r(u,e=n[a++])&&(~i(s,e)||s.push(e));return s}},function(t,n,e){var r=e(8),o=e(2),i=e(15);t.exports=e(5)?Object.defineProperties:function(t,n){o(t);for(var e,c=i(n),u=c.length,a=0;u>a;)r.f(t,e=c[a++],n[e]);return t}},function(t,n,e){var r=e(2),o=e(43),i=e(25),c=e(14)("IE_PROTO"),u=function(){},a=function(){var t,n=e(22)("iframe"),r=i.length;for(n.style.display="none",e(29).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[i[r]];return a()};t.exports=Object.create||function(t,n){var e;return null!==t?(u.prototype=r(t),e=new u,u.prototype=null,e[c]=t):e=a(),void 0===n?e:o(e,n)}},function(t,n,e){"use strict";var r=e(44),o=e(33),i=e(17),c={};e(3)(c,e(0)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(c,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){"use strict";var r=e(21),o=e(18),i=e(10),c=e(3),u=e(6),a=e(45),s=e(17),f=e(39),p=e(0)("iterator"),l=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,n,e,h,d,y,_){a(e,n,h);var m,g,x,w=function(t){if(!l&&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)}},S=n+" Iterator",b="values"==d,P=!1,O=t.prototype,j=O[p]||O["@@iterator"]||d&&O[d],T=j||w(d),E=d?b?w("entries"):T:void 0,L="Array"==n&&O.entries||j;if(L&&(x=f(L.call(new t)))!==Object.prototype&&x.next&&(s(x,S,!0),r||"function"==typeof x[p]||c(x,p,v)),b&&j&&"values"!==j.name&&(P=!0,T=function(){return j.call(this)}),r&&!_||!l&&!P&&O[p]||c(O,p,T),u[n]=T,u[S]=v,d)if(m={values:b?T:w("values"),keys:y?T:w("keys"),entries:E},_)for(g in m)g in O||i(O,g,m[g]);else o(o.P+o.F*(l||P),n,m);return m}},function(t,n,e){var r=e(11);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var r=e(0)("unscopables"),o=Array.prototype;void 0==o[r]&&e(3)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,n,e){for(var r=e(27),o=e(15),i=e(10),c=e(1),u=e(3),a=e(6),s=e(0),f=s("iterator"),p=s("toStringTag"),l=a.Array,v={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(v),d=0;d<h.length;d++){var y,_=h[d],m=v[_],g=c[_],x=g&&g.prototype;if(x&&(x[f]||u(x,f,l),x[p]||u(x,p,_),a[_]=l,m))for(y in r)x[y]||i(x,y,r[y],!0)}},function(t,n,e){var r=e(0)("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}},function(t,n,e){"use strict";var r=e(1),o=e(8),i=e(5),c=e(0)("species");t.exports=function(t){var n=r[t];i&&n&&!n[c]&&o.f(n,c,{configurable:!0,get:function(){return this}})}},function(t,n,e){var r=e(10);t.exports=function(t,n,e){for(var o in n)r(t,o,n[o],e);return t}},function(t,n,e){var r=e(2),o=e(7),i=e(28);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}},function(t,n,e){var r=e(1).navigator;t.exports=r&&r.userAgent||""},function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,e){var r=e(1),o=e(30).set,i=r.MutationObserver||r.WebKitMutationObserver,c=r.process,u=r.Promise,a="process"==e(11)(c);t.exports=function(){var t,n,e,s=function(){var r,o;for(a&&(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(a)e=function(){c.nextTick(s)};else if(!i||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var f=u.resolve(void 0);e=function(){f.then(s)}}else e=function(){o.call(r,s)};else{var p=!0,l=document.createTextNode("");new i(s).observe(l,{characterData:!0}),e=function(){l.data=p=!p}}return function(r){var o={fn:r,next:void 0};n&&(n.next=o),t||(t=o,e()),n=o}}},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)}},function(t,n,e){var r=e(2),o=e(12),i=e(0)("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)}},function(t,n,e){var r=e(34),o=e(0)("iterator"),i=e(6);t.exports=e(4).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,n,e){var r=e(6),o=e(0)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,n,e){var r=e(2);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}}},function(t,n,e){var r=e(13),o=e(62),i=e(61),c=e(2),u=e(32),a=e(60),s={},f={};(n=t.exports=function(t,n,e,p,l){var v,h,d,y,_=l?function(){return t}:a(t),m=r(e,p,n?2:1),g=0;if("function"!=typeof _)throw TypeError(t+" is not iterable!");if(i(_)){for(v=u(t.length);v>g;g++)if((y=n?m(c(h=t[g])[0],h[1]):m(t[g]))===s||y===f)return y}else for(d=_.call(t);!(h=d.next()).done;)if((y=o(d,m,h.value,n))===s||y===f)return y}).BREAK=s,n.RETURN=f},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}},function(t,n,e){t.exports=e(20)("native-function-to-string",Function.toString)},function(t,n,e){"use strict";var r,o,i,c,u=e(21),a=e(1),s=e(13),f=e(34),p=e(18),l=e(7),v=e(12),h=e(64),d=e(63),y=e(59),_=e(30).set,m=e(57)(),g=e(28),x=e(56),w=e(55),S=e(54),b=a.TypeError,P=a.process,O=P&&P.versions,j=O&&O.v8||"",T=a.Promise,E="process"==f(P),L=function(){},M=o=g.f,k=!!function(){try{var t=T.resolve(1),n=(t.constructor={})[e(0)("species")]=function(t){t(L,L)};return(E||"function"==typeof PromiseRejectionEvent)&&t.then(L)instanceof n&&0!==j.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),C=function(t){var n;return!(!l(t)||"function"!=typeof(n=t.then))&&n},A=function(t,n){if(!t._n){t._n=!0;var e=t._c;m(function(){for(var r=t._v,o=1==t._s,i=0,c=function(n){var e,i,c,u=o?n.ok:n.fail,a=n.resolve,s=n.reject,f=n.domain;try{u?(o||(2==t._h&&$(t),t._h=1),!0===u?e=r:(f&&f.enter(),e=u(r),f&&(f.exit(),c=!0)),e===n.promise?s(b("Promise-chain cycle")):(i=C(e))?i.call(e,a,s):a(e)):s(r)}catch(t){f&&!c&&f.exit(),s(t)}};e.length>i;)c(e[i++]);t._c=[],t._n=!1,n&&!t._h&&F(t)})}},F=function(t){_.call(a,function(){var n,e,r,o=t._v,i=R(t);if(i&&(n=x(function(){E?P.emit("unhandledRejection",o,t):(e=a.onunhandledrejection)?e({promise:t,reason:o}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=E||R(t)?2:1),t._a=void 0,i&&n.e)throw n.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},$=function(t){_.call(a,function(){var n;E?P.emit("rejectionHandled",t):(n=a.onrejectionhandled)&&n({promise:t,reason:t._v})})},I=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),A(n,!0))},V=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw b("Promise can't be resolved itself");(n=C(t))?m(function(){var r={_w:e,_d:!1};try{n.call(t,s(V,r,1),s(I,r,1))}catch(t){I.call(r,t)}}):(e._v=t,e._s=1,A(e,!1))}catch(t){I.call({_w:e,_d:!1},t)}}};k||(T=function(t){h(this,T,"Promise","_h"),v(t),r.call(this);try{t(s(V,this,1),s(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}).prototype=e(53)(T.prototype,{then:function(t,n){var e=M(y(this,T));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=E?P.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&A(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=s(V,t,1),this.reject=s(I,t,1)},g.f=M=function(t){return t===T||t===c?new i(t):o(t)}),p(p.G+p.W+p.F*!k,{Promise:T}),e(17)(T,"Promise"),e(52)("Promise"),c=e(4).Promise,p(p.S+p.F*!k,"Promise",{reject:function(t){var n=M(this);return(0,n.reject)(t),n.promise}}),p(p.S+p.F*(u||!k),"Promise",{resolve:function(t){return S(u&&this===c?T:this,t)}}),p(p.S+p.F*!(k&&e(51)(function(t){T.all(t).catch(L)})),"Promise",{all:function(t){var n=this,e=M(n),r=e.resolve,o=e.reject,i=x(function(){var e=[],i=0,c=1;d(t,!1,function(t){var u=i++,a=!1;e.push(void 0),c++,n.resolve(t).then(function(t){a||(a=!0,e[u]=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=x(function(){d(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return o.e&&r(o.v),e.promise}})},function(t,n,e){var r=e(7);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")}},function(t,n,e){t.exports=!e(5)&&!e(23)(function(){return 7!=Object.defineProperty(e(22)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(8).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||e(5)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})}]);