!function(){"use strict";functione(e){vart=this.constructor;returnthis.then((function(n){returnt.resolve(e()).then((function(){returnn}))}),(function(n){returnt.resolve(e()).then((function(){returnt.reject(n)}))}))}vart=setTimeout;functionn(e){returnBoolean(e&&void0!==e.length)}functionr(){}functiono(e){if(!(thisinstanceofo))thrownewTypeError("Promises must be constructed via new");if("function"!=typeofe)thrownewTypeError("not a function");this._state=0,this._handled=!1,this._value=void0,this._deferreds=[],f(e,this)}functioni(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){varn=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){varr;try{r=n(e._value)}catch(e){returnvoida(t.promise,e)}u(t.promise,r)}else(1===e._state?u:a)(t.promise,e._value)}))):e._deferreds.push(t)}functionu(e,t){try{if(t===e)thrownewTypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeoft||"function"==typeoft)){varn=t.then;if(tinstanceofo)returne._state=3,e._value=t,voidc(e);if("function"==typeofn)returnvoidf((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,c(e)}catch(t){a(e,t)}varr,i}functiona(e,t){e._state=2,e._value=t,c(e)}functionc(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(vart=0,n=e._deferreds.length;t<n;t++)i(e,e._deferreds[t]);e._deferreds=null}functions(e,t,n){this.onFulfilled="function"==typeofe?e:null,this.onRejected="function"==typeoft?t:null,this.promise=n}functionf(e,t){varn=!1;try{e((function(e){n||(n=!0,u(t,e))}),(function(e){n||(n=!0,a(t,e))}))}catch(e){if(n)return;n=!0,a(t,e)}}o.prototype["catch"]=function(e){returnthis.then(null,e)},o.prototype.then=function(e,t){varn=newthis.constructor(r);returni(this,news(e,t,n)),n},o.prototype["finally"]=e,o.all=function(e){returnnewo((function(t,r){if(!n(e))returnr(newTypeError("Promise.all accepts an array"));varo=Array.prototype.slice.call(e);if(0===o.length)returnt([]);vari=o.length;functionu(e,n){try{if(n&&("object"==typeofn||"function"==typeofn)){vara=n.then;if("function"==typeofa)returnvoida.call(n,(function(t){u(e,t)}),r)}o[e]=n,0==--i&&t(o)}catch(e){r(e)}}for(vara=0;a<o.length;a++)u(a,o[a])}))},o.resolve=function(e){returne&&"object"==typeofe&&e.constructor===o?e:newo((function(t){t(e)}))},o.reject=function(e){returnnewo((function(t,n){n(e)}))},o.race=function(e){returnnewo((function(t,r){if(!n(e))returnr(newTypeError("Promise.race accepts an array"));for(vari=0,u=e.length;i<u;i++)o.resolve(e[i]).then(t,r)}))},o._immediateFn="function"==typeofsetImmediate&&function(e){setImmediate(e)}||function(e){t(e,0)},o._unhandledRejectionFn=function(e){"undefined"!=typeofconsole&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};varl=function(){if("undefined"!=typeofself)returnself;if("undefined"!=typeofwindow)returnwindow;if("undefined"!=typeofglobal)returnglobal;thrownewError("unable to locate global object")}();"Promise"inl?l.Promise.prototype["finally"]||(l.Promise.prototype["finally"]=e):l["Promise"]=o,self.fetch||(self.fetch=function(e,t){returnt=t||{},newPromise((function(n,r){varo=newXMLHttpRequest,i=[],u=[],a={},c=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){returnPromise.resolve(o.responseText)},json:function(){returnPromise.resolve(JSON.parse(o.responseText))},blob:function(){returnPromise.resolve(newBlob([o.response]))},clone:c,headers:{keys:function(){returni},entries:function(){returnu},get:function(e){returna[e.toLowerCase()]},has:function(e){returne.toLowerCase()ina}}}};for(varsino.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),u.push([t,n]),a[t]=a[t]?a[t]+","+n:n})),n(c())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(s,t.headers[s]);o.send(t.body||null)}))});varh=function(e,t){returnfu