@theoplayer/extended 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THEOplayer.chromeless.js +3 -3
- package/THEOplayer.d.ts +43 -1
- package/THEOplayer.js +3 -3
- package/package.json +1 -1
- package/theoplayer.d.js +3 -3
- package/theoplayer.e.js +3 -3
- package/theoplayer.p.js +3 -3
- package/theoplayer.sw.js +3 -3
package/theoplayer.sw.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
THEOplayer is based on patented technology developed by
|
|
25
25
|
THEO Technologies (https://www.theoplayer.com).
|
|
26
26
|
|
|
27
|
-
Version: 2022.1.
|
|
28
|
-
Created: 2022-
|
|
27
|
+
Version: 2022.1.1 (3.1.0)
|
|
28
|
+
Created: 2022-02-14T10:46:16.951Z
|
|
29
29
|
*/
|
|
30
|
-
!function(t){!function(){"use strict";var n,i=t.window,r=t.document,e=(t.location,t.navigator),u=t.setTimeout,o=t.clearTimeout,s=t.setInterval,f=t.clearInterval,c=t.Error,a=t.TypeError,h=(t.SyntaxError,t.Object),v=t.Math,l=t.parseInt,d=t.parseFloat,w=t.isNaN,y=t.Uint8Array,p=(t.Worker,t.WorkerGlobalScope,t.XMLHttpRequest),b="undefined"!=typeof globalThis?globalThis:void 0!==i?i:"undefined"!=typeof global?global:void 0!==t?t:{};function g(t,n,i){return t(i={path:n,exports:{},require:function(t,n){return function(){throw new c("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&i.path)}},i.exports),i.exports}var m,_=g(function(t){!function(t){var n,i=h.prototype,r=i.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},u=e.iterator||"@@iterator",o=e.asyncIterator||"@@asyncIterator",s=e.toStringTag||"@@toStringTag";function f(t,n,i,r){var e=n&&n.prototype instanceof g?n:g,u=h.create(e.prototype),o=new D(r||[]);return u.Oh=function(t,n,i){var r=l;return function(e,u){if(r===y)throw new c("Generator is already running");if(r===p){if("throw"===e)throw u;return x()}for(i.method=e,i.arg=u;;){var o=i.delegate;if(o){var s=A(o,i);if(s){if(s===b)continue;return s}}if("next"===i.method)i.sent=i.Bh=i.arg;else if("throw"===i.method){if(r===l)throw r=p,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=y;var f=v(t,n,i);if("normal"===f.type){if(r=i.done?p:d,f.arg===b)continue;return{value:f.arg,done:i.done}}"throw"===f.type&&(r=p,i.method="throw",i.arg=f.arg)}}}(t,i,o),u}function v(t,n,i){try{return{type:"normal",arg:t.call(n,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l="suspendedStart",d="suspendedYield",y="executing",p="completed",b={};function g(){}function m(){}function _(){}var E={};E[u]=function(){return this};var S=h.getPrototypeOf,I=S&&S(S(C([])));I&&I!==i&&r.call(I,u)&&(E=I);var R=_.prototype=g.prototype=h.create(E);function T(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this.Oh(n,t)}})}function k(t){var n;this.Oh=function(i,e){function u(){return new Promise(function(n,u){!function n(i,e,u,o){var s=v(t[i],t,e);if("throw"!==s.type){var f=s.arg,c=f.value;return c&&"object"==typeof c&&r.call(c,"Lh")?Promise.resolve(c.Lh).then(function(t){n("next",t,u,o)},function(t){n("throw",t,u,o)}):Promise.resolve(c).then(function(t){f.value=t,u(f)},function(t){return n("throw",t,u,o)})}o(s.arg)}(i,e,n,u)})}return n=n?n.then(u,u):u()}}function A(t,i){var r=t.iterator[i.method];if(r===n){if(i.delegate=null,"throw"===i.method){if(t.iterator.return&&(i.method="return",i.arg=n,A(t,i),"throw"===i.method))return b;i.method="throw",i.arg=new a("The iterator does not provide a 'throw' method")}return b}var e=v(r,t.iterator,i.arg);if("throw"===e.type)return i.method="throw",i.arg=e.arg,i.delegate=null,b;var u=e.arg;return u?u.done?(i[t.resultName]=u.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=n),i.delegate=null,b):u:(i.method="throw",i.arg=new a("iterator result is not an object"),i.delegate=null,b)}function O(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function C(t){if(t){var i=t[u];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!w(t.length)){var e=-1,o=function i(){for(;++e<t.length;)if(r.call(t,e))return i.value=t[e],i.done=!1,i;return i.value=n,i.done=!0,i};return o.next=o}}return{next:x}}function x(){return{value:n,done:!0}}m.prototype=R.constructor=_,_.constructor=m,_[s]=m.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===m||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return h.setPrototypeOf?h.setPrototypeOf(t,_):(t.__proto__=_,s in t||(t[s]="GeneratorFunction")),t.prototype=h.create(R),t},t.awrap=function(t){return{Lh:t}},T(k.prototype),k.prototype[o]=function(){return this},t.AsyncIterator=k,t.async=function(n,i,r,e){var u=new k(f(n,i,r,e));return t.isGeneratorFunction(i)?u:u.next().then(function(t){return t.done?t.value:u.next()})},T(R),R[s]="Generator",R[u]=function(){return this},R.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var i in t)n.push(i);return n.reverse(),function i(){for(;n.length;){var r=n.pop();if(r in t)return i.value=r,i.done=!1,i}return i.done=!0,i}},t.values=C,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this.Bh=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(N),!t)for(var i in this)"t"===i.charAt(0)&&r.call(this,i)&&!w(+i.slice(1))&&(this[i]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function e(r,e){return s.type="throw",s.arg=t,i.next=r,e&&(i.method="next",i.arg=n),!!e}for(var u=this.tryEntries.length-1;u>=0;--u){var o=this.tryEntries[u],s=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var f=r.call(o,"catchLoc"),a=r.call(o,"finallyLoc");if(f&&a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(f){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!a)throw new c("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,n){for(var i=this.tryEntries.length-1;i>=0;--i){var e=this.tryEntries[i];if(e.tryLoc<=this.prev&&r.call(e,"finallyLoc")&&this.prev<e.finallyLoc){var u=e;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=n&&n<=u.finallyLoc&&(u=null);var o=u?u.completion:{};return o.type=t,o.arg=n,u?(this.method="next",this.next=u.finallyLoc,b):this.complete(o)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),b},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),N(i),b}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc===t){var r=i.completion;if("throw"===r.type){var e=r.arg;N(i)}return e}}throw new c("illegal catch attempt")},delegateYield:function(t,i,r){return this.delegate={iterator:C(t),resultName:i,nextLoc:r},"next"===this.method&&(this.arg=n),b}}}(t.exports)}),E=g(function(s,f){s.exports=function t(i,r,e){function u(s,f){if(!r[s]){if(!i[s]){var a="function"==typeof n&&n;if(!f&&a)return a(s,!0);if(o)return o(s,!0);var h=new c("Cannot find module '"+s+"'");throw h.code="MODULE_NOT_FOUND",h}var v=r[s]={exports:{}};i[s][0].call(v.exports,function(t){var n=i[s][1][t];return u(n||t)},v,v.exports,t,i,r,e)}return r[s].exports}for(var o="function"==typeof n&&n,s=0;s<e.length;s++)u(e[s]);return u}({1:[function(t,n,i){n.exports=function(t){var n=t.l;function i(t){var i=new n(t),r=i.promise();return i.setHowMany(1),i.setUnwrap(),i.init(),r}t.any=function(t){return i(t)},t.prototype.any=function(){return i(this)}}},{}],2:[function(t,n,i){var r;try{throw new c}catch(t){r=t}var e=t("./schedule"),o=t("./queue"),s=t("./util");function f(){this.g=!1,this.R=!1,this.N=new o(16),this.M=new o(16),this.F=!1,this.U=!0;var t=this;this.drainQueues=function(){t.G()},this.q=e}function a(t,n,i){this.N.push(t,n,i),this.j()}function h(t,n,i){this.M.push(t,n,i),this.j()}function v(t){this.M.Y(t),this.j()}function l(t){for(;t.length()>0;)d(t)}function d(t){var n=t.shift();if("function"!=typeof n)n.K();else{var i=t.shift(),r=t.shift();n.call(i,r)}}f.prototype.setScheduler=function(t){var n=this.q;return this.q=t,this.g=!0,n},f.prototype.hasCustomScheduler=function(){return this.g},f.prototype.enableTrampoline=function(){this.U=!0},f.prototype.disableTrampolineIfNecessary=function(){s.hasDevTools&&(this.U=!1)},f.prototype.haveItemsQueued=function(){return this.R||this.F},f.prototype.fatalError=function(t,n){n?(process.stderr.write("Fatal "+(t instanceof c?t.stack:t)+"\n"),process.exit(2)):this.throwLater(t)},f.prototype.throwLater=function(t,n){if(1===arguments.length&&(n=t,t=function(){throw n}),void 0!==u)u(function(){t(n)},0);else try{this.q(function(){t(n)})}catch(t){throw new c("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},s.hasDevTools?(f.prototype.invokeLater=function(t,n,i){this.U?a.call(this,t,n,i):this.q(function(){u(function(){t.call(n,i)},100)})},f.prototype.invoke=function(t,n,i){this.U?h.call(this,t,n,i):this.q(function(){t.call(n,i)})},f.prototype.settlePromises=function(t){this.U?v.call(this,t):this.q(function(){t.K()})}):(f.prototype.invokeLater=a,f.prototype.invoke=h,f.prototype.settlePromises=v),f.prototype.G=function(){l(this.M),this.Z(),this.F=!0,l(this.N)},f.prototype.j=function(){this.R||(this.R=!0,this.q(this.drainQueues))},f.prototype.Z=function(){this.R=!1},n.exports=f,n.exports.firstLineError=r},{"./queue":26,"./schedule":29,"./util":36}],3:[function(t,n,i){n.exports=function(t,n,i,r){var e=!1,u=function(t,n){this.J(n)},o=function(t,n){n.promiseRejectionQueued=!0,n.bindingPromise.nt(u,u,null,this,t)},s=function(t,n){0==(50397184&this.ut)&&this.ot(n.target)},f=function(t,n){n.promiseRejectionQueued||this.J(t)};t.prototype.bind=function(u){e||(e=!0,t.prototype.at=r.propagateFromFunction(),t.prototype.ct=r.boundValueFunction());var c=i(u),a=new t(n);a.at(this,1);var h=this.ft();if(a.vt(c),c instanceof t){var v={promiseRejectionQueued:!1,promise:a,target:h,bindingPromise:c};h.nt(n,o,void 0,a,v),c.nt(s,f,void 0,a,v),a.dt(c)}else a.ot(h);return a},t.prototype.vt=function(t){void 0!==t?(this.ut=2097152|this.ut,this._t=t):this.ut=-2097153&this.ut},t.prototype.wt=function(){return 2097152==(2097152&this.ut)},t.bind=function(n,i){return t.resolve(i).bind(n)}}},{}],4:[function(t,n,i){var r;"undefined"!=typeof Promise&&(r=Promise);var e=t("./promise")();e.noConflict=function(){try{Promise===e&&(Promise=r)}catch(t){}return e},n.exports=e},{"./promise":22}],5:[function(t,n,i){var r=h.create;if(r){var e=r(null),u=r(null);e[" size"]=u[" size"]=0}n.exports=function(n){var i=t("./util"),r=i.canEvaluate;function e(t){var r=this.pop(),e=function(t,r){var e;if(null!=t&&(e=t[r]),"function"!=typeof e){var u="Object "+i.classString(t)+" has no method '"+i.toString(r)+"'";throw new n.TypeError(u)}return e}(t,r);return e.apply(t,this)}function u(t){return t[this]}function o(t){var n=+this;return n<0&&(n=v.max(0,n+t.length)),t[n]}i.isIdentifier,n.prototype.call=function(t){var n=[].slice.call(arguments,1);return n.push(t),this.nt(e,void 0,void 0,n,void 0)},n.prototype.get=function(t){var n,i="number"==typeof t;if(i)n=o;else if(r){var e=(void 0)();n=null!==e?e:u}else n=u;return this.nt(n,void 0,void 0,t,void 0)}}},{"./util":36}],6:[function(t,n,i){n.exports=function(n,i,r,e){var u=t("./util"),o=u.tryCatch,s=u.errorObj,f=n.yt;n.prototype.break=n.prototype.cancel=function(){if(!e.cancellation())return this.kt("cancellation is disabled");for(var t=this,n=t;t.bt();){if(!t.At(n)){n.Tt()?n.St().cancel():n.Et();break}var i=t.It;if(null==i||!i.bt()){t.Tt()?t.St().cancel():t.Et();break}t.Tt()&&t.St().cancel(),t.Rt(),n=t,t=i}},n.prototype.Nt=function(){this.Dt--},n.prototype.Ct=function(){return void 0===this.Dt||this.Dt<=0},n.prototype.At=function(t){return t===this?(this.Dt=0,this.Pt(),!0):(this.Nt(),!!this.Ct()&&(this.Pt(),!0))},n.prototype.Et=function(){this.Ct()&&this.Ot()},n.prototype.Ot=function(){this.bt()&&(this.Bt(),f.invoke(this.Lt,this,void 0))},n.prototype.Lt=function(){this.xt()>0&&this.K()},n.prototype.Mt=function(){this.Ft=void 0},n.prototype.bt=function(){return this.isPending()&&!this.Ut()},n.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},n.prototype.Ht=function(t,n){if(u.isArray(t))for(var i=0;i<t.length;++i)this.Ht(t[i],n);else if(void 0!==t)if("function"==typeof t){if(!n){var r=o(t).call(this.ct());r===s&&(this.Vt(r.e),f.throwLater(r.e))}}else t._resultCancelled(this)},n.prototype.Pt=function(){var t=this.Xt();this.Mt(),f.invoke(this.Ht,this,t)},n.prototype.zt=function(){this.bt()&&(this.Ht(this.Xt(),!0),this.Mt())},n.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(t,n,i){n.exports=function(n){var i=t("./util"),r=t("./es5").keys,e=i.tryCatch,u=i.errorObj;return function(t,o,s){return function(f){var a=s.ct();t:for(var h=0;h<t.length;++h){var v=t[h];if(v===c||null!=v&&v.prototype instanceof c){if(f instanceof v)return e(o).call(a,f)}else if("function"==typeof v){var l=e(v).call(a,f);if(l===u)return l;if(l)return e(o).call(a,f)}else if(i.isObject(f)){for(var d=r(v),w=0;w<d.length;++w){var y=d[w];if(v[y]!=f[y])continue t}return e(o).call(a,f)}}return n}}}},{"./es5":13,"./util":36}],8:[function(t,n,i){n.exports=function(t){var n=!1,i=[];function r(){this.Wt=new r.CapturedTrace(e())}function e(){var t=i.length-1;if(t>=0)return i[t]}return t.prototype.Gt=function(){},t.prototype.qt=function(){},t.prototype.jt=function(){return null},t.Yt=t.prototype.Yt=function(){},r.prototype.qt=function(){void 0!==this.Wt&&(this.Wt.Gt=null,i.push(this.Wt))},r.prototype.jt=function(){if(void 0!==this.Wt){var t=i.pop(),n=t.Gt;return t.Gt=null,n}return null},r.CapturedTrace=null,r.create=function(){if(n)return new r},r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var i=t.prototype.qt,u=t.prototype.jt,o=t.Yt,s=t.prototype.Yt,f=t.prototype.Gt;r.deactivateLongStackTraces=function(){t.prototype.qt=i,t.prototype.jt=u,t.Yt=o,t.prototype.Yt=s,t.prototype.Gt=f,n=!1},n=!0,t.prototype.qt=r.prototype.qt,t.prototype.jt=r.prototype.jt,t.Yt=t.prototype.Yt=e,t.prototype.Gt=function(){var t=this.Yt();t&&null==t.Gt&&(t.Gt=this)}},r}},{}],9:[function(t,n,i){n.exports=function(n,i){var e,o,s,f=n.Qt,v=n.yt,d=t("./errors").Warning,w=t("./util"),y=t("./es5"),p=w.canAttachTrace,b=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,g=/\((?:timers\.js):\d+:\d+\)/,m=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,_=null,E=null,S=!1,I=!(0==w.env("BLUEBIRD_DEBUG")),R=!(0==w.env("BLUEBIRD_WARNINGS")||!I&&!w.env("BLUEBIRD_WARNINGS")),T=!(0==w.env("BLUEBIRD_LONG_STACK_TRACES")||!I&&!w.env("BLUEBIRD_LONG_STACK_TRACES")),k=0!=w.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(R||!!w.env("BLUEBIRD_W_FORGOTTEN_RETURN"));n.prototype.suppressUnhandledRejections=function(){var t=this.ft();t.ut=-1048577&t.ut|524288},n.prototype.Kt=function(){if(0==(524288&this.ut)){this.Zt();var t=this;u(function(){t.Jt()},1)}},n.prototype.$t=function(){$("rejectionHandled",e,void 0,this)},n.prototype.in=function(){this.ut=268435456|this.ut},n.prototype.un=function(){return 0!=(268435456&this.ut)},n.prototype.Jt=function(){if(this.hn()){var t=this.cn();this.fn(),$("unhandledRejection",o,t,this)}},n.prototype.fn=function(){this.ut=262144|this.ut},n.prototype.vn=function(){this.ut=-262145&this.ut},n.prototype.dn=function(){return(262144&this.ut)>0},n.prototype.Zt=function(){this.ut=1048576|this.ut},n.prototype._n=function(){this.ut=-1048577&this.ut,this.dn()&&(this.vn(),this.$t())},n.prototype.hn=function(){return(1048576&this.ut)>0},n.prototype.kt=function(t,n,i){return G(t,n,i||this)},n.onPossiblyUnhandledRejection=function(t){var n=f();o="function"==typeof t?null===n?t:w.domainBind(n,t):void 0},n.onUnhandledRejectionHandled=function(t){var n=f();e="function"==typeof t?null===n?t:w.domainBind(n,t):void 0};var A=function(){};n.longStackTraces=function(){if(v.haveItemsQueued()&&!et.longStackTraces)throw new c("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!et.longStackTraces&&Z()){var t=n.prototype.wn,r=n.prototype.Vt,e=n.prototype.yn;et.longStackTraces=!0,A=function(){if(v.haveItemsQueued()&&!et.longStackTraces)throw new c("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");n.prototype.wn=t,n.prototype.Vt=r,n.prototype.yn=e,i.deactivateLongStackTraces(),v.enableTrampoline(),et.longStackTraces=!1},n.prototype.wn=X,n.prototype.Vt=H,n.prototype.yn=V,i.activateLongStackTraces(),v.disableTrampolineIfNecessary()}},n.hasLongStackTraces=function(){return et.longStackTraces&&Z()};var O=function(){try{if("function"==typeof CustomEvent){var t=new CustomEvent("CustomEvent");return w.global.dispatchEvent(t),function(t,n){var i={detail:n,cancelable:!0};y.defineProperty(i,"promise",{value:n.promise}),y.defineProperty(i,"reason",{value:n.reason});var r=new CustomEvent(t.toLowerCase(),i);return!w.global.dispatchEvent(r)}}if("function"==typeof Event){var t=new Event("CustomEvent");return w.global.dispatchEvent(t),function(t,n){var i=new Event(t.toLowerCase(),{cancelable:!0});return i.detail=n,y.defineProperty(i,"promise",{value:n.promise}),y.defineProperty(i,"reason",{value:n.reason}),!w.global.dispatchEvent(i)}}var t=r.createEvent("CustomEvent");return t.initCustomEvent("testingtheevent",!1,!0,{}),w.global.dispatchEvent(t),function(t,n){var i=r.createEvent("CustomEvent");return i.initCustomEvent(t.toLowerCase(),!1,!0,n),!w.global.dispatchEvent(i)}}catch(t){}return function(){return!1}}(),N=w.isNode?function(){return process.emit.apply(process,arguments)}:w.global?function(t){var n="on"+t.toLowerCase(),i=w.global[n];return!!i&&(i.apply(w.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function D(t,n){return{promise:n}}var C={promiseCreated:D,promiseFulfilled:D,promiseRejected:D,promiseResolved:D,promiseCancelled:D,promiseChained:function(t,n,i){return{promise:n,child:i}},warning:function(t,n){return{warning:n}},unhandledRejection:function(t,n,i){return{reason:n,promise:i}},rejectionHandled:D},x=function(t){var n=!1;try{n=N.apply(null,arguments)}catch(t){v.throwLater(t),n=!0}var i=!1;try{i=O(t,C[t].apply(null,arguments))}catch(t){v.throwLater(t),i=!0}return i||n};function B(){return!1}function F(t,n,i){var r=this;try{t(n,i,function(t){if("function"!=typeof t)throw new a("onCancel must be a function, got: "+w.toString(t));r.pn(t)})}catch(t){return t}}function P(t){if(!this.bt())return this;var n=this.Xt();void 0!==n?w.isArray(n)?n.push(t):this.dt([n,t]):this.dt(t)}function j(){return this.Ft}function U(t){this.Ft=t}function L(){this.It=void 0,this.Ft=void 0}function M(t,n){if(0!=(1&n)){this.It=t;var i=t.Dt;void 0===i&&(i=0),t.Dt=i+1}0!=(2&n)&&t.wt()&&this.vt(t._t)}n.config=function(t){if("longStackTraces"in(t=h(t))&&(t.longStackTraces?n.longStackTraces():!t.longStackTraces&&n.hasLongStackTraces()&&A()),"warnings"in t){var i=t.warnings;et.warnings=!!i,k=et.warnings,w.isObject(i)&&"wForgottenReturn"in i&&(k=!!i.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!et.cancellation){if(v.haveItemsQueued())throw new c("cannot enable cancellation after promises are in use");n.prototype.An=L,n.prototype.at=M,n.prototype.Xt=j,n.prototype.dt=U,n.prototype.pn=P,n.prototype.Tn=F,q=M,et.cancellation=!0}return"monitoring"in t&&(t.monitoring&&!et.monitoring?(et.monitoring=!0,n.prototype.Sn=x):!t.monitoring&&et.monitoring&&(et.monitoring=!1,n.prototype.Sn=B)),n},n.prototype.Sn=B,n.prototype.Tn=function(t,n,i){try{t(n,i)}catch(t){return t}},n.prototype.Xt=function(){},n.prototype.dt=function(t){},n.prototype.pn=function(t){},n.prototype.wn=function(){},n.prototype.Vt=function(){},n.prototype.yn=function(){},n.prototype.An=function(){},n.prototype.at=function(t,n){};var q=function(t,n){0!=(2&n)&&t.wt()&&this.vt(t._t)};function W(){var t=this._t;return void 0!==t&&t instanceof n?t.isFulfilled()?t.value():void 0:t}function X(){this.Wt=new it(this.Yt())}function H(t,n){if(p(t)){var i=this.Wt;if(void 0!==i&&n&&(i=i.En),void 0!==i)i.attachExtraTrace(t);else if(!t.In){var r=Y(t);w.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n")),w.notEnumerableProp(t,"In",!0)}}}function V(){this.Wt=void 0}function G(t,i,r){if(et.warnings){var e,u=new d(t);if(i)r.Vt(u);else if(et.longStackTraces&&(e=n.Yt()))e.attachExtraTrace(u);else{var o=Y(u);u.stack=o.message+"\n"+o.stack.join("\n")}x("warning",u)||K(u,"",!0)}}function z(t){for(var n=[],i=0;i<t.length;++i){var r=t[i],e=" (No stack trace)"===r||_.test(r),u=e&&Q(r);e&&!u&&(S&&" "!==r.charAt(0)&&(r=" "+r),n.push(r))}return n}function Y(t){var n=t.stack,i=t.toString();return n="string"==typeof n&&n.length>0?function(t){for(var n=t.stack.replace(/\s+$/g,"").split("\n"),i=0;i<n.length;++i){var r=n[i];if(" (No stack trace)"===r||_.test(r))break}return i>0&&"SyntaxError"!=t.name&&(n=n.slice(i)),n}(t):[" (No stack trace)"],{message:i,stack:"SyntaxError"==t.name?n:z(n)}}function K(t,n,i){if("undefined"!=typeof console){var r;if(w.isObject(t)){var e=t.stack;r=n+E(e,t)}else r=n+String(t);"function"==typeof s?s(r,i):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(r)}}function $(t,n,i,r){var e=!1;try{"function"==typeof n&&(e=!0,"rejectionHandled"===t?n(r):n(i,r))}catch(t){v.throwLater(t)}"unhandledRejection"===t?x(t,i,r)||e||K(i,"Unhandled rejection "):x(t,r)}function J(t){var n;if("function"==typeof t)n="[function "+(t.name||"anonymous")+"]";else{if(n=t&&"function"==typeof t.toString?t.toString():w.toString(t),/\[object [a-zA-Z0-9$_]+\]/.test(n))try{var i=JSON.stringify(t);n=i}catch(t){}0===n.length&&(n="(empty array)")}return"(<"+function(t){return t.length<41?t:t.substr(0,38)+"..."}(n)+">, no stack trace)"}function Z(){return"function"==typeof rt}var Q=function(){return!1},tt=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function nt(t){var n=t.match(tt);if(n)return{fileName:n[1],line:l(n[2],10)}}function it(t){this.En=t,this.Rn=0;var n=this.xt=1+(void 0===t?0:t.xt);rt(this,it),n>32&&this.uncycle()}w.inherits(it,c),i.CapturedTrace=it,it.prototype.uncycle=function(){var t=this.xt;if(!(t<2)){for(var n=[],i={},r=0,e=this;void 0!==e;++r)n.push(e),e=e.En;for(var r=(t=this.xt=r)-1;r>=0;--r){var u=n[r].stack;void 0===i[u]&&(i[u]=r)}for(var r=0;r<t;++r){var o=n[r].stack,s=i[o];if(void 0!==s&&s!==r){s>0&&(n[s-1].En=void 0,n[s-1].xt=1),n[r].En=void 0,n[r].xt=1;var f=r>0?n[r-1]:this;s<t-1?(f.En=n[s+1],f.En.uncycle(),f.xt=f.En.xt+1):(f.En=void 0,f.xt=1);for(var c=f.xt+1,a=r-2;a>=0;--a)n[a].xt=c,c++;return}}}},it.prototype.attachExtraTrace=function(t){if(!t.In){this.uncycle();for(var n=Y(t),i=n.message,r=[n.stack],e=this;void 0!==e;)r.push(z(e.stack.split("\n"))),e=e.En;!function(t){for(var n=t[0],i=1;i<t.length;++i){for(var r=t[i],e=n.length-1,u=n[e],o=-1,s=r.length-1;s>=0;--s)if(r[s]===u){o=s;break}for(var s=o;s>=0;--s){var f=r[s];if(n[e]!==f)break;n.pop(),e--}n=r}}(r),function(t){for(var n=0;n<t.length;++n)(0===t[n].length||n+1<t.length&&t[n][0]===t[n+1][0])&&(t.splice(n,1),n--)}(r),w.notEnumerableProp(t,"stack",function(t,n){for(var i=0;i<n.length-1;++i)n[i].push("From previous event:"),n[i]=n[i].join("\n");return i<n.length&&(n[i]=n[i].join("\n")),t+"\n"+n.join("\n")}(i,r)),w.notEnumerableProp(t,"In",!0)}};var rt=function(){var t=/^\s*at\s*/,n=function(t,n){return"string"==typeof t?t:void 0!==n.name&&void 0!==n.message?n.toString():J(n)};if("number"==typeof c.stackTraceLimit&&"function"==typeof c.captureStackTrace){c.stackTraceLimit+=6,_=t,E=n;var i=c.captureStackTrace;return Q=function(t){return b.test(t)},function(t,n){c.stackTraceLimit+=6,i(t,n),c.stackTraceLimit-=6}}var r,e=new c;if("string"==typeof e.stack&&e.stack.split("\n")[0].indexOf("stackDetection@")>=0)return _=/@/,E=n,S=!0,function(t){t.stack=(new c).stack};try{throw new c}catch(t){r="stack"in t}return"stack"in e||!r||"number"!=typeof c.stackTraceLimit?(E=function(t,n){return"string"==typeof t?t:"object"!=typeof n&&"function"!=typeof n||void 0===n.name||void 0===n.message?J(n):n.toString()},null):(_=t,E=n,function(t){c.stackTraceLimit+=6;try{throw new c}catch(n){t.stack=n.stack}c.stackTraceLimit-=6})}();"undefined"!=typeof console&&void 0!==console.warn&&(s=function(t){console.warn(t)},w.isNode&&process.stderr.isTTY?s=function(t,n){var i=n?"\x1b[33m":"\x1b[31m";console.warn(i+t+"\x1b[0m\n")}:w.isNode||"string"!=typeof(new c).stack||(s=function(t,n){console.warn("%c"+t,n?"color: darkorange":"color: red")}));var et={warnings:R,longStackTraces:!1,cancellation:!1,monitoring:!1};return T&&n.longStackTraces(),{longStackTraces:function(){return et.longStackTraces},warnings:function(){return et.warnings},cancellation:function(){return et.cancellation},monitoring:function(){return et.monitoring},propagateFromFunction:function(){return q},boundValueFunction:function(){return W},checkForgottenReturns:function(t,n,i,r,e){if(void 0===t&&null!==n&&k){if(void 0!==e&&e.un())return;if(0==(65535&r.ut))return;i&&(i+=" ");var u="",o="";if(n.Wt){for(var s=n.Wt.stack.split("\n"),f=z(s),c=f.length-1;c>=0;--c){var a=f[c];if(!g.test(a)){var h=a.match(m);h&&(u="at "+h[1]+":"+h[2]+":"+h[3]+" ");break}}if(f.length>0)for(var v=f[0],c=0;c<s.length;++c)if(s[c]===v){c>0&&(o="\n"+s[c-1]);break}}var l="a promise was created in a "+i+"handler "+u+"but was not returned from it, see http://goo.gl/rRqMUw"+o;r.kt(l,!0,n)}},setBounds:function(t,n){if(Z()){for(var i,r,e=(t.stack||"").split("\n"),u=(n.stack||"").split("\n"),o=-1,s=-1,f=0;f<e.length;++f){var c=nt(e[f]);if(c){i=c.fileName,o=c.line;break}}for(var f=0;f<u.length;++f){var c=nt(u[f]);if(c){r=c.fileName,s=c.line;break}}o<0||s<0||!i||!r||i!==r||o>=s||(Q=function(t){if(b.test(t))return!0;var n=nt(t);return!!(n&&n.fileName===i&&o<=n.line&&n.line<=s)})}},warn:G,deprecated:function(t,n){var i=t+" is deprecated and will be removed in a future version.";return n&&(i+=" Use "+n+" instead."),G(i)},CapturedTrace:it,fireDomEvent:O,fireGlobalEvent:N}}},{"./errors":12,"./es5":13,"./util":36}],10:[function(t,n,i){n.exports=function(t){function n(){return this.value}function i(){throw this.reason}t.prototype.return=t.prototype.thenReturn=function(i){return i instanceof t&&i.suppressUnhandledRejections(),this.nt(n,void 0,void 0,{value:i},void 0)},t.prototype.throw=t.prototype.thenThrow=function(t){return this.nt(i,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(arguments.length<=1)return this.nt(void 0,i,void 0,{reason:t},void 0);var n=arguments[1];return this.caught(t,function(){throw n})},t.prototype.catchReturn=function(i){if(arguments.length<=1)return i instanceof t&&i.suppressUnhandledRejections(),this.nt(void 0,n,void 0,{value:i},void 0);var r=arguments[1];return r instanceof t&&r.suppressUnhandledRejections(),this.caught(i,function(){return r})}}},{}],11:[function(t,n,i){n.exports=function(t,n){var i=t.reduce,r=t.all;function e(){return r(this)}t.prototype.each=function(t){return i(this,t,n,0).nt(e,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(t){return i(this,t,n,n)},t.each=function(t,r){return i(t,r,n,0).nt(e,void 0,void 0,t,void 0)},t.mapSeries=function(t,r){return i(t,r,n,n)}}},{}],12:[function(t,n,i){var r,e,u=t("./es5"),o=u.freeze,s=t("./util"),f=s.inherits,h=s.notEnumerableProp;function v(t,n){function i(r){if(!(this instanceof i))return new i(r);h(this,"message","string"==typeof r?r:n),h(this,"name",t),c.captureStackTrace?c.captureStackTrace(this,this.constructor):c.call(this)}return f(i,c),i}var l=v("Warning","warning"),d=v("CancellationError","cancellation error"),w=v("TimeoutError","timeout error"),y=v("AggregateError","aggregate error");try{r=a,e=RangeError}catch(t){r=v("TypeError","type error"),e=v("RangeError","range error")}for(var p="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),b=0;b<p.length;++b)"function"==typeof Array.prototype[p[b]]&&(y.prototype[p[b]]=Array.prototype[p[b]]);u.defineProperty(y.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),y.prototype.isOperational=!0;var g=0;function m(t){if(!(this instanceof m))return new m(t);h(this,"name","OperationalError"),h(this,"message",t),this.cause=t,this.isOperational=!0,t instanceof c?(h(this,"message",t.message),h(this,"stack",t.stack)):c.captureStackTrace&&c.captureStackTrace(this,this.constructor)}y.prototype.toString=function(){var t=Array(4*g+1).join(" "),n="\n"+t+"AggregateError of:\n";g++,t=Array(4*g+1).join(" ");for(var i=0;i<this.length;++i){for(var r=this[i]===this?"[Circular AggregateError]":this[i]+"",e=r.split("\n"),u=0;u<e.length;++u)e[u]=t+e[u];r=e.join("\n"),n+=r+"\n"}return g--,n},f(m,c);var _=c.Nn;_||(_=o({CancellationError:d,TimeoutError:w,OperationalError:m,RejectionError:m,AggregateError:y}),u.defineProperty(c,"Nn",{value:_,writable:!1,enumerable:!1,configurable:!1})),n.exports={Error:c,TypeError:r,RangeError:e,CancellationError:_.CancellationError,OperationalError:_.OperationalError,TimeoutError:_.TimeoutError,AggregateError:_.AggregateError,Warning:l}},{"./es5":13,"./util":36}],13:[function(t,n,i){var r=function(){return void 0===this}();if(r)n.exports={freeze:h.freeze,defineProperty:h.defineProperty,getDescriptor:h.getOwnPropertyDescriptor,keys:h.keys,names:h.getOwnPropertyNames,getPrototypeOf:h.getPrototypeOf,isArray:Array.isArray,isES5:r,propertyIsWritable:function(t,n){var i=h.getOwnPropertyDescriptor(t,n);return!(i&&!i.writable&&!i.set)}};else{var e={}.hasOwnProperty,u={}.toString,o={}.constructor.prototype,s=function(t){var n=[];for(var i in t)e.call(t,i)&&n.push(i);return n};n.exports={isArray:function(t){try{return"[object Array]"===u.call(t)}catch(t){return!1}},keys:s,names:s,defineProperty:function(t,n,i){return t[n]=i.value,t},getDescriptor:function(t,n){return{value:t[n]}},freeze:function(t){return t},getPrototypeOf:function(t){try{return h(t).constructor.prototype}catch(t){return o}},isES5:r,propertyIsWritable:function(){return!0}}}},{}],14:[function(t,n,i){n.exports=function(t,n){var i=t.map;t.prototype.filter=function(t,r){return i(this,t,r,n)},t.filter=function(t,r,e){return i(t,r,e,n)}}},{}],15:[function(t,n,i){n.exports=function(n,i,r){var e=t("./util"),u=n.CancellationError,o=e.errorObj,s=t("./catch_filter")(r);function f(t,n,i){this.promise=t,this.type=n,this.handler=i,this.called=!1,this.cancelPromise=null}function c(t){this.finallyHandler=t}function h(t,n){return null!=t.cancelPromise&&(arguments.length>1?t.cancelPromise.J(n):t.cancelPromise.Ot(),t.cancelPromise=null,!0)}function v(){return d.call(this,this.promise.ft().cn())}function l(t){if(!h(this,t))return o.e=t,o}function d(t){var e=this.promise,s=this.handler;if(!this.called){this.called=!0;var f=this.isFinallyHandler()?s.call(e.ct()):s.call(e.ct(),t);if(f===r)return f;if(void 0!==f){e.in();var a=i(f,e);if(a instanceof n){if(null!=this.cancelPromise){if(a.Ut()){var d=new u("late cancellation observer");return e.Vt(d),o.e=d,o}a.isPending()&&a.pn(new c(this))}return a.nt(v,l,void 0,this,void 0)}}}return e.isRejected()?(h(this),o.e=t,o):(h(this),t)}return f.prototype.isFinallyHandler=function(){return 0===this.type},c.prototype._resultCancelled=function(){h(this.finallyHandler)},n.prototype.Dn=function(t,n,i,r){return"function"!=typeof t?this.then():this.nt(i,r,void 0,new f(this,n,t),void 0)},n.prototype.lastly=n.prototype.finally=function(t){return this.Dn(t,0,d,d)},n.prototype.tap=function(t){return this.Dn(t,1,d)},n.prototype.tapCatch=function(t){var i=arguments.length;if(1===i)return this.Dn(t,1,void 0,d);var r,u=new Array(i-1),o=0;for(r=0;r<i-1;++r){var f=arguments[r];if(!e.isObject(f))return n.reject(new a("tapCatch statement predicate: expecting an object but got "+e.classString(f)));u[o++]=f}u.length=o;var c=arguments[r];return this.Dn(s(u,c,this),1,void 0,d)},f}},{"./catch_filter":7,"./util":36}],16:[function(t,n,i){n.exports=function(n,i,r,e,u,o){var s=t("./errors"),f=s.TypeError,a=t("./util"),v=a.errorObj,l=a.tryCatch,d=[];function w(t,i,e,u){if(o.cancellation()){var s=new n(r),f=this.Cn=new n(r);this.Pn=s.lastly(function(){return f}),s.wn(),s.dt(this)}else{var c=this.Pn=new n(r);c.wn()}this.On=u,this.Bn=t,this.Ln=i,this.xn=void 0,this.Mn="function"==typeof e?[e].concat(d):d,this.Fn=null,this.Un=!1}a.inherits(w,u),w.prototype.Hn=function(){return null===this.Pn},w.prototype.Vn=function(){this.Pn=this.xn=null,o.cancellation()&&null!==this.Cn&&(this.Cn.Xn(),this.Cn=null)},w.prototype.zn=function(){if(!this.Hn()){var t,i=void 0!==this.xn.return;if(i)this.Pn.qt(),t=l(this.xn.return).call(this.xn,void 0),this.Pn.jt();else{var r=new n.CancellationError("generator .return() sentinel");n.coroutine.returnSentinel=r,this.Pn.Vt(r),this.Pn.qt(),t=l(this.xn.throw).call(this.xn,r),this.Pn.jt()}this.Un=!0,this.Fn=null,this.Wn(t)}},w.prototype.Gn=function(t){this.Fn=null,this.Pn.qt();var n=l(this.xn.next).call(this.xn,t);this.Pn.jt(),this.Wn(n)},w.prototype.qn=function(t){this.Fn=null,this.Pn.Vt(t),this.Pn.qt();var n=l(this.xn.throw).call(this.xn,t);this.Pn.jt(),this.Wn(n)},w.prototype._resultCancelled=function(){if(this.Fn instanceof n){var t=this.Fn;this.Fn=null,t.cancel()}},w.prototype.promise=function(){return this.Pn},w.prototype.jn=function(){this.xn=this.Bn.call(this.Ln),this.Ln=this.Bn=void 0,this.Gn(void 0)},w.prototype.Wn=function(t){var i=this.Pn;if(t===v)return this.Vn(),this.Un?i.cancel():i.Yn(t.e,!1);var r=t.value;if(!0===t.done)return this.Vn(),this.Un?i.cancel():i.ot(r);var u=e(r,this.Pn);if(u instanceof n||null!==(u=function(t,i,r){for(var u=0;u<i.length;++u){r.qt();var o=l(i[u])(t);if(r.jt(),o===v){r.qt();var s=n.reject(v.e);return r.jt(),s}var f=e(o,r);if(f instanceof n)return f}return null}(u,this.Mn,this.Pn))){var o=(u=u.ft()).ut;0==(50397184&o)?(this.Fn=u,u.Qn(this,null)):0!=(33554432&o)?n.yt.invoke(this.Gn,this,u.Kn()):0!=(16777216&o)?n.yt.invoke(this.qn,this,u.Zn()):this.zn()}else this.qn(new f("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",String(r))+"From coroutine:\n"+this.On.split("\n").slice(1,-7).join("\n")))},n.coroutine=function(t,n){if("function"!=typeof t)throw new f("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var i=h(n).yieldHandler,r=w,e=(new c).stack;return function(){var n=t.apply(this,arguments),u=new r(void 0,void 0,i,e),o=u.promise();return u.xn=n,u.Gn(void 0),o}},n.coroutine.addYieldHandler=function(t){if("function"!=typeof t)throw new f("expecting a function but got "+a.classString(t));d.push(t)},n.spawn=function(t){if(o.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof t)return i("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var r=new w(t,this),e=r.promise();return r.jn(n.spawn),e}}},{"./errors":12,"./util":36}],17:[function(t,n,i){n.exports=function(n,i,r,e,u,o){var s=t("./util");s.canEvaluate,s.tryCatch,s.errorObj,n.join=function(){var t,n=arguments.length-1;n>0&&"function"==typeof arguments[n]&&(t=arguments[n]);var r=[].slice.call(arguments);t&&r.pop();var e=new i(r).promise();return void 0!==t?e.spread(t):e}}},{"./util":36}],18:[function(t,n,i){n.exports=function(n,i,r,e,u,o){var s=n.Qt,f=t("./util"),c=f.tryCatch,h=f.errorObj,v=n.yt;function l(t,n,i,r){this.constructor$(t),this.Pn.wn();var e=s();this.Jn=null===e?n:f.domainBind(e,n),this.$n=r===u?new Array(this.length()):null,this.ni=i,this.ri=0,this.ei=[],v.invoke(this.oi,this,void 0)}function d(t,i,e,u){if("function"!=typeof i)return r("expecting a function but got "+f.classString(i));var o=0;if(void 0!==e){if("object"!=typeof e||null===e)return n.reject(new a("options argument must be an object but it is "+f.classString(e)));if("number"!=typeof e.concurrency)return n.reject(new a("'concurrency' must be a number but it is "+f.classString(e.concurrency)));o=e.concurrency}return o="number"==typeof o&&isFinite(o)&&o>=1?o:0,new l(t,i,o,u).promise()}f.inherits(l,i),l.prototype.oi=function(){this._init$(void 0,-2)},l.prototype._init=function(){},l.prototype.Gn=function(t,i){var r=this.ai,u=this.length(),s=this.$n,f=this.ni;if(i<0){if(r[i=-1*i-1]=t,f>=1&&(this.ri--,this.ci(),this.Hn()))return!0}else{if(f>=1&&this.ri>=f)return r[i]=t,this.ei.push(i),!1;null!==s&&(s[i]=t);var a=this.Pn,v=this.Jn,l=a.ct();a.qt();var d=c(v).call(l,t,i,u),w=a.jt();if(o.checkForgottenReturns(d,w,null!==s?"Promise.filter":"Promise.map",a),d===h)return this.J(d.e),!0;var y=e(d,this.Pn);if(y instanceof n){var p=(y=y.ft()).ut;if(0==(50397184&p))return f>=1&&this.ri++,r[i]=y,y.Qn(this,-1*(i+1)),!1;if(0==(33554432&p))return 0!=(16777216&p)?(this.J(y.Zn()),!0):(this.Ot(),!0);d=y.Kn()}r[i]=d}var b=++this.di;return b>=u&&(null!==s?this._i(r,s):this.gi(r),!0)},l.prototype.ci=function(){for(var t=this.ei,n=this.ni,i=this.ai;t.length>0&&this.ri<n;){if(this.Hn())return;var r=t.pop();this.Gn(i[r],r)}},l.prototype._i=function(t,n){for(var i=n.length,r=new Array(i),e=0,u=0;u<i;++u)t[u]&&(r[e++]=n[u]);r.length=e,this.gi(r)},l.prototype.preservedValues=function(){return this.$n},n.prototype.map=function(t,n){return d(this,t,n,null)},n.map=function(t,n,i,r){return d(t,n,i,r)}}},{"./util":36}],19:[function(t,n,i){n.exports=function(n,i,r,e,u){var o=t("./util"),s=o.tryCatch;n.method=function(t){if("function"!=typeof t)throw new n.TypeError("expecting a function but got "+o.classString(t));return function(){var r=new n(i);r.wn(),r.qt();var e=s(t).apply(this,arguments),o=r.jt();return u.checkForgottenReturns(e,o,"Promise.method",r),r.wi(e),r}},n.attempt=n.try=function(t){if("function"!=typeof t)return e("expecting a function but got "+o.classString(t));var r,f=new n(i);if(f.wn(),f.qt(),arguments.length>1){u.deprecated("calling Promise.try with more than 1 argument");var c=arguments[1],a=arguments[2];r=o.isArray(c)?s(t).apply(a,c):s(t).call(a,c)}else r=s(t)();var h=f.jt();return u.checkForgottenReturns(r,h,"Promise.try",f),f.wi(r),f},n.prototype.wi=function(t){t===o.errorObj?this.Yn(t.e,!1):this.ot(t,!0)}}},{"./util":36}],20:[function(t,n,i){var r=t("./util"),e=r.maybeWrapAsError,u=t("./errors"),o=u.OperationalError,s=t("./es5"),f=/^(?:name|message|stack|cause)$/;function a(t){var n;if(function(t){return t instanceof c&&s.getPrototypeOf(t)===c.prototype}(t)){(n=new o(t)).name=t.name,n.message=t.message,n.stack=t.stack;for(var i=s.keys(t),e=0;e<i.length;++e){var u=i[e];f.test(u)||(n[u]=t[u])}return n}return r.markAsOriginatingFromRejection(t),t}n.exports=function(t,n){return function(i,r){if(null!==t){if(i){var u=a(e(i));t.Vt(u),t.J(u)}else if(n){var o=[].slice.call(arguments,1);t.Xn(o)}else t.Xn(r);t=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(t,n,i){n.exports=function(n){var i=t("./util"),r=n.yt,e=i.tryCatch,u=i.errorObj;function o(t,n){if(!i.isArray(t))return s.call(this,t,n);var o=e(n).apply(this.ct(),[null].concat(t));o===u&&r.throwLater(o.e)}function s(t,n){var i=this.ct(),o=void 0===t?e(n).call(i,null):e(n).call(i,null,t);o===u&&r.throwLater(o.e)}function f(t,n){if(!t){var i=new c(t+"");i.cause=t,t=i}var o=e(n).call(this.ct(),t);o===u&&r.throwLater(o.e)}n.prototype.asCallback=n.prototype.nodeify=function(t,n){if("function"==typeof t){var i=s;void 0!==n&&h(n).spread&&(i=o),this.nt(i,f,void 0,this,t)}return this}}},{"./util":36}],22:[function(t,n,i){n.exports=function(){var i=function(){return new d("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},r=function(){return new O.PromiseInspection(this.ft())},e=function(t){return O.reject(new d(t))};function u(){}var o,s={},f=t("./util");o=f.isNode?function(){var t=process.domain;return void 0===t&&(t=null),t}:function(){return null},f.notEnumerableProp(O,"Qt",o);var c=t("./es5"),a=t("./async"),v=new a;c.defineProperty(O,"yt",{value:v});var l=t("./errors"),d=O.TypeError=l.TypeError;O.RangeError=l.RangeError;var w=O.CancellationError=l.CancellationError;O.TimeoutError=l.TimeoutError,O.OperationalError=l.OperationalError,O.RejectionError=l.OperationalError,O.AggregateError=l.AggregateError;var y=function(){},p={},b={},g=t("./thenables")(O,y),m=t("./promise_array")(O,y,g,e,u),_=t("./context")(O),E=_.create,S=t("./debuggability")(O,_),I=(S.CapturedTrace,t("./finally")(O,g,b)),R=t("./catch_filter")(b),T=t("./nodeback"),k=f.errorObj,A=f.tryCatch;function O(t){t!==y&&function(t,n){if(null==t||t.constructor!==O)throw new d("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n");if("function"!=typeof n)throw new d("expecting a function but got "+f.classString(n))}(this,t),this.ut=0,this.Ai=void 0,this.Ti=void 0,this.Si=void 0,this.Ei=void 0,this.Ii(t),this.Gt(),this.Sn("promiseCreated",this)}function N(t){this.promise.ot(t)}function D(t){this.promise.Yn(t,!1)}function C(t){var n=new O(y);n.Ai=t,n.Ti=t,n.Si=t,n.Ei=t}return O.prototype.toString=function(){return"[object Promise]"},O.prototype.caught=O.prototype.catch=function(t){var n=arguments.length;if(n>1){var i,r=new Array(n-1),u=0;for(i=0;i<n-1;++i){var o=arguments[i];if(!f.isObject(o))return e("Catch statement predicate: expecting an object but got "+f.classString(o));r[u++]=o}if(r.length=u,"function"!=typeof(t=arguments[i]))throw new d("The last argument to .catch() must be a function, got "+f.toString(t));return this.then(void 0,R(r,t,this))}return this.then(void 0,t)},O.prototype.reflect=function(){return this.nt(r,r,void 0,this,void 0)},O.prototype.then=function(t,n){if(S.warnings()&&arguments.length>0&&"function"!=typeof t&&"function"!=typeof n){var i=".then() only accepts functions but was passed: "+f.classString(t);arguments.length>1&&(i+=", "+f.classString(n)),this.kt(i)}return this.nt(t,n,void 0,void 0,void 0)},O.prototype.done=function(t,n){var i=this.nt(t,n,void 0,void 0,void 0);i.Ri()},O.prototype.spread=function(t){return"function"!=typeof t?e("expecting a function but got "+f.classString(t)):this.all().nt(t,void 0,void 0,p,void 0)},O.prototype.toJSON=function(){var t={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(t.fulfillmentValue=this.value(),t.isFulfilled=!0):this.isRejected()&&(t.rejectionReason=this.reason(),t.isRejected=!0),t},O.prototype.all=function(){return arguments.length>0&&this.kt(".all() was passed arguments but it does not take any"),new m(this).promise()},O.prototype.error=function(t){return this.caught(f.originatesFromRejection,t)},O.getNewLibraryCopy=n.exports,O.is=function(t){return t instanceof O},O.fromNode=O.fromCallback=function(t){var n=new O(y);n.wn();var i=arguments.length>1&&!!h(arguments[1]).multiArgs,r=A(t)(T(n,i));return r===k&&n.Yn(r.e,!0),n.Ni()||n.Di(),n},O.all=function(t){return new m(t).promise()},O.cast=function(t){var n=g(t);return n instanceof O||((n=new O(y)).wn(),n.Ci(),n.Ti=t),n},O.resolve=O.fulfilled=O.cast,O.reject=O.rejected=function(t){var n=new O(y);return n.wn(),n.Yn(t,!0),n},O.setScheduler=function(t){if("function"!=typeof t)throw new d("expecting a function but got "+f.classString(t));return v.setScheduler(t)},O.prototype.nt=function(t,n,i,r,e){var u=void 0!==e,s=u?e:new O(y),c=this.ft(),a=c.ut;u||(s.at(this,3),s.wn(),void 0===r&&0!=(2097152&this.ut)&&(r=0!=(50397184&a)?this.ct():c===this?void 0:this._t),this.Sn("promiseChained",this,s));var h=o();if(0!=(50397184&a)){var l,d,p=c.Pi;0!=(33554432&a)?(d=c.Ti,l=t):0!=(16777216&a)?(d=c.Ai,l=n,c._n()):(p=c.Oi,d=new w("late cancellation observer"),c.Vt(d),l=n),v.invoke(p,c,{handler:null===h?l:"function"==typeof l&&f.domainBind(h,l),promise:s,receiver:r,value:d})}else c.Bi(t,n,s,r,h);return s},O.prototype.xt=function(){return 65535&this.ut},O.prototype.Ni=function(){return 0!=(117506048&this.ut)},O.prototype.Tt=function(){return 67108864==(67108864&this.ut)},O.prototype.Li=function(t){this.ut=-65536&this.ut|65535&t},O.prototype.Ci=function(){this.ut=33554432|this.ut,this.Sn("promiseFulfilled",this)},O.prototype.xi=function(){this.ut=16777216|this.ut,this.Sn("promiseRejected",this)},O.prototype.Mi=function(){this.ut=67108864|this.ut,this.Sn("promiseResolved",this)},O.prototype.Ri=function(){this.ut=4194304|this.ut},O.prototype.Fi=function(){return(4194304&this.ut)>0},O.prototype.Ui=function(){this.ut=-65537&this.ut},O.prototype.Bt=function(){this.ut=65536|this.ut,this.Sn("promiseCancelled",this)},O.prototype.Rt=function(){this.ut=8388608|this.ut},O.prototype.Di=function(){v.hasCustomScheduler()||(this.ut=134217728|this.ut)},O.prototype.Hi=function(t){var n=0===t?this.Ei:this[4*t-4+3];if(n!==s)return void 0===n&&this.wt()?this.ct():n},O.prototype.Vi=function(t){return this[4*t-4+2]},O.prototype.Xi=function(t){return this[4*t-4+0]},O.prototype.zi=function(t){return this[4*t-4+1]},O.prototype.ct=function(){},O.prototype.Wi=function(t){t.ut;var n=t.Ai,i=t.Ti,r=t.Si,e=t.Hi(0);void 0===e&&(e=s),this.Bi(n,i,r,e,null)},O.prototype.Gi=function(t,n){var i=t.Xi(n),r=t.zi(n),e=t.Vi(n),u=t.Hi(n);void 0===u&&(u=s),this.Bi(i,r,e,u,null)},O.prototype.Bi=function(t,n,i,r,e){var u=this.xt();if(u>=65531&&(u=0,this.Li(0)),0===u)this.Si=i,this.Ei=r,"function"==typeof t&&(this.Ai=null===e?t:f.domainBind(e,t)),"function"==typeof n&&(this.Ti=null===e?n:f.domainBind(e,n));else{var o=4*u-4;this[o+2]=i,this[o+3]=r,"function"==typeof t&&(this[o+0]=null===e?t:f.domainBind(e,t)),"function"==typeof n&&(this[o+1]=null===e?n:f.domainBind(e,n))}return this.Li(u+1),u},O.prototype.Qn=function(t,n){this.Bi(void 0,void 0,n,t,null)},O.prototype.ot=function(t,n){if(0==(117506048&this.ut)){if(t===this)return this.Yn(i(),!1);var r=g(t,this);if(!(r instanceof O))return this.Xn(t);n&&this.at(r,2);var e=r.ft();if(e!==this){var u=e.ut;if(0==(50397184&u)){var o=this.xt();o>0&&e.Wi(this);for(var s=1;s<o;++s)e.Gi(this,s);this.Mi(),this.Li(0),this.qi(e)}else if(0!=(33554432&u))this.Xn(e.Kn());else if(0!=(16777216&u))this.J(e.Zn());else{var f=new w("late cancellation observer");e.Vt(f),this.J(f)}}else this.J(i())}},O.prototype.Yn=function(t,n,i){var r=f.ensureErrorObject(t),e=r===t;if(!e&&!i&&S.warnings()){var u="a promise was rejected with a non-error: "+f.classString(t);this.kt(u,!0)}this.Vt(r,!!n&&e),this.J(t)},O.prototype.Ii=function(t){if(t!==y){var n=this;this.wn(),this.qt();var i=!0,r=this.Tn(t,function(t){n.ot(t)},function(t){n.Yn(t,i)});i=!1,this.jt(),void 0!==r&&n.Yn(r,!0)}},O.prototype.ji=function(t,n,i,r){var e=r.ut;if(0==(65536&e)){var u;r.qt(),n===p?i&&"number"==typeof i.length?u=A(t).apply(this.ct(),i):(u=k).e=new d("cannot .spread() a non-array: "+f.classString(i)):u=A(t).call(n,i);var o=r.jt();0==(65536&(e=r.ut))&&(u===b?r.J(i):u===k?r.Yn(u.e,!1):(S.checkForgottenReturns(u,o,"",r,this),r.ot(u)))}},O.prototype.ft=function(){for(var t=this;t.Tt();)t=t.St();return t},O.prototype.St=function(){return this.Ti},O.prototype.qi=function(t){this.Ti=t},O.prototype.Yi=function(t,n,i,e){var o=t instanceof O,s=this.ut,f=0!=(134217728&s);0!=(65536&s)?(o&&t.zt(),i instanceof I&&i.isFinallyHandler()?(i.cancelPromise=t,A(n).call(i,e)===k&&t.J(k.e)):n===r?t.Xn(r.call(i)):i instanceof u?i.zn(t):o||t instanceof m?t.Ot():i.cancel()):"function"==typeof n?o?(f&&t.Di(),this.ji(n,i,e,t)):n.call(i,e,t):i instanceof u?i.Hn()||(0!=(33554432&s)?i.Gn(e,t):i.qn(e,t)):o&&(f&&t.Di(),0!=(33554432&s)?t.Xn(e):t.J(e))},O.prototype.Oi=function(t){var n=t.handler,i=t.promise,r=t.receiver,e=t.value;"function"==typeof n?i instanceof O?this.ji(n,r,e,i):n.call(r,e,i):i instanceof O&&i.J(e)},O.prototype.Pi=function(t){this.Yi(t.promise,t.handler,t.receiver,t.value)},O.prototype.Qi=function(t,n,i){var r=this.Si,e=this.Hi(0);this.Si=void 0,this.Ei=void 0,this.Yi(r,t,e,n)},O.prototype.Ki=function(t){var n=4*t-4;this[n+2]=this[n+3]=this[n+0]=this[n+1]=void 0},O.prototype.Xn=function(t){var n=this.ut;if(!((117506048&n)>>>16)){if(t===this){var r=i();return this.Vt(r),this.J(r)}this.Ci(),this.Ti=t,(65535&n)>0&&(0!=(134217728&n)?this.K():v.settlePromises(this),this.yn())}},O.prototype.J=function(t){var n=this.ut;if(!((117506048&n)>>>16)){if(this.xi(),this.Ai=t,this.Fi())return v.fatalError(t,f.isNode);(65535&n)>0?v.settlePromises(this):this.Kt()}},O.prototype.Zi=function(t,n){for(var i=1;i<t;i++){var r=this.Xi(i),e=this.Vi(i),u=this.Hi(i);this.Ki(i),this.Yi(e,r,u,n)}},O.prototype.Ji=function(t,n){for(var i=1;i<t;i++){var r=this.zi(i),e=this.Vi(i),u=this.Hi(i);this.Ki(i),this.Yi(e,r,u,n)}},O.prototype.K=function(){var t=this.ut,n=65535&t;if(n>0){if(0!=(16842752&t)){var i=this.Ai;this.Qi(this.Ti,i,t),this.Ji(n,i)}else{var r=this.Ti;this.Qi(this.Ai,r,t),this.Zi(n,r)}this.Li(0)}this.An()},O.prototype.cn=function(){var t=this.ut;return 0!=(33554432&t)?this.Ti:0!=(16777216&t)?this.Ai:void 0},"undefined"!=typeof Symbol&&Symbol.toStringTag&&c.defineProperty(O.prototype,Symbol.toStringTag,{get:function(){return"Object"}}),O.defer=O.pending=function(){S.deprecated("Promise.defer","new Promise");var t=new O(y);return{promise:t,resolve:N,reject:D}},f.notEnumerableProp(O,"$i",i),t("./method")(O,y,g,e,S),t("./bind")(O,y,g,S),t("./cancel")(O,m,e,S),t("./direct_resolve")(O),t("./synchronous_inspection")(O),t("./join")(O,m,g,y,v,o),O.Promise=O,O.version="3.5.5",t("./call_get.js")(O),t("./generators.js")(O,e,y,g,u,S),t("./map.js")(O,m,e,g,y,S),t("./nodeify.js")(O),t("./promisify.js")(O,y),t("./props.js")(O,m,g,e),t("./race.js")(O,y,g,e),t("./reduce.js")(O,m,e,g,y,S),t("./settle.js")(O,m,S),t("./some.js")(O,m,e),t("./timers.js")(O,y,S),t("./using.js")(O,e,g,E,y,S),t("./any.js")(O),t("./each.js")(O,y),t("./filter.js")(O,y),f.toFastProperties(O),f.toFastProperties(O.prototype),C({a:1}),C({b:2}),C({c:3}),C(1),C(function(){}),C(void 0),C(!1),C(new O(y)),S.setBounds(a.firstLineError,f.lastLineError),O}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(t,n,i){n.exports=function(n,i,r,e,u){var o=t("./util");function s(t){var r=this.Pn=new n(i);t instanceof n&&r.at(t,3),r.dt(this),this.ai=t,this.xt=0,this.di=0,this._init(void 0,-2)}return o.isArray,o.inherits(s,u),s.prototype.length=function(){return this.xt},s.prototype.promise=function(){return this.Pn},s.prototype._init=function t(i,u){var s=r(this.ai,this.Pn);if(s instanceof n){var f=(s=s.ft()).ut;if(this.ai=s,0==(50397184&f))return this.Pn.Di(),s.nt(t,this.J,void 0,this,u);if(0==(33554432&f))return 0!=(16777216&f)?this.J(s.Zn()):this.Ot();s=s.Kn()}if(null!==(s=o.asArray(s)))0!==s.length?this.ir(s):-5===u?this.rr():this.gi(function(t){switch(t){case-2:return[];case-3:return{};case-6:return new Map}}(u));else{var c=e("expecting an array or an iterable object but got "+o.classString(s)).reason();this.Pn.Yn(c,!1)}},s.prototype.ir=function(t){var i=this.getActualLength(t.length);this.xt=i,this.ai=this.shouldCopyValues()?new Array(i):this.ai;for(var e=this.Pn,u=!1,o=null,s=0;s<i;++s){var f=r(t[s],e);f instanceof n?(f=f.ft(),o=f.ut):o=null,u?null!==o&&f.suppressUnhandledRejections():null!==o?0==(50397184&o)?(f.Qn(this,s),this.ai[s]=f):u=0!=(33554432&o)?this.Gn(f.Kn(),s):0!=(16777216&o)?this.qn(f.Zn(),s):this.zn(s):u=this.Gn(f,s)}u||e.Di()},s.prototype.Hn=function(){return null===this.ai},s.prototype.gi=function(t){this.ai=null,this.Pn.Xn(t)},s.prototype.Ot=function(){!this.Hn()&&this.Pn.bt()&&(this.ai=null,this.Pn.Ot())},s.prototype.J=function(t){this.ai=null,this.Pn.Yn(t,!1)},s.prototype.Gn=function(t,n){this.ai[n]=t;var i=++this.di;return i>=this.xt&&(this.gi(this.ai),!0)},s.prototype.zn=function(){return this.Ot(),!0},s.prototype.qn=function(t){return this.di++,this.J(t),!0},s.prototype._resultCancelled=function(){if(!this.Hn()){var t=this.ai;if(this.Ot(),t instanceof n)t.cancel();else for(var i=0;i<t.length;++i)t[i]instanceof n&&t[i].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(t){return t},s}},{"./util":36}],24:[function(t,n,i){n.exports=function(n,i){var r={},e=t("./util"),u=t("./nodeback"),o=e.withAppended,s=e.maybeWrapAsError,f=e.canEvaluate,c=t("./errors").TypeError,a={dr:!0},v=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","dr"].join("|")+")$"),l=function(t){return e.isIdentifier(t)&&"_"!==t.charAt(0)&&"constructor"!==t};function d(t){return!v.test(t)}function w(t){try{return!0===t.dr}catch(t){return!1}}function y(t,n,i){var r=e.getDataPropertyOrDefault(t,n+i,a);return!!r&&w(r)}function p(t,n,i,r){for(var u=e.inheritedDataKeys(t),o=[],s=0;s<u.length;++s){var f=u[s],a=t[f],h=r===l||l(f);"function"!=typeof a||w(a)||y(t,f,n)||!r(f,a,t,h)||o.push(f,a)}return function(t,n,i){for(var r=0;r<t.length;r+=2){var e=t[r];if(i.test(e))for(var u=e.replace(i,""),o=0;o<t.length;o+=2)if(t[o]===u)throw new c("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",n))}}(o,n,i),o}var b=function(t){return t.replace(/([$])/,"\\$")},g=f?void 0:function(t,f,c,a,h,v){var l=function(){return this}(),d=t;function w(){var e=f;f===r&&(e=this);var c=new n(i);c.wn();var a="string"==typeof d&&this!==l?this[d]:t,h=u(c,v);try{a.apply(e,o(arguments,h))}catch(t){c.Yn(s(t),!0,!0)}return c.Ni()||c.Di(),c}return"string"==typeof d&&(t=a),e.notEnumerableProp(w,"dr",!0),w};function m(t,n,i,u,o){for(var s=new RegExp(b(n)+"$"),f=p(t,n,s,i),c=0,a=f.length;c<a;c+=2){var h=f[c],v=f[c+1],l=h+n;if(u===g)t[l]=g(h,r,h,v,n,o);else{var d=u(v,function(){return g(h,r,h,v,n,o)});e.notEnumerableProp(d,"dr",!0),t[l]=d}}return e.toFastProperties(t),t}n.promisify=function(t,n){if("function"!=typeof t)throw new c("expecting a function but got "+e.classString(t));if(w(t))return t;var i=void 0===(n=h(n)).context?r:n.context,u=!!n.multiArgs,o=function(t,n,i){return g(t,n,void 0,t,null,i)}(t,i,u);return e.copyDescriptors(t,o,d),o},n.promisifyAll=function(t,n){if("function"!=typeof t&&"object"!=typeof t)throw new c("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");var i=!!(n=h(n)).multiArgs,r=n.suffix;"string"!=typeof r&&(r="Async");var u=n.filter;"function"!=typeof u&&(u=l);var o=n.promisifier;if("function"!=typeof o&&(o=g),!e.isIdentifier(r))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var s=e.inheritedDataKeys(t),f=0;f<s.length;++f){var a=t[s[f]];"constructor"!==s[f]&&e.isClass(a)&&(m(a.prototype,r,u,o,i),m(a,r,u,o,i))}return m(t,r,u,o,i)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(t,n,i){n.exports=function(n,i,r,e){var u,o=t("./util"),s=o.isObject,f=t("./es5");"function"==typeof Map&&(u=Map);var c=function(){var t=0,n=0;function i(i,r){this[t]=i,this[t+n]=r,t++}return function(r){n=r.size,t=0;var e=new Array(2*r.size);return r.forEach(i,e),e}}();function a(t){var n,i=!1;if(void 0!==u&&t instanceof u)n=c(t),i=!0;else{var r=f.keys(t),e=r.length;n=new Array(2*e);for(var o=0;o<e;++o){var s=r[o];n[o]=t[s],n[o+e]=s}}this.constructor$(n),this._r=i,this._init$(void 0,i?-6:-3)}function h(t){var i,u=r(t);return s(u)?(i=u instanceof n?u.nt(n.props,void 0,void 0,void 0,void 0):new a(u).promise(),u instanceof n&&i.at(u,2),i):e("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}o.inherits(a,i),a.prototype._init=function(){},a.prototype.Gn=function(t,n){this.ai[n]=t;var i=++this.di;if(i>=this.xt){var r;if(this._r)r=function(t){for(var n=new u,i=t.length/2|0,r=0;r<i;++r){var e=t[i+r],o=t[r];n.set(e,o)}return n}(this.ai);else{r={};for(var e=this.length(),o=0,s=this.length();o<s;++o)r[this.ai[o+e]]=this.ai[o]}return this.gi(r),!0}return!1},a.prototype.shouldCopyValues=function(){return!1},a.prototype.getActualLength=function(t){return t>>1},n.prototype.props=function(){return h(this)},n.props=function(t){return h(t)}}},{"./es5":13,"./util":36}],26:[function(t,n,i){function r(t){this.gr=t,this.xt=0,this.wr=0}r.prototype.yr=function(t){return this.gr<t},r.prototype.Y=function(t){var n=this.length();this.pr(n+1);var i=this.wr+n&this.gr-1;this[i]=t,this.xt=n+1},r.prototype.push=function(t,n,i){var r=this.length()+3;if(this.yr(r))return this.Y(t),this.Y(n),void this.Y(i);var e=this.wr+r-3;this.pr(r);var u=this.gr-1;this[e+0&u]=t,this[e+1&u]=n,this[e+2&u]=i,this.xt=r},r.prototype.shift=function(){var t=this.wr,n=this[t];return this[t]=void 0,this.wr=t+1&this.gr-1,this.xt--,n},r.prototype.length=function(){return this.xt},r.prototype.pr=function(t){this.gr<t&&this.Ar(this.gr<<1)},r.prototype.Ar=function(t){var n=this.gr;this.gr=t;var i=this.wr,r=this.xt,e=i+r&n-1;!function(t,n,i,r,e){for(var u=0;u<e;++u)i[u+r]=t[u+n],t[u+n]=void 0}(this,0,this,n,e)},n.exports=r},{}],27:[function(t,n,i){n.exports=function(n,i,r,e){var u=t("./util"),o=function(t){return t.then(function(n){return s(n,t)})};function s(t,s){var f=r(t);if(f instanceof n)return o(f);if(null===(t=u.asArray(t)))return e("expecting an array or an iterable object but got "+u.classString(t));var c=new n(i);void 0!==s&&c.at(s,3);for(var a=c.Xn,h=c.J,v=0,l=t.length;v<l;++v){var d=t[v];(void 0!==d||v in t)&&n.cast(d).nt(a,h,void 0,c,null)}return c}n.race=function(t){return s(t,void 0)},n.prototype.race=function(){return s(this,void 0)}}},{"./util":36}],28:[function(t,n,i){n.exports=function(n,i,r,e,u,o){var s=n.Qt,f=t("./util"),c=f.tryCatch;function a(t,i,r,e){this.constructor$(t);var o=s();this._fn=null===o?i:f.domainBind(o,i),void 0!==r&&(r=n.resolve(r)).pn(this),this.Sr=r,this.Er=null,this.Ir=e===u?Array(this.xt):0===e?null:void 0,this.Pn.wn(),this._init$(void 0,-5)}function h(t,n){this.isFulfilled()?n.gi(t):n.J(t)}function v(t,n,i,e){if("function"!=typeof n)return r("expecting a function but got "+f.classString(n));var u=new a(t,n,i,e);return u.promise()}function l(t){this.accum=t,this.array.Rr(t);var i=e(this.value,this.array.Pn);return i instanceof n?(this.array.Er=i,i.nt(d,void 0,void 0,this,void 0)):d.call(this,i)}function d(t){var i,r=this.array,e=r.Pn,u=c(r._fn);e.qt(),(i=void 0!==r.Ir?u.call(e.ct(),t,this.index,this.length):u.call(e.ct(),this.accum,t,this.index,this.length))instanceof n&&(r.Er=i);var s=e.jt();return o.checkForgottenReturns(i,s,void 0!==r.Ir?"Promise.each":"Promise.reduce",e),i}f.inherits(a,i),a.prototype.Rr=function(t){void 0!==this.Ir&&null!==this.Ir&&t!==u&&this.Ir.push(t)},a.prototype.Nr=function(t){return null!==this.Ir&&this.Ir.push(t),this.Ir},a.prototype._init=function(){},a.prototype.rr=function(){this.gi(void 0!==this.Ir?this.Ir:this.Sr)},a.prototype.shouldCopyValues=function(){return!1},a.prototype.gi=function(t){this.Pn.ot(t),this.ai=null},a.prototype._resultCancelled=function(t){if(t===this.Sr)return this.Ot();this.Hn()||(this._resultCancelled$(),this.Er instanceof n&&this.Er.cancel(),this.Sr instanceof n&&this.Sr.cancel())},a.prototype.ir=function(t){var i,r;this.ai=t;var e=t.length;if(void 0!==this.Sr?(i=this.Sr,r=0):(i=n.resolve(t[0]),r=1),this.Er=i,!i.isRejected())for(;r<e;++r){var u={accum:null,value:t[r],index:r,length:e,array:this};i=i.nt(l,void 0,void 0,u,void 0)}void 0!==this.Ir&&(i=i.nt(this.Nr,void 0,void 0,this,void 0)),i.nt(h,h,void 0,i,this)},n.prototype.reduce=function(t,n){return v(this,t,n,null)},n.reduce=function(t,n,i,r){return v(t,n,i,r)}}},{"./util":36}],29:[function(t,n,e){var o,s,f,a,h,v=t("./util"),l=v.getNativePromise();if(v.isNode&&"undefined"==typeof MutationObserver){var d=b.setImmediate,w=process.nextTick;o=v.isRecentNode?function(t){d.call(b,t)}:function(t){w.call(process,t)}}else if("function"==typeof l&&"function"==typeof l.resolve){var y=l.resolve();o=function(t){y.then(t)}}else o="undefined"!=typeof MutationObserver&&(void 0===i||!i.navigator||!i.navigator.standalone&&!i.cordova)&&"classList"in r.documentElement?(s=r.createElement("div"),f={attributes:!0},a=!1,h=r.createElement("div"),new MutationObserver(function(){s.classList.toggle("foo"),a=!1}).observe(h,f),function(t){var n=new MutationObserver(function(){n.disconnect(),t()});n.observe(s,f),a||(a=!0,h.classList.toggle("foo"))}):"undefined"!=typeof setImmediate?function(t){setImmediate(t)}:void 0!==u?function(t){u(t,0)}:function(){throw new c("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")};n.exports=o},{"./util":36}],30:[function(t,n,i){n.exports=function(n,i,r){var e=n.PromiseInspection,u=t("./util");function o(t){this.constructor$(t)}u.inherits(o,i),o.prototype.Dr=function(t,n){this.ai[t]=n;var i=++this.di;return i>=this.xt&&(this.gi(this.ai),!0)},o.prototype.Gn=function(t,n){var i=new e;return i.ut=33554432,i.Cr=t,this.Dr(n,i)},o.prototype.qn=function(t,n){var i=new e;return i.ut=16777216,i.Cr=t,this.Dr(n,i)},n.settle=function(t){return r.deprecated(".settle()",".reflect()"),new o(t).promise()},n.prototype.settle=function(){return n.settle(this)}}},{"./util":36}],31:[function(t,n,i){n.exports=function(n,i,r){var e=t("./util"),u=t("./errors").RangeError,o=t("./errors").AggregateError,s=e.isArray,f={};function c(t){this.constructor$(t),this.Pr=0,this.Or=!1,this.Br=!1}function a(t,n){if((0|n)!==n||n<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var i=new c(t),e=i.promise();return i.setHowMany(n),i.init(),e}e.inherits(c,i),c.prototype._init=function(){if(this.Br)if(0!==this.Pr){this._init$(void 0,-5);var t=s(this.ai);!this.Hn()&&t&&this.Pr>this.Lr()&&this.J(this.xr(this.length()))}else this.gi([])},c.prototype.init=function(){this.Br=!0,this._init()},c.prototype.setUnwrap=function(){this.Or=!0},c.prototype.howMany=function(){return this.Pr},c.prototype.setHowMany=function(t){this.Pr=t},c.prototype.Gn=function(t){return this.Mr(t),this.Fr()===this.howMany()&&(this.ai.length=this.howMany(),1===this.howMany()&&this.Or?this.gi(this.ai[0]):this.gi(this.ai),!0)},c.prototype.qn=function(t){return this.Ur(t),this.Hr()},c.prototype.zn=function(){return this.ai instanceof n||null==this.ai?this.Ot():(this.Ur(f),this.Hr())},c.prototype.Hr=function(){if(this.howMany()>this.Lr()){for(var t=new o,n=this.length();n<this.ai.length;++n)this.ai[n]!==f&&t.push(this.ai[n]);return t.length>0?this.J(t):this.Ot(),!0}return!1},c.prototype.Fr=function(){return this.di},c.prototype.Vr=function(){return this.ai.length-this.length()},c.prototype.Ur=function(t){this.ai.push(t)},c.prototype.Mr=function(t){this.ai[this.di++]=t},c.prototype.Lr=function(){return this.length()-this.Vr()},c.prototype.xr=function(t){var n="Input array must contain at least "+this.Pr+" items but contains only "+t+" items";return new u(n)},c.prototype.rr=function(){this.J(this.xr(0))},n.some=function(t,n){return a(t,n)},n.prototype.some=function(t){return a(this,t)},n.l=c}},{"./errors":12,"./util":36}],32:[function(t,n,i){n.exports=function(t){function n(t){void 0!==t?(t=t.ft(),this.ut=t.ut,this.Cr=t.Ni()?t.cn():void 0):(this.ut=0,this.Cr=void 0)}n.prototype.cn=function(){return this.Cr};var i=n.prototype.value=function(){if(!this.isFulfilled())throw new a("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this.cn()},r=n.prototype.error=n.prototype.reason=function(){if(!this.isRejected())throw new a("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this.cn()},e=n.prototype.isFulfilled=function(){return 0!=(33554432&this.ut)},u=n.prototype.isRejected=function(){return 0!=(16777216&this.ut)},o=n.prototype.isPending=function(){return 0==(50397184&this.ut)},s=n.prototype.isResolved=function(){return 0!=(50331648&this.ut)};n.prototype.isCancelled=function(){return 0!=(8454144&this.ut)},t.prototype.Xr=function(){return 65536==(65536&this.ut)},t.prototype.Ut=function(){return this.ft().Xr()},t.prototype.isCancelled=function(){return 0!=(8454144&this.ft().ut)},t.prototype.isPending=function(){return o.call(this.ft())},t.prototype.isRejected=function(){return u.call(this.ft())},t.prototype.isFulfilled=function(){return e.call(this.ft())},t.prototype.isResolved=function(){return s.call(this.ft())},t.prototype.value=function(){return i.call(this.ft())},t.prototype.reason=function(){var t=this.ft();return t._n(),r.call(t)},t.prototype.Kn=function(){return this.cn()},t.prototype.Zn=function(){return this._n(),this.cn()},t.PromiseInspection=n}},{}],33:[function(t,n,i){n.exports=function(n,i){var r=t("./util"),e=r.errorObj,u=r.isObject,o={}.hasOwnProperty;return function(t,s){if(u(t)){if(t instanceof n)return t;var f=function(t){try{return function(t){return t.then}(t)}catch(t){return e.e=t,e}}(t);if(f===e){s&&s.qt();var c=n.reject(f.e);return s&&s.jt(),c}if("function"==typeof f){if(function(t){try{return o.call(t,"Si")}catch(t){return!1}}(t)){var c=new n(i);return t.nt(c.Xn,c.J,void 0,c,null),c}return function(t,u,o){var s=new n(i),f=s;o&&o.qt(),s.wn(),o&&o.jt();var c=!0,a=r.tryCatch(u).call(t,function(t){s&&(s.ot(t),s=null)},function(t){s&&(s.Yn(t,c,!0),s=null)});return c=!1,s&&a===e&&(s.Yn(a.e,!0,!0),s=null),f}(t,f,s)}}return t}}},{"./util":36}],34:[function(t,n,i){n.exports=function(n,i,r){var e=t("./util"),s=n.TimeoutError;function f(t){this.handle=t}f.prototype._resultCancelled=function(){o(this.handle)};var a=function(t){return h(+this).thenReturn(t)},h=n.delay=function(t,e){var o,s;return void 0!==e?(o=n.resolve(e).nt(a,null,null,t,void 0),r.cancellation()&&e instanceof n&&o.dt(e)):(o=new n(i),s=u(function(){o.Xn()},+t),r.cancellation()&&o.dt(new f(s)),o.wn()),o.Di(),o};function v(t){return o(this.handle),t}function l(t){throw o(this.handle),t}n.prototype.delay=function(t){return h(t,this)},n.prototype.timeout=function(t,n){var i,o,a=new f(u(function(){i.isPending()&&function(t,n,i){var r;r="string"!=typeof n?n instanceof c?n:new s("operation timed out"):new s(n),e.markAsOriginatingFromRejection(r),t.Vt(r),t.J(r),null!=i&&i.cancel()}(i,n,o)},t=+t));return r.cancellation()?(o=this.then(),(i=o.nt(v,l,void 0,a,void 0)).dt(a)):i=this.nt(v,l,void 0,a,void 0),i}}},{"./util":36}],35:[function(t,n,i){n.exports=function(n,i,r,e,o,s){var f=t("./util"),c=t("./errors").TypeError,a=t("./util").inherits,h=f.errorObj,v=f.tryCatch,l={};function d(t){u(function(){throw t},0)}function w(t,i){var e=0,u=t.length,s=new n(o);return function o(){if(e>=u)return s.Xn();var f=function(t){var n=r(t);return n!==t&&"function"==typeof t.zr&&"function"==typeof t.Wr&&t.zr()&&n.Gr(t.Wr()),n}(t[e++]);if(f instanceof n&&f.zr()){try{f=r(f.Wr().tryDispose(i),t.promise)}catch(t){return d(t)}if(f instanceof n)return f.nt(o,d,null,null,null)}o()}(),s}function y(t,n,i){this.qr=t,this.Pn=n,this.jr=i}function p(t,n,i){this.constructor$(t,n,i)}function b(t){return y.isDisposer(t)?(this.resources[this.index].Gr(t),t.promise()):t}function g(t){this.length=t,this.promise=null,this[t-1]=null}y.prototype.data=function(){return this.qr},y.prototype.promise=function(){return this.Pn},y.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():l},y.prototype.tryDispose=function(t){var n=this.resource(),i=this.jr;void 0!==i&&i.qt();var r=n!==l?this.doDispose(n,t):null;return void 0!==i&&i.jt(),this.Pn.Yr(),this.qr=null,r},y.isDisposer=function(t){return null!=t&&"function"==typeof t.resource&&"function"==typeof t.tryDispose},a(p,y),p.prototype.doDispose=function(t,n){var i=this.data();return i.call(t,t,n)},g.prototype._resultCancelled=function(){for(var t=this.length,i=0;i<t;++i){var r=this[i];r instanceof n&&r.cancel()}},n.using=function(){var t=arguments.length;if(t<2)return i("you must pass at least 2 arguments to Promise.using");var e,u=arguments[t-1];if("function"!=typeof u)return i("expecting a function but got "+f.classString(u));var o=!0;2===t&&Array.isArray(arguments[0])?(e=arguments[0],t=e.length,o=!1):(e=arguments,t--);for(var c=new g(t),a=0;a<t;++a){var l=e[a];if(y.isDisposer(l)){var d=l;(l=l.promise()).Gr(d)}else{var p=r(l);p instanceof n&&(l=p.nt(b,null,null,{resources:c,index:a},void 0))}c[a]=l}for(var m=new Array(c.length),a=0;a<m.length;++a)m[a]=n.resolve(c[a]).reflect();var _=n.all(m).then(function(t){for(var n=0;n<t.length;++n){var i=t[n];if(i.isRejected())return h.e=i.error(),h;if(!i.isFulfilled())return void _.cancel();t[n]=i.value()}E.qt(),u=v(u);var r=o?u.apply(void 0,t):u(t),e=E.jt();return s.checkForgottenReturns(r,e,"Promise.using",E),r}),E=_.lastly(function(){var t=new n.PromiseInspection(_);return w(c,t)});return c.promise=E,E.dt(c),E},n.prototype.Gr=function(t){this.ut=131072|this.ut,this.Qr=t},n.prototype.zr=function(){return(131072&this.ut)>0},n.prototype.Wr=function(){return this.Qr},n.prototype.Yr=function(){this.ut=-131073&this.ut,this.Qr=void 0},n.prototype.disposer=function(t){if("function"==typeof t)return new p(t,this,e());throw new c}}},{"./errors":12,"./util":36}],36:[function(n,r,u){var o,s=n("./es5"),f=void 0===e,a={e:{}},v=void 0!==t?t:void 0!==i?i:void 0!==b?b:void 0!==this?this:null;function l(){try{var t=o;return o=null,t.apply(this,arguments)}catch(t){return a.e=t,a}}function d(t){return null==t||!0===t||!1===t||"string"==typeof t||"number"==typeof t}function w(t,n,i){if(d(t))return t;var r={value:i,configurable:!0,enumerable:!1,writable:!0};return s.defineProperty(t,n,r),t}var y=function(){var t=[Array.prototype,h.prototype,Function.prototype],n=function(n){for(var i=0;i<t.length;++i)if(t[i]===n)return!0;return!1};if(s.isES5){var i=h.getOwnPropertyNames;return function(t){for(var r=[],e=h.create(null);null!=t&&!n(t);){var u;try{u=i(t)}catch(t){return r}for(var o=0;o<u.length;++o){var f=u[o];if(!e[f]){e[f]=!0;var c=h.getOwnPropertyDescriptor(t,f);null!=c&&null==c.get&&null==c.set&&r.push(f)}}t=s.getPrototypeOf(t)}return r}}var r={}.hasOwnProperty;return function(i){if(n(i))return[];var e=[];t:for(var u in i)if(r.call(i,u))e.push(u);else{for(var o=0;o<t.length;++o)if(r.call(t[o],u))continue t;e.push(u)}return e}}(),p=/this\s*\.\s*\S+\s*=/,g=/^[a-z$_][a-z$_0-9]*$/i;function m(t){try{return t+""}catch(t){return"[no string representation]"}}function _(t){return t instanceof c||null!==t&&"object"==typeof t&&"string"==typeof t.message&&"string"==typeof t.name}function E(t){return _(t)&&s.propertyIsWritable(t,"stack")}var S="stack"in new c?function(t){return E(t)?t:new c(m(t))}:function(t){if(E(t))return t;try{throw new c(m(t))}catch(t){return t}};function I(t){return{}.toString.call(t)}var R=function(t){return s.isArray(t)?t:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var T="function"==typeof Array.from?function(t){return Array.from(t)}:function(t){for(var n,i=[],r=t[Symbol.iterator]();!(n=r.next()).done;)i.push(n.value);return i};R=function(t){return s.isArray(t)?t:null!=t&&"function"==typeof t[Symbol.iterator]?T(t):null}}var k,A="undefined"!=typeof process&&"[object process]"===I(process).toLowerCase(),O="undefined"!=typeof process&&void 0!==process.env,N={isClass:function(t){try{if("function"==typeof t){var n=s.names(t.prototype),i=s.isES5&&n.length>1,r=n.length>0&&!(1===n.length&&"constructor"===n[0]),e=p.test(t+"")&&s.names(t).length>0;if(i||r||e)return!0}return!1}catch(t){return!1}},isIdentifier:function(t){return g.test(t)},inheritedDataKeys:y,getDataPropertyOrDefault:function(t,n,i){if(!s.isES5)return{}.hasOwnProperty.call(t,n)?t[n]:void 0;var r=h.getOwnPropertyDescriptor(t,n);return null!=r?null==r.get&&null==r.set?r.value:i:void 0},thrower:function(t){throw t},isArray:s.isArray,asArray:R,notEnumerableProp:w,isPrimitive:d,isObject:function(t){return"function"==typeof t||"object"==typeof t&&null!==t},isError:_,canEvaluate:f,errorObj:a,tryCatch:function(t){return o=t,l},inherits:function(t,n){var i={}.hasOwnProperty;function r(){for(var r in this.constructor=t,this.constructor$=n,n.prototype)i.call(n.prototype,r)&&"$"!==r.charAt(r.length-1)&&(this[r+"$"]=n.prototype[r])}return r.prototype=n.prototype,t.prototype=new r,t.prototype},withAppended:function(t,n){var i,r=t.length,e=new Array(r+1);for(i=0;i<r;++i)e[i]=t[i];return e[i]=n,e},maybeWrapAsError:function(t){return d(t)?new c(m(t)):t},toFastProperties:function(t){return t},filledRange:function(t,n,i){for(var r=new Array(t),e=0;e<t;++e)r[e]=n+e+i;return r},toString:m,canAttachTrace:E,ensureErrorObject:S,originatesFromRejection:function(t){return null!=t&&(t instanceof c.Nn.OperationalError||!0===t.isOperational)},markAsOriginatingFromRejection:function(t){try{w(t,"isOperational",!0)}catch(t){}},classString:I,copyDescriptors:function(t,n,i){for(var r=s.names(t),e=0;e<r.length;++e){var u=r[e];if(i(u))try{s.defineProperty(n,u,s.getDescriptor(t,u))}catch(t){}}},hasDevTools:"undefined"!=typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:A,hasEnvVariables:O,env:function(t){return O?process.env[t]:void 0},global:v,getNativePromise:function(){if("function"==typeof Promise)try{var t=new Promise(function(){});if("[object Promise]"==={}.toString.call(t))return Promise}catch(t){}},domainBind:function(t,n){return t.bind(n)}};N.isRecentNode=N.isNode&&(process.versions&&process.versions.node?k=process.versions.node.split(".").map(Number):process.version&&(k=process.version.split(".").map(Number)),0===k[0]&&k[1]>10||k[0]>0),N.isNode&&N.toFastProperties(process);try{throw new c}catch(t){N.lastLineError=t}r.exports=N},{"./es5":13}]},{},[4])(4),null!=i?i.P=i.Promise:null!=t&&(t.P=t.Promise)});function S(t){m=t}var I={}.toString;var R=Array.isArray||function(t){return"[object Array]"===I.call(t)};function T(t){return"object"==typeof t&&null!==t}function k(t,n,i){for(var r=0;r<t.length;r+=1){var e=t[r];if(n.call(i,e,r,t))return r}return-1}function A(t,n){var i=t.indexOf(n);return-1!==i&&(function(t,n){t.splice(n,1)}(t,i),!0)}function O(t,n){return-1!==t.indexOf(n)}function N(t){t.length=0}var D=function(){};function C(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*v.random()|0;return("x"===t?n:3&n|8).toString(16)})}var x,B="https://theo.proxy";function F(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),h.defineProperty(t,r.key,r)}}function P(t,n,i){return n&&F(t.prototype,n),i&&F(t,i),t}function j(){var t=h.create(null);return t.__=void 0,delete t.__,t}function U(){return new q}!function(t){t.h_="audio",t.a_="video",t.dT="metadata"}(x||(x={}));var L,M,q=("undefined"!=typeof Map&&"entries"in Map.prototype?Map:void 0)||(L=function(){function t(t,n){this.data=void 0,this.keys=void 0,this.index=0,this.selector=void 0,this.data=t,this.selector=n,this.keys=h.keys(t)}var n=t.prototype;return n.next=function(){var t=this.index;return t<this.keys.length?(this.index++,{value:this.selector(this.data,this.keys[t]),done:!1}):{value:void 0,done:!0}},t}(),function(){function t(){this.data=j(),this.size=0}var n=t.prototype;return n.get=function(t){return this.data[t]},n.set=function(t,n){return this.has(t)||this.size++,this.data[t]=n,this},n.has=function(t){return t in this.data},n.delete=function(t){return!!this.has(t)&&(this.size--,delete this.data[t],!0)},n.clear=function(){this.data=j(),this.size=0},n.keys=function(){return new L(this.data,function(t,n){return n})},n.values=function(){return new L(this.data,function(t,n){return t[n]})},n.entries=function(){return new L(this.data,function(t,n){return[n,t[n]]})},n.forEach=function(t){for(var n in this.data)t(this.data[n],n)},t}());!function(t){t.Jl="#EXTINF",t.Obt="#EXT-X-MAP",t.nB="#EXTM3U",t.i="#EXT-X-VERSION",t.u="#EXT-X-TARGETDURATION",t.u9="#EXT-X-START",t.o="#EXT-X-INDEPENDENT-SEGMENTS",t.Qv="#EXT-X-STREAM-INF",t.s="#EXT-X-MEDIA-SEQUENCE",t.h="#EXT-X-ENDLIST",t.iB="#EXT-X-MEDIA",t.v="#EXT-X-DISCONTINUITY",t.p="#EXT-X-DISCONTINUITY-SEQUENCE",t.m="#EXT-X-PLAYLIST-TYPE"}(M||(M={}));var W,X=function(){function t(t,n){this.jh=M.Jl,this.S=void 0,this.I=void 0,this.S=t,this.I=n}return t.prototype.MR=function(){return this.jh+":"+this.S+",\n"+this.I},t}(),H=function(){function t(){this.jh=M.nB}return t.prototype.MR=function(){return this.jh},t}(),V=function(){function t(t){this.jh=M.i,this.XT=void 0,this.XT=t}return t.prototype.MR=function(){return this.jh+":"+this.XT},t}(),G=function(){function t(t){this.jh=M.u,this.BAt=void 0,this.BAt=t}return t.prototype.MR=function(){return this.jh+":"+this.BAt},t}(),z=function(){function t(t){this.jh=M.u9,this.TSt=void 0,this.TSt=t}return t.prototype.MR=function(){return this.jh+":TIME-OFFSET="+this.TSt},t}(),Y=function(){function t(){this.jh=M.o}return t.prototype.MR=function(){return this.jh},t}(),K=function(){function t(t){this.jh=M.Qv,this.GN=1,this.I=void 0,this.I=t}return t.prototype.MR=function(){return this.jh+":BANDWIDTH="+this.GN+',AUDIO="audio"\n'+this.I},t}(),$=function(){function t(t){this.jh=M.s,this.IE=void 0,this.IE=t}return t.prototype.MR=function(){return this.jh+":"+this.IE},t}(),J=function(){function t(){this.jh=M.v}return t.prototype.MR=function(){return this.jh},t}(),Z=function(){function t(t){this.jh=M.p,this.IE=void 0,this.IE=t}return t.prototype.MR=function(){return this.jh+":"+this.IE},t}();!function(t){t.Mbt="VOD",t.BDt="EVENT"}(W||(W={}));var Q=function(){function t(t){this.jh=M.iB,this.I=void 0,this.I=t}return t.prototype.MR=function(){var t=U();t.set("TYPE","AUDIO"),t.set("GROUP-ID",'"audio"'),t.set("NAME",'"audio"'),t.set("AUTOSELECT","YES"),t.set("DEFAULT","YES"),t.set("CHANNELS",'"2"'),t.set("URI",'"'+this.I+'"');var n=[];return t.forEach(function(t,i){return n.push(i+"="+t)}),this.jh+":"+n.join(",")},t}(),tt=function(){function t(t){this.TV=[],this.TV=t}return t.prototype.T=function(){for(var t="",n=0,i=this.TV;n<i.length;n++){t+=i[n].MR()+"\n"}return t},P(t,[{key:"PS",get:function(){return this.TV}}]),t}(),nt=function(){function t(){this.TV=[];for(var t=[new H,new V(8)],n=0;n<t.length;n++){var i=t[n];this.k(i)}}var n=t.prototype;return n.k=function(t){this.TV.push(t)},n.Ta=function(){this.TV.length=0},P(t,[{key:"PS",get:function(){return new tt(this.TV)}}]),t}();function it(t,n){return(it=h.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function rt(t,n){t.prototype=h.create(n.prototype),t.prototype.constructor=t,it(t,n)}var et,ut=9007199254740991,ot=v.pow(2,-52);function st(t,n){for(var i=t,r=n;0!==r;){var e=i%r;i=r,r=e}return i<0?-i:i}!function(t){t[t.Hp=0]="Hp",t[t.Vp=1]="Vp",t[t.Xp=-1]="Xp"}(et||(et={}));var ft=function(t,n){return function(t,n){if(t===n)return!0;var i=v.abs(t-n);return i<ot||i<v.max(v.abs(t),v.abs(n))*ot}(t,n)?et.Hp:function(t,n){return t===n?et.Hp:t<n?et.Xp:t>n?et.Vp:w(t)?w(n)?et.Hp:et.Vp:et.Xp}(t,n)},ct=function(){function t(){}var n=t.prototype;return n.zp=function(t){return this.Wp()*t},n.Gp=function(t){return this.qp(t)>0},n.jp=function(t){return this.qp(t)>=0},n.Yp=function(t,n){return this.Kp(t).Qp(n)},n.Dp=function(t){return 0===this.qp(t)},n.Zp=function(t){return this.qp(t)<0},n.Qp=function(t){return this.qp(t)<=0},n.Jp=function(){return this.$p()?this.ib():this},n.eb=function(t){return this.Gk(t.ib())},n.Kp=function(t){return this.eb(t).Jp()},t}();function at(t,n){return t.sb()?n.sb()?et.Hp:et.Vp:n.sb()?et.Xp:t.ub()?n.ub()&&t.$p()===n.$p()?et.Hp:t.$p()?et.Xp:et.Vp:n.$p()?et.Vp:et.Xp}var ht=lt,vt=null;try{vt=new WebAssembly.Instance(new WebAssembly.Module(new y([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(t){}function lt(t,n,i){this.low=0|t,this.high=0|n,this.unsigned=!!i}function dt(t){return!0===(t&&t.du)}lt.prototype.du,h.defineProperty(lt.prototype,"du",{value:!0}),lt.isLong=dt;var wt={},yt={};function pt(t,n){var i,r,e;return n?(e=0<=(t>>>=0)&&t<256)&&(r=yt[t])?r:(i=gt(t,(0|t)<0?-1:0,!0),e&&(yt[t]=i),i):(e=-128<=(t|=0)&&t<128)&&(r=wt[t])?r:(i=gt(t,t<0?-1:0,!1),e&&(wt[t]=i),i)}function bt(t,n){if(w(t))return n?At:kt;if(n){if(t<0)return At;if(t>=It)return xt}else{if(t<=-Rt)return Bt;if(t+1>=Rt)return Ct}return t<0?bt(-t,n).neg():gt(t%St|0,t/St|0,n)}function gt(t,n,i){return new lt(t,n,i)}lt.fromInt=pt,lt.fromNumber=bt,lt.fromBits=gt;var mt=v.pow;function _t(t,n,i){if(0===t.length)throw c("empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return kt;if("number"==typeof n?(i=n,n=!1):n=!!n,(i=i||10)<2||36<i)throw RangeError("radix");var r;if((r=t.indexOf("-"))>0)throw c("interior hyphen");if(0===r)return _t(t.substring(1),n,i).neg();for(var e=bt(mt(i,8)),u=kt,o=0;o<t.length;o+=8){var s=v.min(8,t.length-o),f=l(t.substring(o,o+s),i);if(s<8){var a=bt(mt(i,s));u=u.mul(a).add(bt(f))}else u=(u=u.mul(e)).add(bt(f))}return u.unsigned=n,u}function Et(t,n){return"number"==typeof t?bt(t,n):"string"==typeof t?_t(t,n):gt(t.low,t.high,"boolean"==typeof n?n:t.unsigned)}lt.fromString=_t,lt.fromValue=Et;var St=4294967296,It=St*St,Rt=It/2,Tt=pt(1<<24),kt=pt(0);lt.ZERO=kt;var At=pt(0,!0);lt.UZERO=At;var Ot=pt(1);lt.ONE=Ot;var Nt=pt(1,!0);lt.UONE=Nt;var Dt=pt(-1);lt.NEG_ONE=Dt;var Ct=gt(-1,2147483647,!1);lt.MAX_VALUE=Ct;var xt=gt(-1,-1,!0);lt.MAX_UNSIGNED_VALUE=xt;var Bt=gt(0,-2147483648,!1);lt.MIN_VALUE=Bt;var Ft=lt.prototype;Ft.toInt=function(){return this.unsigned?this.low>>>0:this.low},Ft.toNumber=function(){return this.unsigned?(this.high>>>0)*St+(this.low>>>0):this.high*St+(this.low>>>0)},Ft.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(Bt)){var n=bt(t),i=this.div(n),r=i.mul(n).sub(this);return i.toString(t)+r.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var e=bt(mt(t,6),this.unsigned),u=this,o="";;){var s=u.div(e),f=(u.sub(s.mul(e)).toInt()>>>0).toString(t);if((u=s).isZero())return f+o;for(;f.length<6;)f="0"+f;o=""+f+o}},Ft.getHighBits=function(){return this.high},Ft.getHighBitsUnsigned=function(){return this.high>>>0},Ft.getLowBits=function(){return this.low},Ft.getLowBitsUnsigned=function(){return this.low>>>0},Ft.getNumBitsAbs=function(){if(this.isNegative())return this.eq(Bt)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,n=31;n>0&&0==(t&1<<n);n--);return 0!=this.high?n+33:n+1},Ft.isZero=function(){return 0===this.high&&0===this.low},Ft.eqz=Ft.isZero,Ft.isNegative=function(){return!this.unsigned&&this.high<0},Ft.isPositive=function(){return this.unsigned||this.high>=0},Ft.isOdd=function(){return 1==(1&this.low)},Ft.isEven=function(){return 0==(1&this.low)},Ft.equals=function(t){return dt(t)||(t=Et(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&(this.high===t.high&&this.low===t.low)},Ft.eq=Ft.equals,Ft.notEquals=function(t){return!this.eq(t)},Ft.neq=Ft.notEquals,Ft.ne=Ft.notEquals,Ft.lessThan=function(t){return this.comp(t)<0},Ft.lt=Ft.lessThan,Ft.lessThanOrEqual=function(t){return this.comp(t)<=0},Ft.lte=Ft.lessThanOrEqual,Ft.le=Ft.lessThanOrEqual,Ft.greaterThan=function(t){return this.comp(t)>0},Ft.gt=Ft.greaterThan,Ft.greaterThanOrEqual=function(t){return this.comp(t)>=0},Ft.gte=Ft.greaterThanOrEqual,Ft.ge=Ft.greaterThanOrEqual,Ft.compare=function(t){if(dt(t)||(t=Et(t)),this.eq(t))return 0;var n=this.isNegative(),i=t.isNegative();return n&&!i?-1:!n&&i?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},Ft.comp=Ft.compare,Ft.negate=function(){return!this.unsigned&&this.eq(Bt)?Bt:this.not().add(Ot)},Ft.neg=Ft.negate,Ft.add=function(t){dt(t)||(t=Et(t));var n=this.high>>>16,i=65535&this.high,r=this.low>>>16,e=65535&this.low,u=t.high>>>16,o=65535&t.high,s=t.low>>>16,f=0,c=0,a=0,h=0;return a+=(h+=e+(65535&t.low))>>>16,c+=(a+=r+s)>>>16,f+=(c+=i+o)>>>16,f+=n+u,gt((a&=65535)<<16|(h&=65535),(f&=65535)<<16|(c&=65535),this.unsigned)},Ft.subtract=function(t){return dt(t)||(t=Et(t)),this.add(t.neg())},Ft.sub=Ft.subtract,Ft.multiply=function(t){if(this.isZero())return kt;if(dt(t)||(t=Et(t)),vt)return gt(vt.mul(this.low,this.high,t.low,t.high),vt.get_high(),this.unsigned);if(t.isZero())return kt;if(this.eq(Bt))return t.isOdd()?Bt:kt;if(t.eq(Bt))return this.isOdd()?Bt:kt;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(Tt)&&t.lt(Tt))return bt(this.toNumber()*t.toNumber(),this.unsigned);var n=this.high>>>16,i=65535&this.high,r=this.low>>>16,e=65535&this.low,u=t.high>>>16,o=65535&t.high,s=t.low>>>16,f=65535&t.low,c=0,a=0,h=0,v=0;return h+=(v+=e*f)>>>16,a+=(h+=r*f)>>>16,h&=65535,a+=(h+=e*s)>>>16,c+=(a+=i*f)>>>16,a&=65535,c+=(a+=r*s)>>>16,a&=65535,c+=(a+=e*o)>>>16,c+=n*f+i*s+r*o+e*u,gt((h&=65535)<<16|(v&=65535),(c&=65535)<<16|(a&=65535),this.unsigned)},Ft.mul=Ft.multiply,Ft.divide=function(t){if(dt(t)||(t=Et(t)),t.isZero())throw c("division by zero");var n,i,r;if(vt)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?gt((this.unsigned?vt.div_u:vt.div_s)(this.low,this.high,t.low,t.high),vt.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?At:kt;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return At;if(t.gt(this.shru(1)))return Nt;r=At}else{if(this.eq(Bt))return t.eq(Ot)||t.eq(Dt)?Bt:t.eq(Bt)?Ot:(n=this.shr(1).div(t).shl(1)).eq(kt)?t.isNegative()?Ot:Dt:(i=this.sub(t.mul(n)),r=n.add(i.div(t)));if(t.eq(Bt))return this.unsigned?At:kt;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();r=kt}for(i=this;i.gte(t);){n=v.max(1,v.floor(i.toNumber()/t.toNumber()));for(var e=v.ceil(v.log(n)/v.LN2),u=e<=48?1:mt(2,e-48),o=bt(n),s=o.mul(t);s.isNegative()||s.gt(i);)s=(o=bt(n-=u,this.unsigned)).mul(t);o.isZero()&&(o=Ot),r=r.add(o),i=i.sub(s)}return r},Ft.div=Ft.divide,Ft.modulo=function(t){return dt(t)||(t=Et(t)),vt?gt((this.unsigned?vt.rem_u:vt.rem_s)(this.low,this.high,t.low,t.high),vt.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},Ft.mod=Ft.modulo,Ft.rem=Ft.modulo,Ft.not=function(){return gt(~this.low,~this.high,this.unsigned)},Ft.and=function(t){return dt(t)||(t=Et(t)),gt(this.low&t.low,this.high&t.high,this.unsigned)},Ft.or=function(t){return dt(t)||(t=Et(t)),gt(this.low|t.low,this.high|t.high,this.unsigned)},Ft.xor=function(t){return dt(t)||(t=Et(t)),gt(this.low^t.low,this.high^t.high,this.unsigned)},Ft.shiftLeft=function(t){return dt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?gt(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):gt(0,this.low<<t-32,this.unsigned)},Ft.shl=Ft.shiftLeft,Ft.shiftRight=function(t){return dt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?gt(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):gt(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},Ft.shr=Ft.shiftRight,Ft.shiftRightUnsigned=function(t){if(dt(t)&&(t=t.toInt()),0===(t&=63))return this;var n=this.high;return t<32?gt(this.low>>>t|n<<32-t,n>>>t,this.unsigned):gt(32===t?n:n>>>t-32,0,this.unsigned)},Ft.shru=Ft.shiftRightUnsigned,Ft.shr_u=Ft.shiftRightUnsigned,Ft.toSigned=function(){return this.unsigned?gt(this.low,this.high,!1):this},Ft.toUnsigned=function(){return this.unsigned?this:gt(this.low,this.high,!0)},Ft.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},Ft.toBytesLE=function(){var t=this.high,n=this.low;return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]},Ft.toBytesBE=function(){var t=this.high,n=this.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,n>>>24,n>>>16&255,n>>>8&255,255&n]},lt.fromBytes=function(t,n,i){return i?lt.fromBytesLE(t,n):lt.fromBytesBE(t,n)},lt.fromBytesLE=function(t,n){return new lt(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,n)},lt.fromBytesBE=function(t,n){return new lt(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],n)};var Pt=ht,jt=function(){function t(t,n){this.ob=void 0,this.hb=void 0,this.ob=t,this.hb=n}t.cb=function(n,i,r){return r?new t(n.toUnsigned(),i.toUnsigned()):new t(n.toSigned(),i.toSigned())},t.fb=function(n){return n.unsigned?new t(n,Pt.UZERO):new t(n,n.isNegative()?Pt.NEG_ONE:Pt.ZERO)},t.vb=function(n,i){if(w(n))return i?t._b:t.gb;if(i){if(n<0)return t._b;if(n>=3.402823669209385e38)return t.wb}else{if(n<=-1.7014118346046923e38)return t.mb;if(n+1>=1.7014118346046923e38)return t.yb}return n<0?t.vb(-n,i).ib():t.cb(Pt.fromNumber(n%0x10000000000000000),Pt.fromNumber(n/0x10000000000000000),i)};var n=t.prototype;return n.kb=function(){return this.hb.unsigned},n.pb=function(){return this.ob.isZero()&&this.hb.isZero()},n.$p=function(){return this.hb.isNegative()},n.bb=function(){return this.kb()?t.cb(this.ob,this.hb,!1):this},n.Ab=function(){return this.kb()?this:t.cb(this.ob,this.hb,!0)},n.Tb=function(){return this.ob},n.Wp=function(){return this.$p()?-this.ib().Wp():0x10000000000000000*this.hb.toNumber()+this.ob.toUnsigned().toNumber()},n.Sb=function(){return this.ob.toInt()},n.Dp=function(t){return(this.kb()===t.kb()||this.hb.getHighBits()>>>31!=1||t.hb.getHighBits()>>>31!=1)&&(this.hb.toUnsigned().eq(t.hb.toUnsigned())&&this.ob.toUnsigned().eq(t.ob.toUnsigned()))},n.qp=function(t){if(this.Dp(t))return et.Hp;var n=this.$p(),i=t.$p();if(n&&!i)return et.Xp;if(!n&&i)return et.Vp;if(!this.kb())return this.eb(t).$p()?et.Xp:et.Vp;var r=this.Ab(),e=t.Ab(),u=e.hb.comp(r.hb);return u>0||0===u&&e.ob.gt(r.ob)?et.Xp:et.Vp},n.Zp=function(t){return this.qp(t)<0},n.Qp=function(t){return this.qp(t)<=0},n.Eb=function(t){return this.qp(t)>0},n.Ib=function(t){return this.qp(t)>=0},n.Rb=function(){return new t(this.ob.not(),this.hb.not())},n.Nb=function(n){return new t(this.ob.and(n.ob),this.hb.and(n.hb))},n.Db=function(n){return new t(this.ob.or(n.ob),this.hb.or(n.hb))},n.Cb=function(n){var i=127&n;return 0===i?this:i<64?t.cb(this.ob.shl(i),this.hb.shl(i).or(this.ob.shru(64-i)),this.kb()):t.cb(Pt.ZERO,this.ob.shl(i-64),this.kb())},n.Pb=function(n){var i=127&n;return 0===i?this:i<64?t.cb(this.ob.shru(i).or(this.hb.shl(64-i)),this.hb.shr(i),this.kb()):t.cb(this.hb.shr(i-64),this.hb.isNegative()?Pt.NEG_ONE:Pt.ZERO,this.kb())},n.Ob=function(n){var i=127&n;return 0===i?this:i<64?t.cb(this.ob.shru(i).or(this.hb.shl(64-i)),this.hb.shru(i),this.kb()):64===i?t.cb(this.hb,Pt.ZERO,this.kb()):t.cb(this.hb.shru(i-64),Pt.ZERO,this.kb())},n.Gk=function(n){var i=this.hb.high>>>16,r=65535&this.hb.high,e=this.hb.low>>>16,u=65535&this.hb.low,o=this.ob.high>>>16,s=65535&this.ob.high,f=this.ob.low>>>16,c=65535&this.ob.low,a=n.hb.high>>>16,h=65535&n.hb.high,v=n.hb.low>>>16,l=65535&n.hb.low,d=n.ob.high>>>16,w=65535&n.ob.high,y=n.ob.low>>>16,p=0,b=0,g=0,m=0,_=0,E=0,S=0,I=0;S+=(I+=c+(65535&n.ob.low))>>>16,I&=65535,E+=(S+=f+y)>>>16,S&=65535,_+=(E+=s+w)>>>16,E&=65535,m+=(_+=o+d)>>>16,_&=65535,g+=(m+=u+l)>>>16,m&=65535,b+=(g+=e+v)>>>16,g&=65535,p+=(b+=r+h)>>>16,b&=65535,p+=i+a,p&=65535;var R=this.kb(),T=Pt.fromBits(g<<16|m,p<<16|b,R),k=Pt.fromBits(S<<16|I,_<<16|E,R);return t.cb(k,T,R)},n.eb=function(t){return this.Gk(t.ib())},n.ib=function(){return this.Rb().Gk(t.Bb)},n.Lb=function(n){if(this.pb()||n.pb())return this.kb()?t._b:t.gb;if(this.$p())return n.$p()?this.ib().Lb(n.ib()):this.ib().Lb(n).ib();if(n.$p())return this.Lb(n.ib()).ib();if(this.hb.isZero()&&0===this.ob.high&&n.hb.isZero()&&0===n.ob.high)return t.fb(this.ob.multiply(n.ob));var i=Pt.fromBits(4294967295,0,!0),r=this.ob.and(i),e=this.ob.shru(32),u=this.hb.and(i),o=this.hb.shru(32),s=n.ob.and(i),f=n.ob.shru(32),c=n.hb.and(i),a=n.hb.shru(32),h=Pt.UZERO,v=Pt.UZERO,l=Pt.UZERO,d=Pt.UZERO;h=h.add(r.mul(s)),v=v.add(h.shru(32)),h=h.and(i),v=v.add(e.mul(s)),l=l.add(v.shru(32)),v=(v=v.and(i)).add(r.mul(f)),l=l.add(v.shru(32)),v=v.and(i),l=l.add(u.mul(s)),d=d.add(l.shru(32)),l=(l=l.and(i)).add(e.mul(f)),d=d.add(l.shru(32)),l=(l=l.and(i)).add(r.mul(c)),d=d.add(l.shru(32)),l=l.and(i),d=d.add(o.mul(s)).add(u.mul(f)).add(e.mul(c)).add(r.mul(a)).and(i);var w=Pt.fromBits(h.getLowBitsUnsigned(),v.getLowBitsUnsigned(),!0),y=Pt.fromBits(l.getLowBitsUnsigned(),d.getLowBitsUnsigned(),!0);return t.cb(w,y,this.kb())},n.xb=function(n){var i,r,e=n;if(e.pb())throw new RangeError("division by zero");if(this.pb())return this.kb()?[t._b,t._b]:[t.gb,t.gb];if(this.kb()){if(e.kb()||(e=e.Ab()),e.Eb(this))return[t._b,this];if(e.Eb(this.Ob(1)))return[r=t.Mb,i=this.eb(e)];r=t._b}else{if(this.Dp(t.mb)){if(e.Dp(t.Bb)||e.Dp(t.Fb))return[t.mb,t.gb];if(e.Dp(t.mb))return[t.Bb,t.gb];var u=this.Pb(1).Ub(e).Cb(1);return u.Dp(t.gb)?r=e.$p()?t.Bb:t.Fb:(i=this.eb(e.Lb(u)),r=u.Gk(i.Ub(e))),[r,i=this.eb(e.Lb(r))]}if(e.Dp(t.mb))return this.kb()?[t._b,this]:[t.gb,this];if(this.$p()){if(e.$p())return this.ib().xb(e.ib());var o=this.ib().xb(e);return r=o[0],i=o[1],[r.ib(),i.ib()]}if(e.$p()){var s=this.xb(e.ib());return r=s[0],i=s[1],[r.ib(),i.ib()]}r=t.gb}for(i=this;i.Ib(e);){for(var f=v.max(1,v.floor(i.Wp()/e.Wp())),c=v.ceil(v.log(f)/v.LN2),a=c<=48?1:v.pow(2,c-48),h=t.vb(f),l=h.Lb(e);l.$p()||l.Eb(i);)f-=a,l=(h=t.vb(f,this.kb())).Lb(e);h.pb()&&(h=t.Bb),r=r.Gk(h),i=i.eb(l)}return[r,i]},n.Ub=function(t){return this.xb(t)[0]},n.Hb=function(t){return this.xb(t)[1]},n.toString=function(n){var i=n||10;if(i<2||i>36)throw new RangeError("radix");if(this.pb())return"0";if(this.$p()){if(this.Dp(t.mb)){var r=t.vb(i),e=this.Ub(r),u=e.Lb(r).eb(this);return e.toString(i)+u.Sb().toString(i)}return"-"+this.ib().toString(i)}for(var o=t.vb(v.pow(i,6),this.kb()),s=this,f="";;){var c=s.Ub(o),a=(s.eb(c.Lb(o)).Sb()>>>0).toString(i);if((s=c).pb())return a+f;for(;a.length<6;)a="0"+a;f=String(a)+f}},t}();jt.gb=jt.fb(Pt.ZERO),jt._b=jt.fb(Pt.UZERO),jt.Bb=jt.fb(Pt.ONE),jt.Mb=jt.fb(Pt.UONE),jt.Fb=jt.fb(Pt.NEG_ONE),jt.yb=jt.cb(Pt.NEG_ONE,Pt.MAX_VALUE,!1),jt.wb=jt.cb(Pt.MAX_UNSIGNED_VALUE,Pt.MAX_UNSIGNED_VALUE,!0),jt.mb=jt.cb(Pt.ZERO,Pt.MIN_VALUE,!1);var Ut=function(){function t(t,n){void 0===n&&(n=1),this.Vb=void 0,this.Xb=void 0,this.Vb=t,this.Xb=n}t.zb=function(n){return new t(v.ceil(n.Vb),n.Xb)},t.Wb=function(n){return new t(v.floor(n.Vb),n.Xb)},t.Gb=function(t,n){return t.jp(n)?t:n},t.qb=function(t,n){return t.Qp(n)?t:n};var n=t.prototype;return n.Gk=function(n){return this.Xb>=n.Xb?new t(this.Vb+n.jb(this.Xb).Vb,this.Xb):new t(this.jb(n.Xb).Vb+n.Vb,n.Xb)},n.Gp=function(t){return t.Zp(this)},n.jp=function(t){return t.Qp(this)},n.Kp=function(n){return this.Xb>=n.Xb?new t(v.abs(this.Vb-n.jb(this.Xb).Vb),this.Xb):n.Kp(this)},n.Yp=function(t,n){return this.Kp(t).Qp(n)},n.qp=function(t){return i=t,(n=this).Xb>=i.Xb?ft(n.Vb,i.jb(n.Xb).Vb):ft(n.jb(i.Xb).Vb,i.Vb);var n,i},n.Dp=function(t){return 0===this.qp(t)},n.Zp=function(t){return this.qp(t)<0},n.Qp=function(t){return this.qp(t)<=0},n.jb=function(n){return new t(this.Vb*(n/this.Xb),n)},n.eb=function(n){return this.Xb>=n.Xb?new t(this.Vb-n.jb(this.Xb).Vb,this.Xb):new t(this.jb(n.Xb).Vb-n.Vb,n.Xb)},n.Yb=function(n){return new t(this.Vb*n,this.Xb)},P(t,[{key:"ub",get:function(){return!isFinite(this.Vb)}},{key:"Qb",get:function(){return this.Vb/this.Xb}}]),t}();Ut.Kb=new Ut(1/6,1),Ut.gb=new Ut(0),Ut.Zb=new Ut(1/0),Ut.Jb=1e6;var Lt=function(t){function n(n,i){var r;return(r=t.call(this)||this).Cu=void 0,r.Xb=void 0,r.Cu=n.toSigned(),r.Xb=i>>>0,r}rt(n,t),n.$b=function(t,i){return void 0===i&&(i=1e6),n.vb(t*i,i)},n.vb=function(t,i){return w(t)?n.tA:t===1/0?n.nA:t===-1/0?n.iA:new n(Pt.fromNumber(t),i)},n.fb=function(t,i){return new n(t,i)},n.rA=function(t){return n.$b(t.Qb,1e6)},n.eA=function(t){return new n(Pt.fromNumber(t.getTime()),1e3)},n.Gb=function(t,n){return t.jp(n)?t:n},n.qb=function(t,n){return t.Qp(n)?t:n},n.sA=function(t,i,r){return n.Gb(i,n.qb(r,t))};var i=n.prototype;return i.$p=function(){return this.Cu.isNegative()},i.pb=function(){return 0!==this.Xb&&this.Cu.isZero()},i.ub=function(){return 0===this.Xb&&!this.Cu.isZero()},i.sb=function(){return 0===this.Xb&&this.Cu.isZero()},i.Wp=function(){if(0===this.Xb)return this.Cu.isZero()?NaN:this.Cu.isNegative()?-1/0:1/0;var t=this.Cu.divide(this.Xb),n=this.Cu.subtract(t.multiply(this.Xb));return t.toNumber()+n.toNumber()/this.Xb},i.Tb=function(){if(0===this.Xb)throw new c("Failed to convert timestamp");return this.Cu},i.uA=function(){return new Date(0===this.Xb?NaN:this.jb(1e3).Cu.toNumber())},i.oA=function(){return new Ut(0===this.Xb?this.Wp():this.Cu.toNumber(),this.Xb)},i.jb=function(t,i){void 0===i&&(i=Wt.hA);var r=this.Xb;if(r===t)return this;if(0===r)return this;var e=st(r,t);return new n(function(t,n,i){var r=t.xb(n),e=r[0],u=r[1];if(u.pb())return e;if(i===Wt.hA)return u.$p()?e.eb(jt.Bb):e;if(i===Wt.aA)return u.$p()?e:e.Gk(jt.Bb);var o=u.Lb(jt.vb(2));return o.$p()?o.ib().Zp(n)?e:e.eb(jt.Bb):o.Zp(n)?e:e.Gk(jt.Bb)}(jt.fb(this.Cu).Lb(jt.vb(t/e)),jt.vb(r/e),i).Tb(),t)},i.qp=function(t){if(this===t)return et.Hp;if(0===this.Xb||0===t.Xb)return at(this,t);if(this.pb())return t.pb()?et.Hp:t.$p()?et.Vp:et.Xp;if(t.pb())return this.$p()?et.Xp:et.Vp;var n=v.min(this.Xb,t.Xb),i=this.jb(n,Wt.cA).Cu,r=t.jb(n,Wt.cA).Cu;return i.compare(r)},i.ib=function(){return 0===this.Xb?Mt(this):new n(this.Cu.negate(),this.Xb)},i.Gk=function(t){if(0===this.Xb||0===t.Xb)return qt(this,t);if(this.pb())return t;if(t.pb())return this;var i=v.max(this.Xb,t.Xb),r=this.jb(i,Wt.cA),e=t.jb(i,Wt.cA);return new n(r.Cu.add(e.Cu),i)},i.Lb=function(t){if(this.sb()||w(t))return n.tA;if(this.ub()||!isFinite(t)){if(this.pb()||0===t)return n.tA;var i=this.$p()?n.iA:n.nA;return t<0?i.ib():i}return this.pb()?this:new n(0===t?Pt.ZERO:this.Cu.multiply(t),this.Xb)},i.Ub=function(t){if(this.sb()||w(t))return n.tA;if(this.ub())return isFinite(t)?0===t?1/t<0?this.ib():this:t<0?this.ib():this:n.tA;if(!isFinite(t))return new n(Pt.ZERO,this.Xb);if(this.pb())return 0===t?n.tA:new n(Pt.ZERO,this.Xb);if(0===t){var i=this.$p()?n.iA:n.nA;return 1/t<0?i.ib():i}return new n(this.Cu.divide(t),this.Xb)},i.fA=function(){return[this.Cu.low,this.Cu.high,this.Xb]},n}(ct);function Mt(t){return t.sb()?t:t.$p()?Lt.nA:Lt.iA}function qt(t,n){return t.sb()||n.sb()?Lt.tA:t.ub()&&n.ub()?t.$p()===n.$p()?t:Lt.tA:t.ub()?t:n}Lt.gb=new Lt(Pt.ZERO,1e6),Lt.tA=new Lt(Pt.ZERO,0),Lt.nA=new Lt(Pt.ONE,0),Lt.iA=new Lt(Pt.NEG_ONE,0);var Wt,Xt=function(t){function n(n,i){var r;return(r=t.call(this)||this).Cu=void 0,r.Xb=void 0,r.Cu=BigInt.asIntN(64,n),r.Xb=i>>>0,r}rt(n,t),n.$b=function(t,i){return void 0===i&&(i=1e6),n.vb(t*i,i)},n.vb=function(t,i){return w(t)?n.tA:t===1/0?n.nA:t===-1/0?n.iA:new n(BigInt(v.floor(t)),i)},n.fb=function(t,i){return new n(BigInt(t.high)<<BigInt(32)|BigInt(t.low>>>0),i)},n.rA=function(t){return n.$b(t.Qb,1e6)},n.eA=function(t){return n.vb(t.getTime(),1e3)},n.Gb=function(t,n){return t.jp(n)?t:n},n.qb=function(t,n){return t.Qp(n)?t:n},n.sA=function(t,i,r){return n.Gb(i,n.qb(r,t))};var i=n.prototype;return i.$p=function(){return this.Cu<BigInt(0)},i.pb=function(){return 0!==this.Xb&&this.Cu===BigInt(0)},i.ub=function(){return 0===this.Xb&&this.Cu!==BigInt(0)},i.sb=function(){return 0===this.Xb&&this.Cu===BigInt(0)},i.Wp=function(){if(0===this.Xb)return this.Cu===BigInt(0)?NaN:this.Cu<BigInt(0)?-1/0:1/0;var t=this.Cu/BigInt(this.Xb),n=this.Cu-t*BigInt(this.Xb);return Number(t)+Number(n)/this.Xb},i.Tb=function(){if(0===this.Xb)throw new c("Failed to convert timestamp");return this.vA()},i.vA=function(){var t=this.Cu&BigInt(4294967295),n=this.Cu>>BigInt(32)&BigInt(4294967295);return Pt.fromBits(Number(t),Number(n))},i.uA=function(){return new Date(0===this.Xb?NaN:Number(this.jb(1e3).Cu))},i.oA=function(){return new Ut(0===this.Xb?this.Wp():Number(this.Cu),this.Xb)},i.jb=function(t,i){void 0===i&&(i=Wt.hA);var r=this.Xb;if(r===t)return this;if(0===r)return this;var e=st(r,t);return new n(function(t,n,i){var r=t/n,e=t-r*n;if(e===BigInt(0))return r;if(i===Wt.hA)return e<BigInt(0)?r-BigInt(1):r;if(i===Wt.aA)return e<BigInt(0)?r:r+BigInt(1);var u=e*BigInt(2);return u<BigInt(0)?-u<n?r:r-BigInt(1):u<n?r:r+BigInt(1)}(this.Cu*BigInt(t/e),BigInt(r/e),i),t)},i.qp=function(t){if(this===t)return et.Hp;if(0===this.Xb||0===t.Xb)return at(this,t);if(this.pb())return t.pb()?et.Hp:t.$p()?et.Vp:et.Xp;if(t.pb())return this.$p()?et.Xp:et.Vp;var n=v.min(this.Xb,t.Xb),i=this.jb(n,Wt.cA).Cu,r=t.jb(n,Wt.cA).Cu;return i>r?et.Vp:i<r?et.Xp:et.Hp},i.ib=function(){return 0===this.Xb?Ht(this):new n(-this.Cu,this.Xb)},i.Gk=function(t){if(0===this.Xb||0===t.Xb)return Vt(this,t);if(this.pb())return t;if(t.pb())return this;var i=v.max(this.Xb,t.Xb),r=this.jb(i,Wt.cA),e=t.jb(i,Wt.cA);return new n(r.Cu+e.Cu,i)},i.Lb=function(t){if(this.sb()||w(t))return n.tA;if(this.ub()||!isFinite(t)){if(this.pb()||0===t)return n.tA;var i=this.$p()?n.iA:n.nA;return t<0?i.ib():i}return this.pb()?this:new n(0===t?BigInt(0):this.Cu*BigInt(t),this.Xb)},i.Ub=function(t){if(this.sb()||w(t))return n.tA;if(this.ub())return isFinite(t)?0===t?1/t<0?this.ib():this:t<0?this.ib():this:n.tA;if(!isFinite(t))return new n(BigInt(0),this.Xb);if(this.pb())return 0===t?n.tA:new n(BigInt(0),this.Xb);if(0===t){var i=this.$p()?n.iA:n.nA;return 1/t<0?i.ib():i}return new n(this.Cu/BigInt(t),this.Xb)},i.fA=function(){var t=this.vA();return[t.low,t.high,this.Xb]},P(n,null,[{key:"gb",get:function(){return n.dA||(n.dA=new n(BigInt(0),1e6)),n.dA}},{key:"tA",get:function(){return n.lA||(n.lA=new n(BigInt(0),0)),n.lA}},{key:"nA",get:function(){return n._A||(n._A=new n(BigInt(1),0)),n._A}},{key:"iA",get:function(){return n.gA||(n.gA=new n(BigInt(-1),0)),n.gA}}]),n}(ct);function Ht(t){return t.sb()?t:t.$p()?Xt.nA:Xt.iA}function Vt(t,n){return t.sb()||n.sb()?Xt.tA:t.ub()&&n.ub()?t.$p()===n.$p()?t:Xt.tA:t.ub()?t:n}Xt.dA=void 0,Xt.lA=void 0,Xt._A=void 0,Xt.gA=void 0,function(t){t[t.hA=0]="hA",t[t.aA=1]="aA",t[t.cA=2]="cA"}(Wt||(Wt={}));var Gt=function(){try{return"function"==typeof BigInt&&"bigint"==typeof BigInt(0)}catch(t){return!1}}()?Xt:Lt;function zt(t){return Gt.fb(Pt.fromBits(t[0],t[1],!1),t[2])}function Yt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Kt=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];c.apply(this,n)};(Kt.prototype=h.create(c.prototype)).constructor=Kt;var $t=function(t){function n(n,i){var r;return(r=t.call(this)||this).cause=void 0,r.message=n||"Unknown error",r.cause=i,c.captureStackTrace&&c.captureStackTrace(Yt(r),r.constructor),r}return rt(n,t),P(n,[{key:"name",get:function(){return"BaseError"}}]),n}(Kt),Jt=function(){function t(){this.va=!1,this._a=!1,this.ma=[],this.ya=[]}var n=t.prototype;return n.Aa=function(){if(!this.va&&!this._a){this.va=!0;for(var t=0,n=this.ma.slice();t<n.length;t++){(0,n[t])()}this.Ta()}},n.Ta=function(){if(!this._a){this._a=!0;for(var t=0,n=this.ya.slice();t<n.length;t++){(0,n[t])()}N(this.ma),N(this.ya)}},n.Sa=function(t){this._a||this.ma.push(t)},n.Ea=function(t){this._a||A(this.ma,t)},n.Ia=function(t){this._a||this.ya.push(t)},n.Ra=function(t){this._a||A(this.ya,t)},t}(),Zt=function(){function t(){this.Na=new Jt}var n=t.prototype;return n.Da=function(){this.Na.Aa()},n.Ta=function(){this.Na.Ta()},n.Ca=function(t){var n=this.Na;if(!n.va)if(t.va)n.Aa();else if(!n._a&&!t._a){var i=function(){r(),n.Aa()},r=function r(){t.Ea(i),t.Ra(r),n.Ea(i),n.Ra(r)};t.Sa(i),t.Ia(r),n.Sa(i),n.Ia(r)}},n.Pa=function(){var n=new t,i=new t,r=n.Oa,e=i.Oa,u=this.Na,o=function(){r.va&&e._a||e.va&&r._a?u.Aa():r._a&&e._a&&u.Ta()};r.Sa(o),e.Sa(o),r.Ia(o),e.Ia(o),n.Ca(u),i.Ca(u);return u.Ia(function(){r.Ea(o),e.Ea(o),r.Ra(o),e.Ra(o)}),[n,i]},P(t,[{key:"Oa",get:function(){return this.Na}}]),t}(),Qt=function(t){function n(n,i){return t.call(this,n||"Aborted",i)||this}return rt(n,t),P(n,[{key:"name",get:function(){return"AbortError"}}]),n}($t);function tn(t){return t instanceof c&&"AbortError"===t.name}function nn(t,n){return t.then(function(t){return n.Ta(),t},function(t){throw n.Ta(),t})}var rn;E.resolve();!function(t){t.Q$="HELLO",t.K$="HI_THERE",t.Z$="INITIALIZE",t.J$="APPEND_INIT",t.n0="APPEND_DATA",t.i0="ACK",t.r0="REMOVE",t.e0="DESTROY_SESSION"}(rn||(rn={}));var en="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),un=16383;function on(t,n,i){for(var r,e,u,o=[],s=n;s<i;s+=3)o.push((r=t[s],e=t[s+1],u=t[s+2],en[r>>2]+en[(3&r)<<4|e>>4]+en[(15&e)<<2|u>>6]+en[63&u]));return o.join("")}var sn=function(){function t(t){void 0===t&&(t=0),this.mc=t}var n=t.prototype;return n.wc=function(t){this.mc+=t},n.yc=function(t){this.mc=t},n.kc=function(){return new t(this.gc)},P(t,[{key:"gc",get:function(){return this.mc}}]),t}();function fn(t,n){return null!=t&&t.substr(0,n.length)===n}var cn=16384;function an(t){var n=t.length;if(n<=cn)return String.fromCharCode.apply(String,t);for(var i=[],r=0;r<n;r+=cn)i.push(String.fromCharCode.apply(String,t.slice(r,r+cn)));return i.join("")}function hn(t){return function(t){for(var n=[],i=0;i<t.length;i++){var r=t[i];r>65535&&(r-=65536,n.push(r>>>10&1023|55296),r=56320|1023&r),n.push(r)}return an(n)}(t)}function vn(t){if(t>=55296&&t<=57343)throw new c("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function ln(t,n){return t>>n&63|128}function dn(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(vn(t),n.push(t>>12&15|224),n.push(ln(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(ln(t,12)),n.push(ln(t,6))),n.push(63&t|128)):n.push(t)}function wn(t,n){if(n.gc>=t.length)throw new c("Invalid byte index");var i=255&t[n.gc];if(n.wc(1),128==(192&i))return 63&i;throw new c("Invalid continuation byte")}function yn(t,n){var i=n.gc;if(i>t.length)throw new c("Invalid byte index");if(i===t.length)return!1;var r=255&t[i];if(n.wc(1),0==(128&r))return r;if(192==(224&r)){var e=(31&r)<<6|wn(t,n);if(e>=128)return e;throw new c("Invalid continuation byte")}if(224==(240&r)){var u=(15&r)<<12|wn(t,n)<<6|wn(t,n);if(u>=2048)return vn(u),u;throw new c("Invalid continuation byte")}if(240==(248&r)){var o=(7&r)<<18|wn(t,n)<<12|wn(t,n)<<6|wn(t,n);if(o>=65536&&o<=1114111)return o}throw new c("Invalid UTF-8 detected")}var pn=65279;function bn(t,n,i){void 0===i&&(i=!1);var r=t.getUint16(n.gc,i);return n.wc(2),r}function gn(t,n,i,r){void 0===r&&(r=!1),t.setUint16(n.gc,i,r),n.wc(2)}function mn(t,n){return void 0===n&&(n=!1),function(t,n,i,r){for(var e=[];n.gc+2<=t.byteLength;){var u=bn(t,n,i);if(r&&!u)break;e.push(u)}return an(e)}(In(t),new An,n,!1)}function _n(t,n){void 0===n&&(n=!1);var i=new y(2*t.length);return function(t,n,i,r){void 0===r&&(r=!1);for(var e=i.length,u=0;u<e;u+=1)gn(t,n,i.charCodeAt(u),r)}(In(i),new An,t,n),i}function En(t){return hn(function(t,n){var i,r=[],e=new An;if(!n){if(!1===(i=yn(t,e)))return r;i===pn||r.push(i)}for(;!1!==(i=yn(t,e));)r.push(i);return r}(Rn(t)))}function Sn(t){return new y(function(t){for(var n=[],i=0;i<t.length;i++)dn(t[i],n);return n}(function(t){for(var n=[],i=0,r=t.length;i<r;){var e=t.charCodeAt(i++);if(e>=55296&&e<=56319&&i<r){var u=t.charCodeAt(i++);56320==(64512&u)?n.push(((1023&e)<<10)+(1023&u)+65536):(n.push(e),i--)}else n.push(e)}return n}(t)))}function In(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Rn(t){return new y(t.buffer,t.byteOffset,t.byteLength)}function Tn(t){return t instanceof ArrayBuffer?new y(t):Rn(t)}function kn(t){if(t.slice)return t.slice(0);var n=new y(t.byteLength);return n.set(t,0),n}var An=function(){function t(t){void 0===t&&(t=0),this.mc=t}var n=t.prototype;return n.wc=function(t){this.mc+=t},n.yc=function(t){this.mc=t},n.kc=function(){return new t(this.gc)},n.Ac=function(){return new sn(this.gc<<3)},P(t,[{key:"gc",get:function(){return this.mc}}]),t}(),On=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"],Nn=ArrayBuffer.isView||function(t){return t&&O(On,I.call(t))};function Dn(t){var n=t.reduce(function(t,n){return t+n.byteLength},0);return function(t,n){for(var i=new y(n),r=0,e=0;e<t.length;e++){var u=t[e];i.set(u,r),r+=u.byteLength}return i}(t,n)}function Cn(t){return function(t){for(var n=t.length,i=n%3,r=[],e=n-i,u=0;u<e;u+=un)r.push(on(t,u,v.min(e,u+un)));if(1===i){var o=t[n-1];r.push(en[o>>2]+en[(3&o)<<4]+"==")}else if(2===i){var s=t[n-2],f=t[n-1];r.push(en[s>>2]+en[(3&s)<<4|f>>4]+en[(15&f)<<2]+"=")}return r.join("")}(new y(t))}function xn(t){return t&&"function"!=typeof t?t.slice():t}function Bn(t,n,i){if(i)if("function"==typeof i)i.call(t,n);else for(var r=0;r<i.length;r++){i[r].call(t,n)}}var Fn=function(){function t(t){var n=this;this.Ba=j(),this.La=void 0,this.xa=void 0,this.Ma=function(t){n.Fa(t)},this.xa=t||this}var n=t.prototype;return n.Ua=function(t,n){if("function"==typeof n)if("string"==typeof t)this.Ha(t,n);else for(var i=0;i<t.length;i++){var r=t[i];this.Ha(r,n)}},n.Ha=function(t,n){var i=this.Ba[t];i?"function"==typeof i?this.Ba[t]=[i,n]:i.push(n):this.Ba[t]=n},n.Va=function(t){if("function"==typeof t){var n=this.La;n?"function"==typeof n?this.La=[n,t]:n.push(t):this.La=t}},n.Xa=function(){this.Ba=j(),this.La=void 0},n.Fa=function(t){var n=xn(this.Ba[t.type]),i=xn(this.La);Bn(this.xa,t,n),Bn(this.xa,t,i)},n.Wa=function(t,n){if("function"==typeof n)if("string"==typeof t)this.Ga(t,n);else for(var i=0;i<t.length;i++){var r=t[i];this.Ga(r,n)}},n.Ga=function(t,n){var i=this.Ba[t];i&&("function"==typeof i?i===n&&(this.Ba[t]=void 0):A(i,n))},n.qa=function(t){if("string"==typeof t)this.Ba[t]=void 0;else for(var n=0;n<t.length;n++){var i=t[n];this.Ba[i]=void 0}},n.Ya=function(t){var n=this.La;n&&("function"==typeof n?n===t&&(this.La=void 0):A(n,t))},n.Qa=function(t,n){var i=this;return new E(function(r,e){if(n&&n.va)return e(new Qt);var u=function(t){s(),r(t)},o=function(){s(),e(new Qt)},s=function(){i.Wa(t,u),n&&n.Ea(o)};i.Ua(t,u),n&&n.Sa(o)})},t}(),Pn=function(t,n){void 0===n&&(n=new Date),this.type=t,this.date=n},jn=function(t){function n(n){var i;return(i=t.call(this,"append")||this).Zu=void 0,i.Zu=n,i}return rt(n,t),n}(Pn),Un=function(t){function n(n){var i;return(i=t.call(this)||this).Mm=void 0,i.ndt=0,i.qr=new y(0),i.Bf=!1,i.A=!1,i.O=void 0,i.Mm=n,i}rt(n,t);var i=n.prototype;return i._W=function(t,n){this.D&&0===this.qr.length&&(this.qr=this.O.slice()),this.ndt+=n.Wp(),this.qr=Dn([this.qr,t]),this.Fa(new jn(t))},i.Uc=function(){this.Gc||(this.Fa(new Pn("close")),this.Bf=!0)},P(n,[{key:"py",get:function(){return this.ndt}},{key:"Zu",get:function(){return this.qr}},{key:"Gc",get:function(){return this.Bf}},{key:"D",get:function(){return this.A},set:function(t){this.A=t}},{key:"C",get:function(){return this.O},set:function(t){this.O=t}}]),n}(Fn),Ln=function(){function t(t){this.B=!1,this.L=void 0,this.W=void 0,this.DEFAULT_SEGMENT_DURATION_IN_SECONDS=1.1,this.Ow="sync-seg-"+C(),this.X=this.DEFAULT_SEGMENT_DURATION_IN_SECONDS,this.H=t;for(var n=0,i=this.H;n<i.length;n++){var r=i[n];if(r.match(/video/))this.L=new Un(this.V(r));else{if(!r.match(/audio/))throw new c("Unsupported MIME type.");this.W=new Un(this.V(r))}}}var n=t.prototype;return n.V=function(t){for(var n=0,i=this.H;n<i.length;n++){if(i[n]===t)return this.X}},n.Uc=function(){this.L&&this.L.Uc(),this.W&&this.W.Uc()},P(t,[{key:"tt",get:function(){return this.B},set:function(t){this.B=t}},{key:"it",get:function(){var t,n;return Boolean((null==(t=this.L)?void 0:t.D)||(null==(n=this.W)?void 0:n.D))}}]),t}(),Mn=function(t){function n(n){var i;return(i=t.call(this,"remove")||this).vp=void 0,i.vp=n,i}return rt(n,t),n}(Pn),qn=function(t){function n(n){var i;return(i=t.call(this)||this).rt=[],i.et=void 0,i.st=[],i.ht=U(),i.pt=U(),i.tn=0,i.nn=0,i.H=n,i.et=new Ln(i.H),i.et.W&&(i.et.W.D=!0),i.et.L&&(i.et.L.D=!0),i.st.push(new Ln(i.H)),i}rt(n,t);var i=n.prototype;return i.rn=function(){var t=[].concat(this.rt,[this.et],this.st);return this.rt.length=0,t},i._W=function(t){this.en(t),this.sn(t),this.an(t)},i.mW=function(t){this.en(t)},i.Xc=function(t){this.en(t),this.an(t)},i.Ta=function(){this.et.Uc(),this.st.forEach(function(t){return t.Uc()}),this.rt.length=0},i.sn=function(t){var n=zt(t.startPts),i=zt(t.totalDuration);this.pt.set(t.mimeType,n.Gk(i))},i.ln=function(){this.et.Uc(),this.rt.push(this.et);var t=this.st.shift(),n=this.bn();t?(this.et=t,this.st.push(n)):this.et=n},i.bn=function(){var t=new Ln(this.H);return t.W&&(t.W.C=this.et.W.C),t.L&&(t.L.C=this.et.L.C),t},i.gn=function(t){var i=!this.et.W||0===this.et.W.py,r=!this.et.L||0===this.et.L.py,e=this.et.W&&this.et.W.D,u=this.et.L&&this.et.L.D,o=r&&(i&&!this.et.tt||e),s=i&&(r&&!this.et.tt||u);("audio"===n.mn(t)&&!s||"video"===n.mn(t)&&!o)&&(this.ln(),this.ln())},i.en=function(t){var n=t.mimeType,i=t.kind,r=this.ht.get(n);void 0===r&&(i!==rn.J$&&i!==rn.n0||(r=[],this.ht.set(n,r))),void 0!==r&&r.push(t)},i.an=function(t){for(var n=this.kn(t),i=0;i<n.length;i++){var r=n[i];switch(r.kind){case rn.J$:this.ti(r),this.tn=0,this.nn=0;break;case rn.r0:this.ii(r);break;case rn.n0:this.ui(r)}}},i.ti=function(t){var n=t.mimeType,i=t.segment;this.gn(n),n.match(/video/)?(this.et.L.C=i,this.st.forEach(function(t){t.L.C=i})):(this.et.W.C=i,this.st.forEach(function(t){t.W.C=i})),this.et.W&&(this.et.W.D=!0),this.et.L&&(this.et.L.D=!0)},i.ui=function(t){var n=t.mimeType.match(/audio/),i=zt(t.totalDuration);if(n?this.et.W._W(t.segment,i):this.et.L._W(t.segment,i),n||1===this.H.length){this.tn+=i.Wp();var r=this.et.V(t.mimeType);this.tn>=this.nn+r&&(this.nn+=r,this.ln())}},i.ii=function(t){this.pt.set(t.mimeType,void 0),this.gn(t.mimeType),this.et.W&&(this.et.W.D=!0),this.et.L&&(this.et.L.D=!0),this.rt.length=0,this.Fa(new Mn(zt(t.endTime)))},i.kn=function(t){var n=this;if(t.kind===rn.r0)return this.si(t);var i=[];return this.ht.forEach(function(t){if(t&&t.length>0){var r=k(t,function(t){return t.kind===rn.r0});-1===r&&(r=t.length);for(var e=t.slice(0,r),u=0;u<e.length;u++){var o=e[u];if(!O(i,o)){var s=n.si(o);if(s.length>0)i.push.apply(i,s);else if(o.kind===rn.n0)break}}}}),i},i.si=function(t){for(var i,r=this.ht.get(t.mimeType),e=0,u=this.H;e<u.length;e++){var o=u[e];if(o!==t.mimeType){i=o;break}}if(!i)return r.splice(0,r.indexOf(t)+1);if(t.kind===rn.J$)return[];var s=this.pt.get(i);if(void 0===s)return[];if(t.kind===rn.r0){var f=this.fi(i);if(f.length>0){var c=r.splice(0,r.indexOf(t));return r.splice(0,1),[].concat(c,f,[t])}return[]}if(n.hi(t,s)){var a=r.splice(0,r.indexOf(t));r.splice(0,1);var h=this.vi(t,a,i);return[].concat(a,h,[t])}return[]},i.vi=function(t,i,r){var e=this.ht.get(r);if(!e)return[];var u=zt(t.startPts),o=zt(t.totalDuration),s=u.Gk(o),f=k(e,function(t){return t.kind===rn.r0}),c=f-1;-1===f&&(c=e.length-1);for(var a=c+1,h=0;h<=c&&a===c+1;h++){var v=e[h];v.kind!==rn.n0||n.hi(v,s)||(a=h)}var l=-1;return-1!==k(i,function(t){return t.kind===rn.J$})&&(l=k(e,function(t){return t.kind===rn.J$})),l>a&&(a=l+1),a>0?(e[a-1].kind===rn.J$&&(a-=1),e.splice(0,a)):[]},i.fi=function(t){var n=this.ht.get(t);if(n){var i=k(n,function(t){return t.kind===rn.r0});if(i>=0)return n.splice(0,i+1)}return[]},n.hi=function(t,n){var i=n,r=zt(t.startPts);return i.jp(r)},i.li=function(){var t="[MEDIABUFFER] endPTS: ";this.pt.forEach(function(i,r){t=t.concat(n.mn(r)+" = "+(null==i?void 0:i.Wp())+" ")}),m.rh(t)},i.yi=function(){var t=this;m.rh("[MEDIABUFFER] unsyncedMessageMap:"),this.ht.forEach(function(i,r){void 0!==i&&t.pi(n.mn(r),i)})},i.pi=function(t,i){var r=t+": [";null==i||i.forEach(function(t){r=r.concat(" "+t.kind+"("+n.mn(t.mimeType)+")")}),r=r.concat(" ]"),m.rh(r)},n.mn=function(t){return t.match(/audio/)?"audio":"video"},n}(Fn);var Wn=function(){function t(t,n,i){var r=this;this.bi=[],this.mi=U(),this.ki=0,this.svt=void 0,this.tr=void 0,this.nr=function(t){if(t.vp.jp(Gt.$b(ut)))for(;r.bi.length>0;)r.er()},this.ur=n,this.sr=i,this.tr=[new H,new V(8),new G(1),new Y,new z(0)],this.svt=t,this.svt.Ua("remove",this.nr)}var n=t.prototype;return n.Xrt=function(t,n){var i=this.mi.get(t);if(i)if(n===x.a_){var r=i.L;if(r)return r}else{var e=i.W;if(e)return e}throw new c(t+" segment not available!")},n.Ta=function(){this.bi.length=0,this.ur.IE=0,this.mi.clear(),this.ki=0},n.PS=function(){return this.cr(),new tt([].concat(this.tr,[this.ur,this.sr],this.bi))},n.cr=function(){for(var t=this.svt.rn(),n=0;n<t.length;n++){var i=t[n];if(!this.mi.has(i.Ow)){i.tt=!0;var r=i.X;i.it&&this.bi.push(new J),this.mi.set(i.Ow,i),this.bi.push(new X(r,i.Ow)),this.ki+=r}}this.ar()},n.ar=function(){for(;this.ki>300;)this.er()},n.er=function(){var t=this.bi.shift();void 0!==t&&(t.jh===M.Jl?(this.hr(t),this.ki-=t.S,this.ur.IE++):function(t){return t.jh===M.v}(t)&&this.sr.IE++)},n.hr=function(t){this.mi.delete(t.I)},t}(),Xn=function(){function t(t){this.J$t=void 0,this.vr=void 0,this.lr=void 0,this.H=t,this.J$t=new nt,this.vr=new qn(this.H);for(var n=0,i=this.H;n<i.length;n++){var r=i[n];if(this.lr=new Wn(this.vr,new $(0),new Z(0)),r.match(/video/)){var e=new K("video/index.m3u8");this.J$t.k(e)}else{if(!r.match(/audio/))throw new c("Unsupported MIME type.");var u=new Q("audio/index.m3u8");this.J$t.k(u)}}}var n=t.prototype;return n.br=function(t){if("master.m3u8"===t){if(this.J$t)return this.J$t.PS;throw new c("Master playlist not ready yet")}if(this.lr)return this.lr.PS();throw new c("Media playlist not ready yet")},n.Xrt=function(n){var i=n.split("/")[1];return this.lr.Xrt(i,t.mr(n))},n.mW=function(t){this.vr.mW(t)},n._W=function(t){this.vr._W(t)},n.Xst=function(t){this.vr.Xc(t)},n.Ta=function(){this.vr.Ta(),this.J$t.Ta(),this.lr&&this.lr.Ta()},t.mr=function(t){return t.match(/video/)?x.a_:x.h_},t}();var Hn,Vn=function(){function n(t,n){var i=this;this.met=void 0,this.kr=function(){var t=E.coroutine(_.mark(function t(n){var r,e,u;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=n.data,t.t0=r.kind,t.next=t.t0===rn.Z$?4:t.t0===rn.J$?7:t.t0===rn.n0?9:t.t0===rn.r0?11:13;break;case 4:return e=r.mediaBufferConfigs,i.met=new Xn(e),t.abrupt("break",13);case 7:return i.met.mW(r),t.abrupt("break",13);case 9:return i.met._W(r),t.abrupt("break",13);case 11:return i.met.Xst(r),t.abrupt("break",13);case 13:u={kind:rn.i0},i.te.postMessage(u);case 15:case"end":return t.stop()}},t)}));return function(n){return t.apply(this,arguments)}}(),this.te=t,this.ie=n,this.te.onmessage=this.kr}var i=n.prototype;return i.ee=function(t){return this.met.br(t)},i.se=function(n){if(this.met){if(n.match(/m3u8/)){var i=this.ee(n);return new Response(i.T(),{headers:{"Content-Type":"application/x-mpegurl; charset=utf-8"}})}var r={"Content-Type":n.match(/video/)?"video/mp4":"audio/mp4"},e=function(t){return{start:(n=E.coroutine(_.mark(function n(i){var r,e;return _.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(i.enqueue(t.Zu),!t.Gc){n.next=6;break}return i.close(),n.abrupt("return");case 6:r=function(t){i.enqueue(t.Zu)},t.Ua("append",r),e=function n(){i.close(),t.Wa("append",r),t.Wa("close",n)},t.Ua("close",e);case 10:case"end":return n.stop()}},n)})),function(t){return n.apply(this,arguments)})};var n}(this.Urt(n)),u=new t.ReadableStream(e);return new Response(u,{headers:r})}throw new c("Stream not active.")},i.Urt=function(t){return this.met.Xrt(t)},i.close=function(){this.te.close(),this.met&&this.met.Ta()},n}(),Gn=function(){function t(){var t=this;this.Zj=U(),this.ce=void 0,this.kr=function(n){var i=n.data;switch(i.kind){case rn.Q$:t.ae().catch(D);var r=i.port,e=C(),u=new Vn(r,n.source.id);t.Zj.set(e,u);r.addEventListener("message",function n(i){i.data.kind===rn.e0&&(t.he(e),r.removeEventListener("message",n))});var o={kind:rn.K$,sessionId:e};r.postMessage(o)}},this.ve=function(n){if(fn(n.request.url,B)){var i=new URL(n.request.url).pathname.split("/"),r=i[1],e=i.slice(2).join("/");if(void 0!==r&&void 0!==e){var u=t.Zj.get(r);if(u)try{var o=u.se(e);n.respondWith(o)}catch(t){n.respondWith(E.resolve(new Response(void 0,{headers:{message:"Segment not found"},status:404,statusText:"Not Found"})))}else n.respondWith(E.resolve(new Response(void 0,{headers:{message:"Given session ["+r+"] not found"},status:404,statusText:"Not Found"})))}else n.respondWith(E.resolve(new Response(void 0,{headers:{message:"No session ["+r+"] or resource ["+e+"] provided"},status:404,statusText:"Not Found"})))}}}var n=t.prototype;return n.gk=function(t){this.ce=t,t.addEventListener("message",this.kr),t.addEventListener("fetch",this.ve)},n.he=function(t){var n=this.Zj.get(t);n&&n.close(),this.Zj.delete(t)},n.ae=function(){var t=E.coroutine(_.mark(function t(){var n,i,r=this;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.ce.clients.matchAll();case 2:n=t.sent,i=n.map(function(t){return t.id}),this.Zj.forEach(function(t,n){O(i,t.ie)||r.he(n)});case 5:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),t}();Gn.de=new Gn,function(t){t.re="web",t.ue="android",t.oe="android-tv",t.fe="ios",t._e="tvos",t.we="chromecast"}(Hn||(Hn={}));var zn=e?e.userAgent:"",Yn=zn.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),Kn=zn.match(/Android ([0-9\.]+)/i),$n=zn.match(/Windows NT ([0-9\.]+)/i),Jn=zn.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),Zn=zn.match(/Firefox\/([0-9\.]+)/i),Qn=zn.match(/OPR\/(\d+\.\d+)/i),ti=zn.match(/Tizen ([0-9\.]+)/i),ni=function(){function n(){this.me=Boolean("ontouchstart"in t||t.DocumentTouch&&r instanceof t.DocumentTouch||e&&e.msMaxTouchPoints),this.ye=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(zn)||/(macintosh|mac(?=_powerpc)\s)/i.test(zn),this.ke=/Windows NT/i.test(zn),this.pe=$n?d($n[1]):0,this.Ae=/Android/i.test(zn),this.Te=Kn?d(Kn[1]):0,this.Se=/windows phone (8|8\.1)/i.test(zn),this.Ee=/iPhone/i.test(zn),this.Ie=/iPad/i.test(zn),this.Re=this.ye&&this.me&&!this.Ie,this.Ne=/iPod/i.test(zn),this.De=/Mobile Safari/i.test(zn),this.Ce=/EOSSTB/i.test(zn),this.Pe=(this.Ee||this.Ie||this.Re||this.Ne)&&!this.Se,this.Oe=this.Se||this.Pe||this.Ae||this.De,this.Be=/CriOS/i.test(zn),this.Le=Boolean(t.chrome&&/google/i.test(e.vendor))||this.Be,this.xe=this.Le&&/Edg\//i.test(e.userAgent),this.Me=Boolean(t.chrome||/Chrome/i.test(zn)||/CriOS/i.test(zn)),this.Fe=Yn?l(Yn[1],10):0,this.Ue=/SMART-TV.*Tizen/i.test(zn),this.He=ti?d(ti[1]):0,this.Ve=/webos|web0s/i.test(zn),this.Xe=/Edge\/\d+/i.test(zn),this.ze=/Trident/i.test(zn),this.We=this.ze&&!t.ActiveXObject&&"ActiveXObject"in t,this.Ge=/Vivaldi/i.test(zn),this.qe=/Firefox/i.test(zn)&&!/Seamonkey/i.test(zn),this.je=Zn?d(Zn[1]):0,this.Ye=/Safari/i.test(zn)&&!/Chrome/i.test(zn)&&!this.Se&&!this.Ue,this.Qe=Jn?d(Jn[2]):0,this.Ke=Boolean(Qn),this.Ze=Qn?d(Qn[1]):0,this.Je=/CrKey/.test(zn),this.$e=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv)\b/i.test(zn),this.ns="web"===Hn.oe,this.rs="web"===Hn.ue,this.us=this.rs||this.ns,this.hs="web"===Hn.fe,this.fs="web"===Hn._e,this.vs="web"===Hn.we}return P(n,[{key:"ds",get:function(){return this.me}},{key:"ls",get:function(){return this.ye}},{key:"_s",get:function(){return this.ke}},{key:"gs",get:function(){return this.pe}},{key:"ys",get:function(){return this.Ae}},{key:"As",get:function(){return this.Te}},{key:"Ts",get:function(){return this.Se}},{key:"Ss",get:function(){return this.Ee}},{key:"Es",get:function(){return this.Ie}},{key:"Is",get:function(){return this.Re}},{key:"Rs",get:function(){return this.Ne}},{key:"Ns",get:function(){return this.Pe}},{key:"Ds",get:function(){return this.Ce}},{key:"Cs",get:function(){return this.De}},{key:"Ps",get:function(){return this.Oe}},{key:"Os",get:function(){return this.Be}},{key:"Bs",get:function(){return this.Le}},{key:"Ls",get:function(){return this.Fe}},{key:"xs",get:function(){return this.xe}},{key:"Ms",get:function(){return this.Ue}},{key:"Fs",get:function(){return this.He}},{key:"Us",get:function(){return this.Ve}},{key:"Hs",get:function(){return this.Xe}},{key:"Vs",get:function(){return this.ze}},{key:"Xs",get:function(){return this.We}},{key:"zs",get:function(){return this.Ge}},{key:"Ws",get:function(){return this.qe}},{key:"Gs",get:function(){return this.je}},{key:"qs",get:function(){return this.Ye}},{key:"js",get:function(){return this.Qe}},{key:"Ys",get:function(){return this.Ke}},{key:"Qs",get:function(){return this.Ze}},{key:"Ks",get:function(){return this.Je}},{key:"Zs",get:function(){return this.$e}},{key:"Js",get:function(){if(!(this.Us||this.Ms))return!1;var t=this.Ls;return void 0===t||Number(t)<56}},{key:"$s",get:function(){return this.ns}},{key:"tu",get:function(){return this.rs}},{key:"nu",get:function(){return this.us}},{key:"uu",get:function(){return this.hs}},{key:"ou",get:function(){return this.fs}},{key:"au",get:function(){return this.vs}},{key:"fu",get:function(){return this.Me}}]),n}();ni.vu=new ni;var ii=ni.vu,ri=!(ii.Vs&&!ii.Xs),ei=t.console;function ui(t){if(T(t))try{return JSON.stringify(t)}catch(t){}return t}function oi(t){return t.map(ui).join(" ")}function si(t){var n=ei&&ei[t];return n?n.bind&&ri?n.bind(ei):function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];ei[t](oi(i))}:void 0}var fi,ci=si("log")||D,ai=si("warn")||ci.bind(void 0,"WARNING:"),hi=si("error")||ci.bind(void 0,"ERROR:"),vi=(fi=ei&&ei.assert)?fi.bind&&ri?fi.bind(ei):function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];ei.assert(t,oi(i))}:function(t){if(!t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];hi.apply(void 0,["Assertion failed:"].concat(i))}};function li(){return Date.now()||(new Date).getTime()}var di;Pt.fromNumber(ut);!function(t){t[t.wu=1]="wu",t[t.yu=2]="yu",t[t.mu=3]="mu",t[t.pu=4]="pu",t[t.bu=9]="bu"}(di||(di={}));var wi=function(t){function n(n){return t.call(this,"Invalid XML",n)||this}return rt(n,t),n}($t),yi=function(){function t(){}return t.prototype.Au=function(t){var n,i=new DOMParser;try{n=i.parseFromString(t,"text/xml")}catch(t){throw new wi(t)}if(!n||n.getElementsByTagName("parsererror").length>0)throw new wi;return new Si(n)},t}(),pi=function(){function t(t){this.Tu=void 0,this.Tu=t}var n=t.prototype;return n.Su=function(t){return this.Tu.isEqualNode(t.Tu)},n.Eu=function(n){return new t(this.Tu.cloneNode(n))},P(t,[{key:"_u",get:function(){return di.yu}},{key:"Iu",get:function(){var t;return null!=(t=this.Tu.localName)?t:Ti(this.Tu.nodeName)}},{key:"Ru",get:function(){return this.Tu.nodeName}},{key:"Nu",get:function(){var t;return null!=(t=this.Tu.namespaceURI)?t:void 0}},{key:"Du",get:function(){var t;return null!=(t=this.Tu.prefix)?t:void 0}},{key:"Cu",get:function(){return this.Tu.nodeValue}}]),t}(),bi=function(){function t(t){this.Pu=void 0,this.Ou=void 0,this.Pu=t}var n=t.prototype;return n.Bu=function(t){return this.Lu.filter(function(n){return Ii(n)&&n.xu===t})},n.Mu=function(t,n){return this.Lu.filter(function(i){return Ii(i)&&i.Iu===n&&i.Nu===t})},n.Fu=function(t){this.Pu.appendChild(t.Uu),this.Ou&&this.Ou.push(t)},n.Su=function(t){return this.Pu.isEqualNode(t.Uu)},P(t,[{key:"Lu",get:function(){return void 0===this.Ou&&(this.Ou=function(t){for(var n=[],i=0;i<t.length;i++){var r=Ri(t.item(i));r&&n.push(r)}return n}(this.Pu.childNodes)),this.Ou}},{key:"Hu",get:function(){return this.Lu.filter(Ii)}},{key:"Uu",get:function(){return this.Pu}}]),t}(),gi=function(t){function n(n){return t.call(this,n)||this}rt(n,t);var i=n.prototype;return i.Vu=function(t){if(this.Pu.hasAttribute(t))return this.Pu.getAttribute(t)},i.Xu=function(t,n){if(this.Pu.hasAttributeNS(t,n))return this.Pu.getAttributeNS(t,n)},i.Wu=function(t){this.Pu.removeAttribute(t)},i.Gu=function(t,n){this.Pu.removeAttributeNS(t,n)},i.ju=function(t,n){this.Pu.setAttribute(t,n)},i.Yu=function(t,n,i){this.Pu.setAttributeNS(t,n,i)},i.Eu=function(t){return new n(this.Pu.cloneNode(t))},P(n,[{key:"_u",get:function(){return di.wu}},{key:"Iu",get:function(){var t;return null!=(t=this.Pu.localName)?t:Ti(this.Pu.nodeName)}},{key:"Nu",get:function(){var t;return null!=(t=this.Pu.namespaceURI)?t:void 0}},{key:"Du",get:function(){var t;return null!=(t=this.Pu.prefix)?t:void 0}},{key:"xu",get:function(){return this.Pu.nodeName}},{key:"Qu",get:function(){return function(t){for(var n=[],i=0;i<t.length;i++)n.push(new pi(t.item(i)));return n}(this.Pu.attributes)}},{key:"Ku",get:function(){return this.Pu.textContent}}]),n}(bi),mi=function(){function t(t){this.Pu=void 0,this.Pu=t}return t.prototype.Su=function(t){return this.Zu===t.Zu},P(t,[{key:"Zu",get:function(){return this.Pu.nodeValue}},{key:"Uu",get:function(){return this.Pu}}]),t}(),_i=function(t){function n(n){return t.call(this,n)||this}return rt(n,t),n.prototype.Eu=function(t){return new n(this.Pu.cloneNode(t))},P(n,[{key:"_u",get:function(){return di.mu}}]),n}(mi),Ei=function(t){function n(n){return t.call(this,n)||this}return rt(n,t),n.prototype.Eu=function(t){return new n(this.Pu.cloneNode(t))},P(n,[{key:"_u",get:function(){return di.pu}}]),n}(mi),Si=function(t){function n(n){return t.call(this,n)||this}return rt(n,t),n.prototype.Eu=function(t){return new n(this.Pu.cloneNode(t))},P(n,[{key:"_u",get:function(){return di.bu}},{key:"Ju",get:function(){return new gi(this.Pu.documentElement)}}]),n}(bi);function Ii(t){return function(t){return t._u===di.wu}(t)}function Ri(t){switch(t.nodeType){case di.wu:return new gi(t);case di.mu:return new _i(t);case di.pu:return new Ei(t)}}function Ti(t){var n=t.indexOf(":");return n<0?t:t.substr(n+1)}function ki(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),h.defineProperty(t,r.key,r)}}function Ai(t,n){var i=function(t,n){var i=t.length;if(i<=1)return t;for(var r=new Array(i),e=1;e<i;e*=2){Oi(t,n,e,r);var u=t;t=r,r=u}return t}(t,n);return i!==t&&Oi(i,null,t.length,t),t}function Oi(t,n,i,r){var e,u,o,s,f,c=t.length,a=0,h=2*i;for(e=0;e<c;e+=h)for(o=(u=e+i)+i,u>c&&(u=c),o>c&&(o=c),s=e,f=u;;)if(s<u&&f<o)n(t[s],t[f])<=0?r[a++]=t[s++]:r[a++]=t[f++];else if(s<u)r[a++]=t[s++];else{if(!(f<o))break;r[a++]=t[f++]}}var Ni=/[a-zA-Z]/,Di=/[0-9]/,Ci=/[0-9a-fA-F]/,xi=/^0x/i,Bi=/^[0-9]+$/,Fi=/^[0-9a-fA-F]+$/,Pi=/^[0-7]+$/,ji=h.prototype.toString,Ui=Array.isArray||function(t){return"[object Array]"===ji.call(t)},Li="undefined"!=typeof Symbol&&"symbol"==typeof Symbol.iterator;function Mi(t){return Ui(t)?t:Array.from(t)}function qi(t){return t>=65&&t<=90}function Wi(t){return qi(t)||function(t){return t>=97&&t<=122}(t)}function Xi(t){return t>=48&&t<=57}function Hi(t){return Xi(t)||Wi(t)}function Vi(t){return Xi(t)||t>=65&&t<=70||t>=97&&t<=102}function Gi(t){return qi(t)?t+32:t}function zi(t){return Xi(t)?t-48:t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:-1}function Yi(t,n){return void 0===n&&(n=!1),0<=t&&t<=9?t+48:10<=t&&t<=15?t+(n?87:55):-1}var Ki=v.min,$i=String.fromCharCode,Ji=16384;function Zi(t){for(var n=t.length,i=[],r=0;r<n;r+=Ji){var e=Ki(r+Ji,n);i.push($i.apply(null,t.slice(r,e)))}return i.join("")}var Qi=/[^\0-\x7E]/,tr=/[\x2E\u3002\uFF0E\uFF61]/g,nr={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ir=v.floor,rr=String.fromCharCode;function er(t){throw new RangeError(nr[t])}function ur(t){for(var n=[],i=0,r=t.length;i<r;){var e=t.charCodeAt(i++);if(e>=55296&&e<=56319&&i<r){var u=t.charCodeAt(i++);56320==(64512&u)?n.push(((1023&e)<<10)+(1023&u)+65536):(n.push(e),i--)}else n.push(e)}return n}var or,sr,fr,cr=function(t,n){return t+22+75*(t<26)-((0!=n)<<5)},ar=function(t,n,i){var r=0;for(t=i?ir(t/700):t>>1,t+=ir(t/n);t>455;r+=36)t=ir(t/35);return ir(r+36*t/(t+38))},hr=function(t){return function(t,n){var i=t.split("@"),r="";i.length>1&&(r=i[0]+"@",t=i[1]);var e=function(t,n){for(var i=[],r=t.length;r--;)i[r]=n(t[r]);return i}((t=t.replace(tr,".")).split("."),n).join(".");return r+e}(t,function(t){return Qi.test(t)?"xn--"+function(t){for(var n=[],i=(t=ur(t)).length,r=128,e=0,u=72,o=0,s=t;o<s.length;o++){var f=s[o];f<128&&n.push(rr(f))}var c=n.length,a=c;for(c&&n.push("-");a<i;){for(var h=2147483647,v=0,l=t;v<l.length;v++){var d=l[v];d>=r&&d<h&&(h=d)}var w=a+1;h-r>ir((2147483647-e)/w)&&er("overflow"),e+=(h-r)*w,r=h;for(var y=0,p=t;y<p.length;y++){var b=p[y];if(b<r&&++e>2147483647&&er("overflow"),b==r){for(var g=e,m=36;;m+=36){var _=m<=u?1:m>=u+26?26:m-u;if(g<_)break;var E=g-_,S=36-_;n.push(rr(cr(_+E%S,0))),g=ir(E/S)}n.push(rr(cr(g,0))),u=ar(e,w,a==c),e=0,++a}}++e,++r}return n.join("")}(t):t})};function vr(t){for(var n=[],i=0;i<t.length;i++){var r=t[i];r>65535&&(r-=65536,n.push(r>>>10&1023|55296),r=56320|1023&r),n.push(r)}return Zi(n)}function lr(t){if(t>=55296&&t<=57343)throw new c("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function dr(t,n){return t>>n&63|128}function wr(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(lr(t),n.push(t>>12&15|224),n.push(dr(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(dr(t,12)),n.push(dr(t,6))),n.push(63&t|128)):n.push(t)}function yr(t){for(var n=[],i=0;i<t.length;i++){wr(t[i],n)}return n}function pr(){if(fr>=sr)throw new c("Invalid byte index");var t=255&or[fr];if(fr++,128==(192&t))return 63&t;throw new c("Invalid continuation byte")}function br(){var t,n;if(fr>sr)throw new c("Invalid byte index");if(fr===sr)return!1;if(t=255&or[fr],fr++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|pr())>=128)return n;throw new c("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|pr()<<6|pr())>=2048)return lr(n),n;throw new c("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|pr()<<12|pr()<<6|pr())>=65536&&n<=1114111)return n;throw new c("Invalid UTF-8 detected")}function gr(t){return[37,Yi(t>>4),Yi(15&t)]}function mr(t){return function(t){return t>=0&&t<=31}(t)||t>126}function _r(t){return mr(t)||32===t||34===t||60===t||62===t||96===t}function Er(t){return _r(t)||35===t||63===t||123===t||125===t}function Sr(t){return Er(t)||47===t||58===t||59===t||61===t||64===t||t>=91&&t<=94||124===t}function Ir(t){return t<33||t>126||34===t||35===t||60===t||62===t}function Rr(t){return Ir(t)||39===t}function Tr(t,n){if(!n(t))return[t];for(var i=yr([t]),r=[],e=0;e<i.length;e++){var u=i[e];r.push.apply(r,gr(u))}return r}function kr(t,n){for(var i=[],r=0,e=ur(t);r<e.length;r++){var u=e[r];i.push.apply(i,Tr(u,n))}return vr(i)}function Ar(t){return function(t){for(var n=[],i=t.length,r=0;r<i;r++){var e=t[r];if(37===e&&r+2<i&&Vi(t[r+1])&&Vi(t[r+2])){var u=zi(t[r+1])<<4|zi(t[r+2]);n.push(u),r+=2}else n.push(e)}return n}(yr(t))}function Or(t){return vr(function(t){or=t.slice(),sr=or.length,fr=0;for(var n,i=[];!1!==(n=br());)i.push(n);return i}(Ar(ur(t))))}function Nr(t){var n,i,r,e,u=t.length,o=[0,0,0,0,0,0,0,0],s=0,f=null,c=0;if(c<u&&":"===t[c]){if(!(c+1<u&&":"===t[c+1]))throw new a;c+=2,f=s+=1}for(;c<u;){if(8===s)throw new a("Too many groups");if(":"!==t[c]){for(var h=0,v=0;v<4&&c<u&&Ci.test(t[c]);)h=h<<4|l(t[c],16),c+=1,v+=1;if("."===t[c]){if(0===v)throw new a;if(c-=v,s>6)throw new a;for(var d=0;c<u;){var w=null;if(d>0){if(!("."===t[c]&&d<4))throw new a;c+=1}if(!Di.test(t[c]))throw new a;for(;c<u&&Di.test(t[c]);){var y=l(t[c],10);if(null===w)w=y;else{if(0===w)throw new a;if((w=10*w+y)>255)throw new a}c+=1}o[s]=o[s]<<8|w,2!==(d+=1)&&4!==d||(s+=1)}if(4!==d)throw new a;break}if(":"===t[c]){if((c+=1)===u)throw new a}else if(c<u)throw new a;o[s]=h,s+=1}else{if(null!==f)throw new a("Too many :: groups");c+=1,f=s+=1}}if(null!==f){var p=s-f;for(s=7;0!==s&&p>0;)r=f+p-1,e=void 0,e=(n=o)[i=s],n[i]=n[r],n[r]=e,s-=1,p-=1}else if(8!==s)throw new a;return o}function Dr(t){var n=10,i=Bi;return xi.test(t)?(t=t.slice(2),n=16,i=Fi):t.length>=2&&"0"===t[0]&&(t=t.slice(1),n=8,i=Pi),""===t?0:i.test(t)?l(t,n):void 0}var Cr={$u:4},xr=/[\0\t\n\r #%/:?@\[\\\]]/,Br=/[\0\t\n\r #/:?@\[\\\]]/;function Fr(t,n){if("["===t[0]){if("]"!==t[t.length-1])throw new a("Invalid IPv6 address");return{$u:2,uo:Nr(t.slice(1,-1))}}if(!n)return function(t){if(Br.test(t))throw new a("Invalid code point in opaque host");var n=kr(t,mr);return""===n?Cr:{$u:3,qr:n}}(t);var i=function(t){return function(t){return hr(t.toLowerCase())}(t)}(Or(t));if(xr.test(i))throw new a("Invalid code point in host");var r=function(t){var n=t.split(".");if(""===n[n.length-1]&&n.pop(),!(n.length>4)){for(var i=[],r=0;r<n.length;r++){var e=n[r];if(""===e)return;var u=Dr(e);if(void 0===u)return;i.push(u)}for(var o=0;o<i.length-1;o++)if(i[o]>255)throw new a;if(i[i.length-1]>=v.pow(256,5-i.length))throw new a;for(var s=i.pop(),f=0;f<i.length;f++)s+=i[f]*v.pow(256,3-f);return s}}(i);return void 0!==r?{$u:1,uo:r}:""===i?Cr:{$u:0,oo:i}}function Pr(t){switch(t.$u){case 0:return t.oo;case 1:return function(t){for(var n=[],i=t,r=1;r<=4;r++)n.push(""+(255&i)),4!==r&&n.push("."),i>>>=8;return n.reverse().join("")}(t.uo);case 2:return"["+function(t){for(var n="",i=function(t){for(var n=0,i=0,r=0,e=0,u=0;u<8;u++)0===t[u]?(0===e&&(r=u),e++):(e>i&&(n=r,i=e),e=0);return e>i&&(n=r,i=e),i>1?n:null}(t),r=!1,e=0;e<8;e++){if(r){if(0===t[e])continue;r=!1}i!==e?(n+=t[e].toString(16),7!==e&&(n+=":")):(n+=0===e?"::":":",r=!0)}return n}(t.uo)+"]";case 3:return t.qr;case 4:return""}}var jr=/\+/g;function Ur(t){for(var n=t.split("&"),i=[],r=0;r<n.length;r++){var e=n[r];if(""!==e){var u=e.indexOf("="),o=void 0,s=void 0;-1!==u?(o=e.slice(0,u),s=e.slice(u+1)):(o=e,s=""),o=o.replace(jr," "),s=s.replace(jr," ");var f=Or(o),c=Or(s);i.push([f,c])}}return i}function Lr(t){for(var n="",i=0;i<t.length;i++){var r=t[i];i>0&&(n+="&"),n+=Mr(yr(ur(r[0])))+"="+Mr(yr(ur(r[1])))}return n}function Mr(t){for(var n,i=[],r=0;r<t.length;r++){var e=t[r];32===e?i.push(43):42===(n=e)||45===n||46===n||95===n||Hi(n)?i.push(e):i.push.apply(i,gr(e))}return Zi(i)}var qr=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function Wr(t){var n=""+t,i=qr.exec(n);return i?function(t,n){for(var i=t.length,r=[],e=n;e<i;e++){var u=t.charCodeAt(e);if(Hr(u))if(Vr(u)||e===i-1)r.push(Xr);else{var o=t.charCodeAt(e+1);Vr(o)?(r.push(u,o),e++):r.push(Xr)}else r.push(u)}return t.slice(0,n)+Zi(r)}(n,i.index):n}var Xr=65533,Hr=function(t){return 55296==(63488&t)},Vr=function(t){return 0!=(1024&t)};function Gr(t,n){var i=t[0],r=n[0];return i===r?0:i<r?-1:1}function zr(t){t.ao.length=0}function Yr(t,n){!function(t,n){for(var i=0;i<n.length;i++)t[i]=n[i];t.length=n.length}(t.ao,Ur(n))}function Kr(t){if(t.do){var n=Lr(t.ao);""===n&&(n=null),t.do.do._o=n}}var $r=function(){function t(t){if(void 0===t&&(t=void 0),this.do=null,null==t)this.ao=[];else if("object"==typeof t||"function"==typeof t)if((u=t)instanceof $r&&Ui(u.ao)&&(!Li||u[Symbol.iterator]===Jr))this.ao=t.ao.slice();else if(function(t){return null!=t&&(!!Ui(t)||!!Li&&"function"==typeof t[Symbol.iterator])}(t)){this.ao=[];for(var n=0,i=Mi(t);n<i.length;n++){var r=Mi(i[n]);if(2!==r.length)throw new a("Invalid name-value pair");this.ao.push([Wr(r[0]),Wr(r[1])])}}else for(var e in this.ao=[],t)h.prototype.hasOwnProperty.call(t,e)&&this.ao.push([Wr(e),Wr(t[e])]);else(t=Wr(t)).length>0&&"?"===t[0]&&(t=t.slice(1)),this.ao=Ur(t);var u}var n=t.prototype;return n.append=function(t,n){t=Wr(t),n=Wr(n),this.ao.push([t,n]),Kr(this)},n.delete=function(t){t=Wr(t);for(var n=this.ao,i=0;i<n.length;){n[i][0]===t?n.splice(i,1):i++}Kr(this)},n.get=function(t){t=Wr(t);for(var n=this.ao,i=0;i<n.length;i++){var r=n[i];if(r[0]===t)return r[1]}return null},n.getAll=function(t){t=Wr(t);for(var n=this.ao,i=[],r=0;r<n.length;r++){var e=n[r];e[0]===t&&i.push(e[1])}return i},n.has=function(t){t=Wr(t);for(var n=this.ao,i=0;i<n.length;i++){if(n[i][0]===t)return!0}return!1},n.set=function(t,n){t=Wr(t),n=Wr(n);for(var i=this.ao,r=!1,e=0;e<i.length;){var u=i[e];u[0]===t?r?i.splice(e,1):(u[1]=n,r=!0,e++):e++}r||i.push([t,n]),Kr(this)},n.sort=function(){Ai(this.ao,Gr),Kr(this)},n.toString=function(){return Lr(this.ao)},n.entries=function(){return new ne(this.ao,Zr)},n.keys=function(){return new ne(this.ao,Qr)},n.values=function(){return new ne(this.ao,te)},n.forEach=function(t){var n=this;this.ao.forEach(function(i){return t(i[1],i[0],n)})},t}(),Jr=$r.prototype.entries;Li&&($r.prototype[Symbol.iterator]=Jr);var Zr=function(t){return[t[0],t[1]]},Qr=function(t){return t[0]},te=function(t){return t[1]},ne=function(){function t(t,n){this.mo=0,this.ao=t,this.po=n}return t.prototype.next=function(){return this.mo<this.ao.length?{done:!1,value:this.po(this.ao[this.mo++])}:{done:!0,value:void 0}},t}(),ie="null";var re=h.create(null);re.ftp=21,re.file=0,re.gopher=70,re.http=80,re.https=443,re.ws=80,re.wss=443;var ee=/^(?:\.|%2e)$/i,ue=/^(?:\.|%2e){2}$/i;function oe(t){return ee.test(t)}function se(t){return ue.test(t)}function fe(t){return void 0!==re[t]}function ce(t){return fe(t.Ao)}function ae(t){return""!==t.To||""!==t.So}function he(t){var n=t.length;if(!(n>=2))return!1;if(!le(t.slice(0,2)))return!1;if(2!==n){var i=t[2];if(47!==i&&92!==i&&63!==i&&35!==i)return!1}return!0}function ve(t){return 2===t.length&&Ni.test(t[0])&&(":"===t[1]||"|"===t[1])}function le(t){return 2===t.length&&ve(Zi(t))}function de(t){return ve(t)&&":"===t[1]}function we(t){var n=t.Eo;0!==n.length&&("file"===t.Ao&&1===n.length&&de(n[0])||n.pop())}function ye(t){return null===t.Io||Cr===t.Io||t.Ro||"file"===t.Ao}var pe=-1,be=/\t|\n|\r/g,ge=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function me(t,n,i,r){void 0===i&&(i=null),void 0===r&&(r=null),i||(i=new Ee,t=t.replace(ge,""));var e=null!==r?r:0;n=n||null;for(var u=[],o=!1,s=!1,f=!1,c=ur(t=t.replace(be,"")),h=c.length,v=0;v<=h;){var d=v<h?c[v]:pe;switch(e){case 0:if(!Wi(d)){if(null===r){u.length=0,e=2;continue}throw new a("Invalid scheme")}u.push(Gi(d)),e=1;break;case 1:if(Hi(d)||43===d||45===d||46===d)u.push(Gi(d));else{if(58!==d){if(null===r){u.length=0,e=2,v=0;continue}throw new a("Invalid scheme")}var w=vr(u);if(null!==r){if(fe(i.Ao)&&!fe(w))return;if(!fe(i.Ao)&&fe(w))return;if((ae(i)||null!==i.No)&&"file"===w)return;if("file"===i.Ao&&(i.Io===Cr||null===i.Io))return}if(i.Ao=w,null!==r)return void(ce(i)&&i.No===re[i.Ao]&&(i.No=null));u.length=0,"file"===i.Ao?e=13:ce(i)&&n&&n.Ao===i.Ao?e=3:ce(i)?e=7:47===c[v+1]?(e=4,v+=1):(i.Ro=!0,i.Eo.push(""),e=18)}break;case 2:if(!n||n.Ro&&35!==d)throw new a("Invalid scheme");n.Ro&&35===d?(i.Ao=n.Ao,i.Eo=n.Eo.slice(),i._o=n._o,i.Do="",i.Ro=!0,e=20):"file"!==n.Ao?(e=5,v-=1):(e=13,v-=1);break;case 3:47===d&&47===c[v+1]?e=8:(e=5,v-=1);break;case 4:47===d?e=9:(e=17,v-=1);break;case 5:i.Ao=n.Ao,pe===d?(i.To=n.To,i.So=n.So,i.Io=n.Io,i.No=n.No,i.Eo=n.Eo.slice(),i._o=n._o):47===d?e=6:63===d?(i.To=n.To,i.So=n.So,i.Io=n.Io,i.No=n.No,i.Eo=n.Eo.slice(),i._o="",e=19):35===d?(i.To=n.To,i.So=n.So,i.Io=n.Io,i.No=n.No,i.Eo=n.Eo.slice(),i._o=n._o,i.Do="",e=20):92===d&&ce(i)?e=6:(i.To=n.To,i.So=n.So,i.Io=n.Io,i.No=n.No,i.Eo=n.Eo.slice(),i.Eo.pop(),e=17,v-=1);break;case 6:!ce(i)||47!==d&&92!==d?47===d?e=9:(i.To=n.To,i.So=n.So,i.Io=n.Io,i.No=n.No,e=17,v-=1):e=8;break;case 7:if(47!==d||47!==c[v+1]){e=8;continue}e=8,v+=1;break;case 8:47!==d&&92!==d&&(e=9,v-=1);break;case 9:if(64===d){o&&u.unshift(37,52,48),o=!0;for(var y=0;y<u.length;y++){var p=u[y];if(58!==p||f){var b=vr(Tr(p,Sr));f?i.So+=b:i.To+=b}else f=!0}u.length=0}else if(pe===d||47===d||63===d||35===d||ce(i)&&92===d){if(o&&0===u.length)throw new a("Invalid host");v-=u.length+1,u.length=0,e=10}else u.push(d);break;case 10:case 11:if(null!==r&&"file"===i.Ao)v-=1,e=15;else if(58!==d||s)if(pe===d||47===d||63===d||35===d||ce(i)&&92===d){if(v-=1,ce(i)&&0===u.length)throw new a("Invalid host");if(null!==r&&0===u.length&&(ae(i)||null!==i.No))return;var g=Fr(vr(u),ce(i));if(i.Io=g,u.length=0,e=16,null!==r)return}else 91===d?s=!0:93===d&&(s=!1),u.push(d);else{if(0===u.length)throw new a("Invalid host");var m=Fr(vr(u),ce(i));if(i.Io=m,u.length=0,e=12,11===r)return}break;case 12:if(Xi(d))u.push(d);else{if(!(pe===d||47===d||63===d||35===d||ce(i)&&92===d||null!==r))throw new a("Invalid port");if(0!==u.length){var _=l(vr(u),10);if(_>65535)throw new a("Invalid port");i.No=_===re[i.Ao]?null:_,u.length=0}if(null!==r)return;e=16,v-=1}break;case 13:i.Ao="file",47===d||92===d?e=14:n&&"file"===n.Ao?pe===d?(i.Io=n.Io,i.Eo=n.Eo.slice(),i._o=n._o):63===d?(i.Io=n.Io,i.Eo=n.Eo.slice(),i._o="",e=19):35===d?(i.Io=n.Io,i.Eo=n.Eo.slice(),i._o=n._o,i.Do="",e=20):(he(c.slice(v))||(i.Io=n.Io,i.Eo=n.Eo.slice(),we(i)),e=17,v-=1):(e=17,v-=1);break;case 14:47===d||92===d?e=15:(n&&"file"===n.Ao&&!he(c.slice(v))&&(de(n.Eo[0])?i.Eo.push(n.Eo[0]):i.Io=n.Io),e=17,v-=1);break;case 15:if(pe===d||47===d||92===d||63===d||35===d)if(v-=1,null===r&&le(u))e=17;else if(0===u.length){if(i.Io=Cr,null!==r)return;e=16}else{var E=Fr(vr(u),ce(i));if(0===E.$u&&"localhost"===E.oo&&(E=Cr),i.Io=E,null!==r)return;u.length=0,e=16}else u.push(d);break;case 16:ce(i)?(e=17,47!==d&&92!==d&&(v-=1)):null===r&&63===d?(i._o="",e=19):null===r&&35===d?(i.Do="",e=20):pe!==d&&(e=17,47!==d&&(v-=1));break;case 17:if(pe===d||47===d||ce(i)&&92===d||null===r&&(63===d||35===d)){var S=vr(u);if(se(S)?(we(i),47===d||ce(i)&&92===d||i.Eo.push("")):!oe(S)||47===d||ce(i)&&92===d?oe(S)||("file"===i.Ao&&0===i.Eo.length&&le(u)&&(Cr!==i.Io&&null!==i.Io&&(i.Io=Cr),u[1]=58,S=vr(u)),i.Eo.push(S)):i.Eo.push(""),u.length=0,"file"===i.Ao&&(pe===d||63===d||35===d))for(;i.Eo.length>1&&""===i.Eo[0];)i.Eo.shift();63===d?(i._o="",e=19):35===d&&(i.Do="",e=20)}else u.push.apply(u,Tr(d,Er));break;case 18:63===d?(i._o="",e=19):35===d?(i.Do="",e=20):pe!==d&&(i.Eo[0]+=vr(Tr(d,mr)));break;case 19:null===r&&35===d?(i.Do="",e=20):pe!==d&&(i._o+=vr(Tr(d,ce(i)?Rr:Ir)));break;case 20:pe===d||0===d||(i.Do+=vr(Tr(d,_r)))}v++}return i}function _e(t,n,i,r){try{me(t,n,i,r)}catch(t){}}var Ee=function(){this.Ao="",this.To="",this.So="",this.Io=null,this.No=null,this.Eo=[],this._o=null,this.Do=null,this.Ro=!1};function Se(t){switch(t.Ao){case"blob":var n;try{n=me(t.Eo[0],null)}catch(t){return ie}return Se(n);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return i=t.Ao,r=t.Io,e=t.No,i+"://"+Pr(r)+(null===e?"":":"+e);case"file":default:return ie}var i,r,e}var Ie,Re,Te=function(){function t(t,n){var i,r,e=null;if(null!=n)if(null!=(i=n)&&i instanceof Te&&"object"==typeof i.do)e=n.do;else try{e=me(String(n),null)}catch(t){throw new a("Invalid base URL: "+t.message)}try{r=me(String(t),e)}catch(t){throw new a("Invalid URL: "+t.message)}var u=r._o;this.do=r,this._o=function(t){var n=new $r;return null!==t&&Yr(n,t),n}(u),this._o.do=this}var n,i,r,e=t.prototype;return e.toString=function(){return this.href},e.toJSON=function(){return this.href},n=t,(i=[{key:"href",get:function(){return function(t,n){void 0===n&&(n=!1);var i=t.Ao+":";if(null!==t.Io?(i+="//",ae(t)&&(i+=t.To,""!==t.So&&(i+=":"+t.So),i+="@"),i+=Pr(t.Io),null!==t.No&&(i+=":"+t.No)):null===t.Io&&"file"===t.Ao&&(i+="//"),t.Ro)i+=t.Eo[0];else for(var r=0,e=t.Eo;r<e.length;r++)i+="/"+e[r];return null!==t._o&&(i+="?"+t._o),n||null===t.Do||(i+="#"+t.Do),i}(this.do)},set:function(t){var n;try{n=me(String(t),null)}catch(t){throw new a("Invalid URL: "+t.message)}this.do=n,zr(this._o);var i=this.do._o;null!==i&&Yr(this._o,i)}},{key:"origin",get:function(){return Se(this.do)}},{key:"protocol",get:function(){return this.do.Ao+":"},set:function(t){_e(t+":",null,this.do,0)}},{key:"username",get:function(){return this.do.To},set:function(t){ye(this.do)||(this.do.To=kr(t,Sr))}},{key:"password",get:function(){return this.do.So},set:function(t){ye(this.do)||(this.do.So=kr(t,Sr))}},{key:"host",get:function(){var t=this.do,n=t.Io;if(null===n)return"";var i=t.No,r=Pr(n);return null!==i&&(r+=":"+i),r},set:function(t){this.do.Ro||_e(t,null,this.do,10)}},{key:"hostname",get:function(){var t=this.do.Io;return null===t?"":Pr(t)},set:function(t){this.do.Ro||_e(t,null,this.do,11)}},{key:"port",get:function(){var t=this.do.No;return null===t?"":""+t},set:function(t){ye(this.do)||(""===t?this.do.No=null:_e(t,null,this.do,12))}},{key:"pathname",get:function(){var t=this.do.Eo;return this.do.Ro?t[0]:0===t.length?"":"/"+t.join("/")},set:function(t){this.do.Ro||(this.do.Eo.length=0,_e(t,null,this.do,16))}},{key:"search",get:function(){var t=this.do._o;return null===t||""===t?"":"?"+t},set:function(t){t=Wr(t);var n=this.do;if(""===t)return n._o=null,void zr(this._o);"?"===t[0]&&(t=t.slice(1)),n._o="",_e(t,null,n,19),Yr(this._o,t)}},{key:"searchParams",get:function(){return this._o}},{key:"hash",get:function(){var t=this.do.Do;return null===t||""===t?"":"#"+t},set:function(t){""!==t?("#"===t[0]&&(t=t.slice(1)),this.do.Do="",_e(t,null,this.do,20)):this.do.Do=null}}])&&ki(n.prototype,i),r&&ki(n,r),t}();function ke(t){return t.document&&t.document.baseURI||t.location.href||""}function Ae(){return void 0!==r?r.createElement("video"):void 0}function Oe(){return Re||(Re=Ae()),Re}var Ne=!!("ontouchstart"in t||t.DocumentTouch&&r instanceof t.DocumentTouch)||!(!e||!e.msMaxTouchPoints),De=Oe(),Ce=!(!De||!De.webkitShowPlaybackTargetPicker),xe=function(){function t(){this.Co=void 0,this.Po=!1,this.ds=Ne,this.Ps=!1,this.Oo=!0,this.Bo=!0}var n=t.prototype;return n.Lo=function(){return 0},n.xo=function(t,n){return!0},n.Mo=function(t){return t>=1/6*2},P(t,[{key:"Fo",get:function(){return void 0===this.Co&&(this.Co=this.Lo()),this.Co}},{key:"Uo",get:function(){return i.devicePixelRatio||1}},{key:"Ho",get:function(){return Ce}},{key:"Vo",get:function(){return!1}},{key:"Xo",get:function(){return!0}},{key:"zo",get:function(){return ii.ls||ii.Ns}},{key:"Wo",get:function(){return!0}},{key:"Go",get:function(){return!0}},{key:"qo",get:function(){}},{key:"jo",get:function(){return!0}}]),t}(),Be=function(){var t=Ae();if(!t)return!1;var n=t.muted;return t.muted=!n,t.muted!==n}();!function(){if(ii.Is)return!1;var t=Ae();if(!t)return!1;var n=t.volume;t.volume=n/2+.1,t.volume}();var Fe=function(t){function n(n){var i;return(i=t.call(this)||this).Yo=void 0,i.Yo=n,i.Yo&&(i.Po=i.Yo.Po,i.ds=i.Yo.ds,i.Oo=Be&&i.Yo.Oo),i}rt(n,t);var i=n.prototype;return i.Lo=function(){return this.Yo?this.Yo.Fo:t.prototype.Lo.call(this)},i.xo=function(n,i){return this.Yo?this.Yo.xo(n,i):t.prototype.xo.call(this,n,i)},i.Mo=function(n){return this.Yo?this.Yo.Mo(n):t.prototype.Mo.call(this,n)},P(n,[{key:"qo",get:function(){var t;return null==(t=this.Yo)?void 0:t.qo}},{key:"jo",get:function(){var t,n;return null==(t=null==(n=this.Yo)?void 0:n.jo)||t}}]),n}(xe),Pe=function(t){function n(n){var i;return(i=t.call(this,n)||this).Po=!0,i.Ps=!0,i}return rt(n,t),n}(Fe),je=function(t){function n(){return t.apply(this,arguments)||this}return rt(n,t),n.prototype.Lo=function(){if(!Ie.MediaSource)return 1},n}(Pe),Ue=function(t){function n(){return t.apply(this,arguments)||this}return rt(n,t),n.prototype.xo=function(n,i){return!(i.Qo>1920)&&t.prototype.xo.call(this,n,i)},P(n,[{key:"Vo",get:function(){return ii.Fs<3}},{key:"Xo",get:function(){return ii.Fs>=3}}]),n}(Fe),Le=function(t){function n(){return t.call(this)||this}return rt(n,t),n}(xe),Me=function(t){function n(){return t.apply(this,arguments)||this}return rt(n,t),n.prototype.xo=function(t,n){if(t&&t.Ko&&n&&n.Ko){var i=qe(t.Ko,"mp4a.40.2")&&qe(n.Ko,"mp4a.40.5"),r=qe(t.Ko,"mp4a.40.5")&&qe(n.Ko,"mp4a.40.2"),e=qe(t.Ko,"mp4a.40.2")&&qe(n.Ko,"mp4a.40.34"),u=qe(t.Ko,"mp4a.40.34")&&qe(n.Ko,"mp4a.40.2"),o=qe(t.Ko,"mp4a.40.5")&&qe(n.Ko,"mp4a.40.34"),s=qe(t.Ko,"mp4a.40.34")&&qe(n.Ko,"mp4a.40.5");return!(i||r||e||u||o||s)}return!0},P(n,[{key:"qo",get:function(){if(ii.ls)return 4096}}]),n}(Le);function qe(t,n){return t.indexOf(n)>-1}var We=function(t){function n(){return t.apply(this,arguments)||this}return rt(n,t),n.prototype.Mo=function(t){return t>=2},n}(Le),Xe=function(t){function n(){var n;return(n=t.call(this)||this).Po=ii.js>=11,n.Oo=ii.qs&&!(ii.Ns&&ii.js<10),n}return rt(n,t),n}(Le),He=function(t){function n(){return t.apply(this,arguments)||this}return rt(n,t),P(n,[{key:"Wo",get:function(){return!1}}]),n}(Fe),Ve=function(t){function n(){return t.apply(this,arguments)||this}return rt(n,t),P(n,[{key:"jo",get:function(){return!ii._s||ii.xs}}]),n}(Le),Ge=function(){function n(){var n;this.Zo=void 0,this.Jo=new yi,this.$o=new ze,this.nh=(n=function(){if(ii.Ws)return new Me;if(ii.Hs||ii.Vs)return new We;if(ii.qs)return new Xe;if(ii.Bs)return new Ve;return new Le}(),ii.Ns?new je(n):ii.Ps?new Pe(n):ii.Ms?new Ue(n):ii.Us?new He(n):new Fe(n)),this.ih=function(){if(t.URL)try{var n=new t.URL("b","http://a");return n.pathname="c d","http://a/c%20d"===n.href}catch(t){}return!1}(),t.performance&&t.performance.now?this.Zo=function(){return t.performance.now()}:this.Zo=li}var i=n.prototype;return i.rh=function(){ci.apply(void 0,arguments)},i.eh=function(){ai.apply(void 0,arguments)},i.sh=function(){hi.apply(void 0,arguments)},i.uh=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];vi.apply(void 0,[t].concat(i))},i.Zr=function(t,n){return u(t,n)},i.oh=function(t,n){return s(t,n)},i.Kr=function(t){o(t)},i.ah=function(t){f(t)},i.Au=function(t){return this.Jo.Au(t)},i.fh=function(){return this.vh.fh()},i.dh=function(){return this.vh.dh()},i.lh=function(){return this.vh.lh()},i._h=function(){return this.vh._h()},i.gh=function(){return this.vh.gh()},i.wh=function(t,n){return this.vh.wh(t,n)},i.yh=function(t){return this.vh.yh(t)},i.kh=function(t,n){var i;return void 0===n&&(n=ke(Ie)),i="object"!=typeof n||n instanceof Te?n:n.href,new Te(t,i)},i.ph=function(n,i){if(void 0===i&&(i=ke(Ie)),this.ih){var r="string"==typeof i?i:i.toString();return new t.URL(n,r).href}return this.kh(n,i).href},P(n,[{key:"Ah",get:function(){return this.$o}},{key:"Th",get:function(){return this.nh}},{key:"Sh",get:function(){return{Eh:e&&e.userAgent.match(/Android /i)?"Android":"other",Ih:Boolean(e&&e.userAgent.match(/Android 8.0.0/i))}}},{key:"Rh",get:function(){return t&&t.location&&"https:"===t.location.protocol}},{key:"Nh",get:function(){return"languages"in e?e.languages.slice():[e.language]}}]),n}(),ze=function(){function t(){}return P(t,[{key:"Dh",get:function(){return e.oscpu}},{key:"Th",get:function(){return e.platform}},{key:"Ch",get:function(){return e.vendor}},{key:"Ph",get:function(){return e.vendorSub}}]),t}();function Ye(){return(Ye=h.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)h.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}var Ke,$e="com.microsoft.playready",Je="94ce86fb-07ff-4f43-adb8-93d2fa968ca2",Ze="urn:uuid:"+Je,Qe="com.apple.fps.1_0";!function(t){t.Vh="playready",t.Xh="widevine",t.Wh="fairplay",t.Gh="clearkey",t.qh="aes128"}(Ke||(Ke={}));var tu={jh:Ke.Vh,Yh:$e,Qh:"cenc",Kh:"9a04f079-9840-4286-ab92-e65be0885f95",Zh:"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95",Jh:"PlayReady"},nu={jh:Ke.Xh,Yh:"com.widevine.alpha",Qh:"cenc",Kh:"edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",Zh:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",Jh:"Widevine"},iu={jh:Ke.Wh,Yh:Qe,Qh:"skd",Kh:Je,Zh:Ze,Jh:"FairPlay"},ru=(Ke.Wh,{jh:Ke.Gh,Yh:"org.w3.clearkey",Qh:"cenc",Kh:"1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",Zh:"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",Jh:"ClearKey"}),eu=ii.Bs&&ii.Ls>=42||ii.Ws&&ii.Gs>=38||ii.Hs||ii.Xs||ii.Ys&&ii.Qs>=29;function uu(t,n){return r="audio",null!=(i=t)&&-1!==i.indexOf(r)?{initDataTypes:["cenc"],audioCapabilities:[Ye({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]}:{initDataTypes:["cenc"],videoCapabilities:[Ye({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]};var i,r}var ou,su=function(){function t(t){this.$h=void 0,this.ra=U(),this.ea=void 0,this.$h=t}var n=t.prototype;return n.gh=function(){return this.yh(nu)},n.dh=function(){return this.yh(ru)},n._h=function(){return this.yh(tu)},n.lh=function(){return this.yh(iu)},n.yh=function(t){var n=t.Zh,i=this.ra.get(n);if(i)return i;var r=this.wh(t,'video/mp4; codecs="avc1.42000a"');return this.ra.set(n,r),r},n.wh=function(){var t=E.coroutine(_.mark(function t(n,i){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$h.ua(n.Yh,[uu(i,!0)]);case 3:return t.abrupt("return",!0);case 6:return t.prev=6,t.t0=t.catch(0),t.prev=8,t.next=11,this.$h.ua(n.Yh,[uu(i,!1)]);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t1=t.catch(8),t.abrupt("return",!1);case 17:case"end":return t.stop()}},t,this,[[0,6],[8,14]])}));return function(n,i){return t.apply(this,arguments)}}(),n.fh=function(){return this.ea||(this.ea=this.oa()),this.ea},n.oa=function(){var t=E.coroutine(_.mark(function t(){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("https:"!==(void 0).protocol){t.next=2;break}case 2:if(eu){t.next=4;break}return t.abrupt("return",!1);case 4:return t.next=6,this.dh();case 6:if(!t.sent){t.next=8;break}return t.abrupt("return",!1);case 8:return t.abrupt("return",!0);case 9:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),t}(),fu=["cenc"],cu=function(t){function n(n){var i;return(i=t.call(this,"Za")||this).Ka=n,i}return rt(n,t),n}(Pn),au=function(t){function n(n,i,r,e){var u;return(u=t.call(this,"Ja")||this).Ka=n,u.$a=i,u.Ja=r,u.tc=e,u}return rt(n,t),n}(Pn);!function(t){t.ic="rc",t.ec="uc"}(ou||(ou={}));var hu=new y([0]).buffer,vu=function(){function t(){this.ac=void 0,this.ac=[]}var n=t.prototype;return n.cc=function(t){for(var n=0,i=this.ac;n<i.length;n++){if(i[n][0]===t)return!0}return!1},n.fc=function(t){for(var n=0,i=this.ac;n<i.length;n++){var r=i[n];if(r[0]===t)return r[1]}},n.vc=function(t,n){this.ac.forEach(function(n){return t(n[1],n[0])},n)},n.dc=function(t,n){this.ac.push([t,n])},n.lc=function(){N(this.ac)},P(t,[{key:"_c",get:function(){return this.ac.length}}]),t}(),lu=function(){function t(){var t=this;this.Tc=void 0,this.gi=void 0,this.J=void 0,this.Tc=new E(function(n,i){t.gi=n,t.J=i})}var n=t.prototype;return n.Sc=function(t){this.gi&&(this.gi(t),this.Ta())},n.Ec=function(t){this.J&&(this.J(t),this.Ta())},n.Da=function(){this.Tc.catch(D),this.Ec(new Qt)},n.Ta=function(){this.gi=void 0,this.J=void 0},t}();function du(t,n){return t===$e?function(t){if(t.byteLength<2*wu.length)return t;if(mn(new DataView(t,0,2*wu.length),!0)===wu)return t;return n=t,_n('<PlayReadyKeyMessage type="LicenseAcquisition"><LicenseAcquisition Version="1"><Challenge encoding="base64encoded">'+Cn(n)+'</Challenge><HttpHeaders><HttpHeader><name>Content-Type</name><value>text/xml; charset=utf-8</value></HttpHeader><HttpHeader><name>SOAPAction</name><value>"http://schemas.microsoft.com/DRM/2007/03/protocols/AcquireLicense"</value></HttpHeader></HttpHeaders></LicenseAcquisition></PlayReadyKeyMessage>',!0).buffer;var n}(n):n}var wu="<PlayReady";var yu=function(t){function n(n,i,r,e){var u;return(u=t.call(this,n,e)||this).Ic=void 0,u.Rc=void 0,u.Ic=i,u.Rc=r,u}return rt(n,t),n}($t),pu=function(t){function n(n,i){var r;(r=t.call(this)||this).Nc=void 0,r.Dc=!1,r.Cc=void 0,r.Pc=void 0,r.Oc=function(){r.Bc()},r.Lc=function(t){r.Fa(new au(Yt(r),t.messageType,du(r.xc,t.message)))},r.Mc=function(){r.Dc=!0,r.Nc._c>0&&(r.Nc.lc(),r.Fa(new cu(Yt(r)))),r.Fc.removeEventListener("keystatuseschange",r.Oc),r.Fc.removeEventListener("message",r.Lc)},r.Fc=n,r.xc=i,r.Fc.addEventListener("keystatuseschange",r.Oc),r.Fc.addEventListener("message",r.Lc),r.Nc=new vu;var e=[];return r.Fc.closed&&e.push(E.resolve(r.Fc.closed)),r.Pc=new lu,e.push(r.Pc.Tc),r.Cc=E.race(e).then(r.Mc,r.Mc),r.Bc(),r}rt(n,t);var i=n.prototype;return i.Uc=function(){if(this.Dc)return this.Cc;var t,n,i=[];return i.push(E.resolve(this.Fc.close())),i.push((t=1e3,new E(function(i,r){if(void 0!==n&&n.va)r(new Qt);else{var e=m.Zr(function(){void 0!==n&&n.Ea(u),i()},t),u=function(){m.Kr(e),r(new Qt)};void 0!==n&&n.Sa(u)}}))),this.Pc.Sc(E.race(i).catch(bu)),this.Dc=!0,this.Cc},i.Hc=function(t,n,i){return E.resolve(this.Fc.generateRequest(t,n)).catch(bu)},i.Vc=function(t){return E.resolve(this.Fc.load(t)).catch(bu)},i.Xc=function(){return E.resolve(this.Fc.remove()).catch(bu)},i.zc=function(t){return E.resolve(this.Fc.update(t)).catch(bu)},i.Bc=function(){var t=this;this.Nc.lc(),this.Fc.keyStatuses.forEach(function(n,i){t.Wc(i,n)}),this.Fa(new cu(this))},i.Wc=function(t,n){if("string"==typeof t){var i=t;t=n,n=i}var r=Tn(t);if(this.xc===$e&&16===r.byteLength){var e=In(r),u=e.getUint32(0,!0),o=e.getUint16(4,!0),s=e.getUint16(6,!0);e.setUint32(0,u,!1),e.setUint16(4,o,!1),e.setUint16(6,s,!1)}this.xc===$e&&"status-pending"===n&&(n="usable"),this.Nc.dc(r,n)},P(n,[{key:"Gc",get:function(){return this.Cc}},{key:"qc",get:function(){return this.Fc.expiration}},{key:"jc",get:function(){return this.Nc}},{key:"Yc",get:function(){return this.Fc.sessionId}}]),n}(Fn);function bu(t){var n;if(t.message){var i=t.message.match(/^SystemCode:0x([0-9a-fA-F]+)$/);i&&(n=0|l(i[1],16))}throw new yu(t.message,void 0,n,t)}var gu=function(){function t(t,n,i){this.Qc=t,this.Kc=n,this.Zc=i}var n=t.prototype;return n.Jc=function(){var t=E.coroutine(_.mark(function t(n){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new pu(this.Qc.createSession(n),this.Kc));case 1:case"end":return t.stop()}},t,this)}));return function(n){return t.apply(this,arguments)}}(),n.$c=function(t){return E.resolve(this.Qc.setServerCertificate(t))},n.tf=function(t){return E.resolve(t.setMediaKeys(this.Qc))},n.nf=function(t){return E.resolve(t.setMediaKeys(null))},t}(),mu=function(){function t(t,n,i){this.if=t,this.xc=n,this.rf=i}var n=t.prototype;return n.ef=function(){var t=E.coroutine(_.mark(function t(){var n;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.if.createMediaKeys();case 2:return n=t.sent,t.abrupt("return",new gu(n,this.xc,this.rf));case 4:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),n.sf=function(){return this.rf},P(t,[{key:"Kc",get:function(){return this.if.keySystem}}]),t}();function _u(t,n,i,r){var e=!1;if(!(r.persistentState&&"optional"!==r.persistentState||r.distinctiveIdentifier&&"optional"!==r.distinctiveIdentifier)){var u={audioCapabilities:[],videoCapabilities:[],persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",initDataTypes:r.initDataTypes,sessionTypes:["temporary"],label:r.label,cf:r.cf},o=!1;if(r.audioCapabilities){var s=r.audioCapabilities.filter(function(t){return Boolean(t.contentType)});s.length&&(u.audioCapabilities=s.filter(function(r){return Eu(t,n,i,r)}),o=!0,u.audioCapabilities.length&&(e=!0))}if(r.videoCapabilities){var f=r.videoCapabilities.filter(function(t){return Boolean(t.contentType)});f.length&&(u.videoCapabilities=f.filter(function(r){return Eu(t,n,i,r)}),o=!0,u.videoCapabilities.length&&(e=!0))}return o||(e=t(i,"video/mp4")),e?u:void 0}}function Eu(t,n,i,r){return!!r.contentType&&(!(r.encryptionScheme&&!O(n,r.encryptionScheme))&&(!r.robustness&&t(i,(e=r.contentType,u=e.trim(),(o=u.indexOf(";"))<0?u:u.substr(0,o).trim()))));var e,u,o}function Su(t){for(var n=[],i=0;i<t.length;i++){var r=t[i];r.encryptionScheme&&n.push({contentType:r.contentType,robustness:r.robustness})}return t.concat(n)}function Iu(t){return!(!t.audioCapabilities||!t.audioCapabilities.some(Ru))||!(!t.videoCapabilities||!t.videoCapabilities.some(Ru))}function Ru(t){return!t.robustness}function Tu(t,n){for(var i=[],r=0;r<t.length;r++){var e=t[r];e.robustness?i.push(e):i.push(Ye({},e,{robustness:n}))}return i}var ku,Au,Ou=function(){function t(){}return t.prototype.ua=function(){var t=E.coroutine(_.mark(function t(n,i){var r,u,o,s,f,c,a,h;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(i=i.filter(function(t){return!t.cf}),r=0,u=i;r<u.length;r++)(o=u[r]).audioCapabilities&&(o.audioCapabilities=Su(o.audioCapabilities)),o.videoCapabilities&&(o.videoCapabilities=Su(o.videoCapabilities));if("com.widevine.alpha"!==n||!i.some(Iu)){t.next=14;break}return s=i.map(function(t){return i="SW_SECURE_CRYPTO",Ye({},n=t,{videoCapabilities:n.videoCapabilities?Tu(n.videoCapabilities,i):void 0,audioCapabilities:n.audioCapabilities?Tu(n.audioCapabilities,i):void 0});var n,i}),t.prev=4,t.next=7,e.requestMediaKeySystemAccess(n,s);case 7:return f=t.sent,c=f.getConfiguration(),t.abrupt("return",new mu(f,n,c));case 12:t.prev=12,t.t0=t.catch(4);case 14:return t.next=16,e.requestMediaKeySystemAccess(n,i);case 16:return a=t.sent,h=a.getConfiguration(),t.abrupt("return",new mu(a,n,h));case 19:case"end":return t.stop()}},t,null,[[4,12]])}));return function(n,i){return t.apply(this,arguments)}}(),t.vf=function(){return void 0!==e&&"function"==typeof e.requestMediaKeySystemAccess},t}(),Nu=function(){function t(){}return t.prototype.ua=function(t,n){try{return E.resolve(function(t,n){if(!Du())throw new a("Unsupported key system "+t)}(t))}catch(t){return E.reject(t)}},t.vf=function(){return Du()},t}();function Du(){return void 0!==Ie.MSMediaKeys}!function(t){t[t.CONFIGURATION_ERROR=1e3]="CONFIGURATION_ERROR",t[t.LICENSE_ERROR=2e3]="LICENSE_ERROR",t[t.LICENSE_INVALID_DOMAIN=2001]="LICENSE_INVALID_DOMAIN",t[t.LICENSE_INVALID_SOURCE=2002]="LICENSE_INVALID_SOURCE",t[t.LICENSE_EXPIRED=2003]="LICENSE_EXPIRED",t[t.SOURCE_INVALID=3e3]="SOURCE_INVALID",t[t.SOURCE_NOT_SUPPORTED=3001]="SOURCE_NOT_SUPPORTED",t[t.MANIFEST_LOAD_ERROR=4e3]="MANIFEST_LOAD_ERROR",t[t.MANIFEST_CORS_ERROR=4001]="MANIFEST_CORS_ERROR",t[t.MANIFEST_PARSE_ERROR=4002]="MANIFEST_PARSE_ERROR",t[t.MEDIA_NOT_SUPPORTED=5e3]="MEDIA_NOT_SUPPORTED",t[t.MEDIA_LOAD_ERROR=5001]="MEDIA_LOAD_ERROR",t[t.MEDIA_DECODE_ERROR=5002]="MEDIA_DECODE_ERROR",t[t.MEDIA_AVPLAYER_ERROR=5003]="MEDIA_AVPLAYER_ERROR",t[t.MEDIA_ABORTED=5004]="MEDIA_ABORTED",t[t.NETWORK_ERROR=6e3]="NETWORK_ERROR",t[t.NETWORK_TIMEOUT=6001]="NETWORK_TIMEOUT",t[t.CONTENT_PROTECTION_ERROR=7e3]="CONTENT_PROTECTION_ERROR",t[t.CONTENT_PROTECTION_NOT_SUPPORTED=7001]="CONTENT_PROTECTION_NOT_SUPPORTED",t[t.CONTENT_PROTECTION_CONFIGURATION_MISSING=7002]="CONTENT_PROTECTION_CONFIGURATION_MISSING",t[t.CONTENT_PROTECTION_CONFIGURATION_INVALID=7003]="CONTENT_PROTECTION_CONFIGURATION_INVALID",t[t.CONTENT_PROTECTION_INITIALIZATION_INVALID=7004]="CONTENT_PROTECTION_INITIALIZATION_INVALID",t[t.CONTENT_PROTECTION_CERTIFICATE_ERROR=7005]="CONTENT_PROTECTION_CERTIFICATE_ERROR",t[t.CONTENT_PROTECTION_CERTIFICATE_INVALID=7006]="CONTENT_PROTECTION_CERTIFICATE_INVALID",t[t.CONTENT_PROTECTION_LICENSE_ERROR=7007]="CONTENT_PROTECTION_LICENSE_ERROR",t[t.CONTENT_PROTECTION_LICENSE_INVALID=7008]="CONTENT_PROTECTION_LICENSE_INVALID",t[t.CONTENT_PROTECTION_KEY_EXPIRED=7009]="CONTENT_PROTECTION_KEY_EXPIRED",t[t.CONTENT_PROTECTION_KEY_MISSING=7010]="CONTENT_PROTECTION_KEY_MISSING",t[t.CONTENT_PROTECTION_OUTPUT_RESTRICTED=7011]="CONTENT_PROTECTION_OUTPUT_RESTRICTED",t[t.CONTENT_PROTECTION_INTERNAL_ERROR=7012]="CONTENT_PROTECTION_INTERNAL_ERROR",t[t.SUBTITLE_LOAD_ERROR=8e3]="SUBTITLE_LOAD_ERROR",t[t.SUBTITLE_CORS_ERROR=8001]="SUBTITLE_CORS_ERROR",t[t.SUBTITLE_PARSE_ERROR=8002]="SUBTITLE_PARSE_ERROR",t[t.VR_PLATFORM_UNSUPPORTED=9e3]="VR_PLATFORM_UNSUPPORTED",t[t.VR_PRESENTATION_ERROR=9001]="VR_PRESENTATION_ERROR",t[t.AD_ERROR=1e4]="AD_ERROR",t[t.AD_BLOCKER_DETECTED=10001]="AD_BLOCKER_DETECTED",t[t.FULLSCREEN_ERROR=11e3]="FULLSCREEN_ERROR"}(ku||(ku={})),function(t){t[t.CONFIGURATION=1]="CONFIGURATION",t[t.LICENSE=2]="LICENSE",t[t.SOURCE=3]="SOURCE",t[t.MANIFEST=4]="MANIFEST",t[t.MEDIA=5]="MEDIA",t[t.NETWORK=6]="NETWORK",t[t.CONTENT_PROTECTION=7]="CONTENT_PROTECTION",t[t.SUBTITLE=8]="SUBTITLE",t[t.VR=9]="VR",t[t.AD=10]="AD",t[t.FULLSCREEN=11]="FULLSCREEN"}(Au||(Au={})),function(t){(Au||(Au={})).fromCode=function(t){var n=v.floor(t/1e3);if(n in Au)return n;throw new a("Invalid error code: "+t)}}();var Cu=function(){function t(){}return t.prototype.ua=function(t,n){try{return E.resolve(function(t,n){if(t!==Qe)throw new a(t+" is not supported with webkit-prefixed Encrypted Media Extensions.");if(!xu())throw new a("Unsupported key system "+t)}(t))}catch(t){return E.reject(t)}},t.vf=function(){return xu()},t}();function xu(){return void 0!==Ie.WebKitMediaKeys}var Bu,Fu=function(){function t(t){this.Of=t}return t.prototype.ua=function(){var t=E.coroutine(_.mark(function t(n,i){var r,e,u;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=0,e=this.Of;case 1:if(!(r<e.length)){t.next=14;break}return u=e[r],t.prev=3,t.next=6,u.ua(n,i);case 6:return t.abrupt("return",t.sent);case 9:t.prev=9,t.t0=t.catch(3);case 11:r++,t.next=1;break;case 14:throw new a("Unsupported key system configuration for "+n);case 15:case"end":return t.stop()}},t,this,[[3,9]])}));return function(n,i){return t.apply(this,arguments)}}(),t}(),Pu=function(t){function n(n){var i;return(i=t.call(this)||this)._f=void 0,i.If=void 0,i.df=void 0,i.Bf=!1,i.Lf=void 0,i.xf=void 0,i.Mf=void 0,i.Ff=void 0,i.Uf=void 0,i.xc=n,i.df=new lu,i.xf="",i.Uf=new lu,i.Mf=new vu,i}rt(n,t);var i=n.prototype;return i.Hf=function(){this.If&&(this.pf("usable"),this.If.Sc(void 0),this.If=void 0)},i.Vf=function(t){var n=new yu("Unknown CDM error",t.errorCode,t.systemCode);this.If?(this.If.Ec(n),this.If=void 0):this._f?(this._f.Ec(n),this._f=void 0):n.Ic===WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT?this.pf("output-restricted"):1===n.Rc?this.pf("expired"):this.pf("internal-error")},i.Xf=function(t){0!==t.message.byteLength&&(this._f&&(this._f.Sc(void 0),this._f=void 0),this.Fa(new au(this,"license-request",du(this.xc,kn(t.message).buffer),t.defaultURL||void 0)))},i.zf=function(t){this.Ff||(this.Ff=t,this.Uf.Sc(t))},i.Uc=function(){var t=E.coroutine(_.mark(function t(){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.throwIfClosed(),this.Bf=!0,this.df.Sc(void 0);case 3:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),i.Hc=function(){var t=E.coroutine(_.mark(function t(n,i){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.throwIfClosed(),this._f=new lu,this.Lf=Tn(i),t.t0=this.Ff,t.t0){t.next=8;break}return t.next=7,this.Uf.Tc;case 7:t.t0=t.sent;case 8:return t.t0.webkitGenerateKeyRequest(this.xc,this.Lf),t.next=12,this._f.Tc;case 12:case"end":return t.stop()}},t,this)}));return function(n,i){return t.apply(this,arguments)}}(),i.Vc=function(){var t=E.coroutine(_.mark(function t(n){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.throwIfClosed(),t.abrupt("return",!1);case 2:case"end":return t.stop()}},t,this)}));return function(n){return t.apply(this,arguments)}}(),i.Xc=function(){var t=E.coroutine(_.mark(function t(){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.throwIfClosed();case 1:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),i.zc=function(){var t=E.coroutine(_.mark(function t(n){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.throwIfClosed(),this.If=new lu,t.t0=this.Ff,t.t0){t.next=7;break}return t.next=6,this.Uf.Tc;case 6:t.t0=t.sent;case 7:return t.t0.webkitAddKey(this.xc,Tn(n),this.Lf,this.Yc),t.next=11,this.If.Tc;case 11:case"end":return t.stop()}},t,this)}));return function(n){return t.apply(this,arguments)}}(),i.throwIfClosed=function(){if(this.Bf)throw new a("Already closing or closed.")},i.pf=function(t){this.Mf.lc(),this.Mf.dc(hu,t),this.Fa(new cu(this))},P(n,[{key:"jc",get:function(){return this.Mf}},{key:"Yc",get:function(){return this.xf},set:function(t){this.xf=t}},{key:"Gc",get:function(){return this.df.Tc}},{key:"qc",get:function(){return NaN}}]),n}(Fn),ju=function(){function t(t,n){var i=this;this.Ff=void 0,this.Wf=U(),this.Gf=[],this.kf=function(t){var n=i.qf(t.sessionId);n&&n.Hf()},this.jf=function(t){var n=i.qf(t.sessionId);n&&n.Vf(t)},this.Yf=function(t){var n=i.qf(t.sessionId);n&&n.Xf(t)},this.Kc=t,this.Zc=n}var n=t.prototype;return n.tf=function(t){return this.Ff=t,this.Ff.addEventListener("webkitkeyadded",this.kf),this.Ff.addEventListener("webkitkeyerror",this.jf),this.Ff.addEventListener("webkitkeymessage",this.Yf),this.Wf.forEach(function(n,i){return n.zf(t)}),this.Gf.forEach(function(n){return n.zf(t)}),E.resolve()},n.nf=function(t){return t.removeEventListener("webkitkeyadded",this.kf),t.removeEventListener("webkitkeyerror",this.jf),t.removeEventListener("webkitkeymessage",this.Yf),this.Ff=void 0,E.resolve()},n.Jc=function(){var t=E.coroutine(_.mark(function t(n,i,r){var e;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=new Pu(this.Kc),this.Ff&&e.zf(this.Ff),this.Gf.push(e),t.abrupt("return",e);case 4:case"end":return t.stop()}},t,this)}));return function(n,i,r){return t.apply(this,arguments)}}(),n.$c=function(t){return E.resolve(!1)},n.qf=function(t){if(t){var n=this.Wf.get(t);return n||((n=this.Gf.shift())?(n.Yc=t,this.Wf.set(t,n),n):void 0)}},t}(),Uu=function(){function t(t,n){this.Kc=t,this.Qf=n}var n=t.prototype;return n.ef=function(){return E.resolve(new ju(this.Kc,this.Qf))},n.sf=function(){return this.Qf},t}(),Lu=function(){function t(){}return t.prototype.ua=function(t,n){try{return E.resolve(Mu(t,n))}catch(t){return E.reject(t)}},t.vf=function(){return"undefined"!=typeof HTMLMediaElement&&void 0!==HTMLMediaElement.prototype.webkitGenerateKeyRequest&&void 0!==HTMLMediaElement.prototype.webkitAddKey&&void 0!==HTMLMediaElement.prototype.webkitCancelKeyRequest},t}();function Mu(t,n){if(!Lu.vf())throw new a("Unsupported key system "+t);for(var i=0;i<n.length;i++){var r=n[i],e=_u(qu,fu,t,r);if(e)return new Uu(t,e)}throw new a("Unsupported key system configuration for "+t)}function qu(t,n){var i=Oe();return!(!i||!i.canPlayType||""===i.canPlayType(n,t))}function Wu(){return Bu||(Bu=function(){var t=[];Cu.vf()&&t.push(new Cu);Ou.vf()&&t.push(new Ou);Nu.vf()&&t.push(new Nu);Lu.vf()&&t.push(new Lu);return new Fu(t)}()),Bu}var Xu=function(){function t(){this.Kf=U()}var n=t.prototype;return n.lc=function(t){this.Kf.delete(t)},n.Zf=function(){this.Kf.clear()},n.fc=function(t){return this.Kf.get(t)},n.Jf=function(t,n){this.Kf.set(t,n)},t}(),Hu=function(){function t(){}return t.$f=function(){return t.vu||(t.vu=Vu.vf()?new Vu:new Xu),t.vu},t.lc=function(n){t.$f().lc(n)},t.Zf=function(){t.$f().Zf()},t.fc=function(n){return t.$f().fc(n)},t.Jf=function(n,i){t.$f().Jf(n,i)},t}();Hu.vu=void 0;var Vu=function(n){function i(){return n.apply(this,arguments)||this}rt(i,n),i.vf=function(){try{return t.sessionStorage.setItem("foobar","foobar"),t.sessionStorage.removeItem("foobar"),!0}catch(t){return!1}};var r=i.prototype;return r.lc=function(n){t.sessionStorage.removeItem(n)},r.Zf=function(){t.sessionStorage.clear()},r.fc=function(n){return t.sessionStorage[n]},r.Jf=function(n,i){t.sessionStorage[n]=i},i}(Hu);var Gu=function(){var n,i=t.Blob;if(i)try{return new i,n=i,function(t,i){return new n(t,i)}}catch(t){}var r,e=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||t.MSBlobBuilder;return e?(r=e,function(t,n){var i=new r;if(t)for(var e=0;e<t.length;e++){var u=t[e];i.append(u)}return i.getBlob(n&&n.type||"")}):null}();function zu(t,n,i){var e=Gu([n],{type:"application/octet-stream"}),u=URL.createObjectURL(e),o=function(t,n){var i=t,r=i.indexOf("?");if(r>=0&&(i=i.substr(0,r)),i=i.substr(i.lastIndexOf("/")+1),n){var e=i.indexOf(".");e<0&&(e=i.length),i=i.substr(0,e)+n+i.substr(e)}return i}(t,i),s=r.createElement("a");s.href=u,s.download=o,r.body.appendChild(s),s.click(),r.body.removeChild(s),URL.revokeObjectURL(u)}var Yu,Ku;!function(t){t.tv="rv",t.ev="uv",t.ov="contentprotectionerror",t.hv="contentprotectionsuccess",t.fv="currentsourcechange",t.vv="destroy",t._v="durationchange",t.wv="emptied",t.ic="encrypted",t.mv="ended",t.yv="pv",t.bv="loadstart",t.Av="manifestupdate",t.Tv="nosupportedrepresentationfound",t.Sv="offline",t.Ev="online",t.Iv="pause",t.Rv="play",t.Nv="progress",t.Dv="ratechange",t.Cv="representationchange",t.Pv="resize",t.Ov="seeked",t.Bv="seeking",t.Lv="segmentnotfound",t.xv="Mv",t.Fv="Uv",t.Hv="sourcechange",t.Vv="timeupdate",t.Xv="volumechange",t.zv="Wv",t.Gv="metricschange"}(Yu||(Yu={})),function(t){t.qv="arraybuffer",t.Yv="json",t.Qv="stream",t.mu="text"}(Ku||(Ku={}));var $u=function(){function t(n){var i=this;this.Hh=void 0,this.Hh={},n instanceof t?n.asList().forEach(function(t){var n=t[0],r=t[1];i.append(n,r)}):Array.isArray(n)?n.forEach(function(t){i.append(t[0],t[1])}):n&&h.getOwnPropertyNames(n).forEach(function(t){i.append(t,n[t])})}var n=t.prototype;return n.append=function(t,n){var i=t,r=n;i=Ju(i),r=Zu(r);var e=i.toLowerCase();if(this.Hh.hasOwnProperty(e)){var u=this.Hh[e],o=u[1];u[1]=o?o+", "+r:r}else this.Hh[e]=[i,r]},n.delete=function(t){var n=Ju(t).toLowerCase();delete this.Hh[n]},n.get=function(t){var n=Ju(t).toLowerCase();return this.Hh.hasOwnProperty(n)?this.Hh[n][1]:null},n.has=function(t){var n=Ju(t).toLowerCase();return this.Hh.hasOwnProperty(n)},n.set=function(t,n){var i=t,r=(i=Ju(i)).toLowerCase();this.Hh[r]=[i,Zu(n)]},n.forEach=function(t,n){for(var i in this.Hh)this.Hh.hasOwnProperty(i)&&t.call(n,this.Hh[i][1],i,this)},n.asList=function(){var t=[];for(var n in this.Hh)if(this.Hh.hasOwnProperty(n)){var i=this.Hh[n],r=i[0],e=i[1];t.push([r,e])}return t},n.Kv=function(){var t={};return this.forEach(function(n,i){t[i]=n}),t},n.Zv=function(t){var n=this;t.forEach(function(t,i){n.append(i,t)})},n.Jv=function(t){var n=this;t.forEach(function(t,i){n.set(i,t)})},t}();function Ju(t){var n=t;if("string"!=typeof n&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(n))throw new a("Invalid character in header field name");return n}function Zu(t){var n=t;return"string"!=typeof n&&(n=String(n)),n}var Qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(t){return"Symbol("+t+")"};function to(){}var no=Number.isNaN||function(t){return t!=t},io=to;function ro(t){return"object"==typeof t&&null!==t||"function"==typeof t}function eo(t){return t.slice()}function uo(t){return!1!==function(t){if("number"!=typeof t)return!1;if(no(t))return!1;if(t<0)return!1;return!0}(t)&&t!==1/0}function oo(t,n,i){if("function"!=typeof t)throw new a("Argument is not a function");return Function.prototype.apply.call(t,n,i)}function so(t,n,i,r){var e=t[n];if(void 0!==e){if("function"!=typeof e)throw new a(e+" is not a method");switch(i){case 0:return function(){return co(e,t,r)};case 1:return function(n){var i=[n].concat(r);return co(e,t,i)}}}return function(){return go(void 0)}}function fo(t,n,i){var r=t[n];if(void 0!==r)return oo(r,t,i)}function co(t,n,i){try{return go(oo(t,n,i))}catch(t){return mo(t)}}function ao(t){return t}function ho(t){if(t=Number(t),no(t)||t<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return t}function vo(t){if(void 0===t)return function(){return 1};if("function"!=typeof t)throw new a("size property of a queuing strategy must be a function");return function(n){return t(n)}}var lo=E,wo=E.prototype.then,yo=E.resolve.bind(lo),po=E.reject.bind(lo);function bo(t){return new lo(t)}function go(t){return yo(t)}function mo(t){return po(t)}function _o(t,n,i){return wo.call(t,n,i)}function Eo(t,n,i){_o(_o(t,n,i),void 0,io)}function So(t,n){Eo(t,n)}function Io(t,n){Eo(t,void 0,n)}function Ro(t,n,i){return _o(t,n,i)}function To(t){_o(t,void 0,io)}var ko=function(){function t(){this.$v=0,this.td=0,this.wr={rd:[],ed:void 0},this.ud=this.wr,this.$v=0,this.td=0}return h.defineProperty(t.prototype,"length",{get:function(){return this.td},enumerable:!0,configurable:!0}),t.prototype.push=function(t){var n=this.ud,i=n;16383===n.rd.length&&(i={rd:[],ed:void 0}),n.rd.push(t),i!==n&&(this.ud=i,n.ed=i),++this.td},t.prototype.shift=function(){var t=this.wr,n=t,i=this.$v,r=i+1,e=t.rd,u=e[i];return 16384===r&&(n=t.ed,r=0),--this.td,this.$v=r,t!==n&&(this.wr=n),e[i]=void 0,u},t.prototype.forEach=function(t){for(var n=this.$v,i=this.wr,r=i.rd;!(n===r.length&&void 0===i.ed||n===r.length&&(n=0,0===(r=(i=i.ed).rd).length));)t(r[n]),++n},t.prototype.peek=function(){var t=this.wr,n=this.$v;return t.rd[n]},t}();function Ao(t,n,i){var r=null;!0===i&&(r=h.prototype);var e=h.create(r);return e.value=t,e.done=n,e}function Oo(t,n){t.od=!0,t.hd=n,n.fd=t,"readable"===n.vd?xo(t):"closed"===n.vd?function(t){xo(t),Po(t)}(t):Bo(t,n.dd)}function No(t,n){return qf(t.hd,n)}function Do(t){"readable"===t.hd.vd?Fo(t,new a("Reader was released and can no longer be used to monitor the stream's closedness")):function(t,n){Bo(t,n)}(t,new a("Reader was released and can no longer be used to monitor the stream's closedness")),t.hd.fd=void 0,t.hd=void 0}function Co(t){return new a("Cannot "+t+" a stream using a released reader")}function xo(t){t.Cc=bo(function(n,i){t.ld=n,t._d=i})}function Bo(t,n){xo(t),Fo(t,n)}function Fo(t,n){To(t.Cc),t._d(n),t.ld=void 0,t._d=void 0}function Po(t){t.ld(void 0),t.ld=void 0,t._d=void 0}var jo=Qu("[[CancelSteps]]"),Uo=Qu("[[PullSteps]]");function Lo(t,n){void 0===n&&(n=!1);var i=new Go(t);return i.od=n,i}function Mo(t){return bo(function(n,i){var r={gi:n,J:i};t.fd.wd.push(r)})}function qo(t,n,i){var r=t.fd;r.wd.shift().gi(Ao(n,i,r.od))}function Wo(t){return t.fd.wd.length}function Xo(t){var n=t.fd;return void 0!==n&&!!zo(n)}var Ho,Vo,Go=function(){function t(t){if(!1===Lf(t))throw new a("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===Mf(t))throw new a("This stream has already been locked for exclusive reading by another reader");Oo(this,t),this.wd=new ko}return h.defineProperty(t.prototype,"closed",{get:function(){return zo(this)?this.Cc:mo(Ko("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return zo(this)?void 0===this.hd?mo(Co("cancel")):No(this,t):mo(Ko("cancel"))},t.prototype.read=function(){return zo(this)?void 0===this.hd?mo(Co("read from")):Yo(this):mo(Ko("read"))},t.prototype.releaseLock=function(){if(!zo(this))throw Ko("releaseLock");if(void 0!==this.hd){if(this.wd.length>0)throw new a("Tried to release a reader lock when that reader has pending read() calls un-settled");Do(this)}},t}();function zo(t){return!!ro(t)&&!!h.prototype.hasOwnProperty.call(t,"wd")}function Yo(t){var n=t.hd;return n.md=!0,"closed"===n.vd?go(Ao(void 0,!0,t.od)):"errored"===n.vd?mo(n.dd):n.yd[Uo]()}function Ko(t){return new a("ReadableStreamDefaultReader.prototype."+t+" can only be used on a ReadableStreamDefaultReader")}"symbol"==typeof Qu.asyncIterator&&((Ho={})[Qu.asyncIterator]=function(){return this},Vo=Ho,h.defineProperty(Vo,Qu.asyncIterator,{enumerable:!1}));var $o={next:function(){if(!1===Jo(this))return mo(Zo("next"));var t=this.kd;return void 0===t.hd?mo(Co("iterate")):Ro(Yo(t),function(n){var i=n.done;return i&&Do(t),Ao(n.value,i,!0)})},return:function(t){if(!1===Jo(this))return mo(Zo("next"));var n=this.kd;if(void 0===n.hd)return mo(Co("finish iterating"));if(n.wd.length>0)return mo(new a("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this.pd){var i=No(n,t);return Do(n),Ro(i,function(){return Ao(t,!0,!0)})}return Do(n),go(Ao(t,!0,!0))}};function Jo(t){return!!ro(t)&&!!h.prototype.hasOwnProperty.call(t,"kd")}function Zo(t){return new a("ReadableStreamAsyncIterator."+t+" can only be used on a ReadableSteamAsyncIterator")}function Qo(t){var n=t.ei.shift();return t.bd-=n.size,t.bd<0&&(t.bd=0),n.value}function ts(t,n,i){if(!uo(i=Number(i)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");t.ei.push({value:n,size:i}),t.bd+=i}function ns(t){t.ei=new ko,t.bd=0}void 0!==Vo&&h.setPrototypeOf($o,Vo),h.defineProperty($o,"next",{enumerable:!1}),h.defineProperty($o,"return",{enumerable:!1});var is=Qu("[[AbortSteps]]"),rs=Qu("[[ErrorSteps]]"),es=function(){function t(t,n){void 0===t&&(t={}),void 0===n&&(n={}),os(this);var i=n.size,r=n.highWaterMark;if(void 0!==t.type)throw new RangeError("Invalid type is specified");var e=vo(i);void 0===r&&(r=1),function(t,n,i,r){var e=h.create(Is.prototype);var u=so(n,"write",1,[e]),o=so(n,"close",0,[]),s=so(n,"abort",1,[]);Rs(t,e,function(){return fo(n,"start",[e])},u,o,s,i,r)}(this,t,r=ho(r),e)}return h.defineProperty(t.prototype,"locked",{get:function(){if(!1===ss(this))throw Cs("locked");return fs(this)},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===ss(this)?mo(Cs("abort")):!0===fs(this)?mo(new a("Cannot abort a stream that already has a writer")):cs(this,t)},t.prototype.close=function(){return!1===ss(this)?mo(Cs("close")):!0===fs(this)?mo(new a("Cannot close a stream that already has a writer")):!0===ds(this)?mo(new a("Cannot close an already-closing stream")):as(this)},t.prototype.getWriter=function(){if(!1===ss(this))throw Cs("getWriter");return us(this)},t}();function us(t){return new ps(t)}function os(t){t.vd="writable",t.dd=void 0,t.Td=void 0,t.Sd=void 0,t.Ed=new ko,t.Id=void 0,t.Rd=void 0,t.Nd=void 0,t.Dd=void 0,t.Cd=!1}function ss(t){return!!ro(t)&&!!h.prototype.hasOwnProperty.call(t,"Sd")}function fs(t){return void 0!==t.Td}function cs(t,n){var i=t.vd;if("closed"===i||"errored"===i)return go(void 0);if(void 0!==t.Dd)return t.Dd.Pn;var r=!1;"erroring"===i&&(r=!0,n=void 0);var e=bo(function(i,e){t.Dd={Pn:void 0,gi:i,J:e,Zn:n,Pd:r}});return t.Dd.Pn=e,!1===r&&vs(t,n),e}function as(t){var n=t.vd;if("closed"===n||"errored"===n)return mo(new a("The stream (in "+n+" state) is not in the writable state and cannot be closed"));var i,r=bo(function(n,i){var r={gi:n,J:i};t.Rd=r}),e=t.Td;return void 0!==e&&!0===t.Cd&&"writable"===n&&Xs(e),ts(i=t.Sd,"close",0),As(i),r}function hs(t,n){"writable"!==t.vd?ls(t):vs(t,n)}function vs(t,n){var i=t.Sd;t.vd="erroring",t.dd=n;var r=t.Td;void 0!==r&&_s(r,n),!1===function(t){if(void 0===t.Id&&void 0===t.Nd)return!1;return!0}(t)&&!0===i.Od&&ls(t)}function ls(t){t.vd="errored",t.Sd[rs]();var n=t.dd;if(t.Ed.forEach(function(t){t.J(n)}),t.Ed=new ko,void 0!==t.Dd){var i=t.Dd;if(t.Dd=void 0,!0===i.Pd)return i.J(n),void ws(t);Eo(t.Sd[is](i.Zn),function(){i.gi(),ws(t)},function(n){i.J(n),ws(t)})}else ws(t)}function ds(t){return void 0!==t.Rd||void 0!==t.Nd}function ws(t){void 0!==t.Rd&&(t.Rd.J(t.dd),t.Rd=void 0);var n=t.Td;void 0!==n&&js(n,t.dd)}function ys(t,n){var i=t.Td;void 0!==i&&n!==t.Cd&&(!0===n?function(t){Ls(t)}(i):Xs(i)),t.Cd=n}var ps=function(){function t(t){if(!1===ss(t))throw new a("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===fs(t))throw new a("This stream has already been locked for exclusive writing by another writer");this.Bd=t,t.Td=this;var n,i=t.vd;if("writable"===i)!1===ds(t)&&!0===t.Cd?Ls(this):qs(this),Fs(this);else if("erroring"===i)Ms(this,t.dd),Fs(this);else if("closed"===i)qs(this),Fs(n=this),Us(n);else{var r=t.dd;Ms(this,r),Ps(this,r)}}return h.defineProperty(t.prototype,"closed",{get:function(){return!1===bs(this)?mo(xs("closed")):this.Cc},enumerable:!0,configurable:!0}),h.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===bs(this))throw xs("desiredSize");if(void 0===this.Bd)throw Bs("desiredSize");return function(t){var n=t.Bd,i=n.vd;if("errored"===i||"erroring"===i)return null;if("closed"===i)return 0;return ks(n.Sd)}(this)},enumerable:!0,configurable:!0}),h.defineProperty(t.prototype,"ready",{get:function(){return!1===bs(this)?mo(xs("ready")):this.Ld},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===bs(this)?mo(xs("abort")):void 0===this.Bd?mo(Bs("abort")):function(t,n){return cs(t.Bd,n)}(this,t)},t.prototype.close=function(){if(!1===bs(this))return mo(xs("close"));var t=this.Bd;return void 0===t?mo(Bs("close")):!0===ds(t)?mo(new a("Cannot close an already-closing stream")):gs(this)},t.prototype.releaseLock=function(){if(!1===bs(this))throw xs("releaseLock");void 0!==this.Bd&&Es(this)},t.prototype.write=function(t){return!1===bs(this)?mo(xs("write")):void 0===this.Bd?mo(Bs("write to")):Ss(this,t)},t}();function bs(t){return!!ro(t)&&!!h.prototype.hasOwnProperty.call(t,"Bd")}function gs(t){return as(t.Bd)}function ms(t,n){"pending"===t.xd?js(t,n):function(t,n){Ps(t,n)}(t,n)}function _s(t,n){"pending"===t.Md?Ws(t,n):function(t,n){Ms(t,n)}(t,n)}function Es(t){var n=t.Bd,i=new a("Writer was released and can no longer be used to monitor the stream's closedness");_s(t,i),ms(t,i),n.Td=void 0,t.Bd=void 0}function Ss(t,n){var i=t.Bd,r=i.Sd,e=function(t,n){try{return t.Fd(n)}catch(n){return Os(t,n),1}}(r,n);if(i!==t.Bd)return mo(Bs("write to"));var u=i.vd;if("errored"===u)return mo(i.dd);if(!0===ds(i)||"closed"===u)return mo(new a("The stream is closing or closed and cannot be written to"));if("erroring"===u)return mo(i.dd);var o=function(t){return bo(function(n,i){var r={gi:n,J:i};t.Ed.push(r)})}(i);return function(t,n,i){var r={chunk:n};try{ts(t,r,i)}catch(n){return void Os(t,n)}var e=t.Ud;if(!1===ds(e)&&"writable"===e.vd){var u=Ns(t);ys(e,u)}As(t)}(r,n,e),o}var Is=function(){function t(){throw new a("WritableStreamDefaultController cannot be constructed explicitly")}return t.prototype.error=function(t){if(!1===function(t){if(!ro(t))return!1;if(!h.prototype.hasOwnProperty.call(t,"Ud"))return!1;return!0}(this))throw new a("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this.Ud.vd&&Ds(this,t)},t.prototype[is]=function(t){var n=this.Hd(t);return Ts(this),n},t.prototype[rs]=function(){ns(this)},t}();function Rs(t,n,i,r,e,u,o,s){n.Ud=t,t.Sd=n,n.ei=void 0,n.bd=void 0,ns(n),n.Od=!1,n.Fd=s,n.Vd=o,n.Xd=r,n.zd=e,n.Hd=u;var f=Ns(n);ys(t,f),Eo(go(i()),function(){n.Od=!0,As(n)},function(i){n.Od=!0,hs(t,i)})}function Ts(t){t.Xd=void 0,t.zd=void 0,t.Hd=void 0,t.Fd=void 0}function ks(t){return t.Vd-t.bd}function As(t){var n=t.Ud;if(!1!==t.Od&&void 0===n.Id)if("erroring"!==n.vd){if(0!==t.ei.length){var i=t.ei.peek().value;"close"===i?function(t){var n=t.Ud;(function(t){t.Nd=t.Rd,t.Rd=void 0})(n),Qo(t);var i=t.zd();Ts(t),Eo(i,function(){!function(t){t.Nd.gi(void 0),t.Nd=void 0,"erroring"===t.vd&&(t.dd=void 0,void 0!==t.Dd&&(t.Dd.gi(),t.Dd=void 0)),t.vd="closed";var n=t.Td;void 0!==n&&Us(n)}(n)},function(t){!function(t,n){t.Nd.J(n),t.Nd=void 0,void 0!==t.Dd&&(t.Dd.J(n),t.Dd=void 0),hs(t,n)}(n,t)})}(t):function(t,n){var i=t.Ud;(function(t){t.Id=t.Ed.shift()})(i),Eo(t.Xd(n),function(){!function(t){t.Id.gi(void 0),t.Id=void 0}(i);var n=i.vd;if(Qo(t),!1===ds(i)&&"writable"===n){var r=Ns(t);ys(i,r)}As(t)},function(n){"writable"===i.vd&&Ts(t),function(t,n){t.Id.J(n),t.Id=void 0,hs(t,n)}(i,n)})}(t,i.chunk)}}else ls(n)}function Os(t,n){"writable"===t.Ud.vd&&Ds(t,n)}function Ns(t){return ks(t)<=0}function Ds(t,n){var i=t.Ud;Ts(t),vs(i,n)}function Cs(t){return new a("WritableStream.prototype."+t+" can only be used on a WritableStream")}function xs(t){return new a("WritableStreamDefaultWriter.prototype."+t+" can only be used on a WritableStreamDefaultWriter")}function Bs(t){return new a("Cannot "+t+" a stream using a released writer")}function Fs(t){t.Cc=bo(function(n,i){t.ld=n,t._d=i,t.xd="pending"})}function Ps(t,n){Fs(t),js(t,n)}function js(t,n){To(t.Cc),t._d(n),t.ld=void 0,t._d=void 0,t.xd="rejected"}function Us(t){t.ld(void 0),t.ld=void 0,t._d=void 0,t.xd="resolved"}function Ls(t){t.Ld=bo(function(n,i){t.Wd=n,t.Gd=i}),t.Md="pending"}function Ms(t,n){Ls(t),Ws(t,n)}function qs(t){Ls(t),Xs(t)}function Ws(t,n){To(t.Ld),t.Gd(n),t.Wd=void 0,t.Gd=void 0,t.Md="rejected"}function Xs(t){t.Wd(void 0),t.Wd=void 0,t.Gd=void 0,t.Md="fulfilled"}function Hs(t){if("object"!=typeof t||null===t)return!1;try{return"boolean"==typeof t.aborted}catch(t){return!1}}var Vs="undefined"!=typeof DOMException?DOMException:void 0;var Gs,zs=function(t){if("function"!=typeof t&&"object"!=typeof t)return!1;try{return new t,!0}catch(t){return!1}}(Vs)?Vs:((Gs=function(t,n){this.message=t||"",this.name=n||"Error",c.captureStackTrace&&c.captureStackTrace(this,this.constructor)}).prototype=h.create(c.prototype),h.defineProperty(Gs.prototype,"constructor",{value:Gs,writable:!0,configurable:!0}),Gs);function Ys(t,n,i,r,e,u){var o=Lo(t),s=us(n);t.md=!0;var f=!1,c=go(void 0);return bo(function(h,v){var l,d,w,y;if(void 0!==u){if(l=function(){var i=new zs("Aborted","AbortError"),u=[];!1===r&&u.push(function(){return"writable"===n.vd?cs(n,i):go(void 0)}),!1===e&&u.push(function(){return"readable"===t.vd?qf(t,i):go(void 0)}),m(function(){return E.all(u.map(function(t){return t()}))},!0,i)},!0===u.aborted)return void l();u.addEventListener("abort",l)}if(g(t,o.Cc,function(t){!1===r?m(function(){return cs(n,t)},!0,t):_(!0,t)}),g(n,s.Cc,function(n){!1===e?m(function(){return qf(t,n)},!0,n):_(!0,n)}),d=t,w=o.Cc,y=function(){!1===i?m(function(){return function(t){var n=t.Bd,i=n.vd;return!0===ds(n)||"closed"===i?go(void 0):"errored"===i?mo(n.dd):gs(t)}(s)}):_()},"closed"===d.vd?y():So(w,y),!0===ds(n)||"closed"===n.vd){var p=new a("the destination writable stream closed before all data could be piped to it");!1===e?m(function(){return qf(t,p)},!0,p):_(!0,p)}function b(){var t=c;return _o(c,function(){return t!==c?b():void 0})}function g(t,n,i){"errored"===t.vd?i(t.dd):Io(n,i)}function m(t,i,r){function e(){Eo(t(),function(){return S(i,r)},function(t){return S(!0,t)})}!0!==f&&(f=!0,"writable"===n.vd&&!1===ds(n)?So(b(),e):e())}function _(t,i){!0!==f&&(f=!0,"writable"===n.vd&&!1===ds(n)?So(b(),function(){return S(t,i)}):S(t,i))}function S(t,n){Es(s),Do(o),void 0!==u&&u.removeEventListener("abort",l),t?v(n):h(void 0)}To(bo(function(t,n){!function i(r){r?t():_o(!0===f?go(!0):_o(s.Ld,function(){return _o(Yo(o),function(t){return!0===t.done||(c=_o(Ss(s,t.value),void 0,to),!1)})}),i,n)}(!1)}))})}var Ks=function(){function t(){throw new a}return h.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===$s(this))throw sf("desiredSize");return ef(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===$s(this))throw sf("close");if(!1===uf(this))throw new a("The stream is not in a state that permits close");tf(this)},t.prototype.enqueue=function(t){if(!1===$s(this))throw sf("enqueue");if(!1===uf(this))throw new a("The stream is not in a state that permits enqueue");return nf(this,t)},t.prototype.error=function(t){if(!1===$s(this))throw sf("error");rf(this,t)},t.prototype[jo]=function(t){ns(this);var n=this.qd(t);return Qs(this),n},t.prototype[Uo]=function(){var t=this.jd;if(this.ei.length>0){var n=Qo(this);return!0===this.Yd&&0===this.ei.length?(Qs(this),Wf(t)):Js(this),go(Ao(n,!1,t.fd.od))}var i=Mo(t);return Js(this),i},t}();function $s(t){return!!ro(t)&&!!h.prototype.hasOwnProperty.call(t,"jd")}function Js(t){!1!==Zs(t)&&(!0!==t.Qd?(t.Qd=!0,Eo(t.Kd(),function(){t.Qd=!1,!0===t.Zd&&(t.Zd=!1,Js(t))},function(n){rf(t,n)})):t.Zd=!0)}function Zs(t){var n=t.jd;return!1!==uf(t)&&(!1!==t.Od&&(!0===Mf(n)&&Wo(n)>0||ef(t)>0))}function Qs(t){t.Kd=void 0,t.qd=void 0,t.Fd=void 0}function tf(t){var n=t.jd;t.Yd=!0,0===t.ei.length&&(Qs(t),Wf(n))}function nf(t,n){var i=t.jd;if(!0===Mf(i)&&Wo(i)>0)qo(i,n,!1);else{var r=void 0;try{r=t.Fd(n)}catch(n){throw rf(t,n),n}try{ts(t,n,r)}catch(n){throw rf(t,n),n}}Js(t)}function rf(t,n){var i=t.jd;"readable"===i.vd&&(ns(t),Qs(t),Xf(i,n))}function ef(t){var n=t.jd.vd;return"errored"===n?null:"closed"===n?0:t.Vd-t.bd}function uf(t){var n=t.jd.vd;return!1===t.Yd&&"readable"===n}function of(t,n,i,r,e,u,o){n.jd=t,n.ei=void 0,n.bd=void 0,ns(n),n.Od=!1,n.Yd=!1,n.Zd=!1,n.Qd=!1,n.Fd=o,n.Vd=u,n.Kd=r,n.qd=e,t.yd=n,Eo(go(i()),function(){n.Od=!0,Js(n)},function(t){rf(n,t)})}function sf(t){return new a("ReadableStreamDefaultController.prototype."+t+" can only be used on a ReadableStreamDefaultController")}var ff=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&v.floor(t)===t},cf=function(){function t(){throw new a("ReadableStreamBYOBRequest cannot be used directly")}return h.defineProperty(t.prototype,"view",{get:function(){if(!1===vf(this))throw Af("view");return this.Jd},enumerable:!0,configurable:!0}),t.prototype.respond=function(t){if(!1===vf(this))throw Af("respond");if(void 0===this.$d)throw new a("This BYOB request has been invalidated");this.Jd.buffer,function(t,n){if(!1===uo(n=Number(n)))throw new RangeError("bytesWritten must be a finite");Ef(t,n)}(this.$d,t)},t.prototype.respondWithNewView=function(t){if(!1===vf(this))throw Af("respond");if(void 0===this.$d)throw new a("This BYOB request has been invalidated");if(!ArrayBuffer.isView(t))throw new a("You can only respond with array buffer views");t.buffer,function(t,n){var i=t.il.peek();if(i.byteOffset+i.bytesFilled!==n.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(i.byteLength!==n.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");i.buffer=n.buffer,Ef(t,n.byteLength)}(this.$d,t)},t}(),af=function(){function t(){throw new a("ReadableByteStreamController constructor cannot be used directly")}return h.defineProperty(t.prototype,"byobRequest",{get:function(){if(!1===hf(this))throw Of("byobRequest");if(void 0===this.ul&&this.il.length>0){var t=this.il.peek(),n=new y(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),i=h.create(cf.prototype);!function(t,n,i){t.$d=n,t.Jd=i}(i,this,n),this.ul=i}return this.ul},enumerable:!0,configurable:!0}),h.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===hf(this))throw Of("desiredSize");return Tf(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===hf(this))throw Of("close");if(!0===this.Yd)throw new a("The stream has already been closed; do not close it again!");var t=this.ol.vd;if("readable"!==t)throw new a("The stream (in "+t+" state) is not in the readable state and cannot be closed");!function(t){var n=t.ol;if(t.bd>0)return void(t.Yd=!0);if(t.il.length>0){var i=t.il.peek();if(i.bytesFilled>0){var r=new a("Insufficient bytes to fill elements in the given buffer");throw Rf(t,r),r}}If(t),Wf(n)}(this)},t.prototype.enqueue=function(t){if(!1===hf(this))throw Of("enqueue");if(!0===this.Yd)throw new a("stream is closed or draining");var n=this.ol.vd;if("readable"!==n)throw new a("The stream (in "+n+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(t))throw new a("You can only enqueue array buffer views when using a ReadableByteStreamController");t.buffer,function(t,n){var i=t.ol,r=n.buffer,e=n.byteOffset,u=n.byteLength,o=ao(r);if(!0===Xo(i))if(0===Wo(i))yf(t,o,e,u);else{var s=new y(o,e,u);qo(i,s,!1)}else!0===Cf(i)?(yf(t,o,e,u),_f(t)):yf(t,o,e,u);lf(t)}(this,t)},t.prototype.error=function(t){if(!1===hf(this))throw Of("error");Rf(this,t)},t.prototype[jo]=function(t){this.il.length>0&&(this.il.peek().bytesFilled=0);ns(this);var n=this.qd(t);return If(this),n},t.prototype[Uo]=function(){var t=this.ol;if(this.bd>0){var n=this.ei.shift();this.bd-=n.byteLength,gf(this);var i=void 0;try{i=new y(n.buffer,n.byteOffset,n.byteLength)}catch(t){return mo(t)}return go(Ao(i,!1,t.fd.od))}var r=this.hl;if(void 0!==r){var e=void 0;try{e=new ArrayBuffer(r)}catch(t){return mo(t)}var u={buffer:e,byteOffset:0,byteLength:r,bytesFilled:0,elementSize:1,ctor:y,readerType:"default"};this.il.push(u)}var o=Mo(t);return lf(this),o},t}();function hf(t){return!!ro(t)&&!!h.prototype.hasOwnProperty.call(t,"ol")}function vf(t){return!!ro(t)&&!!h.prototype.hasOwnProperty.call(t,"$d")}function lf(t){!1!==function(t){var n=t.ol;if("readable"!==n.vd)return!1;if(!0===t.Yd)return!1;if(!1===t.Od)return!1;if(!0===Xo(n)&&Wo(n)>0)return!0;if(!0===Cf(n)&&Df(n)>0)return!0;if(Tf(t)>0)return!0;return!1}(t)&&(!0!==t.Qd?(t.Qd=!0,Eo(t.Kd(),function(){t.Qd=!1,!0===t.Zd&&(t.Zd=!1,lf(t))},function(n){Rf(t,n)})):t.Zd=!0)}function df(t,n){var i=!1;"closed"===t.vd&&(i=!0);var r=wf(n);"default"===n.readerType?qo(t,r,i):function(t,n,i){var r=t.fd;r.al.shift().gi(Ao(n,i,r.od))}(t,r,i)}function wf(t){var n=t.bytesFilled,i=t.elementSize;return new t.ctor(t.buffer,t.byteOffset,n/i)}function yf(t,n,i,r){t.ei.push({buffer:n,byteOffset:i,byteLength:r}),t.bd+=r}function pf(t,n){var i=n.elementSize,r=n.bytesFilled-n.bytesFilled%i,e=v.min(t.bd,n.byteLength-n.bytesFilled),u=n.bytesFilled+e,o=u-u%i,s=e,f=!1;o>r&&(s=o-n.bytesFilled,f=!0);for(var c,a,h,l,d,w=t.ei;s>0;){var p=w.peek(),b=v.min(s,p.byteLength),g=n.byteOffset+n.bytesFilled;c=n.buffer,a=g,h=p.buffer,l=p.byteOffset,d=b,new y(c).set(new y(h,l,d),a),p.byteLength===b?w.shift():(p.byteOffset+=b,p.byteLength-=b),t.bd-=b,bf(t,b,n),s-=b}return f}function bf(t,n,i){mf(t),i.bytesFilled+=n}function gf(t){0===t.bd&&!0===t.Yd?(If(t),Wf(t.ol)):lf(t)}function mf(t){void 0!==t.ul&&(t.ul.$d=void 0,t.ul.Jd=void 0,t.ul=void 0)}function _f(t){for(;t.il.length>0;){if(0===t.bd)return;var n=t.il.peek();!0===pf(t,n)&&(Sf(t),df(t.ol,n))}}function Ef(t,n){var i=t.il.peek();if("closed"===t.ol.vd){if(0!==n)throw new a("bytesWritten must be 0 when calling respond() on a closed stream");!function(t,n){n.buffer=ao(n.buffer);var i=t.ol;if(!0===Cf(i))for(;Df(i)>0;)df(i,Sf(t))}(t,i)}else!function(t,n,i){if(i.bytesFilled+n>i.byteLength)throw new RangeError("bytesWritten out of range");if(bf(t,n,i),!(i.bytesFilled<i.elementSize)){Sf(t);var r=i.bytesFilled%i.elementSize;if(r>0){var e=i.byteOffset+i.bytesFilled,u=i.buffer.slice(e-r,e);yf(t,u,0,u.byteLength)}i.buffer=ao(i.buffer),i.bytesFilled-=r,df(t.ol,i),_f(t)}}(t,n,i);lf(t)}function Sf(t){var n=t.il.shift();return mf(t),n}function If(t){t.Kd=void 0,t.qd=void 0}function Rf(t,n){var i=t.ol;"readable"===i.vd&&(!function(t){mf(t),t.il=new ko}(t),ns(t),If(t),Xf(i,n))}function Tf(t){var n=t.ol.vd;return"errored"===n?null:"closed"===n?0:t.Vd-t.bd}function kf(t,n,i){var r=h.create(af.prototype);var e=so(n,"pull",0,[r]),u=so(n,"cancel",1,[]),o=n.autoAllocateChunkSize;if(void 0!==o&&(o=Number(o),!1===ff(o)||o<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");!function(t,n,i,r,e,u,o){n.ol=t,n.Zd=!1,n.Qd=!1,n.ul=void 0,n.ei=n.bd=void 0,ns(n),n.Yd=!1,n.Od=!1,n.Vd=ho(u),n.Kd=r,n.qd=e,n.hl=o,n.il=new ko,t.yd=n,Eo(go(i()),function(){n.Od=!0,lf(n)},function(t){Rf(n,t)})}(t,r,function(){return fo(n,"start",[r])},e,u,i,o)}function Af(t){return new a("ReadableStreamBYOBRequest.prototype."+t+" can only be used on a ReadableStreamBYOBRequest")}function Of(t){return new a("ReadableByteStreamController.prototype."+t+" can only be used on a ReadableByteStreamController")}function Nf(t){return bo(function(n,i){var r={gi:n,J:i};t.fd.al.push(r)})}function Df(t){return t.fd.al.length}function Cf(t){var n=t.fd;return void 0!==n&&!!Bf(n)}var xf=function(){function t(t){if(!Lf(t))throw new a("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===hf(t.yd))throw new a("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(Mf(t))throw new a("This stream has already been locked for exclusive reading by another reader");Oo(this,t),this.al=new ko}return h.defineProperty(t.prototype,"closed",{get:function(){return Bf(this)?this.Cc:mo(Ff("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return Bf(this)?void 0===this.hd?mo(Co("cancel")):No(this,t):mo(Ff("cancel"))},t.prototype.read=function(t){return Bf(this)?void 0===this.hd?mo(Co("read from")):ArrayBuffer.isView(t)?(t.buffer,0===t.byteLength?mo(new a("view must have non-zero byteLength")):function(t,n){var i=t.hd;if(i.md=!0,"errored"===i.vd)return mo(i.dd);return function(t,n){var i=t.ol,r=1;n.constructor!==DataView&&(r=n.constructor.BYTES_PER_ELEMENT);var e=n.constructor,u={buffer:ao(n.buffer),byteOffset:n.byteOffset,byteLength:n.byteLength,bytesFilled:0,elementSize:r,ctor:e,readerType:"byob"};if(t.il.length>0)return t.il.push(u),Nf(i);if("closed"===i.vd)return go(Ao(new e(u.buffer,u.byteOffset,0),!0,i.fd.od));if(t.bd>0){if(!0===pf(t,u)){var o=wf(u);return gf(t),go(Ao(o,!1,i.fd.od))}if(!0===t.Yd){var s=new a("Insufficient bytes to fill elements in the given buffer");return Rf(t,s),mo(s)}}t.il.push(u);var f=Nf(i);return lf(t),f}(i.yd,n)}(this,t)):mo(new a("view must be an array buffer view")):mo(Ff("read"))},t.prototype.releaseLock=function(){if(!Bf(this))throw Ff("releaseLock");if(void 0!==this.hd){if(this.al.length>0)throw new a("Tried to release a reader lock when that reader has pending read() calls un-settled");Do(this)}},t}();function Bf(t){return!!ro(t)&&!!h.prototype.hasOwnProperty.call(t,"al")}function Ff(t){return new a("ReadableStreamBYOBReader.prototype."+t+" can only be used on a ReadableStreamBYOBReader")}var Pf=function(){function t(t,n){void 0===t&&(t={}),void 0===n&&(n={}),Uf(this);var i=n.size,r=n.highWaterMark,e=t.type;if("bytes"===String(e)){if(void 0!==i)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===r&&(r=0),kf(this,t,r=ho(r))}else{if(void 0!==e)throw new RangeError("Invalid type is specified");var u=vo(i);void 0===r&&(r=1),function(t,n,i,r){var e=h.create(Ks.prototype),u=so(n,"pull",0,[e]),o=so(n,"cancel",1,[]);of(t,e,function(){return fo(n,"start",[e])},u,o,i,r)}(this,t,r=ho(r),u)}}return h.defineProperty(t.prototype,"locked",{get:function(){if(!1===Lf(this))throw Hf("locked");return Mf(this)},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return!1===Lf(this)?mo(Hf("cancel")):!0===Mf(this)?mo(new a("Cannot cancel a stream that already has a reader")):qf(this,t)},t.prototype.getReader=function(t){var n=(void 0===t?{}:t).mode;if(!1===Lf(this))throw Hf("getReader");if(void 0===n)return Lo(this,!0);if("byob"===(n=String(n)))return function(t,n){void 0===n&&(n=!1);var i=new xf(t);return i.od=n,i}(this,!0);throw new RangeError("Invalid mode is specified")},t.prototype.pipeThrough=function(t,n){var i=t.writable,r=t.readable,e=void 0===n?{}:n,u=e.preventClose,o=e.preventAbort,s=e.preventCancel,f=e.signal;if(!1===Lf(this))throw Hf("pipeThrough");if(!1===ss(i))throw new a("writable argument to pipeThrough must be a WritableStream");if(!1===Lf(r))throw new a("readable argument to pipeThrough must be a ReadableStream");if(u=Boolean(u),o=Boolean(o),s=Boolean(s),void 0!==f&&!Hs(f))throw new a("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===Mf(this))throw new a("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===fs(i))throw new a("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return To(Ys(this,i,u,o,s,f)),r},t.prototype.pipeTo=function(t,n){var i=void 0===n?{}:n,r=i.preventClose,e=i.preventAbort,u=i.preventCancel,o=i.signal;return!1===Lf(this)?mo(Hf("pipeTo")):!1===ss(t)?mo(new a("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(r=Boolean(r),e=Boolean(e),u=Boolean(u),void 0===o||Hs(o)?!0===Mf(this)?mo(new a("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===fs(t)?mo(new a("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Ys(this,t,r,e,u,o):mo(new a("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},t.prototype.tee=function(){if(!1===Lf(this))throw Hf("tee");var t=function(t,n){var i,r,e,u,o,s=Lo(t),f=!1,c=!1,a=!1,h=bo(function(t){o=t});function v(){return!0===f?go(void 0):(f=!0,To(Ro(Yo(s),function(t){if(f=!1,!0===t.done)return!1===c&&tf(e.yd),void(!1===a&&tf(u.yd));var n=t.value,i=n,r=n;!1===c&&nf(e.yd,i),!1===a&&nf(u.yd,r)})),go(void 0))}function l(){}return e=jf(l,v,function(n){if(c=!0,i=n,!0===a){var e=eo([i,r]),u=qf(t,e);o(u)}return h}),u=jf(l,v,function(n){if(a=!0,r=n,!0===c){var e=eo([i,r]),u=qf(t,e);o(u)}return h}),Io(s.Cc,function(t){rf(e.yd,t),rf(u.yd,t)}),[e,u]}(this);return eo(t)},t.prototype.getIterator=function(t){var n=(void 0===t?{}:t).preventCancel,i=void 0!==n&&n;if(!1===Lf(this))throw Hf("getIterator");return function(t,n){void 0===n&&(n=!1);var i=Lo(t),r=h.create($o);return r.kd=i,r.pd=Boolean(n),r}(this,i)},t}();function jf(t,n,i,r,e){void 0===r&&(r=1),void 0===e&&(e=function(){return 1});var u=h.create(Pf.prototype);return Uf(u),of(u,h.create(Ks.prototype),t,n,i,r,e),u}function Uf(t){t.vd="readable",t.fd=void 0,t.dd=void 0,t.md=!1}function Lf(t){return!!ro(t)&&!!h.prototype.hasOwnProperty.call(t,"yd")}function Mf(t){return void 0!==t.fd}function qf(t,n){return t.md=!0,"closed"===t.vd?go(void 0):"errored"===t.vd?mo(t.dd):(Wf(t),Ro(t.yd[jo](n),to))}function Wf(t){t.vd="closed";var n=t.fd;void 0!==n&&(zo(n)&&(n.wd.forEach(function(t){t.gi(Ao(void 0,!0,n.od))}),n.wd=new ko),Po(n))}function Xf(t,n){t.vd="errored",t.dd=n;var i=t.fd;void 0!==i&&(zo(i)?(i.wd.forEach(function(t){t.J(n)}),i.wd=new ko):(i.al.forEach(function(t){t.J(n)}),i.al=new ko),Fo(i,n))}function Hf(t){return new a("ReadableStream.prototype."+t+" can only be used on a ReadableStream")}"symbol"==typeof Qu.asyncIterator&&h.defineProperty(Pf.prototype,Qu.asyncIterator,{value:Pf.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var Vf=function(){function t(t,n,i){void 0===t&&(t={}),void 0===n&&(n={}),void 0===i&&(i={});var r=n.size,e=n.highWaterMark,u=i.size,o=i.highWaterMark;if(void 0!==t.writableType)throw new RangeError("Invalid writable type specified");var s=vo(r);if(void 0===e&&(e=1),e=ho(e),void 0!==t.readableType)throw new RangeError("Invalid readable type specified");var f,c=vo(u);void 0===o&&(o=0),o=ho(o),function(t,n,i,r,e,u){function o(){return n}t.cl=function(t,n,i,r,e,u){void 0===e&&(e=1),void 0===u&&(u=function(){return 1});var o=h.create(es.prototype);return os(o),Rs(o,h.create(Is.prototype),t,n,i,r,e,u),o}(o,function(n){return function(t,n){var i=t.fl;if(!0===t.Cd){var r=t.vl;return Ro(r,function(){var r=t.cl,e=r.vd;if("erroring"===e)throw r.dd;return nc(i,n)})}return nc(i,n)}(t,n)},function(){return function(t){var n=t.dl,i=t.fl,r=i.ll();return Qf(i),Ro(r,function(){if("errored"===n.vd)throw n.dd;var t=n.yd;!0===uf(t)&&tf(t)},function(i){throw zf(t,i),n.dd})}(t)},function(n){return function(t,n){return zf(t,n),go(void 0)}(t,n)},i,r),t.dl=jf(o,function(){return function(t){return Kf(t,!1),t.vl}(t)},function(n){return Yf(t,n),go(void 0)},e,u),t.Cd=void 0,t.vl=void 0,t._l=void 0,Kf(t,!0),t.fl=void 0}(this,bo(function(t){f=t}),e,s,o,c),function(t,n){var i=h.create(Jf.prototype),r=function(t){try{return tc(i,t),go(void 0)}catch(t){return mo(t)}},e=n.transform;if(void 0!==e){if("function"!=typeof e)throw new a("transform is not a method");r=function(t){return co(e,n,[t,i])}}var u=so(n,"flush",0,[i]);!function(t,n,i,r){n.wl=t,t.fl=n,n.yl=i,n.ll=r}(t,i,r,u)}(this,t);var v=fo(t,"start",[this.fl]);f(v)}return h.defineProperty(t.prototype,"readable",{get:function(){if(!1===Gf(this))throw rc("readable");return this.dl},enumerable:!0,configurable:!0}),h.defineProperty(t.prototype,"writable",{get:function(){if(!1===Gf(this))throw rc("writable");return this.cl},enumerable:!0,configurable:!0}),t}();function Gf(t){return!!ro(t)&&!!h.prototype.hasOwnProperty.call(t,"fl")}function zf(t,n){rf(t.dl.yd,n),Yf(t,n)}function Yf(t,n){Qf(t.fl),Os(t.cl.Sd,n),!0===t.Cd&&Kf(t,!1)}function Kf(t,n){void 0!==t.vl&&t._l(),t.vl=bo(function(n){t._l=n}),t.Cd=n}var $f,Jf=function(){function t(){throw new a("TransformStreamDefaultController instances cannot be created directly")}return h.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===Zf(this))throw ic("desiredSize");return ef(this.wl.dl.yd)},enumerable:!0,configurable:!0}),t.prototype.enqueue=function(t){if(!1===Zf(this))throw ic("enqueue");tc(this,t)},t.prototype.error=function(t){if(!1===Zf(this))throw ic("error");var n;n=t,zf(this.wl,n)},t.prototype.terminate=function(){if(!1===Zf(this))throw ic("terminate");!function(t){var n=t.wl,i=n.dl.yd;!0===uf(i)&&tf(i);var r=new a("TransformStream terminated");Yf(n,r)}(this)},t}();function Zf(t){return!!ro(t)&&!!h.prototype.hasOwnProperty.call(t,"wl")}function Qf(t){t.yl=void 0,t.ll=void 0}function tc(t,n){var i=t.wl,r=i.dl.yd;if(!1===uf(r))throw new a("Readable side is not in a state that permits enqueue");try{nf(r,n)}catch(t){throw Yf(i,t),i.dl.dd}(function(t){return!0!==Zs(t)})(r)!==i.Cd&&Kf(i,!0)}function nc(t,n){return Ro(t.yl(n),void 0,function(n){throw zf(t.wl,n),n})}function ic(t){return new a("TransformStreamDefaultController.prototype."+t+" can only be used on a TransformStreamDefaultController")}function rc(t){return new a("TransformStream.prototype."+t+" can only be used on a TransformStream")}function ec(t){return n=[t],new Pf({start:function(t){for(var i=0;i<n.length;i++){var r=n[i];t.enqueue(r)}t.close()}});var n}function uc(t){return ec(new y(t))}function oc(t,n){return function(t,n){var i=n,r=t.getReader(),e=new lu,u=function(){o();var t=new Qt;r.cancel(t).catch(D),e.Ec(t)},o=function(){i&&(i.Ea(u),i=void 0)};i&&(i.va?u():i.Sa(u));var s=[];return E.resolve(r.read()).then(function t(n){return n.done?(o(),E.resolve(s)):(s.push(n.value),E.resolve(r.read()).then(t))}).then(function(t){o(),e.Sc(t)},function(t){o(),e.Ec(t)}),e.Tc}(t,n).then(function(t){return Dn(t).buffer})}function sc(t,n){var i=n,r=new Vf,e=r.readable,u=r.writable,o=u.getWriter(),s=function(){i&&i.Da()};return o.closed.then(s,s),t.then(function(t){return i=void 0,o.releaseLock(),t.pipeTo(u).catch(D)},function(t){return i=void 0,o.releaseLock(),u.abort(t).catch(D)}),e}function fc(t){return En(new y(t))}function cc(t){return Sn(t).buffer}!function(t){t[t.Qv=0]="Qv",t[t.Al=1]="Al"}($f||($f={}));var ac="content-type",hc="text/plain;charset=UTF-8",vc=function(){function t(){}var n=t.prototype;return n.Tl=function(t){return this.Sl(t).then(JSON.parse)},n.El=function(t,n){switch(t){case Ku.qv:return this.Il(n);case Ku.Yv:return this.Tl(n);case Ku.Qv:return this.Rl();case Ku.mu:return this.Sl(n);default:throw new a}},t}();function lc(t,n,i){if(t instanceof vc)return t;if(t instanceof Pf)return function(t,n){return new wc({jh:$f.Qv,Rl:t,Nl:dc(n)})}(t,i);var r=dc(i),e=E.resolve(t).then(function(t){return function(t,n){if(t){if("string"==typeof t)return{jh:Ku.mu,Dl:t,Nl:n||hc};if(t instanceof ArrayBuffer||Nn(t))return{jh:Ku.qv,Dl:Ec(t),Nl:n};if(T(i=t)&&i.constructor&&i.constructor===h||R(t))return{jh:Ku.Yv,Dl:t,Nl:n};throw new a("Unsupported BodyInit type")}return{jh:Ku.mu,Dl:null,Nl:n};var i}(t,r)});return new wc({jh:$f.Al,Tc:e,Cl:n})}function dc(t){return(t.get(ac)||"").toLowerCase()}var wc=function(t){function n(n){var i;return(i=t.call(this)||this).Pl=!1,i.Ol=void 0,i.Bl=new lu,i.Bl.Tc.catch(D),i.Ll(n),i}rt(n,t);var i=n.prototype;return i.xl=function(){return this.Bl.Tc},i.Sl=function(t){return this.Ml(yc,t)},i.Tl=function(t){return this.Ml(bc,t)},i.Il=function(t){return this.Ml(mc,t)},i.Rl=function(){return this.Fl((t=this.Ol).jh===$f.Qv?t.Rl:sc(t.Tc.then(_c).then(uc),t.Cl));var t},i.Ml=function(t,n){if(this.Pl)return E.reject(new a("Already used"));this.Pl=!0;var i=t(this.Ol,n);return this.Bl.Sc(i.then(D)),i},i.Fl=function(t){if(this.Pl)throw new a("Already used");if(t.locked)throw new a("Body stream is locked");this.Pl=!0;var n=new Vf,i=E.resolve(t.pipeTo(n.writable));return this.Bl.Sc(i),n.readable},i.Ll=function(t){this.Ol=t,t.jh===$f.Al&&t.Tc.catch(D)},i.Ul=function(){if(this.Pl)throw new a("Already used");var t=function(t){if(t.jh===$f.Qv){var n=t.Rl.tee(),i=n[0],r=n[1];return[{jh:t.jh,Rl:i,Nl:t.Nl},{jh:t.jh,Rl:r,Nl:t.Nl}]}var e=t.Cl.Pa(),u=e[0],o=e[1];return[{jh:t.jh,Tc:t.Tc,Cl:u},{jh:t.jh,Tc:t.Tc,Cl:o}]}(this.Ol),i=t[0],r=t[1];return this.Ll(i),new n(r)},P(n,[{key:"Hl",get:function(){return this.Pl}}]),n}(vc);function yc(t,n){return t.jh===$f.Qv?oc(t.Rl,n).then(fc):(n&&t.Cl.Ca(n),nn(t.Tc.then(pc),t.Cl))}function pc(t){switch(t.jh){case Ku.mu:return E.resolve(t.Dl||"");case Ku.qv:return E.resolve(t.Dl).then(fc);case Ku.Yv:return E.resolve(t.Dl).then(JSON.stringify)}}function bc(t,n){return t.jh===$f.Qv?yc(t,n).then(JSON.parse):(n&&t.Cl.Ca(n),nn(t.Tc.then(gc),t.Cl))}function gc(t){return t.jh===Ku.Yv?E.resolve(t.Dl):pc(t).then(JSON.parse)}function mc(t,n){return t.jh===$f.Qv?oc(t.Rl,n):(n&&t.Cl.Ca(n),nn(t.Tc.then(_c),t.Cl))}function _c(t){switch(t.jh){case Ku.qv:return E.resolve(t.Dl);case Ku.mu:case Ku.Yv:return pc(t).then(cc)}}function Ec(t){return t instanceof ArrayBuffer?t:kn(Rn(t)).buffer}function Sc(t){return t.Vl>=200&&t.Vl<=299||304===t.Vl}var Ic,Rc,Tc,kc,Ac=function(t){function n(n,i){var r,e,u,o,s,f;i?(e=i.Xl,u=i.zl,o=i.Vl,s=i.Wl,f=i.Gl):(e=[],u=Ku.mu,o=200,s="OK",f=!1);var c=n.ql,a=new $u(n.Xl||e),h=n.zl||u,v=n.jl||(i&&i.ql===c?i.jl:c.Yl),l=i?i.Ql:null,d=lc(void 0!==n.Zu?n.Zu:l,n.Cl||new Zt,a);return(r=t.call(this,d)||this).Xl=void 0,r.ql=void 0,r.jl=void 0,r.zl=void 0,r.Vl=void 0,r.Wl=void 0,r.Gl=void 0,r.Xl=a,r.ql=c,r.jl=v,r.zl=h,r.Vl=void 0!==n.Vl?n.Vl:o,r.Wl=void 0!==n.Wl?String(n.Wl):s,r.Gl=n.Gl||f,r}rt(n,t);var i=n.prototype;return i.Zu=function(t){return this.El(this.zl,t)},i.kc=function(){return new n({Zu:this.Ul(),ql:this.ql},this)},n}(function(t){function n(n){var i;return(i=t.call(this)||this).Ql=void 0,i.Ql=n,i}rt(n,t);var i=n.prototype;return i.xl=function(){return this.Ql.xl()},i.Sl=function(t){return this.Ql.Sl(t)},i.Tl=function(t){return this.Ql.Tl(t)},i.Il=function(t){return this.Ql.Il(t)},i.Rl=function(){return this.Ql.Rl()},i.Ul=function(){return this.Ql.Ul()},P(n,[{key:"Hl",get:function(){return this.Ql.Hl}}]),n}(vc));!function(t){t.DELETE="DELETE",t.GET="GET",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t.POST="POST",t.PUT="PUT"}(Ic||(Ic={})),function(t){t.Kl="",t.Zl="manifest",t.Jl="segment",t.$l="content-protection"}(Rc||(Rc={})),function(t){t.Kl="",t.t_="initialization-segment",t.n_="fairplay-license",t.i_="fairplay-certificate",t.r_="widevine-license",t.e_="widevine-certificate",t.s_="playready-license",t.u_="clearkey-license",t.o_="aes128-key"}(Tc||(Tc={})),function(t){t.Kl="",t.h_="audio",t.a_="video",t.mu="text",t.c_="image"}(kc||(kc={}));var Oc=function(t,n){this.Dl=void 0,this.Xl=void 0,this.f_=void 0,this.zl=void 0,this.v_=void 0,this.Oa=void 0,this.jh=void 0,this.d_=void 0,this.l_=void 0,this.Yl=void 0,this.__=void 0,this.g_=void 0;var i,r,e,u,o,s,f,c,a,h,v,l=t.Yl;n?(i=n.Dl,r=n.Xl,e=n.f_,u=n.zl,o=n.v_,s=n.Oa,f=n.jh,c=n.d_,a=n.l_,h=n.__,v=n.g_):(i=null,r={},e=Ic.GET,u=Ku.mu,o=0,f=Rc.Kl,c=Tc.Kl,a=kc.Kl,h=!1),this.Yl=l,this.Dl=t.Dl||i,this.Xl=new $u(t.Xl||r),this.f_=t.f_||e,this.zl=t.zl||u,this.v_=void 0!==t.v_?Number(t.v_)||0:o,this.Oa=t.Oa||s||(new Zt).Oa,this.jh=t.jh||f,this.d_=t.d_||c,this.l_=t.l_||a,this.__=void 0!==t.__?Boolean(t.__):h,this.g_=t.g_||v},Nc=function(){function t(){}var n=t.prototype;return n.ql=function(t){var n=function(t){return new Ac({Zu:null,Xl:{},ql:t,jl:t.Yl,zl:t.zl,Vl:0,Wl:Yu.Sv})}(new Oc(t));return E.resolve(n)},n.w_=function(t){},n.m_=function(){},t}();var Dc,Cc=function(){function t(t,n){void 0===n&&(n=!0),this.y_=void 0,this.k_=void 0,this.y_=t,this.k_=n}var n=t.prototype;return n.ql=function(t){var n=this.p_(t);return this.y_.ql(n)},n.w_=function(t){return this.y_.w_(this.b_(t))},n.p_=function(n){var i=new Oc(n);if(!this.k_){var r=t.A_(i.Yl);i=new Oc({Yl:r},i)}return i},n.b_=function(n){var i=n.Yl;return this.k_||(i=t.A_(i)),{Yl:i,Dl:n.Dl}},t.A_=function(t){return m.Rh&&fn(t,"http://")?t.replace(":","s:"):t},n.m_=function(){this.y_.m_()},P(t,null,[{key:"T_",get:function(){return t.S_||(t.S_=new t(new Nc)),t.S_}}]),t}();Cc.S_=void 0,function(t){t.E_="HttpOpenError",t.I_="HttpResponseError",t.R_="HttpTimeoutError"}(Dc||(Dc={}));var xc=function(t){function n(n,i,r){var e;return(e=t.call(this,i,r)||this).N_=void 0,e.N_=n,e}return rt(n,t),P(n,[{key:"ql",get:function(){return this.N_}}]),n}($t);var Bc=function(t){function n(n,i){return t.call(this,n,"Error while opening "+n.Yl+". Invalid URL.",i)||this}return rt(n,t),P(n,[{key:"name",get:function(){return Dc.E_}}]),n}(xc);var Fc=function(t){function n(n,i,r){var e;return(e=t.call(this,n.ql,null!=r?r:function(t){return"Error while loading "+t.ql.Yl+", status code "+t.Vl}(n),i)||this).D_=void 0,e.D_=n,e}return rt(n,t),P(n,[{key:"name",get:function(){return Dc.I_}},{key:"C_",get:function(){return this.D_}}]),n}(xc);var Pc=function(t){function n(n,i){return t.call(this,n,function(t){return"Request for "+t.Yl+" timed out after "+t.v_+" seconds."}(n),i)||this}return rt(n,t),P(n,[{key:"name",get:function(){return Dc.R_}}]),n}(xc),jc=function(t,n){return(jc=h.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])})(t,n)};function Uc(t,n){function i(){this.constructor=t}jc(t,n),t.prototype=null===n?h.create(n):(i.prototype=n.prototype,new i)}var Lc="object"==typeof i?i:"object"==typeof t?t:"object"==typeof global?global:null;var Mc=function(){var t=Lc.Blob;if(t)try{return new t,function(t,n){return new Lc.Blob(t,n)}}catch(t){}var n,i=Lc.BlobBuilder||Lc.WebKitBlobBuilder||Lc.MozBlobBuilder||Lc.MSBlobBuilder;return i?(n=i,function(t,i){var r=new n;if(t)for(var e=0,u=t;e<u.length;e++){var o=u[e];r.append(o)}return r.getBlob(i&&i.type||"")}):null}(),qc="function"==typeof Pf?Pf:void 0;function Wc(t){return t&&"function"==typeof t.getReader}function Xc(t){if("function"!=typeof t)return!1;try{var n=!1,i=new t({start:function(){n=!0}});return!!n&&Wc(i)}catch(t){return!1}}var Hc=function(){function t(t,n){this.fd=t,this.P_=n}return t.prototype.pull=function(t){var n=this;return this.fd.read().then(function(i){n.P_&&n.P_(i),i.done?t.close():t.enqueue(i.value)})},t.prototype.cancel=function(t){return this.fd.cancel(t)},t}();function Vc(t,n){return n.constructor===t?n:new t(new Hc(n.getReader()),{highWaterMark:0})}var Gc=function(){function t(t,n){this.O_=t,this.Ot=n}return t.prototype.pull=function(t){return this.O_().then(function(n){t.enqueue(new y(n)),t.close()})},t.prototype.cancel=function(t){this.Ot&&this.Ot(t)},t}();function zc(t,n,i){return new t(new Gc(n,i),{highWaterMark:0})}var Yc={searchParams:"URLSearchParams"in Lc,iterable:"Symbol"in Lc&&"iterator"in Symbol,blob:"FileReader"in Lc&&!!Mc,formData:"FormData"in Lc,arrayBuffer:"ArrayBuffer"in Lc,stream:Xc(qc),streamRequest:"Request"in Lc&&"body"in Lc.Request.prototype,streamResponse:"Response"in Lc&&"body"in Lc.Response.prototype,abort:"AbortController"in Lc&&"Request"in Lc&&"signal"in Lc.Request.prototype,encoding:"TextEncoder"in Lc&&"TextDecoder"in Lc,url:"URL"in Lc&&function(t){try{return new Lc.URL(t).toString()===t}catch(t){return!1}}("http://example.com/"),firefox:"navigator"in Lc&&/Firefox\//.test(Lc.navigator.userAgent)};function Kc(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new a("Invalid character in header field name");return t}function $c(t){return"string"!=typeof t&&(t=String(t)),t}function Jc(t){var n={next:function(){var n=t.shift();return{done:void 0===n,value:n}}};return Yc.iterable&&(n[Symbol.iterator]=function(){return n}),n}var Zc=function(){function t(t){var n=this;this.Hh={};var i,r=function(t,i){Array.isArray(t)&&2===t.length?n.append(t[0],t[1]):n.append(i,t)};(i=t)&&"function"==typeof i.forEach?t.forEach(r):!function(t){return Yc.iterable&&t&&t[Symbol.iterator]}(t)?t&&h.getOwnPropertyNames(t).forEach(function(i){n.append(i,t[i])}):Array.from(t).forEach(r)}return t.prototype.append=function(t,n){t=Kc(t),n=$c(n);var i=t.toLowerCase();if(this.Hh.hasOwnProperty(i)){var r=this.Hh[i],e=r[1];r[1]=e?e+", "+n:n}else this.Hh[i]=[t,n]},t.prototype.delete=function(t){var n=Kc(t).toLowerCase();delete this.Hh[n]},t.prototype.get=function(t){var n=Kc(t).toLowerCase();return this.Hh.hasOwnProperty(n)?this.Hh[n][1]:null},t.prototype.has=function(t){var n=Kc(t).toLowerCase();return this.Hh.hasOwnProperty(n)},t.prototype.set=function(t,n){var i=(t=Kc(t)).toLowerCase();this.Hh[i]=[t,$c(n)]},t.prototype.forEach=function(t,n){for(var i in this.Hh)this.Hh.hasOwnProperty(i)&&t.call(n,this.Hh[i][1],i,this)},t.prototype.keys=function(){var t=[];return this.forEach(function(n,i){t.push(i)}),Jc(t)},t.prototype.values=function(){var t=[];return this.forEach(function(n){t.push(n)}),Jc(t)},t.prototype.entries=function(){var t=[];return this.forEach(function(n,i){t.push([i,n])}),Jc(t)},t.prototype.asList=function(){var t=[];for(var n in this.Hh)if(this.Hh.hasOwnProperty(n)){var i=this.Hh[n],r=i[0],e=i[1];t.push([r,e])}return t},t}();function Qc(){}Yc.iterable&&(Zc.prototype[Symbol.iterator]=Zc.prototype.entries);var ta,na,ia,ra=v.min,ea=String.fromCharCode,ua=16384;function oa(t){for(var n=[],i=0,r=t;i<r.length;i++){var e=r[i];e>65535&&(e-=65536,n.push(e>>>10&1023|55296),e=56320|1023&e),n.push(e)}return function(t){for(var n=t.length,i=[],r=0;r<n;r+=ua){var e=ra(r+ua,n);i.push(ea.apply(null,t.slice(r,e)))}return i.join("")}(n)}function sa(t){if(t>=55296&&t<=57343)throw new c("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function fa(t,n){return t>>n&63|128}function ca(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(sa(t),n.push(t>>12&15|224),n.push(fa(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(fa(t,12)),n.push(fa(t,6))),n.push(63&t|128)):n.push(t)}function aa(){if(ia>=na)throw new c("Invalid byte index");var t=255&ta[ia];if(ia++,128==(192&t))return 63&t;throw new c("Invalid continuation byte")}function ha(){var t,n;if(ia>na)throw new c("Invalid byte index");if(ia===na)return!1;if(t=255&ta[ia],ia++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|aa())>=128)return n;throw new c("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|aa()<<6|aa())>=2048)return sa(n),n;throw new c("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|aa()<<12|aa()<<6|aa())>=65536&&n<=1114111)return n;throw new c("Invalid UTF-8 detected")}var va=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"];function la(t){return t&&URLSearchParams.prototype.isPrototypeOf(t)}function da(t){return t&&ArrayBuffer.prototype.isPrototypeOf(t)}function wa(t){return t&&DataView.prototype.isPrototypeOf(t)}var ya,pa=ArrayBuffer.isView||function(t){return t&&(va.indexOf(h.prototype.toString.call(t))>-1||wa(t))};function ba(t){if(t.bodyUsed)return E.reject(new a("Already used"));t.bodyUsed=!0}function ga(t){return new E(function(n,i){t.onload=function(){n(t.result)},t.onerror=function(){i(t.error)}})}function ma(t){return Yc.encoding?new Lc.TextDecoder("utf-8").decode(new y(t)):oa(function(t){na=(ta=t).length,ia=0;for(var n,i=[];!1!==(n=ha());)i.push(n);return i}(new y(t)))}function _a(t){return Yc.encoding?(new Lc.TextEncoder).encode(t).buffer:new y(function(t){for(var n=[],i=0,r=t;i<r.length;i++)ca(r[i],n);return n}(function(t){for(var n=[],i=0,r=t.length;i<r;){var e=t.charCodeAt(i++);if(e>=55296&&e<=56319&&i<r){var u=t.charCodeAt(i++);56320==(64512&u)?n.push(((1023&e)<<10)+(1023&u)+65536):(n.push(e),i--)}else n.push(e)}return n}(t))).buffer}function Ea(t){var n=t.getReader(),i=[],r=function(t){var e=t.done,u=t.value;return e?E.resolve(i):(i.push(u),n.read().then(r))};return n.read().then(r)}function Sa(t){return Ea(t).then(function(t){return function(t){for(var n=0,i=0,r=t;i<r.length;i++)n+=(f=r[i]).byteLength;for(var e=new y(n),u=0,o=0,s=t;o<s.length;o++){var f=s[o];e.set(f,u),u+=f.byteLength}return e}(t).buffer})}function Ia(t){return t.slice?t.slice(0):Ra(new y(t))}function Ra(t){if(t.slice)return t.slice(0).buffer;var n=new y(t.byteLength);return n.set(new y(t.buffer,t.byteOffset,t.byteLength)),n.buffer}function Ta(t){var n=new FormData;return t.trim().split("&").forEach(function(t){if(t){var i=t.split("="),r=i.shift().replace(/\+/g," "),e=i.join("=").replace(/\+/g," ");n.append(decodeURIComponent(r),decodeURIComponent(e))}}),n}function ka(t){var n=t;if(n.bodyUsed)throw new a("Already used");if(n.B_===ya.L_){if(!n.x_.tee)throw new c("could not clone ReadableStream body");var i=n.x_.tee(),r=i[0],e=i[1];return n.body=r,n.x_=r,n.M_=r,e}return n.B_===ya.qv?Ia(n.x_):n.B_===ya.Al?n.x_.then(ka):n.M_}!function(t){t[t.mu=0]="mu",t[t.F_=1]="F_",t[t.U_=2]="U_",t[t.qv=3]="qv",t[t.L_=4]="L_",t[t.Al=5]="Al"}(ya||(ya={}));var Aa=function(){function t(n,i){this.bodyUsed=!1;var r,e,u,o=this;if(this.M_=n||null,n)if("string"==typeof n)this.B_=ya.mu,this.x_=n;else if((u=n)&&"function"==typeof u.then)this.B_=ya.Al,this.x_=E.resolve(n).then(function(n){return new t(n,i)}),this.x_.catch(Qc);else if(Yc.blob&&function(t){return t&&Blob.prototype.isPrototypeOf(t)}(n))this.B_=ya.F_,this.x_=n;else if(Yc.formData&&function(t){return t&&FormData.prototype.isPrototypeOf(t)}(n))this.B_=ya.U_,this.x_=n;else if(Yc.searchParams&&la(n))this.B_=ya.mu,this.x_=n.toString();else if(Yc.arrayBuffer&&(da(n)||pa(n)))wa(n)&&(this.M_=new y((e=n).buffer,e.byteOffset,e.byteLength)),this.B_=ya.qv,this.x_=da(r=n)?Ia(r):Ra(r);else{if(!Yc.stream||!Wc(n))throw new c("unsupported BodyInit type");n=Vc(qc,n),this.B_=ya.L_,this.x_=n,this.M_=n}else this.B_=ya.mu,this.x_="";this.H_="",i.has("content-type")?this.H_=(i.get("content-type")||"").toLowerCase():("string"==typeof n?this.H_="text/plain;charset=UTF-8":o.B_===ya.F_&&o.x_.type?this.H_=o.x_.type:Yc.searchParams&&la(n)&&(this.H_="application/x-www-form-urlencoded;charset=UTF-8"),this.H_&&i.set("content-type",this.H_)),Yc.stream&&(null==n?this.body=null:o.B_===ya.L_?this.body=o.x_:this.body=zc(qc,function(){return o.arrayBuffer()},function(){o.bodyUsed=!0}))}return t.prototype.text=function(){var t,n,i,r=ba(this);return r||(this.B_===ya.F_?(t=this.x_,n=new FileReader,i=ga(n),n.readAsText(t),i):this.B_===ya.qv?E.resolve(this.x_).then(ma):this.B_===ya.L_?Sa(this.x_).then(ma):this.B_===ya.Al?this.x_.then(function(t){return t.text()}):this.B_===ya.U_?E.reject(new c("could not read FormData body as text")):E.resolve(this.x_))},t.prototype.json=function(){return this.text().then(JSON.parse)},t}();Yc.blob&&(Aa.prototype.blob=function(){var t,n,i=ba(this);return i||(this.B_===ya.F_?E.resolve(this.x_):this.B_===ya.qv?E.resolve(Mc([this.x_],{type:this.H_})):this.B_===ya.L_?(t=this.x_,n=this.H_,Ea(t).then(function(t){return Mc(t,{type:n||""})})):this.B_===ya.Al?this.x_.then(function(t){return t.blob()}):this.B_===ya.U_?E.reject(new c("could not read FormData body as Blob")):E.resolve(Mc([this.x_],{type:this.H_})))}),Yc.arrayBuffer&&(Aa.prototype.arrayBuffer=function(){var t,n,i;return this.B_===ya.qv?ba(this)||E.resolve(this.x_):this.B_===ya.F_?ba(this)||(t=this.x_,n=new FileReader,i=ga(n),n.readAsArrayBuffer(t),i):this.B_===ya.L_?Sa(this.x_):this.B_===ya.Al?ba(this)||this.x_.then(function(t){return t.arrayBuffer()}):this.B_===ya.U_?E.reject(new c("could not read FormData body as ArrayBuffer")):E.resolve(this.x_).then(_a)}),Yc.formData&&(Aa.prototype.formData=function(){return this.B_===ya.U_?ba(this)||E.resolve(this.x_):this.text().then(Ta)});var Oa=[301,302,303,307,308],Na=function(t){function n(n,i){var r=this,e=new Zc((i=i||{}).headers);return(r=t.call(this,n||null,e)||this).type="default",r.status=void 0===i.status?200:i.status,r.ok=r.status>=200&&r.status<300,r.statusText=void 0!==i.statusText?String(i.statusText):"",r.headers=e,r.url=i.url||"",r}return Uc(n,t),n.prototype.clone=function(){return new n(ka(this),{status:this.status,statusText:this.statusText,headers:new Zc(this.headers),url:this.url})},n.error=function(){var t=new n(null,{status:0,statusText:""});return t.type="error",t},n.redirect=function(t,i){if(-1===Oa.indexOf(i))throw new RangeError("Invalid status code");return new n(null,{status:i,headers:{location:t}})},n}(Aa);var Da,Ca=function(t,n){return t(n={exports:{}},n.exports),n.exports}(function(t,n){function i(t,n){if(!(t instanceof n))throw new a("Cannot call a class as a function")}function e(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),h.defineProperty(t,r.key,r)}}function o(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}function s(t){return(s=h.setPrototypeOf?h.getPrototypeOf:function(t){return t.__proto__||h.getPrototypeOf(t)})(t)}function f(t,n){return(f=h.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t,n,i){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,n,i){var r=function(t,n){for(;!h.prototype.hasOwnProperty.call(t,n)&&null!==(t=s(t)););return t}(t,n);if(r){var e=h.getOwnPropertyDescriptor(r,n);return e.get?e.get.call(i):e.value}})(t,n,i||t)}h.defineProperty(n,"__esModule",{value:!0});var l=function(){function t(){i(this,t),h.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return o(t,[{key:"addEventListener",value:function(t,n){t in this.listeners||(this.listeners[t]=[]),this.listeners[t].push(n)}},{key:"removeEventListener",value:function(t,n){if(t in this.listeners)for(var i=this.listeners[t],r=0,e=i.length;r<e;r++)if(i[r]===n)return void i.splice(r,1)}},{key:"dispatchEvent",value:function(t){var n=this;if(t.type in this.listeners){for(var i=function(i){u(function(){return i.call(n,t)})},r=this.listeners[t.type],e=0,o=r.length;e<o;e++)i(r[e]);return!t.defaultPrevented}}}]),t}(),d=function(t){function n(){var t,r,e;return i(this,n),r=this,(t=!(e=s(n).call(this))||"object"!=typeof e&&"function"!=typeof e?c(r):e).listeners||l.call(c(t)),h.defineProperty(c(t),"aborted",{value:!1,writable:!0,configurable:!0}),h.defineProperty(c(t),"onabort",{value:null,writable:!0,configurable:!0}),t}return function(t,n){if("function"!=typeof n&&null!==n)throw new a("Super expression must either be null or a function");t.prototype=h.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&f(t,n)}(n,l),o(n,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(t){"abort"===t.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,t)),v(s(n.prototype),"dispatchEvent",this).call(this,t)}}]),n}(),w=function(){function t(){i(this,t),h.defineProperty(this,"signal",{value:new d,writable:!0,configurable:!0})}return o(t,[{key:"abort",value:function(){var t;try{t=new Event("abort")}catch(n){void 0!==r?r.createEvent?(t=r.createEvent("Event")).initEvent("abort",!1,!1):(t=r.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(t)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();"undefined"!=typeof Symbol&&Symbol.toStringTag&&(w.prototype[Symbol.toStringTag]="AbortController",d.prototype[Symbol.toStringTag]="AbortSignal"),n.AbortSignal=d,n.AbortController=w,n.default=w});(Da=Ca)&&Da.__esModule&&h.prototype.hasOwnProperty.call(Da,"default")&&Da.default;Ca.AbortSignal;var xa=Ca.AbortController,Ba=Lc.DOMException;try{new Ba}catch(t){(Ba=function(t,n){c.call(this,t),this.name=n||"Error",c.captureStackTrace&&c.captureStackTrace(this,this.constructor)}).prototype=h.create(c.prototype),Ba.prototype.constructor=Ba}var Fa=xa;function Pa(t,n){if(!t.signal.aborted)if(n.aborted)t.abort();else{var i=function(){n.removeEventListener("abort",i),t.signal.removeEventListener("abort",i),t.abort()};n.addEventListener("abort",i),t.signal.addEventListener("abort",i)}}function ja(t,n,i){return new E(function(r,e){if(n.signal.aborted)return t.catch(Qc),e(Ua());var u=function(){n.signal.removeEventListener("abort",u),e(Ua())};n.signal.addEventListener("abort",u),t.then(function(t){n.signal.removeEventListener("abort",u),r(t),i&&n.abort()},function(t){n.signal.removeEventListener("abort",u),e(t),i&&n.abort()})})}function Ua(){return new Ba("Aborted","AbortError")}var La,Ma="moz-chunked-arraybuffer";function qa(t){try{var n=new p;return n.open("GET","https://test"),n.responseType=t,n.responseType===t}catch(t){}return!1}!function(t){t[t.UNSENT=0]="UNSENT",t[t.OPENED=1]="OPENED",t[t.HEADERS_RECEIVED=2]="HEADERS_RECEIVED",t[t.LOADING=3]="LOADING",t[t.DONE=4]="DONE"}(La||(La={}));var Wa=function(){function t(t,n){var i=this;this.V_=!1,this.N_=t,this.X_=n,this.z_=new p,this.W_=new E(function(t,n){i.G_=t,i.q_=n})}return t.prototype.send=function(){var t=this;return this.j_().then(function(n){return t.Y_(n,t.X_),t.W_})},t.prototype.j_=function(){var t=this.N_;return t.B_===ya.L_?t.arrayBuffer():E.resolve(t.M_)},t.prototype.Q_=function(t){this.N_.onprogress&&this.N_.onprogress(t.loaded,t.lengthComputable?t.total:void 0)},t.prototype.K_=function(t){this.q_(t)},t.prototype.Z_=function(){this.K_(new a("Network request failed"))},t.prototype.J_=function(){this.K_(new a("Network request failed"))},t.prototype.rg=function(){this.K_(Ua())},t.prototype.Y_=function(t,n){var i=this,r=this.N_,e=this.z_,u=function(){return i.eg()};if(r.signal.aborted)return this.rg();e.onreadystatechange=function(){if(e.readyState>=La.HEADERS_RECEIVED&&!i.V_){var t=function(t){var n=new Zc;return t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var i=t.split(":"),r=i.shift().trim();if(r){var e=i.join(":").trim();n.append(r,e)}}),n}(e.getAllResponseHeaders()||""),n={status:e.status,statusText:e.statusText,headers:t,url:e.responseURL||t.get("X-Request-URL")};i.V_=!0,i.og(n)}},e.onprogress=function(t){return i.Q_(t)},e.onload=function(){return i.hg()},e.onerror=function(){return i.Z_()},e.ontimeout=function(){return i.J_()},e.onabort=function(){return i.rg()},e.open(r.method,r.url,!0),e.withCredentials="include"===r.credentials,"responseType"in e&&n&&(e.responseType=n),r.headers.forEach(function(t,n){e.setRequestHeader(n,t)}),r.signal.addEventListener("abort",u),e.onloadend=function(){r.signal.removeEventListener("abort",u)},t?e.send(t):e.send()},t.prototype.eg=function(){this.rg(),this.z_.abort()},t}(),Xa=function(t){function n(n,i){var r=t.call(this,n,i)||this;return r.ag=void 0,r.cg=void 0,r}return Uc(n,t),n.prototype.og=function(t){var n=this;this.ag=new E(function(t,i){n.cg=t,n.fg=i}),this.G_(new Na(this.ag,t))},n.prototype.hg=function(){var t=this.z_.response||this.z_.responseText;this.cg(t)},n.prototype.K_=function(n){t.prototype.K_.call(this,n),this.fg&&this.fg(n)},n}(Wa),Ha=function(t){function n(n){var i=t.call(this,n,Ma)||this;return i.vg=void 0,i.dg=void 0,i._g=!1,i}return Uc(n,t),n.prototype.og=function(t){var n=this;this.vg=new qc({start:function(t){n.dg=t},cancel:function(){n._g=!0,n.eg()}}),this.G_(new Na(this.vg,t))},n.prototype.Q_=function(n){this._g||this.dg.enqueue(new y(this.z_.response)),t.prototype.Q_.call(this,n)},n.prototype.hg=function(){this.dg.close()},n.prototype.K_=function(n){t.prototype.K_.call(this,n),this.dg&&!this._g&&(this._g=!0,this.dg.error(n))},n}(Wa),Va=function(){var t=Yc.firefox&&qa(Ma);return Va=function(){return t},t},Ga=function(){var t;return t=Yc.arrayBuffer&&qa("arraybuffer")?"arraybuffer":Yc.blob&&qa("blob")?"blob":"",Ga=function(){return t},t};function za(t){return(Yc.stream&&Va()?new Ha(t):new Xa(t,Ga())).send()}var Ya=Lc.fetch,Ka=Lc.Request,$a=(Lc.Response,Lc.AbortController);var Ja=["http:","https:"];var Za=function(){try{if(Yc.streamRequest){var t=new Ka("about:blank",{body:"",method:"POST"}).body;if(t&&Xc(t.constructor))return t.constructor}}catch(t){}}();function Qa(t,n,i){var r;if(Yc.stream){var e=void 0;if(Yc.streamResponse){var u=t.body;e=u&&Vc(qc,u)}else e=zc(qc,function(){return ja(t.arrayBuffer(),n,!0)},function(){n.abort()});e&&i&&(e=function(t,n,i){var r=0;return function(t,n,i){return new t(new Hc(n.getReader(),i),{highWaterMark:0})}(qc,t,function(t){var e=t.done,u=t.value;e?i=void 0===i?r:i:r+=u.byteLength,n(r,i)})}(e,i,th(t.headers))),r=e}else{var o=ja(t.arrayBuffer(),n,!0);i&&(o=function(t,n,i){return E.resolve().then(function(){return n(0,i),t}).then(function(t){var r=t.byteLength;return n(r,i=void 0===i?r:i),t})}(o,i,th(t.headers))),r=o}return new Na(r,t)}function th(t){return t.has("content-length")?Number(t.get("content-length")):void 0}function nh(t){var n=new Fa;return t.signal&&Pa(n,t.signal),function(t,n){var i,r,e=t;if(i=e.B_===ya.L_?Yc.streamRequest&&Za?E.resolve(Vc(Za,e.x_)):ja(t.arrayBuffer(),n,!1):ja(E.resolve(t.M_),n,!1),Yc.abort){var u=new $a;Pa(u,n.signal),r=u.signal}return i.then(function(n){return new Ka(t.url,{body:n||void 0,credentials:t.credentials,headers:(i=t.headers,(i instanceof Zc?i:new Zc(i)).asList()),method:t.method,mode:t.mode,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:r});var i})}(t,n).then(function(i){return Ya(i).then(function(i){return Qa(i,n,t.onprogress)})})}var ih=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];var rh=function(t){function n(i,r){var e,u,o,s,f,c,h,v,l,d=this,w=(r=r||{}).body||null;if(i instanceof n){if(i.bodyUsed)throw new a("Already used");e=i.url,u=i.credentials,r.headers||(o=new Zc(i.headers)),s=i.method,f=i.mode,c=i.referrer,h=i.referrerPolicy,v=i.signal,l=i.onprogress,w||null==i.M_||(w=i.M_,i.bodyUsed=!0)}else e=String(i),u="same-origin",s="GET",f="cors",c="about:client",h="",v=null,l=null;if(!r.headers&&o||(o=new Zc(r.headers)),r&&(c="about:client",h=""),(d=t.call(this,w,o)||this).url=e,d.headers=o,d.credentials=r.credentials||u,d.method=function(t){var n=t.toUpperCase();return ih.indexOf(n)>-1?n:t}(r.method||s),d.mode=r.mode||f,d.signal=r.signal||v||(new Fa).signal,d.referrer=void 0!==r.referrer?r.referrer:c,d.referrerPolicy=void 0!==r.referrerPolicy?r.referrerPolicy:h,d.onprogress=r.onprogress||l,("GET"===d.method||"HEAD"===d.method)&&w)throw new a("Body not allowed for GET or HEAD requests");return d}return Uc(n,t),n.prototype.clone=function(){return new n(this,{body:ka(this)})},n}(Aa),eh="function"==typeof Ya&&Yc.stream&&Yc.streamResponse&&Yc.url;function uh(t,n){return new E(function(i){var r=new rh(t,n);i((eh&&function(t){try{return Ja.indexOf(new Lc.URL(t,Lc.location.href).protocol)>=0}catch(t){return!1}}(r.url)?nh:za)(r))})}uh.polyfill=!0;var oh=function(){function t(t){this.C_=void 0,this.N_=void 0,this.gg=new Zt,this.D_=void 0,this.wg=!1,this.N_=t,this.gg.Ca(t.Oa),this.C_=this.yg()}var n=t.prototype;return n.yg=function(){var t=E.coroutine(_.mark(function t(){var n,i,r,e,o,s,f,c,a=this;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(n=this.N_).v_&&u(function(){a.wg=!0,a.gg.Da()},n.v_),t.prev=2,i=uh(n.Yl,{method:n.f_,headers:n.Xl.Kv(),body:n.Dl,credentials:n.__?"include":"same-origin",signal:ch(this.gg.Oa),onprogress:n.g_}),t.next=9;break;case 6:throw t.prev=6,t.t0=t.catch(2),new Bc(n,t.t0);case 9:return t.prev=9,t.next=12,i;case 12:r=t.sent,t.next=20;break;case 15:throw t.prev=15,t.t1=t.catch(9),tn(e=this.pg(t.t1))&&this.gg.Da(),e;case 20:if(o=r.url||n.Yl,s=0===r.status&&"file:"===(h=o,m.kh(h).protocol)?200:r.status,f=new sh(this,r,this.gg),c=new Ac({Zu:f,ql:n,zl:n.zl,Xl:new $u(r.headers.asList()),Vl:s,Wl:r.statusText,jl:o}),this.D_=c,!Sc(c)){t.next=29;break}return t.abrupt("return",c);case 29:throw new Fc(c);case 30:case"end":return t.stop()}var h},t,this,[[2,6],[9,15]])}));return function(){return t.apply(this,arguments)}}(),n.pg=function(t){return tn(t)?this.wg?new Pc(this.N_):new Qt(t.message,t):this.D_?new Fc(this.D_,t):new Bc(this.N_,t)},t}(),sh=function(t){function n(n,i,r){var e;return(e=t.call(this)||this).En=void 0,e.Ag=void 0,e.gg=void 0,e.Bl=new lu,e.En=n,e.Ag=i,e.gg=r,e.Bl.Tc.catch(D),e}rt(n,t);var i=n.prototype;return i.xl=function(){return this.Bl.Tc},i.Sl=function(t){return this.Ml(this.Ag.text(),t)},i.Il=function(t){return this.Ml(this.Ag.arrayBuffer(),t)},i.Rl=function(){var t=this.Ag.body;return t?this.Fl(t):sc(this.Il().then(uc),this.gg)},i.Ul=function(){var t=this.Ag.clone(),i=this.gg.Pa(),r=i[0],e=i[1];return this.gg=r,new n(this.En,t,e)},i.Ml=function(t,n){var i=this;n&&this.gg.Ca(n);var r=E.resolve(t).catch(function(t){throw i.En.pg(t)});return r=nn(r,this.gg),this.Bl.Sc(r.then(D)),r},i.Fl=function(t){var n=this,i=new Vf,r=E.resolve(t.pipeTo(i.writable,{preventAbort:!0})).catch(function(t){var r=n.En.pg(t);throw i.writable.abort(r).catch(D),r});return r=nn(r,this.gg),this.Bl.Sc(r.then(D)),i.readable},P(n,[{key:"Hl",get:function(){return this.Ag.bodyUsed}}]),n}(vc),fh="abort";function ch(t){var n=new Fa;if(t.va)n.abort();else if(!t._a){var i=function(){r(),n.abort()},r=function r(){n.signal.removeEventListener(fh,i),t.Ea(i),t.Ra(r)};n.signal.addEventListener(fh,i),t.Sa(i),t.Ia(r)}return n.signal}var ah=function(){function t(){}var n=t.prototype;return n.ql=function(t){return new oh(t).C_},n.w_=function(t){var n=t.Nl?{"Content-type":t.Nl}:void 0;this.ql(new Oc({f_:Ic.POST,Yl:t.Yl,Dl:t.Dl,Xl:n})).then(D,D)},n.m_=function(){},t}(),hh=function(n){function i(){for(var i,r=arguments.length,e=new Array(r),u=0;u<r;u++)e[u]=arguments[u];return(i=n.call.apply(n,[this].concat(e))||this).Tg=void 0,i.Sg=function(){if(ii.Ds)return!1;try{return"body"in t.Response.prototype}catch(t){return!1}}(),i.Eg=ii.Js,i.Ig=void 0,i}return rt(i,n),P(i,[{key:"vh",get:function(){return this.Tg||(this.Tg=new su(Wu())),this.Tg}},{key:"Rg",get:function(){return this.Sg}},{key:"Ng",get:function(){return this.Eg}},{key:"Dg",get:function(){return!1}},{key:"Cg",get:function(){return Hu.$f()}},{key:"Pg",get:function(){return{Og:zu}}},{key:"Bg",get:function(){return e.connection&&e.connection.effectiveType||"default"}},{key:"Lg",get:function(){return e.connection&&e.connection.type||"unknown"}},{key:"xg",get:function(){return this.Ig||(this.Ig=new Cc(new ah)),this.Ig}}]),i}(Ge);S(new hh),S(new hh);var vh=t;vh.addEventListener("install",function(t){t.waitUntil(vh.skipWaiting())}),vh.addEventListener("activate",function(t){t.waitUntil(vh.clients.claim())}),Gn.de.gk(vh)}()}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this);
|
|
30
|
+
!function(t){!function(){"use strict";var n,i=t.window,r=t.document,e=(t.location,t.navigator),u=t.setTimeout,o=t.clearTimeout,s=t.setInterval,f=t.clearInterval,c=t.Error,a=t.TypeError,h=(t.SyntaxError,t.Object),v=t.Math,l=t.parseInt,d=t.parseFloat,w=t.isNaN,y=t.Uint8Array,p=(t.Worker,t.WorkerGlobalScope,t.XMLHttpRequest),b="undefined"!=typeof globalThis?globalThis:void 0!==i?i:"undefined"!=typeof global?global:void 0!==t?t:{};function g(t,n,i){return t(i={path:n,exports:{},require:function(t,n){return function(){throw new c("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&i.path)}},i.exports),i.exports}var m,_=g(function(t){!function(t){var n,i=h.prototype,r=i.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},u=e.iterator||"@@iterator",o=e.asyncIterator||"@@asyncIterator",s=e.toStringTag||"@@toStringTag";function f(t,n,i,r){var e=n&&n.prototype instanceof g?n:g,u=h.create(e.prototype),o=new D(r||[]);return u.Lh=function(t,n,i){var r=l;return function(e,u){if(r===y)throw new c("Generator is already running");if(r===p){if("throw"===e)throw u;return x()}for(i.method=e,i.arg=u;;){var o=i.delegate;if(o){var s=A(o,i);if(s){if(s===b)continue;return s}}if("next"===i.method)i.sent=i.Mh=i.arg;else if("throw"===i.method){if(r===l)throw r=p,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=y;var f=v(t,n,i);if("normal"===f.type){if(r=i.done?p:d,f.arg===b)continue;return{value:f.arg,done:i.done}}"throw"===f.type&&(r=p,i.method="throw",i.arg=f.arg)}}}(t,i,o),u}function v(t,n,i){try{return{type:"normal",arg:t.call(n,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l="suspendedStart",d="suspendedYield",y="executing",p="completed",b={};function g(){}function m(){}function _(){}var E={};E[u]=function(){return this};var S=h.getPrototypeOf,I=S&&S(S(C([])));I&&I!==i&&r.call(I,u)&&(E=I);var R=_.prototype=g.prototype=h.create(E);function T(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this.Lh(n,t)}})}function k(t){var n;this.Lh=function(i,e){function u(){return new Promise(function(n,u){!function n(i,e,u,o){var s=v(t[i],t,e);if("throw"!==s.type){var f=s.arg,c=f.value;return c&&"object"==typeof c&&r.call(c,"Fh")?Promise.resolve(c.Fh).then(function(t){n("next",t,u,o)},function(t){n("throw",t,u,o)}):Promise.resolve(c).then(function(t){f.value=t,u(f)},function(t){return n("throw",t,u,o)})}o(s.arg)}(i,e,n,u)})}return n=n?n.then(u,u):u()}}function A(t,i){var r=t.iterator[i.method];if(r===n){if(i.delegate=null,"throw"===i.method){if(t.iterator.return&&(i.method="return",i.arg=n,A(t,i),"throw"===i.method))return b;i.method="throw",i.arg=new a("The iterator does not provide a 'throw' method")}return b}var e=v(r,t.iterator,i.arg);if("throw"===e.type)return i.method="throw",i.arg=e.arg,i.delegate=null,b;var u=e.arg;return u?u.done?(i[t.resultName]=u.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=n),i.delegate=null,b):u:(i.method="throw",i.arg=new a("iterator result is not an object"),i.delegate=null,b)}function O(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function C(t){if(t){var i=t[u];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!w(t.length)){var e=-1,o=function i(){for(;++e<t.length;)if(r.call(t,e))return i.value=t[e],i.done=!1,i;return i.value=n,i.done=!0,i};return o.next=o}}return{next:x}}function x(){return{value:n,done:!0}}m.prototype=R.constructor=_,_.constructor=m,_[s]=m.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===m||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return h.setPrototypeOf?h.setPrototypeOf(t,_):(t.__proto__=_,s in t||(t[s]="GeneratorFunction")),t.prototype=h.create(R),t},t.awrap=function(t){return{Fh:t}},T(k.prototype),k.prototype[o]=function(){return this},t.AsyncIterator=k,t.async=function(n,i,r,e){var u=new k(f(n,i,r,e));return t.isGeneratorFunction(i)?u:u.next().then(function(t){return t.done?t.value:u.next()})},T(R),R[s]="Generator",R[u]=function(){return this},R.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var i in t)n.push(i);return n.reverse(),function i(){for(;n.length;){var r=n.pop();if(r in t)return i.value=r,i.done=!1,i}return i.done=!0,i}},t.values=C,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this.Mh=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(N),!t)for(var i in this)"t"===i.charAt(0)&&r.call(this,i)&&!w(+i.slice(1))&&(this[i]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function e(r,e){return s.type="throw",s.arg=t,i.next=r,e&&(i.method="next",i.arg=n),!!e}for(var u=this.tryEntries.length-1;u>=0;--u){var o=this.tryEntries[u],s=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var f=r.call(o,"catchLoc"),a=r.call(o,"finallyLoc");if(f&&a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(f){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!a)throw new c("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,n){for(var i=this.tryEntries.length-1;i>=0;--i){var e=this.tryEntries[i];if(e.tryLoc<=this.prev&&r.call(e,"finallyLoc")&&this.prev<e.finallyLoc){var u=e;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=n&&n<=u.finallyLoc&&(u=null);var o=u?u.completion:{};return o.type=t,o.arg=n,u?(this.method="next",this.next=u.finallyLoc,b):this.complete(o)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),b},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),N(i),b}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc===t){var r=i.completion;if("throw"===r.type){var e=r.arg;N(i)}return e}}throw new c("illegal catch attempt")},delegateYield:function(t,i,r){return this.delegate={iterator:C(t),resultName:i,nextLoc:r},"next"===this.method&&(this.arg=n),b}}}(t.exports)}),E=g(function(s,f){s.exports=function t(i,r,e){function u(s,f){if(!r[s]){if(!i[s]){var a="function"==typeof n&&n;if(!f&&a)return a(s,!0);if(o)return o(s,!0);var h=new c("Cannot find module '"+s+"'");throw h.code="MODULE_NOT_FOUND",h}var v=r[s]={exports:{}};i[s][0].call(v.exports,function(t){var n=i[s][1][t];return u(n||t)},v,v.exports,t,i,r,e)}return r[s].exports}for(var o="function"==typeof n&&n,s=0;s<e.length;s++)u(e[s]);return u}({1:[function(t,n,i){n.exports=function(t){var n=t.l;function i(t){var i=new n(t),r=i.promise();return i.setHowMany(1),i.setUnwrap(),i.init(),r}t.any=function(t){return i(t)},t.prototype.any=function(){return i(this)}}},{}],2:[function(t,n,i){var r;try{throw new c}catch(t){r=t}var e=t("./schedule"),o=t("./queue"),s=t("./util");function f(){this.g=!1,this.R=!1,this.N=new o(16),this.M=new o(16),this.F=!1,this.U=!0;var t=this;this.drainQueues=function(){t.q()},this.G=e}function a(t,n,i){this.N.push(t,n,i),this.j()}function h(t,n,i){this.M.push(t,n,i),this.j()}function v(t){this.M.Y(t),this.j()}function l(t){for(;t.length()>0;)d(t)}function d(t){var n=t.shift();if("function"!=typeof n)n.K();else{var i=t.shift(),r=t.shift();n.call(i,r)}}f.prototype.setScheduler=function(t){var n=this.G;return this.G=t,this.g=!0,n},f.prototype.hasCustomScheduler=function(){return this.g},f.prototype.enableTrampoline=function(){this.U=!0},f.prototype.disableTrampolineIfNecessary=function(){s.hasDevTools&&(this.U=!1)},f.prototype.haveItemsQueued=function(){return this.R||this.F},f.prototype.fatalError=function(t,n){n?(process.stderr.write("Fatal "+(t instanceof c?t.stack:t)+"\n"),process.exit(2)):this.throwLater(t)},f.prototype.throwLater=function(t,n){if(1===arguments.length&&(n=t,t=function(){throw n}),void 0!==u)u(function(){t(n)},0);else try{this.G(function(){t(n)})}catch(t){throw new c("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},s.hasDevTools?(f.prototype.invokeLater=function(t,n,i){this.U?a.call(this,t,n,i):this.G(function(){u(function(){t.call(n,i)},100)})},f.prototype.invoke=function(t,n,i){this.U?h.call(this,t,n,i):this.G(function(){t.call(n,i)})},f.prototype.settlePromises=function(t){this.U?v.call(this,t):this.G(function(){t.K()})}):(f.prototype.invokeLater=a,f.prototype.invoke=h,f.prototype.settlePromises=v),f.prototype.q=function(){l(this.M),this.Z(),this.F=!0,l(this.N)},f.prototype.j=function(){this.R||(this.R=!0,this.G(this.drainQueues))},f.prototype.Z=function(){this.R=!1},n.exports=f,n.exports.firstLineError=r},{"./queue":26,"./schedule":29,"./util":36}],3:[function(t,n,i){n.exports=function(t,n,i,r){var e=!1,u=function(t,n){this.J(n)},o=function(t,n){n.promiseRejectionQueued=!0,n.bindingPromise.nt(u,u,null,this,t)},s=function(t,n){0==(50397184&this.ut)&&this.ot(n.target)},f=function(t,n){n.promiseRejectionQueued||this.J(t)};t.prototype.bind=function(u){e||(e=!0,t.prototype.at=r.propagateFromFunction(),t.prototype.ct=r.boundValueFunction());var c=i(u),a=new t(n);a.at(this,1);var h=this.ft();if(a.vt(c),c instanceof t){var v={promiseRejectionQueued:!1,promise:a,target:h,bindingPromise:c};h.nt(n,o,void 0,a,v),c.nt(s,f,void 0,a,v),a.dt(c)}else a.ot(h);return a},t.prototype.vt=function(t){void 0!==t?(this.ut=2097152|this.ut,this._t=t):this.ut=-2097153&this.ut},t.prototype.wt=function(){return 2097152==(2097152&this.ut)},t.bind=function(n,i){return t.resolve(i).bind(n)}}},{}],4:[function(t,n,i){var r;"undefined"!=typeof Promise&&(r=Promise);var e=t("./promise")();e.noConflict=function(){try{Promise===e&&(Promise=r)}catch(t){}return e},n.exports=e},{"./promise":22}],5:[function(t,n,i){var r=h.create;if(r){var e=r(null),u=r(null);e[" size"]=u[" size"]=0}n.exports=function(n){var i=t("./util"),r=i.canEvaluate;function e(t){var r=this.pop(),e=function(t,r){var e;if(null!=t&&(e=t[r]),"function"!=typeof e){var u="Object "+i.classString(t)+" has no method '"+i.toString(r)+"'";throw new n.TypeError(u)}return e}(t,r);return e.apply(t,this)}function u(t){return t[this]}function o(t){var n=+this;return n<0&&(n=v.max(0,n+t.length)),t[n]}i.isIdentifier,n.prototype.call=function(t){var n=[].slice.call(arguments,1);return n.push(t),this.nt(e,void 0,void 0,n,void 0)},n.prototype.get=function(t){var n,i="number"==typeof t;if(i)n=o;else if(r){var e=(void 0)();n=null!==e?e:u}else n=u;return this.nt(n,void 0,void 0,t,void 0)}}},{"./util":36}],6:[function(t,n,i){n.exports=function(n,i,r,e){var u=t("./util"),o=u.tryCatch,s=u.errorObj,f=n.yt;n.prototype.break=n.prototype.cancel=function(){if(!e.cancellation())return this.kt("cancellation is disabled");for(var t=this,n=t;t.bt();){if(!t.At(n)){n.Tt()?n.St().cancel():n.Et();break}var i=t.It;if(null==i||!i.bt()){t.Tt()?t.St().cancel():t.Et();break}t.Tt()&&t.St().cancel(),t.Rt(),n=t,t=i}},n.prototype.Nt=function(){this.Dt--},n.prototype.Ct=function(){return void 0===this.Dt||this.Dt<=0},n.prototype.At=function(t){return t===this?(this.Dt=0,this.Pt(),!0):(this.Nt(),!!this.Ct()&&(this.Pt(),!0))},n.prototype.Et=function(){this.Ct()&&this.Ot()},n.prototype.Ot=function(){this.bt()&&(this.Bt(),f.invoke(this.Lt,this,void 0))},n.prototype.Lt=function(){this.xt()>0&&this.K()},n.prototype.Mt=function(){this.Ft=void 0},n.prototype.bt=function(){return this.isPending()&&!this.Ut()},n.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},n.prototype.Ht=function(t,n){if(u.isArray(t))for(var i=0;i<t.length;++i)this.Ht(t[i],n);else if(void 0!==t)if("function"==typeof t){if(!n){var r=o(t).call(this.ct());r===s&&(this.Vt(r.e),f.throwLater(r.e))}}else t._resultCancelled(this)},n.prototype.Pt=function(){var t=this.Xt();this.Mt(),f.invoke(this.Ht,this,t)},n.prototype.zt=function(){this.bt()&&(this.Ht(this.Xt(),!0),this.Mt())},n.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(t,n,i){n.exports=function(n){var i=t("./util"),r=t("./es5").keys,e=i.tryCatch,u=i.errorObj;return function(t,o,s){return function(f){var a=s.ct();t:for(var h=0;h<t.length;++h){var v=t[h];if(v===c||null!=v&&v.prototype instanceof c){if(f instanceof v)return e(o).call(a,f)}else if("function"==typeof v){var l=e(v).call(a,f);if(l===u)return l;if(l)return e(o).call(a,f)}else if(i.isObject(f)){for(var d=r(v),w=0;w<d.length;++w){var y=d[w];if(v[y]!=f[y])continue t}return e(o).call(a,f)}}return n}}}},{"./es5":13,"./util":36}],8:[function(t,n,i){n.exports=function(t){var n=!1,i=[];function r(){this.qt=new r.CapturedTrace(e())}function e(){var t=i.length-1;if(t>=0)return i[t]}return t.prototype.Gt=function(){},t.prototype.Wt=function(){},t.prototype.jt=function(){return null},t.Yt=t.prototype.Yt=function(){},r.prototype.Wt=function(){void 0!==this.qt&&(this.qt.Gt=null,i.push(this.qt))},r.prototype.jt=function(){if(void 0!==this.qt){var t=i.pop(),n=t.Gt;return t.Gt=null,n}return null},r.CapturedTrace=null,r.create=function(){if(n)return new r},r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var i=t.prototype.Wt,u=t.prototype.jt,o=t.Yt,s=t.prototype.Yt,f=t.prototype.Gt;r.deactivateLongStackTraces=function(){t.prototype.Wt=i,t.prototype.jt=u,t.Yt=o,t.prototype.Yt=s,t.prototype.Gt=f,n=!1},n=!0,t.prototype.Wt=r.prototype.Wt,t.prototype.jt=r.prototype.jt,t.Yt=t.prototype.Yt=e,t.prototype.Gt=function(){var t=this.Yt();t&&null==t.Gt&&(t.Gt=this)}},r}},{}],9:[function(t,n,i){n.exports=function(n,i){var e,o,s,f=n.Qt,v=n.yt,d=t("./errors").Warning,w=t("./util"),y=t("./es5"),p=w.canAttachTrace,b=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,g=/\((?:timers\.js):\d+:\d+\)/,m=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,_=null,E=null,S=!1,I=!(0==w.env("BLUEBIRD_DEBUG")),R=!(0==w.env("BLUEBIRD_WARNINGS")||!I&&!w.env("BLUEBIRD_WARNINGS")),T=!(0==w.env("BLUEBIRD_LONG_STACK_TRACES")||!I&&!w.env("BLUEBIRD_LONG_STACK_TRACES")),k=0!=w.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(R||!!w.env("BLUEBIRD_W_FORGOTTEN_RETURN"));n.prototype.suppressUnhandledRejections=function(){var t=this.ft();t.ut=-1048577&t.ut|524288},n.prototype.Kt=function(){if(0==(524288&this.ut)){this.Zt();var t=this;u(function(){t.Jt()},1)}},n.prototype.$t=function(){$("rejectionHandled",e,void 0,this)},n.prototype.in=function(){this.ut=268435456|this.ut},n.prototype.un=function(){return 0!=(268435456&this.ut)},n.prototype.Jt=function(){if(this.hn()){var t=this.cn();this.fn(),$("unhandledRejection",o,t,this)}},n.prototype.fn=function(){this.ut=262144|this.ut},n.prototype.vn=function(){this.ut=-262145&this.ut},n.prototype.dn=function(){return(262144&this.ut)>0},n.prototype.Zt=function(){this.ut=1048576|this.ut},n.prototype._n=function(){this.ut=-1048577&this.ut,this.dn()&&(this.vn(),this.$t())},n.prototype.hn=function(){return(1048576&this.ut)>0},n.prototype.kt=function(t,n,i){return G(t,n,i||this)},n.onPossiblyUnhandledRejection=function(t){var n=f();o="function"==typeof t?null===n?t:w.domainBind(n,t):void 0},n.onUnhandledRejectionHandled=function(t){var n=f();e="function"==typeof t?null===n?t:w.domainBind(n,t):void 0};var A=function(){};n.longStackTraces=function(){if(v.haveItemsQueued()&&!et.longStackTraces)throw new c("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!et.longStackTraces&&Z()){var t=n.prototype.wn,r=n.prototype.Vt,e=n.prototype.yn;et.longStackTraces=!0,A=function(){if(v.haveItemsQueued()&&!et.longStackTraces)throw new c("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");n.prototype.wn=t,n.prototype.Vt=r,n.prototype.yn=e,i.deactivateLongStackTraces(),v.enableTrampoline(),et.longStackTraces=!1},n.prototype.wn=X,n.prototype.Vt=H,n.prototype.yn=V,i.activateLongStackTraces(),v.disableTrampolineIfNecessary()}},n.hasLongStackTraces=function(){return et.longStackTraces&&Z()};var O=function(){try{if("function"==typeof CustomEvent){var t=new CustomEvent("CustomEvent");return w.global.dispatchEvent(t),function(t,n){var i={detail:n,cancelable:!0};y.defineProperty(i,"promise",{value:n.promise}),y.defineProperty(i,"reason",{value:n.reason});var r=new CustomEvent(t.toLowerCase(),i);return!w.global.dispatchEvent(r)}}if("function"==typeof Event){var t=new Event("CustomEvent");return w.global.dispatchEvent(t),function(t,n){var i=new Event(t.toLowerCase(),{cancelable:!0});return i.detail=n,y.defineProperty(i,"promise",{value:n.promise}),y.defineProperty(i,"reason",{value:n.reason}),!w.global.dispatchEvent(i)}}var t=r.createEvent("CustomEvent");return t.initCustomEvent("testingtheevent",!1,!0,{}),w.global.dispatchEvent(t),function(t,n){var i=r.createEvent("CustomEvent");return i.initCustomEvent(t.toLowerCase(),!1,!0,n),!w.global.dispatchEvent(i)}}catch(t){}return function(){return!1}}(),N=w.isNode?function(){return process.emit.apply(process,arguments)}:w.global?function(t){var n="on"+t.toLowerCase(),i=w.global[n];return!!i&&(i.apply(w.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function D(t,n){return{promise:n}}var C={promiseCreated:D,promiseFulfilled:D,promiseRejected:D,promiseResolved:D,promiseCancelled:D,promiseChained:function(t,n,i){return{promise:n,child:i}},warning:function(t,n){return{warning:n}},unhandledRejection:function(t,n,i){return{reason:n,promise:i}},rejectionHandled:D},x=function(t){var n=!1;try{n=N.apply(null,arguments)}catch(t){v.throwLater(t),n=!0}var i=!1;try{i=O(t,C[t].apply(null,arguments))}catch(t){v.throwLater(t),i=!0}return i||n};function B(){return!1}function F(t,n,i){var r=this;try{t(n,i,function(t){if("function"!=typeof t)throw new a("onCancel must be a function, got: "+w.toString(t));r.pn(t)})}catch(t){return t}}function P(t){if(!this.bt())return this;var n=this.Xt();void 0!==n?w.isArray(n)?n.push(t):this.dt([n,t]):this.dt(t)}function j(){return this.Ft}function U(t){this.Ft=t}function L(){this.It=void 0,this.Ft=void 0}function M(t,n){if(0!=(1&n)){this.It=t;var i=t.Dt;void 0===i&&(i=0),t.Dt=i+1}0!=(2&n)&&t.wt()&&this.vt(t._t)}n.config=function(t){if("longStackTraces"in(t=h(t))&&(t.longStackTraces?n.longStackTraces():!t.longStackTraces&&n.hasLongStackTraces()&&A()),"warnings"in t){var i=t.warnings;et.warnings=!!i,k=et.warnings,w.isObject(i)&&"wForgottenReturn"in i&&(k=!!i.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!et.cancellation){if(v.haveItemsQueued())throw new c("cannot enable cancellation after promises are in use");n.prototype.An=L,n.prototype.at=M,n.prototype.Xt=j,n.prototype.dt=U,n.prototype.pn=P,n.prototype.Tn=F,q=M,et.cancellation=!0}return"monitoring"in t&&(t.monitoring&&!et.monitoring?(et.monitoring=!0,n.prototype.Sn=x):!t.monitoring&&et.monitoring&&(et.monitoring=!1,n.prototype.Sn=B)),n},n.prototype.Sn=B,n.prototype.Tn=function(t,n,i){try{t(n,i)}catch(t){return t}},n.prototype.Xt=function(){},n.prototype.dt=function(t){},n.prototype.pn=function(t){},n.prototype.wn=function(){},n.prototype.Vt=function(){},n.prototype.yn=function(){},n.prototype.An=function(){},n.prototype.at=function(t,n){};var q=function(t,n){0!=(2&n)&&t.wt()&&this.vt(t._t)};function W(){var t=this._t;return void 0!==t&&t instanceof n?t.isFulfilled()?t.value():void 0:t}function X(){this.qt=new it(this.Yt())}function H(t,n){if(p(t)){var i=this.qt;if(void 0!==i&&n&&(i=i.En),void 0!==i)i.attachExtraTrace(t);else if(!t.In){var r=Y(t);w.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n")),w.notEnumerableProp(t,"In",!0)}}}function V(){this.qt=void 0}function G(t,i,r){if(et.warnings){var e,u=new d(t);if(i)r.Vt(u);else if(et.longStackTraces&&(e=n.Yt()))e.attachExtraTrace(u);else{var o=Y(u);u.stack=o.message+"\n"+o.stack.join("\n")}x("warning",u)||K(u,"",!0)}}function z(t){for(var n=[],i=0;i<t.length;++i){var r=t[i],e=" (No stack trace)"===r||_.test(r),u=e&&Q(r);e&&!u&&(S&&" "!==r.charAt(0)&&(r=" "+r),n.push(r))}return n}function Y(t){var n=t.stack,i=t.toString();return n="string"==typeof n&&n.length>0?function(t){for(var n=t.stack.replace(/\s+$/g,"").split("\n"),i=0;i<n.length;++i){var r=n[i];if(" (No stack trace)"===r||_.test(r))break}return i>0&&"SyntaxError"!=t.name&&(n=n.slice(i)),n}(t):[" (No stack trace)"],{message:i,stack:"SyntaxError"==t.name?n:z(n)}}function K(t,n,i){if("undefined"!=typeof console){var r;if(w.isObject(t)){var e=t.stack;r=n+E(e,t)}else r=n+String(t);"function"==typeof s?s(r,i):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(r)}}function $(t,n,i,r){var e=!1;try{"function"==typeof n&&(e=!0,"rejectionHandled"===t?n(r):n(i,r))}catch(t){v.throwLater(t)}"unhandledRejection"===t?x(t,i,r)||e||K(i,"Unhandled rejection "):x(t,r)}function J(t){var n;if("function"==typeof t)n="[function "+(t.name||"anonymous")+"]";else{if(n=t&&"function"==typeof t.toString?t.toString():w.toString(t),/\[object [a-zA-Z0-9$_]+\]/.test(n))try{var i=JSON.stringify(t);n=i}catch(t){}0===n.length&&(n="(empty array)")}return"(<"+function(t){return t.length<41?t:t.substr(0,38)+"..."}(n)+">, no stack trace)"}function Z(){return"function"==typeof rt}var Q=function(){return!1},tt=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function nt(t){var n=t.match(tt);if(n)return{fileName:n[1],line:l(n[2],10)}}function it(t){this.En=t,this.Rn=0;var n=this.xt=1+(void 0===t?0:t.xt);rt(this,it),n>32&&this.uncycle()}w.inherits(it,c),i.CapturedTrace=it,it.prototype.uncycle=function(){var t=this.xt;if(!(t<2)){for(var n=[],i={},r=0,e=this;void 0!==e;++r)n.push(e),e=e.En;for(var r=(t=this.xt=r)-1;r>=0;--r){var u=n[r].stack;void 0===i[u]&&(i[u]=r)}for(var r=0;r<t;++r){var o=n[r].stack,s=i[o];if(void 0!==s&&s!==r){s>0&&(n[s-1].En=void 0,n[s-1].xt=1),n[r].En=void 0,n[r].xt=1;var f=r>0?n[r-1]:this;s<t-1?(f.En=n[s+1],f.En.uncycle(),f.xt=f.En.xt+1):(f.En=void 0,f.xt=1);for(var c=f.xt+1,a=r-2;a>=0;--a)n[a].xt=c,c++;return}}}},it.prototype.attachExtraTrace=function(t){if(!t.In){this.uncycle();for(var n=Y(t),i=n.message,r=[n.stack],e=this;void 0!==e;)r.push(z(e.stack.split("\n"))),e=e.En;!function(t){for(var n=t[0],i=1;i<t.length;++i){for(var r=t[i],e=n.length-1,u=n[e],o=-1,s=r.length-1;s>=0;--s)if(r[s]===u){o=s;break}for(var s=o;s>=0;--s){var f=r[s];if(n[e]!==f)break;n.pop(),e--}n=r}}(r),function(t){for(var n=0;n<t.length;++n)(0===t[n].length||n+1<t.length&&t[n][0]===t[n+1][0])&&(t.splice(n,1),n--)}(r),w.notEnumerableProp(t,"stack",function(t,n){for(var i=0;i<n.length-1;++i)n[i].push("From previous event:"),n[i]=n[i].join("\n");return i<n.length&&(n[i]=n[i].join("\n")),t+"\n"+n.join("\n")}(i,r)),w.notEnumerableProp(t,"In",!0)}};var rt=function(){var t=/^\s*at\s*/,n=function(t,n){return"string"==typeof t?t:void 0!==n.name&&void 0!==n.message?n.toString():J(n)};if("number"==typeof c.stackTraceLimit&&"function"==typeof c.captureStackTrace){c.stackTraceLimit+=6,_=t,E=n;var i=c.captureStackTrace;return Q=function(t){return b.test(t)},function(t,n){c.stackTraceLimit+=6,i(t,n),c.stackTraceLimit-=6}}var r,e=new c;if("string"==typeof e.stack&&e.stack.split("\n")[0].indexOf("stackDetection@")>=0)return _=/@/,E=n,S=!0,function(t){t.stack=(new c).stack};try{throw new c}catch(t){r="stack"in t}return"stack"in e||!r||"number"!=typeof c.stackTraceLimit?(E=function(t,n){return"string"==typeof t?t:"object"!=typeof n&&"function"!=typeof n||void 0===n.name||void 0===n.message?J(n):n.toString()},null):(_=t,E=n,function(t){c.stackTraceLimit+=6;try{throw new c}catch(n){t.stack=n.stack}c.stackTraceLimit-=6})}();"undefined"!=typeof console&&void 0!==console.warn&&(s=function(t){console.warn(t)},w.isNode&&process.stderr.isTTY?s=function(t,n){var i=n?"\x1b[33m":"\x1b[31m";console.warn(i+t+"\x1b[0m\n")}:w.isNode||"string"!=typeof(new c).stack||(s=function(t,n){console.warn("%c"+t,n?"color: darkorange":"color: red")}));var et={warnings:R,longStackTraces:!1,cancellation:!1,monitoring:!1};return T&&n.longStackTraces(),{longStackTraces:function(){return et.longStackTraces},warnings:function(){return et.warnings},cancellation:function(){return et.cancellation},monitoring:function(){return et.monitoring},propagateFromFunction:function(){return q},boundValueFunction:function(){return W},checkForgottenReturns:function(t,n,i,r,e){if(void 0===t&&null!==n&&k){if(void 0!==e&&e.un())return;if(0==(65535&r.ut))return;i&&(i+=" ");var u="",o="";if(n.qt){for(var s=n.qt.stack.split("\n"),f=z(s),c=f.length-1;c>=0;--c){var a=f[c];if(!g.test(a)){var h=a.match(m);h&&(u="at "+h[1]+":"+h[2]+":"+h[3]+" ");break}}if(f.length>0)for(var v=f[0],c=0;c<s.length;++c)if(s[c]===v){c>0&&(o="\n"+s[c-1]);break}}var l="a promise was created in a "+i+"handler "+u+"but was not returned from it, see http://goo.gl/rRqMUw"+o;r.kt(l,!0,n)}},setBounds:function(t,n){if(Z()){for(var i,r,e=(t.stack||"").split("\n"),u=(n.stack||"").split("\n"),o=-1,s=-1,f=0;f<e.length;++f){var c=nt(e[f]);if(c){i=c.fileName,o=c.line;break}}for(var f=0;f<u.length;++f){var c=nt(u[f]);if(c){r=c.fileName,s=c.line;break}}o<0||s<0||!i||!r||i!==r||o>=s||(Q=function(t){if(b.test(t))return!0;var n=nt(t);return!!(n&&n.fileName===i&&o<=n.line&&n.line<=s)})}},warn:G,deprecated:function(t,n){var i=t+" is deprecated and will be removed in a future version.";return n&&(i+=" Use "+n+" instead."),G(i)},CapturedTrace:it,fireDomEvent:O,fireGlobalEvent:N}}},{"./errors":12,"./es5":13,"./util":36}],10:[function(t,n,i){n.exports=function(t){function n(){return this.value}function i(){throw this.reason}t.prototype.return=t.prototype.thenReturn=function(i){return i instanceof t&&i.suppressUnhandledRejections(),this.nt(n,void 0,void 0,{value:i},void 0)},t.prototype.throw=t.prototype.thenThrow=function(t){return this.nt(i,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(arguments.length<=1)return this.nt(void 0,i,void 0,{reason:t},void 0);var n=arguments[1];return this.caught(t,function(){throw n})},t.prototype.catchReturn=function(i){if(arguments.length<=1)return i instanceof t&&i.suppressUnhandledRejections(),this.nt(void 0,n,void 0,{value:i},void 0);var r=arguments[1];return r instanceof t&&r.suppressUnhandledRejections(),this.caught(i,function(){return r})}}},{}],11:[function(t,n,i){n.exports=function(t,n){var i=t.reduce,r=t.all;function e(){return r(this)}t.prototype.each=function(t){return i(this,t,n,0).nt(e,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(t){return i(this,t,n,n)},t.each=function(t,r){return i(t,r,n,0).nt(e,void 0,void 0,t,void 0)},t.mapSeries=function(t,r){return i(t,r,n,n)}}},{}],12:[function(t,n,i){var r,e,u=t("./es5"),o=u.freeze,s=t("./util"),f=s.inherits,h=s.notEnumerableProp;function v(t,n){function i(r){if(!(this instanceof i))return new i(r);h(this,"message","string"==typeof r?r:n),h(this,"name",t),c.captureStackTrace?c.captureStackTrace(this,this.constructor):c.call(this)}return f(i,c),i}var l=v("Warning","warning"),d=v("CancellationError","cancellation error"),w=v("TimeoutError","timeout error"),y=v("AggregateError","aggregate error");try{r=a,e=RangeError}catch(t){r=v("TypeError","type error"),e=v("RangeError","range error")}for(var p="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),b=0;b<p.length;++b)"function"==typeof Array.prototype[p[b]]&&(y.prototype[p[b]]=Array.prototype[p[b]]);u.defineProperty(y.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),y.prototype.isOperational=!0;var g=0;function m(t){if(!(this instanceof m))return new m(t);h(this,"name","OperationalError"),h(this,"message",t),this.cause=t,this.isOperational=!0,t instanceof c?(h(this,"message",t.message),h(this,"stack",t.stack)):c.captureStackTrace&&c.captureStackTrace(this,this.constructor)}y.prototype.toString=function(){var t=Array(4*g+1).join(" "),n="\n"+t+"AggregateError of:\n";g++,t=Array(4*g+1).join(" ");for(var i=0;i<this.length;++i){for(var r=this[i]===this?"[Circular AggregateError]":this[i]+"",e=r.split("\n"),u=0;u<e.length;++u)e[u]=t+e[u];r=e.join("\n"),n+=r+"\n"}return g--,n},f(m,c);var _=c.Nn;_||(_=o({CancellationError:d,TimeoutError:w,OperationalError:m,RejectionError:m,AggregateError:y}),u.defineProperty(c,"Nn",{value:_,writable:!1,enumerable:!1,configurable:!1})),n.exports={Error:c,TypeError:r,RangeError:e,CancellationError:_.CancellationError,OperationalError:_.OperationalError,TimeoutError:_.TimeoutError,AggregateError:_.AggregateError,Warning:l}},{"./es5":13,"./util":36}],13:[function(t,n,i){var r=function(){return void 0===this}();if(r)n.exports={freeze:h.freeze,defineProperty:h.defineProperty,getDescriptor:h.getOwnPropertyDescriptor,keys:h.keys,names:h.getOwnPropertyNames,getPrototypeOf:h.getPrototypeOf,isArray:Array.isArray,isES5:r,propertyIsWritable:function(t,n){var i=h.getOwnPropertyDescriptor(t,n);return!(i&&!i.writable&&!i.set)}};else{var e={}.hasOwnProperty,u={}.toString,o={}.constructor.prototype,s=function(t){var n=[];for(var i in t)e.call(t,i)&&n.push(i);return n};n.exports={isArray:function(t){try{return"[object Array]"===u.call(t)}catch(t){return!1}},keys:s,names:s,defineProperty:function(t,n,i){return t[n]=i.value,t},getDescriptor:function(t,n){return{value:t[n]}},freeze:function(t){return t},getPrototypeOf:function(t){try{return h(t).constructor.prototype}catch(t){return o}},isES5:r,propertyIsWritable:function(){return!0}}}},{}],14:[function(t,n,i){n.exports=function(t,n){var i=t.map;t.prototype.filter=function(t,r){return i(this,t,r,n)},t.filter=function(t,r,e){return i(t,r,e,n)}}},{}],15:[function(t,n,i){n.exports=function(n,i,r){var e=t("./util"),u=n.CancellationError,o=e.errorObj,s=t("./catch_filter")(r);function f(t,n,i){this.promise=t,this.type=n,this.handler=i,this.called=!1,this.cancelPromise=null}function c(t){this.finallyHandler=t}function h(t,n){return null!=t.cancelPromise&&(arguments.length>1?t.cancelPromise.J(n):t.cancelPromise.Ot(),t.cancelPromise=null,!0)}function v(){return d.call(this,this.promise.ft().cn())}function l(t){if(!h(this,t))return o.e=t,o}function d(t){var e=this.promise,s=this.handler;if(!this.called){this.called=!0;var f=this.isFinallyHandler()?s.call(e.ct()):s.call(e.ct(),t);if(f===r)return f;if(void 0!==f){e.in();var a=i(f,e);if(a instanceof n){if(null!=this.cancelPromise){if(a.Ut()){var d=new u("late cancellation observer");return e.Vt(d),o.e=d,o}a.isPending()&&a.pn(new c(this))}return a.nt(v,l,void 0,this,void 0)}}}return e.isRejected()?(h(this),o.e=t,o):(h(this),t)}return f.prototype.isFinallyHandler=function(){return 0===this.type},c.prototype._resultCancelled=function(){h(this.finallyHandler)},n.prototype.Dn=function(t,n,i,r){return"function"!=typeof t?this.then():this.nt(i,r,void 0,new f(this,n,t),void 0)},n.prototype.lastly=n.prototype.finally=function(t){return this.Dn(t,0,d,d)},n.prototype.tap=function(t){return this.Dn(t,1,d)},n.prototype.tapCatch=function(t){var i=arguments.length;if(1===i)return this.Dn(t,1,void 0,d);var r,u=new Array(i-1),o=0;for(r=0;r<i-1;++r){var f=arguments[r];if(!e.isObject(f))return n.reject(new a("tapCatch statement predicate: expecting an object but got "+e.classString(f)));u[o++]=f}u.length=o;var c=arguments[r];return this.Dn(s(u,c,this),1,void 0,d)},f}},{"./catch_filter":7,"./util":36}],16:[function(t,n,i){n.exports=function(n,i,r,e,u,o){var s=t("./errors"),f=s.TypeError,a=t("./util"),v=a.errorObj,l=a.tryCatch,d=[];function w(t,i,e,u){if(o.cancellation()){var s=new n(r),f=this.Cn=new n(r);this.Pn=s.lastly(function(){return f}),s.wn(),s.dt(this)}else{var c=this.Pn=new n(r);c.wn()}this.On=u,this.Bn=t,this.Ln=i,this.xn=void 0,this.Mn="function"==typeof e?[e].concat(d):d,this.Fn=null,this.Un=!1}a.inherits(w,u),w.prototype.Hn=function(){return null===this.Pn},w.prototype.Vn=function(){this.Pn=this.xn=null,o.cancellation()&&null!==this.Cn&&(this.Cn.Xn(),this.Cn=null)},w.prototype.zn=function(){if(!this.Hn()){var t,i=void 0!==this.xn.return;if(i)this.Pn.Wt(),t=l(this.xn.return).call(this.xn,void 0),this.Pn.jt();else{var r=new n.CancellationError("generator .return() sentinel");n.coroutine.returnSentinel=r,this.Pn.Vt(r),this.Pn.Wt(),t=l(this.xn.throw).call(this.xn,r),this.Pn.jt()}this.Un=!0,this.Fn=null,this.qn(t)}},w.prototype.Gn=function(t){this.Fn=null,this.Pn.Wt();var n=l(this.xn.next).call(this.xn,t);this.Pn.jt(),this.qn(n)},w.prototype.Wn=function(t){this.Fn=null,this.Pn.Vt(t),this.Pn.Wt();var n=l(this.xn.throw).call(this.xn,t);this.Pn.jt(),this.qn(n)},w.prototype._resultCancelled=function(){if(this.Fn instanceof n){var t=this.Fn;this.Fn=null,t.cancel()}},w.prototype.promise=function(){return this.Pn},w.prototype.jn=function(){this.xn=this.Bn.call(this.Ln),this.Ln=this.Bn=void 0,this.Gn(void 0)},w.prototype.qn=function(t){var i=this.Pn;if(t===v)return this.Vn(),this.Un?i.cancel():i.Yn(t.e,!1);var r=t.value;if(!0===t.done)return this.Vn(),this.Un?i.cancel():i.ot(r);var u=e(r,this.Pn);if(u instanceof n||null!==(u=function(t,i,r){for(var u=0;u<i.length;++u){r.Wt();var o=l(i[u])(t);if(r.jt(),o===v){r.Wt();var s=n.reject(v.e);return r.jt(),s}var f=e(o,r);if(f instanceof n)return f}return null}(u,this.Mn,this.Pn))){var o=(u=u.ft()).ut;0==(50397184&o)?(this.Fn=u,u.Qn(this,null)):0!=(33554432&o)?n.yt.invoke(this.Gn,this,u.Kn()):0!=(16777216&o)?n.yt.invoke(this.Wn,this,u.Zn()):this.zn()}else this.Wn(new f("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",String(r))+"From coroutine:\n"+this.On.split("\n").slice(1,-7).join("\n")))},n.coroutine=function(t,n){if("function"!=typeof t)throw new f("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var i=h(n).yieldHandler,r=w,e=(new c).stack;return function(){var n=t.apply(this,arguments),u=new r(void 0,void 0,i,e),o=u.promise();return u.xn=n,u.Gn(void 0),o}},n.coroutine.addYieldHandler=function(t){if("function"!=typeof t)throw new f("expecting a function but got "+a.classString(t));d.push(t)},n.spawn=function(t){if(o.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof t)return i("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var r=new w(t,this),e=r.promise();return r.jn(n.spawn),e}}},{"./errors":12,"./util":36}],17:[function(t,n,i){n.exports=function(n,i,r,e,u,o){var s=t("./util");s.canEvaluate,s.tryCatch,s.errorObj,n.join=function(){var t,n=arguments.length-1;n>0&&"function"==typeof arguments[n]&&(t=arguments[n]);var r=[].slice.call(arguments);t&&r.pop();var e=new i(r).promise();return void 0!==t?e.spread(t):e}}},{"./util":36}],18:[function(t,n,i){n.exports=function(n,i,r,e,u,o){var s=n.Qt,f=t("./util"),c=f.tryCatch,h=f.errorObj,v=n.yt;function l(t,n,i,r){this.constructor$(t),this.Pn.wn();var e=s();this.Jn=null===e?n:f.domainBind(e,n),this.$n=r===u?new Array(this.length()):null,this.ni=i,this.ri=0,this.ei=[],v.invoke(this.oi,this,void 0)}function d(t,i,e,u){if("function"!=typeof i)return r("expecting a function but got "+f.classString(i));var o=0;if(void 0!==e){if("object"!=typeof e||null===e)return n.reject(new a("options argument must be an object but it is "+f.classString(e)));if("number"!=typeof e.concurrency)return n.reject(new a("'concurrency' must be a number but it is "+f.classString(e.concurrency)));o=e.concurrency}return o="number"==typeof o&&isFinite(o)&&o>=1?o:0,new l(t,i,o,u).promise()}f.inherits(l,i),l.prototype.oi=function(){this._init$(void 0,-2)},l.prototype._init=function(){},l.prototype.Gn=function(t,i){var r=this.ai,u=this.length(),s=this.$n,f=this.ni;if(i<0){if(r[i=-1*i-1]=t,f>=1&&(this.ri--,this.ci(),this.Hn()))return!0}else{if(f>=1&&this.ri>=f)return r[i]=t,this.ei.push(i),!1;null!==s&&(s[i]=t);var a=this.Pn,v=this.Jn,l=a.ct();a.Wt();var d=c(v).call(l,t,i,u),w=a.jt();if(o.checkForgottenReturns(d,w,null!==s?"Promise.filter":"Promise.map",a),d===h)return this.J(d.e),!0;var y=e(d,this.Pn);if(y instanceof n){var p=(y=y.ft()).ut;if(0==(50397184&p))return f>=1&&this.ri++,r[i]=y,y.Qn(this,-1*(i+1)),!1;if(0==(33554432&p))return 0!=(16777216&p)?(this.J(y.Zn()),!0):(this.Ot(),!0);d=y.Kn()}r[i]=d}var b=++this.di;return b>=u&&(null!==s?this._i(r,s):this.gi(r),!0)},l.prototype.ci=function(){for(var t=this.ei,n=this.ni,i=this.ai;t.length>0&&this.ri<n;){if(this.Hn())return;var r=t.pop();this.Gn(i[r],r)}},l.prototype._i=function(t,n){for(var i=n.length,r=new Array(i),e=0,u=0;u<i;++u)t[u]&&(r[e++]=n[u]);r.length=e,this.gi(r)},l.prototype.preservedValues=function(){return this.$n},n.prototype.map=function(t,n){return d(this,t,n,null)},n.map=function(t,n,i,r){return d(t,n,i,r)}}},{"./util":36}],19:[function(t,n,i){n.exports=function(n,i,r,e,u){var o=t("./util"),s=o.tryCatch;n.method=function(t){if("function"!=typeof t)throw new n.TypeError("expecting a function but got "+o.classString(t));return function(){var r=new n(i);r.wn(),r.Wt();var e=s(t).apply(this,arguments),o=r.jt();return u.checkForgottenReturns(e,o,"Promise.method",r),r.wi(e),r}},n.attempt=n.try=function(t){if("function"!=typeof t)return e("expecting a function but got "+o.classString(t));var r,f=new n(i);if(f.wn(),f.Wt(),arguments.length>1){u.deprecated("calling Promise.try with more than 1 argument");var c=arguments[1],a=arguments[2];r=o.isArray(c)?s(t).apply(a,c):s(t).call(a,c)}else r=s(t)();var h=f.jt();return u.checkForgottenReturns(r,h,"Promise.try",f),f.wi(r),f},n.prototype.wi=function(t){t===o.errorObj?this.Yn(t.e,!1):this.ot(t,!0)}}},{"./util":36}],20:[function(t,n,i){var r=t("./util"),e=r.maybeWrapAsError,u=t("./errors"),o=u.OperationalError,s=t("./es5"),f=/^(?:name|message|stack|cause)$/;function a(t){var n;if(function(t){return t instanceof c&&s.getPrototypeOf(t)===c.prototype}(t)){(n=new o(t)).name=t.name,n.message=t.message,n.stack=t.stack;for(var i=s.keys(t),e=0;e<i.length;++e){var u=i[e];f.test(u)||(n[u]=t[u])}return n}return r.markAsOriginatingFromRejection(t),t}n.exports=function(t,n){return function(i,r){if(null!==t){if(i){var u=a(e(i));t.Vt(u),t.J(u)}else if(n){var o=[].slice.call(arguments,1);t.Xn(o)}else t.Xn(r);t=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(t,n,i){n.exports=function(n){var i=t("./util"),r=n.yt,e=i.tryCatch,u=i.errorObj;function o(t,n){if(!i.isArray(t))return s.call(this,t,n);var o=e(n).apply(this.ct(),[null].concat(t));o===u&&r.throwLater(o.e)}function s(t,n){var i=this.ct(),o=void 0===t?e(n).call(i,null):e(n).call(i,null,t);o===u&&r.throwLater(o.e)}function f(t,n){if(!t){var i=new c(t+"");i.cause=t,t=i}var o=e(n).call(this.ct(),t);o===u&&r.throwLater(o.e)}n.prototype.asCallback=n.prototype.nodeify=function(t,n){if("function"==typeof t){var i=s;void 0!==n&&h(n).spread&&(i=o),this.nt(i,f,void 0,this,t)}return this}}},{"./util":36}],22:[function(t,n,i){n.exports=function(){var i=function(){return new d("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},r=function(){return new O.PromiseInspection(this.ft())},e=function(t){return O.reject(new d(t))};function u(){}var o,s={},f=t("./util");o=f.isNode?function(){var t=process.domain;return void 0===t&&(t=null),t}:function(){return null},f.notEnumerableProp(O,"Qt",o);var c=t("./es5"),a=t("./async"),v=new a;c.defineProperty(O,"yt",{value:v});var l=t("./errors"),d=O.TypeError=l.TypeError;O.RangeError=l.RangeError;var w=O.CancellationError=l.CancellationError;O.TimeoutError=l.TimeoutError,O.OperationalError=l.OperationalError,O.RejectionError=l.OperationalError,O.AggregateError=l.AggregateError;var y=function(){},p={},b={},g=t("./thenables")(O,y),m=t("./promise_array")(O,y,g,e,u),_=t("./context")(O),E=_.create,S=t("./debuggability")(O,_),I=(S.CapturedTrace,t("./finally")(O,g,b)),R=t("./catch_filter")(b),T=t("./nodeback"),k=f.errorObj,A=f.tryCatch;function O(t){t!==y&&function(t,n){if(null==t||t.constructor!==O)throw new d("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n");if("function"!=typeof n)throw new d("expecting a function but got "+f.classString(n))}(this,t),this.ut=0,this.Ai=void 0,this.Ti=void 0,this.Si=void 0,this.Ei=void 0,this.Ii(t),this.Gt(),this.Sn("promiseCreated",this)}function N(t){this.promise.ot(t)}function D(t){this.promise.Yn(t,!1)}function C(t){var n=new O(y);n.Ai=t,n.Ti=t,n.Si=t,n.Ei=t}return O.prototype.toString=function(){return"[object Promise]"},O.prototype.caught=O.prototype.catch=function(t){var n=arguments.length;if(n>1){var i,r=new Array(n-1),u=0;for(i=0;i<n-1;++i){var o=arguments[i];if(!f.isObject(o))return e("Catch statement predicate: expecting an object but got "+f.classString(o));r[u++]=o}if(r.length=u,"function"!=typeof(t=arguments[i]))throw new d("The last argument to .catch() must be a function, got "+f.toString(t));return this.then(void 0,R(r,t,this))}return this.then(void 0,t)},O.prototype.reflect=function(){return this.nt(r,r,void 0,this,void 0)},O.prototype.then=function(t,n){if(S.warnings()&&arguments.length>0&&"function"!=typeof t&&"function"!=typeof n){var i=".then() only accepts functions but was passed: "+f.classString(t);arguments.length>1&&(i+=", "+f.classString(n)),this.kt(i)}return this.nt(t,n,void 0,void 0,void 0)},O.prototype.done=function(t,n){var i=this.nt(t,n,void 0,void 0,void 0);i.Ri()},O.prototype.spread=function(t){return"function"!=typeof t?e("expecting a function but got "+f.classString(t)):this.all().nt(t,void 0,void 0,p,void 0)},O.prototype.toJSON=function(){var t={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(t.fulfillmentValue=this.value(),t.isFulfilled=!0):this.isRejected()&&(t.rejectionReason=this.reason(),t.isRejected=!0),t},O.prototype.all=function(){return arguments.length>0&&this.kt(".all() was passed arguments but it does not take any"),new m(this).promise()},O.prototype.error=function(t){return this.caught(f.originatesFromRejection,t)},O.getNewLibraryCopy=n.exports,O.is=function(t){return t instanceof O},O.fromNode=O.fromCallback=function(t){var n=new O(y);n.wn();var i=arguments.length>1&&!!h(arguments[1]).multiArgs,r=A(t)(T(n,i));return r===k&&n.Yn(r.e,!0),n.Ni()||n.Di(),n},O.all=function(t){return new m(t).promise()},O.cast=function(t){var n=g(t);return n instanceof O||((n=new O(y)).wn(),n.Ci(),n.Ti=t),n},O.resolve=O.fulfilled=O.cast,O.reject=O.rejected=function(t){var n=new O(y);return n.wn(),n.Yn(t,!0),n},O.setScheduler=function(t){if("function"!=typeof t)throw new d("expecting a function but got "+f.classString(t));return v.setScheduler(t)},O.prototype.nt=function(t,n,i,r,e){var u=void 0!==e,s=u?e:new O(y),c=this.ft(),a=c.ut;u||(s.at(this,3),s.wn(),void 0===r&&0!=(2097152&this.ut)&&(r=0!=(50397184&a)?this.ct():c===this?void 0:this._t),this.Sn("promiseChained",this,s));var h=o();if(0!=(50397184&a)){var l,d,p=c.Pi;0!=(33554432&a)?(d=c.Ti,l=t):0!=(16777216&a)?(d=c.Ai,l=n,c._n()):(p=c.Oi,d=new w("late cancellation observer"),c.Vt(d),l=n),v.invoke(p,c,{handler:null===h?l:"function"==typeof l&&f.domainBind(h,l),promise:s,receiver:r,value:d})}else c.Bi(t,n,s,r,h);return s},O.prototype.xt=function(){return 65535&this.ut},O.prototype.Ni=function(){return 0!=(117506048&this.ut)},O.prototype.Tt=function(){return 67108864==(67108864&this.ut)},O.prototype.Li=function(t){this.ut=-65536&this.ut|65535&t},O.prototype.Ci=function(){this.ut=33554432|this.ut,this.Sn("promiseFulfilled",this)},O.prototype.xi=function(){this.ut=16777216|this.ut,this.Sn("promiseRejected",this)},O.prototype.Mi=function(){this.ut=67108864|this.ut,this.Sn("promiseResolved",this)},O.prototype.Ri=function(){this.ut=4194304|this.ut},O.prototype.Fi=function(){return(4194304&this.ut)>0},O.prototype.Ui=function(){this.ut=-65537&this.ut},O.prototype.Bt=function(){this.ut=65536|this.ut,this.Sn("promiseCancelled",this)},O.prototype.Rt=function(){this.ut=8388608|this.ut},O.prototype.Di=function(){v.hasCustomScheduler()||(this.ut=134217728|this.ut)},O.prototype.Hi=function(t){var n=0===t?this.Ei:this[4*t-4+3];if(n!==s)return void 0===n&&this.wt()?this.ct():n},O.prototype.Vi=function(t){return this[4*t-4+2]},O.prototype.Xi=function(t){return this[4*t-4+0]},O.prototype.zi=function(t){return this[4*t-4+1]},O.prototype.ct=function(){},O.prototype.qi=function(t){t.ut;var n=t.Ai,i=t.Ti,r=t.Si,e=t.Hi(0);void 0===e&&(e=s),this.Bi(n,i,r,e,null)},O.prototype.Gi=function(t,n){var i=t.Xi(n),r=t.zi(n),e=t.Vi(n),u=t.Hi(n);void 0===u&&(u=s),this.Bi(i,r,e,u,null)},O.prototype.Bi=function(t,n,i,r,e){var u=this.xt();if(u>=65531&&(u=0,this.Li(0)),0===u)this.Si=i,this.Ei=r,"function"==typeof t&&(this.Ai=null===e?t:f.domainBind(e,t)),"function"==typeof n&&(this.Ti=null===e?n:f.domainBind(e,n));else{var o=4*u-4;this[o+2]=i,this[o+3]=r,"function"==typeof t&&(this[o+0]=null===e?t:f.domainBind(e,t)),"function"==typeof n&&(this[o+1]=null===e?n:f.domainBind(e,n))}return this.Li(u+1),u},O.prototype.Qn=function(t,n){this.Bi(void 0,void 0,n,t,null)},O.prototype.ot=function(t,n){if(0==(117506048&this.ut)){if(t===this)return this.Yn(i(),!1);var r=g(t,this);if(!(r instanceof O))return this.Xn(t);n&&this.at(r,2);var e=r.ft();if(e!==this){var u=e.ut;if(0==(50397184&u)){var o=this.xt();o>0&&e.qi(this);for(var s=1;s<o;++s)e.Gi(this,s);this.Mi(),this.Li(0),this.Wi(e)}else if(0!=(33554432&u))this.Xn(e.Kn());else if(0!=(16777216&u))this.J(e.Zn());else{var f=new w("late cancellation observer");e.Vt(f),this.J(f)}}else this.J(i())}},O.prototype.Yn=function(t,n,i){var r=f.ensureErrorObject(t),e=r===t;if(!e&&!i&&S.warnings()){var u="a promise was rejected with a non-error: "+f.classString(t);this.kt(u,!0)}this.Vt(r,!!n&&e),this.J(t)},O.prototype.Ii=function(t){if(t!==y){var n=this;this.wn(),this.Wt();var i=!0,r=this.Tn(t,function(t){n.ot(t)},function(t){n.Yn(t,i)});i=!1,this.jt(),void 0!==r&&n.Yn(r,!0)}},O.prototype.ji=function(t,n,i,r){var e=r.ut;if(0==(65536&e)){var u;r.Wt(),n===p?i&&"number"==typeof i.length?u=A(t).apply(this.ct(),i):(u=k).e=new d("cannot .spread() a non-array: "+f.classString(i)):u=A(t).call(n,i);var o=r.jt();0==(65536&(e=r.ut))&&(u===b?r.J(i):u===k?r.Yn(u.e,!1):(S.checkForgottenReturns(u,o,"",r,this),r.ot(u)))}},O.prototype.ft=function(){for(var t=this;t.Tt();)t=t.St();return t},O.prototype.St=function(){return this.Ti},O.prototype.Wi=function(t){this.Ti=t},O.prototype.Yi=function(t,n,i,e){var o=t instanceof O,s=this.ut,f=0!=(134217728&s);0!=(65536&s)?(o&&t.zt(),i instanceof I&&i.isFinallyHandler()?(i.cancelPromise=t,A(n).call(i,e)===k&&t.J(k.e)):n===r?t.Xn(r.call(i)):i instanceof u?i.zn(t):o||t instanceof m?t.Ot():i.cancel()):"function"==typeof n?o?(f&&t.Di(),this.ji(n,i,e,t)):n.call(i,e,t):i instanceof u?i.Hn()||(0!=(33554432&s)?i.Gn(e,t):i.Wn(e,t)):o&&(f&&t.Di(),0!=(33554432&s)?t.Xn(e):t.J(e))},O.prototype.Oi=function(t){var n=t.handler,i=t.promise,r=t.receiver,e=t.value;"function"==typeof n?i instanceof O?this.ji(n,r,e,i):n.call(r,e,i):i instanceof O&&i.J(e)},O.prototype.Pi=function(t){this.Yi(t.promise,t.handler,t.receiver,t.value)},O.prototype.Qi=function(t,n,i){var r=this.Si,e=this.Hi(0);this.Si=void 0,this.Ei=void 0,this.Yi(r,t,e,n)},O.prototype.Ki=function(t){var n=4*t-4;this[n+2]=this[n+3]=this[n+0]=this[n+1]=void 0},O.prototype.Xn=function(t){var n=this.ut;if(!((117506048&n)>>>16)){if(t===this){var r=i();return this.Vt(r),this.J(r)}this.Ci(),this.Ti=t,(65535&n)>0&&(0!=(134217728&n)?this.K():v.settlePromises(this),this.yn())}},O.prototype.J=function(t){var n=this.ut;if(!((117506048&n)>>>16)){if(this.xi(),this.Ai=t,this.Fi())return v.fatalError(t,f.isNode);(65535&n)>0?v.settlePromises(this):this.Kt()}},O.prototype.Zi=function(t,n){for(var i=1;i<t;i++){var r=this.Xi(i),e=this.Vi(i),u=this.Hi(i);this.Ki(i),this.Yi(e,r,u,n)}},O.prototype.Ji=function(t,n){for(var i=1;i<t;i++){var r=this.zi(i),e=this.Vi(i),u=this.Hi(i);this.Ki(i),this.Yi(e,r,u,n)}},O.prototype.K=function(){var t=this.ut,n=65535&t;if(n>0){if(0!=(16842752&t)){var i=this.Ai;this.Qi(this.Ti,i,t),this.Ji(n,i)}else{var r=this.Ti;this.Qi(this.Ai,r,t),this.Zi(n,r)}this.Li(0)}this.An()},O.prototype.cn=function(){var t=this.ut;return 0!=(33554432&t)?this.Ti:0!=(16777216&t)?this.Ai:void 0},"undefined"!=typeof Symbol&&Symbol.toStringTag&&c.defineProperty(O.prototype,Symbol.toStringTag,{get:function(){return"Object"}}),O.defer=O.pending=function(){S.deprecated("Promise.defer","new Promise");var t=new O(y);return{promise:t,resolve:N,reject:D}},f.notEnumerableProp(O,"$i",i),t("./method")(O,y,g,e,S),t("./bind")(O,y,g,S),t("./cancel")(O,m,e,S),t("./direct_resolve")(O),t("./synchronous_inspection")(O),t("./join")(O,m,g,y,v,o),O.Promise=O,O.version="3.5.5",t("./call_get.js")(O),t("./generators.js")(O,e,y,g,u,S),t("./map.js")(O,m,e,g,y,S),t("./nodeify.js")(O),t("./promisify.js")(O,y),t("./props.js")(O,m,g,e),t("./race.js")(O,y,g,e),t("./reduce.js")(O,m,e,g,y,S),t("./settle.js")(O,m,S),t("./some.js")(O,m,e),t("./timers.js")(O,y,S),t("./using.js")(O,e,g,E,y,S),t("./any.js")(O),t("./each.js")(O,y),t("./filter.js")(O,y),f.toFastProperties(O),f.toFastProperties(O.prototype),C({a:1}),C({b:2}),C({c:3}),C(1),C(function(){}),C(void 0),C(!1),C(new O(y)),S.setBounds(a.firstLineError,f.lastLineError),O}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(t,n,i){n.exports=function(n,i,r,e,u){var o=t("./util");function s(t){var r=this.Pn=new n(i);t instanceof n&&r.at(t,3),r.dt(this),this.ai=t,this.xt=0,this.di=0,this._init(void 0,-2)}return o.isArray,o.inherits(s,u),s.prototype.length=function(){return this.xt},s.prototype.promise=function(){return this.Pn},s.prototype._init=function t(i,u){var s=r(this.ai,this.Pn);if(s instanceof n){var f=(s=s.ft()).ut;if(this.ai=s,0==(50397184&f))return this.Pn.Di(),s.nt(t,this.J,void 0,this,u);if(0==(33554432&f))return 0!=(16777216&f)?this.J(s.Zn()):this.Ot();s=s.Kn()}if(null!==(s=o.asArray(s)))0!==s.length?this.ir(s):-5===u?this.rr():this.gi(function(t){switch(t){case-2:return[];case-3:return{};case-6:return new Map}}(u));else{var c=e("expecting an array or an iterable object but got "+o.classString(s)).reason();this.Pn.Yn(c,!1)}},s.prototype.ir=function(t){var i=this.getActualLength(t.length);this.xt=i,this.ai=this.shouldCopyValues()?new Array(i):this.ai;for(var e=this.Pn,u=!1,o=null,s=0;s<i;++s){var f=r(t[s],e);f instanceof n?(f=f.ft(),o=f.ut):o=null,u?null!==o&&f.suppressUnhandledRejections():null!==o?0==(50397184&o)?(f.Qn(this,s),this.ai[s]=f):u=0!=(33554432&o)?this.Gn(f.Kn(),s):0!=(16777216&o)?this.Wn(f.Zn(),s):this.zn(s):u=this.Gn(f,s)}u||e.Di()},s.prototype.Hn=function(){return null===this.ai},s.prototype.gi=function(t){this.ai=null,this.Pn.Xn(t)},s.prototype.Ot=function(){!this.Hn()&&this.Pn.bt()&&(this.ai=null,this.Pn.Ot())},s.prototype.J=function(t){this.ai=null,this.Pn.Yn(t,!1)},s.prototype.Gn=function(t,n){this.ai[n]=t;var i=++this.di;return i>=this.xt&&(this.gi(this.ai),!0)},s.prototype.zn=function(){return this.Ot(),!0},s.prototype.Wn=function(t){return this.di++,this.J(t),!0},s.prototype._resultCancelled=function(){if(!this.Hn()){var t=this.ai;if(this.Ot(),t instanceof n)t.cancel();else for(var i=0;i<t.length;++i)t[i]instanceof n&&t[i].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(t){return t},s}},{"./util":36}],24:[function(t,n,i){n.exports=function(n,i){var r={},e=t("./util"),u=t("./nodeback"),o=e.withAppended,s=e.maybeWrapAsError,f=e.canEvaluate,c=t("./errors").TypeError,a={dr:!0},v=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","dr"].join("|")+")$"),l=function(t){return e.isIdentifier(t)&&"_"!==t.charAt(0)&&"constructor"!==t};function d(t){return!v.test(t)}function w(t){try{return!0===t.dr}catch(t){return!1}}function y(t,n,i){var r=e.getDataPropertyOrDefault(t,n+i,a);return!!r&&w(r)}function p(t,n,i,r){for(var u=e.inheritedDataKeys(t),o=[],s=0;s<u.length;++s){var f=u[s],a=t[f],h=r===l||l(f);"function"!=typeof a||w(a)||y(t,f,n)||!r(f,a,t,h)||o.push(f,a)}return function(t,n,i){for(var r=0;r<t.length;r+=2){var e=t[r];if(i.test(e))for(var u=e.replace(i,""),o=0;o<t.length;o+=2)if(t[o]===u)throw new c("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",n))}}(o,n,i),o}var b=function(t){return t.replace(/([$])/,"\\$")},g=f?void 0:function(t,f,c,a,h,v){var l=function(){return this}(),d=t;function w(){var e=f;f===r&&(e=this);var c=new n(i);c.wn();var a="string"==typeof d&&this!==l?this[d]:t,h=u(c,v);try{a.apply(e,o(arguments,h))}catch(t){c.Yn(s(t),!0,!0)}return c.Ni()||c.Di(),c}return"string"==typeof d&&(t=a),e.notEnumerableProp(w,"dr",!0),w};function m(t,n,i,u,o){for(var s=new RegExp(b(n)+"$"),f=p(t,n,s,i),c=0,a=f.length;c<a;c+=2){var h=f[c],v=f[c+1],l=h+n;if(u===g)t[l]=g(h,r,h,v,n,o);else{var d=u(v,function(){return g(h,r,h,v,n,o)});e.notEnumerableProp(d,"dr",!0),t[l]=d}}return e.toFastProperties(t),t}n.promisify=function(t,n){if("function"!=typeof t)throw new c("expecting a function but got "+e.classString(t));if(w(t))return t;var i=void 0===(n=h(n)).context?r:n.context,u=!!n.multiArgs,o=function(t,n,i){return g(t,n,void 0,t,null,i)}(t,i,u);return e.copyDescriptors(t,o,d),o},n.promisifyAll=function(t,n){if("function"!=typeof t&&"object"!=typeof t)throw new c("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");var i=!!(n=h(n)).multiArgs,r=n.suffix;"string"!=typeof r&&(r="Async");var u=n.filter;"function"!=typeof u&&(u=l);var o=n.promisifier;if("function"!=typeof o&&(o=g),!e.isIdentifier(r))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var s=e.inheritedDataKeys(t),f=0;f<s.length;++f){var a=t[s[f]];"constructor"!==s[f]&&e.isClass(a)&&(m(a.prototype,r,u,o,i),m(a,r,u,o,i))}return m(t,r,u,o,i)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(t,n,i){n.exports=function(n,i,r,e){var u,o=t("./util"),s=o.isObject,f=t("./es5");"function"==typeof Map&&(u=Map);var c=function(){var t=0,n=0;function i(i,r){this[t]=i,this[t+n]=r,t++}return function(r){n=r.size,t=0;var e=new Array(2*r.size);return r.forEach(i,e),e}}();function a(t){var n,i=!1;if(void 0!==u&&t instanceof u)n=c(t),i=!0;else{var r=f.keys(t),e=r.length;n=new Array(2*e);for(var o=0;o<e;++o){var s=r[o];n[o]=t[s],n[o+e]=s}}this.constructor$(n),this._r=i,this._init$(void 0,i?-6:-3)}function h(t){var i,u=r(t);return s(u)?(i=u instanceof n?u.nt(n.props,void 0,void 0,void 0,void 0):new a(u).promise(),u instanceof n&&i.at(u,2),i):e("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}o.inherits(a,i),a.prototype._init=function(){},a.prototype.Gn=function(t,n){this.ai[n]=t;var i=++this.di;if(i>=this.xt){var r;if(this._r)r=function(t){for(var n=new u,i=t.length/2|0,r=0;r<i;++r){var e=t[i+r],o=t[r];n.set(e,o)}return n}(this.ai);else{r={};for(var e=this.length(),o=0,s=this.length();o<s;++o)r[this.ai[o+e]]=this.ai[o]}return this.gi(r),!0}return!1},a.prototype.shouldCopyValues=function(){return!1},a.prototype.getActualLength=function(t){return t>>1},n.prototype.props=function(){return h(this)},n.props=function(t){return h(t)}}},{"./es5":13,"./util":36}],26:[function(t,n,i){function r(t){this.gr=t,this.xt=0,this.wr=0}r.prototype.yr=function(t){return this.gr<t},r.prototype.Y=function(t){var n=this.length();this.pr(n+1);var i=this.wr+n&this.gr-1;this[i]=t,this.xt=n+1},r.prototype.push=function(t,n,i){var r=this.length()+3;if(this.yr(r))return this.Y(t),this.Y(n),void this.Y(i);var e=this.wr+r-3;this.pr(r);var u=this.gr-1;this[e+0&u]=t,this[e+1&u]=n,this[e+2&u]=i,this.xt=r},r.prototype.shift=function(){var t=this.wr,n=this[t];return this[t]=void 0,this.wr=t+1&this.gr-1,this.xt--,n},r.prototype.length=function(){return this.xt},r.prototype.pr=function(t){this.gr<t&&this.Ar(this.gr<<1)},r.prototype.Ar=function(t){var n=this.gr;this.gr=t;var i=this.wr,r=this.xt,e=i+r&n-1;!function(t,n,i,r,e){for(var u=0;u<e;++u)i[u+r]=t[u+n],t[u+n]=void 0}(this,0,this,n,e)},n.exports=r},{}],27:[function(t,n,i){n.exports=function(n,i,r,e){var u=t("./util"),o=function(t){return t.then(function(n){return s(n,t)})};function s(t,s){var f=r(t);if(f instanceof n)return o(f);if(null===(t=u.asArray(t)))return e("expecting an array or an iterable object but got "+u.classString(t));var c=new n(i);void 0!==s&&c.at(s,3);for(var a=c.Xn,h=c.J,v=0,l=t.length;v<l;++v){var d=t[v];(void 0!==d||v in t)&&n.cast(d).nt(a,h,void 0,c,null)}return c}n.race=function(t){return s(t,void 0)},n.prototype.race=function(){return s(this,void 0)}}},{"./util":36}],28:[function(t,n,i){n.exports=function(n,i,r,e,u,o){var s=n.Qt,f=t("./util"),c=f.tryCatch;function a(t,i,r,e){this.constructor$(t);var o=s();this._fn=null===o?i:f.domainBind(o,i),void 0!==r&&(r=n.resolve(r)).pn(this),this.Sr=r,this.Er=null,this.Ir=e===u?Array(this.xt):0===e?null:void 0,this.Pn.wn(),this._init$(void 0,-5)}function h(t,n){this.isFulfilled()?n.gi(t):n.J(t)}function v(t,n,i,e){if("function"!=typeof n)return r("expecting a function but got "+f.classString(n));var u=new a(t,n,i,e);return u.promise()}function l(t){this.accum=t,this.array.Rr(t);var i=e(this.value,this.array.Pn);return i instanceof n?(this.array.Er=i,i.nt(d,void 0,void 0,this,void 0)):d.call(this,i)}function d(t){var i,r=this.array,e=r.Pn,u=c(r._fn);e.Wt(),(i=void 0!==r.Ir?u.call(e.ct(),t,this.index,this.length):u.call(e.ct(),this.accum,t,this.index,this.length))instanceof n&&(r.Er=i);var s=e.jt();return o.checkForgottenReturns(i,s,void 0!==r.Ir?"Promise.each":"Promise.reduce",e),i}f.inherits(a,i),a.prototype.Rr=function(t){void 0!==this.Ir&&null!==this.Ir&&t!==u&&this.Ir.push(t)},a.prototype.Nr=function(t){return null!==this.Ir&&this.Ir.push(t),this.Ir},a.prototype._init=function(){},a.prototype.rr=function(){this.gi(void 0!==this.Ir?this.Ir:this.Sr)},a.prototype.shouldCopyValues=function(){return!1},a.prototype.gi=function(t){this.Pn.ot(t),this.ai=null},a.prototype._resultCancelled=function(t){if(t===this.Sr)return this.Ot();this.Hn()||(this._resultCancelled$(),this.Er instanceof n&&this.Er.cancel(),this.Sr instanceof n&&this.Sr.cancel())},a.prototype.ir=function(t){var i,r;this.ai=t;var e=t.length;if(void 0!==this.Sr?(i=this.Sr,r=0):(i=n.resolve(t[0]),r=1),this.Er=i,!i.isRejected())for(;r<e;++r){var u={accum:null,value:t[r],index:r,length:e,array:this};i=i.nt(l,void 0,void 0,u,void 0)}void 0!==this.Ir&&(i=i.nt(this.Nr,void 0,void 0,this,void 0)),i.nt(h,h,void 0,i,this)},n.prototype.reduce=function(t,n){return v(this,t,n,null)},n.reduce=function(t,n,i,r){return v(t,n,i,r)}}},{"./util":36}],29:[function(t,n,e){var o,s,f,a,h,v=t("./util"),l=v.getNativePromise();if(v.isNode&&"undefined"==typeof MutationObserver){var d=b.setImmediate,w=process.nextTick;o=v.isRecentNode?function(t){d.call(b,t)}:function(t){w.call(process,t)}}else if("function"==typeof l&&"function"==typeof l.resolve){var y=l.resolve();o=function(t){y.then(t)}}else o="undefined"!=typeof MutationObserver&&(void 0===i||!i.navigator||!i.navigator.standalone&&!i.cordova)&&"classList"in r.documentElement?(s=r.createElement("div"),f={attributes:!0},a=!1,h=r.createElement("div"),new MutationObserver(function(){s.classList.toggle("foo"),a=!1}).observe(h,f),function(t){var n=new MutationObserver(function(){n.disconnect(),t()});n.observe(s,f),a||(a=!0,h.classList.toggle("foo"))}):"undefined"!=typeof setImmediate?function(t){setImmediate(t)}:void 0!==u?function(t){u(t,0)}:function(){throw new c("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")};n.exports=o},{"./util":36}],30:[function(t,n,i){n.exports=function(n,i,r){var e=n.PromiseInspection,u=t("./util");function o(t){this.constructor$(t)}u.inherits(o,i),o.prototype.Dr=function(t,n){this.ai[t]=n;var i=++this.di;return i>=this.xt&&(this.gi(this.ai),!0)},o.prototype.Gn=function(t,n){var i=new e;return i.ut=33554432,i.Cr=t,this.Dr(n,i)},o.prototype.Wn=function(t,n){var i=new e;return i.ut=16777216,i.Cr=t,this.Dr(n,i)},n.settle=function(t){return r.deprecated(".settle()",".reflect()"),new o(t).promise()},n.prototype.settle=function(){return n.settle(this)}}},{"./util":36}],31:[function(t,n,i){n.exports=function(n,i,r){var e=t("./util"),u=t("./errors").RangeError,o=t("./errors").AggregateError,s=e.isArray,f={};function c(t){this.constructor$(t),this.Pr=0,this.Or=!1,this.Br=!1}function a(t,n){if((0|n)!==n||n<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var i=new c(t),e=i.promise();return i.setHowMany(n),i.init(),e}e.inherits(c,i),c.prototype._init=function(){if(this.Br)if(0!==this.Pr){this._init$(void 0,-5);var t=s(this.ai);!this.Hn()&&t&&this.Pr>this.Lr()&&this.J(this.xr(this.length()))}else this.gi([])},c.prototype.init=function(){this.Br=!0,this._init()},c.prototype.setUnwrap=function(){this.Or=!0},c.prototype.howMany=function(){return this.Pr},c.prototype.setHowMany=function(t){this.Pr=t},c.prototype.Gn=function(t){return this.Mr(t),this.Fr()===this.howMany()&&(this.ai.length=this.howMany(),1===this.howMany()&&this.Or?this.gi(this.ai[0]):this.gi(this.ai),!0)},c.prototype.Wn=function(t){return this.Ur(t),this.Hr()},c.prototype.zn=function(){return this.ai instanceof n||null==this.ai?this.Ot():(this.Ur(f),this.Hr())},c.prototype.Hr=function(){if(this.howMany()>this.Lr()){for(var t=new o,n=this.length();n<this.ai.length;++n)this.ai[n]!==f&&t.push(this.ai[n]);return t.length>0?this.J(t):this.Ot(),!0}return!1},c.prototype.Fr=function(){return this.di},c.prototype.Vr=function(){return this.ai.length-this.length()},c.prototype.Ur=function(t){this.ai.push(t)},c.prototype.Mr=function(t){this.ai[this.di++]=t},c.prototype.Lr=function(){return this.length()-this.Vr()},c.prototype.xr=function(t){var n="Input array must contain at least "+this.Pr+" items but contains only "+t+" items";return new u(n)},c.prototype.rr=function(){this.J(this.xr(0))},n.some=function(t,n){return a(t,n)},n.prototype.some=function(t){return a(this,t)},n.l=c}},{"./errors":12,"./util":36}],32:[function(t,n,i){n.exports=function(t){function n(t){void 0!==t?(t=t.ft(),this.ut=t.ut,this.Cr=t.Ni()?t.cn():void 0):(this.ut=0,this.Cr=void 0)}n.prototype.cn=function(){return this.Cr};var i=n.prototype.value=function(){if(!this.isFulfilled())throw new a("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this.cn()},r=n.prototype.error=n.prototype.reason=function(){if(!this.isRejected())throw new a("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this.cn()},e=n.prototype.isFulfilled=function(){return 0!=(33554432&this.ut)},u=n.prototype.isRejected=function(){return 0!=(16777216&this.ut)},o=n.prototype.isPending=function(){return 0==(50397184&this.ut)},s=n.prototype.isResolved=function(){return 0!=(50331648&this.ut)};n.prototype.isCancelled=function(){return 0!=(8454144&this.ut)},t.prototype.Xr=function(){return 65536==(65536&this.ut)},t.prototype.Ut=function(){return this.ft().Xr()},t.prototype.isCancelled=function(){return 0!=(8454144&this.ft().ut)},t.prototype.isPending=function(){return o.call(this.ft())},t.prototype.isRejected=function(){return u.call(this.ft())},t.prototype.isFulfilled=function(){return e.call(this.ft())},t.prototype.isResolved=function(){return s.call(this.ft())},t.prototype.value=function(){return i.call(this.ft())},t.prototype.reason=function(){var t=this.ft();return t._n(),r.call(t)},t.prototype.Kn=function(){return this.cn()},t.prototype.Zn=function(){return this._n(),this.cn()},t.PromiseInspection=n}},{}],33:[function(t,n,i){n.exports=function(n,i){var r=t("./util"),e=r.errorObj,u=r.isObject,o={}.hasOwnProperty;return function(t,s){if(u(t)){if(t instanceof n)return t;var f=function(t){try{return function(t){return t.then}(t)}catch(t){return e.e=t,e}}(t);if(f===e){s&&s.Wt();var c=n.reject(f.e);return s&&s.jt(),c}if("function"==typeof f){if(function(t){try{return o.call(t,"Si")}catch(t){return!1}}(t)){var c=new n(i);return t.nt(c.Xn,c.J,void 0,c,null),c}return function(t,u,o){var s=new n(i),f=s;o&&o.Wt(),s.wn(),o&&o.jt();var c=!0,a=r.tryCatch(u).call(t,function(t){s&&(s.ot(t),s=null)},function(t){s&&(s.Yn(t,c,!0),s=null)});return c=!1,s&&a===e&&(s.Yn(a.e,!0,!0),s=null),f}(t,f,s)}}return t}}},{"./util":36}],34:[function(t,n,i){n.exports=function(n,i,r){var e=t("./util"),s=n.TimeoutError;function f(t){this.handle=t}f.prototype._resultCancelled=function(){o(this.handle)};var a=function(t){return h(+this).thenReturn(t)},h=n.delay=function(t,e){var o,s;return void 0!==e?(o=n.resolve(e).nt(a,null,null,t,void 0),r.cancellation()&&e instanceof n&&o.dt(e)):(o=new n(i),s=u(function(){o.Xn()},+t),r.cancellation()&&o.dt(new f(s)),o.wn()),o.Di(),o};function v(t){return o(this.handle),t}function l(t){throw o(this.handle),t}n.prototype.delay=function(t){return h(t,this)},n.prototype.timeout=function(t,n){var i,o,a=new f(u(function(){i.isPending()&&function(t,n,i){var r;r="string"!=typeof n?n instanceof c?n:new s("operation timed out"):new s(n),e.markAsOriginatingFromRejection(r),t.Vt(r),t.J(r),null!=i&&i.cancel()}(i,n,o)},t=+t));return r.cancellation()?(o=this.then(),(i=o.nt(v,l,void 0,a,void 0)).dt(a)):i=this.nt(v,l,void 0,a,void 0),i}}},{"./util":36}],35:[function(t,n,i){n.exports=function(n,i,r,e,o,s){var f=t("./util"),c=t("./errors").TypeError,a=t("./util").inherits,h=f.errorObj,v=f.tryCatch,l={};function d(t){u(function(){throw t},0)}function w(t,i){var e=0,u=t.length,s=new n(o);return function o(){if(e>=u)return s.Xn();var f=function(t){var n=r(t);return n!==t&&"function"==typeof t.zr&&"function"==typeof t.qr&&t.zr()&&n.Gr(t.qr()),n}(t[e++]);if(f instanceof n&&f.zr()){try{f=r(f.qr().tryDispose(i),t.promise)}catch(t){return d(t)}if(f instanceof n)return f.nt(o,d,null,null,null)}o()}(),s}function y(t,n,i){this.Wr=t,this.Pn=n,this.jr=i}function p(t,n,i){this.constructor$(t,n,i)}function b(t){return y.isDisposer(t)?(this.resources[this.index].Gr(t),t.promise()):t}function g(t){this.length=t,this.promise=null,this[t-1]=null}y.prototype.data=function(){return this.Wr},y.prototype.promise=function(){return this.Pn},y.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():l},y.prototype.tryDispose=function(t){var n=this.resource(),i=this.jr;void 0!==i&&i.Wt();var r=n!==l?this.doDispose(n,t):null;return void 0!==i&&i.jt(),this.Pn.Yr(),this.Wr=null,r},y.isDisposer=function(t){return null!=t&&"function"==typeof t.resource&&"function"==typeof t.tryDispose},a(p,y),p.prototype.doDispose=function(t,n){var i=this.data();return i.call(t,t,n)},g.prototype._resultCancelled=function(){for(var t=this.length,i=0;i<t;++i){var r=this[i];r instanceof n&&r.cancel()}},n.using=function(){var t=arguments.length;if(t<2)return i("you must pass at least 2 arguments to Promise.using");var e,u=arguments[t-1];if("function"!=typeof u)return i("expecting a function but got "+f.classString(u));var o=!0;2===t&&Array.isArray(arguments[0])?(e=arguments[0],t=e.length,o=!1):(e=arguments,t--);for(var c=new g(t),a=0;a<t;++a){var l=e[a];if(y.isDisposer(l)){var d=l;(l=l.promise()).Gr(d)}else{var p=r(l);p instanceof n&&(l=p.nt(b,null,null,{resources:c,index:a},void 0))}c[a]=l}for(var m=new Array(c.length),a=0;a<m.length;++a)m[a]=n.resolve(c[a]).reflect();var _=n.all(m).then(function(t){for(var n=0;n<t.length;++n){var i=t[n];if(i.isRejected())return h.e=i.error(),h;if(!i.isFulfilled())return void _.cancel();t[n]=i.value()}E.Wt(),u=v(u);var r=o?u.apply(void 0,t):u(t),e=E.jt();return s.checkForgottenReturns(r,e,"Promise.using",E),r}),E=_.lastly(function(){var t=new n.PromiseInspection(_);return w(c,t)});return c.promise=E,E.dt(c),E},n.prototype.Gr=function(t){this.ut=131072|this.ut,this.Qr=t},n.prototype.zr=function(){return(131072&this.ut)>0},n.prototype.qr=function(){return this.Qr},n.prototype.Yr=function(){this.ut=-131073&this.ut,this.Qr=void 0},n.prototype.disposer=function(t){if("function"==typeof t)return new p(t,this,e());throw new c}}},{"./errors":12,"./util":36}],36:[function(n,r,u){var o,s=n("./es5"),f=void 0===e,a={e:{}},v=void 0!==t?t:void 0!==i?i:void 0!==b?b:void 0!==this?this:null;function l(){try{var t=o;return o=null,t.apply(this,arguments)}catch(t){return a.e=t,a}}function d(t){return null==t||!0===t||!1===t||"string"==typeof t||"number"==typeof t}function w(t,n,i){if(d(t))return t;var r={value:i,configurable:!0,enumerable:!1,writable:!0};return s.defineProperty(t,n,r),t}var y=function(){var t=[Array.prototype,h.prototype,Function.prototype],n=function(n){for(var i=0;i<t.length;++i)if(t[i]===n)return!0;return!1};if(s.isES5){var i=h.getOwnPropertyNames;return function(t){for(var r=[],e=h.create(null);null!=t&&!n(t);){var u;try{u=i(t)}catch(t){return r}for(var o=0;o<u.length;++o){var f=u[o];if(!e[f]){e[f]=!0;var c=h.getOwnPropertyDescriptor(t,f);null!=c&&null==c.get&&null==c.set&&r.push(f)}}t=s.getPrototypeOf(t)}return r}}var r={}.hasOwnProperty;return function(i){if(n(i))return[];var e=[];t:for(var u in i)if(r.call(i,u))e.push(u);else{for(var o=0;o<t.length;++o)if(r.call(t[o],u))continue t;e.push(u)}return e}}(),p=/this\s*\.\s*\S+\s*=/,g=/^[a-z$_][a-z$_0-9]*$/i;function m(t){try{return t+""}catch(t){return"[no string representation]"}}function _(t){return t instanceof c||null!==t&&"object"==typeof t&&"string"==typeof t.message&&"string"==typeof t.name}function E(t){return _(t)&&s.propertyIsWritable(t,"stack")}var S="stack"in new c?function(t){return E(t)?t:new c(m(t))}:function(t){if(E(t))return t;try{throw new c(m(t))}catch(t){return t}};function I(t){return{}.toString.call(t)}var R=function(t){return s.isArray(t)?t:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var T="function"==typeof Array.from?function(t){return Array.from(t)}:function(t){for(var n,i=[],r=t[Symbol.iterator]();!(n=r.next()).done;)i.push(n.value);return i};R=function(t){return s.isArray(t)?t:null!=t&&"function"==typeof t[Symbol.iterator]?T(t):null}}var k,A="undefined"!=typeof process&&"[object process]"===I(process).toLowerCase(),O="undefined"!=typeof process&&void 0!==process.env,N={isClass:function(t){try{if("function"==typeof t){var n=s.names(t.prototype),i=s.isES5&&n.length>1,r=n.length>0&&!(1===n.length&&"constructor"===n[0]),e=p.test(t+"")&&s.names(t).length>0;if(i||r||e)return!0}return!1}catch(t){return!1}},isIdentifier:function(t){return g.test(t)},inheritedDataKeys:y,getDataPropertyOrDefault:function(t,n,i){if(!s.isES5)return{}.hasOwnProperty.call(t,n)?t[n]:void 0;var r=h.getOwnPropertyDescriptor(t,n);return null!=r?null==r.get&&null==r.set?r.value:i:void 0},thrower:function(t){throw t},isArray:s.isArray,asArray:R,notEnumerableProp:w,isPrimitive:d,isObject:function(t){return"function"==typeof t||"object"==typeof t&&null!==t},isError:_,canEvaluate:f,errorObj:a,tryCatch:function(t){return o=t,l},inherits:function(t,n){var i={}.hasOwnProperty;function r(){for(var r in this.constructor=t,this.constructor$=n,n.prototype)i.call(n.prototype,r)&&"$"!==r.charAt(r.length-1)&&(this[r+"$"]=n.prototype[r])}return r.prototype=n.prototype,t.prototype=new r,t.prototype},withAppended:function(t,n){var i,r=t.length,e=new Array(r+1);for(i=0;i<r;++i)e[i]=t[i];return e[i]=n,e},maybeWrapAsError:function(t){return d(t)?new c(m(t)):t},toFastProperties:function(t){return t},filledRange:function(t,n,i){for(var r=new Array(t),e=0;e<t;++e)r[e]=n+e+i;return r},toString:m,canAttachTrace:E,ensureErrorObject:S,originatesFromRejection:function(t){return null!=t&&(t instanceof c.Nn.OperationalError||!0===t.isOperational)},markAsOriginatingFromRejection:function(t){try{w(t,"isOperational",!0)}catch(t){}},classString:I,copyDescriptors:function(t,n,i){for(var r=s.names(t),e=0;e<r.length;++e){var u=r[e];if(i(u))try{s.defineProperty(n,u,s.getDescriptor(t,u))}catch(t){}}},hasDevTools:"undefined"!=typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:A,hasEnvVariables:O,env:function(t){return O?process.env[t]:void 0},global:v,getNativePromise:function(){if("function"==typeof Promise)try{var t=new Promise(function(){});if("[object Promise]"==={}.toString.call(t))return Promise}catch(t){}},domainBind:function(t,n){return t.bind(n)}};N.isRecentNode=N.isNode&&(process.versions&&process.versions.node?k=process.versions.node.split(".").map(Number):process.version&&(k=process.version.split(".").map(Number)),0===k[0]&&k[1]>10||k[0]>0),N.isNode&&N.toFastProperties(process);try{throw new c}catch(t){N.lastLineError=t}r.exports=N},{"./es5":13}]},{},[4])(4),null!=i?i.P=i.Promise:null!=t&&(t.P=t.Promise)});function S(t){m=t}var I={}.toString;var R=Array.isArray||function(t){return"[object Array]"===I.call(t)};function T(t){return"object"==typeof t&&null!==t}function k(t,n,i){for(var r=0;r<t.length;r+=1){var e=t[r];if(n.call(i,e,r,t))return r}return-1}function A(t,n){var i=t.indexOf(n);return-1!==i&&(function(t,n){t.splice(n,1)}(t,i),!0)}function O(t,n){return-1!==t.indexOf(n)}function N(t){t.length=0}var D=function(){};function C(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*v.random()|0;return("x"===t?n:3&n|8).toString(16)})}var x,B="https://theo.proxy";function F(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),h.defineProperty(t,r.key,r)}}function P(t,n,i){return n&&F(t.prototype,n),i&&F(t,i),t}function j(){var t=h.create(null);return t.__=void 0,delete t.__,t}function U(){return new q}!function(t){t.c_="audio",t.f_="video",t.wT="metadata"}(x||(x={}));var L,M,q=("undefined"!=typeof Map&&"entries"in Map.prototype?Map:void 0)||(L=function(){function t(t,n){this.data=void 0,this.keys=void 0,this.index=0,this.selector=void 0,this.data=t,this.selector=n,this.keys=h.keys(t)}var n=t.prototype;return n.next=function(){var t=this.index;return t<this.keys.length?(this.index++,{value:this.selector(this.data,this.keys[t]),done:!1}):{value:void 0,done:!0}},t}(),function(){function t(){this.data=j(),this.size=0}var n=t.prototype;return n.get=function(t){return this.data[t]},n.set=function(t,n){return this.has(t)||this.size++,this.data[t]=n,this},n.has=function(t){return t in this.data},n.delete=function(t){return!!this.has(t)&&(this.size--,delete this.data[t],!0)},n.clear=function(){this.data=j(),this.size=0},n.keys=function(){return new L(this.data,function(t,n){return n})},n.values=function(){return new L(this.data,function(t,n){return t[n]})},n.entries=function(){return new L(this.data,function(t,n){return[n,t[n]]})},n.forEach=function(t){for(var n in this.data)t(this.data[n],n)},t}());!function(t){t.t_="#EXTINF",t.Gbt="#EXT-X-MAP",t.sB="#EXTM3U",t.i="#EXT-X-VERSION",t.u="#EXT-X-TARGETDURATION",t.f9="#EXT-X-START",t.o="#EXT-X-INDEPENDENT-SEGMENTS",t.Zv="#EXT-X-STREAM-INF",t.s="#EXT-X-MEDIA-SEQUENCE",t.h="#EXT-X-ENDLIST",t.uB="#EXT-X-MEDIA",t.v="#EXT-X-DISCONTINUITY",t.p="#EXT-X-DISCONTINUITY-SEQUENCE",t.m="#EXT-X-PLAYLIST-TYPE"}(M||(M={}));var W,X=function(){function t(t,n){this.Qh=M.t_,this.S=void 0,this.I=void 0,this.S=t,this.I=n}return t.prototype.XR=function(){return this.Qh+":"+this.S+",\n"+this.I},t}(),H=function(){function t(){this.Qh=M.sB}return t.prototype.XR=function(){return this.Qh},t}(),V=function(){function t(t){this.Qh=M.i,this.WT=void 0,this.WT=t}return t.prototype.XR=function(){return this.Qh+":"+this.WT},t}(),G=function(){function t(t){this.Qh=M.u,this.jAt=void 0,this.jAt=t}return t.prototype.XR=function(){return this.Qh+":"+this.jAt},t}(),z=function(){function t(t){this.Qh=M.f9,this.MSt=void 0,this.MSt=t}return t.prototype.XR=function(){return this.Qh+":TIME-OFFSET="+this.MSt},t}(),Y=function(){function t(){this.Qh=M.o}return t.prototype.XR=function(){return this.Qh},t}(),K=function(){function t(t){this.Qh=M.Zv,this.QN=1,this.I=void 0,this.I=t}return t.prototype.XR=function(){return this.Qh+":BANDWIDTH="+this.QN+',AUDIO="audio"\n'+this.I},t}(),$=function(){function t(t){this.Qh=M.s,this.CE=void 0,this.CE=t}return t.prototype.XR=function(){return this.Qh+":"+this.CE},t}(),J=function(){function t(){this.Qh=M.v}return t.prototype.XR=function(){return this.Qh},t}(),Z=function(){function t(t){this.Qh=M.p,this.CE=void 0,this.CE=t}return t.prototype.XR=function(){return this.Qh+":"+this.CE},t}();!function(t){t.Qbt="VOD",t.fCt="EVENT"}(W||(W={}));var Q=function(){function t(t){this.Qh=M.uB,this.I=void 0,this.I=t}return t.prototype.XR=function(){var t=U();t.set("TYPE","AUDIO"),t.set("GROUP-ID",'"audio"'),t.set("NAME",'"audio"'),t.set("AUTOSELECT","YES"),t.set("DEFAULT","YES"),t.set("CHANNELS",'"2"'),t.set("URI",'"'+this.I+'"');var n=[];return t.forEach(function(t,i){return n.push(i+"="+t)}),this.Qh+":"+n.join(",")},t}(),tt=function(){function t(t){this.NV=[],this.NV=t}return t.prototype.T=function(){for(var t="",n=0,i=this.NV;n<i.length;n++){t+=i[n].XR()+"\n"}return t},P(t,[{key:"MS",get:function(){return this.NV}}]),t}(),nt=function(){function t(){this.NV=[];for(var t=[new H,new V(8)],n=0;n<t.length;n++){var i=t[n];this.k(i)}}var n=t.prototype;return n.k=function(t){this.NV.push(t)},n.Ea=function(){this.NV.length=0},P(t,[{key:"MS",get:function(){return new tt(this.NV)}}]),t}();function it(t,n){return(it=h.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function rt(t,n){t.prototype=h.create(n.prototype),t.prototype.constructor=t,it(t,n)}var et,ut=9007199254740991,ot=v.pow(2,-52);function st(t,n){for(var i=t,r=n;0!==r;){var e=i%r;i=r,r=e}return i<0?-i:i}!function(t){t[t.qp=0]="qp",t[t.Gp=1]="Gp",t[t.Wp=-1]="Wp"}(et||(et={}));var ft=function(t,n){return function(t,n){if(t===n)return!0;var i=v.abs(t-n);return i<ot||i<v.max(v.abs(t),v.abs(n))*ot}(t,n)?et.qp:function(t,n){return t===n?et.qp:t<n?et.Wp:t>n?et.Gp:w(t)?w(n)?et.qp:et.Gp:et.Wp}(t,n)},ct=function(){function t(){}var n=t.prototype;return n.jp=function(t){return this.Yp()*t},n.Qp=function(t){return this.Kp(t)>0},n.Zp=function(t){return this.Kp(t)>=0},n.Jp=function(t,n){return this.ib(t).$p(n)},n.Bp=function(t){return 0===this.Kp(t)},n.eb=function(t){return this.Kp(t)<0},n.$p=function(t){return this.Kp(t)<=0},n.sb=function(){return this.ub()?this.ob():this},n.hb=function(t){return this.Qk(t.ob())},n.ib=function(t){return this.hb(t).sb()},t}();function at(t,n){return t.cb()?n.cb()?et.qp:et.Gp:n.cb()?et.Wp:t.fb()?n.fb()&&t.ub()===n.ub()?et.qp:t.ub()?et.Wp:et.Gp:n.ub()?et.Gp:et.Wp}var ht=lt,vt=null;try{vt=new WebAssembly.Instance(new WebAssembly.Module(new y([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(t){}function lt(t,n,i){this.low=0|t,this.high=0|n,this.unsigned=!!i}function dt(t){return!0===(t&&t.wu)}lt.prototype.wu,h.defineProperty(lt.prototype,"wu",{value:!0}),lt.isLong=dt;var wt={},yt={};function pt(t,n){var i,r,e;return n?(e=0<=(t>>>=0)&&t<256)&&(r=yt[t])?r:(i=gt(t,(0|t)<0?-1:0,!0),e&&(yt[t]=i),i):(e=-128<=(t|=0)&&t<128)&&(r=wt[t])?r:(i=gt(t,t<0?-1:0,!1),e&&(wt[t]=i),i)}function bt(t,n){if(w(t))return n?At:kt;if(n){if(t<0)return At;if(t>=It)return xt}else{if(t<=-Rt)return Bt;if(t+1>=Rt)return Ct}return t<0?bt(-t,n).neg():gt(t%St|0,t/St|0,n)}function gt(t,n,i){return new lt(t,n,i)}lt.fromInt=pt,lt.fromNumber=bt,lt.fromBits=gt;var mt=v.pow;function _t(t,n,i){if(0===t.length)throw c("empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return kt;if("number"==typeof n?(i=n,n=!1):n=!!n,(i=i||10)<2||36<i)throw RangeError("radix");var r;if((r=t.indexOf("-"))>0)throw c("interior hyphen");if(0===r)return _t(t.substring(1),n,i).neg();for(var e=bt(mt(i,8)),u=kt,o=0;o<t.length;o+=8){var s=v.min(8,t.length-o),f=l(t.substring(o,o+s),i);if(s<8){var a=bt(mt(i,s));u=u.mul(a).add(bt(f))}else u=(u=u.mul(e)).add(bt(f))}return u.unsigned=n,u}function Et(t,n){return"number"==typeof t?bt(t,n):"string"==typeof t?_t(t,n):gt(t.low,t.high,"boolean"==typeof n?n:t.unsigned)}lt.fromString=_t,lt.fromValue=Et;var St=4294967296,It=St*St,Rt=It/2,Tt=pt(1<<24),kt=pt(0);lt.ZERO=kt;var At=pt(0,!0);lt.UZERO=At;var Ot=pt(1);lt.ONE=Ot;var Nt=pt(1,!0);lt.UONE=Nt;var Dt=pt(-1);lt.NEG_ONE=Dt;var Ct=gt(-1,2147483647,!1);lt.MAX_VALUE=Ct;var xt=gt(-1,-1,!0);lt.MAX_UNSIGNED_VALUE=xt;var Bt=gt(0,-2147483648,!1);lt.MIN_VALUE=Bt;var Ft=lt.prototype;Ft.toInt=function(){return this.unsigned?this.low>>>0:this.low},Ft.toNumber=function(){return this.unsigned?(this.high>>>0)*St+(this.low>>>0):this.high*St+(this.low>>>0)},Ft.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(Bt)){var n=bt(t),i=this.div(n),r=i.mul(n).sub(this);return i.toString(t)+r.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var e=bt(mt(t,6),this.unsigned),u=this,o="";;){var s=u.div(e),f=(u.sub(s.mul(e)).toInt()>>>0).toString(t);if((u=s).isZero())return f+o;for(;f.length<6;)f="0"+f;o=""+f+o}},Ft.getHighBits=function(){return this.high},Ft.getHighBitsUnsigned=function(){return this.high>>>0},Ft.getLowBits=function(){return this.low},Ft.getLowBitsUnsigned=function(){return this.low>>>0},Ft.getNumBitsAbs=function(){if(this.isNegative())return this.eq(Bt)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,n=31;n>0&&0==(t&1<<n);n--);return 0!=this.high?n+33:n+1},Ft.isZero=function(){return 0===this.high&&0===this.low},Ft.eqz=Ft.isZero,Ft.isNegative=function(){return!this.unsigned&&this.high<0},Ft.isPositive=function(){return this.unsigned||this.high>=0},Ft.isOdd=function(){return 1==(1&this.low)},Ft.isEven=function(){return 0==(1&this.low)},Ft.equals=function(t){return dt(t)||(t=Et(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&(this.high===t.high&&this.low===t.low)},Ft.eq=Ft.equals,Ft.notEquals=function(t){return!this.eq(t)},Ft.neq=Ft.notEquals,Ft.ne=Ft.notEquals,Ft.lessThan=function(t){return this.comp(t)<0},Ft.lt=Ft.lessThan,Ft.lessThanOrEqual=function(t){return this.comp(t)<=0},Ft.lte=Ft.lessThanOrEqual,Ft.le=Ft.lessThanOrEqual,Ft.greaterThan=function(t){return this.comp(t)>0},Ft.gt=Ft.greaterThan,Ft.greaterThanOrEqual=function(t){return this.comp(t)>=0},Ft.gte=Ft.greaterThanOrEqual,Ft.ge=Ft.greaterThanOrEqual,Ft.compare=function(t){if(dt(t)||(t=Et(t)),this.eq(t))return 0;var n=this.isNegative(),i=t.isNegative();return n&&!i?-1:!n&&i?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},Ft.comp=Ft.compare,Ft.negate=function(){return!this.unsigned&&this.eq(Bt)?Bt:this.not().add(Ot)},Ft.neg=Ft.negate,Ft.add=function(t){dt(t)||(t=Et(t));var n=this.high>>>16,i=65535&this.high,r=this.low>>>16,e=65535&this.low,u=t.high>>>16,o=65535&t.high,s=t.low>>>16,f=0,c=0,a=0,h=0;return a+=(h+=e+(65535&t.low))>>>16,c+=(a+=r+s)>>>16,f+=(c+=i+o)>>>16,f+=n+u,gt((a&=65535)<<16|(h&=65535),(f&=65535)<<16|(c&=65535),this.unsigned)},Ft.subtract=function(t){return dt(t)||(t=Et(t)),this.add(t.neg())},Ft.sub=Ft.subtract,Ft.multiply=function(t){if(this.isZero())return kt;if(dt(t)||(t=Et(t)),vt)return gt(vt.mul(this.low,this.high,t.low,t.high),vt.get_high(),this.unsigned);if(t.isZero())return kt;if(this.eq(Bt))return t.isOdd()?Bt:kt;if(t.eq(Bt))return this.isOdd()?Bt:kt;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(Tt)&&t.lt(Tt))return bt(this.toNumber()*t.toNumber(),this.unsigned);var n=this.high>>>16,i=65535&this.high,r=this.low>>>16,e=65535&this.low,u=t.high>>>16,o=65535&t.high,s=t.low>>>16,f=65535&t.low,c=0,a=0,h=0,v=0;return h+=(v+=e*f)>>>16,a+=(h+=r*f)>>>16,h&=65535,a+=(h+=e*s)>>>16,c+=(a+=i*f)>>>16,a&=65535,c+=(a+=r*s)>>>16,a&=65535,c+=(a+=e*o)>>>16,c+=n*f+i*s+r*o+e*u,gt((h&=65535)<<16|(v&=65535),(c&=65535)<<16|(a&=65535),this.unsigned)},Ft.mul=Ft.multiply,Ft.divide=function(t){if(dt(t)||(t=Et(t)),t.isZero())throw c("division by zero");var n,i,r;if(vt)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?gt((this.unsigned?vt.div_u:vt.div_s)(this.low,this.high,t.low,t.high),vt.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?At:kt;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return At;if(t.gt(this.shru(1)))return Nt;r=At}else{if(this.eq(Bt))return t.eq(Ot)||t.eq(Dt)?Bt:t.eq(Bt)?Ot:(n=this.shr(1).div(t).shl(1)).eq(kt)?t.isNegative()?Ot:Dt:(i=this.sub(t.mul(n)),r=n.add(i.div(t)));if(t.eq(Bt))return this.unsigned?At:kt;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();r=kt}for(i=this;i.gte(t);){n=v.max(1,v.floor(i.toNumber()/t.toNumber()));for(var e=v.ceil(v.log(n)/v.LN2),u=e<=48?1:mt(2,e-48),o=bt(n),s=o.mul(t);s.isNegative()||s.gt(i);)s=(o=bt(n-=u,this.unsigned)).mul(t);o.isZero()&&(o=Ot),r=r.add(o),i=i.sub(s)}return r},Ft.div=Ft.divide,Ft.modulo=function(t){return dt(t)||(t=Et(t)),vt?gt((this.unsigned?vt.rem_u:vt.rem_s)(this.low,this.high,t.low,t.high),vt.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},Ft.mod=Ft.modulo,Ft.rem=Ft.modulo,Ft.not=function(){return gt(~this.low,~this.high,this.unsigned)},Ft.and=function(t){return dt(t)||(t=Et(t)),gt(this.low&t.low,this.high&t.high,this.unsigned)},Ft.or=function(t){return dt(t)||(t=Et(t)),gt(this.low|t.low,this.high|t.high,this.unsigned)},Ft.xor=function(t){return dt(t)||(t=Et(t)),gt(this.low^t.low,this.high^t.high,this.unsigned)},Ft.shiftLeft=function(t){return dt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?gt(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):gt(0,this.low<<t-32,this.unsigned)},Ft.shl=Ft.shiftLeft,Ft.shiftRight=function(t){return dt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?gt(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):gt(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},Ft.shr=Ft.shiftRight,Ft.shiftRightUnsigned=function(t){if(dt(t)&&(t=t.toInt()),0===(t&=63))return this;var n=this.high;return t<32?gt(this.low>>>t|n<<32-t,n>>>t,this.unsigned):gt(32===t?n:n>>>t-32,0,this.unsigned)},Ft.shru=Ft.shiftRightUnsigned,Ft.shr_u=Ft.shiftRightUnsigned,Ft.toSigned=function(){return this.unsigned?gt(this.low,this.high,!1):this},Ft.toUnsigned=function(){return this.unsigned?this:gt(this.low,this.high,!0)},Ft.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},Ft.toBytesLE=function(){var t=this.high,n=this.low;return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]},Ft.toBytesBE=function(){var t=this.high,n=this.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,n>>>24,n>>>16&255,n>>>8&255,255&n]},lt.fromBytes=function(t,n,i){return i?lt.fromBytesLE(t,n):lt.fromBytesBE(t,n)},lt.fromBytesLE=function(t,n){return new lt(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,n)},lt.fromBytesBE=function(t,n){return new lt(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],n)};var Pt=ht,jt=function(){function t(t,n){this.vb=void 0,this._b=void 0,this.vb=t,this._b=n}t.gb=function(n,i,r){return r?new t(n.toUnsigned(),i.toUnsigned()):new t(n.toSigned(),i.toSigned())},t.wb=function(n){return n.unsigned?new t(n,Pt.UZERO):new t(n,n.isNegative()?Pt.NEG_ONE:Pt.ZERO)},t.mb=function(n,i){if(w(n))return i?t.yb:t.kb;if(i){if(n<0)return t.yb;if(n>=3.402823669209385e38)return t.pb}else{if(n<=-1.7014118346046923e38)return t.bb;if(n+1>=1.7014118346046923e38)return t.Ab}return n<0?t.mb(-n,i).ob():t.gb(Pt.fromNumber(n%0x10000000000000000),Pt.fromNumber(n/0x10000000000000000),i)};var n=t.prototype;return n.Tb=function(){return this._b.unsigned},n.Sb=function(){return this.vb.isZero()&&this._b.isZero()},n.ub=function(){return this._b.isNegative()},n.Eb=function(){return this.Tb()?t.gb(this.vb,this._b,!1):this},n.Ib=function(){return this.Tb()?this:t.gb(this.vb,this._b,!0)},n.Rb=function(){return this.vb},n.Yp=function(){return this.ub()?-this.ob().Yp():0x10000000000000000*this._b.toNumber()+this.vb.toUnsigned().toNumber()},n.Nb=function(){return this.vb.toInt()},n.Bp=function(t){return(this.Tb()===t.Tb()||this._b.getHighBits()>>>31!=1||t._b.getHighBits()>>>31!=1)&&(this._b.toUnsigned().eq(t._b.toUnsigned())&&this.vb.toUnsigned().eq(t.vb.toUnsigned()))},n.Kp=function(t){if(this.Bp(t))return et.qp;var n=this.ub(),i=t.ub();if(n&&!i)return et.Wp;if(!n&&i)return et.Gp;if(!this.Tb())return this.hb(t).ub()?et.Wp:et.Gp;var r=this.Ib(),e=t.Ib(),u=e._b.comp(r._b);return u>0||0===u&&e.vb.gt(r.vb)?et.Wp:et.Gp},n.eb=function(t){return this.Kp(t)<0},n.$p=function(t){return this.Kp(t)<=0},n.Db=function(t){return this.Kp(t)>0},n.Cb=function(t){return this.Kp(t)>=0},n.Pb=function(){return new t(this.vb.not(),this._b.not())},n.Ob=function(n){return new t(this.vb.and(n.vb),this._b.and(n._b))},n.Bb=function(n){return new t(this.vb.or(n.vb),this._b.or(n._b))},n.Lb=function(n){var i=127&n;return 0===i?this:i<64?t.gb(this.vb.shl(i),this._b.shl(i).or(this.vb.shru(64-i)),this.Tb()):t.gb(Pt.ZERO,this.vb.shl(i-64),this.Tb())},n.xb=function(n){var i=127&n;return 0===i?this:i<64?t.gb(this.vb.shru(i).or(this._b.shl(64-i)),this._b.shr(i),this.Tb()):t.gb(this._b.shr(i-64),this._b.isNegative()?Pt.NEG_ONE:Pt.ZERO,this.Tb())},n.Mb=function(n){var i=127&n;return 0===i?this:i<64?t.gb(this.vb.shru(i).or(this._b.shl(64-i)),this._b.shru(i),this.Tb()):64===i?t.gb(this._b,Pt.ZERO,this.Tb()):t.gb(this._b.shru(i-64),Pt.ZERO,this.Tb())},n.Qk=function(n){var i=this._b.high>>>16,r=65535&this._b.high,e=this._b.low>>>16,u=65535&this._b.low,o=this.vb.high>>>16,s=65535&this.vb.high,f=this.vb.low>>>16,c=65535&this.vb.low,a=n._b.high>>>16,h=65535&n._b.high,v=n._b.low>>>16,l=65535&n._b.low,d=n.vb.high>>>16,w=65535&n.vb.high,y=n.vb.low>>>16,p=0,b=0,g=0,m=0,_=0,E=0,S=0,I=0;S+=(I+=c+(65535&n.vb.low))>>>16,I&=65535,E+=(S+=f+y)>>>16,S&=65535,_+=(E+=s+w)>>>16,E&=65535,m+=(_+=o+d)>>>16,_&=65535,g+=(m+=u+l)>>>16,m&=65535,b+=(g+=e+v)>>>16,g&=65535,p+=(b+=r+h)>>>16,b&=65535,p+=i+a,p&=65535;var R=this.Tb(),T=Pt.fromBits(g<<16|m,p<<16|b,R),k=Pt.fromBits(S<<16|I,_<<16|E,R);return t.gb(k,T,R)},n.hb=function(t){return this.Qk(t.ob())},n.ob=function(){return this.Pb().Qk(t.Fb)},n.Ub=function(n){if(this.Sb()||n.Sb())return this.Tb()?t.yb:t.kb;if(this.ub())return n.ub()?this.ob().Ub(n.ob()):this.ob().Ub(n).ob();if(n.ub())return this.Ub(n.ob()).ob();if(this._b.isZero()&&0===this.vb.high&&n._b.isZero()&&0===n.vb.high)return t.wb(this.vb.multiply(n.vb));var i=Pt.fromBits(4294967295,0,!0),r=this.vb.and(i),e=this.vb.shru(32),u=this._b.and(i),o=this._b.shru(32),s=n.vb.and(i),f=n.vb.shru(32),c=n._b.and(i),a=n._b.shru(32),h=Pt.UZERO,v=Pt.UZERO,l=Pt.UZERO,d=Pt.UZERO;h=h.add(r.mul(s)),v=v.add(h.shru(32)),h=h.and(i),v=v.add(e.mul(s)),l=l.add(v.shru(32)),v=(v=v.and(i)).add(r.mul(f)),l=l.add(v.shru(32)),v=v.and(i),l=l.add(u.mul(s)),d=d.add(l.shru(32)),l=(l=l.and(i)).add(e.mul(f)),d=d.add(l.shru(32)),l=(l=l.and(i)).add(r.mul(c)),d=d.add(l.shru(32)),l=l.and(i),d=d.add(o.mul(s)).add(u.mul(f)).add(e.mul(c)).add(r.mul(a)).and(i);var w=Pt.fromBits(h.getLowBitsUnsigned(),v.getLowBitsUnsigned(),!0),y=Pt.fromBits(l.getLowBitsUnsigned(),d.getLowBitsUnsigned(),!0);return t.gb(w,y,this.Tb())},n.Hb=function(n){var i,r,e=n;if(e.Sb())throw new RangeError("division by zero");if(this.Sb())return this.Tb()?[t.yb,t.yb]:[t.kb,t.kb];if(this.Tb()){if(e.Tb()||(e=e.Ib()),e.Db(this))return[t.yb,this];if(e.Db(this.Mb(1)))return[r=t.Vb,i=this.hb(e)];r=t.yb}else{if(this.Bp(t.bb)){if(e.Bp(t.Fb)||e.Bp(t.Xb))return[t.bb,t.kb];if(e.Bp(t.bb))return[t.Fb,t.kb];var u=this.xb(1).zb(e).Lb(1);return u.Bp(t.kb)?r=e.ub()?t.Fb:t.Xb:(i=this.hb(e.Ub(u)),r=u.Qk(i.zb(e))),[r,i=this.hb(e.Ub(r))]}if(e.Bp(t.bb))return this.Tb()?[t.yb,this]:[t.kb,this];if(this.ub()){if(e.ub())return this.ob().Hb(e.ob());var o=this.ob().Hb(e);return r=o[0],i=o[1],[r.ob(),i.ob()]}if(e.ub()){var s=this.Hb(e.ob());return r=s[0],i=s[1],[r.ob(),i.ob()]}r=t.kb}for(i=this;i.Cb(e);){for(var f=v.max(1,v.floor(i.Yp()/e.Yp())),c=v.ceil(v.log(f)/v.LN2),a=c<=48?1:v.pow(2,c-48),h=t.mb(f),l=h.Ub(e);l.ub()||l.Db(i);)f-=a,l=(h=t.mb(f,this.Tb())).Ub(e);h.Sb()&&(h=t.Fb),r=r.Qk(h),i=i.hb(l)}return[r,i]},n.zb=function(t){return this.Hb(t)[0]},n.qb=function(t){return this.Hb(t)[1]},n.toString=function(n){var i=n||10;if(i<2||i>36)throw new RangeError("radix");if(this.Sb())return"0";if(this.ub()){if(this.Bp(t.bb)){var r=t.mb(i),e=this.zb(r),u=e.Ub(r).hb(this);return e.toString(i)+u.Nb().toString(i)}return"-"+this.ob().toString(i)}for(var o=t.mb(v.pow(i,6),this.Tb()),s=this,f="";;){var c=s.zb(o),a=(s.hb(c.Ub(o)).Nb()>>>0).toString(i);if((s=c).Sb())return a+f;for(;a.length<6;)a="0"+a;f=String(a)+f}},t}();jt.kb=jt.wb(Pt.ZERO),jt.yb=jt.wb(Pt.UZERO),jt.Fb=jt.wb(Pt.ONE),jt.Vb=jt.wb(Pt.UONE),jt.Xb=jt.wb(Pt.NEG_ONE),jt.Ab=jt.gb(Pt.NEG_ONE,Pt.MAX_VALUE,!1),jt.pb=jt.gb(Pt.MAX_UNSIGNED_VALUE,Pt.MAX_UNSIGNED_VALUE,!0),jt.bb=jt.gb(Pt.ZERO,Pt.MIN_VALUE,!1);var Ut=function(){function t(t,n){void 0===n&&(n=1),this.Gb=void 0,this.Wb=void 0,this.Gb=t,this.Wb=n}t.jb=function(n){return new t(v.ceil(n.Gb),n.Wb)},t.Yb=function(n){return new t(v.floor(n.Gb),n.Wb)},t.Qb=function(t,n){return t.Zp(n)?t:n},t.Kb=function(t,n){return t.$p(n)?t:n};var n=t.prototype;return n.Qk=function(n){return this.Wb>=n.Wb?new t(this.Gb+n.Zb(this.Wb).Gb,this.Wb):new t(this.Zb(n.Wb).Gb+n.Gb,n.Wb)},n.Qp=function(t){return t.eb(this)},n.Zp=function(t){return t.$p(this)},n.ib=function(n){return this.Wb>=n.Wb?new t(v.abs(this.Gb-n.Zb(this.Wb).Gb),this.Wb):n.ib(this)},n.Jp=function(t,n){return this.ib(t).$p(n)},n.Kp=function(t){return i=t,(n=this).Wb>=i.Wb?ft(n.Gb,i.Zb(n.Wb).Gb):ft(n.Zb(i.Wb).Gb,i.Gb);var n,i},n.Bp=function(t){return 0===this.Kp(t)},n.eb=function(t){return this.Kp(t)<0},n.$p=function(t){return this.Kp(t)<=0},n.Zb=function(n){return new t(this.Gb*(n/this.Wb),n)},n.hb=function(n){return this.Wb>=n.Wb?new t(this.Gb-n.Zb(this.Wb).Gb,this.Wb):new t(this.Zb(n.Wb).Gb-n.Gb,n.Wb)},n.Jb=function(n){return new t(this.Gb*n,this.Wb)},P(t,[{key:"fb",get:function(){return!isFinite(this.Gb)}},{key:"$b",get:function(){return this.Gb/this.Wb}}]),t}();Ut.tA=new Ut(1/6,1),Ut.kb=new Ut(0),Ut.nA=new Ut(1/0),Ut.iA=1e6;var Lt=function(t){function n(n,i){var r;return(r=t.call(this)||this).Ou=void 0,r.Wb=void 0,r.Ou=n.toSigned(),r.Wb=i>>>0,r}rt(n,t),n.rA=function(t,i){return void 0===i&&(i=1e6),n.mb(t*i,i)},n.mb=function(t,i){return w(t)?n.eA:t===1/0?n.sA:t===-1/0?n.uA:new n(Pt.fromNumber(t),i)},n.wb=function(t,i){return new n(t,i)},n.oA=function(t){return n.rA(t.$b,1e6)},n.hA=function(t){return new n(Pt.fromNumber(t.getTime()),1e3)},n.Qb=function(t,n){return t.Zp(n)?t:n},n.Kb=function(t,n){return t.$p(n)?t:n},n.aA=function(t,i,r){return n.Qb(i,n.Kb(r,t))};var i=n.prototype;return i.ub=function(){return this.Ou.isNegative()},i.Sb=function(){return 0!==this.Wb&&this.Ou.isZero()},i.fb=function(){return 0===this.Wb&&!this.Ou.isZero()},i.cb=function(){return 0===this.Wb&&this.Ou.isZero()},i.Yp=function(){if(0===this.Wb)return this.Ou.isZero()?NaN:this.Ou.isNegative()?-1/0:1/0;var t=this.Ou.divide(this.Wb),n=this.Ou.subtract(t.multiply(this.Wb));return t.toNumber()+n.toNumber()/this.Wb},i.Rb=function(){if(0===this.Wb)throw new c("Failed to convert timestamp");return this.Ou},i.cA=function(){return new Date(0===this.Wb?NaN:this.Zb(1e3).Ou.toNumber())},i.fA=function(){return new Ut(0===this.Wb?this.Yp():this.Ou.toNumber(),this.Wb)},i.Zb=function(t,i){void 0===i&&(i=Wt.vA);var r=this.Wb;if(r===t)return this;if(0===r)return this;var e=st(r,t);return new n(function(t,n,i){var r=t.Hb(n),e=r[0],u=r[1];if(u.Sb())return e;if(i===Wt.vA)return u.ub()?e.hb(jt.Fb):e;if(i===Wt.dA)return u.ub()?e:e.Qk(jt.Fb);var o=u.Ub(jt.mb(2));return o.ub()?o.ob().eb(n)?e:e.hb(jt.Fb):o.eb(n)?e:e.Qk(jt.Fb)}(jt.wb(this.Ou).Ub(jt.mb(t/e)),jt.mb(r/e),i).Rb(),t)},i.Kp=function(t){if(this===t)return et.qp;if(0===this.Wb||0===t.Wb)return at(this,t);if(this.Sb())return t.Sb()?et.qp:t.ub()?et.Gp:et.Wp;if(t.Sb())return this.ub()?et.Wp:et.Gp;var n=v.min(this.Wb,t.Wb),i=this.Zb(n,Wt.lA).Ou,r=t.Zb(n,Wt.lA).Ou;return i.compare(r)},i.ob=function(){return 0===this.Wb?Mt(this):new n(this.Ou.negate(),this.Wb)},i.Qk=function(t){if(0===this.Wb||0===t.Wb)return qt(this,t);if(this.Sb())return t;if(t.Sb())return this;var i=v.max(this.Wb,t.Wb),r=this.Zb(i,Wt.lA),e=t.Zb(i,Wt.lA);return new n(r.Ou.add(e.Ou),i)},i.Ub=function(t){if(this.cb()||w(t))return n.eA;if(this.fb()||!isFinite(t)){if(this.Sb()||0===t)return n.eA;var i=this.ub()?n.uA:n.sA;return t<0?i.ob():i}return this.Sb()?this:new n(0===t?Pt.ZERO:this.Ou.multiply(t),this.Wb)},i.zb=function(t){if(this.cb()||w(t))return n.eA;if(this.fb())return isFinite(t)?0===t?1/t<0?this.ob():this:t<0?this.ob():this:n.eA;if(!isFinite(t))return new n(Pt.ZERO,this.Wb);if(this.Sb())return 0===t?n.eA:new n(Pt.ZERO,this.Wb);if(0===t){var i=this.ub()?n.uA:n.sA;return 1/t<0?i.ob():i}return new n(this.Ou.divide(t),this.Wb)},i._A=function(){return[this.Ou.low,this.Ou.high,this.Wb]},n}(ct);function Mt(t){return t.cb()?t:t.ub()?Lt.sA:Lt.uA}function qt(t,n){return t.cb()||n.cb()?Lt.eA:t.fb()&&n.fb()?t.ub()===n.ub()?t:Lt.eA:t.fb()?t:n}Lt.kb=new Lt(Pt.ZERO,1e6),Lt.eA=new Lt(Pt.ZERO,0),Lt.sA=new Lt(Pt.ONE,0),Lt.uA=new Lt(Pt.NEG_ONE,0);var Wt,Xt=function(t){function n(n,i){var r;return(r=t.call(this)||this).Ou=void 0,r.Wb=void 0,r.Ou=BigInt.asIntN(64,n),r.Wb=i>>>0,r}rt(n,t),n.rA=function(t,i){return void 0===i&&(i=1e6),n.mb(t*i,i)},n.mb=function(t,i){return w(t)?n.eA:t===1/0?n.sA:t===-1/0?n.uA:new n(BigInt(v.floor(t)),i)},n.wb=function(t,i){return new n(BigInt(t.high)<<BigInt(32)|BigInt(t.low>>>0),i)},n.oA=function(t){return n.rA(t.$b,1e6)},n.hA=function(t){return n.mb(t.getTime(),1e3)},n.Qb=function(t,n){return t.Zp(n)?t:n},n.Kb=function(t,n){return t.$p(n)?t:n},n.aA=function(t,i,r){return n.Qb(i,n.Kb(r,t))};var i=n.prototype;return i.ub=function(){return this.Ou<BigInt(0)},i.Sb=function(){return 0!==this.Wb&&this.Ou===BigInt(0)},i.fb=function(){return 0===this.Wb&&this.Ou!==BigInt(0)},i.cb=function(){return 0===this.Wb&&this.Ou===BigInt(0)},i.Yp=function(){if(0===this.Wb)return this.Ou===BigInt(0)?NaN:this.Ou<BigInt(0)?-1/0:1/0;var t=this.Ou/BigInt(this.Wb),n=this.Ou-t*BigInt(this.Wb);return Number(t)+Number(n)/this.Wb},i.Rb=function(){if(0===this.Wb)throw new c("Failed to convert timestamp");return this.gA()},i.gA=function(){var t=this.Ou&BigInt(4294967295),n=this.Ou>>BigInt(32)&BigInt(4294967295);return Pt.fromBits(Number(t),Number(n))},i.cA=function(){return new Date(0===this.Wb?NaN:Number(this.Zb(1e3).Ou))},i.fA=function(){return new Ut(0===this.Wb?this.Yp():Number(this.Ou),this.Wb)},i.Zb=function(t,i){void 0===i&&(i=Wt.vA);var r=this.Wb;if(r===t)return this;if(0===r)return this;var e=st(r,t);return new n(function(t,n,i){var r=t/n,e=t-r*n;if(e===BigInt(0))return r;if(i===Wt.vA)return e<BigInt(0)?r-BigInt(1):r;if(i===Wt.dA)return e<BigInt(0)?r:r+BigInt(1);var u=e*BigInt(2);return u<BigInt(0)?-u<n?r:r-BigInt(1):u<n?r:r+BigInt(1)}(this.Ou*BigInt(t/e),BigInt(r/e),i),t)},i.Kp=function(t){if(this===t)return et.qp;if(0===this.Wb||0===t.Wb)return at(this,t);if(this.Sb())return t.Sb()?et.qp:t.ub()?et.Gp:et.Wp;if(t.Sb())return this.ub()?et.Wp:et.Gp;var n=v.min(this.Wb,t.Wb),i=this.Zb(n,Wt.lA).Ou,r=t.Zb(n,Wt.lA).Ou;return i>r?et.Gp:i<r?et.Wp:et.qp},i.ob=function(){return 0===this.Wb?Ht(this):new n(-this.Ou,this.Wb)},i.Qk=function(t){if(0===this.Wb||0===t.Wb)return Vt(this,t);if(this.Sb())return t;if(t.Sb())return this;var i=v.max(this.Wb,t.Wb),r=this.Zb(i,Wt.lA),e=t.Zb(i,Wt.lA);return new n(r.Ou+e.Ou,i)},i.Ub=function(t){if(this.cb()||w(t))return n.eA;if(this.fb()||!isFinite(t)){if(this.Sb()||0===t)return n.eA;var i=this.ub()?n.uA:n.sA;return t<0?i.ob():i}return this.Sb()?this:new n(0===t?BigInt(0):this.Ou*BigInt(t),this.Wb)},i.zb=function(t){if(this.cb()||w(t))return n.eA;if(this.fb())return isFinite(t)?0===t?1/t<0?this.ob():this:t<0?this.ob():this:n.eA;if(!isFinite(t))return new n(BigInt(0),this.Wb);if(this.Sb())return 0===t?n.eA:new n(BigInt(0),this.Wb);if(0===t){var i=this.ub()?n.uA:n.sA;return 1/t<0?i.ob():i}return new n(this.Ou/BigInt(t),this.Wb)},i._A=function(){var t=this.gA();return[t.low,t.high,this.Wb]},P(n,null,[{key:"kb",get:function(){return n.wA||(n.wA=new n(BigInt(0),1e6)),n.wA}},{key:"eA",get:function(){return n.mA||(n.mA=new n(BigInt(0),0)),n.mA}},{key:"sA",get:function(){return n.yA||(n.yA=new n(BigInt(1),0)),n.yA}},{key:"uA",get:function(){return n.kA||(n.kA=new n(BigInt(-1),0)),n.kA}}]),n}(ct);function Ht(t){return t.cb()?t:t.ub()?Xt.sA:Xt.uA}function Vt(t,n){return t.cb()||n.cb()?Xt.eA:t.fb()&&n.fb()?t.ub()===n.ub()?t:Xt.eA:t.fb()?t:n}Xt.wA=void 0,Xt.mA=void 0,Xt.yA=void 0,Xt.kA=void 0,function(t){t[t.vA=0]="vA",t[t.dA=1]="dA",t[t.lA=2]="lA"}(Wt||(Wt={}));var Gt=function(){try{return"function"==typeof BigInt&&"bigint"==typeof BigInt(0)}catch(t){return!1}}()?Xt:Lt;function zt(t){return Gt.wb(Pt.fromBits(t[0],t[1],!1),t[2])}function Yt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Kt=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];c.apply(this,n)};(Kt.prototype=h.create(c.prototype)).constructor=Kt;var $t=function(t){function n(n,i){var r;return(r=t.call(this)||this).cause=void 0,r.message=n||"Unknown error",r.cause=i,c.captureStackTrace&&c.captureStackTrace(Yt(r),r.constructor),r}return rt(n,t),P(n,[{key:"name",get:function(){return"BaseError"}}]),n}(Kt),Jt=function(){function t(){this.ma=!1,this.ya=!1,this.Aa=[],this.Ta=[]}var n=t.prototype;return n.Sa=function(){if(!this.ma&&!this.ya){this.ma=!0;for(var t=0,n=this.Aa.slice();t<n.length;t++){(0,n[t])()}this.Ea()}},n.Ea=function(){if(!this.ya){this.ya=!0;for(var t=0,n=this.Ta.slice();t<n.length;t++){(0,n[t])()}N(this.Aa),N(this.Ta)}},n.Ia=function(t){this.ya||this.Aa.push(t)},n.Ra=function(t){this.ya||A(this.Aa,t)},n.Na=function(t){this.ya||this.Ta.push(t)},n.Da=function(t){this.ya||A(this.Ta,t)},t}(),Zt=function(){function t(){this.Ca=new Jt}var n=t.prototype;return n.Pa=function(){this.Ca.Sa()},n.Ea=function(){this.Ca.Ea()},n.Oa=function(t){var n=this.Ca;if(!n.ma)if(t.ma)n.Sa();else if(!n.ya&&!t.ya){var i=function(){r(),n.Sa()},r=function r(){t.Ra(i),t.Da(r),n.Ra(i),n.Da(r)};t.Ia(i),t.Na(r),n.Ia(i),n.Na(r)}},n.Ba=function(){var n=new t,i=new t,r=n.La,e=i.La,u=this.Ca,o=function(){r.ma&&e.ya||e.ma&&r.ya?u.Sa():r.ya&&e.ya&&u.Ea()};r.Ia(o),e.Ia(o),r.Na(o),e.Na(o),n.Oa(u),i.Oa(u);return u.Na(function(){r.Ra(o),e.Ra(o),r.Da(o),e.Da(o)}),[n,i]},P(t,[{key:"La",get:function(){return this.Ca}}]),t}(),Qt=function(t){function n(n,i){return t.call(this,n||"Aborted",i)||this}return rt(n,t),P(n,[{key:"name",get:function(){return"AbortError"}}]),n}($t);function tn(t){return t instanceof c&&"AbortError"===t.name}function nn(t,n){return t.then(function(t){return n.Ea(),t},function(t){throw n.Ea(),t})}var rn;E.resolve();!function(t){t.i0="HELLO",t.r0="HI_THERE",t.e0="INITIALIZE",t.s0="APPEND_INIT",t.u0="APPEND_DATA",t.o0="ACK",t.h0="REMOVE",t.a0="DESTROY_SESSION"}(rn||(rn={}));var en="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),un=16383;function on(t,n,i){for(var r,e,u,o=[],s=n;s<i;s+=3)o.push((r=t[s],e=t[s+1],u=t[s+2],en[r>>2]+en[(3&r)<<4|e>>4]+en[(15&e)<<2|u>>6]+en[63&u]));return o.join("")}var sn=function(){function t(t){void 0===t&&(t=0),this.kc=t}var n=t.prototype;return n.yc=function(t){this.kc+=t},n.pc=function(t){this.kc=t},n.bc=function(){return new t(this.mc)},P(t,[{key:"mc",get:function(){return this.kc}}]),t}();function fn(t,n){return null!=t&&t.substr(0,n.length)===n}var cn=16384;function an(t){var n=t.length;if(n<=cn)return String.fromCharCode.apply(String,t);for(var i=[],r=0;r<n;r+=cn)i.push(String.fromCharCode.apply(String,t.slice(r,r+cn)));return i.join("")}function hn(t){return function(t){for(var n=[],i=0;i<t.length;i++){var r=t[i];r>65535&&(r-=65536,n.push(r>>>10&1023|55296),r=56320|1023&r),n.push(r)}return an(n)}(t)}function vn(t){if(t>=55296&&t<=57343)throw new c("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function ln(t,n){return t>>n&63|128}function dn(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(vn(t),n.push(t>>12&15|224),n.push(ln(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(ln(t,12)),n.push(ln(t,6))),n.push(63&t|128)):n.push(t)}function wn(t,n){if(n.mc>=t.length)throw new c("Invalid byte index");var i=255&t[n.mc];if(n.yc(1),128==(192&i))return 63&i;throw new c("Invalid continuation byte")}function yn(t,n){var i=n.mc;if(i>t.length)throw new c("Invalid byte index");if(i===t.length)return!1;var r=255&t[i];if(n.yc(1),0==(128&r))return r;if(192==(224&r)){var e=(31&r)<<6|wn(t,n);if(e>=128)return e;throw new c("Invalid continuation byte")}if(224==(240&r)){var u=(15&r)<<12|wn(t,n)<<6|wn(t,n);if(u>=2048)return vn(u),u;throw new c("Invalid continuation byte")}if(240==(248&r)){var o=(7&r)<<18|wn(t,n)<<12|wn(t,n)<<6|wn(t,n);if(o>=65536&&o<=1114111)return o}throw new c("Invalid UTF-8 detected")}var pn=65279;function bn(t,n,i){void 0===i&&(i=!1);var r=t.getUint16(n.mc,i);return n.yc(2),r}function gn(t,n,i,r){void 0===r&&(r=!1),t.setUint16(n.mc,i,r),n.yc(2)}function mn(t,n){return void 0===n&&(n=!1),function(t,n,i,r){for(var e=[];n.mc+2<=t.byteLength;){var u=bn(t,n,i);if(r&&!u)break;e.push(u)}return an(e)}(In(t),new An,n,!1)}function _n(t,n){void 0===n&&(n=!1);var i=new y(2*t.length);return function(t,n,i,r){void 0===r&&(r=!1);for(var e=i.length,u=0;u<e;u+=1)gn(t,n,i.charCodeAt(u),r)}(In(i),new An,t,n),i}function En(t){return hn(function(t,n){var i,r=[],e=new An;if(!n){if(!1===(i=yn(t,e)))return r;i===pn||r.push(i)}for(;!1!==(i=yn(t,e));)r.push(i);return r}(Rn(t)))}function Sn(t){return new y(function(t){for(var n=[],i=0;i<t.length;i++)dn(t[i],n);return n}(function(t){for(var n=[],i=0,r=t.length;i<r;){var e=t.charCodeAt(i++);if(e>=55296&&e<=56319&&i<r){var u=t.charCodeAt(i++);56320==(64512&u)?n.push(((1023&e)<<10)+(1023&u)+65536):(n.push(e),i--)}else n.push(e)}return n}(t)))}function In(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Rn(t){return new y(t.buffer,t.byteOffset,t.byteLength)}function Tn(t){return t instanceof ArrayBuffer?new y(t):Rn(t)}function kn(t){if(t.slice)return t.slice(0);var n=new y(t.byteLength);return n.set(t,0),n}var An=function(){function t(t){void 0===t&&(t=0),this.kc=t}var n=t.prototype;return n.yc=function(t){this.kc+=t},n.pc=function(t){this.kc=t},n.bc=function(){return new t(this.mc)},n.Sc=function(){return new sn(this.mc<<3)},P(t,[{key:"mc",get:function(){return this.kc}}]),t}(),On=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"],Nn=ArrayBuffer.isView||function(t){return t&&O(On,I.call(t))};function Dn(t){var n=t.reduce(function(t,n){return t+n.byteLength},0);return function(t,n){for(var i=new y(n),r=0,e=0;e<t.length;e++){var u=t[e];i.set(u,r),r+=u.byteLength}return i}(t,n)}function Cn(t){return function(t){for(var n=t.length,i=n%3,r=[],e=n-i,u=0;u<e;u+=un)r.push(on(t,u,v.min(e,u+un)));if(1===i){var o=t[n-1];r.push(en[o>>2]+en[(3&o)<<4]+"==")}else if(2===i){var s=t[n-2],f=t[n-1];r.push(en[s>>2]+en[(3&s)<<4|f>>4]+en[(15&f)<<2]+"=")}return r.join("")}(new y(t))}function xn(t){return t&&"function"!=typeof t?t.slice():t}function Bn(t,n,i){if(i)if("function"==typeof i)i.call(t,n);else for(var r=0;r<i.length;r++){i[r].call(t,n)}}var Fn=function(){function t(t){var n=this;this.xa=j(),this.Ma=void 0,this.Fa=void 0,this.Ua=function(t){n.Ha(t)},this.Fa=t||this}var n=t.prototype;return n.Va=function(t,n){if("function"==typeof n)if("string"==typeof t)this.Xa(t,n);else for(var i=0;i<t.length;i++){var r=t[i];this.Xa(r,n)}},n.Xa=function(t,n){var i=this.xa[t];i?"function"==typeof i?this.xa[t]=[i,n]:i.push(n):this.xa[t]=n},n.qa=function(t){if("function"==typeof t){var n=this.Ma;n?"function"==typeof n?this.Ma=[n,t]:n.push(t):this.Ma=t}},n.Ga=function(){this.xa=j(),this.Ma=void 0},n.Ha=function(t){var n=xn(this.xa[t.type]),i=xn(this.Ma);Bn(this.Fa,t,n),Bn(this.Fa,t,i)},n.Wa=function(t,n){if("function"==typeof n)if("string"==typeof t)this.Ya(t,n);else for(var i=0;i<t.length;i++){var r=t[i];this.Ya(r,n)}},n.Ya=function(t,n){var i=this.xa[t];i&&("function"==typeof i?i===n&&(this.xa[t]=void 0):A(i,n))},n.Qa=function(t){if("string"==typeof t)this.xa[t]=void 0;else for(var n=0;n<t.length;n++){var i=t[n];this.xa[i]=void 0}},n.Ka=function(t){var n=this.Ma;n&&("function"==typeof n?n===t&&(this.Ma=void 0):A(n,t))},n.Za=function(t,n){var i=this;return new E(function(r,e){if(n&&n.ma)return e(new Qt);var u=function(t){s(),r(t)},o=function(){s(),e(new Qt)},s=function(){i.Wa(t,u),n&&n.Ra(o)};i.Va(t,u),n&&n.Ia(o)})},t}(),Pn=function(t,n){void 0===n&&(n=new Date),this.type=t,this.date=n},jn=function(t){function n(n){var i;return(i=t.call(this,"append")||this).$u=void 0,i.$u=n,i}return rt(n,t),n}(Pn),Un=function(t){function n(n){var i;return(i=t.call(this)||this).Vm=void 0,i.ddt=0,i.Wr=new y(0),i.xf=!1,i.A=!1,i.O=void 0,i.Vm=n,i}rt(n,t);var i=n.prototype;return i.pq=function(t,n){this.D&&0===this.Wr.length&&(this.Wr=this.O.slice()),this.ddt+=n.Yp(),this.Wr=Dn([this.Wr,t]),this.Ha(new jn(t))},i.Vc=function(){this.jc||(this.Ha(new Pn("close")),this.xf=!0)},P(n,[{key:"Sy",get:function(){return this.ddt}},{key:"$u",get:function(){return this.Wr}},{key:"jc",get:function(){return this.xf}},{key:"D",get:function(){return this.A},set:function(t){this.A=t}},{key:"C",get:function(){return this.O},set:function(t){this.O=t}}]),n}(Fn),Ln=function(){function t(t){this.B=!1,this.L=void 0,this.W=void 0,this.DEFAULT_SEGMENT_DURATION_IN_SECONDS=1.1,this.Lw="sync-seg-"+C(),this.X=this.DEFAULT_SEGMENT_DURATION_IN_SECONDS,this.H=t;for(var n=0,i=this.H;n<i.length;n++){var r=i[n];if(r.match(/video/))this.L=new Un(this.V(r));else{if(!r.match(/audio/))throw new c("Unsupported MIME type.");this.W=new Un(this.V(r))}}}var n=t.prototype;return n.V=function(t){for(var n=0,i=this.H;n<i.length;n++){if(i[n]===t)return this.X}},n.Vc=function(){this.L&&this.L.Vc(),this.W&&this.W.Vc()},P(t,[{key:"tt",get:function(){return this.B},set:function(t){this.B=t}},{key:"it",get:function(){var t,n;return Boolean((null==(t=this.L)?void 0:t.D)||(null==(n=this.W)?void 0:n.D))}}]),t}(),Mn=function(t){function n(n){var i;return(i=t.call(this,"remove")||this).gp=void 0,i.gp=n,i}return rt(n,t),n}(Pn),qn=function(t){function n(n){var i;return(i=t.call(this)||this).rt=[],i.et=void 0,i.st=[],i.ht=U(),i.pt=U(),i.tn=0,i.nn=0,i.H=n,i.et=new Ln(i.H),i.et.W&&(i.et.W.D=!0),i.et.L&&(i.et.L.D=!0),i.st.push(new Ln(i.H)),i}rt(n,t);var i=n.prototype;return i.rn=function(){var t=[].concat(this.rt,[this.et],this.st);return this.rt.length=0,t},i.pq=function(t){this.en(t),this.sn(t),this.an(t)},i.Tq=function(t){this.en(t)},i.qc=function(t){this.en(t),this.an(t)},i.Ea=function(){this.et.Vc(),this.st.forEach(function(t){return t.Vc()}),this.rt.length=0},i.sn=function(t){var n=zt(t.startPts),i=zt(t.totalDuration);this.pt.set(t.mimeType,n.Qk(i))},i.ln=function(){this.et.Vc(),this.rt.push(this.et);var t=this.st.shift(),n=this.bn();t?(this.et=t,this.st.push(n)):this.et=n},i.bn=function(){var t=new Ln(this.H);return t.W&&(t.W.C=this.et.W.C),t.L&&(t.L.C=this.et.L.C),t},i.gn=function(t){var i=!this.et.W||0===this.et.W.Sy,r=!this.et.L||0===this.et.L.Sy,e=this.et.W&&this.et.W.D,u=this.et.L&&this.et.L.D,o=r&&(i&&!this.et.tt||e),s=i&&(r&&!this.et.tt||u);("audio"===n.mn(t)&&!s||"video"===n.mn(t)&&!o)&&(this.ln(),this.ln())},i.en=function(t){var n=t.mimeType,i=t.kind,r=this.ht.get(n);void 0===r&&(i!==rn.s0&&i!==rn.u0||(r=[],this.ht.set(n,r))),void 0!==r&&r.push(t)},i.an=function(t){for(var n=this.kn(t),i=0;i<n.length;i++){var r=n[i];switch(r.kind){case rn.s0:this.ti(r),this.tn=0,this.nn=0;break;case rn.h0:this.ii(r);break;case rn.u0:this.ui(r)}}},i.ti=function(t){var n=t.mimeType,i=t.segment;this.gn(n),n.match(/video/)?(this.et.L.C=i,this.st.forEach(function(t){t.L.C=i})):(this.et.W.C=i,this.st.forEach(function(t){t.W.C=i})),this.et.W&&(this.et.W.D=!0),this.et.L&&(this.et.L.D=!0)},i.ui=function(t){var n=t.mimeType.match(/audio/),i=zt(t.totalDuration);if(n?this.et.W.pq(t.segment,i):this.et.L.pq(t.segment,i),n||1===this.H.length){this.tn+=i.Yp();var r=this.et.V(t.mimeType);this.tn>=this.nn+r&&(this.nn+=r,this.ln())}},i.ii=function(t){this.pt.set(t.mimeType,void 0),this.gn(t.mimeType),this.et.W&&(this.et.W.D=!0),this.et.L&&(this.et.L.D=!0),this.rt.length=0,this.Ha(new Mn(zt(t.endTime)))},i.kn=function(t){var n=this;if(t.kind===rn.h0)return this.si(t);var i=[];return this.ht.forEach(function(t){if(t&&t.length>0){var r=k(t,function(t){return t.kind===rn.h0});-1===r&&(r=t.length);for(var e=t.slice(0,r),u=0;u<e.length;u++){var o=e[u];if(!O(i,o)){var s=n.si(o);if(s.length>0)i.push.apply(i,s);else if(o.kind===rn.u0)break}}}}),i},i.si=function(t){for(var i,r=this.ht.get(t.mimeType),e=0,u=this.H;e<u.length;e++){var o=u[e];if(o!==t.mimeType){i=o;break}}if(!i)return r.splice(0,r.indexOf(t)+1);if(t.kind===rn.s0)return[];var s=this.pt.get(i);if(void 0===s)return[];if(t.kind===rn.h0){var f=this.fi(i);if(f.length>0){var c=r.splice(0,r.indexOf(t));return r.splice(0,1),[].concat(c,f,[t])}return[]}if(n.hi(t,s)){var a=r.splice(0,r.indexOf(t));r.splice(0,1);var h=this.vi(t,a,i);return[].concat(a,h,[t])}return[]},i.vi=function(t,i,r){var e=this.ht.get(r);if(!e)return[];var u=zt(t.startPts),o=zt(t.totalDuration),s=u.Qk(o),f=k(e,function(t){return t.kind===rn.h0}),c=f-1;-1===f&&(c=e.length-1);for(var a=c+1,h=0;h<=c&&a===c+1;h++){var v=e[h];v.kind!==rn.u0||n.hi(v,s)||(a=h)}var l=-1;return-1!==k(i,function(t){return t.kind===rn.s0})&&(l=k(e,function(t){return t.kind===rn.s0})),l>a&&(a=l+1),a>0?(e[a-1].kind===rn.s0&&(a-=1),e.splice(0,a)):[]},i.fi=function(t){var n=this.ht.get(t);if(n){var i=k(n,function(t){return t.kind===rn.h0});if(i>=0)return n.splice(0,i+1)}return[]},n.hi=function(t,n){var i=n,r=zt(t.startPts);return i.Zp(r)},i.li=function(){var t="[MEDIABUFFER] endPTS: ";this.pt.forEach(function(i,r){t=t.concat(n.mn(r)+" = "+(null==i?void 0:i.Yp())+" ")}),m.sh(t)},i.yi=function(){var t=this;m.sh("[MEDIABUFFER] unsyncedMessageMap:"),this.ht.forEach(function(i,r){void 0!==i&&t.pi(n.mn(r),i)})},i.pi=function(t,i){var r=t+": [";null==i||i.forEach(function(t){r=r.concat(" "+t.kind+"("+n.mn(t.mimeType)+")")}),r=r.concat(" ]"),m.sh(r)},n.mn=function(t){return t.match(/audio/)?"audio":"video"},n}(Fn);var Wn=function(){function t(t,n,i){var r=this;this.bi=[],this.mi=U(),this.ki=0,this.mvt=void 0,this.tr=void 0,this.nr=function(t){if(t.gp.Zp(Gt.rA(ut)))for(;r.bi.length>0;)r.er()},this.ur=n,this.sr=i,this.tr=[new H,new V(8),new G(1),new Y,new z(0)],this.mvt=t,this.mvt.Va("remove",this.nr)}var n=t.prototype;return n.tet=function(t,n){var i=this.mi.get(t);if(i)if(n===x.f_){var r=i.L;if(r)return r}else{var e=i.W;if(e)return e}throw new c(t+" segment not available!")},n.Ea=function(){this.bi.length=0,this.ur.CE=0,this.mi.clear(),this.ki=0},n.MS=function(){return this.cr(),new tt([].concat(this.tr,[this.ur,this.sr],this.bi))},n.cr=function(){for(var t=this.mvt.rn(),n=0;n<t.length;n++){var i=t[n];if(!this.mi.has(i.Lw)){i.tt=!0;var r=i.X;i.it&&this.bi.push(new J),this.mi.set(i.Lw,i),this.bi.push(new X(r,i.Lw)),this.ki+=r}}this.ar()},n.ar=function(){for(;this.ki>300;)this.er()},n.er=function(){var t=this.bi.shift();void 0!==t&&(t.Qh===M.t_?(this.hr(t),this.ki-=t.S,this.ur.CE++):function(t){return t.Qh===M.v}(t)&&this.sr.CE++)},n.hr=function(t){this.mi.delete(t.I)},t}(),Xn=function(){function t(t){this.I0t=void 0,this.vr=void 0,this.lr=void 0,this.H=t,this.I0t=new nt,this.vr=new qn(this.H);for(var n=0,i=this.H;n<i.length;n++){var r=i[n];if(this.lr=new Wn(this.vr,new $(0),new Z(0)),r.match(/video/)){var e=new K("video/index.m3u8");this.I0t.k(e)}else{if(!r.match(/audio/))throw new c("Unsupported MIME type.");var u=new Q("audio/index.m3u8");this.I0t.k(u)}}}var n=t.prototype;return n.br=function(t){if("master.m3u8"===t){if(this.I0t)return this.I0t.MS;throw new c("Master playlist not ready yet")}if(this.lr)return this.lr.MS();throw new c("Media playlist not ready yet")},n.tet=function(n){var i=n.split("/")[1];return this.lr.tet(i,t.mr(n))},n.Tq=function(t){this.vr.Tq(t)},n.pq=function(t){this.vr.pq(t)},n.tut=function(t){this.vr.qc(t)},n.Ea=function(){this.vr.Ea(),this.I0t.Ea(),this.lr&&this.lr.Ea()},t.mr=function(t){return t.match(/video/)?x.f_:x.c_},t}();var Hn,Vn=function(){function n(t,n){var i=this;this.Cet=void 0,this.kr=function(){var t=E.coroutine(_.mark(function t(n){var r,e,u;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=n.data,t.t0=r.kind,t.next=t.t0===rn.e0?4:t.t0===rn.s0?7:t.t0===rn.u0?9:t.t0===rn.h0?11:13;break;case 4:return e=r.mediaBufferConfigs,i.Cet=new Xn(e),t.abrupt("break",13);case 7:return i.Cet.Tq(r),t.abrupt("break",13);case 9:return i.Cet.pq(r),t.abrupt("break",13);case 11:return i.Cet.tut(r),t.abrupt("break",13);case 13:u={kind:rn.o0},i.te.postMessage(u);case 15:case"end":return t.stop()}},t)}));return function(n){return t.apply(this,arguments)}}(),this.te=t,this.ie=n,this.te.onmessage=this.kr}var i=n.prototype;return i.ee=function(t){return this.Cet.br(t)},i.se=function(n){if(this.Cet){if(n.match(/m3u8/)){var i=this.ee(n);return new Response(i.T(),{headers:{"Content-Type":"application/x-mpegurl; charset=utf-8"}})}var r={"Content-Type":n.match(/video/)?"video/mp4":"audio/mp4"},e=function(t){return{start:(n=E.coroutine(_.mark(function n(i){var r,e;return _.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(i.enqueue(t.$u),!t.jc){n.next=6;break}return i.close(),n.abrupt("return");case 6:r=function(t){i.enqueue(t.$u)},t.Va("append",r),e=function n(){i.close(),t.Wa("append",r),t.Wa("close",n)},t.Va("close",e);case 10:case"end":return n.stop()}},n)})),function(t){return n.apply(this,arguments)})};var n}(this.Zrt(n)),u=new t.ReadableStream(e);return new Response(u,{headers:r})}throw new c("Stream not active.")},i.Zrt=function(t){return this.Cet.tet(t)},i.close=function(){this.te.close(),this.Cet&&this.Cet.Ea()},n}(),Gn=function(){function t(){var t=this;this.iY=U(),this.ce=void 0,this.kr=function(n){var i=n.data;switch(i.kind){case rn.i0:t.ae().catch(D);var r=i.port,e=C(),u=new Vn(r,n.source.id);t.iY.set(e,u);r.addEventListener("message",function n(i){i.data.kind===rn.a0&&(t.he(e),r.removeEventListener("message",n))});var o={kind:rn.r0,sessionId:e};r.postMessage(o)}},this.ve=function(n){if(fn(n.request.url,B)){var i=new URL(n.request.url).pathname.split("/"),r=i[1],e=i.slice(2).join("/");if(void 0!==r&&void 0!==e){var u=t.iY.get(r);if(u)try{var o=u.se(e);n.respondWith(o)}catch(t){n.respondWith(E.resolve(new Response(void 0,{headers:{message:"Segment not found"},status:404,statusText:"Not Found"})))}else n.respondWith(E.resolve(new Response(void 0,{headers:{message:"Given session ["+r+"] not found"},status:404,statusText:"Not Found"})))}else n.respondWith(E.resolve(new Response(void 0,{headers:{message:"No session ["+r+"] or resource ["+e+"] provided"},status:404,statusText:"Not Found"})))}}}var n=t.prototype;return n.bk=function(t){this.ce=t,t.addEventListener("message",this.kr),t.addEventListener("fetch",this.ve)},n.he=function(t){var n=this.iY.get(t);n&&n.close(),this.iY.delete(t)},n.ae=function(){var t=E.coroutine(_.mark(function t(){var n,i,r=this;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.ce.clients.matchAll();case 2:n=t.sent,i=n.map(function(t){return t.id}),this.iY.forEach(function(t,n){O(i,t.ie)||r.he(n)});case 5:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),t}();Gn.de=new Gn,function(t){t.re="web",t.ue="android",t.oe="android-tv",t.fe="ios",t._e="tvos",t.we="chromecast"}(Hn||(Hn={}));var zn=e?e.userAgent:"",Yn=zn.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),Kn=zn.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),$n=zn.match(/Android ([0-9\.]+)/i),Jn=zn.match(/Windows NT ([0-9\.]+)/i),Zn=zn.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),Qn=zn.match(/Firefox\/([0-9\.]+)/i),ti=zn.match(/OPR\/(\d+\.\d+)/i),ni=zn.match(/Tizen ([0-9\.]+)/i),ii=function(){function n(){this.me=Boolean("ontouchstart"in t||t.DocumentTouch&&r instanceof t.DocumentTouch||e&&e.msMaxTouchPoints),this.ye=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(zn)||/(macintosh|mac(?=_powerpc)\s)/i.test(zn),this.ke=/Windows NT/i.test(zn),this.pe=Jn?d(Jn[1]):0,this.Ae=/Android/i.test(zn),this.Te=$n?d($n[1]):0,this.Se=/windows phone (8|8\.1)/i.test(zn),this.Ee=/iPhone/i.test(zn),this.Ie=/iPad/i.test(zn),this.Re=this.ye&&this.me&&!this.Ie,this.Ne=/iPod/i.test(zn),this.De=/Mobile Safari/i.test(zn),this.Ce=/EOSSTB/i.test(zn),this.Pe=(this.Ee||this.Ie||this.Re||this.Ne)&&!this.Se,this.Oe=this.Se||this.Pe||this.Ae||this.De,this.Be=/CriOS/i.test(zn),this.Le=Boolean(t.chrome&&/google/i.test(e.vendor))||this.Be,this.xe=this.Le&&/Edg\//i.test(e.userAgent),this.Me=Kn?l(Kn[1],10):0,this.Fe=Boolean(t.chrome||/Chrome/i.test(zn)||/CriOS/i.test(zn)),this.Ue=Yn?l(Yn[1],10):0,this.He=/SMART-TV.*Tizen/i.test(zn),this.Ve=ni?d(ni[1]):0,this.Xe=/webos|web0s/i.test(zn),this.ze=/Edge\/\d+/i.test(zn),this.qe=/Trident/i.test(zn),this.Ge=this.qe&&!t.ActiveXObject&&"ActiveXObject"in t,this.We=/Vivaldi/i.test(zn),this.je=/Firefox/i.test(zn)&&!/Seamonkey/i.test(zn),this.Ye=Qn?d(Qn[1]):0,this.Qe=/Safari/i.test(zn)&&!/Chrome/i.test(zn)&&!this.Se&&!this.He,this.Ke=Zn?d(Zn[2]):0,this.Ze=Boolean(ti),this.Je=ti?d(ti[1]):0,this.$e=/CrKey/.test(zn),this.ns=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv)\b/i.test(zn),this.rs="web"===Hn.oe,this.us="web"===Hn.ue,this.hs=this.us||this.rs,this.fs="web"===Hn.fe,this.vs="web"===Hn._e,this.ds="web"===Hn.we}return P(n,[{key:"ls",get:function(){return this.me}},{key:"_s",get:function(){return this.ye}},{key:"gs",get:function(){return this.ke}},{key:"ys",get:function(){return this.pe}},{key:"As",get:function(){return this.Ae}},{key:"Ts",get:function(){return this.Te}},{key:"Ss",get:function(){return this.Se}},{key:"Es",get:function(){return this.Ee}},{key:"Is",get:function(){return this.Ie}},{key:"Rs",get:function(){return this.Re}},{key:"Ns",get:function(){return this.Ne}},{key:"Ds",get:function(){return this.Pe}},{key:"Cs",get:function(){return this.Ce}},{key:"Ps",get:function(){return this.De}},{key:"Os",get:function(){return this.Oe}},{key:"Bs",get:function(){return this.Be}},{key:"Ls",get:function(){return this.Le}},{key:"xs",get:function(){return this.Ue}},{key:"Ms",get:function(){return this.xe}},{key:"Fs",get:function(){return this.Me}},{key:"Us",get:function(){return this.He}},{key:"Hs",get:function(){return this.Ve}},{key:"Vs",get:function(){return this.Xe}},{key:"Xs",get:function(){return this.ze}},{key:"zs",get:function(){return this.qe}},{key:"qs",get:function(){return this.Ge}},{key:"Gs",get:function(){return this.We}},{key:"Ws",get:function(){return this.je}},{key:"js",get:function(){return this.Ye}},{key:"Ys",get:function(){return this.Qe}},{key:"Qs",get:function(){return this.Ke}},{key:"Ks",get:function(){return this.Ze}},{key:"Zs",get:function(){return this.Je}},{key:"Js",get:function(){return this.$e}},{key:"$s",get:function(){return this.ns}},{key:"tu",get:function(){if(!(this.Vs||this.Us))return!1;var t=this.xs;return void 0===t||Number(t)<56}},{key:"nu",get:function(){return this.rs}},{key:"uu",get:function(){return this.us}},{key:"ou",get:function(){return this.hs}},{key:"au",get:function(){return this.fs}},{key:"fu",get:function(){return this.vs}},{key:"vu",get:function(){return this.ds}},{key:"du",get:function(){return this.Fe}}]),n}();ii._u=new ii;var ri=ii._u,ei=!(ri.zs&&!ri.qs),ui=t.console;function oi(t){if(T(t))try{return JSON.stringify(t)}catch(t){}return t}function si(t){return t.map(oi).join(" ")}function fi(t){var n=ui&&ui[t];return n?n.bind&&ei?n.bind(ui):function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];ui[t](si(i))}:void 0}var ci,ai=fi("log")||D,hi=fi("warn")||ai.bind(void 0,"WARNING:"),vi=fi("error")||ai.bind(void 0,"ERROR:"),li=(ci=ui&&ui.assert)?ci.bind&&ei?ci.bind(ui):function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];ui.assert(t,si(i))}:function(t){if(!t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];vi.apply(void 0,["Assertion failed:"].concat(i))}};function di(){return Date.now()||(new Date).getTime()}var wi;Pt.fromNumber(ut);!function(t){t[t.yu=1]="yu",t[t.bu=2]="bu",t[t.pu=3]="pu",t[t.Au=4]="Au",t[t.Tu=9]="Tu"}(wi||(wi={}));var yi=function(t){function n(n){return t.call(this,"Invalid XML",n)||this}return rt(n,t),n}($t),pi=function(){function t(){}return t.prototype.Su=function(t){var n,i=new DOMParser;try{n=i.parseFromString(t,"text/xml")}catch(t){throw new yi(t)}if(!n||n.getElementsByTagName("parsererror").length>0)throw new yi;return new Ii(n)},t}(),bi=function(){function t(t){this.Eu=void 0,this.Eu=t}var n=t.prototype;return n.Iu=function(t){return this.Eu.isEqualNode(t.Eu)},n.Ru=function(n){return new t(this.Eu.cloneNode(n))},P(t,[{key:"mu",get:function(){return wi.bu}},{key:"Nu",get:function(){var t;return null!=(t=this.Eu.localName)?t:ki(this.Eu.nodeName)}},{key:"Du",get:function(){return this.Eu.nodeName}},{key:"Cu",get:function(){var t;return null!=(t=this.Eu.namespaceURI)?t:void 0}},{key:"Pu",get:function(){var t;return null!=(t=this.Eu.prefix)?t:void 0}},{key:"Ou",get:function(){return this.Eu.nodeValue}}]),t}(),gi=function(){function t(t){this.Bu=void 0,this.Lu=void 0,this.Bu=t}var n=t.prototype;return n.xu=function(t){return this.Mu.filter(function(n){return Ri(n)&&n.Fu===t})},n.Uu=function(t,n){return this.Mu.filter(function(i){return Ri(i)&&i.Nu===n&&i.Cu===t})},n.Hu=function(t){this.Bu.appendChild(t.Vu),this.Lu&&this.Lu.push(t)},n.Iu=function(t){return this.Bu.isEqualNode(t.Vu)},P(t,[{key:"Mu",get:function(){return void 0===this.Lu&&(this.Lu=function(t){for(var n=[],i=0;i<t.length;i++){var r=Ti(t.item(i));r&&n.push(r)}return n}(this.Bu.childNodes)),this.Lu}},{key:"Xu",get:function(){return this.Mu.filter(Ri)}},{key:"Vu",get:function(){return this.Bu}}]),t}(),mi=function(t){function n(n){return t.call(this,n)||this}rt(n,t);var i=n.prototype;return i.Gu=function(t){if(this.Bu.hasAttribute(t))return this.Bu.getAttribute(t)},i.Wu=function(t,n){if(this.Bu.hasAttributeNS(t,n))return this.Bu.getAttributeNS(t,n)},i.ju=function(t){this.Bu.removeAttribute(t)},i.Yu=function(t,n){this.Bu.removeAttributeNS(t,n)},i.Qu=function(t,n){this.Bu.setAttribute(t,n)},i.Ku=function(t,n,i){this.Bu.setAttributeNS(t,n,i)},i.Ru=function(t){return new n(this.Bu.cloneNode(t))},P(n,[{key:"mu",get:function(){return wi.yu}},{key:"Nu",get:function(){var t;return null!=(t=this.Bu.localName)?t:ki(this.Bu.nodeName)}},{key:"Cu",get:function(){var t;return null!=(t=this.Bu.namespaceURI)?t:void 0}},{key:"Pu",get:function(){var t;return null!=(t=this.Bu.prefix)?t:void 0}},{key:"Fu",get:function(){return this.Bu.nodeName}},{key:"Zu",get:function(){return function(t){for(var n=[],i=0;i<t.length;i++)n.push(new bi(t.item(i)));return n}(this.Bu.attributes)}},{key:"Ju",get:function(){return this.Bu.textContent}}]),n}(gi),_i=function(){function t(t){this.Bu=void 0,this.Bu=t}return t.prototype.Iu=function(t){return this.$u===t.$u},P(t,[{key:"$u",get:function(){return this.Bu.nodeValue}},{key:"Vu",get:function(){return this.Bu}}]),t}(),Ei=function(t){function n(n){return t.call(this,n)||this}return rt(n,t),n.prototype.Ru=function(t){return new n(this.Bu.cloneNode(t))},P(n,[{key:"mu",get:function(){return wi.pu}}]),n}(_i),Si=function(t){function n(n){return t.call(this,n)||this}return rt(n,t),n.prototype.Ru=function(t){return new n(this.Bu.cloneNode(t))},P(n,[{key:"mu",get:function(){return wi.Au}}]),n}(_i),Ii=function(t){function n(n){return t.call(this,n)||this}return rt(n,t),n.prototype.Ru=function(t){return new n(this.Bu.cloneNode(t))},P(n,[{key:"mu",get:function(){return wi.Tu}},{key:"uo",get:function(){return new mi(this.Bu.documentElement)}}]),n}(gi);function Ri(t){return function(t){return t.mu===wi.yu}(t)}function Ti(t){switch(t.nodeType){case wi.yu:return new mi(t);case wi.pu:return new Ei(t);case wi.Au:return new Si(t)}}function ki(t){var n=t.indexOf(":");return n<0?t:t.substr(n+1)}function Ai(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),h.defineProperty(t,r.key,r)}}function Oi(t,n){var i=function(t,n){var i=t.length;if(i<=1)return t;for(var r=new Array(i),e=1;e<i;e*=2){Ni(t,n,e,r);var u=t;t=r,r=u}return t}(t,n);return i!==t&&Ni(i,null,t.length,t),t}function Ni(t,n,i,r){var e,u,o,s,f,c=t.length,a=0,h=2*i;for(e=0;e<c;e+=h)for(o=(u=e+i)+i,u>c&&(u=c),o>c&&(o=c),s=e,f=u;;)if(s<u&&f<o)n(t[s],t[f])<=0?r[a++]=t[s++]:r[a++]=t[f++];else if(s<u)r[a++]=t[s++];else{if(!(f<o))break;r[a++]=t[f++]}}var Di=/[a-zA-Z]/,Ci=/[0-9]/,xi=/[0-9a-fA-F]/,Bi=/^0x/i,Fi=/^[0-9]+$/,Pi=/^[0-9a-fA-F]+$/,ji=/^[0-7]+$/,Ui=h.prototype.toString,Li=Array.isArray||function(t){return"[object Array]"===Ui.call(t)},Mi="undefined"!=typeof Symbol&&"symbol"==typeof Symbol.iterator;function qi(t){return Li(t)?t:Array.from(t)}function Wi(t){return t>=65&&t<=90}function Xi(t){return Wi(t)||function(t){return t>=97&&t<=122}(t)}function Hi(t){return t>=48&&t<=57}function Vi(t){return Hi(t)||Xi(t)}function Gi(t){return Hi(t)||t>=65&&t<=70||t>=97&&t<=102}function zi(t){return Wi(t)?t+32:t}function Yi(t){return Hi(t)?t-48:t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:-1}function Ki(t,n){return void 0===n&&(n=!1),0<=t&&t<=9?t+48:10<=t&&t<=15?t+(n?87:55):-1}var $i=v.min,Ji=String.fromCharCode,Zi=16384;function Qi(t){for(var n=t.length,i=[],r=0;r<n;r+=Zi){var e=$i(r+Zi,n);i.push(Ji.apply(null,t.slice(r,e)))}return i.join("")}var tr=/[^\0-\x7E]/,nr=/[\x2E\u3002\uFF0E\uFF61]/g,ir={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},rr=v.floor,er=String.fromCharCode;function ur(t){throw new RangeError(ir[t])}function or(t){for(var n=[],i=0,r=t.length;i<r;){var e=t.charCodeAt(i++);if(e>=55296&&e<=56319&&i<r){var u=t.charCodeAt(i++);56320==(64512&u)?n.push(((1023&e)<<10)+(1023&u)+65536):(n.push(e),i--)}else n.push(e)}return n}var sr,fr,cr,ar=function(t,n){return t+22+75*(t<26)-((0!=n)<<5)},hr=function(t,n,i){var r=0;for(t=i?rr(t/700):t>>1,t+=rr(t/n);t>455;r+=36)t=rr(t/35);return rr(r+36*t/(t+38))},vr=function(t){return function(t,n){var i=t.split("@"),r="";i.length>1&&(r=i[0]+"@",t=i[1]);var e=function(t,n){for(var i=[],r=t.length;r--;)i[r]=n(t[r]);return i}((t=t.replace(nr,".")).split("."),n).join(".");return r+e}(t,function(t){return tr.test(t)?"xn--"+function(t){for(var n=[],i=(t=or(t)).length,r=128,e=0,u=72,o=0,s=t;o<s.length;o++){var f=s[o];f<128&&n.push(er(f))}var c=n.length,a=c;for(c&&n.push("-");a<i;){for(var h=2147483647,v=0,l=t;v<l.length;v++){var d=l[v];d>=r&&d<h&&(h=d)}var w=a+1;h-r>rr((2147483647-e)/w)&&ur("overflow"),e+=(h-r)*w,r=h;for(var y=0,p=t;y<p.length;y++){var b=p[y];if(b<r&&++e>2147483647&&ur("overflow"),b==r){for(var g=e,m=36;;m+=36){var _=m<=u?1:m>=u+26?26:m-u;if(g<_)break;var E=g-_,S=36-_;n.push(er(ar(_+E%S,0))),g=rr(E/S)}n.push(er(ar(g,0))),u=hr(e,w,a==c),e=0,++a}}++e,++r}return n.join("")}(t):t})};function lr(t){for(var n=[],i=0;i<t.length;i++){var r=t[i];r>65535&&(r-=65536,n.push(r>>>10&1023|55296),r=56320|1023&r),n.push(r)}return Qi(n)}function dr(t){if(t>=55296&&t<=57343)throw new c("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function wr(t,n){return t>>n&63|128}function yr(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(dr(t),n.push(t>>12&15|224),n.push(wr(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(wr(t,12)),n.push(wr(t,6))),n.push(63&t|128)):n.push(t)}function pr(t){for(var n=[],i=0;i<t.length;i++){yr(t[i],n)}return n}function br(){if(cr>=fr)throw new c("Invalid byte index");var t=255&sr[cr];if(cr++,128==(192&t))return 63&t;throw new c("Invalid continuation byte")}function gr(){var t,n;if(cr>fr)throw new c("Invalid byte index");if(cr===fr)return!1;if(t=255&sr[cr],cr++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|br())>=128)return n;throw new c("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|br()<<6|br())>=2048)return dr(n),n;throw new c("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|br()<<12|br()<<6|br())>=65536&&n<=1114111)return n;throw new c("Invalid UTF-8 detected")}function mr(t){return[37,Ki(t>>4),Ki(15&t)]}function _r(t){return function(t){return t>=0&&t<=31}(t)||t>126}function Er(t){return _r(t)||32===t||34===t||60===t||62===t||96===t}function Sr(t){return Er(t)||35===t||63===t||123===t||125===t}function Ir(t){return Sr(t)||47===t||58===t||59===t||61===t||64===t||t>=91&&t<=94||124===t}function Rr(t){return t<33||t>126||34===t||35===t||60===t||62===t}function Tr(t){return Rr(t)||39===t}function kr(t,n){if(!n(t))return[t];for(var i=pr([t]),r=[],e=0;e<i.length;e++){var u=i[e];r.push.apply(r,mr(u))}return r}function Ar(t,n){for(var i=[],r=0,e=or(t);r<e.length;r++){var u=e[r];i.push.apply(i,kr(u,n))}return lr(i)}function Or(t){return function(t){for(var n=[],i=t.length,r=0;r<i;r++){var e=t[r];if(37===e&&r+2<i&&Gi(t[r+1])&&Gi(t[r+2])){var u=Yi(t[r+1])<<4|Yi(t[r+2]);n.push(u),r+=2}else n.push(e)}return n}(pr(t))}function Nr(t){return lr(function(t){sr=t.slice(),fr=sr.length,cr=0;for(var n,i=[];!1!==(n=gr());)i.push(n);return i}(Or(or(t))))}function Dr(t){var n,i,r,e,u=t.length,o=[0,0,0,0,0,0,0,0],s=0,f=null,c=0;if(c<u&&":"===t[c]){if(!(c+1<u&&":"===t[c+1]))throw new a;c+=2,f=s+=1}for(;c<u;){if(8===s)throw new a("Too many groups");if(":"!==t[c]){for(var h=0,v=0;v<4&&c<u&&xi.test(t[c]);)h=h<<4|l(t[c],16),c+=1,v+=1;if("."===t[c]){if(0===v)throw new a;if(c-=v,s>6)throw new a;for(var d=0;c<u;){var w=null;if(d>0){if(!("."===t[c]&&d<4))throw new a;c+=1}if(!Ci.test(t[c]))throw new a;for(;c<u&&Ci.test(t[c]);){var y=l(t[c],10);if(null===w)w=y;else{if(0===w)throw new a;if((w=10*w+y)>255)throw new a}c+=1}o[s]=o[s]<<8|w,2!==(d+=1)&&4!==d||(s+=1)}if(4!==d)throw new a;break}if(":"===t[c]){if((c+=1)===u)throw new a}else if(c<u)throw new a;o[s]=h,s+=1}else{if(null!==f)throw new a("Too many :: groups");c+=1,f=s+=1}}if(null!==f){var p=s-f;for(s=7;0!==s&&p>0;)r=f+p-1,e=void 0,e=(n=o)[i=s],n[i]=n[r],n[r]=e,s-=1,p-=1}else if(8!==s)throw new a;return o}function Cr(t){var n=10,i=Fi;return Bi.test(t)?(t=t.slice(2),n=16,i=Pi):t.length>=2&&"0"===t[0]&&(t=t.slice(1),n=8,i=ji),""===t?0:i.test(t)?l(t,n):void 0}var xr={oo:4},Br=/[\0\t\n\r #%/:?@\[\\\]]/,Fr=/[\0\t\n\r #/:?@\[\\\]]/;function Pr(t,n){if("["===t[0]){if("]"!==t[t.length-1])throw new a("Invalid IPv6 address");return{oo:2,ao:Dr(t.slice(1,-1))}}if(!n)return function(t){if(Fr.test(t))throw new a("Invalid code point in opaque host");var n=Ar(t,_r);return""===n?xr:{oo:3,Wr:n}}(t);var i=function(t){return function(t){return vr(t.toLowerCase())}(t)}(Nr(t));if(Br.test(i))throw new a("Invalid code point in host");var r=function(t){var n=t.split(".");if(""===n[n.length-1]&&n.pop(),!(n.length>4)){for(var i=[],r=0;r<n.length;r++){var e=n[r];if(""===e)return;var u=Cr(e);if(void 0===u)return;i.push(u)}for(var o=0;o<i.length-1;o++)if(i[o]>255)throw new a;if(i[i.length-1]>=v.pow(256,5-i.length))throw new a;for(var s=i.pop(),f=0;f<i.length;f++)s+=i[f]*v.pow(256,3-f);return s}}(i);return void 0!==r?{oo:1,ao:r}:""===i?xr:{oo:0,do:i}}function jr(t){switch(t.oo){case 0:return t.do;case 1:return function(t){for(var n=[],i=t,r=1;r<=4;r++)n.push(""+(255&i)),4!==r&&n.push("."),i>>>=8;return n.reverse().join("")}(t.ao);case 2:return"["+function(t){for(var n="",i=function(t){for(var n=0,i=0,r=0,e=0,u=0;u<8;u++)0===t[u]?(0===e&&(r=u),e++):(e>i&&(n=r,i=e),e=0);return e>i&&(n=r,i=e),i>1?n:null}(t),r=!1,e=0;e<8;e++){if(r){if(0===t[e])continue;r=!1}i!==e?(n+=t[e].toString(16),7!==e&&(n+=":")):(n+=0===e?"::":":",r=!0)}return n}(t.ao)+"]";case 3:return t.Wr;case 4:return""}}var Ur=/\+/g;function Lr(t){for(var n=t.split("&"),i=[],r=0;r<n.length;r++){var e=n[r];if(""!==e){var u=e.indexOf("="),o=void 0,s=void 0;-1!==u?(o=e.slice(0,u),s=e.slice(u+1)):(o=e,s=""),o=o.replace(Ur," "),s=s.replace(Ur," ");var f=Nr(o),c=Nr(s);i.push([f,c])}}return i}function Mr(t){for(var n="",i=0;i<t.length;i++){var r=t[i];i>0&&(n+="&"),n+=qr(pr(or(r[0])))+"="+qr(pr(or(r[1])))}return n}function qr(t){for(var n,i=[],r=0;r<t.length;r++){var e=t[r];32===e?i.push(43):42===(n=e)||45===n||46===n||95===n||Vi(n)?i.push(e):i.push.apply(i,mr(e))}return Qi(i)}var Wr=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function Xr(t){var n=""+t,i=Wr.exec(n);return i?function(t,n){for(var i=t.length,r=[],e=n;e<i;e++){var u=t.charCodeAt(e);if(Vr(u))if(Gr(u)||e===i-1)r.push(Hr);else{var o=t.charCodeAt(e+1);Gr(o)?(r.push(u,o),e++):r.push(Hr)}else r.push(u)}return t.slice(0,n)+Qi(r)}(n,i.index):n}var Hr=65533,Vr=function(t){return 55296==(63488&t)},Gr=function(t){return 0!=(1024&t)};function zr(t,n){var i=t[0],r=n[0];return i===r?0:i<r?-1:1}function Yr(t){t._o.length=0}function Kr(t,n){!function(t,n){for(var i=0;i<n.length;i++)t[i]=n[i];t.length=n.length}(t._o,Lr(n))}function $r(t){if(t.mo){var n=Mr(t._o);""===n&&(n=null),t.mo.mo.po=n}}var Jr=function(){function t(t){if(void 0===t&&(t=void 0),this.mo=null,null==t)this._o=[];else if("object"==typeof t||"function"==typeof t)if((u=t)instanceof Jr&&Li(u._o)&&(!Mi||u[Symbol.iterator]===Zr))this._o=t._o.slice();else if(function(t){return null!=t&&(!!Li(t)||!!Mi&&"function"==typeof t[Symbol.iterator])}(t)){this._o=[];for(var n=0,i=qi(t);n<i.length;n++){var r=qi(i[n]);if(2!==r.length)throw new a("Invalid name-value pair");this._o.push([Xr(r[0]),Xr(r[1])])}}else for(var e in this._o=[],t)h.prototype.hasOwnProperty.call(t,e)&&this._o.push([Xr(e),Xr(t[e])]);else(t=Xr(t)).length>0&&"?"===t[0]&&(t=t.slice(1)),this._o=Lr(t);var u}var n=t.prototype;return n.append=function(t,n){t=Xr(t),n=Xr(n),this._o.push([t,n]),$r(this)},n.delete=function(t){t=Xr(t);for(var n=this._o,i=0;i<n.length;){n[i][0]===t?n.splice(i,1):i++}$r(this)},n.get=function(t){t=Xr(t);for(var n=this._o,i=0;i<n.length;i++){var r=n[i];if(r[0]===t)return r[1]}return null},n.getAll=function(t){t=Xr(t);for(var n=this._o,i=[],r=0;r<n.length;r++){var e=n[r];e[0]===t&&i.push(e[1])}return i},n.has=function(t){t=Xr(t);for(var n=this._o,i=0;i<n.length;i++){if(n[i][0]===t)return!0}return!1},n.set=function(t,n){t=Xr(t),n=Xr(n);for(var i=this._o,r=!1,e=0;e<i.length;){var u=i[e];u[0]===t?r?i.splice(e,1):(u[1]=n,r=!0,e++):e++}r||i.push([t,n]),$r(this)},n.sort=function(){Oi(this._o,zr),$r(this)},n.toString=function(){return Mr(this._o)},n.entries=function(){return new ie(this._o,Qr)},n.keys=function(){return new ie(this._o,te)},n.values=function(){return new ie(this._o,ne)},n.forEach=function(t){var n=this;this._o.forEach(function(i){return t(i[1],i[0],n)})},t}(),Zr=Jr.prototype.entries;Mi&&(Jr.prototype[Symbol.iterator]=Zr);var Qr=function(t){return[t[0],t[1]]},te=function(t){return t[0]},ne=function(t){return t[1]},ie=function(){function t(t,n){this.Ao=0,this._o=t,this.To=n}return t.prototype.next=function(){return this.Ao<this._o.length?{done:!1,value:this.To(this._o[this.Ao++])}:{done:!0,value:void 0}},t}(),re="null";var ee=h.create(null);ee.ftp=21,ee.file=0,ee.gopher=70,ee.http=80,ee.https=443,ee.ws=80,ee.wss=443;var ue=/^(?:\.|%2e)$/i,oe=/^(?:\.|%2e){2}$/i;function se(t){return ue.test(t)}function fe(t){return oe.test(t)}function ce(t){return void 0!==ee[t]}function ae(t){return ce(t.So)}function he(t){return""!==t.Eo||""!==t.Io}function ve(t){var n=t.length;if(!(n>=2))return!1;if(!de(t.slice(0,2)))return!1;if(2!==n){var i=t[2];if(47!==i&&92!==i&&63!==i&&35!==i)return!1}return!0}function le(t){return 2===t.length&&Di.test(t[0])&&(":"===t[1]||"|"===t[1])}function de(t){return 2===t.length&&le(Qi(t))}function we(t){return le(t)&&":"===t[1]}function ye(t){var n=t.Ro;0!==n.length&&("file"===t.So&&1===n.length&&we(n[0])||n.pop())}function pe(t){return null===t.No||xr===t.No||t.Do||"file"===t.So}var be=-1,ge=/\t|\n|\r/g,me=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function _e(t,n,i,r){void 0===i&&(i=null),void 0===r&&(r=null),i||(i=new Se,t=t.replace(me,""));var e=null!==r?r:0;n=n||null;for(var u=[],o=!1,s=!1,f=!1,c=or(t=t.replace(ge,"")),h=c.length,v=0;v<=h;){var d=v<h?c[v]:be;switch(e){case 0:if(!Xi(d)){if(null===r){u.length=0,e=2;continue}throw new a("Invalid scheme")}u.push(zi(d)),e=1;break;case 1:if(Vi(d)||43===d||45===d||46===d)u.push(zi(d));else{if(58!==d){if(null===r){u.length=0,e=2,v=0;continue}throw new a("Invalid scheme")}var w=lr(u);if(null!==r){if(ce(i.So)&&!ce(w))return;if(!ce(i.So)&&ce(w))return;if((he(i)||null!==i.Co)&&"file"===w)return;if("file"===i.So&&(i.No===xr||null===i.No))return}if(i.So=w,null!==r)return void(ae(i)&&i.Co===ee[i.So]&&(i.Co=null));u.length=0,"file"===i.So?e=13:ae(i)&&n&&n.So===i.So?e=3:ae(i)?e=7:47===c[v+1]?(e=4,v+=1):(i.Do=!0,i.Ro.push(""),e=18)}break;case 2:if(!n||n.Do&&35!==d)throw new a("Invalid scheme");n.Do&&35===d?(i.So=n.So,i.Ro=n.Ro.slice(),i.po=n.po,i.Po="",i.Do=!0,e=20):"file"!==n.So?(e=5,v-=1):(e=13,v-=1);break;case 3:47===d&&47===c[v+1]?e=8:(e=5,v-=1);break;case 4:47===d?e=9:(e=17,v-=1);break;case 5:i.So=n.So,be===d?(i.Eo=n.Eo,i.Io=n.Io,i.No=n.No,i.Co=n.Co,i.Ro=n.Ro.slice(),i.po=n.po):47===d?e=6:63===d?(i.Eo=n.Eo,i.Io=n.Io,i.No=n.No,i.Co=n.Co,i.Ro=n.Ro.slice(),i.po="",e=19):35===d?(i.Eo=n.Eo,i.Io=n.Io,i.No=n.No,i.Co=n.Co,i.Ro=n.Ro.slice(),i.po=n.po,i.Po="",e=20):92===d&&ae(i)?e=6:(i.Eo=n.Eo,i.Io=n.Io,i.No=n.No,i.Co=n.Co,i.Ro=n.Ro.slice(),i.Ro.pop(),e=17,v-=1);break;case 6:!ae(i)||47!==d&&92!==d?47===d?e=9:(i.Eo=n.Eo,i.Io=n.Io,i.No=n.No,i.Co=n.Co,e=17,v-=1):e=8;break;case 7:if(47!==d||47!==c[v+1]){e=8;continue}e=8,v+=1;break;case 8:47!==d&&92!==d&&(e=9,v-=1);break;case 9:if(64===d){o&&u.unshift(37,52,48),o=!0;for(var y=0;y<u.length;y++){var p=u[y];if(58!==p||f){var b=lr(kr(p,Ir));f?i.Io+=b:i.Eo+=b}else f=!0}u.length=0}else if(be===d||47===d||63===d||35===d||ae(i)&&92===d){if(o&&0===u.length)throw new a("Invalid host");v-=u.length+1,u.length=0,e=10}else u.push(d);break;case 10:case 11:if(null!==r&&"file"===i.So)v-=1,e=15;else if(58!==d||s)if(be===d||47===d||63===d||35===d||ae(i)&&92===d){if(v-=1,ae(i)&&0===u.length)throw new a("Invalid host");if(null!==r&&0===u.length&&(he(i)||null!==i.Co))return;var g=Pr(lr(u),ae(i));if(i.No=g,u.length=0,e=16,null!==r)return}else 91===d?s=!0:93===d&&(s=!1),u.push(d);else{if(0===u.length)throw new a("Invalid host");var m=Pr(lr(u),ae(i));if(i.No=m,u.length=0,e=12,11===r)return}break;case 12:if(Hi(d))u.push(d);else{if(!(be===d||47===d||63===d||35===d||ae(i)&&92===d||null!==r))throw new a("Invalid port");if(0!==u.length){var _=l(lr(u),10);if(_>65535)throw new a("Invalid port");i.Co=_===ee[i.So]?null:_,u.length=0}if(null!==r)return;e=16,v-=1}break;case 13:i.So="file",47===d||92===d?e=14:n&&"file"===n.So?be===d?(i.No=n.No,i.Ro=n.Ro.slice(),i.po=n.po):63===d?(i.No=n.No,i.Ro=n.Ro.slice(),i.po="",e=19):35===d?(i.No=n.No,i.Ro=n.Ro.slice(),i.po=n.po,i.Po="",e=20):(ve(c.slice(v))||(i.No=n.No,i.Ro=n.Ro.slice(),ye(i)),e=17,v-=1):(e=17,v-=1);break;case 14:47===d||92===d?e=15:(n&&"file"===n.So&&!ve(c.slice(v))&&(we(n.Ro[0])?i.Ro.push(n.Ro[0]):i.No=n.No),e=17,v-=1);break;case 15:if(be===d||47===d||92===d||63===d||35===d)if(v-=1,null===r&&de(u))e=17;else if(0===u.length){if(i.No=xr,null!==r)return;e=16}else{var E=Pr(lr(u),ae(i));if(0===E.oo&&"localhost"===E.do&&(E=xr),i.No=E,null!==r)return;u.length=0,e=16}else u.push(d);break;case 16:ae(i)?(e=17,47!==d&&92!==d&&(v-=1)):null===r&&63===d?(i.po="",e=19):null===r&&35===d?(i.Po="",e=20):be!==d&&(e=17,47!==d&&(v-=1));break;case 17:if(be===d||47===d||ae(i)&&92===d||null===r&&(63===d||35===d)){var S=lr(u);if(fe(S)?(ye(i),47===d||ae(i)&&92===d||i.Ro.push("")):!se(S)||47===d||ae(i)&&92===d?se(S)||("file"===i.So&&0===i.Ro.length&&de(u)&&(xr!==i.No&&null!==i.No&&(i.No=xr),u[1]=58,S=lr(u)),i.Ro.push(S)):i.Ro.push(""),u.length=0,"file"===i.So&&(be===d||63===d||35===d))for(;i.Ro.length>1&&""===i.Ro[0];)i.Ro.shift();63===d?(i.po="",e=19):35===d&&(i.Po="",e=20)}else u.push.apply(u,kr(d,Sr));break;case 18:63===d?(i.po="",e=19):35===d?(i.Po="",e=20):be!==d&&(i.Ro[0]+=lr(kr(d,_r)));break;case 19:null===r&&35===d?(i.Po="",e=20):be!==d&&(i.po+=lr(kr(d,ae(i)?Tr:Rr)));break;case 20:be===d||0===d||(i.Po+=lr(kr(d,Er)))}v++}return i}function Ee(t,n,i,r){try{_e(t,n,i,r)}catch(t){}}var Se=function(){this.So="",this.Eo="",this.Io="",this.No=null,this.Co=null,this.Ro=[],this.po=null,this.Po=null,this.Do=!1};function Ie(t){switch(t.So){case"blob":var n;try{n=_e(t.Ro[0],null)}catch(t){return re}return Ie(n);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return i=t.So,r=t.No,e=t.Co,i+"://"+jr(r)+(null===e?"":":"+e);case"file":default:return re}var i,r,e}var Re,Te,ke=function(){function t(t,n){var i,r,e=null;if(null!=n)if(null!=(i=n)&&i instanceof ke&&"object"==typeof i.mo)e=n.mo;else try{e=_e(String(n),null)}catch(t){throw new a("Invalid base URL: "+t.message)}try{r=_e(String(t),e)}catch(t){throw new a("Invalid URL: "+t.message)}var u=r.po;this.mo=r,this.po=function(t){var n=new Jr;return null!==t&&Kr(n,t),n}(u),this.po.mo=this}var n,i,r,e=t.prototype;return e.toString=function(){return this.href},e.toJSON=function(){return this.href},n=t,(i=[{key:"href",get:function(){return function(t,n){void 0===n&&(n=!1);var i=t.So+":";if(null!==t.No?(i+="//",he(t)&&(i+=t.Eo,""!==t.Io&&(i+=":"+t.Io),i+="@"),i+=jr(t.No),null!==t.Co&&(i+=":"+t.Co)):null===t.No&&"file"===t.So&&(i+="//"),t.Do)i+=t.Ro[0];else for(var r=0,e=t.Ro;r<e.length;r++)i+="/"+e[r];return null!==t.po&&(i+="?"+t.po),n||null===t.Po||(i+="#"+t.Po),i}(this.mo)},set:function(t){var n;try{n=_e(String(t),null)}catch(t){throw new a("Invalid URL: "+t.message)}this.mo=n,Yr(this.po);var i=this.mo.po;null!==i&&Kr(this.po,i)}},{key:"origin",get:function(){return Ie(this.mo)}},{key:"protocol",get:function(){return this.mo.So+":"},set:function(t){Ee(t+":",null,this.mo,0)}},{key:"username",get:function(){return this.mo.Eo},set:function(t){pe(this.mo)||(this.mo.Eo=Ar(t,Ir))}},{key:"password",get:function(){return this.mo.Io},set:function(t){pe(this.mo)||(this.mo.Io=Ar(t,Ir))}},{key:"host",get:function(){var t=this.mo,n=t.No;if(null===n)return"";var i=t.Co,r=jr(n);return null!==i&&(r+=":"+i),r},set:function(t){this.mo.Do||Ee(t,null,this.mo,10)}},{key:"hostname",get:function(){var t=this.mo.No;return null===t?"":jr(t)},set:function(t){this.mo.Do||Ee(t,null,this.mo,11)}},{key:"port",get:function(){var t=this.mo.Co;return null===t?"":""+t},set:function(t){pe(this.mo)||(""===t?this.mo.Co=null:Ee(t,null,this.mo,12))}},{key:"pathname",get:function(){var t=this.mo.Ro;return this.mo.Do?t[0]:0===t.length?"":"/"+t.join("/")},set:function(t){this.mo.Do||(this.mo.Ro.length=0,Ee(t,null,this.mo,16))}},{key:"search",get:function(){var t=this.mo.po;return null===t||""===t?"":"?"+t},set:function(t){t=Xr(t);var n=this.mo;if(""===t)return n.po=null,void Yr(this.po);"?"===t[0]&&(t=t.slice(1)),n.po="",Ee(t,null,n,19),Kr(this.po,t)}},{key:"searchParams",get:function(){return this.po}},{key:"hash",get:function(){var t=this.mo.Po;return null===t||""===t?"":"#"+t},set:function(t){""!==t?("#"===t[0]&&(t=t.slice(1)),this.mo.Po="",Ee(t,null,this.mo,20)):this.mo.Po=null}}])&&Ai(n.prototype,i),r&&Ai(n,r),t}();function Ae(t){return t.document&&t.document.baseURI||t.location.href||""}function Oe(){return void 0!==r?r.createElement("video"):void 0}function Ne(){return Te||(Te=Oe()),Te}var De=!!("ontouchstart"in t||t.DocumentTouch&&r instanceof t.DocumentTouch)||!(!e||!e.msMaxTouchPoints),Ce=Ne(),xe=!(!Ce||!Ce.webkitShowPlaybackTargetPicker),Be=function(){function t(){this.Oo=void 0,this.Bo=!1,this.ls=De,this.Os=!1,this.Lo=!0,this.xo=!0}var n=t.prototype;return n.Mo=function(){return 0},n.Fo=function(t,n){return!0},n.Uo=function(t){return t>=1/6*2},P(t,[{key:"Ho",get:function(){return void 0===this.Oo&&(this.Oo=this.Mo()),this.Oo}},{key:"Vo",get:function(){return i.devicePixelRatio||1}},{key:"Xo",get:function(){return xe}},{key:"zo",get:function(){return!1}},{key:"qo",get:function(){return!0}},{key:"Go",get:function(){return ri._s||ri.Ds}},{key:"Wo",get:function(){return!0}},{key:"jo",get:function(){return!0}},{key:"Yo",get:function(){}},{key:"Qo",get:function(){return!0}}]),t}(),Fe=function(){var t=Oe();if(!t)return!1;var n=t.muted;return t.muted=!n,t.muted!==n}();!function(){if(ri.Rs)return!1;var t=Oe();if(!t)return!1;var n=t.volume;t.volume=n/2+.1,t.volume}();var Pe=function(t){function n(n){var i;return(i=t.call(this)||this).Ko=void 0,i.Ko=n,i.Ko&&(i.Bo=i.Ko.Bo,i.ls=i.Ko.ls,i.Lo=Fe&&i.Ko.Lo),i}rt(n,t);var i=n.prototype;return i.Mo=function(){return this.Ko?this.Ko.Ho:t.prototype.Mo.call(this)},i.Fo=function(n,i){return this.Ko?this.Ko.Fo(n,i):t.prototype.Fo.call(this,n,i)},i.Uo=function(n){return this.Ko?this.Ko.Uo(n):t.prototype.Uo.call(this,n)},P(n,[{key:"Yo",get:function(){var t;return null==(t=this.Ko)?void 0:t.Yo}},{key:"Qo",get:function(){var t,n;return null==(t=null==(n=this.Ko)?void 0:n.Qo)||t}}]),n}(Be),je=function(t){function n(n){var i;return(i=t.call(this,n)||this).Bo=!0,i.Os=!0,i}return rt(n,t),n}(Pe),Ue=function(t){function n(){return t.apply(this,arguments)||this}return rt(n,t),n.prototype.Mo=function(){if(!Re.MediaSource)return 1},n}(je),Le=function(t){function n(){return t.apply(this,arguments)||this}return rt(n,t),n.prototype.Fo=function(n,i){return!(i.Zo>1920)&&t.prototype.Fo.call(this,n,i)},P(n,[{key:"zo",get:function(){return ri.Hs<3}},{key:"qo",get:function(){return ri.Hs>=3}}]),n}(Pe),Me=function(t){function n(){return t.call(this)||this}return rt(n,t),n}(Be),qe=function(t){function n(){return t.apply(this,arguments)||this}return rt(n,t),n.prototype.Fo=function(t,n){if(t&&t.Jo&&n&&n.Jo){var i=We(t.Jo,"mp4a.40.2")&&We(n.Jo,"mp4a.40.5"),r=We(t.Jo,"mp4a.40.5")&&We(n.Jo,"mp4a.40.2"),e=We(t.Jo,"mp4a.40.2")&&We(n.Jo,"mp4a.40.34"),u=We(t.Jo,"mp4a.40.34")&&We(n.Jo,"mp4a.40.2"),o=We(t.Jo,"mp4a.40.5")&&We(n.Jo,"mp4a.40.34"),s=We(t.Jo,"mp4a.40.34")&&We(n.Jo,"mp4a.40.5");return!(i||r||e||u||o||s)}return!0},P(n,[{key:"Yo",get:function(){if(ri._s)return 4096}}]),n}(Me);function We(t,n){return t.indexOf(n)>-1}var Xe=function(t){function n(){return t.apply(this,arguments)||this}return rt(n,t),n.prototype.Uo=function(t){return t>=2},n}(Me),He=function(t){function n(){var n;return(n=t.call(this)||this).Bo=ri.Qs>=11,n.Lo=ri.Ys&&!(ri.Ds&&ri.Qs<10),n}return rt(n,t),n}(Me),Ve=function(t){function n(){return t.apply(this,arguments)||this}return rt(n,t),P(n,[{key:"Wo",get:function(){return!1}}]),n}(Pe),Ge=function(t){function n(){return t.apply(this,arguments)||this}return rt(n,t),P(n,[{key:"Qo",get:function(){return!ri.gs||!!ri.Ms&&92!==ri.Fs}}]),n}(Me),ze=function(){function n(){var n;this.$o=void 0,this.nh=new pi,this.ih=new Ye,this.rh=(n=function(){if(ri.Ws)return new qe;if(ri.Xs||ri.zs)return new Xe;if(ri.Ys)return new He;if(ri.Ls)return new Ge;return new Me}(),ri.Ds?new Ue(n):ri.Os?new je(n):ri.Us?new Le(n):ri.Vs?new Ve(n):new Pe(n)),this.eh=function(){if(t.URL)try{var n=new t.URL("b","http://a");return n.pathname="c d","http://a/c%20d"===n.href}catch(t){}return!1}(),t.performance&&t.performance.now?this.$o=function(){return t.performance.now()}:this.$o=di}var i=n.prototype;return i.sh=function(){ai.apply(void 0,arguments)},i.uh=function(){hi.apply(void 0,arguments)},i.oh=function(){vi.apply(void 0,arguments)},i.ah=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];li.apply(void 0,[t].concat(i))},i.Zr=function(t,n){return u(t,n)},i.fh=function(t,n){return s(t,n)},i.Kr=function(t){o(t)},i.vh=function(t){f(t)},i.Su=function(t){return this.nh.Su(t)},i.dh=function(){return this.lh.dh()},i._h=function(){return this.lh._h()},i.gh=function(){return this.lh.gh()},i.wh=function(){return this.lh.wh()},i.yh=function(){return this.lh.yh()},i.kh=function(t,n){return this.lh.kh(t,n)},i.ph=function(t){return this.lh.ph(t)},i.Ah=function(t,n){var i;return void 0===n&&(n=Ae(Re)),i="object"!=typeof n||n instanceof ke?n:n.href,new ke(t,i)},i.Th=function(n,i){if(void 0===i&&(i=Ae(Re)),this.eh){var r="string"==typeof i?i:i.toString();return new t.URL(n,r).href}return this.Ah(n,i).href},P(n,[{key:"Sh",get:function(){return this.ih}},{key:"Eh",get:function(){return this.rh}},{key:"Ih",get:function(){return{Rh:e&&e.userAgent.match(/Android /i)?"Android":"other",Nh:Boolean(e&&e.userAgent.match(/Android 8.0.0/i))}}},{key:"Dh",get:function(){return t&&t.location&&"https:"===t.location.protocol}},{key:"Ch",get:function(){return"languages"in e?e.languages.slice():[e.language]}}]),n}(),Ye=function(){function t(){}return P(t,[{key:"Ph",get:function(){return e.oscpu}},{key:"Eh",get:function(){return e.platform}},{key:"Oh",get:function(){return e.vendor}},{key:"Bh",get:function(){return e.vendorSub}}]),t}();function Ke(){return(Ke=h.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)h.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}var $e,Je="com.microsoft.playready",Ze="94ce86fb-07ff-4f43-adb8-93d2fa968ca2",Qe="urn:uuid:"+Ze,tu="com.apple.fps.1_0";!function(t){t.qh="playready",t.Gh="widevine",t.Wh="fairplay",t.jh="clearkey",t.Yh="aes128"}($e||($e={}));var nu={Qh:$e.qh,Kh:Je,Zh:"cenc",Jh:"9a04f079-9840-4286-ab92-e65be0885f95",$h:"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95",ra:"PlayReady"},iu={Qh:$e.Gh,Kh:"com.widevine.alpha",Zh:"cenc",Jh:"edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",$h:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",ra:"Widevine"},ru={Qh:$e.Wh,Kh:tu,Zh:"skd",Jh:Ze,$h:Qe,ra:"FairPlay"},eu=($e.Wh,{Qh:$e.jh,Kh:"org.w3.clearkey",Zh:"cenc",Jh:"1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",$h:"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",ra:"ClearKey"}),uu=ri.Ls&&ri.xs>=42||ri.Ws&&ri.js>=38||ri.Xs||ri.qs||ri.Ks&&ri.Zs>=29;function ou(t,n){return r="audio",null!=(i=t)&&-1!==i.indexOf(r)?{initDataTypes:["cenc"],audioCapabilities:[Ke({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]}:{initDataTypes:["cenc"],videoCapabilities:[Ke({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]};var i,r}var su,fu=function(){function t(t){this.ea=void 0,this.ua=U(),this.oa=void 0,this.ea=t}var n=t.prototype;return n.yh=function(){return this.ph(iu)},n._h=function(){return this.ph(eu)},n.wh=function(){return this.ph(nu)},n.gh=function(){return this.ph(ru)},n.ph=function(t){var n=t.$h,i=this.ua.get(n);if(i)return i;var r=this.kh(t,'video/mp4; codecs="avc1.42000a"');return this.ua.set(n,r),r},n.kh=function(){var t=E.coroutine(_.mark(function t(n,i){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.ea.va(n.Kh,[ou(i,!0)]);case 3:return t.abrupt("return",!0);case 6:return t.prev=6,t.t0=t.catch(0),t.prev=8,t.next=11,this.ea.va(n.Kh,[ou(i,!1)]);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t1=t.catch(8),t.abrupt("return",!1);case 17:case"end":return t.stop()}},t,this,[[0,6],[8,14]])}));return function(n,i){return t.apply(this,arguments)}}(),n.dh=function(){return this.oa||(this.oa=this._a()),this.oa},n._a=function(){var t=E.coroutine(_.mark(function t(){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("https:"!==(void 0).protocol){t.next=2;break}case 2:if(uu){t.next=4;break}return t.abrupt("return",!1);case 4:return t.next=6,this._h();case 6:if(!t.sent){t.next=8;break}return t.abrupt("return",!1);case 8:return t.abrupt("return",!0);case 9:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),t}(),cu=["cenc"],au=function(t){function n(n){var i;return(i=t.call(this,"$a")||this).Ja=n,i}return rt(n,t),n}(Pn),hu=function(t){function n(n,i,r,e){var u;return(u=t.call(this,"tc")||this).Ja=n,u.nc=i,u.tc=r,u.ic=e,u}return rt(n,t),n}(Pn);!function(t){t.ec="uc",t.hc="ac"}(su||(su={}));var vu=new y([0]).buffer,lu=function(){function t(){this.fc=void 0,this.fc=[]}var n=t.prototype;return n.vc=function(t){for(var n=0,i=this.fc;n<i.length;n++){if(i[n][0]===t)return!0}return!1},n.dc=function(t){for(var n=0,i=this.fc;n<i.length;n++){var r=i[n];if(r[0]===t)return r[1]}},n.lc=function(t,n){this.fc.forEach(function(n){return t(n[1],n[0])},n)},n._c=function(t,n){this.fc.push([t,n])},n.gc=function(){N(this.fc)},P(t,[{key:"wc",get:function(){return this.fc.length}}]),t}(),du=function(){function t(){var t=this;this.Ec=void 0,this.gi=void 0,this.J=void 0,this.Ec=new E(function(n,i){t.gi=n,t.J=i})}var n=t.prototype;return n.Ic=function(t){this.gi&&(this.gi(t),this.Ea())},n.Rc=function(t){this.J&&(this.J(t),this.Ea())},n.Pa=function(){this.Ec.catch(D),this.Rc(new Qt)},n.Ea=function(){this.gi=void 0,this.J=void 0},t}();function wu(t,n){return t===Je?function(t){if(t.byteLength<2*yu.length)return t;if(mn(new DataView(t,0,2*yu.length),!0)===yu)return t;return n=t,_n('<PlayReadyKeyMessage type="LicenseAcquisition"><LicenseAcquisition Version="1"><Challenge encoding="base64encoded">'+Cn(n)+'</Challenge><HttpHeaders><HttpHeader><name>Content-Type</name><value>text/xml; charset=utf-8</value></HttpHeader><HttpHeader><name>SOAPAction</name><value>"http://schemas.microsoft.com/DRM/2007/03/protocols/AcquireLicense"</value></HttpHeader></HttpHeaders></LicenseAcquisition></PlayReadyKeyMessage>',!0).buffer;var n}(n):n}var yu="<PlayReady";var pu=function(t){function n(n,i,r,e){var u;return(u=t.call(this,n,e)||this).Nc=void 0,u.Dc=void 0,u.Nc=i,u.Dc=r,u}return rt(n,t),n}($t),bu=function(t){function n(n,i){var r;(r=t.call(this)||this).Cc=void 0,r.Pc=!1,r.Oc=void 0,r.Bc=void 0,r.Lc=function(){r.xc()},r.Mc=function(t){r.Ha(new hu(Yt(r),t.messageType,wu(r.Fc,t.message)))},r.Uc=function(){r.Pc=!0,r.Cc.wc>0&&(r.Cc.gc(),r.Ha(new au(Yt(r)))),r.Hc.removeEventListener("keystatuseschange",r.Lc),r.Hc.removeEventListener("message",r.Mc)},r.Hc=n,r.Fc=i,r.Hc.addEventListener("keystatuseschange",r.Lc),r.Hc.addEventListener("message",r.Mc),r.Cc=new lu;var e=[];return r.Hc.closed&&e.push(E.resolve(r.Hc.closed)),r.Bc=new du,e.push(r.Bc.Ec),r.Oc=E.race(e).then(r.Uc,r.Uc),r.xc(),r}rt(n,t);var i=n.prototype;return i.Vc=function(){if(this.Pc)return this.Oc;var t,n,i=[];return i.push(E.resolve(this.Hc.close())),i.push((t=1e3,new E(function(i,r){if(void 0!==n&&n.ma)r(new Qt);else{var e=m.Zr(function(){void 0!==n&&n.Ra(u),i()},t),u=function(){m.Kr(e),r(new Qt)};void 0!==n&&n.Ia(u)}}))),this.Bc.Ic(E.race(i).catch(gu)),this.Pc=!0,this.Oc},i.Xc=function(t,n,i){return E.resolve(this.Hc.generateRequest(t,n)).catch(gu)},i.zc=function(t){return E.resolve(this.Hc.load(t)).catch(gu)},i.qc=function(){return E.resolve(this.Hc.remove()).catch(gu)},i.Gc=function(t){return E.resolve(this.Hc.update(t)).catch(gu)},i.xc=function(){var t=this;this.Cc.gc(),this.Hc.keyStatuses.forEach(function(n,i){t.Wc(i,n)}),this.Ha(new au(this))},i.Wc=function(t,n){if("string"==typeof t){var i=t;t=n,n=i}var r=Tn(t);if(this.Fc===Je&&16===r.byteLength){var e=In(r),u=e.getUint32(0,!0),o=e.getUint16(4,!0),s=e.getUint16(6,!0);e.setUint32(0,u,!1),e.setUint16(4,o,!1),e.setUint16(6,s,!1)}this.Fc===Je&&"status-pending"===n&&(n="usable"),this.Cc._c(r,n)},P(n,[{key:"jc",get:function(){return this.Oc}},{key:"Yc",get:function(){return this.Hc.expiration}},{key:"Qc",get:function(){return this.Cc}},{key:"Kc",get:function(){return this.Hc.sessionId}}]),n}(Fn);function gu(t){var n;if(t.message){var i=t.message.match(/^SystemCode:0x([0-9a-fA-F]+)$/);i&&(n=0|l(i[1],16))}throw new pu(t.message,void 0,n,t)}var mu=function(){function t(t,n,i){this.Zc=t,this.Jc=n,this.$c=i}var n=t.prototype;return n.tf=function(){var t=E.coroutine(_.mark(function t(n){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new bu(this.Zc.createSession(n),this.Jc));case 1:case"end":return t.stop()}},t,this)}));return function(n){return t.apply(this,arguments)}}(),n.nf=function(t){return E.resolve(this.Zc.setServerCertificate(t))},n.if=function(t){return E.resolve(t.setMediaKeys(this.Zc))},n.rf=function(t){return E.resolve(t.setMediaKeys(null))},t}(),_u=function(){function t(t,n,i){this.ef=t,this.Fc=n,this.sf=i}var n=t.prototype;return n.uf=function(){var t=E.coroutine(_.mark(function t(){var n;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.ef.createMediaKeys();case 2:return n=t.sent,t.abrupt("return",new mu(n,this.Fc,this.sf));case 4:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),n.hf=function(){return this.sf},P(t,[{key:"Jc",get:function(){return this.ef.keySystem}}]),t}();function Eu(t,n,i,r){var e=!1;if(!(r.persistentState&&"optional"!==r.persistentState||r.distinctiveIdentifier&&"optional"!==r.distinctiveIdentifier)){var u={audioCapabilities:[],videoCapabilities:[],persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",initDataTypes:r.initDataTypes,sessionTypes:["temporary"],label:r.label,df:r.df},o=!1;if(r.audioCapabilities){var s=r.audioCapabilities.filter(function(t){return Boolean(t.contentType)});s.length&&(u.audioCapabilities=s.filter(function(r){return Su(t,n,i,r)}),o=!0,u.audioCapabilities.length&&(e=!0))}if(r.videoCapabilities){var f=r.videoCapabilities.filter(function(t){return Boolean(t.contentType)});f.length&&(u.videoCapabilities=f.filter(function(r){return Su(t,n,i,r)}),o=!0,u.videoCapabilities.length&&(e=!0))}return o||(e=t(i,"video/mp4")),e?u:void 0}}function Su(t,n,i,r){return!!r.contentType&&(!(r.encryptionScheme&&!O(n,r.encryptionScheme))&&(!r.robustness&&t(i,(e=r.contentType,u=e.trim(),(o=u.indexOf(";"))<0?u:u.substr(0,o).trim()))));var e,u,o}function Iu(t){for(var n=[],i=0;i<t.length;i++){var r=t[i];r.encryptionScheme&&n.push({contentType:r.contentType,robustness:r.robustness})}return t.concat(n)}function Ru(t){return!(!t.audioCapabilities||!t.audioCapabilities.some(Tu))||!(!t.videoCapabilities||!t.videoCapabilities.some(Tu))}function Tu(t){return!t.robustness}function ku(t,n){for(var i=[],r=0;r<t.length;r++){var e=t[r];e.robustness?i.push(e):i.push(Ke({},e,{robustness:n}))}return i}var Au,Ou,Nu=function(){function t(){}return t.prototype.va=function(){var t=E.coroutine(_.mark(function t(n,i){var r,u,o,s,f,c,a,h;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(i=i.filter(function(t){return!t.df}),r=0,u=i;r<u.length;r++)(o=u[r]).audioCapabilities&&(o.audioCapabilities=Iu(o.audioCapabilities)),o.videoCapabilities&&(o.videoCapabilities=Iu(o.videoCapabilities));if("com.widevine.alpha"!==n||!i.some(Ru)){t.next=14;break}return s=i.map(function(t){return i="SW_SECURE_CRYPTO",Ke({},n=t,{videoCapabilities:n.videoCapabilities?ku(n.videoCapabilities,i):void 0,audioCapabilities:n.audioCapabilities?ku(n.audioCapabilities,i):void 0});var n,i}),t.prev=4,t.next=7,e.requestMediaKeySystemAccess(n,s);case 7:return f=t.sent,c=f.getConfiguration(),t.abrupt("return",new _u(f,n,c));case 12:t.prev=12,t.t0=t.catch(4);case 14:return t.next=16,e.requestMediaKeySystemAccess(n,i);case 16:return a=t.sent,h=a.getConfiguration(),t.abrupt("return",new _u(a,n,h));case 19:case"end":return t.stop()}},t,null,[[4,12]])}));return function(n,i){return t.apply(this,arguments)}}(),t.lf=function(){return void 0!==e&&"function"==typeof e.requestMediaKeySystemAccess},t}(),Du=function(){function t(){}return t.prototype.va=function(t,n){try{return E.resolve(function(t,n){if(!Cu())throw new a("Unsupported key system "+t)}(t))}catch(t){return E.reject(t)}},t.lf=function(){return Cu()},t}();function Cu(){return void 0!==Re.MSMediaKeys}!function(t){t[t.CONFIGURATION_ERROR=1e3]="CONFIGURATION_ERROR",t[t.LICENSE_ERROR=2e3]="LICENSE_ERROR",t[t.LICENSE_INVALID_DOMAIN=2001]="LICENSE_INVALID_DOMAIN",t[t.LICENSE_INVALID_SOURCE=2002]="LICENSE_INVALID_SOURCE",t[t.LICENSE_EXPIRED=2003]="LICENSE_EXPIRED",t[t.SOURCE_INVALID=3e3]="SOURCE_INVALID",t[t.SOURCE_NOT_SUPPORTED=3001]="SOURCE_NOT_SUPPORTED",t[t.MANIFEST_LOAD_ERROR=4e3]="MANIFEST_LOAD_ERROR",t[t.MANIFEST_CORS_ERROR=4001]="MANIFEST_CORS_ERROR",t[t.MANIFEST_PARSE_ERROR=4002]="MANIFEST_PARSE_ERROR",t[t.MEDIA_NOT_SUPPORTED=5e3]="MEDIA_NOT_SUPPORTED",t[t.MEDIA_LOAD_ERROR=5001]="MEDIA_LOAD_ERROR",t[t.MEDIA_DECODE_ERROR=5002]="MEDIA_DECODE_ERROR",t[t.MEDIA_AVPLAYER_ERROR=5003]="MEDIA_AVPLAYER_ERROR",t[t.MEDIA_ABORTED=5004]="MEDIA_ABORTED",t[t.NETWORK_ERROR=6e3]="NETWORK_ERROR",t[t.NETWORK_TIMEOUT=6001]="NETWORK_TIMEOUT",t[t.CONTENT_PROTECTION_ERROR=7e3]="CONTENT_PROTECTION_ERROR",t[t.CONTENT_PROTECTION_NOT_SUPPORTED=7001]="CONTENT_PROTECTION_NOT_SUPPORTED",t[t.CONTENT_PROTECTION_CONFIGURATION_MISSING=7002]="CONTENT_PROTECTION_CONFIGURATION_MISSING",t[t.CONTENT_PROTECTION_CONFIGURATION_INVALID=7003]="CONTENT_PROTECTION_CONFIGURATION_INVALID",t[t.CONTENT_PROTECTION_INITIALIZATION_INVALID=7004]="CONTENT_PROTECTION_INITIALIZATION_INVALID",t[t.CONTENT_PROTECTION_CERTIFICATE_ERROR=7005]="CONTENT_PROTECTION_CERTIFICATE_ERROR",t[t.CONTENT_PROTECTION_CERTIFICATE_INVALID=7006]="CONTENT_PROTECTION_CERTIFICATE_INVALID",t[t.CONTENT_PROTECTION_LICENSE_ERROR=7007]="CONTENT_PROTECTION_LICENSE_ERROR",t[t.CONTENT_PROTECTION_LICENSE_INVALID=7008]="CONTENT_PROTECTION_LICENSE_INVALID",t[t.CONTENT_PROTECTION_KEY_EXPIRED=7009]="CONTENT_PROTECTION_KEY_EXPIRED",t[t.CONTENT_PROTECTION_KEY_MISSING=7010]="CONTENT_PROTECTION_KEY_MISSING",t[t.CONTENT_PROTECTION_OUTPUT_RESTRICTED=7011]="CONTENT_PROTECTION_OUTPUT_RESTRICTED",t[t.CONTENT_PROTECTION_INTERNAL_ERROR=7012]="CONTENT_PROTECTION_INTERNAL_ERROR",t[t.SUBTITLE_LOAD_ERROR=8e3]="SUBTITLE_LOAD_ERROR",t[t.SUBTITLE_CORS_ERROR=8001]="SUBTITLE_CORS_ERROR",t[t.SUBTITLE_PARSE_ERROR=8002]="SUBTITLE_PARSE_ERROR",t[t.VR_PLATFORM_UNSUPPORTED=9e3]="VR_PLATFORM_UNSUPPORTED",t[t.VR_PRESENTATION_ERROR=9001]="VR_PRESENTATION_ERROR",t[t.AD_ERROR=1e4]="AD_ERROR",t[t.AD_BLOCKER_DETECTED=10001]="AD_BLOCKER_DETECTED",t[t.FULLSCREEN_ERROR=11e3]="FULLSCREEN_ERROR"}(Au||(Au={})),function(t){t[t.CONFIGURATION=1]="CONFIGURATION",t[t.LICENSE=2]="LICENSE",t[t.SOURCE=3]="SOURCE",t[t.MANIFEST=4]="MANIFEST",t[t.MEDIA=5]="MEDIA",t[t.NETWORK=6]="NETWORK",t[t.CONTENT_PROTECTION=7]="CONTENT_PROTECTION",t[t.SUBTITLE=8]="SUBTITLE",t[t.VR=9]="VR",t[t.AD=10]="AD",t[t.FULLSCREEN=11]="FULLSCREEN"}(Ou||(Ou={})),function(t){(Ou||(Ou={})).fromCode=function(t){var n=v.floor(t/1e3);if(n in Ou)return n;throw new a("Invalid error code: "+t)}}();var xu=function(){function t(){}return t.prototype.va=function(t,n){try{return E.resolve(function(t,n){if(t!==tu)throw new a(t+" is not supported with webkit-prefixed Encrypted Media Extensions.");if(!Bu())throw new a("Unsupported key system "+t)}(t))}catch(t){return E.reject(t)}},t.lf=function(){return Bu()},t}();function Bu(){return void 0!==Re.WebKitMediaKeys}var Fu,Pu=function(){function t(t){this.Lf=t}return t.prototype.va=function(){var t=E.coroutine(_.mark(function t(n,i){var r,e,u;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=0,e=this.Lf;case 1:if(!(r<e.length)){t.next=14;break}return u=e[r],t.prev=3,t.next=6,u.va(n,i);case 6:return t.abrupt("return",t.sent);case 9:t.prev=9,t.t0=t.catch(3);case 11:r++,t.next=1;break;case 14:throw new a("Unsupported key system configuration for "+n);case 15:case"end":return t.stop()}},t,this,[[3,9]])}));return function(n,i){return t.apply(this,arguments)}}(),t}(),ju=function(t){function n(n){var i;return(i=t.call(this)||this).wf=void 0,i.Nf=void 0,i._f=void 0,i.xf=!1,i.Mf=void 0,i.Ff=void 0,i.Uf=void 0,i.Hf=void 0,i.Vf=void 0,i.Fc=n,i._f=new du,i.Ff="",i.Vf=new du,i.Uf=new lu,i}rt(n,t);var i=n.prototype;return i.Xf=function(){this.Nf&&(this.Af("usable"),this.Nf.Ic(void 0),this.Nf=void 0)},i.zf=function(t){var n=new pu("Unknown CDM error",t.errorCode,t.systemCode);this.Nf?(this.Nf.Rc(n),this.Nf=void 0):this.wf?(this.wf.Rc(n),this.wf=void 0):n.Nc===WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT?this.Af("output-restricted"):1===n.Dc?this.Af("expired"):this.Af("internal-error")},i.qf=function(t){0!==t.message.byteLength&&(this.wf&&(this.wf.Ic(void 0),this.wf=void 0),this.Ha(new hu(this,"license-request",wu(this.Fc,kn(t.message).buffer),t.defaultURL||void 0)))},i.Gf=function(t){this.Hf||(this.Hf=t,this.Vf.Ic(t))},i.Vc=function(){var t=E.coroutine(_.mark(function t(){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.throwIfClosed(),this.xf=!0,this._f.Ic(void 0);case 3:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),i.Xc=function(){var t=E.coroutine(_.mark(function t(n,i){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.throwIfClosed(),this.wf=new du,this.Mf=Tn(i),t.t0=this.Hf,t.t0){t.next=8;break}return t.next=7,this.Vf.Ec;case 7:t.t0=t.sent;case 8:return t.t0.webkitGenerateKeyRequest(this.Fc,this.Mf),t.next=12,this.wf.Ec;case 12:case"end":return t.stop()}},t,this)}));return function(n,i){return t.apply(this,arguments)}}(),i.zc=function(){var t=E.coroutine(_.mark(function t(n){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.throwIfClosed(),t.abrupt("return",!1);case 2:case"end":return t.stop()}},t,this)}));return function(n){return t.apply(this,arguments)}}(),i.qc=function(){var t=E.coroutine(_.mark(function t(){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.throwIfClosed();case 1:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),i.Gc=function(){var t=E.coroutine(_.mark(function t(n){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.throwIfClosed(),this.Nf=new du,t.t0=this.Hf,t.t0){t.next=7;break}return t.next=6,this.Vf.Ec;case 6:t.t0=t.sent;case 7:return t.t0.webkitAddKey(this.Fc,Tn(n),this.Mf,this.Kc),t.next=11,this.Nf.Ec;case 11:case"end":return t.stop()}},t,this)}));return function(n){return t.apply(this,arguments)}}(),i.throwIfClosed=function(){if(this.xf)throw new a("Already closing or closed.")},i.Af=function(t){this.Uf.gc(),this.Uf._c(vu,t),this.Ha(new au(this))},P(n,[{key:"Qc",get:function(){return this.Uf}},{key:"Kc",get:function(){return this.Ff},set:function(t){this.Ff=t}},{key:"jc",get:function(){return this._f.Ec}},{key:"Yc",get:function(){return NaN}}]),n}(Fn),Uu=function(){function t(t,n){var i=this;this.Hf=void 0,this.Wf=U(),this.jf=[],this.bf=function(t){var n=i.Yf(t.sessionId);n&&n.Xf()},this.Qf=function(t){var n=i.Yf(t.sessionId);n&&n.zf(t)},this.Kf=function(t){var n=i.Yf(t.sessionId);n&&n.qf(t)},this.Jc=t,this.$c=n}var n=t.prototype;return n.if=function(t){return this.Hf=t,this.Hf.addEventListener("webkitkeyadded",this.bf),this.Hf.addEventListener("webkitkeyerror",this.Qf),this.Hf.addEventListener("webkitkeymessage",this.Kf),this.Wf.forEach(function(n,i){return n.Gf(t)}),this.jf.forEach(function(n){return n.Gf(t)}),E.resolve()},n.rf=function(t){return t.removeEventListener("webkitkeyadded",this.bf),t.removeEventListener("webkitkeyerror",this.Qf),t.removeEventListener("webkitkeymessage",this.Kf),this.Hf=void 0,E.resolve()},n.tf=function(){var t=E.coroutine(_.mark(function t(n,i,r){var e;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=new ju(this.Jc),this.Hf&&e.Gf(this.Hf),this.jf.push(e),t.abrupt("return",e);case 4:case"end":return t.stop()}},t,this)}));return function(n,i,r){return t.apply(this,arguments)}}(),n.nf=function(t){return E.resolve(!1)},n.Yf=function(t){if(t){var n=this.Wf.get(t);return n||((n=this.jf.shift())?(n.Kc=t,this.Wf.set(t,n),n):void 0)}},t}(),Lu=function(){function t(t,n){this.Jc=t,this.Zf=n}var n=t.prototype;return n.uf=function(){return E.resolve(new Uu(this.Jc,this.Zf))},n.hf=function(){return this.Zf},t}(),Mu=function(){function t(){}return t.prototype.va=function(t,n){try{return E.resolve(qu(t,n))}catch(t){return E.reject(t)}},t.lf=function(){return"undefined"!=typeof HTMLMediaElement&&void 0!==HTMLMediaElement.prototype.webkitGenerateKeyRequest&&void 0!==HTMLMediaElement.prototype.webkitAddKey&&void 0!==HTMLMediaElement.prototype.webkitCancelKeyRequest},t}();function qu(t,n){if(!Mu.lf())throw new a("Unsupported key system "+t);for(var i=0;i<n.length;i++){var r=n[i],e=Eu(Wu,cu,t,r);if(e)return new Lu(t,e)}throw new a("Unsupported key system configuration for "+t)}function Wu(t,n){var i=Ne();return!(!i||!i.canPlayType||""===i.canPlayType(n,t))}function Xu(){return Fu||(Fu=function(){var t=[];xu.lf()&&t.push(new xu);Nu.lf()&&t.push(new Nu);Du.lf()&&t.push(new Du);Mu.lf()&&t.push(new Mu);return new Pu(t)}()),Fu}var Hu=function(){function t(){this.Jf=U()}var n=t.prototype;return n.gc=function(t){this.Jf.delete(t)},n.$f=function(){this.Jf.clear()},n.dc=function(t){return this.Jf.get(t)},n.tv=function(t,n){this.Jf.set(t,n)},t}(),Vu=function(){function t(){}return t.rv=function(){return t._u||(t._u=Gu.lf()?new Gu:new Hu),t._u},t.gc=function(n){t.rv().gc(n)},t.$f=function(){t.rv().$f()},t.dc=function(n){return t.rv().dc(n)},t.tv=function(n,i){t.rv().tv(n,i)},t}();Vu._u=void 0;var Gu=function(n){function i(){return n.apply(this,arguments)||this}rt(i,n),i.lf=function(){try{return t.sessionStorage.setItem("foobar","foobar"),t.sessionStorage.removeItem("foobar"),!0}catch(t){return!1}};var r=i.prototype;return r.gc=function(n){t.sessionStorage.removeItem(n)},r.$f=function(){t.sessionStorage.clear()},r.dc=function(n){return t.sessionStorage[n]},r.tv=function(n,i){t.sessionStorage[n]=i},i}(Vu);var zu=function(){var n,i=t.Blob;if(i)try{return new i,n=i,function(t,i){return new n(t,i)}}catch(t){}var r,e=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||t.MSBlobBuilder;return e?(r=e,function(t,n){var i=new r;if(t)for(var e=0;e<t.length;e++){var u=t[e];i.append(u)}return i.getBlob(n&&n.type||"")}):null}();function Yu(t,n,i){var e=zu([n],{type:"application/octet-stream"}),u=URL.createObjectURL(e),o=function(t,n){var i=t,r=i.indexOf("?");if(r>=0&&(i=i.substr(0,r)),i=i.substr(i.lastIndexOf("/")+1),n){var e=i.indexOf(".");e<0&&(e=i.length),i=i.substr(0,e)+n+i.substr(e)}return i}(t,i),s=r.createElement("a");s.href=u,s.download=o,r.body.appendChild(s),s.click(),r.body.removeChild(s),URL.revokeObjectURL(u)}var Ku,$u;!function(t){t.ev="uv",t.ov="hv",t.fv="contentprotectionerror",t.vv="contentprotectionsuccess",t._v="currentsourcechange",t.wv="destroy",t.mv="durationchange",t.yv="emptied",t.ec="encrypted",t.pv="ended",t.bv="Av",t.Tv="loadstart",t.Sv="manifestupdate",t.Ev="nosupportedrepresentationfound",t.Iv="offline",t.Rv="online",t.Nv="pause",t.Dv="play",t.Cv="progress",t.Pv="ratechange",t.Ov="representationchange",t.Bv="resize",t.Lv="seeked",t.xv="seeking",t.Mv="segmentnotfound",t.Fv="Uv",t.Hv="Vv",t.Xv="sourcechange",t.zv="timeupdate",t.qv="volumechange",t.Gv="Wv",t.Yv="metricschange"}(Ku||(Ku={})),function(t){t.Qv="arraybuffer",t.Kv="json",t.Zv="stream",t.pu="text"}($u||($u={}));var Ju=function(){function t(n){var i=this;this.Xh=void 0,this.Xh={},n instanceof t?n.asList().forEach(function(t){var n=t[0],r=t[1];i.append(n,r)}):Array.isArray(n)?n.forEach(function(t){i.append(t[0],t[1])}):n&&h.getOwnPropertyNames(n).forEach(function(t){i.append(t,n[t])})}var n=t.prototype;return n.append=function(t,n){var i=t,r=n;i=Zu(i),r=Qu(r);var e=i.toLowerCase();if(this.Xh.hasOwnProperty(e)){var u=this.Xh[e],o=u[1];u[1]=o?o+", "+r:r}else this.Xh[e]=[i,r]},n.delete=function(t){var n=Zu(t).toLowerCase();delete this.Xh[n]},n.get=function(t){var n=Zu(t).toLowerCase();return this.Xh.hasOwnProperty(n)?this.Xh[n][1]:null},n.has=function(t){var n=Zu(t).toLowerCase();return this.Xh.hasOwnProperty(n)},n.set=function(t,n){var i=t,r=(i=Zu(i)).toLowerCase();this.Xh[r]=[i,Qu(n)]},n.forEach=function(t,n){for(var i in this.Xh)this.Xh.hasOwnProperty(i)&&t.call(n,this.Xh[i][1],i,this)},n.asList=function(){var t=[];for(var n in this.Xh)if(this.Xh.hasOwnProperty(n)){var i=this.Xh[n],r=i[0],e=i[1];t.push([r,e])}return t},n.Jv=function(){var t={};return this.forEach(function(n,i){t[i]=n}),t},n.$v=function(t){var n=this;t.forEach(function(t,i){n.append(i,t)})},n.td=function(t){var n=this;t.forEach(function(t,i){n.set(i,t)})},t}();function Zu(t){var n=t;if("string"!=typeof n&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(n))throw new a("Invalid character in header field name");return n}function Qu(t){var n=t;return"string"!=typeof n&&(n=String(n)),n}var to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(t){return"Symbol("+t+")"};function no(){}var io=Number.isNaN||function(t){return t!=t},ro=no;function eo(t){return"object"==typeof t&&null!==t||"function"==typeof t}function uo(t){return t.slice()}function oo(t){return!1!==function(t){if("number"!=typeof t)return!1;if(io(t))return!1;if(t<0)return!1;return!0}(t)&&t!==1/0}function so(t,n,i){if("function"!=typeof t)throw new a("Argument is not a function");return Function.prototype.apply.call(t,n,i)}function fo(t,n,i,r){var e=t[n];if(void 0!==e){if("function"!=typeof e)throw new a(e+" is not a method");switch(i){case 0:return function(){return ao(e,t,r)};case 1:return function(n){var i=[n].concat(r);return ao(e,t,i)}}}return function(){return mo(void 0)}}function co(t,n,i){var r=t[n];if(void 0!==r)return so(r,t,i)}function ao(t,n,i){try{return mo(so(t,n,i))}catch(t){return _o(t)}}function ho(t){return t}function vo(t){if(t=Number(t),io(t)||t<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return t}function lo(t){if(void 0===t)return function(){return 1};if("function"!=typeof t)throw new a("size property of a queuing strategy must be a function");return function(n){return t(n)}}var wo=E,yo=E.prototype.then,po=E.resolve.bind(wo),bo=E.reject.bind(wo);function go(t){return new wo(t)}function mo(t){return po(t)}function _o(t){return bo(t)}function Eo(t,n,i){return yo.call(t,n,i)}function So(t,n,i){Eo(Eo(t,n,i),void 0,ro)}function Io(t,n){So(t,n)}function Ro(t,n){So(t,void 0,n)}function To(t,n,i){return Eo(t,n,i)}function ko(t){Eo(t,void 0,ro)}var Ao=function(){function t(){this.rd=0,this.ed=0,this.wr={ud:[],od:void 0},this.hd=this.wr,this.rd=0,this.ed=0}return h.defineProperty(t.prototype,"length",{get:function(){return this.ed},enumerable:!0,configurable:!0}),t.prototype.push=function(t){var n=this.hd,i=n;16383===n.ud.length&&(i={ud:[],od:void 0}),n.ud.push(t),i!==n&&(this.hd=i,n.od=i),++this.ed},t.prototype.shift=function(){var t=this.wr,n=t,i=this.rd,r=i+1,e=t.ud,u=e[i];return 16384===r&&(n=t.od,r=0),--this.ed,this.rd=r,t!==n&&(this.wr=n),e[i]=void 0,u},t.prototype.forEach=function(t){for(var n=this.rd,i=this.wr,r=i.ud;!(n===r.length&&void 0===i.od||n===r.length&&(n=0,0===(r=(i=i.od).ud).length));)t(r[n]),++n},t.prototype.peek=function(){var t=this.wr,n=this.rd;return t.ud[n]},t}();function Oo(t,n,i){var r=null;!0===i&&(r=h.prototype);var e=h.create(r);return e.value=t,e.done=n,e}function No(t,n){t.fd=!0,t.vd=n,n.dd=t,"readable"===n.ld?Bo(t):"closed"===n.ld?function(t){Bo(t),jo(t)}(t):Fo(t,n._d)}function Do(t,n){return Wf(t.vd,n)}function Co(t){"readable"===t.vd.ld?Po(t,new a("Reader was released and can no longer be used to monitor the stream's closedness")):function(t,n){Fo(t,n)}(t,new a("Reader was released and can no longer be used to monitor the stream's closedness")),t.vd.dd=void 0,t.vd=void 0}function xo(t){return new a("Cannot "+t+" a stream using a released reader")}function Bo(t){t.Oc=go(function(n,i){t.wd=n,t.md=i})}function Fo(t,n){Bo(t),Po(t,n)}function Po(t,n){ko(t.Oc),t.md(n),t.wd=void 0,t.md=void 0}function jo(t){t.wd(void 0),t.wd=void 0,t.md=void 0}var Uo=to("[[CancelSteps]]"),Lo=to("[[PullSteps]]");function Mo(t,n){void 0===n&&(n=!1);var i=new zo(t);return i.fd=n,i}function qo(t){return go(function(n,i){var r={gi:n,J:i};t.dd.yd.push(r)})}function Wo(t,n,i){var r=t.dd;r.yd.shift().gi(Oo(n,i,r.fd))}function Xo(t){return t.dd.yd.length}function Ho(t){var n=t.dd;return void 0!==n&&!!Yo(n)}var Vo,Go,zo=function(){function t(t){if(!1===Mf(t))throw new a("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===qf(t))throw new a("This stream has already been locked for exclusive reading by another reader");No(this,t),this.yd=new Ao}return h.defineProperty(t.prototype,"closed",{get:function(){return Yo(this)?this.Oc:_o($o("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return Yo(this)?void 0===this.vd?_o(xo("cancel")):Do(this,t):_o($o("cancel"))},t.prototype.read=function(){return Yo(this)?void 0===this.vd?_o(xo("read from")):Ko(this):_o($o("read"))},t.prototype.releaseLock=function(){if(!Yo(this))throw $o("releaseLock");if(void 0!==this.vd){if(this.yd.length>0)throw new a("Tried to release a reader lock when that reader has pending read() calls un-settled");Co(this)}},t}();function Yo(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"yd")}function Ko(t){var n=t.vd;return n.kd=!0,"closed"===n.ld?mo(Oo(void 0,!0,t.fd)):"errored"===n.ld?_o(n._d):n.pd[Lo]()}function $o(t){return new a("ReadableStreamDefaultReader.prototype."+t+" can only be used on a ReadableStreamDefaultReader")}"symbol"==typeof to.asyncIterator&&((Vo={})[to.asyncIterator]=function(){return this},Go=Vo,h.defineProperty(Go,to.asyncIterator,{enumerable:!1}));var Jo={next:function(){if(!1===Zo(this))return _o(Qo("next"));var t=this.bd;return void 0===t.vd?_o(xo("iterate")):To(Ko(t),function(n){var i=n.done;return i&&Co(t),Oo(n.value,i,!0)})},return:function(t){if(!1===Zo(this))return _o(Qo("next"));var n=this.bd;if(void 0===n.vd)return _o(xo("finish iterating"));if(n.yd.length>0)return _o(new a("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this.Td){var i=Do(n,t);return Co(n),To(i,function(){return Oo(t,!0,!0)})}return Co(n),mo(Oo(t,!0,!0))}};function Zo(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"bd")}function Qo(t){return new a("ReadableStreamAsyncIterator."+t+" can only be used on a ReadableSteamAsyncIterator")}function ts(t){var n=t.ei.shift();return t.Sd-=n.size,t.Sd<0&&(t.Sd=0),n.value}function ns(t,n,i){if(!oo(i=Number(i)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");t.ei.push({value:n,size:i}),t.Sd+=i}function is(t){t.ei=new Ao,t.Sd=0}void 0!==Go&&h.setPrototypeOf(Jo,Go),h.defineProperty(Jo,"next",{enumerable:!1}),h.defineProperty(Jo,"return",{enumerable:!1});var rs=to("[[AbortSteps]]"),es=to("[[ErrorSteps]]"),us=function(){function t(t,n){void 0===t&&(t={}),void 0===n&&(n={}),ss(this);var i=n.size,r=n.highWaterMark;if(void 0!==t.type)throw new RangeError("Invalid type is specified");var e=lo(i);void 0===r&&(r=1),function(t,n,i,r){var e=h.create(Rs.prototype);var u=fo(n,"write",1,[e]),o=fo(n,"close",0,[]),s=fo(n,"abort",1,[]);Ts(t,e,function(){return co(n,"start",[e])},u,o,s,i,r)}(this,t,r=vo(r),e)}return h.defineProperty(t.prototype,"locked",{get:function(){if(!1===fs(this))throw xs("locked");return cs(this)},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===fs(this)?_o(xs("abort")):!0===cs(this)?_o(new a("Cannot abort a stream that already has a writer")):as(this,t)},t.prototype.close=function(){return!1===fs(this)?_o(xs("close")):!0===cs(this)?_o(new a("Cannot close a stream that already has a writer")):!0===ws(this)?_o(new a("Cannot close an already-closing stream")):hs(this)},t.prototype.getWriter=function(){if(!1===fs(this))throw xs("getWriter");return os(this)},t}();function os(t){return new bs(t)}function ss(t){t.ld="writable",t._d=void 0,t.Ed=void 0,t.Id=void 0,t.Rd=new Ao,t.Nd=void 0,t.Dd=void 0,t.Cd=void 0,t.Pd=void 0,t.Od=!1}function fs(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"Id")}function cs(t){return void 0!==t.Ed}function as(t,n){var i=t.ld;if("closed"===i||"errored"===i)return mo(void 0);if(void 0!==t.Pd)return t.Pd.Pn;var r=!1;"erroring"===i&&(r=!0,n=void 0);var e=go(function(i,e){t.Pd={Pn:void 0,gi:i,J:e,Zn:n,Bd:r}});return t.Pd.Pn=e,!1===r&&ls(t,n),e}function hs(t){var n=t.ld;if("closed"===n||"errored"===n)return _o(new a("The stream (in "+n+" state) is not in the writable state and cannot be closed"));var i,r=go(function(n,i){var r={gi:n,J:i};t.Dd=r}),e=t.Ed;return void 0!==e&&!0===t.Od&&"writable"===n&&Hs(e),ns(i=t.Id,"close",0),Os(i),r}function vs(t,n){"writable"!==t.ld?ds(t):ls(t,n)}function ls(t,n){var i=t.Id;t.ld="erroring",t._d=n;var r=t.Ed;void 0!==r&&Es(r,n),!1===function(t){if(void 0===t.Nd&&void 0===t.Cd)return!1;return!0}(t)&&!0===i.Ld&&ds(t)}function ds(t){t.ld="errored",t.Id[es]();var n=t._d;if(t.Rd.forEach(function(t){t.J(n)}),t.Rd=new Ao,void 0!==t.Pd){var i=t.Pd;if(t.Pd=void 0,!0===i.Bd)return i.J(n),void ys(t);So(t.Id[rs](i.Zn),function(){i.gi(),ys(t)},function(n){i.J(n),ys(t)})}else ys(t)}function ws(t){return void 0!==t.Dd||void 0!==t.Cd}function ys(t){void 0!==t.Dd&&(t.Dd.J(t._d),t.Dd=void 0);var n=t.Ed;void 0!==n&&Us(n,t._d)}function ps(t,n){var i=t.Ed;void 0!==i&&n!==t.Od&&(!0===n?function(t){Ms(t)}(i):Hs(i)),t.Od=n}var bs=function(){function t(t){if(!1===fs(t))throw new a("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===cs(t))throw new a("This stream has already been locked for exclusive writing by another writer");this.xd=t,t.Ed=this;var n,i=t.ld;if("writable"===i)!1===ws(t)&&!0===t.Od?Ms(this):Ws(this),Ps(this);else if("erroring"===i)qs(this,t._d),Ps(this);else if("closed"===i)Ws(this),Ps(n=this),Ls(n);else{var r=t._d;qs(this,r),js(this,r)}}return h.defineProperty(t.prototype,"closed",{get:function(){return!1===gs(this)?_o(Bs("closed")):this.Oc},enumerable:!0,configurable:!0}),h.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===gs(this))throw Bs("desiredSize");if(void 0===this.xd)throw Fs("desiredSize");return function(t){var n=t.xd,i=n.ld;if("errored"===i||"erroring"===i)return null;if("closed"===i)return 0;return As(n.Id)}(this)},enumerable:!0,configurable:!0}),h.defineProperty(t.prototype,"ready",{get:function(){return!1===gs(this)?_o(Bs("ready")):this.Md},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===gs(this)?_o(Bs("abort")):void 0===this.xd?_o(Fs("abort")):function(t,n){return as(t.xd,n)}(this,t)},t.prototype.close=function(){if(!1===gs(this))return _o(Bs("close"));var t=this.xd;return void 0===t?_o(Fs("close")):!0===ws(t)?_o(new a("Cannot close an already-closing stream")):ms(this)},t.prototype.releaseLock=function(){if(!1===gs(this))throw Bs("releaseLock");void 0!==this.xd&&Ss(this)},t.prototype.write=function(t){return!1===gs(this)?_o(Bs("write")):void 0===this.xd?_o(Fs("write to")):Is(this,t)},t}();function gs(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"xd")}function ms(t){return hs(t.xd)}function _s(t,n){"pending"===t.Fd?Us(t,n):function(t,n){js(t,n)}(t,n)}function Es(t,n){"pending"===t.Ud?Xs(t,n):function(t,n){qs(t,n)}(t,n)}function Ss(t){var n=t.xd,i=new a("Writer was released and can no longer be used to monitor the stream's closedness");Es(t,i),_s(t,i),n.Ed=void 0,t.xd=void 0}function Is(t,n){var i=t.xd,r=i.Id,e=function(t,n){try{return t.Hd(n)}catch(n){return Ns(t,n),1}}(r,n);if(i!==t.xd)return _o(Fs("write to"));var u=i.ld;if("errored"===u)return _o(i._d);if(!0===ws(i)||"closed"===u)return _o(new a("The stream is closing or closed and cannot be written to"));if("erroring"===u)return _o(i._d);var o=function(t){return go(function(n,i){var r={gi:n,J:i};t.Rd.push(r)})}(i);return function(t,n,i){var r={chunk:n};try{ns(t,r,i)}catch(n){return void Ns(t,n)}var e=t.Vd;if(!1===ws(e)&&"writable"===e.ld){var u=Ds(t);ps(e,u)}Os(t)}(r,n,e),o}var Rs=function(){function t(){throw new a("WritableStreamDefaultController cannot be constructed explicitly")}return t.prototype.error=function(t){if(!1===function(t){if(!eo(t))return!1;if(!h.prototype.hasOwnProperty.call(t,"Vd"))return!1;return!0}(this))throw new a("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this.Vd.ld&&Cs(this,t)},t.prototype[rs]=function(t){var n=this.Xd(t);return ks(this),n},t.prototype[es]=function(){is(this)},t}();function Ts(t,n,i,r,e,u,o,s){n.Vd=t,t.Id=n,n.ei=void 0,n.Sd=void 0,is(n),n.Ld=!1,n.Hd=s,n.zd=o,n.qd=r,n.Gd=e,n.Xd=u;var f=Ds(n);ps(t,f),So(mo(i()),function(){n.Ld=!0,Os(n)},function(i){n.Ld=!0,vs(t,i)})}function ks(t){t.qd=void 0,t.Gd=void 0,t.Xd=void 0,t.Hd=void 0}function As(t){return t.zd-t.Sd}function Os(t){var n=t.Vd;if(!1!==t.Ld&&void 0===n.Nd)if("erroring"!==n.ld){if(0!==t.ei.length){var i=t.ei.peek().value;"close"===i?function(t){var n=t.Vd;(function(t){t.Cd=t.Dd,t.Dd=void 0})(n),ts(t);var i=t.Gd();ks(t),So(i,function(){!function(t){t.Cd.gi(void 0),t.Cd=void 0,"erroring"===t.ld&&(t._d=void 0,void 0!==t.Pd&&(t.Pd.gi(),t.Pd=void 0)),t.ld="closed";var n=t.Ed;void 0!==n&&Ls(n)}(n)},function(t){!function(t,n){t.Cd.J(n),t.Cd=void 0,void 0!==t.Pd&&(t.Pd.J(n),t.Pd=void 0),vs(t,n)}(n,t)})}(t):function(t,n){var i=t.Vd;(function(t){t.Nd=t.Rd.shift()})(i),So(t.qd(n),function(){!function(t){t.Nd.gi(void 0),t.Nd=void 0}(i);var n=i.ld;if(ts(t),!1===ws(i)&&"writable"===n){var r=Ds(t);ps(i,r)}Os(t)},function(n){"writable"===i.ld&&ks(t),function(t,n){t.Nd.J(n),t.Nd=void 0,vs(t,n)}(i,n)})}(t,i.chunk)}}else ds(n)}function Ns(t,n){"writable"===t.Vd.ld&&Cs(t,n)}function Ds(t){return As(t)<=0}function Cs(t,n){var i=t.Vd;ks(t),ls(i,n)}function xs(t){return new a("WritableStream.prototype."+t+" can only be used on a WritableStream")}function Bs(t){return new a("WritableStreamDefaultWriter.prototype."+t+" can only be used on a WritableStreamDefaultWriter")}function Fs(t){return new a("Cannot "+t+" a stream using a released writer")}function Ps(t){t.Oc=go(function(n,i){t.wd=n,t.md=i,t.Fd="pending"})}function js(t,n){Ps(t),Us(t,n)}function Us(t,n){ko(t.Oc),t.md(n),t.wd=void 0,t.md=void 0,t.Fd="rejected"}function Ls(t){t.wd(void 0),t.wd=void 0,t.md=void 0,t.Fd="resolved"}function Ms(t){t.Md=go(function(n,i){t.Wd=n,t.jd=i}),t.Ud="pending"}function qs(t,n){Ms(t),Xs(t,n)}function Ws(t){Ms(t),Hs(t)}function Xs(t,n){ko(t.Md),t.jd(n),t.Wd=void 0,t.jd=void 0,t.Ud="rejected"}function Hs(t){t.Wd(void 0),t.Wd=void 0,t.jd=void 0,t.Ud="fulfilled"}function Vs(t){if("object"!=typeof t||null===t)return!1;try{return"boolean"==typeof t.aborted}catch(t){return!1}}var Gs="undefined"!=typeof DOMException?DOMException:void 0;var zs,Ys=function(t){if("function"!=typeof t&&"object"!=typeof t)return!1;try{return new t,!0}catch(t){return!1}}(Gs)?Gs:((zs=function(t,n){this.message=t||"",this.name=n||"Error",c.captureStackTrace&&c.captureStackTrace(this,this.constructor)}).prototype=h.create(c.prototype),h.defineProperty(zs.prototype,"constructor",{value:zs,writable:!0,configurable:!0}),zs);function Ks(t,n,i,r,e,u){var o=Mo(t),s=os(n);t.kd=!0;var f=!1,c=mo(void 0);return go(function(h,v){var l,d,w,y;if(void 0!==u){if(l=function(){var i=new Ys("Aborted","AbortError"),u=[];!1===r&&u.push(function(){return"writable"===n.ld?as(n,i):mo(void 0)}),!1===e&&u.push(function(){return"readable"===t.ld?Wf(t,i):mo(void 0)}),m(function(){return E.all(u.map(function(t){return t()}))},!0,i)},!0===u.aborted)return void l();u.addEventListener("abort",l)}if(g(t,o.Oc,function(t){!1===r?m(function(){return as(n,t)},!0,t):_(!0,t)}),g(n,s.Oc,function(n){!1===e?m(function(){return Wf(t,n)},!0,n):_(!0,n)}),d=t,w=o.Oc,y=function(){!1===i?m(function(){return function(t){var n=t.xd,i=n.ld;return!0===ws(n)||"closed"===i?mo(void 0):"errored"===i?_o(n._d):ms(t)}(s)}):_()},"closed"===d.ld?y():Io(w,y),!0===ws(n)||"closed"===n.ld){var p=new a("the destination writable stream closed before all data could be piped to it");!1===e?m(function(){return Wf(t,p)},!0,p):_(!0,p)}function b(){var t=c;return Eo(c,function(){return t!==c?b():void 0})}function g(t,n,i){"errored"===t.ld?i(t._d):Ro(n,i)}function m(t,i,r){function e(){So(t(),function(){return S(i,r)},function(t){return S(!0,t)})}!0!==f&&(f=!0,"writable"===n.ld&&!1===ws(n)?Io(b(),e):e())}function _(t,i){!0!==f&&(f=!0,"writable"===n.ld&&!1===ws(n)?Io(b(),function(){return S(t,i)}):S(t,i))}function S(t,n){Ss(s),Co(o),void 0!==u&&u.removeEventListener("abort",l),t?v(n):h(void 0)}ko(go(function(t,n){!function i(r){r?t():Eo(!0===f?mo(!0):Eo(s.Md,function(){return Eo(Ko(o),function(t){return!0===t.done||(c=Eo(Is(s,t.value),void 0,no),!1)})}),i,n)}(!1)}))})}var $s=function(){function t(){throw new a}return h.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===Js(this))throw ff("desiredSize");return uf(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===Js(this))throw ff("close");if(!1===of(this))throw new a("The stream is not in a state that permits close");nf(this)},t.prototype.enqueue=function(t){if(!1===Js(this))throw ff("enqueue");if(!1===of(this))throw new a("The stream is not in a state that permits enqueue");return rf(this,t)},t.prototype.error=function(t){if(!1===Js(this))throw ff("error");ef(this,t)},t.prototype[Uo]=function(t){is(this);var n=this.Yd(t);return tf(this),n},t.prototype[Lo]=function(){var t=this.Qd;if(this.ei.length>0){var n=ts(this);return!0===this.Kd&&0===this.ei.length?(tf(this),Xf(t)):Zs(this),mo(Oo(n,!1,t.dd.fd))}var i=qo(t);return Zs(this),i},t}();function Js(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"Qd")}function Zs(t){!1!==Qs(t)&&(!0!==t.Zd?(t.Zd=!0,So(t.Jd(),function(){t.Zd=!1,!0===t.$d&&(t.$d=!1,Zs(t))},function(n){ef(t,n)})):t.$d=!0)}function Qs(t){var n=t.Qd;return!1!==of(t)&&(!1!==t.Ld&&(!0===qf(n)&&Xo(n)>0||uf(t)>0))}function tf(t){t.Jd=void 0,t.Yd=void 0,t.Hd=void 0}function nf(t){var n=t.Qd;t.Kd=!0,0===t.ei.length&&(tf(t),Xf(n))}function rf(t,n){var i=t.Qd;if(!0===qf(i)&&Xo(i)>0)Wo(i,n,!1);else{var r=void 0;try{r=t.Hd(n)}catch(n){throw ef(t,n),n}try{ns(t,n,r)}catch(n){throw ef(t,n),n}}Zs(t)}function ef(t,n){var i=t.Qd;"readable"===i.ld&&(is(t),tf(t),Hf(i,n))}function uf(t){var n=t.Qd.ld;return"errored"===n?null:"closed"===n?0:t.zd-t.Sd}function of(t){var n=t.Qd.ld;return!1===t.Kd&&"readable"===n}function sf(t,n,i,r,e,u,o){n.Qd=t,n.ei=void 0,n.Sd=void 0,is(n),n.Ld=!1,n.Kd=!1,n.$d=!1,n.Zd=!1,n.Hd=o,n.zd=u,n.Jd=r,n.Yd=e,t.pd=n,So(mo(i()),function(){n.Ld=!0,Zs(n)},function(t){ef(n,t)})}function ff(t){return new a("ReadableStreamDefaultController.prototype."+t+" can only be used on a ReadableStreamDefaultController")}var cf=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&v.floor(t)===t},af=function(){function t(){throw new a("ReadableStreamBYOBRequest cannot be used directly")}return h.defineProperty(t.prototype,"view",{get:function(){if(!1===lf(this))throw Of("view");return this.il},enumerable:!0,configurable:!0}),t.prototype.respond=function(t){if(!1===lf(this))throw Of("respond");if(void 0===this.ul)throw new a("This BYOB request has been invalidated");this.il.buffer,function(t,n){if(!1===oo(n=Number(n)))throw new RangeError("bytesWritten must be a finite");Sf(t,n)}(this.ul,t)},t.prototype.respondWithNewView=function(t){if(!1===lf(this))throw Of("respond");if(void 0===this.ul)throw new a("This BYOB request has been invalidated");if(!ArrayBuffer.isView(t))throw new a("You can only respond with array buffer views");t.buffer,function(t,n){var i=t.ol.peek();if(i.byteOffset+i.bytesFilled!==n.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(i.byteLength!==n.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");i.buffer=n.buffer,Sf(t,n.byteLength)}(this.ul,t)},t}(),hf=function(){function t(){throw new a("ReadableByteStreamController constructor cannot be used directly")}return h.defineProperty(t.prototype,"byobRequest",{get:function(){if(!1===vf(this))throw Nf("byobRequest");if(void 0===this.hl&&this.ol.length>0){var t=this.ol.peek(),n=new y(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),i=h.create(af.prototype);!function(t,n,i){t.ul=n,t.il=i}(i,this,n),this.hl=i}return this.hl},enumerable:!0,configurable:!0}),h.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===vf(this))throw Nf("desiredSize");return kf(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===vf(this))throw Nf("close");if(!0===this.Kd)throw new a("The stream has already been closed; do not close it again!");var t=this.al.ld;if("readable"!==t)throw new a("The stream (in "+t+" state) is not in the readable state and cannot be closed");!function(t){var n=t.al;if(t.Sd>0)return void(t.Kd=!0);if(t.ol.length>0){var i=t.ol.peek();if(i.bytesFilled>0){var r=new a("Insufficient bytes to fill elements in the given buffer");throw Tf(t,r),r}}Rf(t),Xf(n)}(this)},t.prototype.enqueue=function(t){if(!1===vf(this))throw Nf("enqueue");if(!0===this.Kd)throw new a("stream is closed or draining");var n=this.al.ld;if("readable"!==n)throw new a("The stream (in "+n+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(t))throw new a("You can only enqueue array buffer views when using a ReadableByteStreamController");t.buffer,function(t,n){var i=t.al,r=n.buffer,e=n.byteOffset,u=n.byteLength,o=ho(r);if(!0===Ho(i))if(0===Xo(i))pf(t,o,e,u);else{var s=new y(o,e,u);Wo(i,s,!1)}else!0===xf(i)?(pf(t,o,e,u),Ef(t)):pf(t,o,e,u);df(t)}(this,t)},t.prototype.error=function(t){if(!1===vf(this))throw Nf("error");Tf(this,t)},t.prototype[Uo]=function(t){this.ol.length>0&&(this.ol.peek().bytesFilled=0);is(this);var n=this.Yd(t);return Rf(this),n},t.prototype[Lo]=function(){var t=this.al;if(this.Sd>0){var n=this.ei.shift();this.Sd-=n.byteLength,mf(this);var i=void 0;try{i=new y(n.buffer,n.byteOffset,n.byteLength)}catch(t){return _o(t)}return mo(Oo(i,!1,t.dd.fd))}var r=this.cl;if(void 0!==r){var e=void 0;try{e=new ArrayBuffer(r)}catch(t){return _o(t)}var u={buffer:e,byteOffset:0,byteLength:r,bytesFilled:0,elementSize:1,ctor:y,readerType:"default"};this.ol.push(u)}var o=qo(t);return df(this),o},t}();function vf(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"al")}function lf(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"ul")}function df(t){!1!==function(t){var n=t.al;if("readable"!==n.ld)return!1;if(!0===t.Kd)return!1;if(!1===t.Ld)return!1;if(!0===Ho(n)&&Xo(n)>0)return!0;if(!0===xf(n)&&Cf(n)>0)return!0;if(kf(t)>0)return!0;return!1}(t)&&(!0!==t.Zd?(t.Zd=!0,So(t.Jd(),function(){t.Zd=!1,!0===t.$d&&(t.$d=!1,df(t))},function(n){Tf(t,n)})):t.$d=!0)}function wf(t,n){var i=!1;"closed"===t.ld&&(i=!0);var r=yf(n);"default"===n.readerType?Wo(t,r,i):function(t,n,i){var r=t.dd;r.fl.shift().gi(Oo(n,i,r.fd))}(t,r,i)}function yf(t){var n=t.bytesFilled,i=t.elementSize;return new t.ctor(t.buffer,t.byteOffset,n/i)}function pf(t,n,i,r){t.ei.push({buffer:n,byteOffset:i,byteLength:r}),t.Sd+=r}function bf(t,n){var i=n.elementSize,r=n.bytesFilled-n.bytesFilled%i,e=v.min(t.Sd,n.byteLength-n.bytesFilled),u=n.bytesFilled+e,o=u-u%i,s=e,f=!1;o>r&&(s=o-n.bytesFilled,f=!0);for(var c,a,h,l,d,w=t.ei;s>0;){var p=w.peek(),b=v.min(s,p.byteLength),g=n.byteOffset+n.bytesFilled;c=n.buffer,a=g,h=p.buffer,l=p.byteOffset,d=b,new y(c).set(new y(h,l,d),a),p.byteLength===b?w.shift():(p.byteOffset+=b,p.byteLength-=b),t.Sd-=b,gf(t,b,n),s-=b}return f}function gf(t,n,i){_f(t),i.bytesFilled+=n}function mf(t){0===t.Sd&&!0===t.Kd?(Rf(t),Xf(t.al)):df(t)}function _f(t){void 0!==t.hl&&(t.hl.ul=void 0,t.hl.il=void 0,t.hl=void 0)}function Ef(t){for(;t.ol.length>0;){if(0===t.Sd)return;var n=t.ol.peek();!0===bf(t,n)&&(If(t),wf(t.al,n))}}function Sf(t,n){var i=t.ol.peek();if("closed"===t.al.ld){if(0!==n)throw new a("bytesWritten must be 0 when calling respond() on a closed stream");!function(t,n){n.buffer=ho(n.buffer);var i=t.al;if(!0===xf(i))for(;Cf(i)>0;)wf(i,If(t))}(t,i)}else!function(t,n,i){if(i.bytesFilled+n>i.byteLength)throw new RangeError("bytesWritten out of range");if(gf(t,n,i),!(i.bytesFilled<i.elementSize)){If(t);var r=i.bytesFilled%i.elementSize;if(r>0){var e=i.byteOffset+i.bytesFilled,u=i.buffer.slice(e-r,e);pf(t,u,0,u.byteLength)}i.buffer=ho(i.buffer),i.bytesFilled-=r,wf(t.al,i),Ef(t)}}(t,n,i);df(t)}function If(t){var n=t.ol.shift();return _f(t),n}function Rf(t){t.Jd=void 0,t.Yd=void 0}function Tf(t,n){var i=t.al;"readable"===i.ld&&(!function(t){_f(t),t.ol=new Ao}(t),is(t),Rf(t),Hf(i,n))}function kf(t){var n=t.al.ld;return"errored"===n?null:"closed"===n?0:t.zd-t.Sd}function Af(t,n,i){var r=h.create(hf.prototype);var e=fo(n,"pull",0,[r]),u=fo(n,"cancel",1,[]),o=n.autoAllocateChunkSize;if(void 0!==o&&(o=Number(o),!1===cf(o)||o<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");!function(t,n,i,r,e,u,o){n.al=t,n.$d=!1,n.Zd=!1,n.hl=void 0,n.ei=n.Sd=void 0,is(n),n.Kd=!1,n.Ld=!1,n.zd=vo(u),n.Jd=r,n.Yd=e,n.cl=o,n.ol=new Ao,t.pd=n,So(mo(i()),function(){n.Ld=!0,df(n)},function(t){Tf(n,t)})}(t,r,function(){return co(n,"start",[r])},e,u,i,o)}function Of(t){return new a("ReadableStreamBYOBRequest.prototype."+t+" can only be used on a ReadableStreamBYOBRequest")}function Nf(t){return new a("ReadableByteStreamController.prototype."+t+" can only be used on a ReadableByteStreamController")}function Df(t){return go(function(n,i){var r={gi:n,J:i};t.dd.fl.push(r)})}function Cf(t){return t.dd.fl.length}function xf(t){var n=t.dd;return void 0!==n&&!!Ff(n)}var Bf=function(){function t(t){if(!Mf(t))throw new a("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===vf(t.pd))throw new a("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(qf(t))throw new a("This stream has already been locked for exclusive reading by another reader");No(this,t),this.fl=new Ao}return h.defineProperty(t.prototype,"closed",{get:function(){return Ff(this)?this.Oc:_o(Pf("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return Ff(this)?void 0===this.vd?_o(xo("cancel")):Do(this,t):_o(Pf("cancel"))},t.prototype.read=function(t){return Ff(this)?void 0===this.vd?_o(xo("read from")):ArrayBuffer.isView(t)?(t.buffer,0===t.byteLength?_o(new a("view must have non-zero byteLength")):function(t,n){var i=t.vd;if(i.kd=!0,"errored"===i.ld)return _o(i._d);return function(t,n){var i=t.al,r=1;n.constructor!==DataView&&(r=n.constructor.BYTES_PER_ELEMENT);var e=n.constructor,u={buffer:ho(n.buffer),byteOffset:n.byteOffset,byteLength:n.byteLength,bytesFilled:0,elementSize:r,ctor:e,readerType:"byob"};if(t.ol.length>0)return t.ol.push(u),Df(i);if("closed"===i.ld)return mo(Oo(new e(u.buffer,u.byteOffset,0),!0,i.dd.fd));if(t.Sd>0){if(!0===bf(t,u)){var o=yf(u);return mf(t),mo(Oo(o,!1,i.dd.fd))}if(!0===t.Kd){var s=new a("Insufficient bytes to fill elements in the given buffer");return Tf(t,s),_o(s)}}t.ol.push(u);var f=Df(i);return df(t),f}(i.pd,n)}(this,t)):_o(new a("view must be an array buffer view")):_o(Pf("read"))},t.prototype.releaseLock=function(){if(!Ff(this))throw Pf("releaseLock");if(void 0!==this.vd){if(this.fl.length>0)throw new a("Tried to release a reader lock when that reader has pending read() calls un-settled");Co(this)}},t}();function Ff(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"fl")}function Pf(t){return new a("ReadableStreamBYOBReader.prototype."+t+" can only be used on a ReadableStreamBYOBReader")}var jf=function(){function t(t,n){void 0===t&&(t={}),void 0===n&&(n={}),Lf(this);var i=n.size,r=n.highWaterMark,e=t.type;if("bytes"===String(e)){if(void 0!==i)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===r&&(r=0),Af(this,t,r=vo(r))}else{if(void 0!==e)throw new RangeError("Invalid type is specified");var u=lo(i);void 0===r&&(r=1),function(t,n,i,r){var e=h.create($s.prototype),u=fo(n,"pull",0,[e]),o=fo(n,"cancel",1,[]);sf(t,e,function(){return co(n,"start",[e])},u,o,i,r)}(this,t,r=vo(r),u)}}return h.defineProperty(t.prototype,"locked",{get:function(){if(!1===Mf(this))throw Vf("locked");return qf(this)},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return!1===Mf(this)?_o(Vf("cancel")):!0===qf(this)?_o(new a("Cannot cancel a stream that already has a reader")):Wf(this,t)},t.prototype.getReader=function(t){var n=(void 0===t?{}:t).mode;if(!1===Mf(this))throw Vf("getReader");if(void 0===n)return Mo(this,!0);if("byob"===(n=String(n)))return function(t,n){void 0===n&&(n=!1);var i=new Bf(t);return i.fd=n,i}(this,!0);throw new RangeError("Invalid mode is specified")},t.prototype.pipeThrough=function(t,n){var i=t.writable,r=t.readable,e=void 0===n?{}:n,u=e.preventClose,o=e.preventAbort,s=e.preventCancel,f=e.signal;if(!1===Mf(this))throw Vf("pipeThrough");if(!1===fs(i))throw new a("writable argument to pipeThrough must be a WritableStream");if(!1===Mf(r))throw new a("readable argument to pipeThrough must be a ReadableStream");if(u=Boolean(u),o=Boolean(o),s=Boolean(s),void 0!==f&&!Vs(f))throw new a("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===qf(this))throw new a("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===cs(i))throw new a("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return ko(Ks(this,i,u,o,s,f)),r},t.prototype.pipeTo=function(t,n){var i=void 0===n?{}:n,r=i.preventClose,e=i.preventAbort,u=i.preventCancel,o=i.signal;return!1===Mf(this)?_o(Vf("pipeTo")):!1===fs(t)?_o(new a("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(r=Boolean(r),e=Boolean(e),u=Boolean(u),void 0===o||Vs(o)?!0===qf(this)?_o(new a("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===cs(t)?_o(new a("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Ks(this,t,r,e,u,o):_o(new a("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},t.prototype.tee=function(){if(!1===Mf(this))throw Vf("tee");var t=function(t,n){var i,r,e,u,o,s=Mo(t),f=!1,c=!1,a=!1,h=go(function(t){o=t});function v(){return!0===f?mo(void 0):(f=!0,ko(To(Ko(s),function(t){if(f=!1,!0===t.done)return!1===c&&nf(e.pd),void(!1===a&&nf(u.pd));var n=t.value,i=n,r=n;!1===c&&rf(e.pd,i),!1===a&&rf(u.pd,r)})),mo(void 0))}function l(){}return e=Uf(l,v,function(n){if(c=!0,i=n,!0===a){var e=uo([i,r]),u=Wf(t,e);o(u)}return h}),u=Uf(l,v,function(n){if(a=!0,r=n,!0===c){var e=uo([i,r]),u=Wf(t,e);o(u)}return h}),Ro(s.Oc,function(t){ef(e.pd,t),ef(u.pd,t)}),[e,u]}(this);return uo(t)},t.prototype.getIterator=function(t){var n=(void 0===t?{}:t).preventCancel,i=void 0!==n&&n;if(!1===Mf(this))throw Vf("getIterator");return function(t,n){void 0===n&&(n=!1);var i=Mo(t),r=h.create(Jo);return r.bd=i,r.Td=Boolean(n),r}(this,i)},t}();function Uf(t,n,i,r,e){void 0===r&&(r=1),void 0===e&&(e=function(){return 1});var u=h.create(jf.prototype);return Lf(u),sf(u,h.create($s.prototype),t,n,i,r,e),u}function Lf(t){t.ld="readable",t.dd=void 0,t._d=void 0,t.kd=!1}function Mf(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"pd")}function qf(t){return void 0!==t.dd}function Wf(t,n){return t.kd=!0,"closed"===t.ld?mo(void 0):"errored"===t.ld?_o(t._d):(Xf(t),To(t.pd[Uo](n),no))}function Xf(t){t.ld="closed";var n=t.dd;void 0!==n&&(Yo(n)&&(n.yd.forEach(function(t){t.gi(Oo(void 0,!0,n.fd))}),n.yd=new Ao),jo(n))}function Hf(t,n){t.ld="errored",t._d=n;var i=t.dd;void 0!==i&&(Yo(i)?(i.yd.forEach(function(t){t.J(n)}),i.yd=new Ao):(i.fl.forEach(function(t){t.J(n)}),i.fl=new Ao),Po(i,n))}function Vf(t){return new a("ReadableStream.prototype."+t+" can only be used on a ReadableStream")}"symbol"==typeof to.asyncIterator&&h.defineProperty(jf.prototype,to.asyncIterator,{value:jf.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var Gf=function(){function t(t,n,i){void 0===t&&(t={}),void 0===n&&(n={}),void 0===i&&(i={});var r=n.size,e=n.highWaterMark,u=i.size,o=i.highWaterMark;if(void 0!==t.writableType)throw new RangeError("Invalid writable type specified");var s=lo(r);if(void 0===e&&(e=1),e=vo(e),void 0!==t.readableType)throw new RangeError("Invalid readable type specified");var f,c=lo(u);void 0===o&&(o=0),o=vo(o),function(t,n,i,r,e,u){function o(){return n}t.vl=function(t,n,i,r,e,u){void 0===e&&(e=1),void 0===u&&(u=function(){return 1});var o=h.create(us.prototype);return ss(o),Ts(o,h.create(Rs.prototype),t,n,i,r,e,u),o}(o,function(n){return function(t,n){var i=t.dl;if(!0===t.Od){var r=t.ll;return To(r,function(){var r=t.vl,e=r.ld;if("erroring"===e)throw r._d;return ic(i,n)})}return ic(i,n)}(t,n)},function(){return function(t){var n=t._l,i=t.dl,r=i.wl();return tc(i),To(r,function(){if("errored"===n.ld)throw n._d;var t=n.pd;!0===of(t)&&nf(t)},function(i){throw Yf(t,i),n._d})}(t)},function(n){return function(t,n){return Yf(t,n),mo(void 0)}(t,n)},i,r),t._l=Uf(o,function(){return function(t){return $f(t,!1),t.ll}(t)},function(n){return Kf(t,n),mo(void 0)},e,u),t.Od=void 0,t.ll=void 0,t.yl=void 0,$f(t,!0),t.dl=void 0}(this,go(function(t){f=t}),e,s,o,c),function(t,n){var i=h.create(Zf.prototype),r=function(t){try{return nc(i,t),mo(void 0)}catch(t){return _o(t)}},e=n.transform;if(void 0!==e){if("function"!=typeof e)throw new a("transform is not a method");r=function(t){return ao(e,n,[t,i])}}var u=fo(n,"flush",0,[i]);!function(t,n,i,r){n.bl=t,t.dl=n,n.Al=i,n.wl=r}(t,i,r,u)}(this,t);var v=co(t,"start",[this.dl]);f(v)}return h.defineProperty(t.prototype,"readable",{get:function(){if(!1===zf(this))throw ec("readable");return this._l},enumerable:!0,configurable:!0}),h.defineProperty(t.prototype,"writable",{get:function(){if(!1===zf(this))throw ec("writable");return this.vl},enumerable:!0,configurable:!0}),t}();function zf(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"dl")}function Yf(t,n){ef(t._l.pd,n),Kf(t,n)}function Kf(t,n){tc(t.dl),Ns(t.vl.Id,n),!0===t.Od&&$f(t,!1)}function $f(t,n){void 0!==t.ll&&t.yl(),t.ll=go(function(n){t.yl=n}),t.Od=n}var Jf,Zf=function(){function t(){throw new a("TransformStreamDefaultController instances cannot be created directly")}return h.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===Qf(this))throw rc("desiredSize");return uf(this.bl._l.pd)},enumerable:!0,configurable:!0}),t.prototype.enqueue=function(t){if(!1===Qf(this))throw rc("enqueue");nc(this,t)},t.prototype.error=function(t){if(!1===Qf(this))throw rc("error");var n;n=t,Yf(this.bl,n)},t.prototype.terminate=function(){if(!1===Qf(this))throw rc("terminate");!function(t){var n=t.bl,i=n._l.pd;!0===of(i)&&nf(i);var r=new a("TransformStream terminated");Kf(n,r)}(this)},t}();function Qf(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"bl")}function tc(t){t.Al=void 0,t.wl=void 0}function nc(t,n){var i=t.bl,r=i._l.pd;if(!1===of(r))throw new a("Readable side is not in a state that permits enqueue");try{rf(r,n)}catch(t){throw Kf(i,t),i._l._d}(function(t){return!0!==Qs(t)})(r)!==i.Od&&$f(i,!0)}function ic(t,n){return To(t.Al(n),void 0,function(n){throw Yf(t.bl,n),n})}function rc(t){return new a("TransformStreamDefaultController.prototype."+t+" can only be used on a TransformStreamDefaultController")}function ec(t){return new a("TransformStream.prototype."+t+" can only be used on a TransformStream")}function uc(t){return n=[t],new jf({start:function(t){for(var i=0;i<n.length;i++){var r=n[i];t.enqueue(r)}t.close()}});var n}function oc(t){return uc(new y(t))}function sc(t,n){return function(t,n){var i=n,r=t.getReader(),e=new du,u=function(){o();var t=new Qt;r.cancel(t).catch(D),e.Rc(t)},o=function(){i&&(i.Ra(u),i=void 0)};i&&(i.ma?u():i.Ia(u));var s=[];return E.resolve(r.read()).then(function t(n){return n.done?(o(),E.resolve(s)):(s.push(n.value),E.resolve(r.read()).then(t))}).then(function(t){o(),e.Ic(t)},function(t){o(),e.Rc(t)}),e.Ec}(t,n).then(function(t){return Dn(t).buffer})}function fc(t,n){var i=n,r=new Gf,e=r.readable,u=r.writable,o=u.getWriter(),s=function(){i&&i.Pa()};return o.closed.then(s,s),t.then(function(t){return i=void 0,o.releaseLock(),t.pipeTo(u).catch(D)},function(t){return i=void 0,o.releaseLock(),u.abort(t).catch(D)}),e}function cc(t){return En(new y(t))}function ac(t){return Sn(t).buffer}!function(t){t[t.Zv=0]="Zv",t[t.Sl=1]="Sl"}(Jf||(Jf={}));var hc="content-type",vc="text/plain;charset=UTF-8",lc=function(){function t(){}var n=t.prototype;return n.El=function(t){return this.Il(t).then(JSON.parse)},n.Rl=function(t,n){switch(t){case $u.Qv:return this.Nl(n);case $u.Kv:return this.El(n);case $u.Zv:return this.Dl();case $u.pu:return this.Il(n);default:throw new a}},t}();function dc(t,n,i){if(t instanceof lc)return t;if(t instanceof jf)return function(t,n){return new yc({Qh:Jf.Zv,Dl:t,Cl:wc(n)})}(t,i);var r=wc(i),e=E.resolve(t).then(function(t){return function(t,n){if(t){if("string"==typeof t)return{Qh:$u.pu,Pl:t,Cl:n||vc};if(t instanceof ArrayBuffer||Nn(t))return{Qh:$u.Qv,Pl:Sc(t),Cl:n};if(T(i=t)&&i.constructor&&i.constructor===h||R(t))return{Qh:$u.Kv,Pl:t,Cl:n};throw new a("Unsupported BodyInit type")}return{Qh:$u.pu,Pl:null,Cl:n};var i}(t,r)});return new yc({Qh:Jf.Sl,Ec:e,Ol:n})}function wc(t){return(t.get(hc)||"").toLowerCase()}var yc=function(t){function n(n){var i;return(i=t.call(this)||this).Bl=!1,i.Ll=void 0,i.xl=new du,i.xl.Ec.catch(D),i.Ml(n),i}rt(n,t);var i=n.prototype;return i.Fl=function(){return this.xl.Ec},i.Il=function(t){return this.Ul(pc,t)},i.El=function(t){return this.Ul(gc,t)},i.Nl=function(t){return this.Ul(_c,t)},i.Dl=function(){return this.Hl((t=this.Ll).Qh===Jf.Zv?t.Dl:fc(t.Ec.then(Ec).then(oc),t.Ol));var t},i.Ul=function(t,n){if(this.Bl)return E.reject(new a("Already used"));this.Bl=!0;var i=t(this.Ll,n);return this.xl.Ic(i.then(D)),i},i.Hl=function(t){if(this.Bl)throw new a("Already used");if(t.locked)throw new a("Body stream is locked");this.Bl=!0;var n=new Gf,i=E.resolve(t.pipeTo(n.writable));return this.xl.Ic(i),n.readable},i.Ml=function(t){this.Ll=t,t.Qh===Jf.Sl&&t.Ec.catch(D)},i.Vl=function(){if(this.Bl)throw new a("Already used");var t=function(t){if(t.Qh===Jf.Zv){var n=t.Dl.tee(),i=n[0],r=n[1];return[{Qh:t.Qh,Dl:i,Cl:t.Cl},{Qh:t.Qh,Dl:r,Cl:t.Cl}]}var e=t.Ol.Ba(),u=e[0],o=e[1];return[{Qh:t.Qh,Ec:t.Ec,Ol:u},{Qh:t.Qh,Ec:t.Ec,Ol:o}]}(this.Ll),i=t[0],r=t[1];return this.Ml(i),new n(r)},P(n,[{key:"Xl",get:function(){return this.Bl}}]),n}(lc);function pc(t,n){return t.Qh===Jf.Zv?sc(t.Dl,n).then(cc):(n&&t.Ol.Oa(n),nn(t.Ec.then(bc),t.Ol))}function bc(t){switch(t.Qh){case $u.pu:return E.resolve(t.Pl||"");case $u.Qv:return E.resolve(t.Pl).then(cc);case $u.Kv:return E.resolve(t.Pl).then(JSON.stringify)}}function gc(t,n){return t.Qh===Jf.Zv?pc(t,n).then(JSON.parse):(n&&t.Ol.Oa(n),nn(t.Ec.then(mc),t.Ol))}function mc(t){return t.Qh===$u.Kv?E.resolve(t.Pl):bc(t).then(JSON.parse)}function _c(t,n){return t.Qh===Jf.Zv?sc(t.Dl,n):(n&&t.Ol.Oa(n),nn(t.Ec.then(Ec),t.Ol))}function Ec(t){switch(t.Qh){case $u.Qv:return E.resolve(t.Pl);case $u.pu:case $u.Kv:return bc(t).then(ac)}}function Sc(t){return t instanceof ArrayBuffer?t:kn(Rn(t)).buffer}function Ic(t){return t.zl>=200&&t.zl<=299||304===t.zl}var Rc,Tc,kc,Ac,Oc=function(t){function n(n,i){var r,e,u,o,s,f;i?(e=i.ql,u=i.Gl,o=i.zl,s=i.Wl,f=i.jl):(e=[],u=$u.pu,o=200,s="OK",f=!1);var c=n.Yl,a=new Ju(n.ql||e),h=n.Gl||u,v=n.Ql||(i&&i.Yl===c?i.Ql:c.Kl),l=i?i.Zl:null,d=dc(void 0!==n.$u?n.$u:l,n.Ol||new Zt,a);return(r=t.call(this,d)||this).ql=void 0,r.Yl=void 0,r.Ql=void 0,r.Gl=void 0,r.zl=void 0,r.Wl=void 0,r.jl=void 0,r.ql=a,r.Yl=c,r.Ql=v,r.Gl=h,r.zl=void 0!==n.zl?n.zl:o,r.Wl=void 0!==n.Wl?String(n.Wl):s,r.jl=n.jl||f,r}rt(n,t);var i=n.prototype;return i.$u=function(t){return this.Rl(this.Gl,t)},i.bc=function(){return new n({$u:this.Vl(),Yl:this.Yl},this)},n}(function(t){function n(n){var i;return(i=t.call(this)||this).Zl=void 0,i.Zl=n,i}rt(n,t);var i=n.prototype;return i.Fl=function(){return this.Zl.Fl()},i.Il=function(t){return this.Zl.Il(t)},i.El=function(t){return this.Zl.El(t)},i.Nl=function(t){return this.Zl.Nl(t)},i.Dl=function(){return this.Zl.Dl()},i.Vl=function(){return this.Zl.Vl()},P(n,[{key:"Xl",get:function(){return this.Zl.Xl}}]),n}(lc));!function(t){t.DELETE="DELETE",t.GET="GET",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t.POST="POST",t.PUT="PUT"}(Rc||(Rc={})),function(t){t.Jl="",t.$l="manifest",t.t_="segment",t.n_="content-protection"}(Tc||(Tc={})),function(t){t.Jl="",t.i_="initialization-segment",t.r_="fairplay-license",t.e_="fairplay-certificate",t.s_="widevine-license",t.u_="widevine-certificate",t.o_="playready-license",t.h_="clearkey-license",t.a_="aes128-key"}(kc||(kc={})),function(t){t.Jl="",t.c_="audio",t.f_="video",t.pu="text",t.v_="image"}(Ac||(Ac={}));var Nc=function(t,n){this.Pl=void 0,this.ql=void 0,this.d_=void 0,this.Gl=void 0,this.l_=void 0,this.La=void 0,this.Qh=void 0,this.__=void 0,this.g_=void 0,this.Kl=void 0,this.w_=void 0,this.m_=void 0;var i,r,e,u,o,s,f,c,a,h,v,l=t.Kl;n?(i=n.Pl,r=n.ql,e=n.d_,u=n.Gl,o=n.l_,s=n.La,f=n.Qh,c=n.__,a=n.g_,h=n.w_,v=n.m_):(i=null,r={},e=Rc.GET,u=$u.pu,o=0,f=Tc.Jl,c=kc.Jl,a=Ac.Jl,h=!1),this.Kl=l,this.Pl=t.Pl||i,this.ql=new Ju(t.ql||r),this.d_=t.d_||e,this.Gl=t.Gl||u,this.l_=void 0!==t.l_?Number(t.l_)||0:o,this.La=t.La||s||(new Zt).La,this.Qh=t.Qh||f,this.__=t.__||c,this.g_=t.g_||a,this.w_=void 0!==t.w_?Boolean(t.w_):h,this.m_=t.m_||v},Dc=function(){function t(){}var n=t.prototype;return n.Yl=function(t){var n=function(t){return new Oc({$u:null,ql:{},Yl:t,Ql:t.Kl,Gl:t.Gl,zl:0,Wl:Ku.Iv})}(new Nc(t));return E.resolve(n)},n.y_=function(t){},n.k_=function(){},t}();var Cc,xc=function(){function t(t,n){void 0===n&&(n=!0),this.p_=void 0,this.b_=void 0,this.p_=t,this.b_=n}var n=t.prototype;return n.Yl=function(t){var n=this.A_(t);return this.p_.Yl(n)},n.y_=function(t){return this.p_.y_(this.T_(t))},n.A_=function(n){var i=new Nc(n);if(!this.b_){var r=t.S_(i.Kl);i=new Nc({Kl:r},i)}return i},n.T_=function(n){var i=n.Kl;return this.b_||(i=t.S_(i)),{Kl:i,Pl:n.Pl}},t.S_=function(t){return m.Dh&&fn(t,"http://")?t.replace(":","s:"):t},n.k_=function(){this.p_.k_()},P(t,null,[{key:"E_",get:function(){return t.I_||(t.I_=new t(new Dc)),t.I_}}]),t}();xc.I_=void 0,function(t){t.R_="HttpOpenError",t.N_="HttpResponseError",t.D_="HttpTimeoutError"}(Cc||(Cc={}));var Bc=function(t){function n(n,i,r){var e;return(e=t.call(this,i,r)||this).C_=void 0,e.C_=n,e}return rt(n,t),P(n,[{key:"Yl",get:function(){return this.C_}}]),n}($t);var Fc=function(t){function n(n,i){return t.call(this,n,"Error while opening "+n.Kl+". Invalid URL.",i)||this}return rt(n,t),P(n,[{key:"name",get:function(){return Cc.R_}}]),n}(Bc);var Pc=function(t){function n(n,i,r){var e;return(e=t.call(this,n.Yl,null!=r?r:function(t){return"Error while loading "+t.Yl.Kl+", status code "+t.zl}(n),i)||this).P_=void 0,e.P_=n,e}return rt(n,t),P(n,[{key:"name",get:function(){return Cc.N_}},{key:"O_",get:function(){return this.P_}}]),n}(Bc);var jc=function(t){function n(n,i){return t.call(this,n,function(t){return"Request for "+t.Kl+" timed out after "+t.l_+" seconds."}(n),i)||this}return rt(n,t),P(n,[{key:"name",get:function(){return Cc.D_}}]),n}(Bc),Uc=function(t,n){return(Uc=h.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])})(t,n)};function Lc(t,n){function i(){this.constructor=t}Uc(t,n),t.prototype=null===n?h.create(n):(i.prototype=n.prototype,new i)}var Mc="object"==typeof i?i:"object"==typeof t?t:"object"==typeof global?global:null;var qc=function(){var t=Mc.Blob;if(t)try{return new t,function(t,n){return new Mc.Blob(t,n)}}catch(t){}var n,i=Mc.BlobBuilder||Mc.WebKitBlobBuilder||Mc.MozBlobBuilder||Mc.MSBlobBuilder;return i?(n=i,function(t,i){var r=new n;if(t)for(var e=0,u=t;e<u.length;e++){var o=u[e];r.append(o)}return r.getBlob(i&&i.type||"")}):null}(),Wc="function"==typeof jf?jf:void 0;function Xc(t){return t&&"function"==typeof t.getReader}function Hc(t){if("function"!=typeof t)return!1;try{var n=!1,i=new t({start:function(){n=!0}});return!!n&&Xc(i)}catch(t){return!1}}var Vc=function(){function t(t,n){this.dd=t,this.B_=n}return t.prototype.pull=function(t){var n=this;return this.dd.read().then(function(i){n.B_&&n.B_(i),i.done?t.close():t.enqueue(i.value)})},t.prototype.cancel=function(t){return this.dd.cancel(t)},t}();function Gc(t,n){return n.constructor===t?n:new t(new Vc(n.getReader()),{highWaterMark:0})}var zc=function(){function t(t,n){this.L_=t,this.Ot=n}return t.prototype.pull=function(t){return this.L_().then(function(n){t.enqueue(new y(n)),t.close()})},t.prototype.cancel=function(t){this.Ot&&this.Ot(t)},t}();function Yc(t,n,i){return new t(new zc(n,i),{highWaterMark:0})}var Kc={searchParams:"URLSearchParams"in Mc,iterable:"Symbol"in Mc&&"iterator"in Symbol,blob:"FileReader"in Mc&&!!qc,formData:"FormData"in Mc,arrayBuffer:"ArrayBuffer"in Mc,stream:Hc(Wc),streamRequest:"Request"in Mc&&"body"in Mc.Request.prototype,streamResponse:"Response"in Mc&&"body"in Mc.Response.prototype,abort:"AbortController"in Mc&&"Request"in Mc&&"signal"in Mc.Request.prototype,encoding:"TextEncoder"in Mc&&"TextDecoder"in Mc,url:"URL"in Mc&&function(t){try{return new Mc.URL(t).toString()===t}catch(t){return!1}}("http://example.com/"),firefox:"navigator"in Mc&&/Firefox\//.test(Mc.navigator.userAgent)};function $c(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new a("Invalid character in header field name");return t}function Jc(t){return"string"!=typeof t&&(t=String(t)),t}function Zc(t){var n={next:function(){var n=t.shift();return{done:void 0===n,value:n}}};return Kc.iterable&&(n[Symbol.iterator]=function(){return n}),n}var Qc=function(){function t(t){var n=this;this.Xh={};var i,r=function(t,i){Array.isArray(t)&&2===t.length?n.append(t[0],t[1]):n.append(i,t)};(i=t)&&"function"==typeof i.forEach?t.forEach(r):!function(t){return Kc.iterable&&t&&t[Symbol.iterator]}(t)?t&&h.getOwnPropertyNames(t).forEach(function(i){n.append(i,t[i])}):Array.from(t).forEach(r)}return t.prototype.append=function(t,n){t=$c(t),n=Jc(n);var i=t.toLowerCase();if(this.Xh.hasOwnProperty(i)){var r=this.Xh[i],e=r[1];r[1]=e?e+", "+n:n}else this.Xh[i]=[t,n]},t.prototype.delete=function(t){var n=$c(t).toLowerCase();delete this.Xh[n]},t.prototype.get=function(t){var n=$c(t).toLowerCase();return this.Xh.hasOwnProperty(n)?this.Xh[n][1]:null},t.prototype.has=function(t){var n=$c(t).toLowerCase();return this.Xh.hasOwnProperty(n)},t.prototype.set=function(t,n){var i=(t=$c(t)).toLowerCase();this.Xh[i]=[t,Jc(n)]},t.prototype.forEach=function(t,n){for(var i in this.Xh)this.Xh.hasOwnProperty(i)&&t.call(n,this.Xh[i][1],i,this)},t.prototype.keys=function(){var t=[];return this.forEach(function(n,i){t.push(i)}),Zc(t)},t.prototype.values=function(){var t=[];return this.forEach(function(n){t.push(n)}),Zc(t)},t.prototype.entries=function(){var t=[];return this.forEach(function(n,i){t.push([i,n])}),Zc(t)},t.prototype.asList=function(){var t=[];for(var n in this.Xh)if(this.Xh.hasOwnProperty(n)){var i=this.Xh[n],r=i[0],e=i[1];t.push([r,e])}return t},t}();function ta(){}Kc.iterable&&(Qc.prototype[Symbol.iterator]=Qc.prototype.entries);var na,ia,ra,ea=v.min,ua=String.fromCharCode,oa=16384;function sa(t){for(var n=[],i=0,r=t;i<r.length;i++){var e=r[i];e>65535&&(e-=65536,n.push(e>>>10&1023|55296),e=56320|1023&e),n.push(e)}return function(t){for(var n=t.length,i=[],r=0;r<n;r+=oa){var e=ea(r+oa,n);i.push(ua.apply(null,t.slice(r,e)))}return i.join("")}(n)}function fa(t){if(t>=55296&&t<=57343)throw new c("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function ca(t,n){return t>>n&63|128}function aa(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(fa(t),n.push(t>>12&15|224),n.push(ca(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(ca(t,12)),n.push(ca(t,6))),n.push(63&t|128)):n.push(t)}function ha(){if(ra>=ia)throw new c("Invalid byte index");var t=255&na[ra];if(ra++,128==(192&t))return 63&t;throw new c("Invalid continuation byte")}function va(){var t,n;if(ra>ia)throw new c("Invalid byte index");if(ra===ia)return!1;if(t=255&na[ra],ra++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|ha())>=128)return n;throw new c("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|ha()<<6|ha())>=2048)return fa(n),n;throw new c("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|ha()<<12|ha()<<6|ha())>=65536&&n<=1114111)return n;throw new c("Invalid UTF-8 detected")}var la=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"];function da(t){return t&&URLSearchParams.prototype.isPrototypeOf(t)}function wa(t){return t&&ArrayBuffer.prototype.isPrototypeOf(t)}function ya(t){return t&&DataView.prototype.isPrototypeOf(t)}var pa,ba=ArrayBuffer.isView||function(t){return t&&(la.indexOf(h.prototype.toString.call(t))>-1||ya(t))};function ga(t){if(t.bodyUsed)return E.reject(new a("Already used"));t.bodyUsed=!0}function ma(t){return new E(function(n,i){t.onload=function(){n(t.result)},t.onerror=function(){i(t.error)}})}function _a(t){return Kc.encoding?new Mc.TextDecoder("utf-8").decode(new y(t)):sa(function(t){ia=(na=t).length,ra=0;for(var n,i=[];!1!==(n=va());)i.push(n);return i}(new y(t)))}function Ea(t){return Kc.encoding?(new Mc.TextEncoder).encode(t).buffer:new y(function(t){for(var n=[],i=0,r=t;i<r.length;i++)aa(r[i],n);return n}(function(t){for(var n=[],i=0,r=t.length;i<r;){var e=t.charCodeAt(i++);if(e>=55296&&e<=56319&&i<r){var u=t.charCodeAt(i++);56320==(64512&u)?n.push(((1023&e)<<10)+(1023&u)+65536):(n.push(e),i--)}else n.push(e)}return n}(t))).buffer}function Sa(t){var n=t.getReader(),i=[],r=function(t){var e=t.done,u=t.value;return e?E.resolve(i):(i.push(u),n.read().then(r))};return n.read().then(r)}function Ia(t){return Sa(t).then(function(t){return function(t){for(var n=0,i=0,r=t;i<r.length;i++)n+=(f=r[i]).byteLength;for(var e=new y(n),u=0,o=0,s=t;o<s.length;o++){var f=s[o];e.set(f,u),u+=f.byteLength}return e}(t).buffer})}function Ra(t){return t.slice?t.slice(0):Ta(new y(t))}function Ta(t){if(t.slice)return t.slice(0).buffer;var n=new y(t.byteLength);return n.set(new y(t.buffer,t.byteOffset,t.byteLength)),n.buffer}function ka(t){var n=new FormData;return t.trim().split("&").forEach(function(t){if(t){var i=t.split("="),r=i.shift().replace(/\+/g," "),e=i.join("=").replace(/\+/g," ");n.append(decodeURIComponent(r),decodeURIComponent(e))}}),n}function Aa(t){var n=t;if(n.bodyUsed)throw new a("Already used");if(n.x_===pa.M_){if(!n.F_.tee)throw new c("could not clone ReadableStream body");var i=n.F_.tee(),r=i[0],e=i[1];return n.body=r,n.F_=r,n.U_=r,e}return n.x_===pa.Qv?Ra(n.F_):n.x_===pa.Sl?n.F_.then(Aa):n.U_}!function(t){t[t.pu=0]="pu",t[t.H_=1]="H_",t[t.V_=2]="V_",t[t.Qv=3]="Qv",t[t.M_=4]="M_",t[t.Sl=5]="Sl"}(pa||(pa={}));var Oa=function(){function t(n,i){this.bodyUsed=!1;var r,e,u,o=this;if(this.U_=n||null,n)if("string"==typeof n)this.x_=pa.pu,this.F_=n;else if((u=n)&&"function"==typeof u.then)this.x_=pa.Sl,this.F_=E.resolve(n).then(function(n){return new t(n,i)}),this.F_.catch(ta);else if(Kc.blob&&function(t){return t&&Blob.prototype.isPrototypeOf(t)}(n))this.x_=pa.H_,this.F_=n;else if(Kc.formData&&function(t){return t&&FormData.prototype.isPrototypeOf(t)}(n))this.x_=pa.V_,this.F_=n;else if(Kc.searchParams&&da(n))this.x_=pa.pu,this.F_=n.toString();else if(Kc.arrayBuffer&&(wa(n)||ba(n)))ya(n)&&(this.U_=new y((e=n).buffer,e.byteOffset,e.byteLength)),this.x_=pa.Qv,this.F_=wa(r=n)?Ra(r):Ta(r);else{if(!Kc.stream||!Xc(n))throw new c("unsupported BodyInit type");n=Gc(Wc,n),this.x_=pa.M_,this.F_=n,this.U_=n}else this.x_=pa.pu,this.F_="";this.X_="",i.has("content-type")?this.X_=(i.get("content-type")||"").toLowerCase():("string"==typeof n?this.X_="text/plain;charset=UTF-8":o.x_===pa.H_&&o.F_.type?this.X_=o.F_.type:Kc.searchParams&&da(n)&&(this.X_="application/x-www-form-urlencoded;charset=UTF-8"),this.X_&&i.set("content-type",this.X_)),Kc.stream&&(null==n?this.body=null:o.x_===pa.M_?this.body=o.F_:this.body=Yc(Wc,function(){return o.arrayBuffer()},function(){o.bodyUsed=!0}))}return t.prototype.text=function(){var t,n,i,r=ga(this);return r||(this.x_===pa.H_?(t=this.F_,n=new FileReader,i=ma(n),n.readAsText(t),i):this.x_===pa.Qv?E.resolve(this.F_).then(_a):this.x_===pa.M_?Ia(this.F_).then(_a):this.x_===pa.Sl?this.F_.then(function(t){return t.text()}):this.x_===pa.V_?E.reject(new c("could not read FormData body as text")):E.resolve(this.F_))},t.prototype.json=function(){return this.text().then(JSON.parse)},t}();Kc.blob&&(Oa.prototype.blob=function(){var t,n,i=ga(this);return i||(this.x_===pa.H_?E.resolve(this.F_):this.x_===pa.Qv?E.resolve(qc([this.F_],{type:this.X_})):this.x_===pa.M_?(t=this.F_,n=this.X_,Sa(t).then(function(t){return qc(t,{type:n||""})})):this.x_===pa.Sl?this.F_.then(function(t){return t.blob()}):this.x_===pa.V_?E.reject(new c("could not read FormData body as Blob")):E.resolve(qc([this.F_],{type:this.X_})))}),Kc.arrayBuffer&&(Oa.prototype.arrayBuffer=function(){var t,n,i;return this.x_===pa.Qv?ga(this)||E.resolve(this.F_):this.x_===pa.H_?ga(this)||(t=this.F_,n=new FileReader,i=ma(n),n.readAsArrayBuffer(t),i):this.x_===pa.M_?Ia(this.F_):this.x_===pa.Sl?ga(this)||this.F_.then(function(t){return t.arrayBuffer()}):this.x_===pa.V_?E.reject(new c("could not read FormData body as ArrayBuffer")):E.resolve(this.F_).then(Ea)}),Kc.formData&&(Oa.prototype.formData=function(){return this.x_===pa.V_?ga(this)||E.resolve(this.F_):this.text().then(ka)});var Na=[301,302,303,307,308],Da=function(t){function n(n,i){var r=this,e=new Qc((i=i||{}).headers);return(r=t.call(this,n||null,e)||this).type="default",r.status=void 0===i.status?200:i.status,r.ok=r.status>=200&&r.status<300,r.statusText=void 0!==i.statusText?String(i.statusText):"",r.headers=e,r.url=i.url||"",r}return Lc(n,t),n.prototype.clone=function(){return new n(Aa(this),{status:this.status,statusText:this.statusText,headers:new Qc(this.headers),url:this.url})},n.error=function(){var t=new n(null,{status:0,statusText:""});return t.type="error",t},n.redirect=function(t,i){if(-1===Na.indexOf(i))throw new RangeError("Invalid status code");return new n(null,{status:i,headers:{location:t}})},n}(Oa);var Ca,xa=function(t,n){return t(n={exports:{}},n.exports),n.exports}(function(t,n){function i(t,n){if(!(t instanceof n))throw new a("Cannot call a class as a function")}function e(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),h.defineProperty(t,r.key,r)}}function o(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}function s(t){return(s=h.setPrototypeOf?h.getPrototypeOf:function(t){return t.__proto__||h.getPrototypeOf(t)})(t)}function f(t,n){return(f=h.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t,n,i){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,n,i){var r=function(t,n){for(;!h.prototype.hasOwnProperty.call(t,n)&&null!==(t=s(t)););return t}(t,n);if(r){var e=h.getOwnPropertyDescriptor(r,n);return e.get?e.get.call(i):e.value}})(t,n,i||t)}h.defineProperty(n,"__esModule",{value:!0});var l=function(){function t(){i(this,t),h.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return o(t,[{key:"addEventListener",value:function(t,n){t in this.listeners||(this.listeners[t]=[]),this.listeners[t].push(n)}},{key:"removeEventListener",value:function(t,n){if(t in this.listeners)for(var i=this.listeners[t],r=0,e=i.length;r<e;r++)if(i[r]===n)return void i.splice(r,1)}},{key:"dispatchEvent",value:function(t){var n=this;if(t.type in this.listeners){for(var i=function(i){u(function(){return i.call(n,t)})},r=this.listeners[t.type],e=0,o=r.length;e<o;e++)i(r[e]);return!t.defaultPrevented}}}]),t}(),d=function(t){function n(){var t,r,e;return i(this,n),r=this,(t=!(e=s(n).call(this))||"object"!=typeof e&&"function"!=typeof e?c(r):e).listeners||l.call(c(t)),h.defineProperty(c(t),"aborted",{value:!1,writable:!0,configurable:!0}),h.defineProperty(c(t),"onabort",{value:null,writable:!0,configurable:!0}),t}return function(t,n){if("function"!=typeof n&&null!==n)throw new a("Super expression must either be null or a function");t.prototype=h.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&f(t,n)}(n,l),o(n,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(t){"abort"===t.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,t)),v(s(n.prototype),"dispatchEvent",this).call(this,t)}}]),n}(),w=function(){function t(){i(this,t),h.defineProperty(this,"signal",{value:new d,writable:!0,configurable:!0})}return o(t,[{key:"abort",value:function(){var t;try{t=new Event("abort")}catch(n){void 0!==r?r.createEvent?(t=r.createEvent("Event")).initEvent("abort",!1,!1):(t=r.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(t)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();"undefined"!=typeof Symbol&&Symbol.toStringTag&&(w.prototype[Symbol.toStringTag]="AbortController",d.prototype[Symbol.toStringTag]="AbortSignal"),n.AbortSignal=d,n.AbortController=w,n.default=w});(Ca=xa)&&Ca.__esModule&&h.prototype.hasOwnProperty.call(Ca,"default")&&Ca.default;xa.AbortSignal;var Ba=xa.AbortController,Fa=Mc.DOMException;try{new Fa}catch(t){(Fa=function(t,n){c.call(this,t),this.name=n||"Error",c.captureStackTrace&&c.captureStackTrace(this,this.constructor)}).prototype=h.create(c.prototype),Fa.prototype.constructor=Fa}var Pa=Ba;function ja(t,n){if(!t.signal.aborted)if(n.aborted)t.abort();else{var i=function(){n.removeEventListener("abort",i),t.signal.removeEventListener("abort",i),t.abort()};n.addEventListener("abort",i),t.signal.addEventListener("abort",i)}}function Ua(t,n,i){return new E(function(r,e){if(n.signal.aborted)return t.catch(ta),e(La());var u=function(){n.signal.removeEventListener("abort",u),e(La())};n.signal.addEventListener("abort",u),t.then(function(t){n.signal.removeEventListener("abort",u),r(t),i&&n.abort()},function(t){n.signal.removeEventListener("abort",u),e(t),i&&n.abort()})})}function La(){return new Fa("Aborted","AbortError")}var Ma,qa="moz-chunked-arraybuffer";function Wa(t){try{var n=new p;return n.open("GET","https://test"),n.responseType=t,n.responseType===t}catch(t){}return!1}!function(t){t[t.UNSENT=0]="UNSENT",t[t.OPENED=1]="OPENED",t[t.HEADERS_RECEIVED=2]="HEADERS_RECEIVED",t[t.LOADING=3]="LOADING",t[t.DONE=4]="DONE"}(Ma||(Ma={}));var Xa=function(){function t(t,n){var i=this;this.z_=!1,this.C_=t,this.q_=n,this.G_=new p,this.W_=new E(function(t,n){i.j_=t,i.Y_=n})}return t.prototype.send=function(){var t=this;return this.Q_().then(function(n){return t.K_(n,t.q_),t.W_})},t.prototype.Q_=function(){var t=this.C_;return t.x_===pa.M_?t.arrayBuffer():E.resolve(t.U_)},t.prototype.Z_=function(t){this.C_.onprogress&&this.C_.onprogress(t.loaded,t.lengthComputable?t.total:void 0)},t.prototype.J_=function(t){this.Y_(t)},t.prototype.rg=function(){this.J_(new a("Network request failed"))},t.prototype.eg=function(){this.J_(new a("Network request failed"))},t.prototype.og=function(){this.J_(La())},t.prototype.K_=function(t,n){var i=this,r=this.C_,e=this.G_,u=function(){return i.hg()};if(r.signal.aborted)return this.og();e.onreadystatechange=function(){if(e.readyState>=Ma.HEADERS_RECEIVED&&!i.z_){var t=function(t){var n=new Qc;return t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var i=t.split(":"),r=i.shift().trim();if(r){var e=i.join(":").trim();n.append(r,e)}}),n}(e.getAllResponseHeaders()||""),n={status:e.status,statusText:e.statusText,headers:t,url:e.responseURL||t.get("X-Request-URL")};i.z_=!0,i.ag(n)}},e.onprogress=function(t){return i.Z_(t)},e.onload=function(){return i.cg()},e.onerror=function(){return i.rg()},e.ontimeout=function(){return i.eg()},e.onabort=function(){return i.og()},e.open(r.method,r.url,!0),e.withCredentials="include"===r.credentials,"responseType"in e&&n&&(e.responseType=n),r.headers.forEach(function(t,n){e.setRequestHeader(n,t)}),r.signal.addEventListener("abort",u),e.onloadend=function(){r.signal.removeEventListener("abort",u)},t?e.send(t):e.send()},t.prototype.hg=function(){this.og(),this.G_.abort()},t}(),Ha=function(t){function n(n,i){var r=t.call(this,n,i)||this;return r.fg=void 0,r.vg=void 0,r}return Lc(n,t),n.prototype.ag=function(t){var n=this;this.fg=new E(function(t,i){n.vg=t,n.dg=i}),this.j_(new Da(this.fg,t))},n.prototype.cg=function(){var t=this.G_.response||this.G_.responseText;this.vg(t)},n.prototype.J_=function(n){t.prototype.J_.call(this,n),this.dg&&this.dg(n)},n}(Xa),Va=function(t){function n(n){var i=t.call(this,n,qa)||this;return i._g=void 0,i.gg=void 0,i.wg=!1,i}return Lc(n,t),n.prototype.ag=function(t){var n=this;this._g=new Wc({start:function(t){n.gg=t},cancel:function(){n.wg=!0,n.hg()}}),this.j_(new Da(this._g,t))},n.prototype.Z_=function(n){this.wg||this.gg.enqueue(new y(this.G_.response)),t.prototype.Z_.call(this,n)},n.prototype.cg=function(){this.gg.close()},n.prototype.J_=function(n){t.prototype.J_.call(this,n),this.gg&&!this.wg&&(this.wg=!0,this.gg.error(n))},n}(Xa),Ga=function(){var t=Kc.firefox&&Wa(qa);return Ga=function(){return t},t},za=function(){var t;return t=Kc.arrayBuffer&&Wa("arraybuffer")?"arraybuffer":Kc.blob&&Wa("blob")?"blob":"",za=function(){return t},t};function Ya(t){return(Kc.stream&&Ga()?new Va(t):new Ha(t,za())).send()}var Ka=Mc.fetch,$a=Mc.Request,Ja=(Mc.Response,Mc.AbortController);var Za=["http:","https:"];var Qa=function(){try{if(Kc.streamRequest){var t=new $a("about:blank",{body:"",method:"POST"}).body;if(t&&Hc(t.constructor))return t.constructor}}catch(t){}}();function th(t,n,i){var r;if(Kc.stream){var e=void 0;if(Kc.streamResponse){var u=t.body;e=u&&Gc(Wc,u)}else e=Yc(Wc,function(){return Ua(t.arrayBuffer(),n,!0)},function(){n.abort()});e&&i&&(e=function(t,n,i){var r=0;return function(t,n,i){return new t(new Vc(n.getReader(),i),{highWaterMark:0})}(Wc,t,function(t){var e=t.done,u=t.value;e?i=void 0===i?r:i:r+=u.byteLength,n(r,i)})}(e,i,nh(t.headers))),r=e}else{var o=Ua(t.arrayBuffer(),n,!0);i&&(o=function(t,n,i){return E.resolve().then(function(){return n(0,i),t}).then(function(t){var r=t.byteLength;return n(r,i=void 0===i?r:i),t})}(o,i,nh(t.headers))),r=o}return new Da(r,t)}function nh(t){return t.has("content-length")?Number(t.get("content-length")):void 0}function ih(t){var n=new Pa;return t.signal&&ja(n,t.signal),function(t,n){var i,r,e=t;if(i=e.x_===pa.M_?Kc.streamRequest&&Qa?E.resolve(Gc(Qa,e.F_)):Ua(t.arrayBuffer(),n,!1):Ua(E.resolve(t.U_),n,!1),Kc.abort){var u=new Ja;ja(u,n.signal),r=u.signal}return i.then(function(n){return new $a(t.url,{body:n||void 0,credentials:t.credentials,headers:(i=t.headers,(i instanceof Qc?i:new Qc(i)).asList()),method:t.method,mode:t.mode,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:r});var i})}(t,n).then(function(i){return Ka(i).then(function(i){return th(i,n,t.onprogress)})})}var rh=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];var eh=function(t){function n(i,r){var e,u,o,s,f,c,h,v,l,d=this,w=(r=r||{}).body||null;if(i instanceof n){if(i.bodyUsed)throw new a("Already used");e=i.url,u=i.credentials,r.headers||(o=new Qc(i.headers)),s=i.method,f=i.mode,c=i.referrer,h=i.referrerPolicy,v=i.signal,l=i.onprogress,w||null==i.U_||(w=i.U_,i.bodyUsed=!0)}else e=String(i),u="same-origin",s="GET",f="cors",c="about:client",h="",v=null,l=null;if(!r.headers&&o||(o=new Qc(r.headers)),r&&(c="about:client",h=""),(d=t.call(this,w,o)||this).url=e,d.headers=o,d.credentials=r.credentials||u,d.method=function(t){var n=t.toUpperCase();return rh.indexOf(n)>-1?n:t}(r.method||s),d.mode=r.mode||f,d.signal=r.signal||v||(new Pa).signal,d.referrer=void 0!==r.referrer?r.referrer:c,d.referrerPolicy=void 0!==r.referrerPolicy?r.referrerPolicy:h,d.onprogress=r.onprogress||l,("GET"===d.method||"HEAD"===d.method)&&w)throw new a("Body not allowed for GET or HEAD requests");return d}return Lc(n,t),n.prototype.clone=function(){return new n(this,{body:Aa(this)})},n}(Oa),uh="function"==typeof Ka&&Kc.stream&&Kc.streamResponse&&Kc.url;function oh(t,n){return new E(function(i){var r=new eh(t,n);i((uh&&function(t){try{return Za.indexOf(new Mc.URL(t,Mc.location.href).protocol)>=0}catch(t){return!1}}(r.url)?ih:Ya)(r))})}oh.polyfill=!0;var sh=function(){function t(t){this.O_=void 0,this.C_=void 0,this.yg=new Zt,this.P_=void 0,this.pg=!1,this.C_=t,this.yg.Oa(t.La),this.O_=this.Ag()}var n=t.prototype;return n.Ag=function(){var t=E.coroutine(_.mark(function t(){var n,i,r,e,o,s,f,c,a=this;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(n=this.C_).l_&&u(function(){a.pg=!0,a.yg.Pa()},n.l_),t.prev=2,i=oh(n.Kl,{method:n.d_,headers:n.ql.Jv(),body:n.Pl,credentials:n.w_?"include":"same-origin",signal:ah(this.yg.La),onprogress:n.m_}),t.next=9;break;case 6:throw t.prev=6,t.t0=t.catch(2),new Fc(n,t.t0);case 9:return t.prev=9,t.next=12,i;case 12:r=t.sent,t.next=20;break;case 15:throw t.prev=15,t.t1=t.catch(9),tn(e=this.Tg(t.t1))&&this.yg.Pa(),e;case 20:if(o=r.url||n.Kl,s=0===r.status&&"file:"===(h=o,m.Ah(h).protocol)?200:r.status,f=new fh(this,r,this.yg),c=new Oc({$u:f,Yl:n,Gl:n.Gl,ql:new Ju(r.headers.asList()),zl:s,Wl:r.statusText,Ql:o}),this.P_=c,!Ic(c)){t.next=29;break}return t.abrupt("return",c);case 29:throw new Pc(c);case 30:case"end":return t.stop()}var h},t,this,[[2,6],[9,15]])}));return function(){return t.apply(this,arguments)}}(),n.Tg=function(t){return tn(t)?this.pg?new jc(this.C_):new Qt(t.message,t):this.P_?new Pc(this.P_,t):new Fc(this.C_,t)},t}(),fh=function(t){function n(n,i,r){var e;return(e=t.call(this)||this).En=void 0,e.Sg=void 0,e.yg=void 0,e.xl=new du,e.En=n,e.Sg=i,e.yg=r,e.xl.Ec.catch(D),e}rt(n,t);var i=n.prototype;return i.Fl=function(){return this.xl.Ec},i.Il=function(t){return this.Ul(this.Sg.text(),t)},i.Nl=function(t){return this.Ul(this.Sg.arrayBuffer(),t)},i.Dl=function(){var t=this.Sg.body;return t?this.Hl(t):fc(this.Nl().then(oc),this.yg)},i.Vl=function(){var t=this.Sg.clone(),i=this.yg.Ba(),r=i[0],e=i[1];return this.yg=r,new n(this.En,t,e)},i.Ul=function(t,n){var i=this;n&&this.yg.Oa(n);var r=E.resolve(t).catch(function(t){throw i.En.Tg(t)});return r=nn(r,this.yg),this.xl.Ic(r.then(D)),r},i.Hl=function(t){var n=this,i=new Gf,r=E.resolve(t.pipeTo(i.writable,{preventAbort:!0})).catch(function(t){var r=n.En.Tg(t);throw i.writable.abort(r).catch(D),r});return r=nn(r,this.yg),this.xl.Ic(r.then(D)),i.readable},P(n,[{key:"Xl",get:function(){return this.Sg.bodyUsed}}]),n}(lc),ch="abort";function ah(t){var n=new Pa;if(t.ma)n.abort();else if(!t.ya){var i=function(){r(),n.abort()},r=function r(){n.signal.removeEventListener(ch,i),t.Ra(i),t.Da(r)};n.signal.addEventListener(ch,i),t.Ia(i),t.Na(r)}return n.signal}var hh=function(){function t(){}var n=t.prototype;return n.Yl=function(t){return new sh(t).O_},n.y_=function(t){var n=t.Cl?{"Content-type":t.Cl}:void 0;this.Yl(new Nc({d_:Rc.POST,Kl:t.Kl,Pl:t.Pl,ql:n})).then(D,D)},n.k_=function(){},t}(),vh=function(n){function i(){for(var i,r=arguments.length,e=new Array(r),u=0;u<r;u++)e[u]=arguments[u];return(i=n.call.apply(n,[this].concat(e))||this).Eg=void 0,i.Ig=function(){if(ri.Cs)return!1;try{return"body"in t.Response.prototype}catch(t){return!1}}(),i.Rg=ri.tu,i.Ng=void 0,i}return rt(i,n),P(i,[{key:"lh",get:function(){return this.Eg||(this.Eg=new fu(Xu())),this.Eg}},{key:"Dg",get:function(){return this.Ig}},{key:"Cg",get:function(){return this.Rg}},{key:"Pg",get:function(){return!1}},{key:"Og",get:function(){return Vu.rv()}},{key:"Bg",get:function(){return{Lg:Yu}}},{key:"xg",get:function(){return e.connection&&e.connection.effectiveType||"default"}},{key:"Mg",get:function(){return e.connection&&e.connection.type||"unknown"}},{key:"Fg",get:function(){return this.Ng||(this.Ng=new xc(new hh)),this.Ng}}]),i}(ze);S(new vh),S(new vh);var lh=t;lh.addEventListener("install",function(t){t.waitUntil(lh.skipWaiting())}),lh.addEventListener("activate",function(t){t.waitUntil(lh.clients.claim())}),Gn.de.bk(lh)}()}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this);
|