@theoplayer/extended 2.91.1 → 2.92.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 +1 -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: 2021.4.
|
|
28
|
-
Created: 2021-
|
|
27
|
+
Version: 2021.4.2 (2.92.0)
|
|
28
|
+
Created: 2021-12-17T14:44:18.982Z
|
|
29
29
|
*/
|
|
30
|
-
!function(t){!function(){"use strict";var n,i=t.window,r=t.document,e=(t.location,t.navigator),o=t.setTimeout,u=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:{},o=e.iterator||"@@iterator",u=e.asyncIterator||"@@asyncIterator",s=e.toStringTag||"@@toStringTag";function f(t,n,i,r){var e=n&&n.prototype instanceof g?n:g,o=h.create(e.prototype),u=new D(r||[]);return o.Sh=function(t,n,i){var r=l;return function(e,o){if(r===y)throw new c("Generator is already running");if(r===p){if("throw"===e)throw o;return x()}for(i.method=e,i.arg=o;;){var u=i.delegate;if(u){var s=A(u,i);if(s){if(s===b)continue;return s}}if("next"===i.method)i.sent=i.Eh=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,u),o}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[o]=function(){return this};var R=h.getPrototypeOf,I=R&&R(R(C([])));I&&I!==i&&r.call(I,o)&&(E=I);var S=_.prototype=g.prototype=h.create(E);function T(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this.Sh(n,t)}})}function k(t){var n;this.Sh=function(i,e){function o(){return new Promise(function(n,o){!function n(i,e,o,u){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,"Ih")?Promise.resolve(c.Ih).then(function(t){n("next",t,o,u)},function(t){n("throw",t,o,u)}):Promise.resolve(c).then(function(t){f.value=t,o(f)},function(t){return n("throw",t,o,u)})}u(s.arg)}(i,e,n,o)})}return n=n?n.then(o,o):o()}}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 o=e.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=n),i.delegate=null,b):o:(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[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!w(t.length)){var e=-1,u=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 u.next=u}}return{next:x}}function x(){return{value:n,done:!0}}m.prototype=S.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(S),t},t.awrap=function(t){return{Ih:t}},T(k.prototype),k.prototype[u]=function(){return this},t.AsyncIterator=k,t.async=function(n,i,r,e){var o=new k(f(n,i,r,e));return t.isGeneratorFunction(i)?o:o.next().then(function(t){return t.done?t.value:o.next()})},T(S),S[s]="Generator",S[o]=function(){return this},S.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.Eh=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 o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],s=u.completion;if("root"===u.tryLoc)return e("end");if(u.tryLoc<=this.prev){var f=r.call(u,"catchLoc"),a=r.call(u,"finallyLoc");if(f&&a){if(this.prev<u.catchLoc)return e(u.catchLoc,!0);if(this.prev<u.finallyLoc)return e(u.finallyLoc)}else if(f){if(this.prev<u.catchLoc)return e(u.catchLoc,!0)}else{if(!a)throw new c("try statement without catch or finally");if(this.prev<u.finallyLoc)return e(u.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 o=e;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=t,u.arg=n,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(u)},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 o(s,f){if(!r[s]){if(!i[s]){var a="function"==typeof n&&n;if(!f&&a)return a(s,!0);if(u)return u(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 o(n||t)},v,v.exports,t,i,r,e)}return r[s].exports}for(var u="function"==typeof n&&n,s=0;s<e.length;s++)o(e[s]);return o}({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"),u=t("./queue"),s=t("./util");function f(){this.g=!1,this.I=!1,this.R=new u(16),this.N=new u(16),this.M=!1,this.U=!0;var t=this;this.drainQueues=function(){t.F()},this.q=e}function a(t,n,i){this.R.push(t,n,i),this.G()}function h(t,n,i){this.N.push(t,n,i),this.G()}function v(t){this.N.j(t),this.G()}function l(t){for(;t.length()>0;)d(t)}function d(t){var n=t.shift();if("function"!=typeof n)n.Y();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.I||this.M},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!==o)o(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(){o(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.Y()})}):(f.prototype.invokeLater=a,f.prototype.invoke=h,f.prototype.settlePromises=v),f.prototype.F=function(){l(this.N),this.K(),this.M=!0,l(this.R)},f.prototype.G=function(){this.I||(this.I=!0,this.q(this.drainQueues))},f.prototype.K=function(){this.I=!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,o=function(t,n){this.Z(n)},u=function(t,n){n.promiseRejectionQueued=!0,n.bindingPromise.J(o,o,null,this,t)},s=function(t,n){0==(50397184&this.nt)&&this.ut(n.target)},f=function(t,n){n.promiseRejectionQueued||this.Z(t)};t.prototype.bind=function(o){e||(e=!0,t.prototype.ot=r.propagateFromFunction(),t.prototype.at=r.boundValueFunction());var c=i(o),a=new t(n);a.ot(this,1);var h=this.ct();if(a.ft(c),c instanceof t){var v={promiseRejectionQueued:!1,promise:a,target:h,bindingPromise:c};h.J(n,u,void 0,a,v),c.J(s,f,void 0,a,v),a.vt(c)}else a.ut(h);return a},t.prototype.ft=function(t){void 0!==t?(this.nt=2097152|this.nt,this.dt=t):this.nt=-2097153&this.nt},t.prototype._t=function(){return 2097152==(2097152&this.nt)},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),o=r(null);e[" size"]=o[" 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 o="Object "+i.classString(t)+" has no method '"+i.toString(r)+"'";throw new n.TypeError(o)}return e}(t,r);return e.apply(t,this)}function o(t){return t[this]}function u(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.J(e,void 0,void 0,n,void 0)},n.prototype.get=function(t){var n,i="number"==typeof t;if(i)n=u;else if(r){var e=(void 0)();n=null!==e?e:o}else n=o;return this.J(n,void 0,void 0,t,void 0)}}},{"./util":36}],6:[function(t,n,i){n.exports=function(n,i,r,e){var o=t("./util"),u=o.tryCatch,s=o.errorObj,f=n.wt;n.prototype.break=n.prototype.cancel=function(){if(!e.cancellation())return this.yt("cancellation is disabled");for(var t=this,n=t;t.kt();){if(!t.bt(n)){n.At()?n.Tt().cancel():n.St();break}var i=t.Et;if(null==i||!i.kt()){t.At()?t.Tt().cancel():t.St();break}t.At()&&t.Tt().cancel(),t.It(),n=t,t=i}},n.prototype.Rt=function(){this.Nt--},n.prototype.Dt=function(){return void 0===this.Nt||this.Nt<=0},n.prototype.bt=function(t){return t===this?(this.Nt=0,this.Ct(),!0):(this.Rt(),!!this.Dt()&&(this.Ct(),!0))},n.prototype.St=function(){this.Dt()&&this.Pt()},n.prototype.Pt=function(){this.kt()&&(this.Ot(),f.invoke(this.Bt,this,void 0))},n.prototype.Bt=function(){this.Lt()>0&&this.Y()},n.prototype.Mt=function(){this.xt=void 0},n.prototype.kt=function(){return this.isPending()&&!this.Ut()},n.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},n.prototype.Ft=function(t,n){if(o.isArray(t))for(var i=0;i<t.length;++i)this.Ft(t[i],n);else if(void 0!==t)if("function"==typeof t){if(!n){var r=u(t).call(this.at());r===s&&(this.Ht(r.e),f.throwLater(r.e))}}else t._resultCancelled(this)},n.prototype.Ct=function(){var t=this.Vt();this.Mt(),f.invoke(this.Ft,this,t)},n.prototype.Xt=function(){this.kt()&&(this.Ft(this.Vt(),!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,o=i.errorObj;return function(t,u,s){return function(f){var a=s.at();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(u).call(a,f)}else if("function"==typeof v){var l=e(v).call(a,f);if(l===o)return l;if(l)return e(u).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(u).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.zt=new r.CapturedTrace(e())}function e(){var t=i.length-1;if(t>=0)return i[t]}return t.prototype.Wt=function(){},t.prototype.qt=function(){},t.prototype.Gt=function(){return null},t.jt=t.prototype.jt=function(){},r.prototype.qt=function(){void 0!==this.zt&&(this.zt.Wt=null,i.push(this.zt))},r.prototype.Gt=function(){if(void 0!==this.zt){var t=i.pop(),n=t.Wt;return t.Wt=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,o=t.prototype.Gt,u=t.jt,s=t.prototype.jt,f=t.prototype.Wt;r.deactivateLongStackTraces=function(){t.prototype.qt=i,t.prototype.Gt=o,t.jt=u,t.prototype.jt=s,t.prototype.Wt=f,n=!1},n=!0,t.prototype.qt=r.prototype.qt,t.prototype.Gt=r.prototype.Gt,t.jt=t.prototype.jt=e,t.prototype.Wt=function(){var t=this.jt();t&&null==t.Wt&&(t.Wt=this)}},r}},{}],9:[function(t,n,i){n.exports=function(n,i){var e,u,s,f=n.Yt,v=n.wt,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,R=!1,I=!(0==w.env("BLUEBIRD_DEBUG")),S=!(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")&&(S||!!w.env("BLUEBIRD_W_FORGOTTEN_RETURN"));n.prototype.suppressUnhandledRejections=function(){var t=this.ct();t.nt=-1048577&t.nt|524288},n.prototype.Qt=function(){if(0==(524288&this.nt)){this.Kt();var t=this;o(function(){t.Zt()},1)}},n.prototype.Jt=function(){$("rejectionHandled",e,void 0,this)},n.prototype.$t=function(){this.nt=268435456|this.nt},n.prototype.in=function(){return 0!=(268435456&this.nt)},n.prototype.Zt=function(){if(this.un()){var t=this.hn();this.cn(),$("unhandledRejection",u,t,this)}},n.prototype.cn=function(){this.nt=262144|this.nt},n.prototype.fn=function(){this.nt=-262145&this.nt},n.prototype.vn=function(){return(262144&this.nt)>0},n.prototype.Kt=function(){this.nt=1048576|this.nt},n.prototype.dn=function(){this.nt=-1048577&this.nt,this.vn()&&(this.fn(),this.Jt())},n.prototype.un=function(){return(1048576&this.nt)>0},n.prototype.yt=function(t,n,i){return z(t,n,i||this)},n.onPossiblyUnhandledRejection=function(t){var n=f();u="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._n,r=n.prototype.Ht,e=n.prototype.wn;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._n=t,n.prototype.Ht=r,n.prototype.wn=e,i.deactivateLongStackTraces(),v.enableTrampoline(),et.longStackTraces=!1},n.prototype._n=X,n.prototype.Ht=H,n.prototype.wn=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.yn(t)})}catch(t){return t}}function P(t){if(!this.kt())return this;var n=this.Vt();void 0!==n?w.isArray(n)?n.push(t):this.vt([n,t]):this.vt(t)}function j(){return this.xt}function U(t){this.xt=t}function M(){this.Et=void 0,this.xt=void 0}function L(t,n){if(0!=(1&n)){this.Et=t;var i=t.Nt;void 0===i&&(i=0),t.Nt=i+1}0!=(2&n)&&t._t()&&this.ft(t.dt)}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.pn=M,n.prototype.ot=L,n.prototype.Vt=j,n.prototype.vt=U,n.prototype.yn=P,n.prototype.An=F,q=L,et.cancellation=!0}return"monitoring"in t&&(t.monitoring&&!et.monitoring?(et.monitoring=!0,n.prototype.Tn=x):!t.monitoring&&et.monitoring&&(et.monitoring=!1,n.prototype.Tn=B)),n},n.prototype.Tn=B,n.prototype.An=function(t,n,i){try{t(n,i)}catch(t){return t}},n.prototype.Vt=function(){},n.prototype.vt=function(t){},n.prototype.yn=function(t){},n.prototype._n=function(){},n.prototype.Ht=function(){},n.prototype.wn=function(){},n.prototype.pn=function(){},n.prototype.ot=function(t,n){};var q=function(t,n){0!=(2&n)&&t._t()&&this.ft(t.dt)};function W(){var t=this.dt;return void 0!==t&&t instanceof n?t.isFulfilled()?t.value():void 0:t}function X(){this.zt=new it(this.jt())}function H(t,n){if(p(t)){var i=this.zt;if(void 0!==i&&n&&(i=i.Sn),void 0!==i)i.attachExtraTrace(t);else if(!t.En){var r=Y(t);w.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n")),w.notEnumerableProp(t,"En",!0)}}}function V(){this.zt=void 0}function z(t,i,r){if(et.warnings){var e,o=new d(t);if(i)r.Ht(o);else if(et.longStackTraces&&(e=n.jt()))e.attachExtraTrace(o);else{var u=Y(o);o.stack=u.message+"\n"+u.stack.join("\n")}x("warning",o)||K(o,"",!0)}}function G(t){for(var n=[],i=0;i<t.length;++i){var r=t[i],e=" (No stack trace)"===r||_.test(r),o=e&&Q(r);e&&!o&&(R&&" "!==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:G(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.Sn=t,this.In=0;var n=this.Lt=1+(void 0===t?0:t.Lt);rt(this,it),n>32&&this.uncycle()}w.inherits(it,c),i.CapturedTrace=it,it.prototype.uncycle=function(){var t=this.Lt;if(!(t<2)){for(var n=[],i={},r=0,e=this;void 0!==e;++r)n.push(e),e=e.Sn;for(var r=(t=this.Lt=r)-1;r>=0;--r){var o=n[r].stack;void 0===i[o]&&(i[o]=r)}for(var r=0;r<t;++r){var u=n[r].stack,s=i[u];if(void 0!==s&&s!==r){s>0&&(n[s-1].Sn=void 0,n[s-1].Lt=1),n[r].Sn=void 0,n[r].Lt=1;var f=r>0?n[r-1]:this;s<t-1?(f.Sn=n[s+1],f.Sn.uncycle(),f.Lt=f.Sn.Lt+1):(f.Sn=void 0,f.Lt=1);for(var c=f.Lt+1,a=r-2;a>=0;--a)n[a].Lt=c,c++;return}}}},it.prototype.attachExtraTrace=function(t){if(!t.En){this.uncycle();for(var n=Y(t),i=n.message,r=[n.stack],e=this;void 0!==e;)r.push(G(e.stack.split("\n"))),e=e.Sn;!function(t){for(var n=t[0],i=1;i<t.length;++i){for(var r=t[i],e=n.length-1,o=n[e],u=-1,s=r.length-1;s>=0;--s)if(r[s]===o){u=s;break}for(var s=u;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,"En",!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,R=!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:S,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.in())return;if(0==(65535&r.nt))return;i&&(i+=" ");var o="",u="";if(n.zt){for(var s=n.zt.stack.split("\n"),f=G(s),c=f.length-1;c>=0;--c){var a=f[c];if(!g.test(a)){var h=a.match(m);h&&(o="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&&(u="\n"+s[c-1]);break}}var l="a promise was created in a "+i+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+u;r.yt(l,!0,n)}},setBounds:function(t,n){if(Z()){for(var i,r,e=(t.stack||"").split("\n"),o=(n.stack||"").split("\n"),u=-1,s=-1,f=0;f<e.length;++f){var c=nt(e[f]);if(c){i=c.fileName,u=c.line;break}}for(var f=0;f<o.length;++f){var c=nt(o[f]);if(c){r=c.fileName,s=c.line;break}}u<0||s<0||!i||!r||i!==r||u>=s||(Q=function(t){if(b.test(t))return!0;var n=nt(t);return!!(n&&n.fileName===i&&u<=n.line&&n.line<=s)})}},warn:z,deprecated:function(t,n){var i=t+" is deprecated and will be removed in a future version.";return n&&(i+=" Use "+n+" instead."),z(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.J(n,void 0,void 0,{value:i},void 0)},t.prototype.throw=t.prototype.thenThrow=function(t){return this.J(i,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(arguments.length<=1)return this.J(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.J(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).J(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).J(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,o=t("./es5"),u=o.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]]);o.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"),o=0;o<e.length;++o)e[o]=t+e[o];r=e.join("\n"),n+=r+"\n"}return g--,n},f(m,c);var _=c.Rn;_||(_=u({CancellationError:d,TimeoutError:w,OperationalError:m,RejectionError:m,AggregateError:y}),o.defineProperty(c,"Rn",{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,o={}.toString,u={}.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]"===o.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 u}},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"),o=n.CancellationError,u=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.Z(n):t.cancelPromise.Pt(),t.cancelPromise=null,!0)}function v(){return d.call(this,this.promise.ct().hn())}function l(t){if(!h(this,t))return u.e=t,u}function d(t){var e=this.promise,s=this.handler;if(!this.called){this.called=!0;var f=this.isFinallyHandler()?s.call(e.at()):s.call(e.at(),t);if(f===r)return f;if(void 0!==f){e.$t();var a=i(f,e);if(a instanceof n){if(null!=this.cancelPromise){if(a.Ut()){var d=new o("late cancellation observer");return e.Ht(d),u.e=d,u}a.isPending()&&a.yn(new c(this))}return a.J(v,l,void 0,this,void 0)}}}return e.isRejected()?(h(this),u.e=t,u):(h(this),t)}return f.prototype.isFinallyHandler=function(){return 0===this.type},c.prototype._resultCancelled=function(){h(this.finallyHandler)},n.prototype.Nn=function(t,n,i,r){return"function"!=typeof t?this.then():this.J(i,r,void 0,new f(this,n,t),void 0)},n.prototype.lastly=n.prototype.finally=function(t){return this.Nn(t,0,d,d)},n.prototype.tap=function(t){return this.Nn(t,1,d)},n.prototype.tapCatch=function(t){var i=arguments.length;if(1===i)return this.Nn(t,1,void 0,d);var r,o=new Array(i-1),u=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)));o[u++]=f}o.length=u;var c=arguments[r];return this.Nn(s(o,c,this),1,void 0,d)},f}},{"./catch_filter":7,"./util":36}],16:[function(t,n,i){n.exports=function(n,i,r,e,o,u){var s=t("./errors"),f=s.TypeError,a=t("./util"),v=a.errorObj,l=a.tryCatch,d=[];function w(t,i,e,o){if(u.cancellation()){var s=new n(r),f=this.Dn=new n(r);this.Cn=s.lastly(function(){return f}),s._n(),s.vt(this)}else{var c=this.Cn=new n(r);c._n()}this.Pn=o,this.On=t,this.Bn=i,this.Ln=void 0,this.Mn="function"==typeof e?[e].concat(d):d,this.xn=null,this.Un=!1}a.inherits(w,o),w.prototype.Fn=function(){return null===this.Cn},w.prototype.Hn=function(){this.Cn=this.Ln=null,u.cancellation()&&null!==this.Dn&&(this.Dn.Vn(),this.Dn=null)},w.prototype.Xn=function(){if(!this.Fn()){var t,i=void 0!==this.Ln.return;if(i)this.Cn.qt(),t=l(this.Ln.return).call(this.Ln,void 0),this.Cn.Gt();else{var r=new n.CancellationError("generator .return() sentinel");n.coroutine.returnSentinel=r,this.Cn.Ht(r),this.Cn.qt(),t=l(this.Ln.throw).call(this.Ln,r),this.Cn.Gt()}this.Un=!0,this.xn=null,this.zn(t)}},w.prototype.Wn=function(t){this.xn=null,this.Cn.qt();var n=l(this.Ln.next).call(this.Ln,t);this.Cn.Gt(),this.zn(n)},w.prototype.qn=function(t){this.xn=null,this.Cn.Ht(t),this.Cn.qt();var n=l(this.Ln.throw).call(this.Ln,t);this.Cn.Gt(),this.zn(n)},w.prototype._resultCancelled=function(){if(this.xn instanceof n){var t=this.xn;this.xn=null,t.cancel()}},w.prototype.promise=function(){return this.Cn},w.prototype.Gn=function(){this.Ln=this.On.call(this.Bn),this.Bn=this.On=void 0,this.Wn(void 0)},w.prototype.zn=function(t){var i=this.Cn;if(t===v)return this.Hn(),this.Un?i.cancel():i.jn(t.e,!1);var r=t.value;if(!0===t.done)return this.Hn(),this.Un?i.cancel():i.ut(r);var o=e(r,this.Cn);if(o instanceof n||null!==(o=function(t,i,r){for(var o=0;o<i.length;++o){r.qt();var u=l(i[o])(t);if(r.Gt(),u===v){r.qt();var s=n.reject(v.e);return r.Gt(),s}var f=e(u,r);if(f instanceof n)return f}return null}(o,this.Mn,this.Cn))){var u=(o=o.ct()).nt;0==(50397184&u)?(this.xn=o,o.Yn(this,null)):0!=(33554432&u)?n.wt.invoke(this.Wn,this,o.Qn()):0!=(16777216&u)?n.wt.invoke(this.qn,this,o.Kn()):this.Xn()}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.Pn.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),o=new r(void 0,void 0,i,e),u=o.promise();return o.Ln=n,o.Wn(void 0),u}},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(u.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.Gn(n.spawn),e}}},{"./errors":12,"./util":36}],17:[function(t,n,i){n.exports=function(n,i,r,e,o,u){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,o,u){var s=n.Yt,f=t("./util"),c=f.tryCatch,h=f.errorObj,v=n.wt;function l(t,n,i,r){this.constructor$(t),this.Cn._n();var e=s();this.Zn=null===e?n:f.domainBind(e,n),this.Jn=r===o?new Array(this.length()):null,this.$n=i,this.ni=0,this.ri=[],v.invoke(this.ei,this,void 0)}function d(t,i,e,o){if("function"!=typeof i)return r("expecting a function but got "+f.classString(i));var u=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)));u=e.concurrency}return u="number"==typeof u&&isFinite(u)&&u>=1?u:0,new l(t,i,u,o).promise()}f.inherits(l,i),l.prototype.ei=function(){this._init$(void 0,-2)},l.prototype._init=function(){},l.prototype.Wn=function(t,i){var r=this.oi,o=this.length(),s=this.Jn,f=this.$n;if(i<0){if(r[i=-1*i-1]=t,f>=1&&(this.ni--,this.ai(),this.Fn()))return!0}else{if(f>=1&&this.ni>=f)return r[i]=t,this.ri.push(i),!1;null!==s&&(s[i]=t);var a=this.Cn,v=this.Zn,l=a.at();a.qt();var d=c(v).call(l,t,i,o),w=a.Gt();if(u.checkForgottenReturns(d,w,null!==s?"Promise.filter":"Promise.map",a),d===h)return this.Z(d.e),!0;var y=e(d,this.Cn);if(y instanceof n){var p=(y=y.ct()).nt;if(0==(50397184&p))return f>=1&&this.ni++,r[i]=y,y.Yn(this,-1*(i+1)),!1;if(0==(33554432&p))return 0!=(16777216&p)?(this.Z(y.Kn()),!0):(this.Pt(),!0);d=y.Qn()}r[i]=d}var b=++this.ci;return b>=o&&(null!==s?this.di(r,s):this._i(r),!0)},l.prototype.ai=function(){for(var t=this.ri,n=this.$n,i=this.oi;t.length>0&&this.ni<n;){if(this.Fn())return;var r=t.pop();this.Wn(i[r],r)}},l.prototype.di=function(t,n){for(var i=n.length,r=new Array(i),e=0,o=0;o<i;++o)t[o]&&(r[e++]=n[o]);r.length=e,this._i(r)},l.prototype.preservedValues=function(){return this.Jn},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,o){var u=t("./util"),s=u.tryCatch;n.method=function(t){if("function"!=typeof t)throw new n.TypeError("expecting a function but got "+u.classString(t));return function(){var r=new n(i);r._n(),r.qt();var e=s(t).apply(this,arguments),u=r.Gt();return o.checkForgottenReturns(e,u,"Promise.method",r),r.wi(e),r}},n.attempt=n.try=function(t){if("function"!=typeof t)return e("expecting a function but got "+u.classString(t));var r,f=new n(i);if(f._n(),f.qt(),arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var c=arguments[1],a=arguments[2];r=u.isArray(c)?s(t).apply(a,c):s(t).call(a,c)}else r=s(t)();var h=f.Gt();return o.checkForgottenReturns(r,h,"Promise.try",f),f.wi(r),f},n.prototype.wi=function(t){t===u.errorObj?this.jn(t.e,!1):this.ut(t,!0)}}},{"./util":36}],20:[function(t,n,i){var r=t("./util"),e=r.maybeWrapAsError,o=t("./errors"),u=o.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 u(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 o=i[e];f.test(o)||(n[o]=t[o])}return n}return r.markAsOriginatingFromRejection(t),t}n.exports=function(t,n){return function(i,r){if(null!==t){if(i){var o=a(e(i));t.Ht(o),t.Z(o)}else if(n){var u=[].slice.call(arguments,1);t.Vn(u)}else t.Vn(r);t=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(t,n,i){n.exports=function(n){var i=t("./util"),r=n.wt,e=i.tryCatch,o=i.errorObj;function u(t,n){if(!i.isArray(t))return s.call(this,t,n);var u=e(n).apply(this.at(),[null].concat(t));u===o&&r.throwLater(u.e)}function s(t,n){var i=this.at(),u=void 0===t?e(n).call(i,null):e(n).call(i,null,t);u===o&&r.throwLater(u.e)}function f(t,n){if(!t){var i=new c(t+"");i.cause=t,t=i}var u=e(n).call(this.at(),t);u===o&&r.throwLater(u.e)}n.prototype.asCallback=n.prototype.nodeify=function(t,n){if("function"==typeof t){var i=s;void 0!==n&&h(n).spread&&(i=u),this.J(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.ct())},e=function(t){return O.reject(new d(t))};function o(){}var u,s={},f=t("./util");u=f.isNode?function(){var t=process.domain;return void 0===t&&(t=null),t}:function(){return null},f.notEnumerableProp(O,"Yt",u);var c=t("./es5"),a=t("./async"),v=new a;c.defineProperty(O,"wt",{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,o),_=t("./context")(O),E=_.create,R=t("./debuggability")(O,_),I=(R.CapturedTrace,t("./finally")(O,g,b)),S=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.nt=0,this.gi=void 0,this.Ai=void 0,this.Ti=void 0,this.Si=void 0,this.Ei(t),this.Wt(),this.Tn("promiseCreated",this)}function N(t){this.promise.ut(t)}function D(t){this.promise.jn(t,!1)}function C(t){var n=new O(y);n.gi=t,n.Ai=t,n.Ti=t,n.Si=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),o=0;for(i=0;i<n-1;++i){var u=arguments[i];if(!f.isObject(u))return e("Catch statement predicate: expecting an object but got "+f.classString(u));r[o++]=u}if(r.length=o,"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,S(r,t,this))}return this.then(void 0,t)},O.prototype.reflect=function(){return this.J(r,r,void 0,this,void 0)},O.prototype.then=function(t,n){if(R.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.yt(i)}return this.J(t,n,void 0,void 0,void 0)},O.prototype.done=function(t,n){var i=this.J(t,n,void 0,void 0,void 0);i.Ii()},O.prototype.spread=function(t){return"function"!=typeof t?e("expecting a function but got "+f.classString(t)):this.all().J(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.yt(".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._n();var i=arguments.length>1&&!!h(arguments[1]).multiArgs,r=A(t)(T(n,i));return r===k&&n.jn(r.e,!0),n.Ri()||n.Ni(),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))._n(),n.Di(),n.Ai=t),n},O.resolve=O.fulfilled=O.cast,O.reject=O.rejected=function(t){var n=new O(y);return n._n(),n.jn(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.J=function(t,n,i,r,e){var o=void 0!==e,s=o?e:new O(y),c=this.ct(),a=c.nt;o||(s.ot(this,3),s._n(),void 0===r&&0!=(2097152&this.nt)&&(r=0!=(50397184&a)?this.at():c===this?void 0:this.dt),this.Tn("promiseChained",this,s));var h=u();if(0!=(50397184&a)){var l,d,p=c.Ci;0!=(33554432&a)?(d=c.Ai,l=t):0!=(16777216&a)?(d=c.gi,l=n,c.dn()):(p=c.Pi,d=new w("late cancellation observer"),c.Ht(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.Oi(t,n,s,r,h);return s},O.prototype.Lt=function(){return 65535&this.nt},O.prototype.Ri=function(){return 0!=(117506048&this.nt)},O.prototype.At=function(){return 67108864==(67108864&this.nt)},O.prototype.Bi=function(t){this.nt=-65536&this.nt|65535&t},O.prototype.Di=function(){this.nt=33554432|this.nt,this.Tn("promiseFulfilled",this)},O.prototype.Li=function(){this.nt=16777216|this.nt,this.Tn("promiseRejected",this)},O.prototype.Mi=function(){this.nt=67108864|this.nt,this.Tn("promiseResolved",this)},O.prototype.Ii=function(){this.nt=4194304|this.nt},O.prototype.xi=function(){return(4194304&this.nt)>0},O.prototype.Ui=function(){this.nt=-65537&this.nt},O.prototype.Ot=function(){this.nt=65536|this.nt,this.Tn("promiseCancelled",this)},O.prototype.It=function(){this.nt=8388608|this.nt},O.prototype.Ni=function(){v.hasCustomScheduler()||(this.nt=134217728|this.nt)},O.prototype.Fi=function(t){var n=0===t?this.Si:this[4*t-4+3];if(n!==s)return void 0===n&&this._t()?this.at():n},O.prototype.Hi=function(t){return this[4*t-4+2]},O.prototype.Vi=function(t){return this[4*t-4+0]},O.prototype.Xi=function(t){return this[4*t-4+1]},O.prototype.at=function(){},O.prototype.zi=function(t){t.nt;var n=t.gi,i=t.Ai,r=t.Ti,e=t.Fi(0);void 0===e&&(e=s),this.Oi(n,i,r,e,null)},O.prototype.Wi=function(t,n){var i=t.Vi(n),r=t.Xi(n),e=t.Hi(n),o=t.Fi(n);void 0===o&&(o=s),this.Oi(i,r,e,o,null)},O.prototype.Oi=function(t,n,i,r,e){var o=this.Lt();if(o>=65531&&(o=0,this.Bi(0)),0===o)this.Ti=i,this.Si=r,"function"==typeof t&&(this.gi=null===e?t:f.domainBind(e,t)),"function"==typeof n&&(this.Ai=null===e?n:f.domainBind(e,n));else{var u=4*o-4;this[u+2]=i,this[u+3]=r,"function"==typeof t&&(this[u+0]=null===e?t:f.domainBind(e,t)),"function"==typeof n&&(this[u+1]=null===e?n:f.domainBind(e,n))}return this.Bi(o+1),o},O.prototype.Yn=function(t,n){this.Oi(void 0,void 0,n,t,null)},O.prototype.ut=function(t,n){if(0==(117506048&this.nt)){if(t===this)return this.jn(i(),!1);var r=g(t,this);if(!(r instanceof O))return this.Vn(t);n&&this.ot(r,2);var e=r.ct();if(e!==this){var o=e.nt;if(0==(50397184&o)){var u=this.Lt();u>0&&e.zi(this);for(var s=1;s<u;++s)e.Wi(this,s);this.Mi(),this.Bi(0),this.qi(e)}else if(0!=(33554432&o))this.Vn(e.Qn());else if(0!=(16777216&o))this.Z(e.Kn());else{var f=new w("late cancellation observer");e.Ht(f),this.Z(f)}}else this.Z(i())}},O.prototype.jn=function(t,n,i){var r=f.ensureErrorObject(t),e=r===t;if(!e&&!i&&R.warnings()){var o="a promise was rejected with a non-error: "+f.classString(t);this.yt(o,!0)}this.Ht(r,!!n&&e),this.Z(t)},O.prototype.Ei=function(t){if(t!==y){var n=this;this._n(),this.qt();var i=!0,r=this.An(t,function(t){n.ut(t)},function(t){n.jn(t,i)});i=!1,this.Gt(),void 0!==r&&n.jn(r,!0)}},O.prototype.Gi=function(t,n,i,r){var e=r.nt;if(0==(65536&e)){var o;r.qt(),n===p?i&&"number"==typeof i.length?o=A(t).apply(this.at(),i):(o=k).e=new d("cannot .spread() a non-array: "+f.classString(i)):o=A(t).call(n,i);var u=r.Gt();0==(65536&(e=r.nt))&&(o===b?r.Z(i):o===k?r.jn(o.e,!1):(R.checkForgottenReturns(o,u,"",r,this),r.ut(o)))}},O.prototype.ct=function(){for(var t=this;t.At();)t=t.Tt();return t},O.prototype.Tt=function(){return this.Ai},O.prototype.qi=function(t){this.Ai=t},O.prototype.ji=function(t,n,i,e){var u=t instanceof O,s=this.nt,f=0!=(134217728&s);0!=(65536&s)?(u&&t.Xt(),i instanceof I&&i.isFinallyHandler()?(i.cancelPromise=t,A(n).call(i,e)===k&&t.Z(k.e)):n===r?t.Vn(r.call(i)):i instanceof o?i.Xn(t):u||t instanceof m?t.Pt():i.cancel()):"function"==typeof n?u?(f&&t.Ni(),this.Gi(n,i,e,t)):n.call(i,e,t):i instanceof o?i.Fn()||(0!=(33554432&s)?i.Wn(e,t):i.qn(e,t)):u&&(f&&t.Ni(),0!=(33554432&s)?t.Vn(e):t.Z(e))},O.prototype.Pi=function(t){var n=t.handler,i=t.promise,r=t.receiver,e=t.value;"function"==typeof n?i instanceof O?this.Gi(n,r,e,i):n.call(r,e,i):i instanceof O&&i.Z(e)},O.prototype.Ci=function(t){this.ji(t.promise,t.handler,t.receiver,t.value)},O.prototype.Yi=function(t,n,i){var r=this.Ti,e=this.Fi(0);this.Ti=void 0,this.Si=void 0,this.ji(r,t,e,n)},O.prototype.Qi=function(t){var n=4*t-4;this[n+2]=this[n+3]=this[n+0]=this[n+1]=void 0},O.prototype.Vn=function(t){var n=this.nt;if(!((117506048&n)>>>16)){if(t===this){var r=i();return this.Ht(r),this.Z(r)}this.Di(),this.Ai=t,(65535&n)>0&&(0!=(134217728&n)?this.Y():v.settlePromises(this),this.wn())}},O.prototype.Z=function(t){var n=this.nt;if(!((117506048&n)>>>16)){if(this.Li(),this.gi=t,this.xi())return v.fatalError(t,f.isNode);(65535&n)>0?v.settlePromises(this):this.Qt()}},O.prototype.Ki=function(t,n){for(var i=1;i<t;i++){var r=this.Vi(i),e=this.Hi(i),o=this.Fi(i);this.Qi(i),this.ji(e,r,o,n)}},O.prototype.Zi=function(t,n){for(var i=1;i<t;i++){var r=this.Xi(i),e=this.Hi(i),o=this.Fi(i);this.Qi(i),this.ji(e,r,o,n)}},O.prototype.Y=function(){var t=this.nt,n=65535&t;if(n>0){if(0!=(16842752&t)){var i=this.gi;this.Yi(this.Ai,i,t),this.Zi(n,i)}else{var r=this.Ai;this.Yi(this.gi,r,t),this.Ki(n,r)}this.Bi(0)}this.pn()},O.prototype.hn=function(){var t=this.nt;return 0!=(33554432&t)?this.Ai:0!=(16777216&t)?this.gi:void 0},"undefined"!=typeof Symbol&&Symbol.toStringTag&&c.defineProperty(O.prototype,Symbol.toStringTag,{get:function(){return"Object"}}),O.defer=O.pending=function(){R.deprecated("Promise.defer","new Promise");var t=new O(y);return{promise:t,resolve:N,reject:D}},f.notEnumerableProp(O,"Ji",i),t("./method")(O,y,g,e,R),t("./bind")(O,y,g,R),t("./cancel")(O,m,e,R),t("./direct_resolve")(O),t("./synchronous_inspection")(O),t("./join")(O,m,g,y,v,u),O.Promise=O,O.version="3.5.5",t("./call_get.js")(O),t("./generators.js")(O,e,y,g,o,R),t("./map.js")(O,m,e,g,y,R),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,R),t("./settle.js")(O,m,R),t("./some.js")(O,m,e),t("./timers.js")(O,y,R),t("./using.js")(O,e,g,E,y,R),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)),R.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,o){var u=t("./util");function s(t){var r=this.Cn=new n(i);t instanceof n&&r.ot(t,3),r.vt(this),this.oi=t,this.Lt=0,this.ci=0,this._init(void 0,-2)}return u.isArray,u.inherits(s,o),s.prototype.length=function(){return this.Lt},s.prototype.promise=function(){return this.Cn},s.prototype._init=function t(i,o){var s=r(this.oi,this.Cn);if(s instanceof n){var f=(s=s.ct()).nt;if(this.oi=s,0==(50397184&f))return this.Cn.Ni(),s.J(t,this.Z,void 0,this,o);if(0==(33554432&f))return 0!=(16777216&f)?this.Z(s.Kn()):this.Pt();s=s.Qn()}if(null!==(s=u.asArray(s)))0!==s.length?this.$i(s):-5===o?this.ir():this._i(function(t){switch(t){case-2:return[];case-3:return{};case-6:return new Map}}(o));else{var c=e("expecting an array or an iterable object but got "+u.classString(s)).reason();this.Cn.jn(c,!1)}},s.prototype.$i=function(t){var i=this.getActualLength(t.length);this.Lt=i,this.oi=this.shouldCopyValues()?new Array(i):this.oi;for(var e=this.Cn,o=!1,u=null,s=0;s<i;++s){var f=r(t[s],e);f instanceof n?(f=f.ct(),u=f.nt):u=null,o?null!==u&&f.suppressUnhandledRejections():null!==u?0==(50397184&u)?(f.Yn(this,s),this.oi[s]=f):o=0!=(33554432&u)?this.Wn(f.Qn(),s):0!=(16777216&u)?this.qn(f.Kn(),s):this.Xn(s):o=this.Wn(f,s)}o||e.Ni()},s.prototype.Fn=function(){return null===this.oi},s.prototype._i=function(t){this.oi=null,this.Cn.Vn(t)},s.prototype.Pt=function(){!this.Fn()&&this.Cn.kt()&&(this.oi=null,this.Cn.Pt())},s.prototype.Z=function(t){this.oi=null,this.Cn.jn(t,!1)},s.prototype.Wn=function(t,n){this.oi[n]=t;var i=++this.ci;return i>=this.Lt&&(this._i(this.oi),!0)},s.prototype.Xn=function(){return this.Pt(),!0},s.prototype.qn=function(t){return this.ci++,this.Z(t),!0},s.prototype._resultCancelled=function(){if(!this.Fn()){var t=this.oi;if(this.Pt(),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"),o=t("./nodeback"),u=e.withAppended,s=e.maybeWrapAsError,f=e.canEvaluate,c=t("./errors").TypeError,a={rr:!0},v=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","rr"].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.rr}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 o=e.inheritedDataKeys(t),u=[],s=0;s<o.length;++s){var f=o[s],a=t[f],h=r===l||l(f);"function"!=typeof a||w(a)||y(t,f,n)||!r(f,a,t,h)||u.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 o=e.replace(i,""),u=0;u<t.length;u+=2)if(t[u]===o)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))}}(u,n,i),u}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._n();var a="string"==typeof d&&this!==l?this[d]:t,h=o(c,v);try{a.apply(e,u(arguments,h))}catch(t){c.jn(s(t),!0,!0)}return c.Ri()||c.Ni(),c}return"string"==typeof d&&(t=a),e.notEnumerableProp(w,"rr",!0),w};function m(t,n,i,o,u){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(o===g)t[l]=g(h,r,h,v,n,u);else{var d=o(v,function(){return g(h,r,h,v,n,u)});e.notEnumerableProp(d,"rr",!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,o=!!n.multiArgs,u=function(t,n,i){return g(t,n,void 0,t,null,i)}(t,i,o);return e.copyDescriptors(t,u,d),u},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 o=n.filter;"function"!=typeof o&&(o=l);var u=n.promisifier;if("function"!=typeof u&&(u=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,o,u,i),m(a,r,o,u,i))}return m(t,r,o,u,i)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(t,n,i){n.exports=function(n,i,r,e){var o,u=t("./util"),s=u.isObject,f=t("./es5");"function"==typeof Map&&(o=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!==o&&t instanceof o)n=c(t),i=!0;else{var r=f.keys(t),e=r.length;n=new Array(2*e);for(var u=0;u<e;++u){var s=r[u];n[u]=t[s],n[u+e]=s}}this.constructor$(n),this.dr=i,this._init$(void 0,i?-6:-3)}function h(t){var i,o=r(t);return s(o)?(i=o instanceof n?o.J(n.props,void 0,void 0,void 0,void 0):new a(o).promise(),o instanceof n&&i.ot(o,2),i):e("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}u.inherits(a,i),a.prototype._init=function(){},a.prototype.Wn=function(t,n){this.oi[n]=t;var i=++this.ci;if(i>=this.Lt){var r;if(this.dr)r=function(t){for(var n=new o,i=t.length/2|0,r=0;r<i;++r){var e=t[i+r],u=t[r];n.set(e,u)}return n}(this.oi);else{r={};for(var e=this.length(),u=0,s=this.length();u<s;++u)r[this.oi[u+e]]=this.oi[u]}return this._i(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._r=t,this.Lt=0,this.wr=0}r.prototype.gr=function(t){return this._r<t},r.prototype.j=function(t){var n=this.length();this.yr(n+1);var i=this.wr+n&this._r-1;this[i]=t,this.Lt=n+1},r.prototype.push=function(t,n,i){var r=this.length()+3;if(this.gr(r))return this.j(t),this.j(n),void this.j(i);var e=this.wr+r-3;this.yr(r);var o=this._r-1;this[e+0&o]=t,this[e+1&o]=n,this[e+2&o]=i,this.Lt=r},r.prototype.shift=function(){var t=this.wr,n=this[t];return this[t]=void 0,this.wr=t+1&this._r-1,this.Lt--,n},r.prototype.length=function(){return this.Lt},r.prototype.yr=function(t){this._r<t&&this.pr(this._r<<1)},r.prototype.pr=function(t){var n=this._r;this._r=t;var i=this.wr,r=this.Lt,e=i+r&n-1;!function(t,n,i,r,e){for(var o=0;o<e;++o)i[o+r]=t[o+n],t[o+n]=void 0}(this,0,this,n,e)},n.exports=r},{}],27:[function(t,n,i){n.exports=function(n,i,r,e){var o=t("./util"),u=function(t){return t.then(function(n){return s(n,t)})};function s(t,s){var f=r(t);if(f instanceof n)return u(f);if(null===(t=o.asArray(t)))return e("expecting an array or an iterable object but got "+o.classString(t));var c=new n(i);void 0!==s&&c.ot(s,3);for(var a=c.Vn,h=c.Z,v=0,l=t.length;v<l;++v){var d=t[v];(void 0!==d||v in t)&&n.cast(d).J(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,o,u){var s=n.Yt,f=t("./util"),c=f.tryCatch;function a(t,i,r,e){this.constructor$(t);var u=s();this._fn=null===u?i:f.domainBind(u,i),void 0!==r&&(r=n.resolve(r)).yn(this),this.Tr=r,this.Sr=null,this.Er=e===o?Array(this.Lt):0===e?null:void 0,this.Cn._n(),this._init$(void 0,-5)}function h(t,n){this.isFulfilled()?n._i(t):n.Z(t)}function v(t,n,i,e){if("function"!=typeof n)return r("expecting a function but got "+f.classString(n));var o=new a(t,n,i,e);return o.promise()}function l(t){this.accum=t,this.array.Ir(t);var i=e(this.value,this.array.Cn);return i instanceof n?(this.array.Sr=i,i.J(d,void 0,void 0,this,void 0)):d.call(this,i)}function d(t){var i,r=this.array,e=r.Cn,o=c(r._fn);e.qt(),(i=void 0!==r.Er?o.call(e.at(),t,this.index,this.length):o.call(e.at(),this.accum,t,this.index,this.length))instanceof n&&(r.Sr=i);var s=e.Gt();return u.checkForgottenReturns(i,s,void 0!==r.Er?"Promise.each":"Promise.reduce",e),i}f.inherits(a,i),a.prototype.Ir=function(t){void 0!==this.Er&&null!==this.Er&&t!==o&&this.Er.push(t)},a.prototype.Rr=function(t){return null!==this.Er&&this.Er.push(t),this.Er},a.prototype._init=function(){},a.prototype.ir=function(){this._i(void 0!==this.Er?this.Er:this.Tr)},a.prototype.shouldCopyValues=function(){return!1},a.prototype._i=function(t){this.Cn.ut(t),this.oi=null},a.prototype._resultCancelled=function(t){if(t===this.Tr)return this.Pt();this.Fn()||(this._resultCancelled$(),this.Sr instanceof n&&this.Sr.cancel(),this.Tr instanceof n&&this.Tr.cancel())},a.prototype.$i=function(t){var i,r;this.oi=t;var e=t.length;if(void 0!==this.Tr?(i=this.Tr,r=0):(i=n.resolve(t[0]),r=1),this.Sr=i,!i.isRejected())for(;r<e;++r){var o={accum:null,value:t[r],index:r,length:e,array:this};i=i.J(l,void 0,void 0,o,void 0)}void 0!==this.Er&&(i=i.J(this.Rr,void 0,void 0,this,void 0)),i.J(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 u,s,f,a,h,v=t("./util"),l=v.getNativePromise();if(v.isNode&&"undefined"==typeof MutationObserver){var d=b.setImmediate,w=process.nextTick;u=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();u=function(t){y.then(t)}}else u="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!==o?function(t){o(t,0)}:function(){throw new c("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")};n.exports=u},{"./util":36}],30:[function(t,n,i){n.exports=function(n,i,r){var e=n.PromiseInspection,o=t("./util");function u(t){this.constructor$(t)}o.inherits(u,i),u.prototype.Nr=function(t,n){this.oi[t]=n;var i=++this.ci;return i>=this.Lt&&(this._i(this.oi),!0)},u.prototype.Wn=function(t,n){var i=new e;return i.nt=33554432,i.Dr=t,this.Nr(n,i)},u.prototype.qn=function(t,n){var i=new e;return i.nt=16777216,i.Dr=t,this.Nr(n,i)},n.settle=function(t){return r.deprecated(".settle()",".reflect()"),new u(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"),o=t("./errors").RangeError,u=t("./errors").AggregateError,s=e.isArray,f={};function c(t){this.constructor$(t),this.Cr=0,this.Pr=!1,this.Or=!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.Or)if(0!==this.Cr){this._init$(void 0,-5);var t=s(this.oi);!this.Fn()&&t&&this.Cr>this.Br()&&this.Z(this.Lr(this.length()))}else this._i([])},c.prototype.init=function(){this.Or=!0,this._init()},c.prototype.setUnwrap=function(){this.Pr=!0},c.prototype.howMany=function(){return this.Cr},c.prototype.setHowMany=function(t){this.Cr=t},c.prototype.Wn=function(t){return this.Mr(t),this.xr()===this.howMany()&&(this.oi.length=this.howMany(),1===this.howMany()&&this.Pr?this._i(this.oi[0]):this._i(this.oi),!0)},c.prototype.qn=function(t){return this.Ur(t),this.Fr()},c.prototype.Xn=function(){return this.oi instanceof n||null==this.oi?this.Pt():(this.Ur(f),this.Fr())},c.prototype.Fr=function(){if(this.howMany()>this.Br()){for(var t=new u,n=this.length();n<this.oi.length;++n)this.oi[n]!==f&&t.push(this.oi[n]);return t.length>0?this.Z(t):this.Pt(),!0}return!1},c.prototype.xr=function(){return this.ci},c.prototype.Hr=function(){return this.oi.length-this.length()},c.prototype.Ur=function(t){this.oi.push(t)},c.prototype.Mr=function(t){this.oi[this.ci++]=t},c.prototype.Br=function(){return this.length()-this.Hr()},c.prototype.Lr=function(t){var n="Input array must contain at least "+this.Cr+" items but contains only "+t+" items";return new o(n)},c.prototype.ir=function(){this.Z(this.Lr(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.ct(),this.nt=t.nt,this.Dr=t.Ri()?t.hn():void 0):(this.nt=0,this.Dr=void 0)}n.prototype.hn=function(){return this.Dr};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.hn()},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.hn()},e=n.prototype.isFulfilled=function(){return 0!=(33554432&this.nt)},o=n.prototype.isRejected=function(){return 0!=(16777216&this.nt)},u=n.prototype.isPending=function(){return 0==(50397184&this.nt)},s=n.prototype.isResolved=function(){return 0!=(50331648&this.nt)};n.prototype.isCancelled=function(){return 0!=(8454144&this.nt)},t.prototype.Vr=function(){return 65536==(65536&this.nt)},t.prototype.Ut=function(){return this.ct().Vr()},t.prototype.isCancelled=function(){return 0!=(8454144&this.ct().nt)},t.prototype.isPending=function(){return u.call(this.ct())},t.prototype.isRejected=function(){return o.call(this.ct())},t.prototype.isFulfilled=function(){return e.call(this.ct())},t.prototype.isResolved=function(){return s.call(this.ct())},t.prototype.value=function(){return i.call(this.ct())},t.prototype.reason=function(){var t=this.ct();return t.dn(),r.call(t)},t.prototype.Qn=function(){return this.hn()},t.prototype.Kn=function(){return this.dn(),this.hn()},t.PromiseInspection=n}},{}],33:[function(t,n,i){n.exports=function(n,i){var r=t("./util"),e=r.errorObj,o=r.isObject,u={}.hasOwnProperty;return function(t,s){if(o(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.Gt(),c}if("function"==typeof f){if(function(t){try{return u.call(t,"Ti")}catch(t){return!1}}(t)){var c=new n(i);return t.J(c.Vn,c.Z,void 0,c,null),c}return function(t,o,u){var s=new n(i),f=s;u&&u.qt(),s._n(),u&&u.Gt();var c=!0,a=r.tryCatch(o).call(t,function(t){s&&(s.ut(t),s=null)},function(t){s&&(s.jn(t,c,!0),s=null)});return c=!1,s&&a===e&&(s.jn(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(){u(this.handle)};var a=function(t){return h(+this).thenReturn(t)},h=n.delay=function(t,e){var u,s;return void 0!==e?(u=n.resolve(e).J(a,null,null,t,void 0),r.cancellation()&&e instanceof n&&u.vt(e)):(u=new n(i),s=o(function(){u.Vn()},+t),r.cancellation()&&u.vt(new f(s)),u._n()),u.Ni(),u};function v(t){return u(this.handle),t}function l(t){throw u(this.handle),t}n.prototype.delay=function(t){return h(t,this)},n.prototype.timeout=function(t,n){var i,u,a=new f(o(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.Ht(r),t.Z(r),null!=i&&i.cancel()}(i,n,u)},t=+t));return r.cancellation()?(u=this.then(),(i=u.J(v,l,void 0,a,void 0)).vt(a)):i=this.J(v,l,void 0,a,void 0),i}}},{"./util":36}],35:[function(t,n,i){n.exports=function(n,i,r,e,u,s){var f=t("./util"),c=t("./errors").TypeError,a=t("./util").inherits,h=f.errorObj,v=f.tryCatch,l={};function d(t){o(function(){throw t},0)}function w(t,i){var e=0,o=t.length,s=new n(u);return function u(){if(e>=o)return s.Vn();var f=function(t){var n=r(t);return n!==t&&"function"==typeof t.Xr&&"function"==typeof t.zr&&t.Xr()&&n.Wr(t.zr()),n}(t[e++]);if(f instanceof n&&f.Xr()){try{f=r(f.zr().tryDispose(i),t.promise)}catch(t){return d(t)}if(f instanceof n)return f.J(u,d,null,null,null)}u()}(),s}function y(t,n,i){this.qr=t,this.Cn=n,this.Gr=i}function p(t,n,i){this.constructor$(t,n,i)}function b(t){return y.isDisposer(t)?(this.resources[this.index].Wr(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.Cn},y.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():l},y.prototype.tryDispose=function(t){var n=this.resource(),i=this.Gr;void 0!==i&&i.qt();var r=n!==l?this.doDispose(n,t):null;return void 0!==i&&i.Gt(),this.Cn.jr(),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,o=arguments[t-1];if("function"!=typeof o)return i("expecting a function but got "+f.classString(o));var u=!0;2===t&&Array.isArray(arguments[0])?(e=arguments[0],t=e.length,u=!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()).Wr(d)}else{var p=r(l);p instanceof n&&(l=p.J(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(),o=v(o);var r=u?o.apply(void 0,t):o(t),e=E.Gt();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.vt(c),E},n.prototype.Wr=function(t){this.nt=131072|this.nt,this.Yr=t},n.prototype.Xr=function(){return(131072&this.nt)>0},n.prototype.zr=function(){return this.Yr},n.prototype.jr=function(){this.nt=-131073&this.nt,this.Yr=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,o){var u,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=u;return u=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 o;try{o=i(t)}catch(t){return r}for(var u=0;u<o.length;++u){var f=o[u];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 o in i)if(r.call(i,o))e.push(o);else{for(var u=0;u<t.length;++u)if(r.call(t[u],o))continue t;e.push(o)}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 R="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 S=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};S=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:S,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 u=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:R,originatesFromRejection:function(t){return null!=t&&(t instanceof c.Rn.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 o=r[e];if(i(o))try{s.defineProperty(n,o,s.getDescriptor(t,o))}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 R(t){m=t}var I={}.toString;var S=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.t_="audio",t.n_="video",t.pT="metadata"}(x||(x={}));var M,L,q=("undefined"!=typeof Map&&"entries"in Map.prototype?Map:void 0)||(M=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 M(this.data,function(t,n){return n})},n.values=function(){return new M(this.data,function(t,n){return t[n]})},n.entries=function(){return new M(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.Wl="#EXTINF",t.vbt="#EXT-X-MAP",t.oB="#EXTM3U",t.i="#EXT-X-VERSION",t.o="#EXT-X-TARGETDURATION",t.s9="#EXT-X-START",t.u="#EXT-X-INDEPENDENT-SEGMENTS",t.Hv="#EXT-X-STREAM-INF",t.s="#EXT-X-MEDIA-SEQUENCE",t.h="#EXT-X-ENDLIST",t.hB="#EXT-X-MEDIA",t.v="#EXT-X-DISCONTINUITY",t.p="#EXT-X-DISCONTINUITY-SEQUENCE",t.m="#EXT-X-PLAYLIST-TYPE"}(L||(L={}));var W,X=function(){function t(t,n){this.Uh=L.Wl,this.S=void 0,this.T=void 0,this.S=t,this.T=n}return t.prototype.qR=function(){return this.Uh+":"+this.S+",\n"+this.T},t}(),H=function(){function t(){this.Uh=L.oB}return t.prototype.qR=function(){return this.Uh},t}(),V=function(){function t(t){this.Uh=L.i,this.KT=void 0,this.KT=t}return t.prototype.qR=function(){return this.Uh+":"+this.KT},t}(),z=function(){function t(t){this.Uh=L.o,this.dAt=void 0,this.dAt=t}return t.prototype.qR=function(){return this.Uh+":"+this.dAt},t}(),G=function(){function t(t){this.Uh=L.s9,this.rSt=void 0,this.rSt=t}return t.prototype.qR=function(){return this.Uh+":TIME-OFFSET="+this.rSt},t}(),Y=function(){function t(){this.Uh=L.u}return t.prototype.qR=function(){return this.Uh},t}(),K=function(){function t(t){this.Uh=L.Hv,this.JN=1,this.T=void 0,this.T=t}return t.prototype.qR=function(){return this.Uh+":BANDWIDTH="+this.JN+',AUDIO="audio"\n'+this.T},t}(),$=function(){function t(t){this.Uh=L.s,this.LE=void 0,this.LE=t}return t.prototype.qR=function(){return this.Uh+":"+this.LE},t}(),J=function(){function t(){this.Uh=L.v}return t.prototype.qR=function(){return this.Uh},t}(),Z=function(){function t(t){this.Uh=L.p,this.LE=void 0,this.LE=t}return t.prototype.qR=function(){return this.Uh+":"+this.LE},t}();!function(t){t.wbt="VOD",t.vDt="EVENT"}(W||(W={}));var Q=function(){function t(t){this.Uh=L.hB,this.T=void 0,this.T=t}return t.prototype.qR=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.T+'"');var n=[];return t.forEach(function(t,i){return n.push(i+"="+t)}),this.Uh+":"+n.join(",")},t}(),tt=function(){function t(t){this.NV=[],this.NV=t}return t.prototype.k=function(){for(var t="",n=0,i=this.NV;n<i.length;n++){t+=i[n].qR()+"\n"}return t},P(t,[{key:"VS",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.A(i)}}var n=t.prototype;return n.A=function(t){this.NV.push(t)},n.ea=function(){this.NV.length=0},P(t,[{key:"VS",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,ot=9007199254740991,ut=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.Qy=0]="Qy",t[t.Ky=1]="Ky",t[t.Zy=-1]="Zy"}(et||(et={}));var ft=function(t,n){return function(t,n){if(t===n)return!0;var i=v.abs(t-n);return i<ut||i<v.max(v.abs(t),v.abs(n))*ut}(t,n)?et.Qy:function(t,n){return t===n?et.Qy:t<n?et.Zy:t>n?et.Ky:w(t)?w(n)?et.Qy:et.Ky:et.Zy}(t,n)},ct=function(){function t(){}var n=t.prototype;return n.Jy=function(t){return this.$y()*t},n.nk=function(t){return this.rk(t)>0},n.ek=function(t){return this.rk(t)>=0},n.hk=function(t,n){return this.fk(t).ck(n)},n.vk=function(t){return 0===this.rk(t)},n.dk=function(t){return this.rk(t)<0},n.ck=function(t){return this.rk(t)<=0},n.lk=function(){return this._k()?this.wk():this},n.gk=function(t){return this.yk(t.wk())},n.fk=function(t){return this.gk(t).lk()},t}();function at(t,n){return t.pk()?n.pk()?et.Qy:et.Ky:n.pk()?et.Zy:t.bk()?n.bk()&&t._k()===n._k()?et.Qy:t._k()?et.Zy:et.Ky:n._k()?et.Ky:et.Zy}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.uu)}lt.prototype.uu,h.defineProperty(lt.prototype,"uu",{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<=-St)return Bt;if(t+1>=St)return Ct}return t<0?bt(-t,n).neg():gt(t%Rt|0,t/Rt|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)),o=kt,u=0;u<t.length;u+=8){var s=v.min(8,t.length-u),f=l(t.substring(u,u+s),i);if(s<8){var a=bt(mt(i,s));o=o.mul(a).add(bt(f))}else o=(o=o.mul(e)).add(bt(f))}return o.unsigned=n,o}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 Rt=4294967296,It=Rt*Rt,St=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)*Rt+(this.low>>>0):this.high*Rt+(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),o=this,u="";;){var s=o.div(e),f=(o.sub(s.mul(e)).toInt()>>>0).toString(t);if((o=s).isZero())return f+u;for(;f.length<6;)f="0"+f;u=""+f+u}},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,o=t.high>>>16,u=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+u)>>>16,f+=n+o,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,o=t.high>>>16,u=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*u)>>>16,c+=n*f+i*s+r*u+e*o,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),o=e<=48?1:mt(2,e-48),u=bt(n),s=u.mul(t);s.isNegative()||s.gt(i);)s=(u=bt(n-=o,this.unsigned)).mul(t);u.isZero()&&(u=Ot),r=r.add(u),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.Ak=void 0,this.Tk=void 0,this.Ak=t,this.Tk=n}t.Sk=function(n,i,r){return r?new t(n.toUnsigned(),i.toUnsigned()):new t(n.toSigned(),i.toSigned())},t.Ek=function(n){return n.unsigned?new t(n,Pt.UZERO):new t(n,n.isNegative()?Pt.NEG_ONE:Pt.ZERO)},t.Ik=function(n,i){if(w(n))return i?t.Rk:t.Nk;if(i){if(n<0)return t.Rk;if(n>=3.402823669209385e38)return t.Dk}else{if(n<=-1.7014118346046923e38)return t.Ck;if(n+1>=1.7014118346046923e38)return t.Pk}return n<0?t.Ik(-n,i).wk():t.Sk(Pt.fromNumber(n%0x10000000000000000),Pt.fromNumber(n/0x10000000000000000),i)};var n=t.prototype;return n.Ok=function(){return this.Tk.unsigned},n.Bk=function(){return this.Ak.isZero()&&this.Tk.isZero()},n._k=function(){return this.Tk.isNegative()},n.Lk=function(){return this.Ok()?t.Sk(this.Ak,this.Tk,!1):this},n.Mk=function(){return this.Ok()?this:t.Sk(this.Ak,this.Tk,!0)},n.xk=function(){return this.Ak},n.$y=function(){return this._k()?-this.wk().$y():0x10000000000000000*this.Tk.toNumber()+this.Ak.toUnsigned().toNumber()},n.Uk=function(){return this.Ak.toInt()},n.vk=function(t){return(this.Ok()===t.Ok()||this.Tk.getHighBits()>>>31!=1||t.Tk.getHighBits()>>>31!=1)&&(this.Tk.toUnsigned().eq(t.Tk.toUnsigned())&&this.Ak.toUnsigned().eq(t.Ak.toUnsigned()))},n.rk=function(t){if(this.vk(t))return et.Qy;var n=this._k(),i=t._k();if(n&&!i)return et.Zy;if(!n&&i)return et.Ky;if(!this.Ok())return this.gk(t)._k()?et.Zy:et.Ky;var r=this.Mk(),e=t.Mk(),o=e.Tk.comp(r.Tk);return o>0||0===o&&e.Ak.gt(r.Ak)?et.Zy:et.Ky},n.dk=function(t){return this.rk(t)<0},n.ck=function(t){return this.rk(t)<=0},n.Fk=function(t){return this.rk(t)>0},n.Hk=function(t){return this.rk(t)>=0},n.Vk=function(){return new t(this.Ak.not(),this.Tk.not())},n.Xk=function(n){return new t(this.Ak.and(n.Ak),this.Tk.and(n.Tk))},n.zk=function(n){return new t(this.Ak.or(n.Ak),this.Tk.or(n.Tk))},n.Wk=function(n){var i=127&n;return 0===i?this:i<64?t.Sk(this.Ak.shl(i),this.Tk.shl(i).or(this.Ak.shru(64-i)),this.Ok()):t.Sk(Pt.ZERO,this.Ak.shl(i-64),this.Ok())},n.qk=function(n){var i=127&n;return 0===i?this:i<64?t.Sk(this.Ak.shru(i).or(this.Tk.shl(64-i)),this.Tk.shr(i),this.Ok()):t.Sk(this.Tk.shr(i-64),this.Tk.isNegative()?Pt.NEG_ONE:Pt.ZERO,this.Ok())},n.Gk=function(n){var i=127&n;return 0===i?this:i<64?t.Sk(this.Ak.shru(i).or(this.Tk.shl(64-i)),this.Tk.shru(i),this.Ok()):64===i?t.Sk(this.Tk,Pt.ZERO,this.Ok()):t.Sk(this.Tk.shru(i-64),Pt.ZERO,this.Ok())},n.yk=function(n){var i=this.Tk.high>>>16,r=65535&this.Tk.high,e=this.Tk.low>>>16,o=65535&this.Tk.low,u=this.Ak.high>>>16,s=65535&this.Ak.high,f=this.Ak.low>>>16,c=65535&this.Ak.low,a=n.Tk.high>>>16,h=65535&n.Tk.high,v=n.Tk.low>>>16,l=65535&n.Tk.low,d=n.Ak.high>>>16,w=65535&n.Ak.high,y=n.Ak.low>>>16,p=0,b=0,g=0,m=0,_=0,E=0,R=0,I=0;R+=(I+=c+(65535&n.Ak.low))>>>16,I&=65535,E+=(R+=f+y)>>>16,R&=65535,_+=(E+=s+w)>>>16,E&=65535,m+=(_+=u+d)>>>16,_&=65535,g+=(m+=o+l)>>>16,m&=65535,b+=(g+=e+v)>>>16,g&=65535,p+=(b+=r+h)>>>16,b&=65535,p+=i+a,p&=65535;var S=this.Ok(),T=Pt.fromBits(g<<16|m,p<<16|b,S),k=Pt.fromBits(R<<16|I,_<<16|E,S);return t.Sk(k,T,S)},n.gk=function(t){return this.yk(t.wk())},n.wk=function(){return this.Vk().yk(t.jk)},n.Yk=function(n){if(this.Bk()||n.Bk())return this.Ok()?t.Rk:t.Nk;if(this._k())return n._k()?this.wk().Yk(n.wk()):this.wk().Yk(n).wk();if(n._k())return this.Yk(n.wk()).wk();if(this.Tk.isZero()&&0===this.Ak.high&&n.Tk.isZero()&&0===n.Ak.high)return t.Ek(this.Ak.multiply(n.Ak));var i=Pt.fromBits(4294967295,0,!0),r=this.Ak.and(i),e=this.Ak.shru(32),o=this.Tk.and(i),u=this.Tk.shru(32),s=n.Ak.and(i),f=n.Ak.shru(32),c=n.Tk.and(i),a=n.Tk.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(o.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(u.mul(s)).add(o.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.Sk(w,y,this.Ok())},n.Qk=function(n){var i,r,e=n;if(e.Bk())throw new RangeError("division by zero");if(this.Bk())return this.Ok()?[t.Rk,t.Rk]:[t.Nk,t.Nk];if(this.Ok()){if(e.Ok()||(e=e.Mk()),e.Fk(this))return[t.Rk,this];if(e.Fk(this.Gk(1)))return[r=t.Kk,i=this.gk(e)];r=t.Rk}else{if(this.vk(t.Ck)){if(e.vk(t.jk)||e.vk(t.Zk))return[t.Ck,t.Nk];if(e.vk(t.Ck))return[t.jk,t.Nk];var o=this.qk(1).Jk(e).Wk(1);return o.vk(t.Nk)?r=e._k()?t.jk:t.Zk:(i=this.gk(e.Yk(o)),r=o.yk(i.Jk(e))),[r,i=this.gk(e.Yk(r))]}if(e.vk(t.Ck))return this.Ok()?[t.Rk,this]:[t.Nk,this];if(this._k()){if(e._k())return this.wk().Qk(e.wk());var u=this.wk().Qk(e);return r=u[0],i=u[1],[r.wk(),i.wk()]}if(e._k()){var s=this.Qk(e.wk());return r=s[0],i=s[1],[r.wk(),i.wk()]}r=t.Nk}for(i=this;i.Hk(e);){for(var f=v.max(1,v.floor(i.$y()/e.$y())),c=v.ceil(v.log(f)/v.LN2),a=c<=48?1:v.pow(2,c-48),h=t.Ik(f),l=h.Yk(e);l._k()||l.Fk(i);)f-=a,l=(h=t.Ik(f,this.Ok())).Yk(e);h.Bk()&&(h=t.jk),r=r.yk(h),i=i.gk(l)}return[r,i]},n.Jk=function(t){return this.Qk(t)[0]},n.$k=function(t){return this.Qk(t)[1]},n.toString=function(n){var i=n||10;if(i<2||i>36)throw new RangeError("radix");if(this.Bk())return"0";if(this._k()){if(this.vk(t.Ck)){var r=t.Ik(i),e=this.Jk(r),o=e.Yk(r).gk(this);return e.toString(i)+o.Uk().toString(i)}return"-"+this.wk().toString(i)}for(var u=t.Ik(v.pow(i,6),this.Ok()),s=this,f="";;){var c=s.Jk(u),a=(s.gk(c.Yk(u)).Uk()>>>0).toString(i);if((s=c).Bk())return a+f;for(;a.length<6;)a="0"+a;f=String(a)+f}},t}();jt.Nk=jt.Ek(Pt.ZERO),jt.Rk=jt.Ek(Pt.UZERO),jt.jk=jt.Ek(Pt.ONE),jt.Kk=jt.Ek(Pt.UONE),jt.Zk=jt.Ek(Pt.NEG_ONE),jt.Pk=jt.Sk(Pt.NEG_ONE,Pt.MAX_VALUE,!1),jt.Dk=jt.Sk(Pt.MAX_UNSIGNED_VALUE,Pt.MAX_UNSIGNED_VALUE,!0),jt.Ck=jt.Sk(Pt.ZERO,Pt.MIN_VALUE,!1);var Ut=function(){function t(t,n){void 0===n&&(n=1),this.tm=void 0,this.nm=void 0,this.tm=t,this.nm=n}t.im=function(n){return new t(v.ceil(n.tm),n.nm)},t.um=function(n){return new t(v.floor(n.tm),n.nm)},t.hm=function(t,n){return t.ek(n)?t:n},t.cm=function(t,n){return t.ck(n)?t:n};var n=t.prototype;return n.yk=function(n){return this.nm>=n.nm?new t(this.tm+n.fm(this.nm).tm,this.nm):new t(this.fm(n.nm).tm+n.tm,n.nm)},n.nk=function(t){return t.dk(this)},n.ek=function(t){return t.ck(this)},n.fk=function(n){return this.nm>=n.nm?new t(v.abs(this.tm-n.fm(this.nm).tm),this.nm):n.fk(this)},n.hk=function(t,n){return this.fk(t).ck(n)},n.rk=function(t){return i=t,(n=this).nm>=i.nm?ft(n.tm,i.fm(n.nm).tm):ft(n.fm(i.nm).tm,i.tm);var n,i},n.vk=function(t){return 0===this.rk(t)},n.dk=function(t){return this.rk(t)<0},n.ck=function(t){return this.rk(t)<=0},n.fm=function(n){return new t(this.tm*(n/this.nm),n)},n.gk=function(n){return this.nm>=n.nm?new t(this.tm-n.fm(this.nm).tm,this.nm):new t(this.fm(n.nm).tm-n.tm,n.nm)},n.vm=function(n){return new t(this.tm*n,this.nm)},P(t,[{key:"bk",get:function(){return!isFinite(this.tm)}},{key:"dm",get:function(){return this.tm/this.nm}}]),t}();Ut.lm=new Ut(1/6,1),Ut.Nk=new Ut(0),Ut._m=new Ut(1/0),Ut.wm=1e6;var Mt=function(t){function n(n,i){var r;return(r=t.call(this)||this).Eu=void 0,r.nm=void 0,r.Eu=n.toSigned(),r.nm=i>>>0,r}rt(n,t),n.gm=function(t,i){return void 0===i&&(i=1e6),n.Ik(t*i,i)},n.Ik=function(t,i){return w(t)?n.ym:t===1/0?n.pm:t===-1/0?n.Am:new n(Pt.fromNumber(t),i)},n.Ek=function(t,i){return new n(t,i)},n.Tm=function(t){return n.gm(t.dm,1e6)},n.Sm=function(t){return new n(Pt.fromNumber(t.getTime()),1e3)},n.hm=function(t,n){return t.ek(n)?t:n},n.cm=function(t,n){return t.ck(n)?t:n},n.Em=function(t,i,r){return n.hm(i,n.cm(r,t))};var i=n.prototype;return i._k=function(){return this.Eu.isNegative()},i.Bk=function(){return 0!==this.nm&&this.Eu.isZero()},i.bk=function(){return 0===this.nm&&!this.Eu.isZero()},i.pk=function(){return 0===this.nm&&this.Eu.isZero()},i.$y=function(){if(0===this.nm)return this.Eu.isZero()?NaN:this.Eu.isNegative()?-1/0:1/0;var t=this.Eu.divide(this.nm),n=this.Eu.subtract(t.multiply(this.nm));return t.toNumber()+n.toNumber()/this.nm},i.xk=function(){if(0===this.nm)throw new c("Failed to convert timestamp");return this.Eu},i.Im=function(){return new Date(0===this.nm?NaN:this.fm(1e3).Eu.toNumber())},i.Rm=function(){return new Ut(0===this.nm?this.$y():this.Eu.toNumber(),this.nm)},i.fm=function(t,i){void 0===i&&(i=Wt.Nm);var r=this.nm;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.Qk(n),e=r[0],o=r[1];if(o.Bk())return e;if(i===Wt.Nm)return o._k()?e.gk(jt.jk):e;if(i===Wt.Dm)return o._k()?e:e.yk(jt.jk);var u=o.Yk(jt.Ik(2));return u._k()?u.wk().dk(n)?e:e.gk(jt.jk):u.dk(n)?e:e.yk(jt.jk)}(jt.Ek(this.Eu).Yk(jt.Ik(t/e)),jt.Ik(r/e),i).xk(),t)},i.rk=function(t){if(this===t)return et.Qy;if(0===this.nm||0===t.nm)return at(this,t);if(this.Bk())return t.Bk()?et.Qy:t._k()?et.Ky:et.Zy;if(t.Bk())return this._k()?et.Zy:et.Ky;var n=v.min(this.nm,t.nm),i=this.fm(n,Wt.Cm).Eu,r=t.fm(n,Wt.Cm).Eu;return i.compare(r)},i.wk=function(){return 0===this.nm?Lt(this):new n(this.Eu.negate(),this.nm)},i.yk=function(t){if(0===this.nm||0===t.nm)return qt(this,t);if(this.Bk())return t;if(t.Bk())return this;var i=v.max(this.nm,t.nm),r=this.fm(i,Wt.Cm),e=t.fm(i,Wt.Cm);return new n(r.Eu.add(e.Eu),i)},i.Yk=function(t){if(this.pk()||w(t))return n.ym;if(this.bk()||!isFinite(t)){if(this.Bk()||0===t)return n.ym;var i=this._k()?n.Am:n.pm;return t<0?i.wk():i}return this.Bk()?this:new n(0===t?Pt.ZERO:this.Eu.multiply(t),this.nm)},i.Jk=function(t){if(this.pk()||w(t))return n.ym;if(this.bk())return isFinite(t)?0===t?1/t<0?this.wk():this:t<0?this.wk():this:n.ym;if(!isFinite(t))return new n(Pt.ZERO,this.nm);if(this.Bk())return 0===t?n.ym:new n(Pt.ZERO,this.nm);if(0===t){var i=this._k()?n.Am:n.pm;return 1/t<0?i.wk():i}return new n(this.Eu.divide(t),this.nm)},i.Pm=function(){return[this.Eu.low,this.Eu.high,this.nm]},n}(ct);function Lt(t){return t.pk()?t:t._k()?Mt.pm:Mt.Am}function qt(t,n){return t.pk()||n.pk()?Mt.ym:t.bk()&&n.bk()?t._k()===n._k()?t:Mt.ym:t.bk()?t:n}Mt.Nk=new Mt(Pt.ZERO,1e6),Mt.ym=new Mt(Pt.ZERO,0),Mt.pm=new Mt(Pt.ONE,0),Mt.Am=new Mt(Pt.NEG_ONE,0);var Wt,Xt=function(t){function n(n,i){var r;return(r=t.call(this)||this).Eu=void 0,r.nm=void 0,r.Eu=BigInt.asIntN(64,n),r.nm=i>>>0,r}rt(n,t),n.gm=function(t,i){return void 0===i&&(i=1e6),n.Ik(t*i,i)},n.Ik=function(t,i){return w(t)?n.ym:t===1/0?n.pm:t===-1/0?n.Am:new n(BigInt(v.floor(t)),i)},n.Ek=function(t,i){return new n(BigInt(t.high)<<BigInt(32)|BigInt(t.low>>>0),i)},n.Tm=function(t){return n.gm(t.dm,1e6)},n.Sm=function(t){return n.Ik(t.getTime(),1e3)},n.hm=function(t,n){return t.ek(n)?t:n},n.cm=function(t,n){return t.ck(n)?t:n},n.Em=function(t,i,r){return n.hm(i,n.cm(r,t))};var i=n.prototype;return i._k=function(){return this.Eu<BigInt(0)},i.Bk=function(){return 0!==this.nm&&this.Eu===BigInt(0)},i.bk=function(){return 0===this.nm&&this.Eu!==BigInt(0)},i.pk=function(){return 0===this.nm&&this.Eu===BigInt(0)},i.$y=function(){if(0===this.nm)return this.Eu===BigInt(0)?NaN:this.Eu<BigInt(0)?-1/0:1/0;var t=this.Eu/BigInt(this.nm),n=this.Eu-t*BigInt(this.nm);return Number(t)+Number(n)/this.nm},i.xk=function(){if(0===this.nm)throw new c("Failed to convert timestamp");return this.Om()},i.Om=function(){var t=this.Eu&BigInt(4294967295),n=this.Eu>>BigInt(32)&BigInt(4294967295);return Pt.fromBits(Number(t),Number(n))},i.Im=function(){return new Date(0===this.nm?NaN:Number(this.fm(1e3).Eu))},i.Rm=function(){return new Ut(0===this.nm?this.$y():Number(this.Eu),this.nm)},i.fm=function(t,i){void 0===i&&(i=Wt.Nm);var r=this.nm;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.Nm)return e<BigInt(0)?r-BigInt(1):r;if(i===Wt.Dm)return e<BigInt(0)?r:r+BigInt(1);var o=e*BigInt(2);return o<BigInt(0)?-o<n?r:r-BigInt(1):o<n?r:r+BigInt(1)}(this.Eu*BigInt(t/e),BigInt(r/e),i),t)},i.rk=function(t){if(this===t)return et.Qy;if(0===this.nm||0===t.nm)return at(this,t);if(this.Bk())return t.Bk()?et.Qy:t._k()?et.Ky:et.Zy;if(t.Bk())return this._k()?et.Zy:et.Ky;var n=v.min(this.nm,t.nm),i=this.fm(n,Wt.Cm).Eu,r=t.fm(n,Wt.Cm).Eu;return i>r?et.Ky:i<r?et.Zy:et.Qy},i.wk=function(){return 0===this.nm?Ht(this):new n(-this.Eu,this.nm)},i.yk=function(t){if(0===this.nm||0===t.nm)return Vt(this,t);if(this.Bk())return t;if(t.Bk())return this;var i=v.max(this.nm,t.nm),r=this.fm(i,Wt.Cm),e=t.fm(i,Wt.Cm);return new n(r.Eu+e.Eu,i)},i.Yk=function(t){if(this.pk()||w(t))return n.ym;if(this.bk()||!isFinite(t)){if(this.Bk()||0===t)return n.ym;var i=this._k()?n.Am:n.pm;return t<0?i.wk():i}return this.Bk()?this:new n(0===t?BigInt(0):this.Eu*BigInt(t),this.nm)},i.Jk=function(t){if(this.pk()||w(t))return n.ym;if(this.bk())return isFinite(t)?0===t?1/t<0?this.wk():this:t<0?this.wk():this:n.ym;if(!isFinite(t))return new n(BigInt(0),this.nm);if(this.Bk())return 0===t?n.ym:new n(BigInt(0),this.nm);if(0===t){var i=this._k()?n.Am:n.pm;return 1/t<0?i.wk():i}return new n(this.Eu/BigInt(t),this.nm)},i.Pm=function(){var t=this.Om();return[t.low,t.high,this.nm]},P(n,null,[{key:"Nk",get:function(){return n.Bm||(n.Bm=new n(BigInt(0),1e6)),n.Bm}},{key:"ym",get:function(){return n.Lm||(n.Lm=new n(BigInt(0),0)),n.Lm}},{key:"pm",get:function(){return n.Mm||(n.Mm=new n(BigInt(1),0)),n.Mm}},{key:"Am",get:function(){return n.xm||(n.xm=new n(BigInt(-1),0)),n.xm}}]),n}(ct);function Ht(t){return t.pk()?t:t._k()?Xt.pm:Xt.Am}function Vt(t,n){return t.pk()||n.pk()?Xt.ym:t.bk()&&n.bk()?t._k()===n._k()?t:Xt.ym:t.bk()?t:n}Xt.Bm=void 0,Xt.Lm=void 0,Xt.Mm=void 0,Xt.xm=void 0,function(t){t[t.Nm=0]="Nm",t[t.Dm=1]="Dm",t[t.Cm=2]="Cm"}(Wt||(Wt={}));var zt=function(){try{return"function"==typeof BigInt&&"bigint"==typeof BigInt(0)}catch(t){return!1}}()?Xt:Mt;function Gt(t){return zt.Ek(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.Kh=!1,this.Zh=!1,this.Jh=[],this.$h=[]}var n=t.prototype;return n.ra=function(){if(!this.Kh&&!this.Zh){this.Kh=!0;for(var t=0,n=this.Jh.slice();t<n.length;t++){(0,n[t])()}this.ea()}},n.ea=function(){if(!this.Zh){this.Zh=!0;for(var t=0,n=this.$h.slice();t<n.length;t++){(0,n[t])()}N(this.Jh),N(this.$h)}},n.ua=function(t){this.Zh||this.Jh.push(t)},n.oa=function(t){this.Zh||A(this.Jh,t)},n.va=function(t){this.Zh||this.$h.push(t)},n._a=function(t){this.Zh||A(this.$h,t)},t}(),Zt=function(){function t(){this.ya=new Jt}var n=t.prototype;return n.ma=function(){this.ya.ra()},n.ea=function(){this.ya.ea()},n.Aa=function(t){var n=this.ya;if(!n.Kh)if(t.Kh)n.ra();else if(!n.Zh&&!t.Zh){var i=function(){r(),n.ra()},r=function r(){t.oa(i),t._a(r),n.oa(i),n._a(r)};t.ua(i),t.va(r),n.ua(i),n.va(r)}},n.Ta=function(){var n=new t,i=new t,r=n.Sa,e=i.Sa,o=this.ya,u=function(){r.Kh&&e.Zh||e.Kh&&r.Zh?o.ra():r.Zh&&e.Zh&&o.ea()};r.ua(u),e.ua(u),r.va(u),e.va(u),n.Aa(o),i.Aa(o);return o.va(function(){r.oa(u),e.oa(u),r._a(u),e._a(u)}),[n,i]},P(t,[{key:"Sa",get:function(){return this.ya}}]),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.K$="HELLO",t.Z$="HI_THERE",t.J$="INITIALIZE",t.n0="APPEND_INIT",t.i0="APPEND_DATA",t.r0="ACK",t.e0="REMOVE",t.s0="DESTROY_SESSION"}(rn||(rn={}));var en="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),on=16383;function un(t,n,i){for(var r,e,o,u=[],s=n;s<i;s+=3)u.push((r=t[s],e=t[s+1],o=t[s+2],en[r>>2]+en[(3&r)<<4|e>>4]+en[(15&e)<<2|o>>6]+en[63&o]));return u.join("")}var sn=function(){function t(t){void 0===t&&(t=0),this.cc=t}var n=t.prototype;return n.ac=function(t){this.cc+=t},n.fc=function(t){this.cc=t},n.vc=function(){return new t(this.hc)},P(t,[{key:"hc",get:function(){return this.cc}}]),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.hc>=t.length)throw new c("Invalid byte index");var i=255&t[n.hc];if(n.ac(1),128==(192&i))return 63&i;throw new c("Invalid continuation byte")}function yn(t,n){var i=n.hc;if(i>t.length)throw new c("Invalid byte index");if(i===t.length)return!1;var r=255&t[i];if(n.ac(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 o=(15&r)<<12|wn(t,n)<<6|wn(t,n);if(o>=2048)return vn(o),o;throw new c("Invalid continuation byte")}if(240==(248&r)){var u=(7&r)<<18|wn(t,n)<<12|wn(t,n)<<6|wn(t,n);if(u>=65536&&u<=1114111)return u}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.hc,i);return n.ac(2),r}function gn(t,n,i,r){void 0===r&&(r=!1),t.setUint16(n.hc,i,r),n.ac(2)}function mn(t,n){return void 0===n&&(n=!1),function(t,n,i,r){for(var e=[];n.hc+2<=t.byteLength;){var o=bn(t,n,i);if(r&&!o)break;e.push(o)}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,o=0;o<e;o+=1)gn(t,n,i.charCodeAt(o),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}(Sn(t)))}function Rn(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 o=t.charCodeAt(i++);56320==(64512&o)?n.push(((1023&e)<<10)+(1023&o)+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 Sn(t){return new y(t.buffer,t.byteOffset,t.byteLength)}function Tn(t){return t instanceof ArrayBuffer?new y(t):Sn(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.cc=t}var n=t.prototype;return n.ac=function(t){this.cc+=t},n.fc=function(t){this.cc=t},n.vc=function(){return new t(this.hc)},n._c=function(){return new sn(this.hc<<3)},P(t,[{key:"hc",get:function(){return this.cc}}]),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 o=t[e];i.set(o,r),r+=o.byteLength}return i}(t,n)}function Cn(t){return function(t){for(var n=t.length,i=n%3,r=[],e=n-i,o=0;o<e;o+=on)r.push(un(t,o,v.min(e,o+on)));if(1===i){var u=t[n-1];r.push(en[u>>2]+en[(3&u)<<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.Ea=j(),this.Ia=void 0,this.Ra=void 0,this.Na=function(t){n.Da(t)},this.Ra=t||this}var n=t.prototype;return n.Ca=function(t,n){if("function"==typeof n)if("string"==typeof t)this.Pa(t,n);else for(var i=0;i<t.length;i++){var r=t[i];this.Pa(r,n)}},n.Pa=function(t,n){var i=this.Ea[t];i?"function"==typeof i?this.Ea[t]=[i,n]:i.push(n):this.Ea[t]=n},n.Oa=function(t){if("function"==typeof t){var n=this.Ia;n?"function"==typeof n?this.Ia=[n,t]:n.push(t):this.Ia=t}},n.Ba=function(){this.Ea=j(),this.Ia=void 0},n.Da=function(t){var n=xn(this.Ea[t.type]),i=xn(this.Ia);Bn(this.Ra,t,n),Bn(this.Ra,t,i)},n.La=function(t,n){if("function"==typeof n)if("string"==typeof t)this.Ma(t,n);else for(var i=0;i<t.length;i++){var r=t[i];this.Ma(r,n)}},n.Ma=function(t,n){var i=this.Ea[t];i&&("function"==typeof i?i===n&&(this.Ea[t]=void 0):A(i,n))},n.xa=function(t){if("string"==typeof t)this.Ea[t]=void 0;else for(var n=0;n<t.length;n++){var i=t[n];this.Ea[i]=void 0}},n.Ua=function(t){var n=this.Ia;n&&("function"==typeof n?n===t&&(this.Ia=void 0):A(n,t))},n.Fa=function(t,n){var i=this;return new E(function(r,e){if(n&&n.Kh)return e(new Qt);var o=function(t){s(),r(t)},u=function(){s(),e(new Qt)},s=function(){i.La(t,o),n&&n.oa(u)};i.Ca(t,o),n&&n.ua(u)})},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).Gu=void 0,i.Gu=n,i}return rt(n,t),n}(Pn),Un=function(t){function n(n){var i;return(i=t.call(this)||this).Cy=void 0,i.tdt=0,i.qr=new y(0),i.Ef=!1,i.O=!1,i.D=void 0,i.Cy=n,i}rt(n,t);var i=n.prototype;return i.kW=function(t,n){this.C&&0===this.qr.length&&(this.qr=this.D.slice()),this.tdt+=n.$y(),this.qr=Dn([this.qr,t]),this.Da(new jn(t))},i.Cc=function(){this.xc||(this.Da(new Pn("close")),this.Ef=!0)},P(n,[{key:"Jm",get:function(){return this.tdt}},{key:"Gu",get:function(){return this.qr}},{key:"xc",get:function(){return this.Ef}},{key:"C",get:function(){return this.O},set:function(t){this.O=t}},{key:"B",get:function(){return this.D},set:function(t){this.D=t}}]),n}(Fn),Mn=function(){function t(t){this.L=!1,this.W=void 0,this.X=void 0,this.DEFAULT_SEGMENT_DURATION_IN_SECONDS=1.1,this.Sg="sync-seg-"+C(),this.H=this.DEFAULT_SEGMENT_DURATION_IN_SECONDS,this.V=t;for(var n=0,i=this.V;n<i.length;n++){var r=i[n];if(r.match(/video/))this.W=new Un(this.tt(r));else{if(!r.match(/audio/))throw new c("Unsupported MIME type.");this.X=new Un(this.tt(r))}}}var n=t.prototype;return n.tt=function(t){for(var n=0,i=this.V;n<i.length;n++){if(i[n]===t)return this.H}},n.Cc=function(){this.W&&this.W.Cc(),this.X&&this.X.Cc()},P(t,[{key:"it",get:function(){return this.L},set:function(t){this.L=t}},{key:"rt",get:function(){var t,n;return Boolean((null==(t=this.W)?void 0:t.C)||(null==(n=this.X)?void 0:n.C))}}]),t}(),Ln=function(t){function n(n){var i;return(i=t.call(this,"remove")||this).Jb=void 0,i.Jb=n,i}return rt(n,t),n}(Pn),qn=function(t){function n(n){var i;return(i=t.call(this)||this).et=[],i.st=void 0,i.ht=[],i.pt=U(),i.tn=U(),i.nn=0,i.rn=0,i.V=n,i.st=new Mn(i.V),i.st.X&&(i.st.X.C=!0),i.st.W&&(i.st.W.C=!0),i.ht.push(new Mn(i.V)),i}rt(n,t);var i=n.prototype;return i.en=function(){var t=[].concat(this.et,[this.st],this.ht);return this.et.length=0,t},i.kW=function(t){this.sn(t),this.an(t),this.ln(t)},i.bW=function(t){this.sn(t)},i.Bc=function(t){this.sn(t),this.ln(t)},i.ea=function(){this.st.Cc(),this.ht.forEach(function(t){return t.Cc()}),this.et.length=0},i.an=function(t){var n=Gt(t.startPts),i=Gt(t.totalDuration);this.tn.set(t.mimeType,n.yk(i))},i.bn=function(){this.st.Cc(),this.et.push(this.st);var t=this.ht.shift(),n=this.gn();t?(this.st=t,this.ht.push(n)):this.st=n},i.gn=function(){var t=new Mn(this.V);return t.X&&(t.X.B=this.st.X.B),t.W&&(t.W.B=this.st.W.B),t},i.mn=function(t){var i=!this.st.X||0===this.st.X.Jm,r=!this.st.W||0===this.st.W.Jm,e=this.st.X&&this.st.X.C,o=this.st.W&&this.st.W.C,u=r&&(i&&!this.st.it||e),s=i&&(r&&!this.st.it||o);("audio"===n.kn(t)&&!s||"video"===n.kn(t)&&!u)&&(this.bn(),this.bn())},i.sn=function(t){var n=t.mimeType,i=t.kind,r=this.pt.get(n);void 0===r&&(i!==rn.n0&&i!==rn.i0||(r=[],this.pt.set(n,r))),void 0!==r&&r.push(t)},i.ln=function(t){for(var n=this.ti(t),i=0;i<n.length;i++){var r=n[i];switch(r.kind){case rn.n0:this.ii(r),this.nn=0,this.rn=0;break;case rn.e0:this.ui(r);break;case rn.i0:this.si(r)}}},i.ii=function(t){var n=t.mimeType,i=t.segment;this.mn(n),n.match(/video/)?(this.st.W.B=i,this.ht.forEach(function(t){t.W.B=i})):(this.st.X.B=i,this.ht.forEach(function(t){t.X.B=i})),this.st.X&&(this.st.X.C=!0),this.st.W&&(this.st.W.C=!0)},i.si=function(t){var n=t.mimeType.match(/audio/),i=Gt(t.totalDuration);if(n?this.st.X.kW(t.segment,i):this.st.W.kW(t.segment,i),n||1===this.V.length){this.nn+=i.$y();var r=this.st.tt(t.mimeType);this.nn>=this.rn+r&&(this.rn+=r,this.bn())}},i.ui=function(t){this.tn.set(t.mimeType,void 0),this.mn(t.mimeType),this.st.X&&(this.st.X.C=!0),this.st.W&&(this.st.W.C=!0),this.et.length=0,this.Da(new Ln(Gt(t.endTime)))},i.ti=function(t){var n=this;if(t.kind===rn.e0)return this.fi(t);var i=[];return this.pt.forEach(function(t){if(t&&t.length>0){var r=k(t,function(t){return t.kind===rn.e0});-1===r&&(r=t.length);for(var e=t.slice(0,r),o=0;o<e.length;o++){var u=e[o];if(!O(i,u)){var s=n.fi(u);if(s.length>0)i.push.apply(i,s);else if(u.kind===rn.i0)break}}}}),i},i.fi=function(t){for(var i,r=this.pt.get(t.mimeType),e=0,o=this.V;e<o.length;e++){var u=o[e];if(u!==t.mimeType){i=u;break}}if(!i)return r.splice(0,r.indexOf(t)+1);if(t.kind===rn.n0)return[];var s=this.tn.get(i);if(void 0===s)return[];if(t.kind===rn.e0){var f=this.hi(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.vi(t,s)){var a=r.splice(0,r.indexOf(t));r.splice(0,1);var h=this.li(t,a,i);return[].concat(a,h,[t])}return[]},i.li=function(t,i,r){var e=this.pt.get(r);if(!e)return[];var o=Gt(t.startPts),u=Gt(t.totalDuration),s=o.yk(u),f=k(e,function(t){return t.kind===rn.e0}),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.i0||n.vi(v,s)||(a=h)}var l=-1;return-1!==k(i,function(t){return t.kind===rn.n0})&&(l=k(e,function(t){return t.kind===rn.n0})),l>a&&(a=l+1),a>0?(e[a-1].kind===rn.n0&&(a-=1),e.splice(0,a)):[]},i.hi=function(t){var n=this.pt.get(t);if(n){var i=k(n,function(t){return t.kind===rn.e0});if(i>=0)return n.splice(0,i+1)}return[]},n.vi=function(t,n){var i=n,r=Gt(t.startPts);return i.ek(r)},i.yi=function(){var t="[MEDIABUFFER] endPTS: ";this.tn.forEach(function(i,r){t=t.concat(n.kn(r)+" = "+(null==i?void 0:i.$y())+" ")}),m.Yo(t)},i.pi=function(){var t=this;m.Yo("[MEDIABUFFER] unsyncedMessageMap:"),this.pt.forEach(function(i,r){void 0!==i&&t.bi(n.kn(r),i)})},i.bi=function(t,i){var r=t+": [";null==i||i.forEach(function(t){r=r.concat(" "+t.kind+"("+n.kn(t.mimeType)+")")}),r=r.concat(" ]"),m.Yo(r)},n.kn=function(t){return t.match(/audio/)?"audio":"video"},n}(Fn);var Wn=function(){function t(t,n,i){var r=this;this.mi=[],this.ki=U(),this.tr=0,this.evt=void 0,this.nr=void 0,this.er=function(t){if(t.Jb.ek(zt.gm(ot)))for(;r.mi.length>0;)r.ur()},this.sr=n,this.cr=i,this.nr=[new H,new V(8),new z(1),new Y,new G(0)],this.evt=t,this.evt.Ca("remove",this.er)}var n=t.prototype;return n.Vrt=function(t,n){var i=this.ki.get(t);if(i)if(n===x.n_){var r=i.W;if(r)return r}else{var e=i.X;if(e)return e}throw new c(t+" segment not available!")},n.ea=function(){this.mi.length=0,this.sr.LE=0,this.ki.clear(),this.tr=0},n.VS=function(){return this.ar(),new tt([].concat(this.nr,[this.sr,this.cr],this.mi))},n.ar=function(){for(var t=this.evt.en(),n=0;n<t.length;n++){var i=t[n];if(!this.ki.has(i.Sg)){i.it=!0;var r=i.H;i.rt&&this.mi.push(new J),this.ki.set(i.Sg,i),this.mi.push(new X(r,i.Sg)),this.tr+=r}}this.hr()},n.hr=function(){for(;this.tr>300;)this.ur()},n.ur=function(){var t=this.mi.shift();void 0!==t&&(t.Uh===L.Wl?(this.vr(t),this.tr-=t.S,this.sr.LE++):function(t){return t.Uh===L.v}(t)&&this.cr.LE++)},n.vr=function(t){this.ki.delete(t.T)},t}(),Xn=function(){function t(t){this.C$t=void 0,this.lr=void 0,this.br=void 0,this.V=t,this.C$t=new nt,this.lr=new qn(this.V);for(var n=0,i=this.V;n<i.length;n++){var r=i[n];if(this.br=new Wn(this.lr,new $(0),new Z(0)),r.match(/video/)){var e=new K("video/index.m3u8");this.C$t.A(e)}else{if(!r.match(/audio/))throw new c("Unsupported MIME type.");var o=new Q("audio/index.m3u8");this.C$t.A(o)}}}var n=t.prototype;return n.mr=function(t){if("master.m3u8"===t){if(this.C$t)return this.C$t.VS;throw new c("Master playlist not ready yet")}if(this.br)return this.br.VS();throw new c("Media playlist not ready yet")},n.Vrt=function(n){var i=n.split("/")[1];return this.br.Vrt(i,t.kr(n))},n.bW=function(t){this.lr.bW(t)},n.kW=function(t){this.lr.kW(t)},n.Vst=function(t){this.lr.Bc(t)},n.ea=function(){this.lr.ea(),this.C$t.ea(),this.br&&this.br.ea()},t.kr=function(t){return t.match(/video/)?x.n_:x.t_},t}();var Hn,Vn=function(){function n(t,n){var i=this;this.wet=void 0,this.te=function(){var t=E.coroutine(_.mark(function t(n){var r,e,o;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=n.data,t.t0=r.kind,t.next=t.t0===rn.J$?4:t.t0===rn.n0?7:t.t0===rn.i0?9:t.t0===rn.e0?11:13;break;case 4:return e=r.mediaBufferConfigs,i.wet=new Xn(e),t.abrupt("break",13);case 7:return i.wet.bW(r),t.abrupt("break",13);case 9:return i.wet.kW(r),t.abrupt("break",13);case 11:return i.wet.Vst(r),t.abrupt("break",13);case 13:o={kind:rn.r0},i.ie.postMessage(o);case 15:case"end":return t.stop()}},t)}));return function(n){return t.apply(this,arguments)}}(),this.ie=t,this.ee=n,this.ie.onmessage=this.te}var i=n.prototype;return i.se=function(t){return this.wet.mr(t)},i.ce=function(n){if(this.wet){if(n.match(/m3u8/)){var i=this.se(n);return new Response(i.k(),{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.Gu),!t.xc){n.next=6;break}return i.close(),n.abrupt("return");case 6:r=function(t){i.enqueue(t.Gu)},t.Ca("append",r),e=function n(){i.close(),t.La("append",r),t.La("close",n)},t.Ca("close",e);case 10:case"end":return n.stop()}},n)})),function(t){return n.apply(this,arguments)})};var n}(this.Urt(n)),o=new t.ReadableStream(e);return new Response(o,{headers:r})}throw new c("Stream not active.")},i.Urt=function(t){return this.wet.Vrt(t)},i.close=function(){this.ie.close(),this.wet&&this.wet.ea()},n}(),zn=function(){function t(){var t=this;this.nY=U(),this.ae=void 0,this.te=function(n){var i=n.data;switch(i.kind){case rn.K$:t.he().catch(D);var r=i.port,e=C(),o=new Vn(r,n.source.id);t.nY.set(e,o);r.addEventListener("message",function n(i){i.data.kind===rn.s0&&(t.ve(e),r.removeEventListener("message",n))});var u={kind:rn.Z$,sessionId:e};r.postMessage(u)}},this.de=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 o=t.nY.get(r);if(o)try{var u=o.ce(e);n.respondWith(u)}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.eb=function(t){this.ae=t,t.addEventListener("message",this.te),t.addEventListener("fetch",this.de)},n.ve=function(t){var n=this.nY.get(t);n&&n.close(),this.nY.delete(t)},n.he=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.ae.clients.matchAll();case 2:n=t.sent,i=n.map(function(t){return t.id}),this.nY.forEach(function(t,n){O(i,t.ee)||r.ve(n)});case 5:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),t}();zn.be=new zn,function(t){t.$r="web",t.re="android",t.ue="android-tv",t.oe="ios",t.fe="tvos",t._e="chromecast"}(Hn||(Hn={}));var Gn=e?e.userAgent:"",Yn=Gn.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),Kn=Gn.match(/Android ([0-9\.]+)/i),$n=Gn.match(/Windows NT ([0-9\.]+)/i),Jn=Gn.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),Zn=Gn.match(/Firefox\/([0-9\.]+)/i),Qn=Gn.match(/OPR\/(\d+\.\d+)/i),ti=Gn.match(/Tizen ([0-9\.]+)/i),ni=function(){function n(){this.we=Boolean("ontouchstart"in t||t.DocumentTouch&&r instanceof t.DocumentTouch||e&&e.msMaxTouchPoints),this.ye=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(Gn)||/(macintosh|mac(?=_powerpc)\s)/i.test(Gn),this.ke=/Windows NT/i.test(Gn),this.me=$n?d($n[1]):0,this.pe=/Android/i.test(Gn),this.Ae=Kn?d(Kn[1]):0,this.Te=/windows phone (8|8\.1)/i.test(Gn),this.Se=/iPhone/i.test(Gn),this.Ee=/iPad/i.test(Gn),this.Ie=this.ye&&this.we&&!this.Ee,this.Re=/iPod/i.test(Gn),this.Ne=/Mobile Safari/i.test(Gn),this.De=(this.Se||this.Ee||this.Ie||this.Re)&&!this.Te,this.Ce=this.Te||this.De||this.pe||this.Ne,this.Pe=/CriOS/i.test(Gn),this.Oe=Boolean(t.chrome&&/google/i.test(e.vendor))||this.Pe,this.Be=Boolean(t.chrome||/Chrome/i.test(Gn)||/CriOS/i.test(Gn)),this.Le=Yn?l(Yn[1],10):0,this.Me=/SMART-TV.*Tizen/i.test(Gn),this.xe=ti?d(ti[1]):0,this.Ue=/webos|web0s/i.test(Gn),this.Fe=/Edge\/\d+/i.test(Gn),this.He=/Trident/i.test(Gn),this.Ve=this.He&&!t.ActiveXObject&&"ActiveXObject"in t,this.Xe=/Vivaldi/i.test(Gn),this.ze=/Firefox/i.test(Gn)&&!/Seamonkey/i.test(Gn),this.We=Zn?d(Zn[1]):0,this.qe=/Safari/i.test(Gn)&&!/Chrome/i.test(Gn)&&!this.Te&&!this.Me,this.Ge=Jn?d(Jn[2]):0,this.je=Boolean(Qn),this.Ye=Qn?d(Qn[1]):0,this.Qe=/CrKey/.test(Gn),this.Ke=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv)\b/i.test(Gn),this.Ze="web"===Hn.ue,this.Je="web"===Hn.re,this.$e=this.Je||this.Ze,this.ns="web"===Hn.oe,this.rs="web"===Hn.fe,this.us="web"===Hn._e}return P(n,[{key:"hs",get:function(){return this.we}},{key:"fs",get:function(){return this.ye}},{key:"vs",get:function(){return this.ke}},{key:"ds",get:function(){return this.me}},{key:"ls",get:function(){return this.pe}},{key:"_s",get:function(){return this.Ae}},{key:"gs",get:function(){return this.Te}},{key:"ys",get:function(){return this.Se}},{key:"As",get:function(){return this.Ee}},{key:"Ts",get:function(){return this.Ie}},{key:"Ss",get:function(){return this.Re}},{key:"Es",get:function(){return this.De}},{key:"Is",get:function(){return this.Ne}},{key:"Rs",get:function(){return this.Ce}},{key:"Ns",get:function(){return this.Pe}},{key:"Ds",get:function(){return this.Oe}},{key:"Cs",get:function(){return this.Le}},{key:"Ps",get:function(){return this.Me}},{key:"Os",get:function(){return this.xe}},{key:"Bs",get:function(){return this.Ue}},{key:"Ls",get:function(){return this.Fe}},{key:"Ms",get:function(){return this.He}},{key:"xs",get:function(){return this.Ve}},{key:"Us",get:function(){return this.Xe}},{key:"Fs",get:function(){return this.ze}},{key:"Hs",get:function(){return this.We}},{key:"Vs",get:function(){return this.qe}},{key:"Xs",get:function(){return this.Ge}},{key:"zs",get:function(){return this.je}},{key:"Ws",get:function(){return this.Ye}},{key:"qs",get:function(){return this.Qe}},{key:"Gs",get:function(){return this.Ke}},{key:"js",get:function(){if(!(this.Bs||this.Ps))return!1;var t=this.Cs;return void 0===t||Number(t)<56}},{key:"Ys",get:function(){return this.Ze}},{key:"Qs",get:function(){return this.Je}},{key:"Ks",get:function(){return this.$e}},{key:"Zs",get:function(){return this.ns}},{key:"Js",get:function(){return this.rs}},{key:"$s",get:function(){return this.us}},{key:"tu",get:function(){return this.Be}}]),n}();ni.nu=new ni;var ii=ni.nu,ri=!(ii.Ms&&!ii.xs),ei=t.console;function oi(t){if(T(t))try{return JSON.stringify(t)}catch(t){}return t}function ui(t){return t.map(oi).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](ui(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,ui(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(ot);!function(t){t[t.au=1]="au",t[t.vu=2]="vu",t[t.fu=3]="fu",t[t.du=4]="du",t[t._u=9]="_u"}(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.wu=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 Ri(n)},t}(),pi=function(){function t(t){this.yu=void 0,this.yu=t}var n=t.prototype;return n.mu=function(t){return this.yu.isEqualNode(t.yu)},n.pu=function(n){return new t(this.yu.cloneNode(n))},P(t,[{key:"ou",get:function(){return di.vu}},{key:"bu",get:function(){var t;return null!=(t=this.yu.localName)?t:Ti(this.yu.nodeName)}},{key:"Au",get:function(){return this.yu.nodeName}},{key:"Tu",get:function(){var t;return null!=(t=this.yu.namespaceURI)?t:void 0}},{key:"Su",get:function(){var t;return null!=(t=this.yu.prefix)?t:void 0}},{key:"Eu",get:function(){return this.yu.nodeValue}}]),t}(),bi=function(){function t(t){this.Iu=void 0,this.Ru=void 0,this.Iu=t}var n=t.prototype;return n.Nu=function(t){return this.Du.filter(function(n){return Ii(n)&&n.Cu===t})},n.Pu=function(t,n){return this.Du.filter(function(i){return Ii(i)&&i.bu===n&&i.Tu===t})},n.Ou=function(t){this.Iu.appendChild(t.Bu),this.Ru&&this.Ru.push(t)},n.mu=function(t){return this.Iu.isEqualNode(t.Bu)},P(t,[{key:"Du",get:function(){return void 0===this.Ru&&(this.Ru=function(t){for(var n=[],i=0;i<t.length;i++){var r=Si(t.item(i));r&&n.push(r)}return n}(this.Iu.childNodes)),this.Ru}},{key:"Lu",get:function(){return this.Du.filter(Ii)}},{key:"Bu",get:function(){return this.Iu}}]),t}(),gi=function(t){function n(n){return t.call(this,n)||this}rt(n,t);var i=n.prototype;return i.Mu=function(t){if(this.Iu.hasAttribute(t))return this.Iu.getAttribute(t)},i.xu=function(t,n){if(this.Iu.hasAttributeNS(t,n))return this.Iu.getAttributeNS(t,n)},i.Uu=function(t){this.Iu.removeAttribute(t)},i.Fu=function(t,n){this.Iu.removeAttributeNS(t,n)},i.Hu=function(t,n){this.Iu.setAttribute(t,n)},i.Vu=function(t,n,i){this.Iu.setAttributeNS(t,n,i)},i.pu=function(t){return new n(this.Iu.cloneNode(t))},P(n,[{key:"ou",get:function(){return di.au}},{key:"bu",get:function(){var t;return null!=(t=this.Iu.localName)?t:Ti(this.Iu.nodeName)}},{key:"Tu",get:function(){var t;return null!=(t=this.Iu.namespaceURI)?t:void 0}},{key:"Su",get:function(){var t;return null!=(t=this.Iu.prefix)?t:void 0}},{key:"Cu",get:function(){return this.Iu.nodeName}},{key:"Xu",get:function(){return function(t){for(var n=[],i=0;i<t.length;i++)n.push(new pi(t.item(i)));return n}(this.Iu.attributes)}},{key:"Wu",get:function(){return this.Iu.textContent}}]),n}(bi),mi=function(){function t(t){this.Iu=void 0,this.Iu=t}return t.prototype.mu=function(t){return this.Gu===t.Gu},P(t,[{key:"Gu",get:function(){return this.Iu.nodeValue}},{key:"Bu",get:function(){return this.Iu}}]),t}(),_i=function(t){function n(n){return t.call(this,n)||this}return rt(n,t),n.prototype.pu=function(t){return new n(this.Iu.cloneNode(t))},P(n,[{key:"ou",get:function(){return di.fu}}]),n}(mi),Ei=function(t){function n(n){return t.call(this,n)||this}return rt(n,t),n.prototype.pu=function(t){return new n(this.Iu.cloneNode(t))},P(n,[{key:"ou",get:function(){return di.du}}]),n}(mi),Ri=function(t){function n(n){return t.call(this,n)||this}return rt(n,t),n.prototype.pu=function(t){return new n(this.Iu.cloneNode(t))},P(n,[{key:"ou",get:function(){return di._u}},{key:"ju",get:function(){return new gi(this.Iu.documentElement)}}]),n}(bi);function Ii(t){return function(t){return t.ou===di.au}(t)}function Si(t){switch(t.nodeType){case di.au:return new gi(t);case di.fu:return new _i(t);case di.du: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 o=t;t=r,r=o}return t}(t,n);return i!==t&&Oi(i,null,t.length,t),t}function Oi(t,n,i,r){var e,o,u,s,f,c=t.length,a=0,h=2*i;for(e=0;e<c;e+=h)for(u=(o=e+i)+i,o>c&&(o=c),u>c&&(u=c),s=e,f=o;;)if(s<o&&f<u)n(t[s],t[f])<=0?r[a++]=t[s++]:r[a++]=t[f++];else if(s<o)r[a++]=t[s++];else{if(!(f<u))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)},Mi="undefined"!=typeof Symbol&&"symbol"==typeof Symbol.iterator;function Li(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 zi(t){return qi(t)?t+32:t}function Gi(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 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 o=t.charCodeAt(i++);56320==(64512&o)?n.push(((1023&e)<<10)+(1023&o)+65536):(n.push(e),i--)}else n.push(e)}return n}var ur,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=or(t)).length,r=128,e=0,o=72,u=0,s=t;u<s.length;u++){var f=s[u];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<=o?1:m>=o+26?26:m-o;if(g<_)break;var E=g-_,R=36-_;n.push(rr(cr(_+E%R,0))),g=ir(E/R)}n.push(rr(cr(g,0))),o=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&ur[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&ur[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 Rr(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 Sr(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 o=i[e];r.push.apply(r,gr(o))}return r}function kr(t,n){for(var i=[],r=0,e=or(t);r<e.length;r++){var o=e[r];i.push.apply(i,Tr(o,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 o=Gi(t[r+1])<<4|Gi(t[r+2]);n.push(o),r+=2}else n.push(e)}return n}(yr(t))}function Or(t){return vr(function(t){ur=t.slice(),sr=ur.length,fr=0;for(var n,i=[];!1!==(n=br());)i.push(n);return i}(Ar(or(t))))}function Nr(t){var n,i,r,e,o=t.length,u=[0,0,0,0,0,0,0,0],s=0,f=null,c=0;if(c<o&&":"===t[c]){if(!(c+1<o&&":"===t[c+1]))throw new a;c+=2,f=s+=1}for(;c<o;){if(8===s)throw new a("Too many groups");if(":"!==t[c]){for(var h=0,v=0;v<4&&c<o&&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<o;){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<o&&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}u[s]=u[s]<<8|w,2!==(d+=1)&&4!==d||(s+=1)}if(4!==d)throw new a;break}if(":"===t[c]){if((c+=1)===o)throw new a}else if(c<o)throw new a;u[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=u)[i=s],n[i]=n[r],n[r]=e,s-=1,p-=1}else if(8!==s)throw new a;return u}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={Yu: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{Yu:2,Qu: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:{Yu: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 o=Dr(e);if(void 0===o)return;i.push(o)}for(var u=0;u<i.length-1;u++)if(i[u]>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?{Yu:1,Qu:r}:""===i?Cr:{Yu:0,Ku:i}}function Pr(t){switch(t.Yu){case 0:return t.Ku;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.Qu);case 2:return"["+function(t){for(var n="",i=function(t){for(var n=0,i=0,r=0,e=0,o=0;o<8;o++)0===t[o]?(0===e&&(r=o),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.Qu)+"]";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 o=e.indexOf("="),u=void 0,s=void 0;-1!==o?(u=e.slice(0,o),s=e.slice(o+1)):(u=e,s=""),u=u.replace(jr," "),s=s.replace(jr," ");var f=Or(u),c=Or(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+=Lr(yr(or(r[0])))+"="+Lr(yr(or(r[1])))}return n}function Lr(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 o=t.charCodeAt(e);if(Hr(o))if(Vr(o)||e===i-1)r.push(Xr);else{var u=t.charCodeAt(e+1);Vr(u)?(r.push(o,u),e++):r.push(Xr)}else r.push(o)}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 zr(t,n){var i=t[0],r=n[0];return i===r?0:i<r?-1:1}function Gr(t){t.Zu.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.Zu,Ur(n))}function Kr(t){if(t.Ju){var n=Mr(t.Zu);""===n&&(n=null),t.Ju.Ju.$u=n}}var $r=function(){function t(t){if(void 0===t&&(t=void 0),this.Ju=null,null==t)this.Zu=[];else if("object"==typeof t||"function"==typeof t)if((o=t)instanceof $r&&Ui(o.Zu)&&(!Mi||o[Symbol.iterator]===Jr))this.Zu=t.Zu.slice();else if(function(t){return null!=t&&(!!Ui(t)||!!Mi&&"function"==typeof t[Symbol.iterator])}(t)){this.Zu=[];for(var n=0,i=Li(t);n<i.length;n++){var r=Li(i[n]);if(2!==r.length)throw new a("Invalid name-value pair");this.Zu.push([Wr(r[0]),Wr(r[1])])}}else for(var e in this.Zu=[],t)h.prototype.hasOwnProperty.call(t,e)&&this.Zu.push([Wr(e),Wr(t[e])]);else(t=Wr(t)).length>0&&"?"===t[0]&&(t=t.slice(1)),this.Zu=Ur(t);var o}var n=t.prototype;return n.append=function(t,n){t=Wr(t),n=Wr(n),this.Zu.push([t,n]),Kr(this)},n.delete=function(t){t=Wr(t);for(var n=this.Zu,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.Zu,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.Zu,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.Zu,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.Zu,r=!1,e=0;e<i.length;){var o=i[e];o[0]===t?r?i.splice(e,1):(o[1]=n,r=!0,e++):e++}r||i.push([t,n]),Kr(this)},n.sort=function(){Ai(this.Zu,zr),Kr(this)},n.toString=function(){return Mr(this.Zu)},n.entries=function(){return new ne(this.Zu,Zr)},n.keys=function(){return new ne(this.Zu,Qr)},n.values=function(){return new ne(this.Zu,te)},n.forEach=function(t){var n=this;this.Zu.forEach(function(i){return t(i[1],i[0],n)})},t}(),Jr=$r.prototype.entries;Mi&&($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.uo=0,this.Zu=t,this.oo=n}return t.prototype.next=function(){return this.uo<this.Zu.length?{done:!1,value:this.oo(this.Zu[this.uo++])}:{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,oe=/^(?:\.|%2e){2}$/i;function ue(t){return ee.test(t)}function se(t){return oe.test(t)}function fe(t){return void 0!==re[t]}function ce(t){return fe(t.ao)}function ae(t){return""!==t.do||""!==t._o}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.mo;0!==n.length&&("file"===t.ao&&1===n.length&&de(n[0])||n.pop())}function ye(t){return null===t.po||Cr===t.po||t.Ao||"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 o=[],u=!1,s=!1,f=!1,c=or(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){o.length=0,e=2;continue}throw new a("Invalid scheme")}o.push(zi(d)),e=1;break;case 1:if(Hi(d)||43===d||45===d||46===d)o.push(zi(d));else{if(58!==d){if(null===r){o.length=0,e=2,v=0;continue}throw new a("Invalid scheme")}var w=vr(o);if(null!==r){if(fe(i.ao)&&!fe(w))return;if(!fe(i.ao)&&fe(w))return;if((ae(i)||null!==i.To)&&"file"===w)return;if("file"===i.ao&&(i.po===Cr||null===i.po))return}if(i.ao=w,null!==r)return void(ce(i)&&i.To===re[i.ao]&&(i.To=null));o.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.Ao=!0,i.mo.push(""),e=18)}break;case 2:if(!n||n.Ao&&35!==d)throw new a("Invalid scheme");n.Ao&&35===d?(i.ao=n.ao,i.mo=n.mo.slice(),i.$u=n.$u,i.So="",i.Ao=!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.do=n.do,i._o=n._o,i.po=n.po,i.To=n.To,i.mo=n.mo.slice(),i.$u=n.$u):47===d?e=6:63===d?(i.do=n.do,i._o=n._o,i.po=n.po,i.To=n.To,i.mo=n.mo.slice(),i.$u="",e=19):35===d?(i.do=n.do,i._o=n._o,i.po=n.po,i.To=n.To,i.mo=n.mo.slice(),i.$u=n.$u,i.So="",e=20):92===d&&ce(i)?e=6:(i.do=n.do,i._o=n._o,i.po=n.po,i.To=n.To,i.mo=n.mo.slice(),i.mo.pop(),e=17,v-=1);break;case 6:!ce(i)||47!==d&&92!==d?47===d?e=9:(i.do=n.do,i._o=n._o,i.po=n.po,i.To=n.To,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){u&&o.unshift(37,52,48),u=!0;for(var y=0;y<o.length;y++){var p=o[y];if(58!==p||f){var b=vr(Tr(p,Rr));f?i._o+=b:i.do+=b}else f=!0}o.length=0}else if(pe===d||47===d||63===d||35===d||ce(i)&&92===d){if(u&&0===o.length)throw new a("Invalid host");v-=o.length+1,o.length=0,e=10}else o.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===o.length)throw new a("Invalid host");if(null!==r&&0===o.length&&(ae(i)||null!==i.To))return;var g=Fr(vr(o),ce(i));if(i.po=g,o.length=0,e=16,null!==r)return}else 91===d?s=!0:93===d&&(s=!1),o.push(d);else{if(0===o.length)throw new a("Invalid host");var m=Fr(vr(o),ce(i));if(i.po=m,o.length=0,e=12,11===r)return}break;case 12:if(Xi(d))o.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!==o.length){var _=l(vr(o),10);if(_>65535)throw new a("Invalid port");i.To=_===re[i.ao]?null:_,o.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.po=n.po,i.mo=n.mo.slice(),i.$u=n.$u):63===d?(i.po=n.po,i.mo=n.mo.slice(),i.$u="",e=19):35===d?(i.po=n.po,i.mo=n.mo.slice(),i.$u=n.$u,i.So="",e=20):(he(c.slice(v))||(i.po=n.po,i.mo=n.mo.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.mo[0])?i.mo.push(n.mo[0]):i.po=n.po),e=17,v-=1);break;case 15:if(pe===d||47===d||92===d||63===d||35===d)if(v-=1,null===r&&le(o))e=17;else if(0===o.length){if(i.po=Cr,null!==r)return;e=16}else{var E=Fr(vr(o),ce(i));if(0===E.Yu&&"localhost"===E.Ku&&(E=Cr),i.po=E,null!==r)return;o.length=0,e=16}else o.push(d);break;case 16:ce(i)?(e=17,47!==d&&92!==d&&(v-=1)):null===r&&63===d?(i.$u="",e=19):null===r&&35===d?(i.So="",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 R=vr(o);if(se(R)?(we(i),47===d||ce(i)&&92===d||i.mo.push("")):!ue(R)||47===d||ce(i)&&92===d?ue(R)||("file"===i.ao&&0===i.mo.length&&le(o)&&(Cr!==i.po&&null!==i.po&&(i.po=Cr),o[1]=58,R=vr(o)),i.mo.push(R)):i.mo.push(""),o.length=0,"file"===i.ao&&(pe===d||63===d||35===d))for(;i.mo.length>1&&""===i.mo[0];)i.mo.shift();63===d?(i.$u="",e=19):35===d&&(i.So="",e=20)}else o.push.apply(o,Tr(d,Er));break;case 18:63===d?(i.$u="",e=19):35===d?(i.So="",e=20):pe!==d&&(i.mo[0]+=vr(Tr(d,mr)));break;case 19:null===r&&35===d?(i.So="",e=20):pe!==d&&(i.$u+=vr(Tr(d,ce(i)?Sr:Ir)));break;case 20:pe===d||0===d||(i.So+=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.do="",this._o="",this.po=null,this.To=null,this.mo=[],this.$u=null,this.So=null,this.Ao=!1};function Re(t){switch(t.ao){case"blob":var n;try{n=me(t.mo[0],null)}catch(t){return ie}return Re(n);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return i=t.ao,r=t.po,e=t.To,i+"://"+Pr(r)+(null===e?"":":"+e);case"file":default:return ie}var i,r,e}var Ie,Se,Te=function(){function t(t,n){var i,r,e=null;if(null!=n)if(null!=(i=n)&&i instanceof Te&&"object"==typeof i.Ju)e=n.Ju;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 o=r.$u;this.Ju=r,this.$u=function(t){var n=new $r;return null!==t&&Yr(n,t),n}(o),this.$u.Ju=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.po?(i+="//",ae(t)&&(i+=t.do,""!==t._o&&(i+=":"+t._o),i+="@"),i+=Pr(t.po),null!==t.To&&(i+=":"+t.To)):null===t.po&&"file"===t.ao&&(i+="//"),t.Ao)i+=t.mo[0];else for(var r=0,e=t.mo;r<e.length;r++)i+="/"+e[r];return null!==t.$u&&(i+="?"+t.$u),n||null===t.So||(i+="#"+t.So),i}(this.Ju)},set:function(t){var n;try{n=me(String(t),null)}catch(t){throw new a("Invalid URL: "+t.message)}this.Ju=n,Gr(this.$u);var i=this.Ju.$u;null!==i&&Yr(this.$u,i)}},{key:"origin",get:function(){return Re(this.Ju)}},{key:"protocol",get:function(){return this.Ju.ao+":"},set:function(t){_e(t+":",null,this.Ju,0)}},{key:"username",get:function(){return this.Ju.do},set:function(t){ye(this.Ju)||(this.Ju.do=kr(t,Rr))}},{key:"password",get:function(){return this.Ju._o},set:function(t){ye(this.Ju)||(this.Ju._o=kr(t,Rr))}},{key:"host",get:function(){var t=this.Ju,n=t.po;if(null===n)return"";var i=t.To,r=Pr(n);return null!==i&&(r+=":"+i),r},set:function(t){this.Ju.Ao||_e(t,null,this.Ju,10)}},{key:"hostname",get:function(){var t=this.Ju.po;return null===t?"":Pr(t)},set:function(t){this.Ju.Ao||_e(t,null,this.Ju,11)}},{key:"port",get:function(){var t=this.Ju.To;return null===t?"":""+t},set:function(t){ye(this.Ju)||(""===t?this.Ju.To=null:_e(t,null,this.Ju,12))}},{key:"pathname",get:function(){var t=this.Ju.mo;return this.Ju.Ao?t[0]:0===t.length?"":"/"+t.join("/")},set:function(t){this.Ju.Ao||(this.Ju.mo.length=0,_e(t,null,this.Ju,16))}},{key:"search",get:function(){var t=this.Ju.$u;return null===t||""===t?"":"?"+t},set:function(t){t=Wr(t);var n=this.Ju;if(""===t)return n.$u=null,void Gr(this.$u);"?"===t[0]&&(t=t.slice(1)),n.$u="",_e(t,null,n,19),Yr(this.$u,t)}},{key:"searchParams",get:function(){return this.$u}},{key:"hash",get:function(){var t=this.Ju.So;return null===t||""===t?"":"#"+t},set:function(t){""!==t?("#"===t[0]&&(t=t.slice(1)),this.Ju.So="",_e(t,null,this.Ju,20)):this.Ju.So=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 Se||(Se=Ae()),Se}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.Eo=void 0,this.Io=!1,this.hs=Ne,this.Rs=!1,this.Ro=!0,this.No=!0}var n=t.prototype;return n.Do=function(){return 0},n.Co=function(t,n){return!0},n.Po=function(t){return t>=1/6*2},P(t,[{key:"Oo",get:function(){return void 0===this.Eo&&(this.Eo=this.Do()),this.Eo}},{key:"Bo",get:function(){return i.devicePixelRatio||1}},{key:"Lo",get:function(){return Ce}},{key:"Mo",get:function(){return!1}},{key:"xo",get:function(){return!0}},{key:"Uo",get:function(){return ii.Vs}},{key:"Fo",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.Ts)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).Ho=void 0,i.Ho=n,i.Ho&&(i.Io=i.Ho.Io,i.hs=i.Ho.hs,i.Ro=Be&&i.Ho.Ro),i}rt(n,t);var i=n.prototype;return i.Do=function(){return this.Ho?this.Ho.Oo:t.prototype.Do.call(this)},i.Co=function(n,i){return this.Ho?this.Ho.Co(n,i):t.prototype.Co.call(this,n,i)},i.Po=function(n){return this.Ho?this.Ho.Po(n):t.prototype.Po.call(this,n)},n}(xe),Pe=function(t){function n(n){var i;return(i=t.call(this,n)||this).Io=!0,i.Rs=!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.Do=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.Co=function(n,i){return!(i.Vo>1920)&&t.prototype.Co.call(this,n,i)},P(n,[{key:"Mo",get:function(){return ii.Os<3}},{key:"xo",get:function(){return ii.Os>=3}}]),n}(Fe),Me=function(t){function n(){return t.call(this)||this}return rt(n,t),n}(xe),Le=function(t){function n(){return t.apply(this,arguments)||this}return rt(n,t),n.prototype.Co=function(t,n){if(t&&t.Xo&&n&&n.Xo){var i=qe(t.Xo,"mp4a.40.2")&&qe(n.Xo,"mp4a.40.5"),r=qe(t.Xo,"mp4a.40.5")&&qe(n.Xo,"mp4a.40.2"),e=qe(t.Xo,"mp4a.40.2")&&qe(n.Xo,"mp4a.40.34"),o=qe(t.Xo,"mp4a.40.34")&&qe(n.Xo,"mp4a.40.2"),u=qe(t.Xo,"mp4a.40.5")&&qe(n.Xo,"mp4a.40.34"),s=qe(t.Xo,"mp4a.40.34")&&qe(n.Xo,"mp4a.40.5");return!(i||r||e||o||u||s)}return!0},n}(Me);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.Po=function(t){return t>=2},n}(Me),Xe=function(t){function n(){var n;return(n=t.call(this)||this).Io=ii.Xs>=11,n.Ro=ii.Vs&&!(ii.Es&&ii.Xs<10),n}return rt(n,t),n}(Me),He=function(t){function n(){return t.apply(this,arguments)||this}return rt(n,t),P(n,[{key:"Fo",get:function(){return!1}}]),n}(Fe),Ve=function(){function n(){var n;this.zo=void 0,this.Wo=new yi,this.qo=new ze,this.Go=(n=function(){if(ii.Fs)return new Le;if(ii.Ls||ii.Ms)return new We;if(ii.Vs)return new Xe;return new Me}(),ii.Es?new je(n):ii.Rs?new Pe(n):ii.Ps?new Ue(n):ii.Bs?new He(n):new Fe(n)),this.jo=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.Yo=function(){ci.apply(void 0,arguments)},i.Qo=function(){ai.apply(void 0,arguments)},i.Ko=function(){hi.apply(void 0,arguments)},i.Zo=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.Kr=function(t,n){return o(t,n)},i.Jo=function(t,n){return s(t,n)},i.Qr=function(t){u(t)},i.$o=function(t){f(t)},i.wu=function(t){return this.Wo.wu(t)},i.nh=function(){return this.ih.nh()},i.rh=function(){return this.ih.rh()},i.eh=function(){return this.ih.eh()},i.sh=function(){return this.ih.sh()},i.uh=function(){return this.ih.uh()},i.oh=function(t,n){return this.ih.oh(t,n)},i.ah=function(t){return this.ih.ah(t)},i.fh=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.vh=function(n,i){if(void 0===i&&(i=ke(Ie)),this.jo){var r="string"==typeof i?i:i.toString();return new t.URL(n,r).href}return this.fh(n,i).href},P(n,[{key:"dh",get:function(){return this.qo}},{key:"lh",get:function(){return this.Go}},{key:"_h",get:function(){return{wh:e&&e.userAgent.match(/Android /i)?"Android":"other",gh:Boolean(e&&e.userAgent.match(/Android 8.0.0/i))}}},{key:"yh",get:function(){return t&&t.location&&"https:"===t.location.protocol}},{key:"kh",get:function(){return"languages"in e?e.languages.slice():[e.language]}}]),n}(),ze=function(){function t(){}return P(t,[{key:"ph",get:function(){return e.oscpu}},{key:"lh",get:function(){return e.platform}},{key:"Ah",get:function(){return e.vendor}},{key:"Th",get:function(){return e.vendorSub}}]),t}();function Ge(){return(Ge=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 Ye,Ke="com.microsoft.playready",$e="94ce86fb-07ff-4f43-adb8-93d2fa968ca2",Je="urn:uuid:"+$e,Ze="com.apple.fps.1_0";!function(t){t.Ph="playready",t.Oh="widevine",t.Bh="fairplay",t.Lh="clearkey",t.Mh="aes128"}(Ye||(Ye={}));var Qe={Uh:Ye.Ph,Fh:Ke,Hh:"cenc",Vh:"9a04f079-9840-4286-ab92-e65be0885f95",Xh:"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95",Wh:"PlayReady"},to={Uh:Ye.Oh,Fh:"com.widevine.alpha",Hh:"cenc",Vh:"edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",Xh:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",Wh:"Widevine"},no={Uh:Ye.Bh,Fh:Ze,Hh:"skd",Vh:$e,Xh:Je,Wh:"FairPlay"},io=(Ye.Bh,{Uh:Ye.Lh,Fh:"org.w3.clearkey",Hh:"cenc",Vh:"1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",Xh:"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",Wh:"ClearKey"}),ro=ii.Ds&&ii.Cs>=42||ii.Fs&&ii.Hs>=38||ii.Ls||ii.xs||ii.zs&&ii.Ws>=29;function eo(t,n){return r="audio",null!=(i=t)&&-1!==i.indexOf(r)?{initDataTypes:["cenc"],audioCapabilities:[Ge({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]}:{initDataTypes:["cenc"],videoCapabilities:[Ge({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]};var i,r}var oo,uo=function(){function t(t){this.qh=void 0,this.Gh=U(),this.jh=void 0,this.qh=t}var n=t.prototype;return n.uh=function(){return this.ah(to)},n.rh=function(){return this.ah(io)},n.sh=function(){return this.ah(Qe)},n.eh=function(){return this.ah(no)},n.ah=function(t){var n=t.Xh,i=this.Gh.get(n);if(i)return i;var r=this.oh(t,'video/mp4; codecs="avc1.42000a"');return this.Gh.set(n,r),r},n.oh=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.qh.Yh(n.Fh,[eo(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.qh.Yh(n.Fh,[eo(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.nh=function(){return this.jh||(this.jh=this.Qh()),this.jh},n.Qh=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(ro){t.next=4;break}return t.abrupt("return",!1);case 4:return t.next=6,this.rh();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}(),so=["cenc"],fo=function(t){function n(n){var i;return(i=t.call(this,"Va")||this).Ha=n,i}return rt(n,t),n}(Pn),co=function(t){function n(n,i,r,e){var o;return(o=t.call(this,"Xa")||this).Ha=n,o.Wa=i,o.Xa=r,o.qa=e,o}return rt(n,t),n}(Pn);!function(t){t.Ya="Qa",t.Ka="Za"}(oo||(oo={}));var ao=new y([0]).buffer,ho=function(){function t(){this.$a=void 0,this.$a=[]}var n=t.prototype;return n.tc=function(t){for(var n=0,i=this.$a;n<i.length;n++){if(i[n][0]===t)return!0}return!1},n.nc=function(t){for(var n=0,i=this.$a;n<i.length;n++){var r=i[n];if(r[0]===t)return r[1]}},n.ic=function(t,n){this.$a.forEach(function(n){return t(n[1],n[0])},n)},n.rc=function(t,n){this.$a.push([t,n])},n.ec=function(){N(this.$a)},P(t,[{key:"uc",get:function(){return this.$a.length}}]),t}(),vo=function(){function t(){var t=this;this.wc=void 0,this._i=void 0,this.Z=void 0,this.wc=new E(function(n,i){t._i=n,t.Z=i})}var n=t.prototype;return n.gc=function(t){this._i&&(this._i(t),this.ea())},n.yc=function(t){this.Z&&(this.Z(t),this.ea())},n.ma=function(){this.wc.catch(D),this.yc(new Qt)},n.ea=function(){this._i=void 0,this.Z=void 0},t}();function lo(t,n){return t===Ke?function(t){if(t.byteLength<2*wo.length)return t;if(mn(new DataView(t,0,2*wo.length),!0)===wo)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 wo="<PlayReady";var yo=function(t){function n(n,i,r,e){var o;return(o=t.call(this,n,e)||this).kc=void 0,o.mc=void 0,o.kc=i,o.mc=r,o}return rt(n,t),n}($t),po=function(t){function n(n,i){var r;(r=t.call(this)||this).pc=void 0,r.bc=!1,r.Ac=void 0,r.Tc=void 0,r.Sc=function(){r.Ec()},r.Ic=function(t){r.Da(new co(Yt(r),t.messageType,lo(r.Rc,t.message)))},r.Nc=function(){r.bc=!0,r.pc.uc>0&&(r.pc.ec(),r.Da(new fo(Yt(r)))),r.Dc.removeEventListener("keystatuseschange",r.Sc),r.Dc.removeEventListener("message",r.Ic)},r.Dc=n,r.Rc=i,r.Dc.addEventListener("keystatuseschange",r.Sc),r.Dc.addEventListener("message",r.Ic),r.pc=new ho;var e=[];return r.Dc.closed&&e.push(E.resolve(r.Dc.closed)),r.Tc=new vo,e.push(r.Tc.wc),r.Ac=E.race(e).then(r.Nc,r.Nc),r.Ec(),r}rt(n,t);var i=n.prototype;return i.Cc=function(){if(this.bc)return this.Ac;var t,n,i=[];return i.push(E.resolve(this.Dc.close())),i.push((t=1e3,new E(function(i,r){if(void 0!==n&&n.Kh)r(new Qt);else{var e=m.Kr(function(){void 0!==n&&n.oa(o),i()},t),o=function(){m.Qr(e),r(new Qt)};void 0!==n&&n.ua(o)}}))),this.Tc.gc(E.race(i).catch(bo)),this.bc=!0,this.Ac},i.Pc=function(t,n,i){return E.resolve(this.Dc.generateRequest(t,n)).catch(bo)},i.Oc=function(t){return E.resolve(this.Dc.load(t)).catch(bo)},i.Bc=function(){return E.resolve(this.Dc.remove()).catch(bo)},i.Lc=function(t){return E.resolve(this.Dc.update(t)).catch(bo)},i.Ec=function(){var t=this;this.pc.ec(),this.Dc.keyStatuses.forEach(function(n,i){t.Mc(i,n)}),this.Da(new fo(this))},i.Mc=function(t,n){if("string"==typeof t){var i=t;t=n,n=i}var r=Tn(t);if(this.Rc===Ke&&16===r.byteLength){var e=In(r),o=e.getUint32(0,!0),u=e.getUint16(4,!0),s=e.getUint16(6,!0);e.setUint32(0,o,!1),e.setUint16(4,u,!1),e.setUint16(6,s,!1)}this.Rc===Ke&&"status-pending"===n&&(n="usable"),this.pc.rc(r,n)},P(n,[{key:"xc",get:function(){return this.Ac}},{key:"Uc",get:function(){return this.Dc.expiration}},{key:"Fc",get:function(){return this.pc}},{key:"Hc",get:function(){return this.Dc.sessionId}}]),n}(Fn);function bo(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 yo(t.message,void 0,n,t)}var go=function(){function t(t,n,i){this.Vc=t,this.Xc=n,this.zc=i}var n=t.prototype;return n.Wc=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 po(this.Vc.createSession(n),this.Xc));case 1:case"end":return t.stop()}},t,this)}));return function(n){return t.apply(this,arguments)}}(),n.qc=function(t){return E.resolve(this.Vc.setServerCertificate(t))},n.Gc=function(t){return E.resolve(t.setMediaKeys(this.Vc))},n.jc=function(t){return E.resolve(t.setMediaKeys(null))},t}(),mo=function(){function t(t,n,i){this.Yc=t,this.Rc=n,this.Qc=i}var n=t.prototype;return n.Kc=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.Yc.createMediaKeys();case 2:return n=t.sent,t.abrupt("return",new go(n,this.Rc,this.Qc));case 4:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),n.Zc=function(){return this.Qc},P(t,[{key:"Xc",get:function(){return this.Yc.keySystem}}]),t}();function _o(t,n,i,r){var e=!1;if(!(r.persistentState&&"optional"!==r.persistentState||r.distinctiveIdentifier&&"optional"!==r.distinctiveIdentifier)){var o={audioCapabilities:[],videoCapabilities:[],persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",initDataTypes:r.initDataTypes,sessionTypes:["temporary"],label:r.label,tf:r.tf},u=!1;if(r.audioCapabilities){var s=r.audioCapabilities.filter(function(t){return Boolean(t.contentType)});s.length&&(o.audioCapabilities=s.filter(function(r){return Eo(t,n,i,r)}),u=!0,o.audioCapabilities.length&&(e=!0))}if(r.videoCapabilities){var f=r.videoCapabilities.filter(function(t){return Boolean(t.contentType)});f.length&&(o.videoCapabilities=f.filter(function(r){return Eo(t,n,i,r)}),u=!0,o.videoCapabilities.length&&(e=!0))}return u||(e=t(i,"video/mp4")),e?o:void 0}}function Eo(t,n,i,r){return!!r.contentType&&(!(r.encryptionScheme&&!O(n,r.encryptionScheme))&&(!r.robustness&&t(i,(e=r.contentType,o=e.trim(),(u=o.indexOf(";"))<0?o:o.substr(0,u).trim()))));var e,o,u}function Ro(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 Io(t){return!(!t.audioCapabilities||!t.audioCapabilities.some(So))||!(!t.videoCapabilities||!t.videoCapabilities.some(So))}function So(t){return!t.robustness}function To(t,n){for(var i=[],r=0;r<t.length;r++){var e=t[r];e.robustness?i.push(e):i.push(Ge({},e,{robustness:n}))}return i}var ko,Ao,Oo=function(){function t(){}return t.prototype.Yh=function(){var t=E.coroutine(_.mark(function t(n,i){var r,o,u,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.tf}),r=0,o=i;r<o.length;r++)(u=o[r]).audioCapabilities&&(u.audioCapabilities=Ro(u.audioCapabilities)),u.videoCapabilities&&(u.videoCapabilities=Ro(u.videoCapabilities));if("com.widevine.alpha"!==n||!i.some(Io)){t.next=14;break}return s=i.map(function(t){return i="SW_SECURE_CRYPTO",Ge({},n=t,{videoCapabilities:n.videoCapabilities?To(n.videoCapabilities,i):void 0,audioCapabilities:n.audioCapabilities?To(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 mo(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 mo(a,n,h));case 19:case"end":return t.stop()}},t,null,[[4,12]])}));return function(n,i){return t.apply(this,arguments)}}(),t.nf=function(){return void 0!==e&&"function"==typeof e.requestMediaKeySystemAccess},t}(),No=function(){function t(){}return t.prototype.Yh=function(t,n){try{return E.resolve(function(t,n){if(!Do())throw new a("Unsupported key system "+t)}(t))}catch(t){return E.reject(t)}},t.nf=function(){return Do()},t}();function Do(){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"}(ko||(ko={})),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"}(Ao||(Ao={})),function(t){(Ao||(Ao={})).fromCode=function(t){var n=v.floor(t/1e3);if(n in Ao)return n;throw new a("Invalid error code: "+t)}}();var Co=function(){function t(){}return t.prototype.Yh=function(t,n){try{return E.resolve(function(t,n){if(t!==Ze)throw new a(t+" is not supported with webkit-prefixed Encrypted Media Extensions.");if(!xo())throw new a("Unsupported key system "+t)}(t))}catch(t){return E.reject(t)}},t.nf=function(){return xo()},t}();function xo(){return void 0!==Ie.WebKitMediaKeys}var Bo,Fo=function(){function t(t){this.Sf=t}return t.prototype.Yh=function(){var t=E.coroutine(_.mark(function t(n,i){var r,e,o;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=0,e=this.Sf;case 1:if(!(r<e.length)){t.next=14;break}return o=e[r],t.prev=3,t.next=6,o.Yh(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}(),Po=function(t){function n(n){var i;return(i=t.call(this)||this).ef=void 0,i.kf=void 0,i.if=void 0,i.Ef=!1,i.If=void 0,i.Rf=void 0,i.Nf=void 0,i.Df=void 0,i.Cf=void 0,i.Rc=n,i.if=new vo,i.Rf="",i.Cf=new vo,i.Nf=new ho,i}rt(n,t);var i=n.prototype;return i.Pf=function(){this.kf&&(this.df("usable"),this.kf.gc(void 0),this.kf=void 0)},i.Of=function(t){var n=new yo("Unknown CDM error",t.errorCode,t.systemCode);this.kf?(this.kf.yc(n),this.kf=void 0):this.ef?(this.ef.yc(n),this.ef=void 0):n.kc===WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT?this.df("output-restricted"):1===n.mc?this.df("expired"):this.df("internal-error")},i.Bf=function(t){0!==t.message.byteLength&&(this.ef&&(this.ef.gc(void 0),this.ef=void 0),this.Da(new co(this,"license-request",lo(this.Rc,kn(t.message).buffer),t.defaultURL||void 0)))},i.Lf=function(t){this.Df||(this.Df=t,this.Cf.gc(t))},i.Cc=function(){var t=E.coroutine(_.mark(function t(){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.throwIfClosed(),this.Ef=!0,this.if.gc(void 0);case 3:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),i.Pc=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.ef=new vo,this.If=Tn(i),t.t0=this.Df,t.t0){t.next=8;break}return t.next=7,this.Cf.wc;case 7:t.t0=t.sent;case 8:return t.t0.webkitGenerateKeyRequest(this.Rc,this.If),t.next=12,this.ef.wc;case 12:case"end":return t.stop()}},t,this)}));return function(n,i){return t.apply(this,arguments)}}(),i.Oc=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.Bc=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.Lc=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.kf=new vo,t.t0=this.Df,t.t0){t.next=7;break}return t.next=6,this.Cf.wc;case 6:t.t0=t.sent;case 7:return t.t0.webkitAddKey(this.Rc,Tn(n),this.If,this.Hc),t.next=11,this.kf.wc;case 11:case"end":return t.stop()}},t,this)}));return function(n){return t.apply(this,arguments)}}(),i.throwIfClosed=function(){if(this.Ef)throw new a("Already closing or closed.")},i.df=function(t){this.Nf.ec(),this.Nf.rc(ao,t),this.Da(new fo(this))},P(n,[{key:"Fc",get:function(){return this.Nf}},{key:"Hc",get:function(){return this.Rf},set:function(t){this.Rf=t}},{key:"xc",get:function(){return this.if.wc}},{key:"Uc",get:function(){return NaN}}]),n}(Fn),jo=function(){function t(t,n){var i=this;this.Df=void 0,this.Mf=U(),this.xf=[],this.vf=function(t){var n=i.Uf(t.sessionId);n&&n.Pf()},this.Ff=function(t){var n=i.Uf(t.sessionId);n&&n.Of(t)},this.Hf=function(t){var n=i.Uf(t.sessionId);n&&n.Bf(t)},this.Xc=t,this.zc=n}var n=t.prototype;return n.Gc=function(t){return this.Df=t,this.Df.addEventListener("webkitkeyadded",this.vf),this.Df.addEventListener("webkitkeyerror",this.Ff),this.Df.addEventListener("webkitkeymessage",this.Hf),this.Mf.forEach(function(n,i){return n.Lf(t)}),this.xf.forEach(function(n){return n.Lf(t)}),E.resolve()},n.jc=function(t){return t.removeEventListener("webkitkeyadded",this.vf),t.removeEventListener("webkitkeyerror",this.Ff),t.removeEventListener("webkitkeymessage",this.Hf),this.Df=void 0,E.resolve()},n.Wc=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 Po(this.Xc),this.Df&&e.Lf(this.Df),this.xf.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.qc=function(t){return E.resolve(!1)},n.Uf=function(t){if(t){var n=this.Mf.get(t);return n||((n=this.xf.shift())?(n.Hc=t,this.Mf.set(t,n),n):void 0)}},t}(),Uo=function(){function t(t,n){this.Xc=t,this.Vf=n}var n=t.prototype;return n.Kc=function(){return E.resolve(new jo(this.Xc,this.Vf))},n.Zc=function(){return this.Vf},t}(),Mo=function(){function t(){}return t.prototype.Yh=function(t,n){try{return E.resolve(Lo(t,n))}catch(t){return E.reject(t)}},t.nf=function(){return"undefined"!=typeof HTMLMediaElement&&void 0!==HTMLMediaElement.prototype.webkitGenerateKeyRequest&&void 0!==HTMLMediaElement.prototype.webkitAddKey&&void 0!==HTMLMediaElement.prototype.webkitCancelKeyRequest},t}();function Lo(t,n){if(!Mo.nf())throw new a("Unsupported key system "+t);for(var i=0;i<n.length;i++){var r=n[i],e=_o(qo,so,t,r);if(e)return new Uo(t,e)}throw new a("Unsupported key system configuration for "+t)}function qo(t,n){var i=Oe();return!(!i||!i.canPlayType||""===i.canPlayType(n,t))}function Wo(){return Bo||(Bo=function(){var t=[];Co.nf()&&t.push(new Co);Oo.nf()&&t.push(new Oo);No.nf()&&t.push(new No);Mo.nf()&&t.push(new Mo);return new Fo(t)}()),Bo}var Xo=function(){function t(){this.Xf=U()}var n=t.prototype;return n.ec=function(t){this.Xf.delete(t)},n.zf=function(){this.Xf.clear()},n.nc=function(t){return this.Xf.get(t)},n.Wf=function(t,n){this.Xf.set(t,n)},t}(),Ho=function(){function t(){}return t.qf=function(){return t.nu||(t.nu=Vo.nf()?new Vo:new Xo),t.nu},t.ec=function(n){t.qf().ec(n)},t.zf=function(){t.qf().zf()},t.nc=function(n){return t.qf().nc(n)},t.Wf=function(n,i){t.qf().Wf(n,i)},t}();Ho.nu=void 0;var Vo=function(n){function i(){return n.apply(this,arguments)||this}rt(i,n),i.nf=function(){try{return t.sessionStorage.setItem("foobar","foobar"),t.sessionStorage.removeItem("foobar"),!0}catch(t){return!1}};var r=i.prototype;return r.ec=function(n){t.sessionStorage.removeItem(n)},r.zf=function(){t.sessionStorage.clear()},r.nc=function(n){return t.sessionStorage[n]},r.Wf=function(n,i){t.sessionStorage[n]=i},i}(Ho);var zo=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 o=t[e];i.append(o)}return i.getBlob(n&&n.type||"")}):null}();function Go(t,n,i){var e=zo([n],{type:"application/octet-stream"}),o=URL.createObjectURL(e),u=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=o,s.download=u,r.body.appendChild(s),s.click(),r.body.removeChild(s),URL.revokeObjectURL(o)}var Yo,Ko;!function(t){t.Gf="jf",t.Yf="Qf",t.Kf="contentprotectionerror",t.Zf="contentprotectionsuccess",t.Jf="currentsourcechange",t.$f="destroy",t.tv="durationchange",t.rv="emptied",t.Ya="encrypted",t.ev="ended",t.uv="ov",t.hv="loadstart",t.fv="manifestupdate",t.vv="nosupportedrepresentationfound",t._v="offline",t.wv="online",t.yv="pause",t.mv="play",t.pv="progress",t.bv="ratechange",t.Av="representationchange",t.Tv="resize",t.Sv="seeked",t.Ev="seeking",t.Iv="segmentnotfound",t.Rv="Nv",t.Dv="Cv",t.Pv="sourcechange",t.Ov="timeupdate",t.Bv="volumechange",t.Lv="Mv",t.xv="metricschange"}(Yo||(Yo={})),function(t){t.Uv="arraybuffer",t.Fv="json",t.Hv="stream",t.fu="text"}(Ko||(Ko={}));var $o=function(){function t(n){var i=this;this.Ch=void 0,this.Ch={},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=Jo(i),r=Zo(r);var e=i.toLowerCase();if(this.Ch.hasOwnProperty(e)){var o=this.Ch[e],u=o[1];o[1]=u?u+", "+r:r}else this.Ch[e]=[i,r]},n.delete=function(t){var n=Jo(t).toLowerCase();delete this.Ch[n]},n.get=function(t){var n=Jo(t).toLowerCase();return this.Ch.hasOwnProperty(n)?this.Ch[n][1]:null},n.has=function(t){var n=Jo(t).toLowerCase();return this.Ch.hasOwnProperty(n)},n.set=function(t,n){var i=t,r=(i=Jo(i)).toLowerCase();this.Ch[r]=[i,Zo(n)]},n.forEach=function(t,n){for(var i in this.Ch)this.Ch.hasOwnProperty(i)&&t.call(n,this.Ch[i][1],i,this)},n.asList=function(){var t=[];for(var n in this.Ch)if(this.Ch.hasOwnProperty(n)){var i=this.Ch[n],r=i[0],e=i[1];t.push([r,e])}return t},n.Vv=function(){var t={};return this.forEach(function(n,i){t[i]=n}),t},n.Xv=function(t){var n=this;t.forEach(function(t,i){n.append(i,t)})},n.zv=function(t){var n=this;t.forEach(function(t,i){n.set(i,t)})},t}();function Jo(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 Zo(t){var n=t;return"string"!=typeof n&&(n=String(n)),n}var Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(t){return"Symbol("+t+")"};function tu(){}var nu=Number.isNaN||function(t){return t!=t},iu=tu;function ru(t){return"object"==typeof t&&null!==t||"function"==typeof t}function eu(t){return t.slice()}function ou(t){return!1!==function(t){if("number"!=typeof t)return!1;if(nu(t))return!1;if(t<0)return!1;return!0}(t)&&t!==1/0}function uu(t,n,i){if("function"!=typeof t)throw new a("Argument is not a function");return Function.prototype.apply.call(t,n,i)}function su(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 cu(e,t,r)};case 1:return function(n){var i=[n].concat(r);return cu(e,t,i)}}}return function(){return bu(void 0)}}function fu(t,n,i){var r=t[n];if(void 0!==r)return uu(r,t,i)}function cu(t,n,i){try{return bu(uu(t,n,i))}catch(t){return gu(t)}}function au(t){return t}function hu(t){if(t=Number(t),nu(t)||t<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return t}function vu(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 lu=E,du=E.prototype.then,wu=E.resolve.bind(lu),yu=E.reject.bind(lu);function pu(t){return new lu(t)}function bu(t){return wu(t)}function gu(t){return yu(t)}function mu(t,n,i){return du.call(t,n,i)}function _u(t,n,i){mu(mu(t,n,i),void 0,iu)}function Eu(t,n){_u(t,n)}function Ru(t,n){_u(t,void 0,n)}function Iu(t,n,i){return mu(t,n,i)}function Su(t){mu(t,void 0,iu)}var Tu=function(){function t(){this.Wv=0,this.qv=0,this.wr={Gv:[],Yv:void 0},this.Qv=this.wr,this.Wv=0,this.qv=0}return h.defineProperty(t.prototype,"length",{get:function(){return this.qv},enumerable:!0,configurable:!0}),t.prototype.push=function(t){var n=this.Qv,i=n;16383===n.Gv.length&&(i={Gv:[],Yv:void 0}),n.Gv.push(t),i!==n&&(this.Qv=i,n.Yv=i),++this.qv},t.prototype.shift=function(){var t=this.wr,n=t,i=this.Wv,r=i+1,e=t.Gv,o=e[i];return 16384===r&&(n=t.Yv,r=0),--this.qv,this.Wv=r,t!==n&&(this.wr=n),e[i]=void 0,o},t.prototype.forEach=function(t){for(var n=this.Wv,i=this.wr,r=i.Gv;!(n===r.length&&void 0===i.Yv||n===r.length&&(n=0,0===(r=(i=i.Yv).Gv).length));)t(r[n]),++n},t.prototype.peek=function(){var t=this.wr,n=this.Wv;return t.Gv[n]},t}();function ku(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 Au(t,n){t.Kv=!0,t.Zv=n,n.Jv=t,"readable"===n.$v?Cu(t):"closed"===n.$v?function(t){Cu(t),Fu(t)}(t):xu(t,n.td)}function Ou(t,n){return Lf(t.Zv,n)}function Nu(t){"readable"===t.Zv.$v?Bu(t,new a("Reader was released and can no longer be used to monitor the stream's closedness")):function(t,n){xu(t,n)}(t,new a("Reader was released and can no longer be used to monitor the stream's closedness")),t.Zv.Jv=void 0,t.Zv=void 0}function Du(t){return new a("Cannot "+t+" a stream using a released reader")}function Cu(t){t.Ac=pu(function(n,i){t.rd=n,t.ed=i})}function xu(t,n){Cu(t),Bu(t,n)}function Bu(t,n){Su(t.Ac),t.ed(n),t.rd=void 0,t.ed=void 0}function Fu(t){t.rd(void 0),t.rd=void 0,t.ed=void 0}var Pu=Qo("[[CancelSteps]]"),ju=Qo("[[PullSteps]]");function Uu(t,n){void 0===n&&(n=!1);var i=new Vu(t);return i.Kv=n,i}function Mu(t){return pu(function(n,i){var r={_i:n,Z:i};t.Jv.ud.push(r)})}function Lu(t,n,i){var r=t.Jv;r.ud.shift()._i(ku(n,i,r.Kv))}function qu(t){return t.Jv.ud.length}function Wu(t){var n=t.Jv;return void 0!==n&&!!zu(n)}var Xu,Hu,Vu=function(){function t(t){if(!1===Uf(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");Au(this,t),this.ud=new Tu}return h.defineProperty(t.prototype,"closed",{get:function(){return zu(this)?this.Ac:gu(Yu("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return zu(this)?void 0===this.Zv?gu(Du("cancel")):Ou(this,t):gu(Yu("cancel"))},t.prototype.read=function(){return zu(this)?void 0===this.Zv?gu(Du("read from")):Gu(this):gu(Yu("read"))},t.prototype.releaseLock=function(){if(!zu(this))throw Yu("releaseLock");if(void 0!==this.Zv){if(this.ud.length>0)throw new a("Tried to release a reader lock when that reader has pending read() calls un-settled");Nu(this)}},t}();function zu(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"ud")}function Gu(t){var n=t.Zv;return n.od=!0,"closed"===n.$v?bu(ku(void 0,!0,t.Kv)):"errored"===n.$v?gu(n.td):n.hd[ju]()}function Yu(t){return new a("ReadableStreamDefaultReader.prototype."+t+" can only be used on a ReadableStreamDefaultReader")}"symbol"==typeof Qo.asyncIterator&&((Xu={})[Qo.asyncIterator]=function(){return this},Hu=Xu,h.defineProperty(Hu,Qo.asyncIterator,{enumerable:!1}));var Ku={next:function(){if(!1===$u(this))return gu(Ju("next"));var t=this.fd;return void 0===t.Zv?gu(Du("iterate")):Iu(Gu(t),function(n){var i=n.done;return i&&Nu(t),ku(n.value,i,!0)})},return:function(t){if(!1===$u(this))return gu(Ju("next"));var n=this.fd;if(void 0===n.Zv)return gu(Du("finish iterating"));if(n.ud.length>0)return gu(new a("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this.vd){var i=Ou(n,t);return Nu(n),Iu(i,function(){return ku(t,!0,!0)})}return Nu(n),bu(ku(t,!0,!0))}};function $u(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"fd")}function Ju(t){return new a("ReadableStreamAsyncIterator."+t+" can only be used on a ReadableSteamAsyncIterator")}function Zu(t){var n=t.ri.shift();return t.dd-=n.size,t.dd<0&&(t.dd=0),n.value}function Qu(t,n,i){if(!ou(i=Number(i)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");t.ri.push({value:n,size:i}),t.dd+=i}function ts(t){t.ri=new Tu,t.dd=0}void 0!==Hu&&h.setPrototypeOf(Ku,Hu),h.defineProperty(Ku,"next",{enumerable:!1}),h.defineProperty(Ku,"return",{enumerable:!1});var ns=Qo("[[AbortSteps]]"),is=Qo("[[ErrorSteps]]"),rs=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=vu(i);void 0===r&&(r=1),function(t,n,i,r){var e=h.create(Rs.prototype);var o=su(n,"write",1,[e]),u=su(n,"close",0,[]),s=su(n,"abort",1,[]);Is(t,e,function(){return fu(n,"start",[e])},o,u,s,i,r)}(this,t,r=hu(r),e)}return h.defineProperty(t.prototype,"locked",{get:function(){if(!1===us(this))throw Ds("locked");return ss(this)},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===us(this)?gu(Ds("abort")):!0===ss(this)?gu(new a("Cannot abort a stream that already has a writer")):fs(this,t)},t.prototype.close=function(){return!1===us(this)?gu(Ds("close")):!0===ss(this)?gu(new a("Cannot close a stream that already has a writer")):!0===ls(this)?gu(new a("Cannot close an already-closing stream")):cs(this)},t.prototype.getWriter=function(){if(!1===us(this))throw Ds("getWriter");return es(this)},t}();function es(t){return new ys(t)}function os(t){t.$v="writable",t.td=void 0,t.ld=void 0,t._d=void 0,t.wd=new Tu,t.yd=void 0,t.kd=void 0,t.md=void 0,t.pd=void 0,t.bd=!1}function us(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"_d")}function ss(t){return void 0!==t.ld}function fs(t,n){var i=t.$v;if("closed"===i||"errored"===i)return bu(void 0);if(void 0!==t.pd)return t.pd.Cn;var r=!1;"erroring"===i&&(r=!0,n=void 0);var e=pu(function(i,e){t.pd={Cn:void 0,_i:i,Z:e,Kn:n,Td:r}});return t.pd.Cn=e,!1===r&&hs(t,n),e}function cs(t){var n=t.$v;if("closed"===n||"errored"===n)return gu(new a("The stream (in "+n+" state) is not in the writable state and cannot be closed"));var i,r=pu(function(n,i){var r={_i:n,Z:i};t.kd=r}),e=t.ld;return void 0!==e&&!0===t.bd&&"writable"===n&&Ws(e),Qu(i=t._d,"close",0),ks(i),r}function as(t,n){"writable"!==t.$v?vs(t):hs(t,n)}function hs(t,n){var i=t._d;t.$v="erroring",t.td=n;var r=t.ld;void 0!==r&&ms(r,n),!1===function(t){if(void 0===t.yd&&void 0===t.md)return!1;return!0}(t)&&!0===i.Sd&&vs(t)}function vs(t){t.$v="errored",t._d[is]();var n=t.td;if(t.wd.forEach(function(t){t.Z(n)}),t.wd=new Tu,void 0!==t.pd){var i=t.pd;if(t.pd=void 0,!0===i.Td)return i.Z(n),void ds(t);_u(t._d[ns](i.Kn),function(){i._i(),ds(t)},function(n){i.Z(n),ds(t)})}else ds(t)}function ls(t){return void 0!==t.kd||void 0!==t.md}function ds(t){void 0!==t.kd&&(t.kd.Z(t.td),t.kd=void 0);var n=t.ld;void 0!==n&&Ps(n,t.td)}function ws(t,n){var i=t.ld;void 0!==i&&n!==t.bd&&(!0===n?function(t){Us(t)}(i):Ws(i)),t.bd=n}var ys=function(){function t(t){if(!1===us(t))throw new a("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===ss(t))throw new a("This stream has already been locked for exclusive writing by another writer");this.Ed=t,t.ld=this;var n,i=t.$v;if("writable"===i)!1===ls(t)&&!0===t.bd?Us(this):Ls(this),Bs(this);else if("erroring"===i)Ms(this,t.td),Bs(this);else if("closed"===i)Ls(this),Bs(n=this),js(n);else{var r=t.td;Ms(this,r),Fs(this,r)}}return h.defineProperty(t.prototype,"closed",{get:function(){return!1===ps(this)?gu(Cs("closed")):this.Ac},enumerable:!0,configurable:!0}),h.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===ps(this))throw Cs("desiredSize");if(void 0===this.Ed)throw xs("desiredSize");return function(t){var n=t.Ed,i=n.$v;if("errored"===i||"erroring"===i)return null;if("closed"===i)return 0;return Ts(n._d)}(this)},enumerable:!0,configurable:!0}),h.defineProperty(t.prototype,"ready",{get:function(){return!1===ps(this)?gu(Cs("ready")):this.Id},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===ps(this)?gu(Cs("abort")):void 0===this.Ed?gu(xs("abort")):function(t,n){return fs(t.Ed,n)}(this,t)},t.prototype.close=function(){if(!1===ps(this))return gu(Cs("close"));var t=this.Ed;return void 0===t?gu(xs("close")):!0===ls(t)?gu(new a("Cannot close an already-closing stream")):bs(this)},t.prototype.releaseLock=function(){if(!1===ps(this))throw Cs("releaseLock");void 0!==this.Ed&&_s(this)},t.prototype.write=function(t){return!1===ps(this)?gu(Cs("write")):void 0===this.Ed?gu(xs("write to")):Es(this,t)},t}();function ps(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"Ed")}function bs(t){return cs(t.Ed)}function gs(t,n){"pending"===t.Rd?Ps(t,n):function(t,n){Fs(t,n)}(t,n)}function ms(t,n){"pending"===t.Nd?qs(t,n):function(t,n){Ms(t,n)}(t,n)}function _s(t){var n=t.Ed,i=new a("Writer was released and can no longer be used to monitor the stream's closedness");ms(t,i),gs(t,i),n.ld=void 0,t.Ed=void 0}function Es(t,n){var i=t.Ed,r=i._d,e=function(t,n){try{return t.Dd(n)}catch(n){return As(t,n),1}}(r,n);if(i!==t.Ed)return gu(xs("write to"));var o=i.$v;if("errored"===o)return gu(i.td);if(!0===ls(i)||"closed"===o)return gu(new a("The stream is closing or closed and cannot be written to"));if("erroring"===o)return gu(i.td);var u=function(t){return pu(function(n,i){var r={_i:n,Z:i};t.wd.push(r)})}(i);return function(t,n,i){var r={chunk:n};try{Qu(t,r,i)}catch(n){return void As(t,n)}var e=t.Cd;if(!1===ls(e)&&"writable"===e.$v){var o=Os(t);ws(e,o)}ks(t)}(r,n,e),u}var Rs=function(){function t(){throw new a("WritableStreamDefaultController cannot be constructed explicitly")}return t.prototype.error=function(t){if(!1===function(t){if(!ru(t))return!1;if(!h.prototype.hasOwnProperty.call(t,"Cd"))return!1;return!0}(this))throw new a("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this.Cd.$v&&Ns(this,t)},t.prototype[ns]=function(t){var n=this.Pd(t);return Ss(this),n},t.prototype[is]=function(){ts(this)},t}();function Is(t,n,i,r,e,o,u,s){n.Cd=t,t._d=n,n.ri=void 0,n.dd=void 0,ts(n),n.Sd=!1,n.Dd=s,n.Od=u,n.Bd=r,n.Ld=e,n.Pd=o;var f=Os(n);ws(t,f),_u(bu(i()),function(){n.Sd=!0,ks(n)},function(i){n.Sd=!0,as(t,i)})}function Ss(t){t.Bd=void 0,t.Ld=void 0,t.Pd=void 0,t.Dd=void 0}function Ts(t){return t.Od-t.dd}function ks(t){var n=t.Cd;if(!1!==t.Sd&&void 0===n.yd)if("erroring"!==n.$v){if(0!==t.ri.length){var i=t.ri.peek().value;"close"===i?function(t){var n=t.Cd;(function(t){t.md=t.kd,t.kd=void 0})(n),Zu(t);var i=t.Ld();Ss(t),_u(i,function(){!function(t){t.md._i(void 0),t.md=void 0,"erroring"===t.$v&&(t.td=void 0,void 0!==t.pd&&(t.pd._i(),t.pd=void 0)),t.$v="closed";var n=t.ld;void 0!==n&&js(n)}(n)},function(t){!function(t,n){t.md.Z(n),t.md=void 0,void 0!==t.pd&&(t.pd.Z(n),t.pd=void 0),as(t,n)}(n,t)})}(t):function(t,n){var i=t.Cd;(function(t){t.yd=t.wd.shift()})(i),_u(t.Bd(n),function(){!function(t){t.yd._i(void 0),t.yd=void 0}(i);var n=i.$v;if(Zu(t),!1===ls(i)&&"writable"===n){var r=Os(t);ws(i,r)}ks(t)},function(n){"writable"===i.$v&&Ss(t),function(t,n){t.yd.Z(n),t.yd=void 0,as(t,n)}(i,n)})}(t,i.chunk)}}else vs(n)}function As(t,n){"writable"===t.Cd.$v&&Ns(t,n)}function Os(t){return Ts(t)<=0}function Ns(t,n){var i=t.Cd;Ss(t),hs(i,n)}function Ds(t){return new a("WritableStream.prototype."+t+" can only be used on a WritableStream")}function Cs(t){return new a("WritableStreamDefaultWriter.prototype."+t+" can only be used on a WritableStreamDefaultWriter")}function xs(t){return new a("Cannot "+t+" a stream using a released writer")}function Bs(t){t.Ac=pu(function(n,i){t.rd=n,t.ed=i,t.Rd="pending"})}function Fs(t,n){Bs(t),Ps(t,n)}function Ps(t,n){Su(t.Ac),t.ed(n),t.rd=void 0,t.ed=void 0,t.Rd="rejected"}function js(t){t.rd(void 0),t.rd=void 0,t.ed=void 0,t.Rd="resolved"}function Us(t){t.Id=pu(function(n,i){t.Md=n,t.xd=i}),t.Nd="pending"}function Ms(t,n){Us(t),qs(t,n)}function Ls(t){Us(t),Ws(t)}function qs(t,n){Su(t.Id),t.xd(n),t.Md=void 0,t.xd=void 0,t.Nd="rejected"}function Ws(t){t.Md(void 0),t.Md=void 0,t.xd=void 0,t.Nd="fulfilled"}function Xs(t){if("object"!=typeof t||null===t)return!1;try{return"boolean"==typeof t.aborted}catch(t){return!1}}var Hs="undefined"!=typeof DOMException?DOMException:void 0;var Vs,zs=function(t){if("function"!=typeof t&&"object"!=typeof t)return!1;try{return new t,!0}catch(t){return!1}}(Hs)?Hs:((Vs=function(t,n){this.message=t||"",this.name=n||"Error",c.captureStackTrace&&c.captureStackTrace(this,this.constructor)}).prototype=h.create(c.prototype),h.defineProperty(Vs.prototype,"constructor",{value:Vs,writable:!0,configurable:!0}),Vs);function Gs(t,n,i,r,e,o){var u=Uu(t),s=es(n);t.od=!0;var f=!1,c=bu(void 0);return pu(function(h,v){var l,d,w,y;if(void 0!==o){if(l=function(){var i=new zs("Aborted","AbortError"),o=[];!1===r&&o.push(function(){return"writable"===n.$v?fs(n,i):bu(void 0)}),!1===e&&o.push(function(){return"readable"===t.$v?Lf(t,i):bu(void 0)}),m(function(){return E.all(o.map(function(t){return t()}))},!0,i)},!0===o.aborted)return void l();o.addEventListener("abort",l)}if(g(t,u.Ac,function(t){!1===r?m(function(){return fs(n,t)},!0,t):_(!0,t)}),g(n,s.Ac,function(n){!1===e?m(function(){return Lf(t,n)},!0,n):_(!0,n)}),d=t,w=u.Ac,y=function(){!1===i?m(function(){return function(t){var n=t.Ed,i=n.$v;return!0===ls(n)||"closed"===i?bu(void 0):"errored"===i?gu(n.td):bs(t)}(s)}):_()},"closed"===d.$v?y():Eu(w,y),!0===ls(n)||"closed"===n.$v){var p=new a("the destination writable stream closed before all data could be piped to it");!1===e?m(function(){return Lf(t,p)},!0,p):_(!0,p)}function b(){var t=c;return mu(c,function(){return t!==c?b():void 0})}function g(t,n,i){"errored"===t.$v?i(t.td):Ru(n,i)}function m(t,i,r){function e(){_u(t(),function(){return R(i,r)},function(t){return R(!0,t)})}!0!==f&&(f=!0,"writable"===n.$v&&!1===ls(n)?Eu(b(),e):e())}function _(t,i){!0!==f&&(f=!0,"writable"===n.$v&&!1===ls(n)?Eu(b(),function(){return R(t,i)}):R(t,i))}function R(t,n){_s(s),Nu(u),void 0!==o&&o.removeEventListener("abort",l),t?v(n):h(void 0)}Su(pu(function(t,n){!function i(r){r?t():mu(!0===f?bu(!0):mu(s.Id,function(){return mu(Gu(u),function(t){return!0===t.done||(c=mu(Es(s,t.value),void 0,tu),!1)})}),i,n)}(!1)}))})}var Ys=function(){function t(){throw new a}return h.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===Ks(this))throw uf("desiredSize");return rf(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===Ks(this))throw uf("close");if(!1===ef(this))throw new a("The stream is not in a state that permits close");Qs(this)},t.prototype.enqueue=function(t){if(!1===Ks(this))throw uf("enqueue");if(!1===ef(this))throw new a("The stream is not in a state that permits enqueue");return tf(this,t)},t.prototype.error=function(t){if(!1===Ks(this))throw uf("error");nf(this,t)},t.prototype[Pu]=function(t){ts(this);var n=this.Ud(t);return Zs(this),n},t.prototype[ju]=function(){var t=this.Fd;if(this.ri.length>0){var n=Zu(this);return!0===this.Hd&&0===this.ri.length?(Zs(this),qf(t)):$s(this),bu(ku(n,!1,t.Jv.Kv))}var i=Mu(t);return $s(this),i},t}();function Ks(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"Fd")}function $s(t){!1!==Js(t)&&(!0!==t.Vd?(t.Vd=!0,_u(t.Xd(),function(){t.Vd=!1,!0===t.zd&&(t.zd=!1,$s(t))},function(n){nf(t,n)})):t.zd=!0)}function Js(t){var n=t.Fd;return!1!==ef(t)&&(!1!==t.Sd&&(!0===Mf(n)&&qu(n)>0||rf(t)>0))}function Zs(t){t.Xd=void 0,t.Ud=void 0,t.Dd=void 0}function Qs(t){var n=t.Fd;t.Hd=!0,0===t.ri.length&&(Zs(t),qf(n))}function tf(t,n){var i=t.Fd;if(!0===Mf(i)&&qu(i)>0)Lu(i,n,!1);else{var r=void 0;try{r=t.Dd(n)}catch(n){throw nf(t,n),n}try{Qu(t,n,r)}catch(n){throw nf(t,n),n}}$s(t)}function nf(t,n){var i=t.Fd;"readable"===i.$v&&(ts(t),Zs(t),Wf(i,n))}function rf(t){var n=t.Fd.$v;return"errored"===n?null:"closed"===n?0:t.Od-t.dd}function ef(t){var n=t.Fd.$v;return!1===t.Hd&&"readable"===n}function of(t,n,i,r,e,o,u){n.Fd=t,n.ri=void 0,n.dd=void 0,ts(n),n.Sd=!1,n.Hd=!1,n.zd=!1,n.Vd=!1,n.Dd=u,n.Od=o,n.Xd=r,n.Ud=e,t.hd=n,_u(bu(i()),function(){n.Sd=!0,$s(n)},function(t){nf(n,t)})}function uf(t){return new a("ReadableStreamDefaultController.prototype."+t+" can only be used on a ReadableStreamDefaultController")}var sf=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&v.floor(t)===t},ff=function(){function t(){throw new a("ReadableStreamBYOBRequest cannot be used directly")}return h.defineProperty(t.prototype,"view",{get:function(){if(!1===hf(this))throw kf("view");return this.Wd},enumerable:!0,configurable:!0}),t.prototype.respond=function(t){if(!1===hf(this))throw kf("respond");if(void 0===this.qd)throw new a("This BYOB request has been invalidated");this.Wd.buffer,function(t,n){if(!1===ou(n=Number(n)))throw new RangeError("bytesWritten must be a finite");_f(t,n)}(this.qd,t)},t.prototype.respondWithNewView=function(t){if(!1===hf(this))throw kf("respond");if(void 0===this.qd)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.Gd.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,_f(t,n.byteLength)}(this.qd,t)},t}(),cf=function(){function t(){throw new a("ReadableByteStreamController constructor cannot be used directly")}return h.defineProperty(t.prototype,"byobRequest",{get:function(){if(!1===af(this))throw Af("byobRequest");if(void 0===this.jd&&this.Gd.length>0){var t=this.Gd.peek(),n=new y(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),i=h.create(ff.prototype);!function(t,n,i){t.qd=n,t.Wd=i}(i,this,n),this.jd=i}return this.jd},enumerable:!0,configurable:!0}),h.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===af(this))throw Af("desiredSize");return Sf(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===af(this))throw Af("close");if(!0===this.Hd)throw new a("The stream has already been closed; do not close it again!");var t=this.Yd.$v;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.Yd;if(t.dd>0)return void(t.Hd=!0);if(t.Gd.length>0){var i=t.Gd.peek();if(i.bytesFilled>0){var r=new a("Insufficient bytes to fill elements in the given buffer");throw If(t,r),r}}Rf(t),qf(n)}(this)},t.prototype.enqueue=function(t){if(!1===af(this))throw Af("enqueue");if(!0===this.Hd)throw new a("stream is closed or draining");var n=this.Yd.$v;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.Yd,r=n.buffer,e=n.byteOffset,o=n.byteLength,u=au(r);if(!0===Wu(i))if(0===qu(i))wf(t,u,e,o);else{var s=new y(u,e,o);Lu(i,s,!1)}else!0===Df(i)?(wf(t,u,e,o),mf(t)):wf(t,u,e,o);vf(t)}(this,t)},t.prototype.error=function(t){if(!1===af(this))throw Af("error");If(this,t)},t.prototype[Pu]=function(t){this.Gd.length>0&&(this.Gd.peek().bytesFilled=0);ts(this);var n=this.Ud(t);return Rf(this),n},t.prototype[ju]=function(){var t=this.Yd;if(this.dd>0){var n=this.ri.shift();this.dd-=n.byteLength,bf(this);var i=void 0;try{i=new y(n.buffer,n.byteOffset,n.byteLength)}catch(t){return gu(t)}return bu(ku(i,!1,t.Jv.Kv))}var r=this.Qd;if(void 0!==r){var e=void 0;try{e=new ArrayBuffer(r)}catch(t){return gu(t)}var o={buffer:e,byteOffset:0,byteLength:r,bytesFilled:0,elementSize:1,ctor:y,readerType:"default"};this.Gd.push(o)}var u=Mu(t);return vf(this),u},t}();function af(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"Yd")}function hf(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"qd")}function vf(t){!1!==function(t){var n=t.Yd;if("readable"!==n.$v)return!1;if(!0===t.Hd)return!1;if(!1===t.Sd)return!1;if(!0===Wu(n)&&qu(n)>0)return!0;if(!0===Df(n)&&Nf(n)>0)return!0;if(Sf(t)>0)return!0;return!1}(t)&&(!0!==t.Vd?(t.Vd=!0,_u(t.Xd(),function(){t.Vd=!1,!0===t.zd&&(t.zd=!1,vf(t))},function(n){If(t,n)})):t.zd=!0)}function lf(t,n){var i=!1;"closed"===t.$v&&(i=!0);var r=df(n);"default"===n.readerType?Lu(t,r,i):function(t,n,i){var r=t.Jv;r.Kd.shift()._i(ku(n,i,r.Kv))}(t,r,i)}function df(t){var n=t.bytesFilled,i=t.elementSize;return new t.ctor(t.buffer,t.byteOffset,n/i)}function wf(t,n,i,r){t.ri.push({buffer:n,byteOffset:i,byteLength:r}),t.dd+=r}function yf(t,n){var i=n.elementSize,r=n.bytesFilled-n.bytesFilled%i,e=v.min(t.dd,n.byteLength-n.bytesFilled),o=n.bytesFilled+e,u=o-o%i,s=e,f=!1;u>r&&(s=u-n.bytesFilled,f=!0);for(var c,a,h,l,d,w=t.ri;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.dd-=b,pf(t,b,n),s-=b}return f}function pf(t,n,i){gf(t),i.bytesFilled+=n}function bf(t){0===t.dd&&!0===t.Hd?(Rf(t),qf(t.Yd)):vf(t)}function gf(t){void 0!==t.jd&&(t.jd.qd=void 0,t.jd.Wd=void 0,t.jd=void 0)}function mf(t){for(;t.Gd.length>0;){if(0===t.dd)return;var n=t.Gd.peek();!0===yf(t,n)&&(Ef(t),lf(t.Yd,n))}}function _f(t,n){var i=t.Gd.peek();if("closed"===t.Yd.$v){if(0!==n)throw new a("bytesWritten must be 0 when calling respond() on a closed stream");!function(t,n){n.buffer=au(n.buffer);var i=t.Yd;if(!0===Df(i))for(;Nf(i)>0;)lf(i,Ef(t))}(t,i)}else!function(t,n,i){if(i.bytesFilled+n>i.byteLength)throw new RangeError("bytesWritten out of range");if(pf(t,n,i),!(i.bytesFilled<i.elementSize)){Ef(t);var r=i.bytesFilled%i.elementSize;if(r>0){var e=i.byteOffset+i.bytesFilled,o=i.buffer.slice(e-r,e);wf(t,o,0,o.byteLength)}i.buffer=au(i.buffer),i.bytesFilled-=r,lf(t.Yd,i),mf(t)}}(t,n,i);vf(t)}function Ef(t){var n=t.Gd.shift();return gf(t),n}function Rf(t){t.Xd=void 0,t.Ud=void 0}function If(t,n){var i=t.Yd;"readable"===i.$v&&(!function(t){gf(t),t.Gd=new Tu}(t),ts(t),Rf(t),Wf(i,n))}function Sf(t){var n=t.Yd.$v;return"errored"===n?null:"closed"===n?0:t.Od-t.dd}function Tf(t,n,i){var r=h.create(cf.prototype);var e=su(n,"pull",0,[r]),o=su(n,"cancel",1,[]),u=n.autoAllocateChunkSize;if(void 0!==u&&(u=Number(u),!1===sf(u)||u<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");!function(t,n,i,r,e,o,u){n.Yd=t,n.zd=!1,n.Vd=!1,n.jd=void 0,n.ri=n.dd=void 0,ts(n),n.Hd=!1,n.Sd=!1,n.Od=hu(o),n.Xd=r,n.Ud=e,n.Qd=u,n.Gd=new Tu,t.hd=n,_u(bu(i()),function(){n.Sd=!0,vf(n)},function(t){If(n,t)})}(t,r,function(){return fu(n,"start",[r])},e,o,i,u)}function kf(t){return new a("ReadableStreamBYOBRequest.prototype."+t+" can only be used on a ReadableStreamBYOBRequest")}function Af(t){return new a("ReadableByteStreamController.prototype."+t+" can only be used on a ReadableByteStreamController")}function Of(t){return pu(function(n,i){var r={_i:n,Z:i};t.Jv.Kd.push(r)})}function Nf(t){return t.Jv.Kd.length}function Df(t){var n=t.Jv;return void 0!==n&&!!xf(n)}var Cf=function(){function t(t){if(!Uf(t))throw new a("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===af(t.hd))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");Au(this,t),this.Kd=new Tu}return h.defineProperty(t.prototype,"closed",{get:function(){return xf(this)?this.Ac:gu(Bf("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return xf(this)?void 0===this.Zv?gu(Du("cancel")):Ou(this,t):gu(Bf("cancel"))},t.prototype.read=function(t){return xf(this)?void 0===this.Zv?gu(Du("read from")):ArrayBuffer.isView(t)?(t.buffer,0===t.byteLength?gu(new a("view must have non-zero byteLength")):function(t,n){var i=t.Zv;if(i.od=!0,"errored"===i.$v)return gu(i.td);return function(t,n){var i=t.Yd,r=1;n.constructor!==DataView&&(r=n.constructor.BYTES_PER_ELEMENT);var e=n.constructor,o={buffer:au(n.buffer),byteOffset:n.byteOffset,byteLength:n.byteLength,bytesFilled:0,elementSize:r,ctor:e,readerType:"byob"};if(t.Gd.length>0)return t.Gd.push(o),Of(i);if("closed"===i.$v)return bu(ku(new e(o.buffer,o.byteOffset,0),!0,i.Jv.Kv));if(t.dd>0){if(!0===yf(t,o)){var u=df(o);return bf(t),bu(ku(u,!1,i.Jv.Kv))}if(!0===t.Hd){var s=new a("Insufficient bytes to fill elements in the given buffer");return If(t,s),gu(s)}}t.Gd.push(o);var f=Of(i);return vf(t),f}(i.hd,n)}(this,t)):gu(new a("view must be an array buffer view")):gu(Bf("read"))},t.prototype.releaseLock=function(){if(!xf(this))throw Bf("releaseLock");if(void 0!==this.Zv){if(this.Kd.length>0)throw new a("Tried to release a reader lock when that reader has pending read() calls un-settled");Nu(this)}},t}();function xf(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"Kd")}function Bf(t){return new a("ReadableStreamBYOBReader.prototype."+t+" can only be used on a ReadableStreamBYOBReader")}var Ff=function(){function t(t,n){void 0===t&&(t={}),void 0===n&&(n={}),jf(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),Tf(this,t,r=hu(r))}else{if(void 0!==e)throw new RangeError("Invalid type is specified");var o=vu(i);void 0===r&&(r=1),function(t,n,i,r){var e=h.create(Ys.prototype),o=su(n,"pull",0,[e]),u=su(n,"cancel",1,[]);of(t,e,function(){return fu(n,"start",[e])},o,u,i,r)}(this,t,r=hu(r),o)}}return h.defineProperty(t.prototype,"locked",{get:function(){if(!1===Uf(this))throw Xf("locked");return Mf(this)},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return!1===Uf(this)?gu(Xf("cancel")):!0===Mf(this)?gu(new a("Cannot cancel a stream that already has a reader")):Lf(this,t)},t.prototype.getReader=function(t){var n=(void 0===t?{}:t).mode;if(!1===Uf(this))throw Xf("getReader");if(void 0===n)return Uu(this,!0);if("byob"===(n=String(n)))return function(t,n){void 0===n&&(n=!1);var i=new Cf(t);return i.Kv=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,o=e.preventClose,u=e.preventAbort,s=e.preventCancel,f=e.signal;if(!1===Uf(this))throw Xf("pipeThrough");if(!1===us(i))throw new a("writable argument to pipeThrough must be a WritableStream");if(!1===Uf(r))throw new a("readable argument to pipeThrough must be a ReadableStream");if(o=Boolean(o),u=Boolean(u),s=Boolean(s),void 0!==f&&!Xs(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===ss(i))throw new a("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return Su(Gs(this,i,o,u,s,f)),r},t.prototype.pipeTo=function(t,n){var i=void 0===n?{}:n,r=i.preventClose,e=i.preventAbort,o=i.preventCancel,u=i.signal;return!1===Uf(this)?gu(Xf("pipeTo")):!1===us(t)?gu(new a("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(r=Boolean(r),e=Boolean(e),o=Boolean(o),void 0===u||Xs(u)?!0===Mf(this)?gu(new a("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===ss(t)?gu(new a("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Gs(this,t,r,e,o,u):gu(new a("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},t.prototype.tee=function(){if(!1===Uf(this))throw Xf("tee");var t=function(t,n){var i,r,e,o,u,s=Uu(t),f=!1,c=!1,a=!1,h=pu(function(t){u=t});function v(){return!0===f?bu(void 0):(f=!0,Su(Iu(Gu(s),function(t){if(f=!1,!0===t.done)return!1===c&&Qs(e.hd),void(!1===a&&Qs(o.hd));var n=t.value,i=n,r=n;!1===c&&tf(e.hd,i),!1===a&&tf(o.hd,r)})),bu(void 0))}function l(){}return e=Pf(l,v,function(n){if(c=!0,i=n,!0===a){var e=eu([i,r]),o=Lf(t,e);u(o)}return h}),o=Pf(l,v,function(n){if(a=!0,r=n,!0===c){var e=eu([i,r]),o=Lf(t,e);u(o)}return h}),Ru(s.Ac,function(t){nf(e.hd,t),nf(o.hd,t)}),[e,o]}(this);return eu(t)},t.prototype.getIterator=function(t){var n=(void 0===t?{}:t).preventCancel,i=void 0!==n&&n;if(!1===Uf(this))throw Xf("getIterator");return function(t,n){void 0===n&&(n=!1);var i=Uu(t),r=h.create(Ku);return r.fd=i,r.vd=Boolean(n),r}(this,i)},t}();function Pf(t,n,i,r,e){void 0===r&&(r=1),void 0===e&&(e=function(){return 1});var o=h.create(Ff.prototype);return jf(o),of(o,h.create(Ys.prototype),t,n,i,r,e),o}function jf(t){t.$v="readable",t.Jv=void 0,t.td=void 0,t.od=!1}function Uf(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"hd")}function Mf(t){return void 0!==t.Jv}function Lf(t,n){return t.od=!0,"closed"===t.$v?bu(void 0):"errored"===t.$v?gu(t.td):(qf(t),Iu(t.hd[Pu](n),tu))}function qf(t){t.$v="closed";var n=t.Jv;void 0!==n&&(zu(n)&&(n.ud.forEach(function(t){t._i(ku(void 0,!0,n.Kv))}),n.ud=new Tu),Fu(n))}function Wf(t,n){t.$v="errored",t.td=n;var i=t.Jv;void 0!==i&&(zu(i)?(i.ud.forEach(function(t){t.Z(n)}),i.ud=new Tu):(i.Kd.forEach(function(t){t.Z(n)}),i.Kd=new Tu),Bu(i,n))}function Xf(t){return new a("ReadableStream.prototype."+t+" can only be used on a ReadableStream")}"symbol"==typeof Qo.asyncIterator&&h.defineProperty(Ff.prototype,Qo.asyncIterator,{value:Ff.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var Hf=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,o=i.size,u=i.highWaterMark;if(void 0!==t.writableType)throw new RangeError("Invalid writable type specified");var s=vu(r);if(void 0===e&&(e=1),e=hu(e),void 0!==t.readableType)throw new RangeError("Invalid readable type specified");var f,c=vu(o);void 0===u&&(u=0),u=hu(u),function(t,n,i,r,e,o){function u(){return n}t.Zd=function(t,n,i,r,e,o){void 0===e&&(e=1),void 0===o&&(o=function(){return 1});var u=h.create(rs.prototype);return os(u),Is(u,h.create(Rs.prototype),t,n,i,r,e,o),u}(u,function(n){return function(t,n){var i=t.Jd;if(!0===t.bd){var r=t.$d;return Iu(r,function(){var r=t.Zd,e=r.$v;if("erroring"===e)throw r.td;return tc(i,n)})}return tc(i,n)}(t,n)},function(){return function(t){var n=t.il,i=t.Jd,r=i.ul();return Zf(i),Iu(r,function(){if("errored"===n.$v)throw n.td;var t=n.hd;!0===ef(t)&&Qs(t)},function(i){throw zf(t,i),n.td})}(t)},function(n){return function(t,n){return zf(t,n),bu(void 0)}(t,n)},i,r),t.il=Pf(u,function(){return function(t){return Yf(t,!1),t.$d}(t)},function(n){return Gf(t,n),bu(void 0)},e,o),t.bd=void 0,t.$d=void 0,t.ol=void 0,Yf(t,!0),t.Jd=void 0}(this,pu(function(t){f=t}),e,s,u,c),function(t,n){var i=h.create($f.prototype),r=function(t){try{return Qf(i,t),bu(void 0)}catch(t){return gu(t)}},e=n.transform;if(void 0!==e){if("function"!=typeof e)throw new a("transform is not a method");r=function(t){return cu(e,n,[t,i])}}var o=su(n,"flush",0,[i]);!function(t,n,i,r){n.hl=t,t.Jd=n,n.al=i,n.ul=r}(t,i,r,o)}(this,t);var v=fu(t,"start",[this.Jd]);f(v)}return h.defineProperty(t.prototype,"readable",{get:function(){if(!1===Vf(this))throw ic("readable");return this.il},enumerable:!0,configurable:!0}),h.defineProperty(t.prototype,"writable",{get:function(){if(!1===Vf(this))throw ic("writable");return this.Zd},enumerable:!0,configurable:!0}),t}();function Vf(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"Jd")}function zf(t,n){nf(t.il.hd,n),Gf(t,n)}function Gf(t,n){Zf(t.Jd),As(t.Zd._d,n),!0===t.bd&&Yf(t,!1)}function Yf(t,n){void 0!==t.$d&&t.ol(),t.$d=pu(function(n){t.ol=n}),t.bd=n}var Kf,$f=function(){function t(){throw new a("TransformStreamDefaultController instances cannot be created directly")}return h.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===Jf(this))throw nc("desiredSize");return rf(this.hl.il.hd)},enumerable:!0,configurable:!0}),t.prototype.enqueue=function(t){if(!1===Jf(this))throw nc("enqueue");Qf(this,t)},t.prototype.error=function(t){if(!1===Jf(this))throw nc("error");var n;n=t,zf(this.hl,n)},t.prototype.terminate=function(){if(!1===Jf(this))throw nc("terminate");!function(t){var n=t.hl,i=n.il.hd;!0===ef(i)&&Qs(i);var r=new a("TransformStream terminated");Gf(n,r)}(this)},t}();function Jf(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"hl")}function Zf(t){t.al=void 0,t.ul=void 0}function Qf(t,n){var i=t.hl,r=i.il.hd;if(!1===ef(r))throw new a("Readable side is not in a state that permits enqueue");try{tf(r,n)}catch(t){throw Gf(i,t),i.il.td}(function(t){return!0!==Js(t)})(r)!==i.bd&&Yf(i,!0)}function tc(t,n){return Iu(t.al(n),void 0,function(n){throw zf(t.hl,n),n})}function nc(t){return new a("TransformStreamDefaultController.prototype."+t+" can only be used on a TransformStreamDefaultController")}function ic(t){return new a("TransformStream.prototype."+t+" can only be used on a TransformStream")}function rc(t){return n=[t],new Ff({start:function(t){for(var i=0;i<n.length;i++){var r=n[i];t.enqueue(r)}t.close()}});var n}function ec(t){return rc(new y(t))}function oc(t,n){return function(t,n){var i=n,r=t.getReader(),e=new vo,o=function(){u();var t=new Qt;r.cancel(t).catch(D),e.yc(t)},u=function(){i&&(i.oa(o),i=void 0)};i&&(i.Kh?o():i.ua(o));var s=[];return E.resolve(r.read()).then(function t(n){return n.done?(u(),E.resolve(s)):(s.push(n.value),E.resolve(r.read()).then(t))}).then(function(t){u(),e.gc(t)},function(t){u(),e.yc(t)}),e.wc}(t,n).then(function(t){return Dn(t).buffer})}function uc(t,n){var i=n,r=new Hf,e=r.readable,o=r.writable,u=o.getWriter(),s=function(){i&&i.ma()};return u.closed.then(s,s),t.then(function(t){return i=void 0,u.releaseLock(),t.pipeTo(o).catch(D)},function(t){return i=void 0,u.releaseLock(),o.abort(t).catch(D)}),e}function sc(t){return En(new y(t))}function fc(t){return Rn(t).buffer}!function(t){t[t.Hv=0]="Hv",t[t.fl=1]="fl"}(Kf||(Kf={}));var cc="content-type",ac="text/plain;charset=UTF-8",hc=function(){function t(){}var n=t.prototype;return n.vl=function(t){return this.dl(t).then(JSON.parse)},n.ll=function(t,n){switch(t){case Ko.Uv:return this._l(n);case Ko.Fv:return this.vl(n);case Ko.Hv:return this.wl();case Ko.fu:return this.dl(n);default:throw new a}},t}();function vc(t,n,i){if(t instanceof hc)return t;if(t instanceof Ff)return function(t,n){return new dc({Uh:Kf.Hv,wl:t,yl:lc(n)})}(t,i);var r=lc(i),e=E.resolve(t).then(function(t){return function(t,n){if(t){if("string"==typeof t)return{Uh:Ko.fu,bl:t,yl:n||ac};if(t instanceof ArrayBuffer||Nn(t))return{Uh:Ko.Uv,bl:_c(t),yl:n};if(T(i=t)&&i.constructor&&i.constructor===h||S(t))return{Uh:Ko.Fv,bl:t,yl:n};throw new a("Unsupported BodyInit type")}return{Uh:Ko.fu,bl:null,yl:n};var i}(t,r)});return new dc({Uh:Kf.fl,wc:e,Al:n})}function lc(t){return(t.get(cc)||"").toLowerCase()}var dc=function(t){function n(n){var i;return(i=t.call(this)||this).Tl=!1,i.Sl=void 0,i.El=new vo,i.El.wc.catch(D),i.Il(n),i}rt(n,t);var i=n.prototype;return i.Rl=function(){return this.El.wc},i.dl=function(t){return this.Nl(wc,t)},i.vl=function(t){return this.Nl(pc,t)},i._l=function(t){return this.Nl(gc,t)},i.wl=function(){return this.Dl((t=this.Sl).Uh===Kf.Hv?t.wl:uc(t.wc.then(mc).then(ec),t.Al));var t},i.Nl=function(t,n){if(this.Tl)return E.reject(new a("Already used"));this.Tl=!0;var i=t(this.Sl,n);return this.El.gc(i.then(D)),i},i.Dl=function(t){if(this.Tl)throw new a("Already used");if(t.locked)throw new a("Body stream is locked");this.Tl=!0;var n=new Hf,i=E.resolve(t.pipeTo(n.writable));return this.El.gc(i),n.readable},i.Il=function(t){this.Sl=t,t.Uh===Kf.fl&&t.wc.catch(D)},i.Cl=function(){if(this.Tl)throw new a("Already used");var t=function(t){if(t.Uh===Kf.Hv){var n=t.wl.tee(),i=n[0],r=n[1];return[{Uh:t.Uh,wl:i,yl:t.yl},{Uh:t.Uh,wl:r,yl:t.yl}]}var e=t.Al.Ta(),o=e[0],u=e[1];return[{Uh:t.Uh,wc:t.wc,Al:o},{Uh:t.Uh,wc:t.wc,Al:u}]}(this.Sl),i=t[0],r=t[1];return this.Il(i),new n(r)},P(n,[{key:"Pl",get:function(){return this.Tl}}]),n}(hc);function wc(t,n){return t.Uh===Kf.Hv?oc(t.wl,n).then(sc):(n&&t.Al.Aa(n),nn(t.wc.then(yc),t.Al))}function yc(t){switch(t.Uh){case Ko.fu:return E.resolve(t.bl||"");case Ko.Uv:return E.resolve(t.bl).then(sc);case Ko.Fv:return E.resolve(t.bl).then(JSON.stringify)}}function pc(t,n){return t.Uh===Kf.Hv?wc(t,n).then(JSON.parse):(n&&t.Al.Aa(n),nn(t.wc.then(bc),t.Al))}function bc(t){return t.Uh===Ko.Fv?E.resolve(t.bl):yc(t).then(JSON.parse)}function gc(t,n){return t.Uh===Kf.Hv?oc(t.wl,n):(n&&t.Al.Aa(n),nn(t.wc.then(mc),t.Al))}function mc(t){switch(t.Uh){case Ko.Uv:return E.resolve(t.bl);case Ko.fu:case Ko.Fv:return yc(t).then(fc)}}function _c(t){return t instanceof ArrayBuffer?t:kn(Sn(t)).buffer}function Ec(t){return t.Ol>=200&&t.Ol<=299||304===t.Ol}var Rc,Ic,Sc,Tc,kc=function(t){function n(n,i){var r,e,o,u,s,f;i?(e=i.Bl,o=i.Ll,u=i.Ol,s=i.Ml,f=i.xl):(e=[],o=Ko.fu,u=200,s="OK",f=!1);var c=n.Ul,a=new $o(n.Bl||e),h=n.Ll||o,v=n.Fl||(i&&i.Ul===c?i.Fl:c.Hl),l=i?i.Vl:null,d=vc(void 0!==n.Gu?n.Gu:l,n.Al||new Zt,a);return(r=t.call(this,d)||this).Bl=void 0,r.Ul=void 0,r.Fl=void 0,r.Ll=void 0,r.Ol=void 0,r.Ml=void 0,r.xl=void 0,r.Bl=a,r.Ul=c,r.Fl=v,r.Ll=h,r.Ol=void 0!==n.Ol?n.Ol:u,r.Ml=void 0!==n.Ml?String(n.Ml):s,r.xl=n.xl||f,r}rt(n,t);var i=n.prototype;return i.Gu=function(t){return this.ll(this.Ll,t)},i.vc=function(){return new n({Gu:this.Cl(),Ul:this.Ul},this)},n}(function(t){function n(n){var i;return(i=t.call(this)||this).Vl=void 0,i.Vl=n,i}rt(n,t);var i=n.prototype;return i.Rl=function(){return this.Vl.Rl()},i.dl=function(t){return this.Vl.dl(t)},i.vl=function(t){return this.Vl.vl(t)},i._l=function(t){return this.Vl._l(t)},i.wl=function(){return this.Vl.wl()},i.Cl=function(){return this.Vl.Cl()},P(n,[{key:"Pl",get:function(){return this.Vl.Pl}}]),n}(hc));!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.Xl="",t.zl="manifest",t.Wl="segment",t.ql="content-protection"}(Ic||(Ic={})),function(t){t.Xl="",t.Gl="initialization-segment",t.jl="fairplay-license",t.Yl="fairplay-certificate",t.Ql="widevine-license",t.Kl="widevine-certificate",t.Zl="playready-license",t.Jl="clearkey-license",t.$l="aes128-key"}(Sc||(Sc={})),function(t){t.Xl="",t.t_="audio",t.n_="video",t.fu="text",t.i_="image"}(Tc||(Tc={}));var Ac=function(t,n){this.bl=void 0,this.Bl=void 0,this.r_=void 0,this.Ll=void 0,this.e_=void 0,this.Sa=void 0,this.Uh=void 0,this.s_=void 0,this.u_=void 0,this.Hl=void 0,this.o_=void 0,this.h_=void 0;var i,r,e,o,u,s,f,c,a,h,v,l=t.Hl;n?(i=n.bl,r=n.Bl,e=n.r_,o=n.Ll,u=n.e_,s=n.Sa,f=n.Uh,c=n.s_,a=n.u_,h=n.o_,v=n.h_):(i=null,r={},e=Rc.GET,o=Ko.fu,u=0,f=Ic.Xl,c=Sc.Xl,a=Tc.Xl,h=!1),this.Hl=l,this.bl=t.bl||i,this.Bl=new $o(t.Bl||r),this.r_=t.r_||e,this.Ll=t.Ll||o,this.e_=void 0!==t.e_?Number(t.e_)||0:u,this.Sa=t.Sa||s||(new Zt).Sa,this.Uh=t.Uh||f,this.s_=t.s_||c,this.u_=t.u_||a,this.o_=void 0!==t.o_?Boolean(t.o_):h,this.h_=t.h_||v},Oc=function(){function t(){}var n=t.prototype;return n.Ul=function(t){var n=function(t){return new kc({Gu:null,Bl:{},Ul:t,Fl:t.Hl,Ll:t.Ll,Ol:0,Ml:Yo._v})}(new Ac(t));return E.resolve(n)},n.a_=function(t){},n.c_=function(){},t}();var Nc,Dc=function(){function t(t,n){void 0===n&&(n=!0),this.f_=void 0,this.v_=void 0,this.f_=t,this.v_=n}var n=t.prototype;return n.Ul=function(t){var n=this.d_(t);return this.f_.Ul(n)},n.a_=function(t){return this.f_.a_(this.l_(t))},n.d_=function(n){var i=new Ac(n);if(!this.v_){var r=t.__(i.Hl);i=new Ac({Hl:r},i)}return i},n.l_=function(n){var i=n.Hl;return this.v_||(i=t.__(i)),{Hl:i,bl:n.bl}},t.__=function(t){return m.yh&&fn(t,"http://")?t.replace(":","s:"):t},n.c_=function(){this.f_.c_()},P(t,null,[{key:"w_",get:function(){return t.g_||(t.g_=new t(new Oc)),t.g_}}]),t}();Dc.g_=void 0,function(t){t.y_="HttpOpenError",t.k_="HttpResponseError",t.m_="HttpTimeoutError"}(Nc||(Nc={}));var Cc=function(t){function n(n,i,r){var e;return(e=t.call(this,i,r)||this).p_=void 0,e.p_=n,e}return rt(n,t),P(n,[{key:"Ul",get:function(){return this.p_}}]),n}($t);var xc=function(t){function n(n,i){return t.call(this,n,"Error while opening "+n.Hl+". Invalid URL.",i)||this}return rt(n,t),P(n,[{key:"name",get:function(){return Nc.y_}}]),n}(Cc);var Bc=function(t){function n(n,i,r){var e;return(e=t.call(this,n.Ul,null!=r?r:function(t){return"Error while loading "+t.Ul.Hl+", status code "+t.Ol}(n),i)||this).b_=void 0,e.b_=n,e}return rt(n,t),P(n,[{key:"name",get:function(){return Nc.k_}},{key:"A_",get:function(){return this.b_}}]),n}(Cc);var Fc=function(t){function n(n,i){return t.call(this,n,function(t){return"Request for "+t.Hl+" timed out after "+t.e_+" seconds."}(n),i)||this}return rt(n,t),P(n,[{key:"name",get:function(){return Nc.m_}}]),n}(Cc),Pc=function(t,n){return(Pc=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 jc(t,n){function i(){this.constructor=t}Pc(t,n),t.prototype=null===n?h.create(n):(i.prototype=n.prototype,new i)}var Uc="object"==typeof i?i:"object"==typeof t?t:"object"==typeof global?global:null;var Mc=function(){var t=Uc.Blob;if(t)try{return new t,function(t,n){return new Uc.Blob(t,n)}}catch(t){}var n,i=Uc.BlobBuilder||Uc.WebKitBlobBuilder||Uc.MozBlobBuilder||Uc.MSBlobBuilder;return i?(n=i,function(t,i){var r=new n;if(t)for(var e=0,o=t;e<o.length;e++){var u=o[e];r.append(u)}return r.getBlob(i&&i.type||"")}):null}(),Lc="function"==typeof Ff?Ff:void 0;function qc(t){return t&&"function"==typeof t.getReader}function Wc(t){if("function"!=typeof t)return!1;try{var n=!1,i=new t({start:function(){n=!0}});return!!n&&qc(i)}catch(t){return!1}}var Xc=function(){function t(t,n){this.Jv=t,this.T_=n}return t.prototype.pull=function(t){var n=this;return this.Jv.read().then(function(i){n.T_&&n.T_(i),i.done?t.close():t.enqueue(i.value)})},t.prototype.cancel=function(t){return this.Jv.cancel(t)},t}();function Hc(t,n){return n.constructor===t?n:new t(new Xc(n.getReader()),{highWaterMark:0})}var Vc=function(){function t(t,n){this.S_=t,this.Pt=n}return t.prototype.pull=function(t){return this.S_().then(function(n){t.enqueue(new y(n)),t.close()})},t.prototype.cancel=function(t){this.Pt&&this.Pt(t)},t}();function zc(t,n,i){return new t(new Vc(n,i),{highWaterMark:0})}var Gc={searchParams:"URLSearchParams"in Uc,iterable:"Symbol"in Uc&&"iterator"in Symbol,blob:"FileReader"in Uc&&!!Mc,formData:"FormData"in Uc,arrayBuffer:"ArrayBuffer"in Uc,stream:Wc(Lc),streamRequest:"Request"in Uc&&"body"in Uc.Request.prototype,streamResponse:"Response"in Uc&&"body"in Uc.Response.prototype,abort:"AbortController"in Uc&&"Request"in Uc&&"signal"in Uc.Request.prototype,encoding:"TextEncoder"in Uc&&"TextDecoder"in Uc,url:"URL"in Uc&&function(t){try{return new Uc.URL(t).toString()===t}catch(t){return!1}}("http://example.com/"),firefox:"navigator"in Uc&&/Firefox\//.test(Uc.navigator.userAgent)};function Yc(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 Kc(t){return"string"!=typeof t&&(t=String(t)),t}function $c(t){var n={next:function(){var n=t.shift();return{done:void 0===n,value:n}}};return Gc.iterable&&(n[Symbol.iterator]=function(){return n}),n}var Jc=function(){function t(t){var n=this;this.Ch={};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 Gc.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=Yc(t),n=Kc(n);var i=t.toLowerCase();if(this.Ch.hasOwnProperty(i)){var r=this.Ch[i],e=r[1];r[1]=e?e+", "+n:n}else this.Ch[i]=[t,n]},t.prototype.delete=function(t){var n=Yc(t).toLowerCase();delete this.Ch[n]},t.prototype.get=function(t){var n=Yc(t).toLowerCase();return this.Ch.hasOwnProperty(n)?this.Ch[n][1]:null},t.prototype.has=function(t){var n=Yc(t).toLowerCase();return this.Ch.hasOwnProperty(n)},t.prototype.set=function(t,n){var i=(t=Yc(t)).toLowerCase();this.Ch[i]=[t,Kc(n)]},t.prototype.forEach=function(t,n){for(var i in this.Ch)this.Ch.hasOwnProperty(i)&&t.call(n,this.Ch[i][1],i,this)},t.prototype.keys=function(){var t=[];return this.forEach(function(n,i){t.push(i)}),$c(t)},t.prototype.values=function(){var t=[];return this.forEach(function(n){t.push(n)}),$c(t)},t.prototype.entries=function(){var t=[];return this.forEach(function(n,i){t.push([i,n])}),$c(t)},t.prototype.asList=function(){var t=[];for(var n in this.Ch)if(this.Ch.hasOwnProperty(n)){var i=this.Ch[n],r=i[0],e=i[1];t.push([r,e])}return t},t}();function Zc(){}Gc.iterable&&(Jc.prototype[Symbol.iterator]=Jc.prototype.entries);var Qc,ta,na,ia=v.min,ra=String.fromCharCode,ea=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+=ea){var e=ia(r+ea,n);i.push(ra.apply(null,t.slice(r,e)))}return i.join("")}(n)}function ua(t){if(t>=55296&&t<=57343)throw new c("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function sa(t,n){return t>>n&63|128}function fa(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(ua(t),n.push(t>>12&15|224),n.push(sa(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(sa(t,12)),n.push(sa(t,6))),n.push(63&t|128)):n.push(t)}function ca(){if(na>=ta)throw new c("Invalid byte index");var t=255&Qc[na];if(na++,128==(192&t))return 63&t;throw new c("Invalid continuation byte")}function aa(){var t,n;if(na>ta)throw new c("Invalid byte index");if(na===ta)return!1;if(t=255&Qc[na],na++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|ca())>=128)return n;throw new c("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|ca()<<6|ca())>=2048)return ua(n),n;throw new c("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|ca()<<12|ca()<<6|ca())>=65536&&n<=1114111)return n;throw new c("Invalid UTF-8 detected")}var ha=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"];function va(t){return t&&URLSearchParams.prototype.isPrototypeOf(t)}function la(t){return t&&ArrayBuffer.prototype.isPrototypeOf(t)}function da(t){return t&&DataView.prototype.isPrototypeOf(t)}var wa,ya=ArrayBuffer.isView||function(t){return t&&(ha.indexOf(h.prototype.toString.call(t))>-1||da(t))};function pa(t){if(t.bodyUsed)return E.reject(new a("Already used"));t.bodyUsed=!0}function ba(t){return new E(function(n,i){t.onload=function(){n(t.result)},t.onerror=function(){i(t.error)}})}function ga(t){return Gc.encoding?new Uc.TextDecoder("utf-8").decode(new y(t)):oa(function(t){ta=(Qc=t).length,na=0;for(var n,i=[];!1!==(n=aa());)i.push(n);return i}(new y(t)))}function ma(t){return Gc.encoding?(new Uc.TextEncoder).encode(t).buffer:new y(function(t){for(var n=[],i=0,r=t;i<r.length;i++)fa(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 o=t.charCodeAt(i++);56320==(64512&o)?n.push(((1023&e)<<10)+(1023&o)+65536):(n.push(e),i--)}else n.push(e)}return n}(t))).buffer}function _a(t){var n=t.getReader(),i=[],r=function(t){var e=t.done,o=t.value;return e?E.resolve(i):(i.push(o),n.read().then(r))};return n.read().then(r)}function Ea(t){return _a(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),o=0,u=0,s=t;u<s.length;u++){var f=s[u];e.set(f,o),o+=f.byteLength}return e}(t).buffer})}function Ra(t){return t.slice?t.slice(0):Ia(new y(t))}function Ia(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 Sa(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 Ta(t){var n=t;if(n.bodyUsed)throw new a("Already used");if(n.E_===wa.I_){if(!n.R_.tee)throw new c("could not clone ReadableStream body");var i=n.R_.tee(),r=i[0],e=i[1];return n.body=r,n.R_=r,n.N_=r,e}return n.E_===wa.Uv?Ra(n.R_):n.E_===wa.fl?n.R_.then(Ta):n.N_}!function(t){t[t.fu=0]="fu",t[t.D_=1]="D_",t[t.C_=2]="C_",t[t.Uv=3]="Uv",t[t.I_=4]="I_",t[t.fl=5]="fl"}(wa||(wa={}));var ka=function(){function t(n,i){this.bodyUsed=!1;var r,e,o,u=this;if(this.N_=n||null,n)if("string"==typeof n)this.E_=wa.fu,this.R_=n;else if((o=n)&&"function"==typeof o.then)this.E_=wa.fl,this.R_=E.resolve(n).then(function(n){return new t(n,i)}),this.R_.catch(Zc);else if(Gc.blob&&function(t){return t&&Blob.prototype.isPrototypeOf(t)}(n))this.E_=wa.D_,this.R_=n;else if(Gc.formData&&function(t){return t&&FormData.prototype.isPrototypeOf(t)}(n))this.E_=wa.C_,this.R_=n;else if(Gc.searchParams&&va(n))this.E_=wa.fu,this.R_=n.toString();else if(Gc.arrayBuffer&&(la(n)||ya(n)))da(n)&&(this.N_=new y((e=n).buffer,e.byteOffset,e.byteLength)),this.E_=wa.Uv,this.R_=la(r=n)?Ra(r):Ia(r);else{if(!Gc.stream||!qc(n))throw new c("unsupported BodyInit type");n=Hc(Lc,n),this.E_=wa.I_,this.R_=n,this.N_=n}else this.E_=wa.fu,this.R_="";this.P_="",i.has("content-type")?this.P_=(i.get("content-type")||"").toLowerCase():("string"==typeof n?this.P_="text/plain;charset=UTF-8":u.E_===wa.D_&&u.R_.type?this.P_=u.R_.type:Gc.searchParams&&va(n)&&(this.P_="application/x-www-form-urlencoded;charset=UTF-8"),this.P_&&i.set("content-type",this.P_)),Gc.stream&&(null==n?this.body=null:u.E_===wa.I_?this.body=u.R_:this.body=zc(Lc,function(){return u.arrayBuffer()},function(){u.bodyUsed=!0}))}return t.prototype.text=function(){var t,n,i,r=pa(this);return r||(this.E_===wa.D_?(t=this.R_,n=new FileReader,i=ba(n),n.readAsText(t),i):this.E_===wa.Uv?E.resolve(this.R_).then(ga):this.E_===wa.I_?Ea(this.R_).then(ga):this.E_===wa.fl?this.R_.then(function(t){return t.text()}):this.E_===wa.C_?E.reject(new c("could not read FormData body as text")):E.resolve(this.R_))},t.prototype.json=function(){return this.text().then(JSON.parse)},t}();Gc.blob&&(ka.prototype.blob=function(){var t,n,i=pa(this);return i||(this.E_===wa.D_?E.resolve(this.R_):this.E_===wa.Uv?E.resolve(Mc([this.R_],{type:this.P_})):this.E_===wa.I_?(t=this.R_,n=this.P_,_a(t).then(function(t){return Mc(t,{type:n||""})})):this.E_===wa.fl?this.R_.then(function(t){return t.blob()}):this.E_===wa.C_?E.reject(new c("could not read FormData body as Blob")):E.resolve(Mc([this.R_],{type:this.P_})))}),Gc.arrayBuffer&&(ka.prototype.arrayBuffer=function(){var t,n,i;return this.E_===wa.Uv?pa(this)||E.resolve(this.R_):this.E_===wa.D_?pa(this)||(t=this.R_,n=new FileReader,i=ba(n),n.readAsArrayBuffer(t),i):this.E_===wa.I_?Ea(this.R_):this.E_===wa.fl?pa(this)||this.R_.then(function(t){return t.arrayBuffer()}):this.E_===wa.C_?E.reject(new c("could not read FormData body as ArrayBuffer")):E.resolve(this.R_).then(ma)}),Gc.formData&&(ka.prototype.formData=function(){return this.E_===wa.C_?pa(this)||E.resolve(this.R_):this.text().then(Sa)});var Aa=[301,302,303,307,308],Oa=function(t){function n(n,i){var r=this,e=new Jc((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 jc(n,t),n.prototype.clone=function(){return new n(Ta(this),{status:this.status,statusText:this.statusText,headers:new Jc(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===Aa.indexOf(i))throw new RangeError("Invalid status code");return new n(null,{status:i,headers:{location:t}})},n}(ka);var Na,Da=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 u(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 u(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){o(function(){return i.call(n,t)})},r=this.listeners[t.type],e=0,u=r.length;e<u;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),u(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 u(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});(Na=Da)&&Na.__esModule&&h.prototype.hasOwnProperty.call(Na,"default")&&Na.default;Da.AbortSignal;var Ca=Da.AbortController,xa=Uc.DOMException;try{new xa}catch(t){(xa=function(t,n){c.call(this,t),this.name=n||"Error",c.captureStackTrace&&c.captureStackTrace(this,this.constructor)}).prototype=h.create(c.prototype),xa.prototype.constructor=xa}var Ba=Ca;function Fa(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 Pa(t,n,i){return new E(function(r,e){if(n.signal.aborted)return t.catch(Zc),e(ja());var o=function(){n.signal.removeEventListener("abort",o),e(ja())};n.signal.addEventListener("abort",o),t.then(function(t){n.signal.removeEventListener("abort",o),r(t),i&&n.abort()},function(t){n.signal.removeEventListener("abort",o),e(t),i&&n.abort()})})}function ja(){return new xa("Aborted","AbortError")}var Ua,Ma="moz-chunked-arraybuffer";function La(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"}(Ua||(Ua={}));var qa=function(){function t(t,n){var i=this;this.O_=!1,this.p_=t,this.B_=n,this.L_=new p,this.M_=new E(function(t,n){i.x_=t,i.U_=n})}return t.prototype.send=function(){var t=this;return this.F_().then(function(n){return t.H_(n,t.B_),t.M_})},t.prototype.F_=function(){var t=this.p_;return t.E_===wa.I_?t.arrayBuffer():E.resolve(t.N_)},t.prototype.V_=function(t){this.p_.onprogress&&this.p_.onprogress(t.loaded,t.lengthComputable?t.total:void 0)},t.prototype.X_=function(t){this.U_(t)},t.prototype.z_=function(){this.X_(new a("Network request failed"))},t.prototype.W_=function(){this.X_(new a("Network request failed"))},t.prototype.q_=function(){this.X_(ja())},t.prototype.H_=function(t,n){var i=this,r=this.p_,e=this.L_,o=function(){return i.G_()};if(r.signal.aborted)return this.q_();e.onreadystatechange=function(){if(e.readyState>=Ua.HEADERS_RECEIVED&&!i.O_){var t=function(t){var n=new Jc;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.O_=!0,i.j_(n)}},e.onprogress=function(t){return i.V_(t)},e.onload=function(){return i.Y_()},e.onerror=function(){return i.z_()},e.ontimeout=function(){return i.W_()},e.onabort=function(){return i.q_()},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",o),e.onloadend=function(){r.signal.removeEventListener("abort",o)},t?e.send(t):e.send()},t.prototype.G_=function(){this.q_(),this.L_.abort()},t}(),Wa=function(t){function n(n,i){var r=t.call(this,n,i)||this;return r.Q_=void 0,r.K_=void 0,r}return jc(n,t),n.prototype.j_=function(t){var n=this;this.Q_=new E(function(t,i){n.K_=t,n.Z_=i}),this.x_(new Oa(this.Q_,t))},n.prototype.Y_=function(){var t=this.L_.response||this.L_.responseText;this.K_(t)},n.prototype.X_=function(n){t.prototype.X_.call(this,n),this.Z_&&this.Z_(n)},n}(qa),Xa=function(t){function n(n){var i=t.call(this,n,Ma)||this;return i.J_=void 0,i.nw=void 0,i.iw=!1,i}return jc(n,t),n.prototype.j_=function(t){var n=this;this.J_=new Lc({start:function(t){n.nw=t},cancel:function(){n.iw=!0,n.G_()}}),this.x_(new Oa(this.J_,t))},n.prototype.V_=function(n){this.iw||this.nw.enqueue(new y(this.L_.response)),t.prototype.V_.call(this,n)},n.prototype.Y_=function(){this.nw.close()},n.prototype.X_=function(n){t.prototype.X_.call(this,n),this.nw&&!this.iw&&(this.iw=!0,this.nw.error(n))},n}(qa),Ha=function(){var t=Gc.firefox&&La(Ma);return Ha=function(){return t},t},Va=function(){var t;return t=Gc.arrayBuffer&&La("arraybuffer")?"arraybuffer":Gc.blob&&La("blob")?"blob":"",Va=function(){return t},t};function za(t){return(Gc.stream&&Ha()?new Xa(t):new Wa(t,Va())).send()}var Ga=Uc.fetch,Ya=Uc.Request,Ka=(Uc.Response,Uc.AbortController);var $a=["http:","https:"];var Ja=function(){try{if(Gc.streamRequest){var t=new Ya("about:blank",{body:"",method:"POST"}).body;if(t&&Wc(t.constructor))return t.constructor}}catch(t){}}();function Za(t,n,i){var r;if(Gc.stream){var e=void 0;if(Gc.streamResponse){var o=t.body;e=o&&Hc(Lc,o)}else e=zc(Lc,function(){return Pa(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 Xc(n.getReader(),i),{highWaterMark:0})}(Lc,t,function(t){var e=t.done,o=t.value;e?i=void 0===i?r:i:r+=o.byteLength,n(r,i)})}(e,i,Qa(t.headers))),r=e}else{var u=Pa(t.arrayBuffer(),n,!0);i&&(u=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})}(u,i,Qa(t.headers))),r=u}return new Oa(r,t)}function Qa(t){return t.has("content-length")?Number(t.get("content-length")):void 0}function th(t){var n=new Ba;return t.signal&&Fa(n,t.signal),function(t,n){var i,r,e=t;if(i=e.E_===wa.I_?Gc.streamRequest&&Ja?E.resolve(Hc(Ja,e.R_)):Pa(t.arrayBuffer(),n,!1):Pa(E.resolve(t.N_),n,!1),Gc.abort){var o=new Ka;Fa(o,n.signal),r=o.signal}return i.then(function(n){return new Ya(t.url,{body:n||void 0,credentials:t.credentials,headers:(i=t.headers,(i instanceof Jc?i:new Jc(i)).asList()),method:t.method,mode:t.mode,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:r});var i})}(t,n).then(function(i){return Ga(i).then(function(i){return Za(i,n,t.onprogress)})})}var nh=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];var ih=function(t){function n(i,r){var e,o,u,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,o=i.credentials,r.headers||(u=new Jc(i.headers)),s=i.method,f=i.mode,c=i.referrer,h=i.referrerPolicy,v=i.signal,l=i.onprogress,w||null==i.N_||(w=i.N_,i.bodyUsed=!0)}else e=String(i),o="same-origin",s="GET",f="cors",c="about:client",h="",v=null,l=null;if(!r.headers&&u||(u=new Jc(r.headers)),r&&(c="about:client",h=""),(d=t.call(this,w,u)||this).url=e,d.headers=u,d.credentials=r.credentials||o,d.method=function(t){var n=t.toUpperCase();return nh.indexOf(n)>-1?n:t}(r.method||s),d.mode=r.mode||f,d.signal=r.signal||v||(new Ba).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 jc(n,t),n.prototype.clone=function(){return new n(this,{body:Ta(this)})},n}(ka),rh="function"==typeof Ga&&Gc.stream&&Gc.streamResponse&&Gc.url;function eh(t,n){return new E(function(i){var r=new ih(t,n);i((rh&&function(t){try{return $a.indexOf(new Uc.URL(t,Uc.location.href).protocol)>=0}catch(t){return!1}}(r.url)?th:za)(r))})}eh.polyfill=!0;var oh=function(){function t(t){this.A_=void 0,this.p_=void 0,this.ew=new Zt,this.b_=void 0,this.uw=!1,this.p_=t,this.ew.Aa(t.Sa),this.A_=this.ow()}var n=t.prototype;return n.ow=function(){var t=E.coroutine(_.mark(function t(){var n,i,r,e,u,s,f,c,a=this;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(n=this.p_).e_&&o(function(){a.uw=!0,a.ew.ma()},n.e_),t.prev=2,i=eh(n.Hl,{method:n.r_,headers:n.Bl.Vv(),body:n.bl,credentials:n.o_?"include":"same-origin",signal:fh(this.ew.Sa),onprogress:n.h_}),t.next=9;break;case 6:throw t.prev=6,t.t0=t.catch(2),new xc(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.hw(t.t1))&&this.ew.ma(),e;case 20:if(u=r.url||n.Hl,s=0===r.status&&"file:"===(h=u,m.fh(h).protocol)?200:r.status,f=new uh(this,r,this.ew),c=new kc({Gu:f,Ul:n,Ll:n.Ll,Bl:new $o(r.headers.asList()),Ol:s,Ml:r.statusText,Fl:u}),this.b_=c,!Ec(c)){t.next=29;break}return t.abrupt("return",c);case 29:throw new Bc(c);case 30:case"end":return t.stop()}var h},t,this,[[2,6],[9,15]])}));return function(){return t.apply(this,arguments)}}(),n.hw=function(t){return tn(t)?this.uw?new Fc(this.p_):new Qt(t.message,t):this.b_?new Bc(this.b_,t):new xc(this.p_,t)},t}(),uh=function(t){function n(n,i,r){var e;return(e=t.call(this)||this).Sn=void 0,e.aw=void 0,e.ew=void 0,e.El=new vo,e.Sn=n,e.aw=i,e.ew=r,e.El.wc.catch(D),e}rt(n,t);var i=n.prototype;return i.Rl=function(){return this.El.wc},i.dl=function(t){return this.Nl(this.aw.text(),t)},i._l=function(t){return this.Nl(this.aw.arrayBuffer(),t)},i.wl=function(){var t=this.aw.body;return t?this.Dl(t):uc(this._l().then(ec),this.ew)},i.Cl=function(){var t=this.aw.clone(),i=this.ew.Ta(),r=i[0],e=i[1];return this.ew=r,new n(this.Sn,t,e)},i.Nl=function(t,n){var i=this;n&&this.ew.Aa(n);var r=E.resolve(t).catch(function(t){throw i.Sn.hw(t)});return r=nn(r,this.ew),this.El.gc(r.then(D)),r},i.Dl=function(t){var n=this,i=new Hf,r=E.resolve(t.pipeTo(i.writable,{preventAbort:!0})).catch(function(t){var r=n.Sn.hw(t);throw i.writable.abort(r).catch(D),r});return r=nn(r,this.ew),this.El.gc(r.then(D)),i.readable},P(n,[{key:"Pl",get:function(){return this.aw.bodyUsed}}]),n}(hc),sh="abort";function fh(t){var n=new Ba;if(t.Kh)n.abort();else if(!t.Zh){var i=function(){r(),n.abort()},r=function r(){n.signal.removeEventListener(sh,i),t.oa(i),t._a(r)};n.signal.addEventListener(sh,i),t.ua(i),t.va(r)}return n.signal}var ch=function(){function t(){}var n=t.prototype;return n.Ul=function(t){return new oh(t).A_},n.a_=function(t){var n=t.yl?{"Content-type":t.yl}:void 0;this.Ul(new Ac({r_:Rc.POST,Hl:t.Hl,bl:t.bl,Bl:n})).then(D,D)},n.c_=function(){},t}(),ah=function(n){function i(){for(var i,r=arguments.length,e=new Array(r),o=0;o<r;o++)e[o]=arguments[o];return(i=n.call.apply(n,[this].concat(e))||this).cw=void 0,i.fw=function(){try{return"body"in t.Response.prototype}catch(t){return!1}}(),i.vw=ii.js,i.dw=void 0,i}return rt(i,n),P(i,[{key:"ih",get:function(){return this.cw||(this.cw=new uo(Wo())),this.cw}},{key:"lw",get:function(){return this.fw}},{key:"_w",get:function(){return this.vw}},{key:"ww",get:function(){return!1}},{key:"gw",get:function(){return Ho.qf()}},{key:"yw",get:function(){return{mw:Go}}},{key:"pw",get:function(){return e.connection&&e.connection.effectiveType||"default"}},{key:"bw",get:function(){return e.connection&&e.connection.type||"unknown"}},{key:"Aw",get:function(){return this.dw||(this.dw=new Dc(new ch)),this.dw}}]),i}(Ve);R(new ah),R(new ah);var hh=t;hh.addEventListener("install",function(t){t.waitUntil(hh.skipWaiting())}),hh.addEventListener("activate",function(t){t.waitUntil(hh.clients.claim())}),zn.be.eb(hh)}()}("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),o=t.setTimeout,u=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:{},o=e.iterator||"@@iterator",u=e.asyncIterator||"@@asyncIterator",s=e.toStringTag||"@@toStringTag";function f(t,n,i,r){var e=n&&n.prototype instanceof g?n:g,o=h.create(e.prototype),u=new D(r||[]);return o.Ih=function(t,n,i){var r=l;return function(e,o){if(r===y)throw new c("Generator is already running");if(r===p){if("throw"===e)throw o;return x()}for(i.method=e,i.arg=o;;){var u=i.delegate;if(u){var s=A(u,i);if(s){if(s===b)continue;return s}}if("next"===i.method)i.sent=i.Rh=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,u),o}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[o]=function(){return this};var S=h.getPrototypeOf,R=S&&S(S(C([])));R&&R!==i&&r.call(R,o)&&(E=R);var I=_.prototype=g.prototype=h.create(E);function T(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this.Ih(n,t)}})}function k(t){var n;this.Ih=function(i,e){function o(){return new Promise(function(n,o){!function n(i,e,o,u){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,"Nh")?Promise.resolve(c.Nh).then(function(t){n("next",t,o,u)},function(t){n("throw",t,o,u)}):Promise.resolve(c).then(function(t){f.value=t,o(f)},function(t){return n("throw",t,o,u)})}u(s.arg)}(i,e,n,o)})}return n=n?n.then(o,o):o()}}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 o=e.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=n),i.delegate=null,b):o:(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[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!w(t.length)){var e=-1,u=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 u.next=u}}return{next:x}}function x(){return{value:n,done:!0}}m.prototype=I.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(I),t},t.awrap=function(t){return{Nh:t}},T(k.prototype),k.prototype[u]=function(){return this},t.AsyncIterator=k,t.async=function(n,i,r,e){var o=new k(f(n,i,r,e));return t.isGeneratorFunction(i)?o:o.next().then(function(t){return t.done?t.value:o.next()})},T(I),I[s]="Generator",I[o]=function(){return this},I.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.Rh=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 o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],s=u.completion;if("root"===u.tryLoc)return e("end");if(u.tryLoc<=this.prev){var f=r.call(u,"catchLoc"),a=r.call(u,"finallyLoc");if(f&&a){if(this.prev<u.catchLoc)return e(u.catchLoc,!0);if(this.prev<u.finallyLoc)return e(u.finallyLoc)}else if(f){if(this.prev<u.catchLoc)return e(u.catchLoc,!0)}else{if(!a)throw new c("try statement without catch or finally");if(this.prev<u.finallyLoc)return e(u.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 o=e;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=t,u.arg=n,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(u)},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 o(s,f){if(!r[s]){if(!i[s]){var a="function"==typeof n&&n;if(!f&&a)return a(s,!0);if(u)return u(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 o(n||t)},v,v.exports,t,i,r,e)}return r[s].exports}for(var u="function"==typeof n&&n,s=0;s<e.length;s++)o(e[s]);return o}({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"),u=t("./queue"),s=t("./util");function f(){this.g=!1,this.I=!1,this.R=new u(16),this.N=new u(16),this.M=!1,this.U=!0;var t=this;this.drainQueues=function(){t.F()},this.q=e}function a(t,n,i){this.R.push(t,n,i),this.G()}function h(t,n,i){this.N.push(t,n,i),this.G()}function v(t){this.N.j(t),this.G()}function l(t){for(;t.length()>0;)d(t)}function d(t){var n=t.shift();if("function"!=typeof n)n.Y();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.I||this.M},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!==o)o(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(){o(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.Y()})}):(f.prototype.invokeLater=a,f.prototype.invoke=h,f.prototype.settlePromises=v),f.prototype.F=function(){l(this.N),this.K(),this.M=!0,l(this.R)},f.prototype.G=function(){this.I||(this.I=!0,this.q(this.drainQueues))},f.prototype.K=function(){this.I=!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,o=function(t,n){this.Z(n)},u=function(t,n){n.promiseRejectionQueued=!0,n.bindingPromise.J(o,o,null,this,t)},s=function(t,n){0==(50397184&this.nt)&&this.ut(n.target)},f=function(t,n){n.promiseRejectionQueued||this.Z(t)};t.prototype.bind=function(o){e||(e=!0,t.prototype.ot=r.propagateFromFunction(),t.prototype.at=r.boundValueFunction());var c=i(o),a=new t(n);a.ot(this,1);var h=this.ct();if(a.ft(c),c instanceof t){var v={promiseRejectionQueued:!1,promise:a,target:h,bindingPromise:c};h.J(n,u,void 0,a,v),c.J(s,f,void 0,a,v),a.vt(c)}else a.ut(h);return a},t.prototype.ft=function(t){void 0!==t?(this.nt=2097152|this.nt,this.dt=t):this.nt=-2097153&this.nt},t.prototype._t=function(){return 2097152==(2097152&this.nt)},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),o=r(null);e[" size"]=o[" 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 o="Object "+i.classString(t)+" has no method '"+i.toString(r)+"'";throw new n.TypeError(o)}return e}(t,r);return e.apply(t,this)}function o(t){return t[this]}function u(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.J(e,void 0,void 0,n,void 0)},n.prototype.get=function(t){var n,i="number"==typeof t;if(i)n=u;else if(r){var e=(void 0)();n=null!==e?e:o}else n=o;return this.J(n,void 0,void 0,t,void 0)}}},{"./util":36}],6:[function(t,n,i){n.exports=function(n,i,r,e){var o=t("./util"),u=o.tryCatch,s=o.errorObj,f=n.wt;n.prototype.break=n.prototype.cancel=function(){if(!e.cancellation())return this.yt("cancellation is disabled");for(var t=this,n=t;t.kt();){if(!t.bt(n)){n.At()?n.Tt().cancel():n.St();break}var i=t.Et;if(null==i||!i.kt()){t.At()?t.Tt().cancel():t.St();break}t.At()&&t.Tt().cancel(),t.It(),n=t,t=i}},n.prototype.Rt=function(){this.Nt--},n.prototype.Dt=function(){return void 0===this.Nt||this.Nt<=0},n.prototype.bt=function(t){return t===this?(this.Nt=0,this.Ct(),!0):(this.Rt(),!!this.Dt()&&(this.Ct(),!0))},n.prototype.St=function(){this.Dt()&&this.Pt()},n.prototype.Pt=function(){this.kt()&&(this.Ot(),f.invoke(this.Bt,this,void 0))},n.prototype.Bt=function(){this.Lt()>0&&this.Y()},n.prototype.Mt=function(){this.xt=void 0},n.prototype.kt=function(){return this.isPending()&&!this.Ut()},n.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},n.prototype.Ft=function(t,n){if(o.isArray(t))for(var i=0;i<t.length;++i)this.Ft(t[i],n);else if(void 0!==t)if("function"==typeof t){if(!n){var r=u(t).call(this.at());r===s&&(this.Ht(r.e),f.throwLater(r.e))}}else t._resultCancelled(this)},n.prototype.Ct=function(){var t=this.Vt();this.Mt(),f.invoke(this.Ft,this,t)},n.prototype.Xt=function(){this.kt()&&(this.Ft(this.Vt(),!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,o=i.errorObj;return function(t,u,s){return function(f){var a=s.at();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(u).call(a,f)}else if("function"==typeof v){var l=e(v).call(a,f);if(l===o)return l;if(l)return e(u).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(u).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.zt=new r.CapturedTrace(e())}function e(){var t=i.length-1;if(t>=0)return i[t]}return t.prototype.Wt=function(){},t.prototype.qt=function(){},t.prototype.Gt=function(){return null},t.jt=t.prototype.jt=function(){},r.prototype.qt=function(){void 0!==this.zt&&(this.zt.Wt=null,i.push(this.zt))},r.prototype.Gt=function(){if(void 0!==this.zt){var t=i.pop(),n=t.Wt;return t.Wt=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,o=t.prototype.Gt,u=t.jt,s=t.prototype.jt,f=t.prototype.Wt;r.deactivateLongStackTraces=function(){t.prototype.qt=i,t.prototype.Gt=o,t.jt=u,t.prototype.jt=s,t.prototype.Wt=f,n=!1},n=!0,t.prototype.qt=r.prototype.qt,t.prototype.Gt=r.prototype.Gt,t.jt=t.prototype.jt=e,t.prototype.Wt=function(){var t=this.jt();t&&null==t.Wt&&(t.Wt=this)}},r}},{}],9:[function(t,n,i){n.exports=function(n,i){var e,u,s,f=n.Yt,v=n.wt,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,R=!(0==w.env("BLUEBIRD_DEBUG")),I=!(0==w.env("BLUEBIRD_WARNINGS")||!R&&!w.env("BLUEBIRD_WARNINGS")),T=!(0==w.env("BLUEBIRD_LONG_STACK_TRACES")||!R&&!w.env("BLUEBIRD_LONG_STACK_TRACES")),k=0!=w.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(I||!!w.env("BLUEBIRD_W_FORGOTTEN_RETURN"));n.prototype.suppressUnhandledRejections=function(){var t=this.ct();t.nt=-1048577&t.nt|524288},n.prototype.Qt=function(){if(0==(524288&this.nt)){this.Kt();var t=this;o(function(){t.Zt()},1)}},n.prototype.Jt=function(){$("rejectionHandled",e,void 0,this)},n.prototype.$t=function(){this.nt=268435456|this.nt},n.prototype.in=function(){return 0!=(268435456&this.nt)},n.prototype.Zt=function(){if(this.un()){var t=this.hn();this.cn(),$("unhandledRejection",u,t,this)}},n.prototype.cn=function(){this.nt=262144|this.nt},n.prototype.fn=function(){this.nt=-262145&this.nt},n.prototype.vn=function(){return(262144&this.nt)>0},n.prototype.Kt=function(){this.nt=1048576|this.nt},n.prototype.dn=function(){this.nt=-1048577&this.nt,this.vn()&&(this.fn(),this.Jt())},n.prototype.un=function(){return(1048576&this.nt)>0},n.prototype.yt=function(t,n,i){return z(t,n,i||this)},n.onPossiblyUnhandledRejection=function(t){var n=f();u="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._n,r=n.prototype.Ht,e=n.prototype.wn;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._n=t,n.prototype.Ht=r,n.prototype.wn=e,i.deactivateLongStackTraces(),v.enableTrampoline(),et.longStackTraces=!1},n.prototype._n=X,n.prototype.Ht=H,n.prototype.wn=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.yn(t)})}catch(t){return t}}function P(t){if(!this.kt())return this;var n=this.Vt();void 0!==n?w.isArray(n)?n.push(t):this.vt([n,t]):this.vt(t)}function j(){return this.xt}function U(t){this.xt=t}function L(){this.Et=void 0,this.xt=void 0}function M(t,n){if(0!=(1&n)){this.Et=t;var i=t.Nt;void 0===i&&(i=0),t.Nt=i+1}0!=(2&n)&&t._t()&&this.ft(t.dt)}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.pn=L,n.prototype.ot=M,n.prototype.Vt=j,n.prototype.vt=U,n.prototype.yn=P,n.prototype.An=F,q=M,et.cancellation=!0}return"monitoring"in t&&(t.monitoring&&!et.monitoring?(et.monitoring=!0,n.prototype.Tn=x):!t.monitoring&&et.monitoring&&(et.monitoring=!1,n.prototype.Tn=B)),n},n.prototype.Tn=B,n.prototype.An=function(t,n,i){try{t(n,i)}catch(t){return t}},n.prototype.Vt=function(){},n.prototype.vt=function(t){},n.prototype.yn=function(t){},n.prototype._n=function(){},n.prototype.Ht=function(){},n.prototype.wn=function(){},n.prototype.pn=function(){},n.prototype.ot=function(t,n){};var q=function(t,n){0!=(2&n)&&t._t()&&this.ft(t.dt)};function W(){var t=this.dt;return void 0!==t&&t instanceof n?t.isFulfilled()?t.value():void 0:t}function X(){this.zt=new it(this.jt())}function H(t,n){if(p(t)){var i=this.zt;if(void 0!==i&&n&&(i=i.Sn),void 0!==i)i.attachExtraTrace(t);else if(!t.En){var r=Y(t);w.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n")),w.notEnumerableProp(t,"En",!0)}}}function V(){this.zt=void 0}function z(t,i,r){if(et.warnings){var e,o=new d(t);if(i)r.Ht(o);else if(et.longStackTraces&&(e=n.jt()))e.attachExtraTrace(o);else{var u=Y(o);o.stack=u.message+"\n"+u.stack.join("\n")}x("warning",o)||K(o,"",!0)}}function G(t){for(var n=[],i=0;i<t.length;++i){var r=t[i],e=" (No stack trace)"===r||_.test(r),o=e&&Q(r);e&&!o&&(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:G(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.Sn=t,this.In=0;var n=this.Lt=1+(void 0===t?0:t.Lt);rt(this,it),n>32&&this.uncycle()}w.inherits(it,c),i.CapturedTrace=it,it.prototype.uncycle=function(){var t=this.Lt;if(!(t<2)){for(var n=[],i={},r=0,e=this;void 0!==e;++r)n.push(e),e=e.Sn;for(var r=(t=this.Lt=r)-1;r>=0;--r){var o=n[r].stack;void 0===i[o]&&(i[o]=r)}for(var r=0;r<t;++r){var u=n[r].stack,s=i[u];if(void 0!==s&&s!==r){s>0&&(n[s-1].Sn=void 0,n[s-1].Lt=1),n[r].Sn=void 0,n[r].Lt=1;var f=r>0?n[r-1]:this;s<t-1?(f.Sn=n[s+1],f.Sn.uncycle(),f.Lt=f.Sn.Lt+1):(f.Sn=void 0,f.Lt=1);for(var c=f.Lt+1,a=r-2;a>=0;--a)n[a].Lt=c,c++;return}}}},it.prototype.attachExtraTrace=function(t){if(!t.En){this.uncycle();for(var n=Y(t),i=n.message,r=[n.stack],e=this;void 0!==e;)r.push(G(e.stack.split("\n"))),e=e.Sn;!function(t){for(var n=t[0],i=1;i<t.length;++i){for(var r=t[i],e=n.length-1,o=n[e],u=-1,s=r.length-1;s>=0;--s)if(r[s]===o){u=s;break}for(var s=u;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,"En",!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:I,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.in())return;if(0==(65535&r.nt))return;i&&(i+=" ");var o="",u="";if(n.zt){for(var s=n.zt.stack.split("\n"),f=G(s),c=f.length-1;c>=0;--c){var a=f[c];if(!g.test(a)){var h=a.match(m);h&&(o="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&&(u="\n"+s[c-1]);break}}var l="a promise was created in a "+i+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+u;r.yt(l,!0,n)}},setBounds:function(t,n){if(Z()){for(var i,r,e=(t.stack||"").split("\n"),o=(n.stack||"").split("\n"),u=-1,s=-1,f=0;f<e.length;++f){var c=nt(e[f]);if(c){i=c.fileName,u=c.line;break}}for(var f=0;f<o.length;++f){var c=nt(o[f]);if(c){r=c.fileName,s=c.line;break}}u<0||s<0||!i||!r||i!==r||u>=s||(Q=function(t){if(b.test(t))return!0;var n=nt(t);return!!(n&&n.fileName===i&&u<=n.line&&n.line<=s)})}},warn:z,deprecated:function(t,n){var i=t+" is deprecated and will be removed in a future version.";return n&&(i+=" Use "+n+" instead."),z(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.J(n,void 0,void 0,{value:i},void 0)},t.prototype.throw=t.prototype.thenThrow=function(t){return this.J(i,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(arguments.length<=1)return this.J(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.J(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).J(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).J(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,o=t("./es5"),u=o.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]]);o.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"),o=0;o<e.length;++o)e[o]=t+e[o];r=e.join("\n"),n+=r+"\n"}return g--,n},f(m,c);var _=c.Rn;_||(_=u({CancellationError:d,TimeoutError:w,OperationalError:m,RejectionError:m,AggregateError:y}),o.defineProperty(c,"Rn",{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,o={}.toString,u={}.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]"===o.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 u}},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"),o=n.CancellationError,u=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.Z(n):t.cancelPromise.Pt(),t.cancelPromise=null,!0)}function v(){return d.call(this,this.promise.ct().hn())}function l(t){if(!h(this,t))return u.e=t,u}function d(t){var e=this.promise,s=this.handler;if(!this.called){this.called=!0;var f=this.isFinallyHandler()?s.call(e.at()):s.call(e.at(),t);if(f===r)return f;if(void 0!==f){e.$t();var a=i(f,e);if(a instanceof n){if(null!=this.cancelPromise){if(a.Ut()){var d=new o("late cancellation observer");return e.Ht(d),u.e=d,u}a.isPending()&&a.yn(new c(this))}return a.J(v,l,void 0,this,void 0)}}}return e.isRejected()?(h(this),u.e=t,u):(h(this),t)}return f.prototype.isFinallyHandler=function(){return 0===this.type},c.prototype._resultCancelled=function(){h(this.finallyHandler)},n.prototype.Nn=function(t,n,i,r){return"function"!=typeof t?this.then():this.J(i,r,void 0,new f(this,n,t),void 0)},n.prototype.lastly=n.prototype.finally=function(t){return this.Nn(t,0,d,d)},n.prototype.tap=function(t){return this.Nn(t,1,d)},n.prototype.tapCatch=function(t){var i=arguments.length;if(1===i)return this.Nn(t,1,void 0,d);var r,o=new Array(i-1),u=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)));o[u++]=f}o.length=u;var c=arguments[r];return this.Nn(s(o,c,this),1,void 0,d)},f}},{"./catch_filter":7,"./util":36}],16:[function(t,n,i){n.exports=function(n,i,r,e,o,u){var s=t("./errors"),f=s.TypeError,a=t("./util"),v=a.errorObj,l=a.tryCatch,d=[];function w(t,i,e,o){if(u.cancellation()){var s=new n(r),f=this.Dn=new n(r);this.Cn=s.lastly(function(){return f}),s._n(),s.vt(this)}else{var c=this.Cn=new n(r);c._n()}this.Pn=o,this.On=t,this.Bn=i,this.Ln=void 0,this.Mn="function"==typeof e?[e].concat(d):d,this.xn=null,this.Un=!1}a.inherits(w,o),w.prototype.Fn=function(){return null===this.Cn},w.prototype.Hn=function(){this.Cn=this.Ln=null,u.cancellation()&&null!==this.Dn&&(this.Dn.Vn(),this.Dn=null)},w.prototype.Xn=function(){if(!this.Fn()){var t,i=void 0!==this.Ln.return;if(i)this.Cn.qt(),t=l(this.Ln.return).call(this.Ln,void 0),this.Cn.Gt();else{var r=new n.CancellationError("generator .return() sentinel");n.coroutine.returnSentinel=r,this.Cn.Ht(r),this.Cn.qt(),t=l(this.Ln.throw).call(this.Ln,r),this.Cn.Gt()}this.Un=!0,this.xn=null,this.zn(t)}},w.prototype.Wn=function(t){this.xn=null,this.Cn.qt();var n=l(this.Ln.next).call(this.Ln,t);this.Cn.Gt(),this.zn(n)},w.prototype.qn=function(t){this.xn=null,this.Cn.Ht(t),this.Cn.qt();var n=l(this.Ln.throw).call(this.Ln,t);this.Cn.Gt(),this.zn(n)},w.prototype._resultCancelled=function(){if(this.xn instanceof n){var t=this.xn;this.xn=null,t.cancel()}},w.prototype.promise=function(){return this.Cn},w.prototype.Gn=function(){this.Ln=this.On.call(this.Bn),this.Bn=this.On=void 0,this.Wn(void 0)},w.prototype.zn=function(t){var i=this.Cn;if(t===v)return this.Hn(),this.Un?i.cancel():i.jn(t.e,!1);var r=t.value;if(!0===t.done)return this.Hn(),this.Un?i.cancel():i.ut(r);var o=e(r,this.Cn);if(o instanceof n||null!==(o=function(t,i,r){for(var o=0;o<i.length;++o){r.qt();var u=l(i[o])(t);if(r.Gt(),u===v){r.qt();var s=n.reject(v.e);return r.Gt(),s}var f=e(u,r);if(f instanceof n)return f}return null}(o,this.Mn,this.Cn))){var u=(o=o.ct()).nt;0==(50397184&u)?(this.xn=o,o.Yn(this,null)):0!=(33554432&u)?n.wt.invoke(this.Wn,this,o.Qn()):0!=(16777216&u)?n.wt.invoke(this.qn,this,o.Kn()):this.Xn()}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.Pn.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),o=new r(void 0,void 0,i,e),u=o.promise();return o.Ln=n,o.Wn(void 0),u}},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(u.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.Gn(n.spawn),e}}},{"./errors":12,"./util":36}],17:[function(t,n,i){n.exports=function(n,i,r,e,o,u){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,o,u){var s=n.Yt,f=t("./util"),c=f.tryCatch,h=f.errorObj,v=n.wt;function l(t,n,i,r){this.constructor$(t),this.Cn._n();var e=s();this.Zn=null===e?n:f.domainBind(e,n),this.Jn=r===o?new Array(this.length()):null,this.$n=i,this.ni=0,this.ri=[],v.invoke(this.ei,this,void 0)}function d(t,i,e,o){if("function"!=typeof i)return r("expecting a function but got "+f.classString(i));var u=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)));u=e.concurrency}return u="number"==typeof u&&isFinite(u)&&u>=1?u:0,new l(t,i,u,o).promise()}f.inherits(l,i),l.prototype.ei=function(){this._init$(void 0,-2)},l.prototype._init=function(){},l.prototype.Wn=function(t,i){var r=this.oi,o=this.length(),s=this.Jn,f=this.$n;if(i<0){if(r[i=-1*i-1]=t,f>=1&&(this.ni--,this.ai(),this.Fn()))return!0}else{if(f>=1&&this.ni>=f)return r[i]=t,this.ri.push(i),!1;null!==s&&(s[i]=t);var a=this.Cn,v=this.Zn,l=a.at();a.qt();var d=c(v).call(l,t,i,o),w=a.Gt();if(u.checkForgottenReturns(d,w,null!==s?"Promise.filter":"Promise.map",a),d===h)return this.Z(d.e),!0;var y=e(d,this.Cn);if(y instanceof n){var p=(y=y.ct()).nt;if(0==(50397184&p))return f>=1&&this.ni++,r[i]=y,y.Yn(this,-1*(i+1)),!1;if(0==(33554432&p))return 0!=(16777216&p)?(this.Z(y.Kn()),!0):(this.Pt(),!0);d=y.Qn()}r[i]=d}var b=++this.ci;return b>=o&&(null!==s?this.di(r,s):this._i(r),!0)},l.prototype.ai=function(){for(var t=this.ri,n=this.$n,i=this.oi;t.length>0&&this.ni<n;){if(this.Fn())return;var r=t.pop();this.Wn(i[r],r)}},l.prototype.di=function(t,n){for(var i=n.length,r=new Array(i),e=0,o=0;o<i;++o)t[o]&&(r[e++]=n[o]);r.length=e,this._i(r)},l.prototype.preservedValues=function(){return this.Jn},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,o){var u=t("./util"),s=u.tryCatch;n.method=function(t){if("function"!=typeof t)throw new n.TypeError("expecting a function but got "+u.classString(t));return function(){var r=new n(i);r._n(),r.qt();var e=s(t).apply(this,arguments),u=r.Gt();return o.checkForgottenReturns(e,u,"Promise.method",r),r.wi(e),r}},n.attempt=n.try=function(t){if("function"!=typeof t)return e("expecting a function but got "+u.classString(t));var r,f=new n(i);if(f._n(),f.qt(),arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var c=arguments[1],a=arguments[2];r=u.isArray(c)?s(t).apply(a,c):s(t).call(a,c)}else r=s(t)();var h=f.Gt();return o.checkForgottenReturns(r,h,"Promise.try",f),f.wi(r),f},n.prototype.wi=function(t){t===u.errorObj?this.jn(t.e,!1):this.ut(t,!0)}}},{"./util":36}],20:[function(t,n,i){var r=t("./util"),e=r.maybeWrapAsError,o=t("./errors"),u=o.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 u(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 o=i[e];f.test(o)||(n[o]=t[o])}return n}return r.markAsOriginatingFromRejection(t),t}n.exports=function(t,n){return function(i,r){if(null!==t){if(i){var o=a(e(i));t.Ht(o),t.Z(o)}else if(n){var u=[].slice.call(arguments,1);t.Vn(u)}else t.Vn(r);t=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(t,n,i){n.exports=function(n){var i=t("./util"),r=n.wt,e=i.tryCatch,o=i.errorObj;function u(t,n){if(!i.isArray(t))return s.call(this,t,n);var u=e(n).apply(this.at(),[null].concat(t));u===o&&r.throwLater(u.e)}function s(t,n){var i=this.at(),u=void 0===t?e(n).call(i,null):e(n).call(i,null,t);u===o&&r.throwLater(u.e)}function f(t,n){if(!t){var i=new c(t+"");i.cause=t,t=i}var u=e(n).call(this.at(),t);u===o&&r.throwLater(u.e)}n.prototype.asCallback=n.prototype.nodeify=function(t,n){if("function"==typeof t){var i=s;void 0!==n&&h(n).spread&&(i=u),this.J(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.ct())},e=function(t){return O.reject(new d(t))};function o(){}var u,s={},f=t("./util");u=f.isNode?function(){var t=process.domain;return void 0===t&&(t=null),t}:function(){return null},f.notEnumerableProp(O,"Yt",u);var c=t("./es5"),a=t("./async"),v=new a;c.defineProperty(O,"wt",{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,o),_=t("./context")(O),E=_.create,S=t("./debuggability")(O,_),R=(S.CapturedTrace,t("./finally")(O,g,b)),I=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.nt=0,this.gi=void 0,this.Ai=void 0,this.Ti=void 0,this.Si=void 0,this.Ei(t),this.Wt(),this.Tn("promiseCreated",this)}function N(t){this.promise.ut(t)}function D(t){this.promise.jn(t,!1)}function C(t){var n=new O(y);n.gi=t,n.Ai=t,n.Ti=t,n.Si=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),o=0;for(i=0;i<n-1;++i){var u=arguments[i];if(!f.isObject(u))return e("Catch statement predicate: expecting an object but got "+f.classString(u));r[o++]=u}if(r.length=o,"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,I(r,t,this))}return this.then(void 0,t)},O.prototype.reflect=function(){return this.J(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.yt(i)}return this.J(t,n,void 0,void 0,void 0)},O.prototype.done=function(t,n){var i=this.J(t,n,void 0,void 0,void 0);i.Ii()},O.prototype.spread=function(t){return"function"!=typeof t?e("expecting a function but got "+f.classString(t)):this.all().J(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.yt(".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._n();var i=arguments.length>1&&!!h(arguments[1]).multiArgs,r=A(t)(T(n,i));return r===k&&n.jn(r.e,!0),n.Ri()||n.Ni(),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))._n(),n.Di(),n.Ai=t),n},O.resolve=O.fulfilled=O.cast,O.reject=O.rejected=function(t){var n=new O(y);return n._n(),n.jn(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.J=function(t,n,i,r,e){var o=void 0!==e,s=o?e:new O(y),c=this.ct(),a=c.nt;o||(s.ot(this,3),s._n(),void 0===r&&0!=(2097152&this.nt)&&(r=0!=(50397184&a)?this.at():c===this?void 0:this.dt),this.Tn("promiseChained",this,s));var h=u();if(0!=(50397184&a)){var l,d,p=c.Ci;0!=(33554432&a)?(d=c.Ai,l=t):0!=(16777216&a)?(d=c.gi,l=n,c.dn()):(p=c.Pi,d=new w("late cancellation observer"),c.Ht(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.Oi(t,n,s,r,h);return s},O.prototype.Lt=function(){return 65535&this.nt},O.prototype.Ri=function(){return 0!=(117506048&this.nt)},O.prototype.At=function(){return 67108864==(67108864&this.nt)},O.prototype.Bi=function(t){this.nt=-65536&this.nt|65535&t},O.prototype.Di=function(){this.nt=33554432|this.nt,this.Tn("promiseFulfilled",this)},O.prototype.Li=function(){this.nt=16777216|this.nt,this.Tn("promiseRejected",this)},O.prototype.Mi=function(){this.nt=67108864|this.nt,this.Tn("promiseResolved",this)},O.prototype.Ii=function(){this.nt=4194304|this.nt},O.prototype.xi=function(){return(4194304&this.nt)>0},O.prototype.Ui=function(){this.nt=-65537&this.nt},O.prototype.Ot=function(){this.nt=65536|this.nt,this.Tn("promiseCancelled",this)},O.prototype.It=function(){this.nt=8388608|this.nt},O.prototype.Ni=function(){v.hasCustomScheduler()||(this.nt=134217728|this.nt)},O.prototype.Fi=function(t){var n=0===t?this.Si:this[4*t-4+3];if(n!==s)return void 0===n&&this._t()?this.at():n},O.prototype.Hi=function(t){return this[4*t-4+2]},O.prototype.Vi=function(t){return this[4*t-4+0]},O.prototype.Xi=function(t){return this[4*t-4+1]},O.prototype.at=function(){},O.prototype.zi=function(t){t.nt;var n=t.gi,i=t.Ai,r=t.Ti,e=t.Fi(0);void 0===e&&(e=s),this.Oi(n,i,r,e,null)},O.prototype.Wi=function(t,n){var i=t.Vi(n),r=t.Xi(n),e=t.Hi(n),o=t.Fi(n);void 0===o&&(o=s),this.Oi(i,r,e,o,null)},O.prototype.Oi=function(t,n,i,r,e){var o=this.Lt();if(o>=65531&&(o=0,this.Bi(0)),0===o)this.Ti=i,this.Si=r,"function"==typeof t&&(this.gi=null===e?t:f.domainBind(e,t)),"function"==typeof n&&(this.Ai=null===e?n:f.domainBind(e,n));else{var u=4*o-4;this[u+2]=i,this[u+3]=r,"function"==typeof t&&(this[u+0]=null===e?t:f.domainBind(e,t)),"function"==typeof n&&(this[u+1]=null===e?n:f.domainBind(e,n))}return this.Bi(o+1),o},O.prototype.Yn=function(t,n){this.Oi(void 0,void 0,n,t,null)},O.prototype.ut=function(t,n){if(0==(117506048&this.nt)){if(t===this)return this.jn(i(),!1);var r=g(t,this);if(!(r instanceof O))return this.Vn(t);n&&this.ot(r,2);var e=r.ct();if(e!==this){var o=e.nt;if(0==(50397184&o)){var u=this.Lt();u>0&&e.zi(this);for(var s=1;s<u;++s)e.Wi(this,s);this.Mi(),this.Bi(0),this.qi(e)}else if(0!=(33554432&o))this.Vn(e.Qn());else if(0!=(16777216&o))this.Z(e.Kn());else{var f=new w("late cancellation observer");e.Ht(f),this.Z(f)}}else this.Z(i())}},O.prototype.jn=function(t,n,i){var r=f.ensureErrorObject(t),e=r===t;if(!e&&!i&&S.warnings()){var o="a promise was rejected with a non-error: "+f.classString(t);this.yt(o,!0)}this.Ht(r,!!n&&e),this.Z(t)},O.prototype.Ei=function(t){if(t!==y){var n=this;this._n(),this.qt();var i=!0,r=this.An(t,function(t){n.ut(t)},function(t){n.jn(t,i)});i=!1,this.Gt(),void 0!==r&&n.jn(r,!0)}},O.prototype.Gi=function(t,n,i,r){var e=r.nt;if(0==(65536&e)){var o;r.qt(),n===p?i&&"number"==typeof i.length?o=A(t).apply(this.at(),i):(o=k).e=new d("cannot .spread() a non-array: "+f.classString(i)):o=A(t).call(n,i);var u=r.Gt();0==(65536&(e=r.nt))&&(o===b?r.Z(i):o===k?r.jn(o.e,!1):(S.checkForgottenReturns(o,u,"",r,this),r.ut(o)))}},O.prototype.ct=function(){for(var t=this;t.At();)t=t.Tt();return t},O.prototype.Tt=function(){return this.Ai},O.prototype.qi=function(t){this.Ai=t},O.prototype.ji=function(t,n,i,e){var u=t instanceof O,s=this.nt,f=0!=(134217728&s);0!=(65536&s)?(u&&t.Xt(),i instanceof R&&i.isFinallyHandler()?(i.cancelPromise=t,A(n).call(i,e)===k&&t.Z(k.e)):n===r?t.Vn(r.call(i)):i instanceof o?i.Xn(t):u||t instanceof m?t.Pt():i.cancel()):"function"==typeof n?u?(f&&t.Ni(),this.Gi(n,i,e,t)):n.call(i,e,t):i instanceof o?i.Fn()||(0!=(33554432&s)?i.Wn(e,t):i.qn(e,t)):u&&(f&&t.Ni(),0!=(33554432&s)?t.Vn(e):t.Z(e))},O.prototype.Pi=function(t){var n=t.handler,i=t.promise,r=t.receiver,e=t.value;"function"==typeof n?i instanceof O?this.Gi(n,r,e,i):n.call(r,e,i):i instanceof O&&i.Z(e)},O.prototype.Ci=function(t){this.ji(t.promise,t.handler,t.receiver,t.value)},O.prototype.Yi=function(t,n,i){var r=this.Ti,e=this.Fi(0);this.Ti=void 0,this.Si=void 0,this.ji(r,t,e,n)},O.prototype.Qi=function(t){var n=4*t-4;this[n+2]=this[n+3]=this[n+0]=this[n+1]=void 0},O.prototype.Vn=function(t){var n=this.nt;if(!((117506048&n)>>>16)){if(t===this){var r=i();return this.Ht(r),this.Z(r)}this.Di(),this.Ai=t,(65535&n)>0&&(0!=(134217728&n)?this.Y():v.settlePromises(this),this.wn())}},O.prototype.Z=function(t){var n=this.nt;if(!((117506048&n)>>>16)){if(this.Li(),this.gi=t,this.xi())return v.fatalError(t,f.isNode);(65535&n)>0?v.settlePromises(this):this.Qt()}},O.prototype.Ki=function(t,n){for(var i=1;i<t;i++){var r=this.Vi(i),e=this.Hi(i),o=this.Fi(i);this.Qi(i),this.ji(e,r,o,n)}},O.prototype.Zi=function(t,n){for(var i=1;i<t;i++){var r=this.Xi(i),e=this.Hi(i),o=this.Fi(i);this.Qi(i),this.ji(e,r,o,n)}},O.prototype.Y=function(){var t=this.nt,n=65535&t;if(n>0){if(0!=(16842752&t)){var i=this.gi;this.Yi(this.Ai,i,t),this.Zi(n,i)}else{var r=this.Ai;this.Yi(this.gi,r,t),this.Ki(n,r)}this.Bi(0)}this.pn()},O.prototype.hn=function(){var t=this.nt;return 0!=(33554432&t)?this.Ai:0!=(16777216&t)?this.gi: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,"Ji",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,u),O.Promise=O,O.version="3.5.5",t("./call_get.js")(O),t("./generators.js")(O,e,y,g,o,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,o){var u=t("./util");function s(t){var r=this.Cn=new n(i);t instanceof n&&r.ot(t,3),r.vt(this),this.oi=t,this.Lt=0,this.ci=0,this._init(void 0,-2)}return u.isArray,u.inherits(s,o),s.prototype.length=function(){return this.Lt},s.prototype.promise=function(){return this.Cn},s.prototype._init=function t(i,o){var s=r(this.oi,this.Cn);if(s instanceof n){var f=(s=s.ct()).nt;if(this.oi=s,0==(50397184&f))return this.Cn.Ni(),s.J(t,this.Z,void 0,this,o);if(0==(33554432&f))return 0!=(16777216&f)?this.Z(s.Kn()):this.Pt();s=s.Qn()}if(null!==(s=u.asArray(s)))0!==s.length?this.$i(s):-5===o?this.ir():this._i(function(t){switch(t){case-2:return[];case-3:return{};case-6:return new Map}}(o));else{var c=e("expecting an array or an iterable object but got "+u.classString(s)).reason();this.Cn.jn(c,!1)}},s.prototype.$i=function(t){var i=this.getActualLength(t.length);this.Lt=i,this.oi=this.shouldCopyValues()?new Array(i):this.oi;for(var e=this.Cn,o=!1,u=null,s=0;s<i;++s){var f=r(t[s],e);f instanceof n?(f=f.ct(),u=f.nt):u=null,o?null!==u&&f.suppressUnhandledRejections():null!==u?0==(50397184&u)?(f.Yn(this,s),this.oi[s]=f):o=0!=(33554432&u)?this.Wn(f.Qn(),s):0!=(16777216&u)?this.qn(f.Kn(),s):this.Xn(s):o=this.Wn(f,s)}o||e.Ni()},s.prototype.Fn=function(){return null===this.oi},s.prototype._i=function(t){this.oi=null,this.Cn.Vn(t)},s.prototype.Pt=function(){!this.Fn()&&this.Cn.kt()&&(this.oi=null,this.Cn.Pt())},s.prototype.Z=function(t){this.oi=null,this.Cn.jn(t,!1)},s.prototype.Wn=function(t,n){this.oi[n]=t;var i=++this.ci;return i>=this.Lt&&(this._i(this.oi),!0)},s.prototype.Xn=function(){return this.Pt(),!0},s.prototype.qn=function(t){return this.ci++,this.Z(t),!0},s.prototype._resultCancelled=function(){if(!this.Fn()){var t=this.oi;if(this.Pt(),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"),o=t("./nodeback"),u=e.withAppended,s=e.maybeWrapAsError,f=e.canEvaluate,c=t("./errors").TypeError,a={rr:!0},v=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","rr"].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.rr}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 o=e.inheritedDataKeys(t),u=[],s=0;s<o.length;++s){var f=o[s],a=t[f],h=r===l||l(f);"function"!=typeof a||w(a)||y(t,f,n)||!r(f,a,t,h)||u.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 o=e.replace(i,""),u=0;u<t.length;u+=2)if(t[u]===o)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))}}(u,n,i),u}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._n();var a="string"==typeof d&&this!==l?this[d]:t,h=o(c,v);try{a.apply(e,u(arguments,h))}catch(t){c.jn(s(t),!0,!0)}return c.Ri()||c.Ni(),c}return"string"==typeof d&&(t=a),e.notEnumerableProp(w,"rr",!0),w};function m(t,n,i,o,u){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(o===g)t[l]=g(h,r,h,v,n,u);else{var d=o(v,function(){return g(h,r,h,v,n,u)});e.notEnumerableProp(d,"rr",!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,o=!!n.multiArgs,u=function(t,n,i){return g(t,n,void 0,t,null,i)}(t,i,o);return e.copyDescriptors(t,u,d),u},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 o=n.filter;"function"!=typeof o&&(o=l);var u=n.promisifier;if("function"!=typeof u&&(u=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,o,u,i),m(a,r,o,u,i))}return m(t,r,o,u,i)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(t,n,i){n.exports=function(n,i,r,e){var o,u=t("./util"),s=u.isObject,f=t("./es5");"function"==typeof Map&&(o=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!==o&&t instanceof o)n=c(t),i=!0;else{var r=f.keys(t),e=r.length;n=new Array(2*e);for(var u=0;u<e;++u){var s=r[u];n[u]=t[s],n[u+e]=s}}this.constructor$(n),this.dr=i,this._init$(void 0,i?-6:-3)}function h(t){var i,o=r(t);return s(o)?(i=o instanceof n?o.J(n.props,void 0,void 0,void 0,void 0):new a(o).promise(),o instanceof n&&i.ot(o,2),i):e("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}u.inherits(a,i),a.prototype._init=function(){},a.prototype.Wn=function(t,n){this.oi[n]=t;var i=++this.ci;if(i>=this.Lt){var r;if(this.dr)r=function(t){for(var n=new o,i=t.length/2|0,r=0;r<i;++r){var e=t[i+r],u=t[r];n.set(e,u)}return n}(this.oi);else{r={};for(var e=this.length(),u=0,s=this.length();u<s;++u)r[this.oi[u+e]]=this.oi[u]}return this._i(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._r=t,this.Lt=0,this.wr=0}r.prototype.gr=function(t){return this._r<t},r.prototype.j=function(t){var n=this.length();this.yr(n+1);var i=this.wr+n&this._r-1;this[i]=t,this.Lt=n+1},r.prototype.push=function(t,n,i){var r=this.length()+3;if(this.gr(r))return this.j(t),this.j(n),void this.j(i);var e=this.wr+r-3;this.yr(r);var o=this._r-1;this[e+0&o]=t,this[e+1&o]=n,this[e+2&o]=i,this.Lt=r},r.prototype.shift=function(){var t=this.wr,n=this[t];return this[t]=void 0,this.wr=t+1&this._r-1,this.Lt--,n},r.prototype.length=function(){return this.Lt},r.prototype.yr=function(t){this._r<t&&this.pr(this._r<<1)},r.prototype.pr=function(t){var n=this._r;this._r=t;var i=this.wr,r=this.Lt,e=i+r&n-1;!function(t,n,i,r,e){for(var o=0;o<e;++o)i[o+r]=t[o+n],t[o+n]=void 0}(this,0,this,n,e)},n.exports=r},{}],27:[function(t,n,i){n.exports=function(n,i,r,e){var o=t("./util"),u=function(t){return t.then(function(n){return s(n,t)})};function s(t,s){var f=r(t);if(f instanceof n)return u(f);if(null===(t=o.asArray(t)))return e("expecting an array or an iterable object but got "+o.classString(t));var c=new n(i);void 0!==s&&c.ot(s,3);for(var a=c.Vn,h=c.Z,v=0,l=t.length;v<l;++v){var d=t[v];(void 0!==d||v in t)&&n.cast(d).J(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,o,u){var s=n.Yt,f=t("./util"),c=f.tryCatch;function a(t,i,r,e){this.constructor$(t);var u=s();this._fn=null===u?i:f.domainBind(u,i),void 0!==r&&(r=n.resolve(r)).yn(this),this.Tr=r,this.Sr=null,this.Er=e===o?Array(this.Lt):0===e?null:void 0,this.Cn._n(),this._init$(void 0,-5)}function h(t,n){this.isFulfilled()?n._i(t):n.Z(t)}function v(t,n,i,e){if("function"!=typeof n)return r("expecting a function but got "+f.classString(n));var o=new a(t,n,i,e);return o.promise()}function l(t){this.accum=t,this.array.Ir(t);var i=e(this.value,this.array.Cn);return i instanceof n?(this.array.Sr=i,i.J(d,void 0,void 0,this,void 0)):d.call(this,i)}function d(t){var i,r=this.array,e=r.Cn,o=c(r._fn);e.qt(),(i=void 0!==r.Er?o.call(e.at(),t,this.index,this.length):o.call(e.at(),this.accum,t,this.index,this.length))instanceof n&&(r.Sr=i);var s=e.Gt();return u.checkForgottenReturns(i,s,void 0!==r.Er?"Promise.each":"Promise.reduce",e),i}f.inherits(a,i),a.prototype.Ir=function(t){void 0!==this.Er&&null!==this.Er&&t!==o&&this.Er.push(t)},a.prototype.Rr=function(t){return null!==this.Er&&this.Er.push(t),this.Er},a.prototype._init=function(){},a.prototype.ir=function(){this._i(void 0!==this.Er?this.Er:this.Tr)},a.prototype.shouldCopyValues=function(){return!1},a.prototype._i=function(t){this.Cn.ut(t),this.oi=null},a.prototype._resultCancelled=function(t){if(t===this.Tr)return this.Pt();this.Fn()||(this._resultCancelled$(),this.Sr instanceof n&&this.Sr.cancel(),this.Tr instanceof n&&this.Tr.cancel())},a.prototype.$i=function(t){var i,r;this.oi=t;var e=t.length;if(void 0!==this.Tr?(i=this.Tr,r=0):(i=n.resolve(t[0]),r=1),this.Sr=i,!i.isRejected())for(;r<e;++r){var o={accum:null,value:t[r],index:r,length:e,array:this};i=i.J(l,void 0,void 0,o,void 0)}void 0!==this.Er&&(i=i.J(this.Rr,void 0,void 0,this,void 0)),i.J(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 u,s,f,a,h,v=t("./util"),l=v.getNativePromise();if(v.isNode&&"undefined"==typeof MutationObserver){var d=b.setImmediate,w=process.nextTick;u=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();u=function(t){y.then(t)}}else u="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!==o?function(t){o(t,0)}:function(){throw new c("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")};n.exports=u},{"./util":36}],30:[function(t,n,i){n.exports=function(n,i,r){var e=n.PromiseInspection,o=t("./util");function u(t){this.constructor$(t)}o.inherits(u,i),u.prototype.Nr=function(t,n){this.oi[t]=n;var i=++this.ci;return i>=this.Lt&&(this._i(this.oi),!0)},u.prototype.Wn=function(t,n){var i=new e;return i.nt=33554432,i.Dr=t,this.Nr(n,i)},u.prototype.qn=function(t,n){var i=new e;return i.nt=16777216,i.Dr=t,this.Nr(n,i)},n.settle=function(t){return r.deprecated(".settle()",".reflect()"),new u(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"),o=t("./errors").RangeError,u=t("./errors").AggregateError,s=e.isArray,f={};function c(t){this.constructor$(t),this.Cr=0,this.Pr=!1,this.Or=!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.Or)if(0!==this.Cr){this._init$(void 0,-5);var t=s(this.oi);!this.Fn()&&t&&this.Cr>this.Br()&&this.Z(this.Lr(this.length()))}else this._i([])},c.prototype.init=function(){this.Or=!0,this._init()},c.prototype.setUnwrap=function(){this.Pr=!0},c.prototype.howMany=function(){return this.Cr},c.prototype.setHowMany=function(t){this.Cr=t},c.prototype.Wn=function(t){return this.Mr(t),this.xr()===this.howMany()&&(this.oi.length=this.howMany(),1===this.howMany()&&this.Pr?this._i(this.oi[0]):this._i(this.oi),!0)},c.prototype.qn=function(t){return this.Ur(t),this.Fr()},c.prototype.Xn=function(){return this.oi instanceof n||null==this.oi?this.Pt():(this.Ur(f),this.Fr())},c.prototype.Fr=function(){if(this.howMany()>this.Br()){for(var t=new u,n=this.length();n<this.oi.length;++n)this.oi[n]!==f&&t.push(this.oi[n]);return t.length>0?this.Z(t):this.Pt(),!0}return!1},c.prototype.xr=function(){return this.ci},c.prototype.Hr=function(){return this.oi.length-this.length()},c.prototype.Ur=function(t){this.oi.push(t)},c.prototype.Mr=function(t){this.oi[this.ci++]=t},c.prototype.Br=function(){return this.length()-this.Hr()},c.prototype.Lr=function(t){var n="Input array must contain at least "+this.Cr+" items but contains only "+t+" items";return new o(n)},c.prototype.ir=function(){this.Z(this.Lr(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.ct(),this.nt=t.nt,this.Dr=t.Ri()?t.hn():void 0):(this.nt=0,this.Dr=void 0)}n.prototype.hn=function(){return this.Dr};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.hn()},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.hn()},e=n.prototype.isFulfilled=function(){return 0!=(33554432&this.nt)},o=n.prototype.isRejected=function(){return 0!=(16777216&this.nt)},u=n.prototype.isPending=function(){return 0==(50397184&this.nt)},s=n.prototype.isResolved=function(){return 0!=(50331648&this.nt)};n.prototype.isCancelled=function(){return 0!=(8454144&this.nt)},t.prototype.Vr=function(){return 65536==(65536&this.nt)},t.prototype.Ut=function(){return this.ct().Vr()},t.prototype.isCancelled=function(){return 0!=(8454144&this.ct().nt)},t.prototype.isPending=function(){return u.call(this.ct())},t.prototype.isRejected=function(){return o.call(this.ct())},t.prototype.isFulfilled=function(){return e.call(this.ct())},t.prototype.isResolved=function(){return s.call(this.ct())},t.prototype.value=function(){return i.call(this.ct())},t.prototype.reason=function(){var t=this.ct();return t.dn(),r.call(t)},t.prototype.Qn=function(){return this.hn()},t.prototype.Kn=function(){return this.dn(),this.hn()},t.PromiseInspection=n}},{}],33:[function(t,n,i){n.exports=function(n,i){var r=t("./util"),e=r.errorObj,o=r.isObject,u={}.hasOwnProperty;return function(t,s){if(o(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.Gt(),c}if("function"==typeof f){if(function(t){try{return u.call(t,"Ti")}catch(t){return!1}}(t)){var c=new n(i);return t.J(c.Vn,c.Z,void 0,c,null),c}return function(t,o,u){var s=new n(i),f=s;u&&u.qt(),s._n(),u&&u.Gt();var c=!0,a=r.tryCatch(o).call(t,function(t){s&&(s.ut(t),s=null)},function(t){s&&(s.jn(t,c,!0),s=null)});return c=!1,s&&a===e&&(s.jn(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(){u(this.handle)};var a=function(t){return h(+this).thenReturn(t)},h=n.delay=function(t,e){var u,s;return void 0!==e?(u=n.resolve(e).J(a,null,null,t,void 0),r.cancellation()&&e instanceof n&&u.vt(e)):(u=new n(i),s=o(function(){u.Vn()},+t),r.cancellation()&&u.vt(new f(s)),u._n()),u.Ni(),u};function v(t){return u(this.handle),t}function l(t){throw u(this.handle),t}n.prototype.delay=function(t){return h(t,this)},n.prototype.timeout=function(t,n){var i,u,a=new f(o(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.Ht(r),t.Z(r),null!=i&&i.cancel()}(i,n,u)},t=+t));return r.cancellation()?(u=this.then(),(i=u.J(v,l,void 0,a,void 0)).vt(a)):i=this.J(v,l,void 0,a,void 0),i}}},{"./util":36}],35:[function(t,n,i){n.exports=function(n,i,r,e,u,s){var f=t("./util"),c=t("./errors").TypeError,a=t("./util").inherits,h=f.errorObj,v=f.tryCatch,l={};function d(t){o(function(){throw t},0)}function w(t,i){var e=0,o=t.length,s=new n(u);return function u(){if(e>=o)return s.Vn();var f=function(t){var n=r(t);return n!==t&&"function"==typeof t.Xr&&"function"==typeof t.zr&&t.Xr()&&n.Wr(t.zr()),n}(t[e++]);if(f instanceof n&&f.Xr()){try{f=r(f.zr().tryDispose(i),t.promise)}catch(t){return d(t)}if(f instanceof n)return f.J(u,d,null,null,null)}u()}(),s}function y(t,n,i){this.qr=t,this.Cn=n,this.Gr=i}function p(t,n,i){this.constructor$(t,n,i)}function b(t){return y.isDisposer(t)?(this.resources[this.index].Wr(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.Cn},y.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():l},y.prototype.tryDispose=function(t){var n=this.resource(),i=this.Gr;void 0!==i&&i.qt();var r=n!==l?this.doDispose(n,t):null;return void 0!==i&&i.Gt(),this.Cn.jr(),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,o=arguments[t-1];if("function"!=typeof o)return i("expecting a function but got "+f.classString(o));var u=!0;2===t&&Array.isArray(arguments[0])?(e=arguments[0],t=e.length,u=!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()).Wr(d)}else{var p=r(l);p instanceof n&&(l=p.J(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(),o=v(o);var r=u?o.apply(void 0,t):o(t),e=E.Gt();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.vt(c),E},n.prototype.Wr=function(t){this.nt=131072|this.nt,this.Yr=t},n.prototype.Xr=function(){return(131072&this.nt)>0},n.prototype.zr=function(){return this.Yr},n.prototype.jr=function(){this.nt=-131073&this.nt,this.Yr=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,o){var u,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=u;return u=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 o;try{o=i(t)}catch(t){return r}for(var u=0;u<o.length;++u){var f=o[u];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 o in i)if(r.call(i,o))e.push(o);else{for(var u=0;u<t.length;++u)if(r.call(t[u],o))continue t;e.push(o)}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 R(t){return{}.toString.call(t)}var I=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};I=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]"===R(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:I,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 u=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.Rn.OperationalError||!0===t.isOperational)},markAsOriginatingFromRejection:function(t){try{w(t,"isOperational",!0)}catch(t){}},classString:R,copyDescriptors:function(t,n,i){for(var r=s.names(t),e=0;e<r.length;++e){var o=r[e];if(i(o))try{s.defineProperty(n,o,s.getDescriptor(t,o))}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 R={}.toString;var I=Array.isArray||function(t){return"[object Array]"===R.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.i_="audio",t.r_="video",t.uT="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.Gl="#EXTINF",t.gbt="#EXT-X-MAP",t.GO="#EXTM3U",t.i="#EXT-X-VERSION",t.o="#EXT-X-TARGETDURATION",t.q7="#EXT-X-START",t.u="#EXT-X-INDEPENDENT-SEGMENTS",t.Xv="#EXT-X-STREAM-INF",t.s="#EXT-X-MEDIA-SEQUENCE",t.h="#EXT-X-ENDLIST",t.jO="#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.Hh=M.Gl,this.S=void 0,this.T=void 0,this.S=t,this.T=n}return t.prototype.IR=function(){return this.Hh+":"+this.S+",\n"+this.T},t}(),H=function(){function t(){this.Hh=M.GO}return t.prototype.IR=function(){return this.Hh},t}(),V=function(){function t(t){this.Hh=M.i,this.LT=void 0,this.LT=t}return t.prototype.IR=function(){return this.Hh+":"+this.LT},t}(),z=function(){function t(t){this.Hh=M.o,this.yAt=void 0,this.yAt=t}return t.prototype.IR=function(){return this.Hh+":"+this.yAt},t}(),G=function(){function t(t){this.Hh=M.q7,this.hSt=void 0,this.hSt=t}return t.prototype.IR=function(){return this.Hh+":TIME-OFFSET="+this.hSt},t}(),Y=function(){function t(){this.Hh=M.u}return t.prototype.IR=function(){return this.Hh},t}(),K=function(){function t(t){this.Hh=M.Xv,this.xN=1,this.T=void 0,this.T=t}return t.prototype.IR=function(){return this.Hh+":BANDWIDTH="+this.xN+',AUDIO="audio"\n'+this.T},t}(),$=function(){function t(t){this.Hh=M.s,this.mE=void 0,this.mE=t}return t.prototype.IR=function(){return this.Hh+":"+this.mE},t}(),J=function(){function t(){this.Hh=M.v}return t.prototype.IR=function(){return this.Hh},t}(),Z=function(){function t(t){this.Hh=M.p,this.mE=void 0,this.mE=t}return t.prototype.IR=function(){return this.Hh+":"+this.mE},t}();!function(t){t.pbt="VOD",t.yDt="EVENT"}(W||(W={}));var Q=function(){function t(t){this.Hh=M.jO,this.T=void 0,this.T=t}return t.prototype.IR=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.T+'"');var n=[];return t.forEach(function(t,i){return n.push(i+"="+t)}),this.Hh+":"+n.join(",")},t}(),tt=function(){function t(t){this._V=[],this._V=t}return t.prototype.k=function(){for(var t="",n=0,i=this._V;n<i.length;n++){t+=i[n].IR()+"\n"}return t},P(t,[{key:"SS",get:function(){return this._V}}]),t}(),nt=function(){function t(){this._V=[];for(var t=[new H,new V(8)],n=0;n<t.length;n++){var i=t[n];this.A(i)}}var n=t.prototype;return n.A=function(t){this._V.push(t)},n.oa=function(){this._V.length=0},P(t,[{key:"SS",get:function(){return new tt(this._V)}}]),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,ot=9007199254740991,ut=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.Op=0]="Op",t[t.Bp=1]="Bp",t[t.Lp=-1]="Lp"}(et||(et={}));var ft=function(t,n){return function(t,n){if(t===n)return!0;var i=v.abs(t-n);return i<ut||i<v.max(v.abs(t),v.abs(n))*ut}(t,n)?et.Op:function(t,n){return t===n?et.Op:t<n?et.Lp:t>n?et.Bp:w(t)?w(n)?et.Op:et.Bp:et.Lp}(t,n)},ct=function(){function t(){}var n=t.prototype;return n.Mp=function(t){return this.xp()*t},n.Up=function(t){return this.Fp(t)>0},n.Hp=function(t){return this.Fp(t)>=0},n.Vp=function(t,n){return this.zp(t).Xp(n)},n.Ap=function(t){return 0===this.Fp(t)},n.Wp=function(t){return this.Fp(t)<0},n.Xp=function(t){return this.Fp(t)<=0},n.qp=function(){return this.Gp()?this.jp():this},n.Yp=function(t){return this.Um(t.jp())},n.zp=function(t){return this.Yp(t).qp()},t}();function at(t,n){return t.Qp()?n.Qp()?et.Op:et.Bp:n.Qp()?et.Lp:t.Kp()?n.Kp()&&t.Gp()===n.Gp()?et.Op:t.Gp()?et.Lp:et.Bp:n.Gp()?et.Bp:et.Lp}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.uu)}lt.prototype.uu,h.defineProperty(lt.prototype,"uu",{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>=Rt)return xt}else{if(t<=-It)return Bt;if(t+1>=It)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)),o=kt,u=0;u<t.length;u+=8){var s=v.min(8,t.length-u),f=l(t.substring(u,u+s),i);if(s<8){var a=bt(mt(i,s));o=o.mul(a).add(bt(f))}else o=(o=o.mul(e)).add(bt(f))}return o.unsigned=n,o}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,Rt=St*St,It=Rt/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),o=this,u="";;){var s=o.div(e),f=(o.sub(s.mul(e)).toInt()>>>0).toString(t);if((o=s).isZero())return f+u;for(;f.length<6;)f="0"+f;u=""+f+u}},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,o=t.high>>>16,u=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+u)>>>16,f+=n+o,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,o=t.high>>>16,u=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*u)>>>16,c+=n*f+i*s+r*u+e*o,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),o=e<=48?1:mt(2,e-48),u=bt(n),s=u.mul(t);s.isNegative()||s.gt(i);)s=(u=bt(n-=o,this.unsigned)).mul(t);u.isZero()&&(u=Ot),r=r.add(u),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.Zp=void 0,this.Jp=void 0,this.Zp=t,this.Jp=n}t.$p=function(n,i,r){return r?new t(n.toUnsigned(),i.toUnsigned()):new t(n.toSigned(),i.toSigned())},t.ib=function(n){return n.unsigned?new t(n,Pt.UZERO):new t(n,n.isNegative()?Pt.NEG_ONE:Pt.ZERO)},t.eb=function(n,i){if(w(n))return i?t.sb:t.ub;if(i){if(n<0)return t.sb;if(n>=3.402823669209385e38)return t.ob}else{if(n<=-1.7014118346046923e38)return t.hb;if(n+1>=1.7014118346046923e38)return t.cb}return n<0?t.eb(-n,i).jp():t.$p(Pt.fromNumber(n%0x10000000000000000),Pt.fromNumber(n/0x10000000000000000),i)};var n=t.prototype;return n.fb=function(){return this.Jp.unsigned},n.vb=function(){return this.Zp.isZero()&&this.Jp.isZero()},n.Gp=function(){return this.Jp.isNegative()},n._b=function(){return this.fb()?t.$p(this.Zp,this.Jp,!1):this},n.wb=function(){return this.fb()?this:t.$p(this.Zp,this.Jp,!0)},n.gb=function(){return this.Zp},n.xp=function(){return this.Gp()?-this.jp().xp():0x10000000000000000*this.Jp.toNumber()+this.Zp.toUnsigned().toNumber()},n.yb=function(){return this.Zp.toInt()},n.Ap=function(t){return(this.fb()===t.fb()||this.Jp.getHighBits()>>>31!=1||t.Jp.getHighBits()>>>31!=1)&&(this.Jp.toUnsigned().eq(t.Jp.toUnsigned())&&this.Zp.toUnsigned().eq(t.Zp.toUnsigned()))},n.Fp=function(t){if(this.Ap(t))return et.Op;var n=this.Gp(),i=t.Gp();if(n&&!i)return et.Lp;if(!n&&i)return et.Bp;if(!this.fb())return this.Yp(t).Gp()?et.Lp:et.Bp;var r=this.wb(),e=t.wb(),o=e.Jp.comp(r.Jp);return o>0||0===o&&e.Zp.gt(r.Zp)?et.Lp:et.Bp},n.Wp=function(t){return this.Fp(t)<0},n.Xp=function(t){return this.Fp(t)<=0},n.kb=function(t){return this.Fp(t)>0},n.mb=function(t){return this.Fp(t)>=0},n.pb=function(){return new t(this.Zp.not(),this.Jp.not())},n.bb=function(n){return new t(this.Zp.and(n.Zp),this.Jp.and(n.Jp))},n.Ab=function(n){return new t(this.Zp.or(n.Zp),this.Jp.or(n.Jp))},n.Tb=function(n){var i=127&n;return 0===i?this:i<64?t.$p(this.Zp.shl(i),this.Jp.shl(i).or(this.Zp.shru(64-i)),this.fb()):t.$p(Pt.ZERO,this.Zp.shl(i-64),this.fb())},n.Sb=function(n){var i=127&n;return 0===i?this:i<64?t.$p(this.Zp.shru(i).or(this.Jp.shl(64-i)),this.Jp.shr(i),this.fb()):t.$p(this.Jp.shr(i-64),this.Jp.isNegative()?Pt.NEG_ONE:Pt.ZERO,this.fb())},n.Eb=function(n){var i=127&n;return 0===i?this:i<64?t.$p(this.Zp.shru(i).or(this.Jp.shl(64-i)),this.Jp.shru(i),this.fb()):64===i?t.$p(this.Jp,Pt.ZERO,this.fb()):t.$p(this.Jp.shru(i-64),Pt.ZERO,this.fb())},n.Um=function(n){var i=this.Jp.high>>>16,r=65535&this.Jp.high,e=this.Jp.low>>>16,o=65535&this.Jp.low,u=this.Zp.high>>>16,s=65535&this.Zp.high,f=this.Zp.low>>>16,c=65535&this.Zp.low,a=n.Jp.high>>>16,h=65535&n.Jp.high,v=n.Jp.low>>>16,l=65535&n.Jp.low,d=n.Zp.high>>>16,w=65535&n.Zp.high,y=n.Zp.low>>>16,p=0,b=0,g=0,m=0,_=0,E=0,S=0,R=0;S+=(R+=c+(65535&n.Zp.low))>>>16,R&=65535,E+=(S+=f+y)>>>16,S&=65535,_+=(E+=s+w)>>>16,E&=65535,m+=(_+=u+d)>>>16,_&=65535,g+=(m+=o+l)>>>16,m&=65535,b+=(g+=e+v)>>>16,g&=65535,p+=(b+=r+h)>>>16,b&=65535,p+=i+a,p&=65535;var I=this.fb(),T=Pt.fromBits(g<<16|m,p<<16|b,I),k=Pt.fromBits(S<<16|R,_<<16|E,I);return t.$p(k,T,I)},n.Yp=function(t){return this.Um(t.jp())},n.jp=function(){return this.pb().Um(t.Ib)},n.Rb=function(n){if(this.vb()||n.vb())return this.fb()?t.sb:t.ub;if(this.Gp())return n.Gp()?this.jp().Rb(n.jp()):this.jp().Rb(n).jp();if(n.Gp())return this.Rb(n.jp()).jp();if(this.Jp.isZero()&&0===this.Zp.high&&n.Jp.isZero()&&0===n.Zp.high)return t.ib(this.Zp.multiply(n.Zp));var i=Pt.fromBits(4294967295,0,!0),r=this.Zp.and(i),e=this.Zp.shru(32),o=this.Jp.and(i),u=this.Jp.shru(32),s=n.Zp.and(i),f=n.Zp.shru(32),c=n.Jp.and(i),a=n.Jp.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(o.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(u.mul(s)).add(o.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.$p(w,y,this.fb())},n.Nb=function(n){var i,r,e=n;if(e.vb())throw new RangeError("division by zero");if(this.vb())return this.fb()?[t.sb,t.sb]:[t.ub,t.ub];if(this.fb()){if(e.fb()||(e=e.wb()),e.kb(this))return[t.sb,this];if(e.kb(this.Eb(1)))return[r=t.Db,i=this.Yp(e)];r=t.sb}else{if(this.Ap(t.hb)){if(e.Ap(t.Ib)||e.Ap(t.Cb))return[t.hb,t.ub];if(e.Ap(t.hb))return[t.Ib,t.ub];var o=this.Sb(1).Pb(e).Tb(1);return o.Ap(t.ub)?r=e.Gp()?t.Ib:t.Cb:(i=this.Yp(e.Rb(o)),r=o.Um(i.Pb(e))),[r,i=this.Yp(e.Rb(r))]}if(e.Ap(t.hb))return this.fb()?[t.sb,this]:[t.ub,this];if(this.Gp()){if(e.Gp())return this.jp().Nb(e.jp());var u=this.jp().Nb(e);return r=u[0],i=u[1],[r.jp(),i.jp()]}if(e.Gp()){var s=this.Nb(e.jp());return r=s[0],i=s[1],[r.jp(),i.jp()]}r=t.ub}for(i=this;i.mb(e);){for(var f=v.max(1,v.floor(i.xp()/e.xp())),c=v.ceil(v.log(f)/v.LN2),a=c<=48?1:v.pow(2,c-48),h=t.eb(f),l=h.Rb(e);l.Gp()||l.kb(i);)f-=a,l=(h=t.eb(f,this.fb())).Rb(e);h.vb()&&(h=t.Ib),r=r.Um(h),i=i.Yp(l)}return[r,i]},n.Pb=function(t){return this.Nb(t)[0]},n.Ob=function(t){return this.Nb(t)[1]},n.toString=function(n){var i=n||10;if(i<2||i>36)throw new RangeError("radix");if(this.vb())return"0";if(this.Gp()){if(this.Ap(t.hb)){var r=t.eb(i),e=this.Pb(r),o=e.Rb(r).Yp(this);return e.toString(i)+o.yb().toString(i)}return"-"+this.jp().toString(i)}for(var u=t.eb(v.pow(i,6),this.fb()),s=this,f="";;){var c=s.Pb(u),a=(s.Yp(c.Rb(u)).yb()>>>0).toString(i);if((s=c).vb())return a+f;for(;a.length<6;)a="0"+a;f=String(a)+f}},t}();jt.ub=jt.ib(Pt.ZERO),jt.sb=jt.ib(Pt.UZERO),jt.Ib=jt.ib(Pt.ONE),jt.Db=jt.ib(Pt.UONE),jt.Cb=jt.ib(Pt.NEG_ONE),jt.cb=jt.$p(Pt.NEG_ONE,Pt.MAX_VALUE,!1),jt.ob=jt.$p(Pt.MAX_UNSIGNED_VALUE,Pt.MAX_UNSIGNED_VALUE,!0),jt.hb=jt.$p(Pt.ZERO,Pt.MIN_VALUE,!1);var Ut=function(){function t(t,n){void 0===n&&(n=1),this.Bb=void 0,this.Lb=void 0,this.Bb=t,this.Lb=n}t.Mb=function(n){return new t(v.ceil(n.Bb),n.Lb)},t.xb=function(n){return new t(v.floor(n.Bb),n.Lb)},t.Ub=function(t,n){return t.Hp(n)?t:n},t.Fb=function(t,n){return t.Xp(n)?t:n};var n=t.prototype;return n.Um=function(n){return this.Lb>=n.Lb?new t(this.Bb+n.Hb(this.Lb).Bb,this.Lb):new t(this.Hb(n.Lb).Bb+n.Bb,n.Lb)},n.Up=function(t){return t.Wp(this)},n.Hp=function(t){return t.Xp(this)},n.zp=function(n){return this.Lb>=n.Lb?new t(v.abs(this.Bb-n.Hb(this.Lb).Bb),this.Lb):n.zp(this)},n.Vp=function(t,n){return this.zp(t).Xp(n)},n.Fp=function(t){return i=t,(n=this).Lb>=i.Lb?ft(n.Bb,i.Hb(n.Lb).Bb):ft(n.Hb(i.Lb).Bb,i.Bb);var n,i},n.Ap=function(t){return 0===this.Fp(t)},n.Wp=function(t){return this.Fp(t)<0},n.Xp=function(t){return this.Fp(t)<=0},n.Hb=function(n){return new t(this.Bb*(n/this.Lb),n)},n.Yp=function(n){return this.Lb>=n.Lb?new t(this.Bb-n.Hb(this.Lb).Bb,this.Lb):new t(this.Hb(n.Lb).Bb-n.Bb,n.Lb)},n.Vb=function(n){return new t(this.Bb*n,this.Lb)},P(t,[{key:"Kp",get:function(){return!isFinite(this.Bb)}},{key:"Xb",get:function(){return this.Bb/this.Lb}}]),t}();Ut.zb=new Ut(1/6,1),Ut.ub=new Ut(0),Ut.Wb=new Ut(1/0),Ut.qb=1e6;var Lt=function(t){function n(n,i){var r;return(r=t.call(this)||this).Eu=void 0,r.Lb=void 0,r.Eu=n.toSigned(),r.Lb=i>>>0,r}rt(n,t),n.Gb=function(t,i){return void 0===i&&(i=1e6),n.eb(t*i,i)},n.eb=function(t,i){return w(t)?n.jb:t===1/0?n.Yb:t===-1/0?n.Qb:new n(Pt.fromNumber(t),i)},n.ib=function(t,i){return new n(t,i)},n.Kb=function(t){return n.Gb(t.Xb,1e6)},n.Zb=function(t){return new n(Pt.fromNumber(t.getTime()),1e3)},n.Ub=function(t,n){return t.Hp(n)?t:n},n.Fb=function(t,n){return t.Xp(n)?t:n},n.Jb=function(t,i,r){return n.Ub(i,n.Fb(r,t))};var i=n.prototype;return i.Gp=function(){return this.Eu.isNegative()},i.vb=function(){return 0!==this.Lb&&this.Eu.isZero()},i.Kp=function(){return 0===this.Lb&&!this.Eu.isZero()},i.Qp=function(){return 0===this.Lb&&this.Eu.isZero()},i.xp=function(){if(0===this.Lb)return this.Eu.isZero()?NaN:this.Eu.isNegative()?-1/0:1/0;var t=this.Eu.divide(this.Lb),n=this.Eu.subtract(t.multiply(this.Lb));return t.toNumber()+n.toNumber()/this.Lb},i.gb=function(){if(0===this.Lb)throw new c("Failed to convert timestamp");return this.Eu},i.$b=function(){return new Date(0===this.Lb?NaN:this.Hb(1e3).Eu.toNumber())},i.tA=function(){return new Ut(0===this.Lb?this.xp():this.Eu.toNumber(),this.Lb)},i.Hb=function(t,i){void 0===i&&(i=Wt.nA);var r=this.Lb;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.Nb(n),e=r[0],o=r[1];if(o.vb())return e;if(i===Wt.nA)return o.Gp()?e.Yp(jt.Ib):e;if(i===Wt.iA)return o.Gp()?e:e.Um(jt.Ib);var u=o.Rb(jt.eb(2));return u.Gp()?u.jp().Wp(n)?e:e.Yp(jt.Ib):u.Wp(n)?e:e.Um(jt.Ib)}(jt.ib(this.Eu).Rb(jt.eb(t/e)),jt.eb(r/e),i).gb(),t)},i.Fp=function(t){if(this===t)return et.Op;if(0===this.Lb||0===t.Lb)return at(this,t);if(this.vb())return t.vb()?et.Op:t.Gp()?et.Bp:et.Lp;if(t.vb())return this.Gp()?et.Lp:et.Bp;var n=v.min(this.Lb,t.Lb),i=this.Hb(n,Wt.rA).Eu,r=t.Hb(n,Wt.rA).Eu;return i.compare(r)},i.jp=function(){return 0===this.Lb?Mt(this):new n(this.Eu.negate(),this.Lb)},i.Um=function(t){if(0===this.Lb||0===t.Lb)return qt(this,t);if(this.vb())return t;if(t.vb())return this;var i=v.max(this.Lb,t.Lb),r=this.Hb(i,Wt.rA),e=t.Hb(i,Wt.rA);return new n(r.Eu.add(e.Eu),i)},i.Rb=function(t){if(this.Qp()||w(t))return n.jb;if(this.Kp()||!isFinite(t)){if(this.vb()||0===t)return n.jb;var i=this.Gp()?n.Qb:n.Yb;return t<0?i.jp():i}return this.vb()?this:new n(0===t?Pt.ZERO:this.Eu.multiply(t),this.Lb)},i.Pb=function(t){if(this.Qp()||w(t))return n.jb;if(this.Kp())return isFinite(t)?0===t?1/t<0?this.jp():this:t<0?this.jp():this:n.jb;if(!isFinite(t))return new n(Pt.ZERO,this.Lb);if(this.vb())return 0===t?n.jb:new n(Pt.ZERO,this.Lb);if(0===t){var i=this.Gp()?n.Qb:n.Yb;return 1/t<0?i.jp():i}return new n(this.Eu.divide(t),this.Lb)},i.eA=function(){return[this.Eu.low,this.Eu.high,this.Lb]},n}(ct);function Mt(t){return t.Qp()?t:t.Gp()?Lt.Yb:Lt.Qb}function qt(t,n){return t.Qp()||n.Qp()?Lt.jb:t.Kp()&&n.Kp()?t.Gp()===n.Gp()?t:Lt.jb:t.Kp()?t:n}Lt.ub=new Lt(Pt.ZERO,1e6),Lt.jb=new Lt(Pt.ZERO,0),Lt.Yb=new Lt(Pt.ONE,0),Lt.Qb=new Lt(Pt.NEG_ONE,0);var Wt,Xt=function(t){function n(n,i){var r;return(r=t.call(this)||this).Eu=void 0,r.Lb=void 0,r.Eu=BigInt.asIntN(64,n),r.Lb=i>>>0,r}rt(n,t),n.Gb=function(t,i){return void 0===i&&(i=1e6),n.eb(t*i,i)},n.eb=function(t,i){return w(t)?n.jb:t===1/0?n.Yb:t===-1/0?n.Qb:new n(BigInt(v.floor(t)),i)},n.ib=function(t,i){return new n(BigInt(t.high)<<BigInt(32)|BigInt(t.low>>>0),i)},n.Kb=function(t){return n.Gb(t.Xb,1e6)},n.Zb=function(t){return n.eb(t.getTime(),1e3)},n.Ub=function(t,n){return t.Hp(n)?t:n},n.Fb=function(t,n){return t.Xp(n)?t:n},n.Jb=function(t,i,r){return n.Ub(i,n.Fb(r,t))};var i=n.prototype;return i.Gp=function(){return this.Eu<BigInt(0)},i.vb=function(){return 0!==this.Lb&&this.Eu===BigInt(0)},i.Kp=function(){return 0===this.Lb&&this.Eu!==BigInt(0)},i.Qp=function(){return 0===this.Lb&&this.Eu===BigInt(0)},i.xp=function(){if(0===this.Lb)return this.Eu===BigInt(0)?NaN:this.Eu<BigInt(0)?-1/0:1/0;var t=this.Eu/BigInt(this.Lb),n=this.Eu-t*BigInt(this.Lb);return Number(t)+Number(n)/this.Lb},i.gb=function(){if(0===this.Lb)throw new c("Failed to convert timestamp");return this.sA()},i.sA=function(){var t=this.Eu&BigInt(4294967295),n=this.Eu>>BigInt(32)&BigInt(4294967295);return Pt.fromBits(Number(t),Number(n))},i.$b=function(){return new Date(0===this.Lb?NaN:Number(this.Hb(1e3).Eu))},i.tA=function(){return new Ut(0===this.Lb?this.xp():Number(this.Eu),this.Lb)},i.Hb=function(t,i){void 0===i&&(i=Wt.nA);var r=this.Lb;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.nA)return e<BigInt(0)?r-BigInt(1):r;if(i===Wt.iA)return e<BigInt(0)?r:r+BigInt(1);var o=e*BigInt(2);return o<BigInt(0)?-o<n?r:r-BigInt(1):o<n?r:r+BigInt(1)}(this.Eu*BigInt(t/e),BigInt(r/e),i),t)},i.Fp=function(t){if(this===t)return et.Op;if(0===this.Lb||0===t.Lb)return at(this,t);if(this.vb())return t.vb()?et.Op:t.Gp()?et.Bp:et.Lp;if(t.vb())return this.Gp()?et.Lp:et.Bp;var n=v.min(this.Lb,t.Lb),i=this.Hb(n,Wt.rA).Eu,r=t.Hb(n,Wt.rA).Eu;return i>r?et.Bp:i<r?et.Lp:et.Op},i.jp=function(){return 0===this.Lb?Ht(this):new n(-this.Eu,this.Lb)},i.Um=function(t){if(0===this.Lb||0===t.Lb)return Vt(this,t);if(this.vb())return t;if(t.vb())return this;var i=v.max(this.Lb,t.Lb),r=this.Hb(i,Wt.rA),e=t.Hb(i,Wt.rA);return new n(r.Eu+e.Eu,i)},i.Rb=function(t){if(this.Qp()||w(t))return n.jb;if(this.Kp()||!isFinite(t)){if(this.vb()||0===t)return n.jb;var i=this.Gp()?n.Qb:n.Yb;return t<0?i.jp():i}return this.vb()?this:new n(0===t?BigInt(0):this.Eu*BigInt(t),this.Lb)},i.Pb=function(t){if(this.Qp()||w(t))return n.jb;if(this.Kp())return isFinite(t)?0===t?1/t<0?this.jp():this:t<0?this.jp():this:n.jb;if(!isFinite(t))return new n(BigInt(0),this.Lb);if(this.vb())return 0===t?n.jb:new n(BigInt(0),this.Lb);if(0===t){var i=this.Gp()?n.Qb:n.Yb;return 1/t<0?i.jp():i}return new n(this.Eu/BigInt(t),this.Lb)},i.eA=function(){var t=this.sA();return[t.low,t.high,this.Lb]},P(n,null,[{key:"ub",get:function(){return n.uA||(n.uA=new n(BigInt(0),1e6)),n.uA}},{key:"jb",get:function(){return n.oA||(n.oA=new n(BigInt(0),0)),n.oA}},{key:"Yb",get:function(){return n.hA||(n.hA=new n(BigInt(1),0)),n.hA}},{key:"Qb",get:function(){return n.aA||(n.aA=new n(BigInt(-1),0)),n.aA}}]),n}(ct);function Ht(t){return t.Qp()?t:t.Gp()?Xt.Yb:Xt.Qb}function Vt(t,n){return t.Qp()||n.Qp()?Xt.jb:t.Kp()&&n.Kp()?t.Gp()===n.Gp()?t:Xt.jb:t.Kp()?t:n}Xt.uA=void 0,Xt.oA=void 0,Xt.hA=void 0,Xt.aA=void 0,function(t){t[t.nA=0]="nA",t[t.iA=1]="iA",t[t.rA=2]="rA"}(Wt||(Wt={}));var zt=function(){try{return"function"==typeof BigInt&&"bigint"==typeof BigInt(0)}catch(t){return!1}}()?Xt:Lt;function Gt(t){return zt.ib(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.Jh=!1,this.$h=!1,this.ra=[],this.ea=[]}var n=t.prototype;return n.ua=function(){if(!this.Jh&&!this.$h){this.Jh=!0;for(var t=0,n=this.ra.slice();t<n.length;t++){(0,n[t])()}this.oa()}},n.oa=function(){if(!this.$h){this.$h=!0;for(var t=0,n=this.ea.slice();t<n.length;t++){(0,n[t])()}N(this.ra),N(this.ea)}},n.va=function(t){this.$h||this.ra.push(t)},n._a=function(t){this.$h||A(this.ra,t)},n.ya=function(t){this.$h||this.ea.push(t)},n.ma=function(t){this.$h||A(this.ea,t)},t}(),Zt=function(){function t(){this.Aa=new Jt}var n=t.prototype;return n.Ta=function(){this.Aa.ua()},n.oa=function(){this.Aa.oa()},n.Sa=function(t){var n=this.Aa;if(!n.Jh)if(t.Jh)n.ua();else if(!n.$h&&!t.$h){var i=function(){r(),n.ua()},r=function r(){t._a(i),t.ma(r),n._a(i),n.ma(r)};t.va(i),t.ya(r),n.va(i),n.ya(r)}},n.Ea=function(){var n=new t,i=new t,r=n.Ia,e=i.Ia,o=this.Aa,u=function(){r.Jh&&e.$h||e.Jh&&r.$h?o.ua():r.$h&&e.$h&&o.oa()};r.va(u),e.va(u),r.ya(u),e.ya(u),n.Sa(o),i.Sa(o);return o.ya(function(){r._a(u),e._a(u),r.ma(u),e.ma(u)}),[n,i]},P(t,[{key:"Ia",get:function(){return this.Aa}}]),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.oa(),t},function(t){throw n.oa(),t})}var rn;E.resolve();!function(t){t.x$="HELLO",t.U$="HI_THERE",t.F$="INITIALIZE",t.H$="APPEND_INIT",t.V$="APPEND_DATA",t.X$="ACK",t.z$="REMOVE",t.W$="DESTROY_SESSION"}(rn||(rn={}));var en="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),on=16383;function un(t,n,i){for(var r,e,o,u=[],s=n;s<i;s+=3)u.push((r=t[s],e=t[s+1],o=t[s+2],en[r>>2]+en[(3&r)<<4|e>>4]+en[(15&e)<<2|o>>6]+en[63&o]));return u.join("")}var sn=function(){function t(t){void 0===t&&(t=0),this.vc=t}var n=t.prototype;return n.fc=function(t){this.vc+=t},n.dc=function(t){this.vc=t},n.lc=function(){return new t(this.cc)},P(t,[{key:"cc",get:function(){return this.vc}}]),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.cc>=t.length)throw new c("Invalid byte index");var i=255&t[n.cc];if(n.fc(1),128==(192&i))return 63&i;throw new c("Invalid continuation byte")}function yn(t,n){var i=n.cc;if(i>t.length)throw new c("Invalid byte index");if(i===t.length)return!1;var r=255&t[i];if(n.fc(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 o=(15&r)<<12|wn(t,n)<<6|wn(t,n);if(o>=2048)return vn(o),o;throw new c("Invalid continuation byte")}if(240==(248&r)){var u=(7&r)<<18|wn(t,n)<<12|wn(t,n)<<6|wn(t,n);if(u>=65536&&u<=1114111)return u}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.cc,i);return n.fc(2),r}function gn(t,n,i,r){void 0===r&&(r=!1),t.setUint16(n.cc,i,r),n.fc(2)}function mn(t,n){return void 0===n&&(n=!1),function(t,n,i,r){for(var e=[];n.cc+2<=t.byteLength;){var o=bn(t,n,i);if(r&&!o)break;e.push(o)}return an(e)}(Rn(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,o=0;o<e;o+=1)gn(t,n,i.charCodeAt(o),r)}(Rn(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}(In(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 o=t.charCodeAt(i++);56320==(64512&o)?n.push(((1023&e)<<10)+(1023&o)+65536):(n.push(e),i--)}else n.push(e)}return n}(t)))}function Rn(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function In(t){return new y(t.buffer,t.byteOffset,t.byteLength)}function Tn(t){return t instanceof ArrayBuffer?new y(t):In(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.vc=t}var n=t.prototype;return n.fc=function(t){this.vc+=t},n.dc=function(t){this.vc=t},n.lc=function(){return new t(this.cc)},n.gc=function(){return new sn(this.cc<<3)},P(t,[{key:"cc",get:function(){return this.vc}}]),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,R.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 o=t[e];i.set(o,r),r+=o.byteLength}return i}(t,n)}function Cn(t){return function(t){for(var n=t.length,i=n%3,r=[],e=n-i,o=0;o<e;o+=on)r.push(un(t,o,v.min(e,o+on)));if(1===i){var u=t[n-1];r.push(en[u>>2]+en[(3&u)<<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.Ra=j(),this.Na=void 0,this.Da=void 0,this.Ca=function(t){n.Pa(t)},this.Da=t||this}var n=t.prototype;return n.Oa=function(t,n){if("function"==typeof n)if("string"==typeof t)this.Ba(t,n);else for(var i=0;i<t.length;i++){var r=t[i];this.Ba(r,n)}},n.Ba=function(t,n){var i=this.Ra[t];i?"function"==typeof i?this.Ra[t]=[i,n]:i.push(n):this.Ra[t]=n},n.La=function(t){if("function"==typeof t){var n=this.Na;n?"function"==typeof n?this.Na=[n,t]:n.push(t):this.Na=t}},n.Ma=function(){this.Ra=j(),this.Na=void 0},n.Pa=function(t){var n=xn(this.Ra[t.type]),i=xn(this.Na);Bn(this.Da,t,n),Bn(this.Da,t,i)},n.xa=function(t,n){if("function"==typeof n)if("string"==typeof t)this.Ua(t,n);else for(var i=0;i<t.length;i++){var r=t[i];this.Ua(r,n)}},n.Ua=function(t,n){var i=this.Ra[t];i&&("function"==typeof i?i===n&&(this.Ra[t]=void 0):A(i,n))},n.Fa=function(t){if("string"==typeof t)this.Ra[t]=void 0;else for(var n=0;n<t.length;n++){var i=t[n];this.Ra[i]=void 0}},n.Ha=function(t){var n=this.Na;n&&("function"==typeof n?n===t&&(this.Na=void 0):A(n,t))},n.Va=function(t,n){var i=this;return new E(function(r,e){if(n&&n.Jh)return e(new Qt);var o=function(t){s(),r(t)},u=function(){s(),e(new Qt)},s=function(){i.xa(t,o),n&&n._a(u)};i.Oa(t,o),n&&n.va(u)})},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).Gu=void 0,i.Gu=n,i}return rt(n,t),n}(Pn),Un=function(t){function n(n){var i;return(i=t.call(this)||this).Oy=void 0,i.Vvt=0,i.qr=new y(0),i.Rf=!1,i.O=!1,i.D=void 0,i.Oy=n,i}rt(n,t);var i=n.prototype;return i.uW=function(t,n){this.C&&0===this.qr.length&&(this.qr=this.D.slice()),this.Vvt+=n.xp(),this.qr=Dn([this.qr,t]),this.Pa(new jn(t))},i.Oc=function(){this.Fc||(this.Pa(new Pn("close")),this.Rf=!0)},P(n,[{key:"dk",get:function(){return this.Vvt}},{key:"Gu",get:function(){return this.qr}},{key:"Fc",get:function(){return this.Rf}},{key:"C",get:function(){return this.O},set:function(t){this.O=t}},{key:"B",get:function(){return this.D},set:function(t){this.D=t}}]),n}(Fn),Ln=function(){function t(t){this.L=!1,this.W=void 0,this.X=void 0,this.DEFAULT_SEGMENT_DURATION_IN_SECONDS=1.1,this.Ig="sync-seg-"+C(),this.H=this.DEFAULT_SEGMENT_DURATION_IN_SECONDS,this.V=t;for(var n=0,i=this.V;n<i.length;n++){var r=i[n];if(r.match(/video/))this.W=new Un(this.tt(r));else{if(!r.match(/audio/))throw new c("Unsupported MIME type.");this.X=new Un(this.tt(r))}}}var n=t.prototype;return n.tt=function(t){for(var n=0,i=this.V;n<i.length;n++){if(i[n]===t)return this.H}},n.Oc=function(){this.W&&this.W.Oc(),this.X&&this.X.Oc()},P(t,[{key:"it",get:function(){return this.L},set:function(t){this.L=t}},{key:"rt",get:function(){var t,n;return Boolean((null==(t=this.W)?void 0:t.C)||(null==(n=this.X)?void 0:n.C))}}]),t}(),Mn=function(t){function n(n){var i;return(i=t.call(this,"remove")||this).ep=void 0,i.ep=n,i}return rt(n,t),n}(Pn),qn=function(t){function n(n){var i;return(i=t.call(this)||this).et=[],i.st=void 0,i.ht=[],i.pt=U(),i.tn=U(),i.nn=0,i.rn=0,i.V=n,i.st=new Ln(i.V),i.st.X&&(i.st.X.C=!0),i.st.W&&(i.st.W.C=!0),i.ht.push(new Ln(i.V)),i}rt(n,t);var i=n.prototype;return i.en=function(){var t=[].concat(this.et,[this.st],this.ht);return this.et.length=0,t},i.uW=function(t){this.sn(t),this.an(t),this.ln(t)},i.aW=function(t){this.sn(t)},i.Mc=function(t){this.sn(t),this.ln(t)},i.oa=function(){this.st.Oc(),this.ht.forEach(function(t){return t.Oc()}),this.et.length=0},i.an=function(t){var n=Gt(t.startPts),i=Gt(t.totalDuration);this.tn.set(t.mimeType,n.Um(i))},i.bn=function(){this.st.Oc(),this.et.push(this.st);var t=this.ht.shift(),n=this.gn();t?(this.st=t,this.ht.push(n)):this.st=n},i.gn=function(){var t=new Ln(this.V);return t.X&&(t.X.B=this.st.X.B),t.W&&(t.W.B=this.st.W.B),t},i.mn=function(t){var i=!this.st.X||0===this.st.X.dk,r=!this.st.W||0===this.st.W.dk,e=this.st.X&&this.st.X.C,o=this.st.W&&this.st.W.C,u=r&&(i&&!this.st.it||e),s=i&&(r&&!this.st.it||o);("audio"===n.kn(t)&&!s||"video"===n.kn(t)&&!u)&&(this.bn(),this.bn())},i.sn=function(t){var n=t.mimeType,i=t.kind,r=this.pt.get(n);void 0===r&&(i!==rn.H$&&i!==rn.V$||(r=[],this.pt.set(n,r))),void 0!==r&&r.push(t)},i.ln=function(t){for(var n=this.ti(t),i=0;i<n.length;i++){var r=n[i];switch(r.kind){case rn.H$:this.ii(r),this.nn=0,this.rn=0;break;case rn.z$:this.ui(r);break;case rn.V$:this.si(r)}}},i.ii=function(t){var n=t.mimeType,i=t.segment;this.mn(n),n.match(/video/)?(this.st.W.B=i,this.ht.forEach(function(t){t.W.B=i})):(this.st.X.B=i,this.ht.forEach(function(t){t.X.B=i})),this.st.X&&(this.st.X.C=!0),this.st.W&&(this.st.W.C=!0)},i.si=function(t){var n=t.mimeType.match(/audio/),i=Gt(t.totalDuration);if(n?this.st.X.uW(t.segment,i):this.st.W.uW(t.segment,i),n||1===this.V.length){this.nn+=i.xp();var r=this.st.tt(t.mimeType);this.nn>=this.rn+r&&(this.rn+=r,this.bn())}},i.ui=function(t){this.tn.set(t.mimeType,void 0),this.mn(t.mimeType),this.st.X&&(this.st.X.C=!0),this.st.W&&(this.st.W.C=!0),this.et.length=0,this.Pa(new Mn(Gt(t.endTime)))},i.ti=function(t){var n=this;if(t.kind===rn.z$)return this.fi(t);var i=[];return this.pt.forEach(function(t){if(t&&t.length>0){var r=k(t,function(t){return t.kind===rn.z$});-1===r&&(r=t.length);for(var e=t.slice(0,r),o=0;o<e.length;o++){var u=e[o];if(!O(i,u)){var s=n.fi(u);if(s.length>0)i.push.apply(i,s);else if(u.kind===rn.V$)break}}}}),i},i.fi=function(t){for(var i,r=this.pt.get(t.mimeType),e=0,o=this.V;e<o.length;e++){var u=o[e];if(u!==t.mimeType){i=u;break}}if(!i)return r.splice(0,r.indexOf(t)+1);if(t.kind===rn.H$)return[];var s=this.tn.get(i);if(void 0===s)return[];if(t.kind===rn.z$){var f=this.hi(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.vi(t,s)){var a=r.splice(0,r.indexOf(t));r.splice(0,1);var h=this.li(t,a,i);return[].concat(a,h,[t])}return[]},i.li=function(t,i,r){var e=this.pt.get(r);if(!e)return[];var o=Gt(t.startPts),u=Gt(t.totalDuration),s=o.Um(u),f=k(e,function(t){return t.kind===rn.z$}),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.V$||n.vi(v,s)||(a=h)}var l=-1;return-1!==k(i,function(t){return t.kind===rn.H$})&&(l=k(e,function(t){return t.kind===rn.H$})),l>a&&(a=l+1),a>0?(e[a-1].kind===rn.H$&&(a-=1),e.splice(0,a)):[]},i.hi=function(t){var n=this.pt.get(t);if(n){var i=k(n,function(t){return t.kind===rn.z$});if(i>=0)return n.splice(0,i+1)}return[]},n.vi=function(t,n){var i=n,r=Gt(t.startPts);return i.Hp(r)},i.yi=function(){var t="[MEDIABUFFER] endPTS: ";this.tn.forEach(function(i,r){t=t.concat(n.kn(r)+" = "+(null==i?void 0:i.xp())+" ")}),m.Ko(t)},i.pi=function(){var t=this;m.Ko("[MEDIABUFFER] unsyncedMessageMap:"),this.pt.forEach(function(i,r){void 0!==i&&t.bi(n.kn(r),i)})},i.bi=function(t,i){var r=t+": [";null==i||i.forEach(function(t){r=r.concat(" "+t.kind+"("+n.kn(t.mimeType)+")")}),r=r.concat(" ]"),m.Ko(r)},n.kn=function(t){return t.match(/audio/)?"audio":"video"},n}(Fn);var Wn=function(){function t(t,n,i){var r=this;this.mi=[],this.ki=U(),this.tr=0,this.qft=void 0,this.nr=void 0,this.er=function(t){if(t.ep.Hp(zt.Gb(ot)))for(;r.mi.length>0;)r.ur()},this.sr=n,this.cr=i,this.nr=[new H,new V(8),new z(1),new Y,new G(0)],this.qft=t,this.qft.Oa("remove",this.er)}var n=t.prototype;return n.Rrt=function(t,n){var i=this.ki.get(t);if(i)if(n===x.r_){var r=i.W;if(r)return r}else{var e=i.X;if(e)return e}throw new c(t+" segment not available!")},n.oa=function(){this.mi.length=0,this.sr.mE=0,this.ki.clear(),this.tr=0},n.SS=function(){return this.ar(),new tt([].concat(this.nr,[this.sr,this.cr],this.mi))},n.ar=function(){for(var t=this.qft.en(),n=0;n<t.length;n++){var i=t[n];if(!this.ki.has(i.Ig)){i.it=!0;var r=i.H;i.rt&&this.mi.push(new J),this.ki.set(i.Ig,i),this.mi.push(new X(r,i.Ig)),this.tr+=r}}this.hr()},n.hr=function(){for(;this.tr>300;)this.ur()},n.ur=function(){var t=this.mi.shift();void 0!==t&&(t.Hh===M.Gl?(this.vr(t),this.tr-=t.S,this.sr.mE++):function(t){return t.Hh===M.v}(t)&&this.cr.mE++)},n.vr=function(t){this.ki.delete(t.T)},t}(),Xn=function(){function t(t){this.M$t=void 0,this.lr=void 0,this.br=void 0,this.V=t,this.M$t=new nt,this.lr=new qn(this.V);for(var n=0,i=this.V;n<i.length;n++){var r=i[n];if(this.br=new Wn(this.lr,new $(0),new Z(0)),r.match(/video/)){var e=new K("video/index.m3u8");this.M$t.A(e)}else{if(!r.match(/audio/))throw new c("Unsupported MIME type.");var o=new Q("audio/index.m3u8");this.M$t.A(o)}}}var n=t.prototype;return n.mr=function(t){if("master.m3u8"===t){if(this.M$t)return this.M$t.SS;throw new c("Master playlist not ready yet")}if(this.br)return this.br.SS();throw new c("Media playlist not ready yet")},n.Rrt=function(n){var i=n.split("/")[1];return this.br.Rrt(i,t.kr(n))},n.aW=function(t){this.lr.aW(t)},n.uW=function(t){this.lr.uW(t)},n.Rst=function(t){this.lr.Mc(t)},n.oa=function(){this.lr.oa(),this.M$t.oa(),this.br&&this.br.oa()},t.kr=function(t){return t.match(/video/)?x.r_:x.i_},t}();var Hn,Vn=function(){function n(t,n){var i=this;this.iet=void 0,this.te=function(){var t=E.coroutine(_.mark(function t(n){var r,e,o;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=n.data,t.t0=r.kind,t.next=t.t0===rn.F$?4:t.t0===rn.H$?7:t.t0===rn.V$?9:t.t0===rn.z$?11:13;break;case 4:return e=r.mediaBufferConfigs,i.iet=new Xn(e),t.abrupt("break",13);case 7:return i.iet.aW(r),t.abrupt("break",13);case 9:return i.iet.uW(r),t.abrupt("break",13);case 11:return i.iet.Rst(r),t.abrupt("break",13);case 13:o={kind:rn.X$},i.ie.postMessage(o);case 15:case"end":return t.stop()}},t)}));return function(n){return t.apply(this,arguments)}}(),this.ie=t,this.ee=n,this.ie.onmessage=this.te}var i=n.prototype;return i.se=function(t){return this.iet.mr(t)},i.ce=function(n){if(this.iet){if(n.match(/m3u8/)){var i=this.se(n);return new Response(i.k(),{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.Gu),!t.Fc){n.next=6;break}return i.close(),n.abrupt("return");case 6:r=function(t){i.enqueue(t.Gu)},t.Oa("append",r),e=function n(){i.close(),t.xa("append",r),t.xa("close",n)},t.Oa("close",e);case 10:case"end":return n.stop()}},n)})),function(t){return n.apply(this,arguments)})};var n}(this.Srt(n)),o=new t.ReadableStream(e);return new Response(o,{headers:r})}throw new c("Stream not active.")},i.Srt=function(t){return this.iet.Rrt(t)},i.close=function(){this.ie.close(),this.iet&&this.iet.oa()},n}(),zn=function(){function t(){var t=this;this.Xj=U(),this.ae=void 0,this.te=function(n){var i=n.data;switch(i.kind){case rn.x$:t.he().catch(D);var r=i.port,e=C(),o=new Vn(r,n.source.id);t.Xj.set(e,o);r.addEventListener("message",function n(i){i.data.kind===rn.W$&&(t.ve(e),r.removeEventListener("message",n))});var u={kind:rn.U$,sessionId:e};r.postMessage(u)}},this.de=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 o=t.Xj.get(r);if(o)try{var u=o.ce(e);n.respondWith(u)}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.hm=function(t){this.ae=t,t.addEventListener("message",this.te),t.addEventListener("fetch",this.de)},n.ve=function(t){var n=this.Xj.get(t);n&&n.close(),this.Xj.delete(t)},n.he=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.ae.clients.matchAll();case 2:n=t.sent,i=n.map(function(t){return t.id}),this.Xj.forEach(function(t,n){O(i,t.ee)||r.ve(n)});case 5:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),t}();zn.be=new zn,function(t){t.$r="web",t.re="android",t.ue="android-tv",t.oe="ios",t.fe="tvos",t._e="chromecast"}(Hn||(Hn={}));var Gn=e?e.userAgent:"",Yn=Gn.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),Kn=Gn.match(/Android ([0-9\.]+)/i),$n=Gn.match(/Windows NT ([0-9\.]+)/i),Jn=Gn.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),Zn=Gn.match(/Firefox\/([0-9\.]+)/i),Qn=Gn.match(/OPR\/(\d+\.\d+)/i),ti=Gn.match(/Tizen ([0-9\.]+)/i),ni=function(){function n(){this.we=Boolean("ontouchstart"in t||t.DocumentTouch&&r instanceof t.DocumentTouch||e&&e.msMaxTouchPoints),this.ye=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(Gn)||/(macintosh|mac(?=_powerpc)\s)/i.test(Gn),this.ke=/Windows NT/i.test(Gn),this.me=$n?d($n[1]):0,this.pe=/Android/i.test(Gn),this.Ae=Kn?d(Kn[1]):0,this.Te=/windows phone (8|8\.1)/i.test(Gn),this.Se=/iPhone/i.test(Gn),this.Ee=/iPad/i.test(Gn),this.Ie=this.ye&&this.we&&!this.Ee,this.Re=/iPod/i.test(Gn),this.Ne=/Mobile Safari/i.test(Gn),this.De=(this.Se||this.Ee||this.Ie||this.Re)&&!this.Te,this.Ce=this.Te||this.De||this.pe||this.Ne,this.Pe=/CriOS/i.test(Gn),this.Oe=Boolean(t.chrome&&/google/i.test(e.vendor))||this.Pe,this.Be=Boolean(t.chrome||/Chrome/i.test(Gn)||/CriOS/i.test(Gn)),this.Le=Yn?l(Yn[1],10):0,this.Me=/SMART-TV.*Tizen/i.test(Gn),this.xe=ti?d(ti[1]):0,this.Ue=/webos|web0s/i.test(Gn),this.Fe=/Edge\/\d+/i.test(Gn),this.He=/Trident/i.test(Gn),this.Ve=this.He&&!t.ActiveXObject&&"ActiveXObject"in t,this.Xe=/Vivaldi/i.test(Gn),this.ze=/Firefox/i.test(Gn)&&!/Seamonkey/i.test(Gn),this.We=Zn?d(Zn[1]):0,this.qe=/Safari/i.test(Gn)&&!/Chrome/i.test(Gn)&&!this.Te&&!this.Me,this.Ge=Jn?d(Jn[2]):0,this.je=Boolean(Qn),this.Ye=Qn?d(Qn[1]):0,this.Qe=/CrKey/.test(Gn),this.Ke=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv)\b/i.test(Gn),this.Ze="web"===Hn.ue,this.Je="web"===Hn.re,this.$e=this.Je||this.Ze,this.ns="web"===Hn.oe,this.rs="web"===Hn.fe,this.us="web"===Hn._e}return P(n,[{key:"hs",get:function(){return this.we}},{key:"fs",get:function(){return this.ye}},{key:"vs",get:function(){return this.ke}},{key:"ds",get:function(){return this.me}},{key:"ls",get:function(){return this.pe}},{key:"_s",get:function(){return this.Ae}},{key:"gs",get:function(){return this.Te}},{key:"ys",get:function(){return this.Se}},{key:"As",get:function(){return this.Ee}},{key:"Ts",get:function(){return this.Ie}},{key:"Ss",get:function(){return this.Re}},{key:"Es",get:function(){return this.De}},{key:"Is",get:function(){return this.Ne}},{key:"Rs",get:function(){return this.Ce}},{key:"Ns",get:function(){return this.Pe}},{key:"Ds",get:function(){return this.Oe}},{key:"Cs",get:function(){return this.Le}},{key:"Ps",get:function(){return this.Me}},{key:"Os",get:function(){return this.xe}},{key:"Bs",get:function(){return this.Ue}},{key:"Ls",get:function(){return this.Fe}},{key:"Ms",get:function(){return this.He}},{key:"xs",get:function(){return this.Ve}},{key:"Us",get:function(){return this.Xe}},{key:"Fs",get:function(){return this.ze}},{key:"Hs",get:function(){return this.We}},{key:"Vs",get:function(){return this.qe}},{key:"Xs",get:function(){return this.Ge}},{key:"zs",get:function(){return this.je}},{key:"Ws",get:function(){return this.Ye}},{key:"qs",get:function(){return this.Qe}},{key:"Gs",get:function(){return this.Ke}},{key:"js",get:function(){if(!(this.Bs||this.Ps))return!1;var t=this.Cs;return void 0===t||Number(t)<56}},{key:"Ys",get:function(){return this.Ze}},{key:"Qs",get:function(){return this.Je}},{key:"Ks",get:function(){return this.$e}},{key:"Zs",get:function(){return this.ns}},{key:"Js",get:function(){return this.rs}},{key:"$s",get:function(){return this.us}},{key:"tu",get:function(){return this.Be}}]),n}();ni.nu=new ni;var ii=ni.nu,ri=!(ii.Ms&&!ii.xs),ei=t.console;function oi(t){if(T(t))try{return JSON.stringify(t)}catch(t){}return t}function ui(t){return t.map(oi).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](ui(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,ui(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(ot);!function(t){t[t.au=1]="au",t[t.vu=2]="vu",t[t.fu=3]="fu",t[t.du=4]="du",t[t._u=9]="_u"}(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.wu=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.yu=void 0,this.yu=t}var n=t.prototype;return n.mu=function(t){return this.yu.isEqualNode(t.yu)},n.pu=function(n){return new t(this.yu.cloneNode(n))},P(t,[{key:"ou",get:function(){return di.vu}},{key:"bu",get:function(){var t;return null!=(t=this.yu.localName)?t:Ti(this.yu.nodeName)}},{key:"Au",get:function(){return this.yu.nodeName}},{key:"Tu",get:function(){var t;return null!=(t=this.yu.namespaceURI)?t:void 0}},{key:"Su",get:function(){var t;return null!=(t=this.yu.prefix)?t:void 0}},{key:"Eu",get:function(){return this.yu.nodeValue}}]),t}(),bi=function(){function t(t){this.Iu=void 0,this.Ru=void 0,this.Iu=t}var n=t.prototype;return n.Nu=function(t){return this.Du.filter(function(n){return Ri(n)&&n.Cu===t})},n.Pu=function(t,n){return this.Du.filter(function(i){return Ri(i)&&i.bu===n&&i.Tu===t})},n.Ou=function(t){this.Iu.appendChild(t.Bu),this.Ru&&this.Ru.push(t)},n.mu=function(t){return this.Iu.isEqualNode(t.Bu)},P(t,[{key:"Du",get:function(){return void 0===this.Ru&&(this.Ru=function(t){for(var n=[],i=0;i<t.length;i++){var r=Ii(t.item(i));r&&n.push(r)}return n}(this.Iu.childNodes)),this.Ru}},{key:"Lu",get:function(){return this.Du.filter(Ri)}},{key:"Bu",get:function(){return this.Iu}}]),t}(),gi=function(t){function n(n){return t.call(this,n)||this}rt(n,t);var i=n.prototype;return i.Mu=function(t){if(this.Iu.hasAttribute(t))return this.Iu.getAttribute(t)},i.xu=function(t,n){if(this.Iu.hasAttributeNS(t,n))return this.Iu.getAttributeNS(t,n)},i.Uu=function(t){this.Iu.removeAttribute(t)},i.Fu=function(t,n){this.Iu.removeAttributeNS(t,n)},i.Hu=function(t,n){this.Iu.setAttribute(t,n)},i.Vu=function(t,n,i){this.Iu.setAttributeNS(t,n,i)},i.pu=function(t){return new n(this.Iu.cloneNode(t))},P(n,[{key:"ou",get:function(){return di.au}},{key:"bu",get:function(){var t;return null!=(t=this.Iu.localName)?t:Ti(this.Iu.nodeName)}},{key:"Tu",get:function(){var t;return null!=(t=this.Iu.namespaceURI)?t:void 0}},{key:"Su",get:function(){var t;return null!=(t=this.Iu.prefix)?t:void 0}},{key:"Cu",get:function(){return this.Iu.nodeName}},{key:"Xu",get:function(){return function(t){for(var n=[],i=0;i<t.length;i++)n.push(new pi(t.item(i)));return n}(this.Iu.attributes)}},{key:"Wu",get:function(){return this.Iu.textContent}}]),n}(bi),mi=function(){function t(t){this.Iu=void 0,this.Iu=t}return t.prototype.mu=function(t){return this.Gu===t.Gu},P(t,[{key:"Gu",get:function(){return this.Iu.nodeValue}},{key:"Bu",get:function(){return this.Iu}}]),t}(),_i=function(t){function n(n){return t.call(this,n)||this}return rt(n,t),n.prototype.pu=function(t){return new n(this.Iu.cloneNode(t))},P(n,[{key:"ou",get:function(){return di.fu}}]),n}(mi),Ei=function(t){function n(n){return t.call(this,n)||this}return rt(n,t),n.prototype.pu=function(t){return new n(this.Iu.cloneNode(t))},P(n,[{key:"ou",get:function(){return di.du}}]),n}(mi),Si=function(t){function n(n){return t.call(this,n)||this}return rt(n,t),n.prototype.pu=function(t){return new n(this.Iu.cloneNode(t))},P(n,[{key:"ou",get:function(){return di._u}},{key:"ju",get:function(){return new gi(this.Iu.documentElement)}}]),n}(bi);function Ri(t){return function(t){return t.ou===di.au}(t)}function Ii(t){switch(t.nodeType){case di.au:return new gi(t);case di.fu:return new _i(t);case di.du: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 o=t;t=r,r=o}return t}(t,n);return i!==t&&Oi(i,null,t.length,t),t}function Oi(t,n,i,r){var e,o,u,s,f,c=t.length,a=0,h=2*i;for(e=0;e<c;e+=h)for(u=(o=e+i)+i,o>c&&(o=c),u>c&&(u=c),s=e,f=o;;)if(s<o&&f<u)n(t[s],t[f])<=0?r[a++]=t[s++]:r[a++]=t[f++];else if(s<o)r[a++]=t[s++];else{if(!(f<u))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 zi(t){return qi(t)?t+32:t}function Gi(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 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 o=t.charCodeAt(i++);56320==(64512&o)?n.push(((1023&e)<<10)+(1023&o)+65536):(n.push(e),i--)}else n.push(e)}return n}var ur,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=or(t)).length,r=128,e=0,o=72,u=0,s=t;u<s.length;u++){var f=s[u];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<=o?1:m>=o+26?26:m-o;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))),o=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&ur[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&ur[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 Rr(t){return t<33||t>126||34===t||35===t||60===t||62===t}function Ir(t){return Rr(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 o=i[e];r.push.apply(r,gr(o))}return r}function kr(t,n){for(var i=[],r=0,e=or(t);r<e.length;r++){var o=e[r];i.push.apply(i,Tr(o,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 o=Gi(t[r+1])<<4|Gi(t[r+2]);n.push(o),r+=2}else n.push(e)}return n}(yr(t))}function Or(t){return vr(function(t){ur=t.slice(),sr=ur.length,fr=0;for(var n,i=[];!1!==(n=br());)i.push(n);return i}(Ar(or(t))))}function Nr(t){var n,i,r,e,o=t.length,u=[0,0,0,0,0,0,0,0],s=0,f=null,c=0;if(c<o&&":"===t[c]){if(!(c+1<o&&":"===t[c+1]))throw new a;c+=2,f=s+=1}for(;c<o;){if(8===s)throw new a("Too many groups");if(":"!==t[c]){for(var h=0,v=0;v<4&&c<o&&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<o;){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<o&&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}u[s]=u[s]<<8|w,2!==(d+=1)&&4!==d||(s+=1)}if(4!==d)throw new a;break}if(":"===t[c]){if((c+=1)===o)throw new a}else if(c<o)throw new a;u[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=u)[i=s],n[i]=n[r],n[r]=e,s-=1,p-=1}else if(8!==s)throw new a;return u}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={Yu: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{Yu:2,Qu: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:{Yu: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 o=Dr(e);if(void 0===o)return;i.push(o)}for(var u=0;u<i.length-1;u++)if(i[u]>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?{Yu:1,Qu:r}:""===i?Cr:{Yu:0,Ku:i}}function Pr(t){switch(t.Yu){case 0:return t.Ku;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.Qu);case 2:return"["+function(t){for(var n="",i=function(t){for(var n=0,i=0,r=0,e=0,o=0;o<8;o++)0===t[o]?(0===e&&(r=o),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.Qu)+"]";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 o=e.indexOf("="),u=void 0,s=void 0;-1!==o?(u=e.slice(0,o),s=e.slice(o+1)):(u=e,s=""),u=u.replace(jr," "),s=s.replace(jr," ");var f=Or(u),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(or(r[0])))+"="+Mr(yr(or(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 o=t.charCodeAt(e);if(Hr(o))if(Vr(o)||e===i-1)r.push(Xr);else{var u=t.charCodeAt(e+1);Vr(u)?(r.push(o,u),e++):r.push(Xr)}else r.push(o)}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 zr(t,n){var i=t[0],r=n[0];return i===r?0:i<r?-1:1}function Gr(t){t.Zu.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.Zu,Ur(n))}function Kr(t){if(t.Ju){var n=Lr(t.Zu);""===n&&(n=null),t.Ju.Ju.$u=n}}var $r=function(){function t(t){if(void 0===t&&(t=void 0),this.Ju=null,null==t)this.Zu=[];else if("object"==typeof t||"function"==typeof t)if((o=t)instanceof $r&&Ui(o.Zu)&&(!Li||o[Symbol.iterator]===Jr))this.Zu=t.Zu.slice();else if(function(t){return null!=t&&(!!Ui(t)||!!Li&&"function"==typeof t[Symbol.iterator])}(t)){this.Zu=[];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.Zu.push([Wr(r[0]),Wr(r[1])])}}else for(var e in this.Zu=[],t)h.prototype.hasOwnProperty.call(t,e)&&this.Zu.push([Wr(e),Wr(t[e])]);else(t=Wr(t)).length>0&&"?"===t[0]&&(t=t.slice(1)),this.Zu=Ur(t);var o}var n=t.prototype;return n.append=function(t,n){t=Wr(t),n=Wr(n),this.Zu.push([t,n]),Kr(this)},n.delete=function(t){t=Wr(t);for(var n=this.Zu,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.Zu,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.Zu,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.Zu,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.Zu,r=!1,e=0;e<i.length;){var o=i[e];o[0]===t?r?i.splice(e,1):(o[1]=n,r=!0,e++):e++}r||i.push([t,n]),Kr(this)},n.sort=function(){Ai(this.Zu,zr),Kr(this)},n.toString=function(){return Lr(this.Zu)},n.entries=function(){return new ne(this.Zu,Zr)},n.keys=function(){return new ne(this.Zu,Qr)},n.values=function(){return new ne(this.Zu,te)},n.forEach=function(t){var n=this;this.Zu.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.uo=0,this.Zu=t,this.oo=n}return t.prototype.next=function(){return this.uo<this.Zu.length?{done:!1,value:this.oo(this.Zu[this.uo++])}:{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,oe=/^(?:\.|%2e){2}$/i;function ue(t){return ee.test(t)}function se(t){return oe.test(t)}function fe(t){return void 0!==re[t]}function ce(t){return fe(t.ao)}function ae(t){return""!==t.do||""!==t._o}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.mo;0!==n.length&&("file"===t.ao&&1===n.length&&de(n[0])||n.pop())}function ye(t){return null===t.po||Cr===t.po||t.Ao||"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 o=[],u=!1,s=!1,f=!1,c=or(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){o.length=0,e=2;continue}throw new a("Invalid scheme")}o.push(zi(d)),e=1;break;case 1:if(Hi(d)||43===d||45===d||46===d)o.push(zi(d));else{if(58!==d){if(null===r){o.length=0,e=2,v=0;continue}throw new a("Invalid scheme")}var w=vr(o);if(null!==r){if(fe(i.ao)&&!fe(w))return;if(!fe(i.ao)&&fe(w))return;if((ae(i)||null!==i.To)&&"file"===w)return;if("file"===i.ao&&(i.po===Cr||null===i.po))return}if(i.ao=w,null!==r)return void(ce(i)&&i.To===re[i.ao]&&(i.To=null));o.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.Ao=!0,i.mo.push(""),e=18)}break;case 2:if(!n||n.Ao&&35!==d)throw new a("Invalid scheme");n.Ao&&35===d?(i.ao=n.ao,i.mo=n.mo.slice(),i.$u=n.$u,i.So="",i.Ao=!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.do=n.do,i._o=n._o,i.po=n.po,i.To=n.To,i.mo=n.mo.slice(),i.$u=n.$u):47===d?e=6:63===d?(i.do=n.do,i._o=n._o,i.po=n.po,i.To=n.To,i.mo=n.mo.slice(),i.$u="",e=19):35===d?(i.do=n.do,i._o=n._o,i.po=n.po,i.To=n.To,i.mo=n.mo.slice(),i.$u=n.$u,i.So="",e=20):92===d&&ce(i)?e=6:(i.do=n.do,i._o=n._o,i.po=n.po,i.To=n.To,i.mo=n.mo.slice(),i.mo.pop(),e=17,v-=1);break;case 6:!ce(i)||47!==d&&92!==d?47===d?e=9:(i.do=n.do,i._o=n._o,i.po=n.po,i.To=n.To,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){u&&o.unshift(37,52,48),u=!0;for(var y=0;y<o.length;y++){var p=o[y];if(58!==p||f){var b=vr(Tr(p,Sr));f?i._o+=b:i.do+=b}else f=!0}o.length=0}else if(pe===d||47===d||63===d||35===d||ce(i)&&92===d){if(u&&0===o.length)throw new a("Invalid host");v-=o.length+1,o.length=0,e=10}else o.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===o.length)throw new a("Invalid host");if(null!==r&&0===o.length&&(ae(i)||null!==i.To))return;var g=Fr(vr(o),ce(i));if(i.po=g,o.length=0,e=16,null!==r)return}else 91===d?s=!0:93===d&&(s=!1),o.push(d);else{if(0===o.length)throw new a("Invalid host");var m=Fr(vr(o),ce(i));if(i.po=m,o.length=0,e=12,11===r)return}break;case 12:if(Xi(d))o.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!==o.length){var _=l(vr(o),10);if(_>65535)throw new a("Invalid port");i.To=_===re[i.ao]?null:_,o.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.po=n.po,i.mo=n.mo.slice(),i.$u=n.$u):63===d?(i.po=n.po,i.mo=n.mo.slice(),i.$u="",e=19):35===d?(i.po=n.po,i.mo=n.mo.slice(),i.$u=n.$u,i.So="",e=20):(he(c.slice(v))||(i.po=n.po,i.mo=n.mo.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.mo[0])?i.mo.push(n.mo[0]):i.po=n.po),e=17,v-=1);break;case 15:if(pe===d||47===d||92===d||63===d||35===d)if(v-=1,null===r&&le(o))e=17;else if(0===o.length){if(i.po=Cr,null!==r)return;e=16}else{var E=Fr(vr(o),ce(i));if(0===E.Yu&&"localhost"===E.Ku&&(E=Cr),i.po=E,null!==r)return;o.length=0,e=16}else o.push(d);break;case 16:ce(i)?(e=17,47!==d&&92!==d&&(v-=1)):null===r&&63===d?(i.$u="",e=19):null===r&&35===d?(i.So="",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(o);if(se(S)?(we(i),47===d||ce(i)&&92===d||i.mo.push("")):!ue(S)||47===d||ce(i)&&92===d?ue(S)||("file"===i.ao&&0===i.mo.length&&le(o)&&(Cr!==i.po&&null!==i.po&&(i.po=Cr),o[1]=58,S=vr(o)),i.mo.push(S)):i.mo.push(""),o.length=0,"file"===i.ao&&(pe===d||63===d||35===d))for(;i.mo.length>1&&""===i.mo[0];)i.mo.shift();63===d?(i.$u="",e=19):35===d&&(i.So="",e=20)}else o.push.apply(o,Tr(d,Er));break;case 18:63===d?(i.$u="",e=19):35===d?(i.So="",e=20):pe!==d&&(i.mo[0]+=vr(Tr(d,mr)));break;case 19:null===r&&35===d?(i.So="",e=20):pe!==d&&(i.$u+=vr(Tr(d,ce(i)?Ir:Rr)));break;case 20:pe===d||0===d||(i.So+=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.do="",this._o="",this.po=null,this.To=null,this.mo=[],this.$u=null,this.So=null,this.Ao=!1};function Se(t){switch(t.ao){case"blob":var n;try{n=me(t.mo[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.po,e=t.To,i+"://"+Pr(r)+(null===e?"":":"+e);case"file":default:return ie}var i,r,e}var Re,Ie,Te=function(){function t(t,n){var i,r,e=null;if(null!=n)if(null!=(i=n)&&i instanceof Te&&"object"==typeof i.Ju)e=n.Ju;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 o=r.$u;this.Ju=r,this.$u=function(t){var n=new $r;return null!==t&&Yr(n,t),n}(o),this.$u.Ju=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.po?(i+="//",ae(t)&&(i+=t.do,""!==t._o&&(i+=":"+t._o),i+="@"),i+=Pr(t.po),null!==t.To&&(i+=":"+t.To)):null===t.po&&"file"===t.ao&&(i+="//"),t.Ao)i+=t.mo[0];else for(var r=0,e=t.mo;r<e.length;r++)i+="/"+e[r];return null!==t.$u&&(i+="?"+t.$u),n||null===t.So||(i+="#"+t.So),i}(this.Ju)},set:function(t){var n;try{n=me(String(t),null)}catch(t){throw new a("Invalid URL: "+t.message)}this.Ju=n,Gr(this.$u);var i=this.Ju.$u;null!==i&&Yr(this.$u,i)}},{key:"origin",get:function(){return Se(this.Ju)}},{key:"protocol",get:function(){return this.Ju.ao+":"},set:function(t){_e(t+":",null,this.Ju,0)}},{key:"username",get:function(){return this.Ju.do},set:function(t){ye(this.Ju)||(this.Ju.do=kr(t,Sr))}},{key:"password",get:function(){return this.Ju._o},set:function(t){ye(this.Ju)||(this.Ju._o=kr(t,Sr))}},{key:"host",get:function(){var t=this.Ju,n=t.po;if(null===n)return"";var i=t.To,r=Pr(n);return null!==i&&(r+=":"+i),r},set:function(t){this.Ju.Ao||_e(t,null,this.Ju,10)}},{key:"hostname",get:function(){var t=this.Ju.po;return null===t?"":Pr(t)},set:function(t){this.Ju.Ao||_e(t,null,this.Ju,11)}},{key:"port",get:function(){var t=this.Ju.To;return null===t?"":""+t},set:function(t){ye(this.Ju)||(""===t?this.Ju.To=null:_e(t,null,this.Ju,12))}},{key:"pathname",get:function(){var t=this.Ju.mo;return this.Ju.Ao?t[0]:0===t.length?"":"/"+t.join("/")},set:function(t){this.Ju.Ao||(this.Ju.mo.length=0,_e(t,null,this.Ju,16))}},{key:"search",get:function(){var t=this.Ju.$u;return null===t||""===t?"":"?"+t},set:function(t){t=Wr(t);var n=this.Ju;if(""===t)return n.$u=null,void Gr(this.$u);"?"===t[0]&&(t=t.slice(1)),n.$u="",_e(t,null,n,19),Yr(this.$u,t)}},{key:"searchParams",get:function(){return this.$u}},{key:"hash",get:function(){var t=this.Ju.So;return null===t||""===t?"":"#"+t},set:function(t){""!==t?("#"===t[0]&&(t=t.slice(1)),this.Ju.So="",_e(t,null,this.Ju,20)):this.Ju.So=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 Ie||(Ie=Ae()),Ie}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.Eo=void 0,this.Io=!1,this.hs=Ne,this.Rs=!1,this.Ro=!0,this.No=!0}var n=t.prototype;return n.Do=function(){return 0},n.Co=function(t,n){return!0},n.Po=function(t){return t>=1/6*2},P(t,[{key:"Oo",get:function(){return void 0===this.Eo&&(this.Eo=this.Do()),this.Eo}},{key:"Bo",get:function(){return i.devicePixelRatio||1}},{key:"Lo",get:function(){return Ce}},{key:"Mo",get:function(){return!1}},{key:"xo",get:function(){return!0}},{key:"Uo",get:function(){return ii.fs||ii.Es}},{key:"Fo",get:function(){return!0}},{key:"Ho",get:function(){return!0}},{key:"Vo",get:function(){}}]),t}(),Be=function(){var t=Ae();if(!t)return!1;var n=t.muted;return t.muted=!n,t.muted!==n}();!function(){if(ii.Ts)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).Xo=void 0,i.Xo=n,i.Xo&&(i.Io=i.Xo.Io,i.hs=i.Xo.hs,i.Ro=Be&&i.Xo.Ro),i}rt(n,t);var i=n.prototype;return i.Do=function(){return this.Xo?this.Xo.Oo:t.prototype.Do.call(this)},i.Co=function(n,i){return this.Xo?this.Xo.Co(n,i):t.prototype.Co.call(this,n,i)},i.Po=function(n){return this.Xo?this.Xo.Po(n):t.prototype.Po.call(this,n)},P(n,[{key:"Vo",get:function(){var t;return null==(t=this.Xo)?void 0:t.Vo}}]),n}(xe),Pe=function(t){function n(n){var i;return(i=t.call(this,n)||this).Io=!0,i.Rs=!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.Do=function(){if(!Re.MediaSource)return 1},n}(Pe),Ue=function(t){function n(){return t.apply(this,arguments)||this}return rt(n,t),n.prototype.Co=function(n,i){return!(i.zo>1920)&&t.prototype.Co.call(this,n,i)},P(n,[{key:"Mo",get:function(){return ii.Os<3}},{key:"xo",get:function(){return ii.Os>=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.Co=function(t,n){if(t&&t.Wo&&n&&n.Wo){var i=qe(t.Wo,"mp4a.40.2")&&qe(n.Wo,"mp4a.40.5"),r=qe(t.Wo,"mp4a.40.5")&&qe(n.Wo,"mp4a.40.2"),e=qe(t.Wo,"mp4a.40.2")&&qe(n.Wo,"mp4a.40.34"),o=qe(t.Wo,"mp4a.40.34")&&qe(n.Wo,"mp4a.40.2"),u=qe(t.Wo,"mp4a.40.5")&&qe(n.Wo,"mp4a.40.34"),s=qe(t.Wo,"mp4a.40.34")&&qe(n.Wo,"mp4a.40.5");return!(i||r||e||o||u||s)}return!0},P(n,[{key:"Vo",get:function(){if(ii.fs)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.Po=function(t){return t>=2},n}(Le),Xe=function(t){function n(){var n;return(n=t.call(this)||this).Io=ii.Xs>=11,n.Ro=ii.Vs&&!(ii.Es&&ii.Xs<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:"Fo",get:function(){return!1}}]),n}(Fe),Ve=function(){function n(){var n;this.qo=void 0,this.Go=new yi,this.jo=new ze,this.Yo=(n=function(){if(ii.Fs)return new Me;if(ii.Ls||ii.Ms)return new We;if(ii.Vs)return new Xe;return new Le}(),ii.Es?new je(n):ii.Rs?new Pe(n):ii.Ps?new Ue(n):ii.Bs?new He(n):new Fe(n)),this.Qo=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.qo=function(){return t.performance.now()}:this.qo=li}var i=n.prototype;return i.Ko=function(){ci.apply(void 0,arguments)},i.Zo=function(){ai.apply(void 0,arguments)},i.Jo=function(){hi.apply(void 0,arguments)},i.$o=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.Kr=function(t,n){return o(t,n)},i.nh=function(t,n){return s(t,n)},i.Qr=function(t){u(t)},i.ih=function(t){f(t)},i.wu=function(t){return this.Go.wu(t)},i.rh=function(){return this.eh.rh()},i.sh=function(){return this.eh.sh()},i.uh=function(){return this.eh.uh()},i.oh=function(){return this.eh.oh()},i.ah=function(){return this.eh.ah()},i.fh=function(t,n){return this.eh.fh(t,n)},i.vh=function(t){return this.eh.vh(t)},i.dh=function(t,n){var i;return void 0===n&&(n=ke(Re)),i="object"!=typeof n||n instanceof Te?n:n.href,new Te(t,i)},i.lh=function(n,i){if(void 0===i&&(i=ke(Re)),this.Qo){var r="string"==typeof i?i:i.toString();return new t.URL(n,r).href}return this.dh(n,i).href},P(n,[{key:"_h",get:function(){return this.jo}},{key:"wh",get:function(){return this.Yo}},{key:"gh",get:function(){return{yh:e&&e.userAgent.match(/Android /i)?"Android":"other",kh:Boolean(e&&e.userAgent.match(/Android 8.0.0/i))}}},{key:"ph",get:function(){return t&&t.location&&"https:"===t.location.protocol}},{key:"Ah",get:function(){return"languages"in e?e.languages.slice():[e.language]}}]),n}(),ze=function(){function t(){}return P(t,[{key:"Th",get:function(){return e.oscpu}},{key:"wh",get:function(){return e.platform}},{key:"Sh",get:function(){return e.vendor}},{key:"Eh",get:function(){return e.vendorSub}}]),t}();function Ge(){return(Ge=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 Ye,Ke="com.microsoft.playready",$e="94ce86fb-07ff-4f43-adb8-93d2fa968ca2",Je="urn:uuid:"+$e,Ze="com.apple.fps.1_0";!function(t){t.Bh="playready",t.Lh="widevine",t.Mh="fairplay",t.Uh="clearkey",t.Fh="aes128"}(Ye||(Ye={}));var Qe={Hh:Ye.Bh,Vh:Ke,Xh:"cenc",Wh:"9a04f079-9840-4286-ab92-e65be0885f95",qh:"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95",Gh:"PlayReady"},to={Hh:Ye.Lh,Vh:"com.widevine.alpha",Xh:"cenc",Wh:"edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",qh:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",Gh:"Widevine"},no={Hh:Ye.Mh,Vh:Ze,Xh:"skd",Wh:$e,qh:Je,Gh:"FairPlay"},io=(Ye.Mh,{Hh:Ye.Uh,Vh:"org.w3.clearkey",Xh:"cenc",Wh:"1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",qh:"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",Gh:"ClearKey"}),ro=ii.Ds&&ii.Cs>=42||ii.Fs&&ii.Hs>=38||ii.Ls||ii.xs||ii.zs&&ii.Ws>=29;function eo(t,n){return r="audio",null!=(i=t)&&-1!==i.indexOf(r)?{initDataTypes:["cenc"],audioCapabilities:[Ge({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]}:{initDataTypes:["cenc"],videoCapabilities:[Ge({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]};var i,r}var oo,uo=function(){function t(t){this.jh=void 0,this.Yh=U(),this.Qh=void 0,this.jh=t}var n=t.prototype;return n.ah=function(){return this.vh(to)},n.sh=function(){return this.vh(io)},n.oh=function(){return this.vh(Qe)},n.uh=function(){return this.vh(no)},n.vh=function(t){var n=t.qh,i=this.Yh.get(n);if(i)return i;var r=this.fh(t,'video/mp4; codecs="avc1.42000a"');return this.Yh.set(n,r),r},n.fh=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.jh.Kh(n.Vh,[eo(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.jh.Kh(n.Vh,[eo(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.rh=function(){return this.Qh||(this.Qh=this.Zh()),this.Qh},n.Zh=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(ro){t.next=4;break}return t.abrupt("return",!1);case 4:return t.next=6,this.sh();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}(),so=["cenc"],fo=function(t){function n(n){var i;return(i=t.call(this,"Wa")||this).Xa=n,i}return rt(n,t),n}(Pn),co=function(t){function n(n,i,r,e){var o;return(o=t.call(this,"qa")||this).Xa=n,o.Ga=i,o.qa=r,o.Ya=e,o}return rt(n,t),n}(Pn);!function(t){t.Ka="Za",t.Ja="$a"}(oo||(oo={}));var ao=new y([0]).buffer,ho=function(){function t(){this.nc=void 0,this.nc=[]}var n=t.prototype;return n.ic=function(t){for(var n=0,i=this.nc;n<i.length;n++){if(i[n][0]===t)return!0}return!1},n.rc=function(t){for(var n=0,i=this.nc;n<i.length;n++){var r=i[n];if(r[0]===t)return r[1]}},n.ec=function(t,n){this.nc.forEach(function(n){return t(n[1],n[0])},n)},n.uc=function(t,n){this.nc.push([t,n])},n.hc=function(){N(this.nc)},P(t,[{key:"ac",get:function(){return this.nc.length}}]),t}(),vo=function(){function t(){var t=this;this.yc=void 0,this._i=void 0,this.Z=void 0,this.yc=new E(function(n,i){t._i=n,t.Z=i})}var n=t.prototype;return n.kc=function(t){this._i&&(this._i(t),this.oa())},n.mc=function(t){this.Z&&(this.Z(t),this.oa())},n.Ta=function(){this.yc.catch(D),this.mc(new Qt)},n.oa=function(){this._i=void 0,this.Z=void 0},t}();function lo(t,n){return t===Ke?function(t){if(t.byteLength<2*wo.length)return t;if(mn(new DataView(t,0,2*wo.length),!0)===wo)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 wo="<PlayReady";var yo=function(t){function n(n,i,r,e){var o;return(o=t.call(this,n,e)||this).pc=void 0,o.bc=void 0,o.pc=i,o.bc=r,o}return rt(n,t),n}($t),po=function(t){function n(n,i){var r;(r=t.call(this)||this).Ac=void 0,r.Tc=!1,r.Sc=void 0,r.Ec=void 0,r.Ic=function(){r.Rc()},r.Nc=function(t){r.Pa(new co(Yt(r),t.messageType,lo(r.Dc,t.message)))},r.Cc=function(){r.Tc=!0,r.Ac.ac>0&&(r.Ac.hc(),r.Pa(new fo(Yt(r)))),r.Pc.removeEventListener("keystatuseschange",r.Ic),r.Pc.removeEventListener("message",r.Nc)},r.Pc=n,r.Dc=i,r.Pc.addEventListener("keystatuseschange",r.Ic),r.Pc.addEventListener("message",r.Nc),r.Ac=new ho;var e=[];return r.Pc.closed&&e.push(E.resolve(r.Pc.closed)),r.Ec=new vo,e.push(r.Ec.yc),r.Sc=E.race(e).then(r.Cc,r.Cc),r.Rc(),r}rt(n,t);var i=n.prototype;return i.Oc=function(){if(this.Tc)return this.Sc;var t,n,i=[];return i.push(E.resolve(this.Pc.close())),i.push((t=1e3,new E(function(i,r){if(void 0!==n&&n.Jh)r(new Qt);else{var e=m.Kr(function(){void 0!==n&&n._a(o),i()},t),o=function(){m.Qr(e),r(new Qt)};void 0!==n&&n.va(o)}}))),this.Ec.kc(E.race(i).catch(bo)),this.Tc=!0,this.Sc},i.Bc=function(t,n,i){return E.resolve(this.Pc.generateRequest(t,n)).catch(bo)},i.Lc=function(t){return E.resolve(this.Pc.load(t)).catch(bo)},i.Mc=function(){return E.resolve(this.Pc.remove()).catch(bo)},i.xc=function(t){return E.resolve(this.Pc.update(t)).catch(bo)},i.Rc=function(){var t=this;this.Ac.hc(),this.Pc.keyStatuses.forEach(function(n,i){t.Uc(i,n)}),this.Pa(new fo(this))},i.Uc=function(t,n){if("string"==typeof t){var i=t;t=n,n=i}var r=Tn(t);if(this.Dc===Ke&&16===r.byteLength){var e=Rn(r),o=e.getUint32(0,!0),u=e.getUint16(4,!0),s=e.getUint16(6,!0);e.setUint32(0,o,!1),e.setUint16(4,u,!1),e.setUint16(6,s,!1)}this.Dc===Ke&&"status-pending"===n&&(n="usable"),this.Ac.uc(r,n)},P(n,[{key:"Fc",get:function(){return this.Sc}},{key:"Hc",get:function(){return this.Pc.expiration}},{key:"Vc",get:function(){return this.Ac}},{key:"Xc",get:function(){return this.Pc.sessionId}}]),n}(Fn);function bo(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 yo(t.message,void 0,n,t)}var go=function(){function t(t,n,i){this.zc=t,this.Wc=n,this.qc=i}var n=t.prototype;return n.Gc=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 po(this.zc.createSession(n),this.Wc));case 1:case"end":return t.stop()}},t,this)}));return function(n){return t.apply(this,arguments)}}(),n.jc=function(t){return E.resolve(this.zc.setServerCertificate(t))},n.Yc=function(t){return E.resolve(t.setMediaKeys(this.zc))},n.Qc=function(t){return E.resolve(t.setMediaKeys(null))},t}(),mo=function(){function t(t,n,i){this.Kc=t,this.Dc=n,this.Zc=i}var n=t.prototype;return n.Jc=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.Kc.createMediaKeys();case 2:return n=t.sent,t.abrupt("return",new go(n,this.Dc,this.Zc));case 4:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),n.$c=function(){return this.Zc},P(t,[{key:"Wc",get:function(){return this.Kc.keySystem}}]),t}();function _o(t,n,i,r){var e=!1;if(!(r.persistentState&&"optional"!==r.persistentState||r.distinctiveIdentifier&&"optional"!==r.distinctiveIdentifier)){var o={audioCapabilities:[],videoCapabilities:[],persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",initDataTypes:r.initDataTypes,sessionTypes:["temporary"],label:r.label,if:r.if},u=!1;if(r.audioCapabilities){var s=r.audioCapabilities.filter(function(t){return Boolean(t.contentType)});s.length&&(o.audioCapabilities=s.filter(function(r){return Eo(t,n,i,r)}),u=!0,o.audioCapabilities.length&&(e=!0))}if(r.videoCapabilities){var f=r.videoCapabilities.filter(function(t){return Boolean(t.contentType)});f.length&&(o.videoCapabilities=f.filter(function(r){return Eo(t,n,i,r)}),u=!0,o.videoCapabilities.length&&(e=!0))}return u||(e=t(i,"video/mp4")),e?o:void 0}}function Eo(t,n,i,r){return!!r.contentType&&(!(r.encryptionScheme&&!O(n,r.encryptionScheme))&&(!r.robustness&&t(i,(e=r.contentType,o=e.trim(),(u=o.indexOf(";"))<0?o:o.substr(0,u).trim()))));var e,o,u}function So(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 Ro(t){return!(!t.audioCapabilities||!t.audioCapabilities.some(Io))||!(!t.videoCapabilities||!t.videoCapabilities.some(Io))}function Io(t){return!t.robustness}function To(t,n){for(var i=[],r=0;r<t.length;r++){var e=t[r];e.robustness?i.push(e):i.push(Ge({},e,{robustness:n}))}return i}var ko,Ao,Oo=function(){function t(){}return t.prototype.Kh=function(){var t=E.coroutine(_.mark(function t(n,i){var r,o,u,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.if}),r=0,o=i;r<o.length;r++)(u=o[r]).audioCapabilities&&(u.audioCapabilities=So(u.audioCapabilities)),u.videoCapabilities&&(u.videoCapabilities=So(u.videoCapabilities));if("com.widevine.alpha"!==n||!i.some(Ro)){t.next=14;break}return s=i.map(function(t){return i="SW_SECURE_CRYPTO",Ge({},n=t,{videoCapabilities:n.videoCapabilities?To(n.videoCapabilities,i):void 0,audioCapabilities:n.audioCapabilities?To(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 mo(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 mo(a,n,h));case 19:case"end":return t.stop()}},t,null,[[4,12]])}));return function(n,i){return t.apply(this,arguments)}}(),t.rf=function(){return void 0!==e&&"function"==typeof e.requestMediaKeySystemAccess},t}(),No=function(){function t(){}return t.prototype.Kh=function(t,n){try{return E.resolve(function(t,n){if(!Do())throw new a("Unsupported key system "+t)}(t))}catch(t){return E.reject(t)}},t.rf=function(){return Do()},t}();function Do(){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"}(ko||(ko={})),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"}(Ao||(Ao={})),function(t){(Ao||(Ao={})).fromCode=function(t){var n=v.floor(t/1e3);if(n in Ao)return n;throw new a("Invalid error code: "+t)}}();var Co=function(){function t(){}return t.prototype.Kh=function(t,n){try{return E.resolve(function(t,n){if(t!==Ze)throw new a(t+" is not supported with webkit-prefixed Encrypted Media Extensions.");if(!xo())throw new a("Unsupported key system "+t)}(t))}catch(t){return E.reject(t)}},t.rf=function(){return xo()},t}();function xo(){return void 0!==Re.WebKitMediaKeys}var Bo,Fo=function(){function t(t){this.If=t}return t.prototype.Kh=function(){var t=E.coroutine(_.mark(function t(n,i){var r,e,o;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=0,e=this.If;case 1:if(!(r<e.length)){t.next=14;break}return o=e[r],t.prev=3,t.next=6,o.Kh(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}(),Po=function(t){function n(n){var i;return(i=t.call(this)||this).uf=void 0,i.pf=void 0,i.ef=void 0,i.Rf=!1,i.Nf=void 0,i.Df=void 0,i.Cf=void 0,i.Pf=void 0,i.Of=void 0,i.Dc=n,i.ef=new vo,i.Df="",i.Of=new vo,i.Cf=new ho,i}rt(n,t);var i=n.prototype;return i.Bf=function(){this.pf&&(this._f("usable"),this.pf.kc(void 0),this.pf=void 0)},i.Lf=function(t){var n=new yo("Unknown CDM error",t.errorCode,t.systemCode);this.pf?(this.pf.mc(n),this.pf=void 0):this.uf?(this.uf.mc(n),this.uf=void 0):n.pc===WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT?this._f("output-restricted"):1===n.bc?this._f("expired"):this._f("internal-error")},i.Mf=function(t){0!==t.message.byteLength&&(this.uf&&(this.uf.kc(void 0),this.uf=void 0),this.Pa(new co(this,"license-request",lo(this.Dc,kn(t.message).buffer),t.defaultURL||void 0)))},i.xf=function(t){this.Pf||(this.Pf=t,this.Of.kc(t))},i.Oc=function(){var t=E.coroutine(_.mark(function t(){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.throwIfClosed(),this.Rf=!0,this.ef.kc(void 0);case 3:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),i.Bc=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.uf=new vo,this.Nf=Tn(i),t.t0=this.Pf,t.t0){t.next=8;break}return t.next=7,this.Of.yc;case 7:t.t0=t.sent;case 8:return t.t0.webkitGenerateKeyRequest(this.Dc,this.Nf),t.next=12,this.uf.yc;case 12:case"end":return t.stop()}},t,this)}));return function(n,i){return t.apply(this,arguments)}}(),i.Lc=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.Mc=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.xc=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.pf=new vo,t.t0=this.Pf,t.t0){t.next=7;break}return t.next=6,this.Of.yc;case 6:t.t0=t.sent;case 7:return t.t0.webkitAddKey(this.Dc,Tn(n),this.Nf,this.Xc),t.next=11,this.pf.yc;case 11:case"end":return t.stop()}},t,this)}));return function(n){return t.apply(this,arguments)}}(),i.throwIfClosed=function(){if(this.Rf)throw new a("Already closing or closed.")},i._f=function(t){this.Cf.hc(),this.Cf.uc(ao,t),this.Pa(new fo(this))},P(n,[{key:"Vc",get:function(){return this.Cf}},{key:"Xc",get:function(){return this.Df},set:function(t){this.Df=t}},{key:"Fc",get:function(){return this.ef.yc}},{key:"Hc",get:function(){return NaN}}]),n}(Fn),jo=function(){function t(t,n){var i=this;this.Pf=void 0,this.Uf=U(),this.Ff=[],this.lf=function(t){var n=i.Hf(t.sessionId);n&&n.Bf()},this.Vf=function(t){var n=i.Hf(t.sessionId);n&&n.Lf(t)},this.Xf=function(t){var n=i.Hf(t.sessionId);n&&n.Mf(t)},this.Wc=t,this.qc=n}var n=t.prototype;return n.Yc=function(t){return this.Pf=t,this.Pf.addEventListener("webkitkeyadded",this.lf),this.Pf.addEventListener("webkitkeyerror",this.Vf),this.Pf.addEventListener("webkitkeymessage",this.Xf),this.Uf.forEach(function(n,i){return n.xf(t)}),this.Ff.forEach(function(n){return n.xf(t)}),E.resolve()},n.Qc=function(t){return t.removeEventListener("webkitkeyadded",this.lf),t.removeEventListener("webkitkeyerror",this.Vf),t.removeEventListener("webkitkeymessage",this.Xf),this.Pf=void 0,E.resolve()},n.Gc=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 Po(this.Wc),this.Pf&&e.xf(this.Pf),this.Ff.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.jc=function(t){return E.resolve(!1)},n.Hf=function(t){if(t){var n=this.Uf.get(t);return n||((n=this.Ff.shift())?(n.Xc=t,this.Uf.set(t,n),n):void 0)}},t}(),Uo=function(){function t(t,n){this.Wc=t,this.zf=n}var n=t.prototype;return n.Jc=function(){return E.resolve(new jo(this.Wc,this.zf))},n.$c=function(){return this.zf},t}(),Lo=function(){function t(){}return t.prototype.Kh=function(t,n){try{return E.resolve(Mo(t,n))}catch(t){return E.reject(t)}},t.rf=function(){return"undefined"!=typeof HTMLMediaElement&&void 0!==HTMLMediaElement.prototype.webkitGenerateKeyRequest&&void 0!==HTMLMediaElement.prototype.webkitAddKey&&void 0!==HTMLMediaElement.prototype.webkitCancelKeyRequest},t}();function Mo(t,n){if(!Lo.rf())throw new a("Unsupported key system "+t);for(var i=0;i<n.length;i++){var r=n[i],e=_o(qo,so,t,r);if(e)return new Uo(t,e)}throw new a("Unsupported key system configuration for "+t)}function qo(t,n){var i=Oe();return!(!i||!i.canPlayType||""===i.canPlayType(n,t))}function Wo(){return Bo||(Bo=function(){var t=[];Co.rf()&&t.push(new Co);Oo.rf()&&t.push(new Oo);No.rf()&&t.push(new No);Lo.rf()&&t.push(new Lo);return new Fo(t)}()),Bo}var Xo=function(){function t(){this.Wf=U()}var n=t.prototype;return n.hc=function(t){this.Wf.delete(t)},n.qf=function(){this.Wf.clear()},n.rc=function(t){return this.Wf.get(t)},n.Gf=function(t,n){this.Wf.set(t,n)},t}(),Ho=function(){function t(){}return t.jf=function(){return t.nu||(t.nu=Vo.rf()?new Vo:new Xo),t.nu},t.hc=function(n){t.jf().hc(n)},t.qf=function(){t.jf().qf()},t.rc=function(n){return t.jf().rc(n)},t.Gf=function(n,i){t.jf().Gf(n,i)},t}();Ho.nu=void 0;var Vo=function(n){function i(){return n.apply(this,arguments)||this}rt(i,n),i.rf=function(){try{return t.sessionStorage.setItem("foobar","foobar"),t.sessionStorage.removeItem("foobar"),!0}catch(t){return!1}};var r=i.prototype;return r.hc=function(n){t.sessionStorage.removeItem(n)},r.qf=function(){t.sessionStorage.clear()},r.rc=function(n){return t.sessionStorage[n]},r.Gf=function(n,i){t.sessionStorage[n]=i},i}(Ho);var zo=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 o=t[e];i.append(o)}return i.getBlob(n&&n.type||"")}):null}();function Go(t,n,i){var e=zo([n],{type:"application/octet-stream"}),o=URL.createObjectURL(e),u=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=o,s.download=u,r.body.appendChild(s),s.click(),r.body.removeChild(s),URL.revokeObjectURL(o)}var Yo,Ko;!function(t){t.Yf="Qf",t.Kf="Zf",t.Jf="contentprotectionerror",t.$f="contentprotectionsuccess",t.tv="currentsourcechange",t.rv="destroy",t.ev="durationchange",t.uv="emptied",t.Ka="encrypted",t.ov="ended",t.hv="fv",t.vv="loadstart",t._v="manifestupdate",t.wv="nosupportedrepresentationfound",t.yv="offline",t.mv="online",t.pv="pause",t.bv="play",t.Av="progress",t.Tv="ratechange",t.Sv="representationchange",t.Ev="resize",t.Iv="seeked",t.Rv="seeking",t.Nv="segmentnotfound",t.Dv="Cv",t.Pv="Ov",t.Bv="sourcechange",t.Lv="timeupdate",t.Mv="volumechange",t.xv="Uv",t.Fv="metricschange"}(Yo||(Yo={})),function(t){t.Hv="arraybuffer",t.Vv="json",t.Xv="stream",t.fu="text"}(Ko||(Ko={}));var $o=function(){function t(n){var i=this;this.Oh=void 0,this.Oh={},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=Jo(i),r=Zo(r);var e=i.toLowerCase();if(this.Oh.hasOwnProperty(e)){var o=this.Oh[e],u=o[1];o[1]=u?u+", "+r:r}else this.Oh[e]=[i,r]},n.delete=function(t){var n=Jo(t).toLowerCase();delete this.Oh[n]},n.get=function(t){var n=Jo(t).toLowerCase();return this.Oh.hasOwnProperty(n)?this.Oh[n][1]:null},n.has=function(t){var n=Jo(t).toLowerCase();return this.Oh.hasOwnProperty(n)},n.set=function(t,n){var i=t,r=(i=Jo(i)).toLowerCase();this.Oh[r]=[i,Zo(n)]},n.forEach=function(t,n){for(var i in this.Oh)this.Oh.hasOwnProperty(i)&&t.call(n,this.Oh[i][1],i,this)},n.asList=function(){var t=[];for(var n in this.Oh)if(this.Oh.hasOwnProperty(n)){var i=this.Oh[n],r=i[0],e=i[1];t.push([r,e])}return t},n.zv=function(){var t={};return this.forEach(function(n,i){t[i]=n}),t},n.Wv=function(t){var n=this;t.forEach(function(t,i){n.append(i,t)})},n.qv=function(t){var n=this;t.forEach(function(t,i){n.set(i,t)})},t}();function Jo(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 Zo(t){var n=t;return"string"!=typeof n&&(n=String(n)),n}var Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(t){return"Symbol("+t+")"};function tu(){}var nu=Number.isNaN||function(t){return t!=t},iu=tu;function ru(t){return"object"==typeof t&&null!==t||"function"==typeof t}function eu(t){return t.slice()}function ou(t){return!1!==function(t){if("number"!=typeof t)return!1;if(nu(t))return!1;if(t<0)return!1;return!0}(t)&&t!==1/0}function uu(t,n,i){if("function"!=typeof t)throw new a("Argument is not a function");return Function.prototype.apply.call(t,n,i)}function su(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 cu(e,t,r)};case 1:return function(n){var i=[n].concat(r);return cu(e,t,i)}}}return function(){return bu(void 0)}}function fu(t,n,i){var r=t[n];if(void 0!==r)return uu(r,t,i)}function cu(t,n,i){try{return bu(uu(t,n,i))}catch(t){return gu(t)}}function au(t){return t}function hu(t){if(t=Number(t),nu(t)||t<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return t}function vu(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 lu=E,du=E.prototype.then,wu=E.resolve.bind(lu),yu=E.reject.bind(lu);function pu(t){return new lu(t)}function bu(t){return wu(t)}function gu(t){return yu(t)}function mu(t,n,i){return du.call(t,n,i)}function _u(t,n,i){mu(mu(t,n,i),void 0,iu)}function Eu(t,n){_u(t,n)}function Su(t,n){_u(t,void 0,n)}function Ru(t,n,i){return mu(t,n,i)}function Iu(t){mu(t,void 0,iu)}var Tu=function(){function t(){this.Gv=0,this.Yv=0,this.wr={Qv:[],Kv:void 0},this.Zv=this.wr,this.Gv=0,this.Yv=0}return h.defineProperty(t.prototype,"length",{get:function(){return this.Yv},enumerable:!0,configurable:!0}),t.prototype.push=function(t){var n=this.Zv,i=n;16383===n.Qv.length&&(i={Qv:[],Kv:void 0}),n.Qv.push(t),i!==n&&(this.Zv=i,n.Kv=i),++this.Yv},t.prototype.shift=function(){var t=this.wr,n=t,i=this.Gv,r=i+1,e=t.Qv,o=e[i];return 16384===r&&(n=t.Kv,r=0),--this.Yv,this.Gv=r,t!==n&&(this.wr=n),e[i]=void 0,o},t.prototype.forEach=function(t){for(var n=this.Gv,i=this.wr,r=i.Qv;!(n===r.length&&void 0===i.Kv||n===r.length&&(n=0,0===(r=(i=i.Kv).Qv).length));)t(r[n]),++n},t.prototype.peek=function(){var t=this.wr,n=this.Gv;return t.Qv[n]},t}();function ku(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 Au(t,n){t.Jv=!0,t.$v=n,n.td=t,"readable"===n.rd?Cu(t):"closed"===n.rd?function(t){Cu(t),Fu(t)}(t):xu(t,n.ed)}function Ou(t,n){return Mf(t.$v,n)}function Nu(t){"readable"===t.$v.rd?Bu(t,new a("Reader was released and can no longer be used to monitor the stream's closedness")):function(t,n){xu(t,n)}(t,new a("Reader was released and can no longer be used to monitor the stream's closedness")),t.$v.td=void 0,t.$v=void 0}function Du(t){return new a("Cannot "+t+" a stream using a released reader")}function Cu(t){t.Sc=pu(function(n,i){t.ud=n,t.od=i})}function xu(t,n){Cu(t),Bu(t,n)}function Bu(t,n){Iu(t.Sc),t.od(n),t.ud=void 0,t.od=void 0}function Fu(t){t.ud(void 0),t.ud=void 0,t.od=void 0}var Pu=Qo("[[CancelSteps]]"),ju=Qo("[[PullSteps]]");function Uu(t,n){void 0===n&&(n=!1);var i=new Vu(t);return i.Jv=n,i}function Lu(t){return pu(function(n,i){var r={_i:n,Z:i};t.td.hd.push(r)})}function Mu(t,n,i){var r=t.td;r.hd.shift()._i(ku(n,i,r.Jv))}function qu(t){return t.td.hd.length}function Wu(t){var n=t.td;return void 0!==n&&!!zu(n)}var Xu,Hu,Vu=function(){function t(t){if(!1===Uf(t))throw new a("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===Lf(t))throw new a("This stream has already been locked for exclusive reading by another reader");Au(this,t),this.hd=new Tu}return h.defineProperty(t.prototype,"closed",{get:function(){return zu(this)?this.Sc:gu(Yu("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return zu(this)?void 0===this.$v?gu(Du("cancel")):Ou(this,t):gu(Yu("cancel"))},t.prototype.read=function(){return zu(this)?void 0===this.$v?gu(Du("read from")):Gu(this):gu(Yu("read"))},t.prototype.releaseLock=function(){if(!zu(this))throw Yu("releaseLock");if(void 0!==this.$v){if(this.hd.length>0)throw new a("Tried to release a reader lock when that reader has pending read() calls un-settled");Nu(this)}},t}();function zu(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"hd")}function Gu(t){var n=t.$v;return n.fd=!0,"closed"===n.rd?bu(ku(void 0,!0,t.Jv)):"errored"===n.rd?gu(n.ed):n.vd[ju]()}function Yu(t){return new a("ReadableStreamDefaultReader.prototype."+t+" can only be used on a ReadableStreamDefaultReader")}"symbol"==typeof Qo.asyncIterator&&((Xu={})[Qo.asyncIterator]=function(){return this},Hu=Xu,h.defineProperty(Hu,Qo.asyncIterator,{enumerable:!1}));var Ku={next:function(){if(!1===$u(this))return gu(Ju("next"));var t=this.dd;return void 0===t.$v?gu(Du("iterate")):Ru(Gu(t),function(n){var i=n.done;return i&&Nu(t),ku(n.value,i,!0)})},return:function(t){if(!1===$u(this))return gu(Ju("next"));var n=this.dd;if(void 0===n.$v)return gu(Du("finish iterating"));if(n.hd.length>0)return gu(new a("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this.ld){var i=Ou(n,t);return Nu(n),Ru(i,function(){return ku(t,!0,!0)})}return Nu(n),bu(ku(t,!0,!0))}};function $u(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"dd")}function Ju(t){return new a("ReadableStreamAsyncIterator."+t+" can only be used on a ReadableSteamAsyncIterator")}function Zu(t){var n=t.ri.shift();return t._d-=n.size,t._d<0&&(t._d=0),n.value}function Qu(t,n,i){if(!ou(i=Number(i)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");t.ri.push({value:n,size:i}),t._d+=i}function ts(t){t.ri=new Tu,t._d=0}void 0!==Hu&&h.setPrototypeOf(Ku,Hu),h.defineProperty(Ku,"next",{enumerable:!1}),h.defineProperty(Ku,"return",{enumerable:!1});var ns=Qo("[[AbortSteps]]"),is=Qo("[[ErrorSteps]]"),rs=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=vu(i);void 0===r&&(r=1),function(t,n,i,r){var e=h.create(Ss.prototype);var o=su(n,"write",1,[e]),u=su(n,"close",0,[]),s=su(n,"abort",1,[]);Rs(t,e,function(){return fu(n,"start",[e])},o,u,s,i,r)}(this,t,r=hu(r),e)}return h.defineProperty(t.prototype,"locked",{get:function(){if(!1===us(this))throw Ds("locked");return ss(this)},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===us(this)?gu(Ds("abort")):!0===ss(this)?gu(new a("Cannot abort a stream that already has a writer")):fs(this,t)},t.prototype.close=function(){return!1===us(this)?gu(Ds("close")):!0===ss(this)?gu(new a("Cannot close a stream that already has a writer")):!0===ls(this)?gu(new a("Cannot close an already-closing stream")):cs(this)},t.prototype.getWriter=function(){if(!1===us(this))throw Ds("getWriter");return es(this)},t}();function es(t){return new ys(t)}function os(t){t.rd="writable",t.ed=void 0,t.wd=void 0,t.yd=void 0,t.kd=new Tu,t.md=void 0,t.pd=void 0,t.bd=void 0,t.Td=void 0,t.Sd=!1}function us(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"yd")}function ss(t){return void 0!==t.wd}function fs(t,n){var i=t.rd;if("closed"===i||"errored"===i)return bu(void 0);if(void 0!==t.Td)return t.Td.Cn;var r=!1;"erroring"===i&&(r=!0,n=void 0);var e=pu(function(i,e){t.Td={Cn:void 0,_i:i,Z:e,Kn:n,Ed:r}});return t.Td.Cn=e,!1===r&&hs(t,n),e}function cs(t){var n=t.rd;if("closed"===n||"errored"===n)return gu(new a("The stream (in "+n+" state) is not in the writable state and cannot be closed"));var i,r=pu(function(n,i){var r={_i:n,Z:i};t.pd=r}),e=t.wd;return void 0!==e&&!0===t.Sd&&"writable"===n&&Ws(e),Qu(i=t.yd,"close",0),ks(i),r}function as(t,n){"writable"!==t.rd?vs(t):hs(t,n)}function hs(t,n){var i=t.yd;t.rd="erroring",t.ed=n;var r=t.wd;void 0!==r&&ms(r,n),!1===function(t){if(void 0===t.md&&void 0===t.bd)return!1;return!0}(t)&&!0===i.Id&&vs(t)}function vs(t){t.rd="errored",t.yd[is]();var n=t.ed;if(t.kd.forEach(function(t){t.Z(n)}),t.kd=new Tu,void 0!==t.Td){var i=t.Td;if(t.Td=void 0,!0===i.Ed)return i.Z(n),void ds(t);_u(t.yd[ns](i.Kn),function(){i._i(),ds(t)},function(n){i.Z(n),ds(t)})}else ds(t)}function ls(t){return void 0!==t.pd||void 0!==t.bd}function ds(t){void 0!==t.pd&&(t.pd.Z(t.ed),t.pd=void 0);var n=t.wd;void 0!==n&&Ps(n,t.ed)}function ws(t,n){var i=t.wd;void 0!==i&&n!==t.Sd&&(!0===n?function(t){Us(t)}(i):Ws(i)),t.Sd=n}var ys=function(){function t(t){if(!1===us(t))throw new a("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===ss(t))throw new a("This stream has already been locked for exclusive writing by another writer");this.Rd=t,t.wd=this;var n,i=t.rd;if("writable"===i)!1===ls(t)&&!0===t.Sd?Us(this):Ms(this),Bs(this);else if("erroring"===i)Ls(this,t.ed),Bs(this);else if("closed"===i)Ms(this),Bs(n=this),js(n);else{var r=t.ed;Ls(this,r),Fs(this,r)}}return h.defineProperty(t.prototype,"closed",{get:function(){return!1===ps(this)?gu(Cs("closed")):this.Sc},enumerable:!0,configurable:!0}),h.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===ps(this))throw Cs("desiredSize");if(void 0===this.Rd)throw xs("desiredSize");return function(t){var n=t.Rd,i=n.rd;if("errored"===i||"erroring"===i)return null;if("closed"===i)return 0;return Ts(n.yd)}(this)},enumerable:!0,configurable:!0}),h.defineProperty(t.prototype,"ready",{get:function(){return!1===ps(this)?gu(Cs("ready")):this.Nd},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===ps(this)?gu(Cs("abort")):void 0===this.Rd?gu(xs("abort")):function(t,n){return fs(t.Rd,n)}(this,t)},t.prototype.close=function(){if(!1===ps(this))return gu(Cs("close"));var t=this.Rd;return void 0===t?gu(xs("close")):!0===ls(t)?gu(new a("Cannot close an already-closing stream")):bs(this)},t.prototype.releaseLock=function(){if(!1===ps(this))throw Cs("releaseLock");void 0!==this.Rd&&_s(this)},t.prototype.write=function(t){return!1===ps(this)?gu(Cs("write")):void 0===this.Rd?gu(xs("write to")):Es(this,t)},t}();function ps(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"Rd")}function bs(t){return cs(t.Rd)}function gs(t,n){"pending"===t.Dd?Ps(t,n):function(t,n){Fs(t,n)}(t,n)}function ms(t,n){"pending"===t.Cd?qs(t,n):function(t,n){Ls(t,n)}(t,n)}function _s(t){var n=t.Rd,i=new a("Writer was released and can no longer be used to monitor the stream's closedness");ms(t,i),gs(t,i),n.wd=void 0,t.Rd=void 0}function Es(t,n){var i=t.Rd,r=i.yd,e=function(t,n){try{return t.Pd(n)}catch(n){return As(t,n),1}}(r,n);if(i!==t.Rd)return gu(xs("write to"));var o=i.rd;if("errored"===o)return gu(i.ed);if(!0===ls(i)||"closed"===o)return gu(new a("The stream is closing or closed and cannot be written to"));if("erroring"===o)return gu(i.ed);var u=function(t){return pu(function(n,i){var r={_i:n,Z:i};t.kd.push(r)})}(i);return function(t,n,i){var r={chunk:n};try{Qu(t,r,i)}catch(n){return void As(t,n)}var e=t.Od;if(!1===ls(e)&&"writable"===e.rd){var o=Os(t);ws(e,o)}ks(t)}(r,n,e),u}var Ss=function(){function t(){throw new a("WritableStreamDefaultController cannot be constructed explicitly")}return t.prototype.error=function(t){if(!1===function(t){if(!ru(t))return!1;if(!h.prototype.hasOwnProperty.call(t,"Od"))return!1;return!0}(this))throw new a("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this.Od.rd&&Ns(this,t)},t.prototype[ns]=function(t){var n=this.Bd(t);return Is(this),n},t.prototype[is]=function(){ts(this)},t}();function Rs(t,n,i,r,e,o,u,s){n.Od=t,t.yd=n,n.ri=void 0,n._d=void 0,ts(n),n.Id=!1,n.Pd=s,n.Ld=u,n.Md=r,n.xd=e,n.Bd=o;var f=Os(n);ws(t,f),_u(bu(i()),function(){n.Id=!0,ks(n)},function(i){n.Id=!0,as(t,i)})}function Is(t){t.Md=void 0,t.xd=void 0,t.Bd=void 0,t.Pd=void 0}function Ts(t){return t.Ld-t._d}function ks(t){var n=t.Od;if(!1!==t.Id&&void 0===n.md)if("erroring"!==n.rd){if(0!==t.ri.length){var i=t.ri.peek().value;"close"===i?function(t){var n=t.Od;(function(t){t.bd=t.pd,t.pd=void 0})(n),Zu(t);var i=t.xd();Is(t),_u(i,function(){!function(t){t.bd._i(void 0),t.bd=void 0,"erroring"===t.rd&&(t.ed=void 0,void 0!==t.Td&&(t.Td._i(),t.Td=void 0)),t.rd="closed";var n=t.wd;void 0!==n&&js(n)}(n)},function(t){!function(t,n){t.bd.Z(n),t.bd=void 0,void 0!==t.Td&&(t.Td.Z(n),t.Td=void 0),as(t,n)}(n,t)})}(t):function(t,n){var i=t.Od;(function(t){t.md=t.kd.shift()})(i),_u(t.Md(n),function(){!function(t){t.md._i(void 0),t.md=void 0}(i);var n=i.rd;if(Zu(t),!1===ls(i)&&"writable"===n){var r=Os(t);ws(i,r)}ks(t)},function(n){"writable"===i.rd&&Is(t),function(t,n){t.md.Z(n),t.md=void 0,as(t,n)}(i,n)})}(t,i.chunk)}}else vs(n)}function As(t,n){"writable"===t.Od.rd&&Ns(t,n)}function Os(t){return Ts(t)<=0}function Ns(t,n){var i=t.Od;Is(t),hs(i,n)}function Ds(t){return new a("WritableStream.prototype."+t+" can only be used on a WritableStream")}function Cs(t){return new a("WritableStreamDefaultWriter.prototype."+t+" can only be used on a WritableStreamDefaultWriter")}function xs(t){return new a("Cannot "+t+" a stream using a released writer")}function Bs(t){t.Sc=pu(function(n,i){t.ud=n,t.od=i,t.Dd="pending"})}function Fs(t,n){Bs(t),Ps(t,n)}function Ps(t,n){Iu(t.Sc),t.od(n),t.ud=void 0,t.od=void 0,t.Dd="rejected"}function js(t){t.ud(void 0),t.ud=void 0,t.od=void 0,t.Dd="resolved"}function Us(t){t.Nd=pu(function(n,i){t.Ud=n,t.Fd=i}),t.Cd="pending"}function Ls(t,n){Us(t),qs(t,n)}function Ms(t){Us(t),Ws(t)}function qs(t,n){Iu(t.Nd),t.Fd(n),t.Ud=void 0,t.Fd=void 0,t.Cd="rejected"}function Ws(t){t.Ud(void 0),t.Ud=void 0,t.Fd=void 0,t.Cd="fulfilled"}function Xs(t){if("object"!=typeof t||null===t)return!1;try{return"boolean"==typeof t.aborted}catch(t){return!1}}var Hs="undefined"!=typeof DOMException?DOMException:void 0;var Vs,zs=function(t){if("function"!=typeof t&&"object"!=typeof t)return!1;try{return new t,!0}catch(t){return!1}}(Hs)?Hs:((Vs=function(t,n){this.message=t||"",this.name=n||"Error",c.captureStackTrace&&c.captureStackTrace(this,this.constructor)}).prototype=h.create(c.prototype),h.defineProperty(Vs.prototype,"constructor",{value:Vs,writable:!0,configurable:!0}),Vs);function Gs(t,n,i,r,e,o){var u=Uu(t),s=es(n);t.fd=!0;var f=!1,c=bu(void 0);return pu(function(h,v){var l,d,w,y;if(void 0!==o){if(l=function(){var i=new zs("Aborted","AbortError"),o=[];!1===r&&o.push(function(){return"writable"===n.rd?fs(n,i):bu(void 0)}),!1===e&&o.push(function(){return"readable"===t.rd?Mf(t,i):bu(void 0)}),m(function(){return E.all(o.map(function(t){return t()}))},!0,i)},!0===o.aborted)return void l();o.addEventListener("abort",l)}if(g(t,u.Sc,function(t){!1===r?m(function(){return fs(n,t)},!0,t):_(!0,t)}),g(n,s.Sc,function(n){!1===e?m(function(){return Mf(t,n)},!0,n):_(!0,n)}),d=t,w=u.Sc,y=function(){!1===i?m(function(){return function(t){var n=t.Rd,i=n.rd;return!0===ls(n)||"closed"===i?bu(void 0):"errored"===i?gu(n.ed):bs(t)}(s)}):_()},"closed"===d.rd?y():Eu(w,y),!0===ls(n)||"closed"===n.rd){var p=new a("the destination writable stream closed before all data could be piped to it");!1===e?m(function(){return Mf(t,p)},!0,p):_(!0,p)}function b(){var t=c;return mu(c,function(){return t!==c?b():void 0})}function g(t,n,i){"errored"===t.rd?i(t.ed):Su(n,i)}function m(t,i,r){function e(){_u(t(),function(){return S(i,r)},function(t){return S(!0,t)})}!0!==f&&(f=!0,"writable"===n.rd&&!1===ls(n)?Eu(b(),e):e())}function _(t,i){!0!==f&&(f=!0,"writable"===n.rd&&!1===ls(n)?Eu(b(),function(){return S(t,i)}):S(t,i))}function S(t,n){_s(s),Nu(u),void 0!==o&&o.removeEventListener("abort",l),t?v(n):h(void 0)}Iu(pu(function(t,n){!function i(r){r?t():mu(!0===f?bu(!0):mu(s.Nd,function(){return mu(Gu(u),function(t){return!0===t.done||(c=mu(Es(s,t.value),void 0,tu),!1)})}),i,n)}(!1)}))})}var Ys=function(){function t(){throw new a}return h.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===Ks(this))throw uf("desiredSize");return rf(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===Ks(this))throw uf("close");if(!1===ef(this))throw new a("The stream is not in a state that permits close");Qs(this)},t.prototype.enqueue=function(t){if(!1===Ks(this))throw uf("enqueue");if(!1===ef(this))throw new a("The stream is not in a state that permits enqueue");return tf(this,t)},t.prototype.error=function(t){if(!1===Ks(this))throw uf("error");nf(this,t)},t.prototype[Pu]=function(t){ts(this);var n=this.Hd(t);return Zs(this),n},t.prototype[ju]=function(){var t=this.Vd;if(this.ri.length>0){var n=Zu(this);return!0===this.Xd&&0===this.ri.length?(Zs(this),qf(t)):$s(this),bu(ku(n,!1,t.td.Jv))}var i=Lu(t);return $s(this),i},t}();function Ks(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"Vd")}function $s(t){!1!==Js(t)&&(!0!==t.zd?(t.zd=!0,_u(t.Wd(),function(){t.zd=!1,!0===t.qd&&(t.qd=!1,$s(t))},function(n){nf(t,n)})):t.qd=!0)}function Js(t){var n=t.Vd;return!1!==ef(t)&&(!1!==t.Id&&(!0===Lf(n)&&qu(n)>0||rf(t)>0))}function Zs(t){t.Wd=void 0,t.Hd=void 0,t.Pd=void 0}function Qs(t){var n=t.Vd;t.Xd=!0,0===t.ri.length&&(Zs(t),qf(n))}function tf(t,n){var i=t.Vd;if(!0===Lf(i)&&qu(i)>0)Mu(i,n,!1);else{var r=void 0;try{r=t.Pd(n)}catch(n){throw nf(t,n),n}try{Qu(t,n,r)}catch(n){throw nf(t,n),n}}$s(t)}function nf(t,n){var i=t.Vd;"readable"===i.rd&&(ts(t),Zs(t),Wf(i,n))}function rf(t){var n=t.Vd.rd;return"errored"===n?null:"closed"===n?0:t.Ld-t._d}function ef(t){var n=t.Vd.rd;return!1===t.Xd&&"readable"===n}function of(t,n,i,r,e,o,u){n.Vd=t,n.ri=void 0,n._d=void 0,ts(n),n.Id=!1,n.Xd=!1,n.qd=!1,n.zd=!1,n.Pd=u,n.Ld=o,n.Wd=r,n.Hd=e,t.vd=n,_u(bu(i()),function(){n.Id=!0,$s(n)},function(t){nf(n,t)})}function uf(t){return new a("ReadableStreamDefaultController.prototype."+t+" can only be used on a ReadableStreamDefaultController")}var sf=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&v.floor(t)===t},ff=function(){function t(){throw new a("ReadableStreamBYOBRequest cannot be used directly")}return h.defineProperty(t.prototype,"view",{get:function(){if(!1===hf(this))throw kf("view");return this.Gd},enumerable:!0,configurable:!0}),t.prototype.respond=function(t){if(!1===hf(this))throw kf("respond");if(void 0===this.jd)throw new a("This BYOB request has been invalidated");this.Gd.buffer,function(t,n){if(!1===ou(n=Number(n)))throw new RangeError("bytesWritten must be a finite");_f(t,n)}(this.jd,t)},t.prototype.respondWithNewView=function(t){if(!1===hf(this))throw kf("respond");if(void 0===this.jd)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.Yd.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,_f(t,n.byteLength)}(this.jd,t)},t}(),cf=function(){function t(){throw new a("ReadableByteStreamController constructor cannot be used directly")}return h.defineProperty(t.prototype,"byobRequest",{get:function(){if(!1===af(this))throw Af("byobRequest");if(void 0===this.Qd&&this.Yd.length>0){var t=this.Yd.peek(),n=new y(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),i=h.create(ff.prototype);!function(t,n,i){t.jd=n,t.Gd=i}(i,this,n),this.Qd=i}return this.Qd},enumerable:!0,configurable:!0}),h.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===af(this))throw Af("desiredSize");return If(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===af(this))throw Af("close");if(!0===this.Xd)throw new a("The stream has already been closed; do not close it again!");var t=this.Kd.rd;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.Kd;if(t._d>0)return void(t.Xd=!0);if(t.Yd.length>0){var i=t.Yd.peek();if(i.bytesFilled>0){var r=new a("Insufficient bytes to fill elements in the given buffer");throw Rf(t,r),r}}Sf(t),qf(n)}(this)},t.prototype.enqueue=function(t){if(!1===af(this))throw Af("enqueue");if(!0===this.Xd)throw new a("stream is closed or draining");var n=this.Kd.rd;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.Kd,r=n.buffer,e=n.byteOffset,o=n.byteLength,u=au(r);if(!0===Wu(i))if(0===qu(i))wf(t,u,e,o);else{var s=new y(u,e,o);Mu(i,s,!1)}else!0===Df(i)?(wf(t,u,e,o),mf(t)):wf(t,u,e,o);vf(t)}(this,t)},t.prototype.error=function(t){if(!1===af(this))throw Af("error");Rf(this,t)},t.prototype[Pu]=function(t){this.Yd.length>0&&(this.Yd.peek().bytesFilled=0);ts(this);var n=this.Hd(t);return Sf(this),n},t.prototype[ju]=function(){var t=this.Kd;if(this._d>0){var n=this.ri.shift();this._d-=n.byteLength,bf(this);var i=void 0;try{i=new y(n.buffer,n.byteOffset,n.byteLength)}catch(t){return gu(t)}return bu(ku(i,!1,t.td.Jv))}var r=this.Zd;if(void 0!==r){var e=void 0;try{e=new ArrayBuffer(r)}catch(t){return gu(t)}var o={buffer:e,byteOffset:0,byteLength:r,bytesFilled:0,elementSize:1,ctor:y,readerType:"default"};this.Yd.push(o)}var u=Lu(t);return vf(this),u},t}();function af(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"Kd")}function hf(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"jd")}function vf(t){!1!==function(t){var n=t.Kd;if("readable"!==n.rd)return!1;if(!0===t.Xd)return!1;if(!1===t.Id)return!1;if(!0===Wu(n)&&qu(n)>0)return!0;if(!0===Df(n)&&Nf(n)>0)return!0;if(If(t)>0)return!0;return!1}(t)&&(!0!==t.zd?(t.zd=!0,_u(t.Wd(),function(){t.zd=!1,!0===t.qd&&(t.qd=!1,vf(t))},function(n){Rf(t,n)})):t.qd=!0)}function lf(t,n){var i=!1;"closed"===t.rd&&(i=!0);var r=df(n);"default"===n.readerType?Mu(t,r,i):function(t,n,i){var r=t.td;r.Jd.shift()._i(ku(n,i,r.Jv))}(t,r,i)}function df(t){var n=t.bytesFilled,i=t.elementSize;return new t.ctor(t.buffer,t.byteOffset,n/i)}function wf(t,n,i,r){t.ri.push({buffer:n,byteOffset:i,byteLength:r}),t._d+=r}function yf(t,n){var i=n.elementSize,r=n.bytesFilled-n.bytesFilled%i,e=v.min(t._d,n.byteLength-n.bytesFilled),o=n.bytesFilled+e,u=o-o%i,s=e,f=!1;u>r&&(s=u-n.bytesFilled,f=!0);for(var c,a,h,l,d,w=t.ri;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._d-=b,pf(t,b,n),s-=b}return f}function pf(t,n,i){gf(t),i.bytesFilled+=n}function bf(t){0===t._d&&!0===t.Xd?(Sf(t),qf(t.Kd)):vf(t)}function gf(t){void 0!==t.Qd&&(t.Qd.jd=void 0,t.Qd.Gd=void 0,t.Qd=void 0)}function mf(t){for(;t.Yd.length>0;){if(0===t._d)return;var n=t.Yd.peek();!0===yf(t,n)&&(Ef(t),lf(t.Kd,n))}}function _f(t,n){var i=t.Yd.peek();if("closed"===t.Kd.rd){if(0!==n)throw new a("bytesWritten must be 0 when calling respond() on a closed stream");!function(t,n){n.buffer=au(n.buffer);var i=t.Kd;if(!0===Df(i))for(;Nf(i)>0;)lf(i,Ef(t))}(t,i)}else!function(t,n,i){if(i.bytesFilled+n>i.byteLength)throw new RangeError("bytesWritten out of range");if(pf(t,n,i),!(i.bytesFilled<i.elementSize)){Ef(t);var r=i.bytesFilled%i.elementSize;if(r>0){var e=i.byteOffset+i.bytesFilled,o=i.buffer.slice(e-r,e);wf(t,o,0,o.byteLength)}i.buffer=au(i.buffer),i.bytesFilled-=r,lf(t.Kd,i),mf(t)}}(t,n,i);vf(t)}function Ef(t){var n=t.Yd.shift();return gf(t),n}function Sf(t){t.Wd=void 0,t.Hd=void 0}function Rf(t,n){var i=t.Kd;"readable"===i.rd&&(!function(t){gf(t),t.Yd=new Tu}(t),ts(t),Sf(t),Wf(i,n))}function If(t){var n=t.Kd.rd;return"errored"===n?null:"closed"===n?0:t.Ld-t._d}function Tf(t,n,i){var r=h.create(cf.prototype);var e=su(n,"pull",0,[r]),o=su(n,"cancel",1,[]),u=n.autoAllocateChunkSize;if(void 0!==u&&(u=Number(u),!1===sf(u)||u<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");!function(t,n,i,r,e,o,u){n.Kd=t,n.qd=!1,n.zd=!1,n.Qd=void 0,n.ri=n._d=void 0,ts(n),n.Xd=!1,n.Id=!1,n.Ld=hu(o),n.Wd=r,n.Hd=e,n.Zd=u,n.Yd=new Tu,t.vd=n,_u(bu(i()),function(){n.Id=!0,vf(n)},function(t){Rf(n,t)})}(t,r,function(){return fu(n,"start",[r])},e,o,i,u)}function kf(t){return new a("ReadableStreamBYOBRequest.prototype."+t+" can only be used on a ReadableStreamBYOBRequest")}function Af(t){return new a("ReadableByteStreamController.prototype."+t+" can only be used on a ReadableByteStreamController")}function Of(t){return pu(function(n,i){var r={_i:n,Z:i};t.td.Jd.push(r)})}function Nf(t){return t.td.Jd.length}function Df(t){var n=t.td;return void 0!==n&&!!xf(n)}var Cf=function(){function t(t){if(!Uf(t))throw new a("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===af(t.vd))throw new a("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(Lf(t))throw new a("This stream has already been locked for exclusive reading by another reader");Au(this,t),this.Jd=new Tu}return h.defineProperty(t.prototype,"closed",{get:function(){return xf(this)?this.Sc:gu(Bf("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return xf(this)?void 0===this.$v?gu(Du("cancel")):Ou(this,t):gu(Bf("cancel"))},t.prototype.read=function(t){return xf(this)?void 0===this.$v?gu(Du("read from")):ArrayBuffer.isView(t)?(t.buffer,0===t.byteLength?gu(new a("view must have non-zero byteLength")):function(t,n){var i=t.$v;if(i.fd=!0,"errored"===i.rd)return gu(i.ed);return function(t,n){var i=t.Kd,r=1;n.constructor!==DataView&&(r=n.constructor.BYTES_PER_ELEMENT);var e=n.constructor,o={buffer:au(n.buffer),byteOffset:n.byteOffset,byteLength:n.byteLength,bytesFilled:0,elementSize:r,ctor:e,readerType:"byob"};if(t.Yd.length>0)return t.Yd.push(o),Of(i);if("closed"===i.rd)return bu(ku(new e(o.buffer,o.byteOffset,0),!0,i.td.Jv));if(t._d>0){if(!0===yf(t,o)){var u=df(o);return bf(t),bu(ku(u,!1,i.td.Jv))}if(!0===t.Xd){var s=new a("Insufficient bytes to fill elements in the given buffer");return Rf(t,s),gu(s)}}t.Yd.push(o);var f=Of(i);return vf(t),f}(i.vd,n)}(this,t)):gu(new a("view must be an array buffer view")):gu(Bf("read"))},t.prototype.releaseLock=function(){if(!xf(this))throw Bf("releaseLock");if(void 0!==this.$v){if(this.Jd.length>0)throw new a("Tried to release a reader lock when that reader has pending read() calls un-settled");Nu(this)}},t}();function xf(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"Jd")}function Bf(t){return new a("ReadableStreamBYOBReader.prototype."+t+" can only be used on a ReadableStreamBYOBReader")}var Ff=function(){function t(t,n){void 0===t&&(t={}),void 0===n&&(n={}),jf(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),Tf(this,t,r=hu(r))}else{if(void 0!==e)throw new RangeError("Invalid type is specified");var o=vu(i);void 0===r&&(r=1),function(t,n,i,r){var e=h.create(Ys.prototype),o=su(n,"pull",0,[e]),u=su(n,"cancel",1,[]);of(t,e,function(){return fu(n,"start",[e])},o,u,i,r)}(this,t,r=hu(r),o)}}return h.defineProperty(t.prototype,"locked",{get:function(){if(!1===Uf(this))throw Xf("locked");return Lf(this)},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return!1===Uf(this)?gu(Xf("cancel")):!0===Lf(this)?gu(new a("Cannot cancel a stream that already has a reader")):Mf(this,t)},t.prototype.getReader=function(t){var n=(void 0===t?{}:t).mode;if(!1===Uf(this))throw Xf("getReader");if(void 0===n)return Uu(this,!0);if("byob"===(n=String(n)))return function(t,n){void 0===n&&(n=!1);var i=new Cf(t);return i.Jv=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,o=e.preventClose,u=e.preventAbort,s=e.preventCancel,f=e.signal;if(!1===Uf(this))throw Xf("pipeThrough");if(!1===us(i))throw new a("writable argument to pipeThrough must be a WritableStream");if(!1===Uf(r))throw new a("readable argument to pipeThrough must be a ReadableStream");if(o=Boolean(o),u=Boolean(u),s=Boolean(s),void 0!==f&&!Xs(f))throw new a("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===Lf(this))throw new a("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===ss(i))throw new a("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return Iu(Gs(this,i,o,u,s,f)),r},t.prototype.pipeTo=function(t,n){var i=void 0===n?{}:n,r=i.preventClose,e=i.preventAbort,o=i.preventCancel,u=i.signal;return!1===Uf(this)?gu(Xf("pipeTo")):!1===us(t)?gu(new a("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(r=Boolean(r),e=Boolean(e),o=Boolean(o),void 0===u||Xs(u)?!0===Lf(this)?gu(new a("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===ss(t)?gu(new a("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Gs(this,t,r,e,o,u):gu(new a("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},t.prototype.tee=function(){if(!1===Uf(this))throw Xf("tee");var t=function(t,n){var i,r,e,o,u,s=Uu(t),f=!1,c=!1,a=!1,h=pu(function(t){u=t});function v(){return!0===f?bu(void 0):(f=!0,Iu(Ru(Gu(s),function(t){if(f=!1,!0===t.done)return!1===c&&Qs(e.vd),void(!1===a&&Qs(o.vd));var n=t.value,i=n,r=n;!1===c&&tf(e.vd,i),!1===a&&tf(o.vd,r)})),bu(void 0))}function l(){}return e=Pf(l,v,function(n){if(c=!0,i=n,!0===a){var e=eu([i,r]),o=Mf(t,e);u(o)}return h}),o=Pf(l,v,function(n){if(a=!0,r=n,!0===c){var e=eu([i,r]),o=Mf(t,e);u(o)}return h}),Su(s.Sc,function(t){nf(e.vd,t),nf(o.vd,t)}),[e,o]}(this);return eu(t)},t.prototype.getIterator=function(t){var n=(void 0===t?{}:t).preventCancel,i=void 0!==n&&n;if(!1===Uf(this))throw Xf("getIterator");return function(t,n){void 0===n&&(n=!1);var i=Uu(t),r=h.create(Ku);return r.dd=i,r.ld=Boolean(n),r}(this,i)},t}();function Pf(t,n,i,r,e){void 0===r&&(r=1),void 0===e&&(e=function(){return 1});var o=h.create(Ff.prototype);return jf(o),of(o,h.create(Ys.prototype),t,n,i,r,e),o}function jf(t){t.rd="readable",t.td=void 0,t.ed=void 0,t.fd=!1}function Uf(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"vd")}function Lf(t){return void 0!==t.td}function Mf(t,n){return t.fd=!0,"closed"===t.rd?bu(void 0):"errored"===t.rd?gu(t.ed):(qf(t),Ru(t.vd[Pu](n),tu))}function qf(t){t.rd="closed";var n=t.td;void 0!==n&&(zu(n)&&(n.hd.forEach(function(t){t._i(ku(void 0,!0,n.Jv))}),n.hd=new Tu),Fu(n))}function Wf(t,n){t.rd="errored",t.ed=n;var i=t.td;void 0!==i&&(zu(i)?(i.hd.forEach(function(t){t.Z(n)}),i.hd=new Tu):(i.Jd.forEach(function(t){t.Z(n)}),i.Jd=new Tu),Bu(i,n))}function Xf(t){return new a("ReadableStream.prototype."+t+" can only be used on a ReadableStream")}"symbol"==typeof Qo.asyncIterator&&h.defineProperty(Ff.prototype,Qo.asyncIterator,{value:Ff.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var Hf=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,o=i.size,u=i.highWaterMark;if(void 0!==t.writableType)throw new RangeError("Invalid writable type specified");var s=vu(r);if(void 0===e&&(e=1),e=hu(e),void 0!==t.readableType)throw new RangeError("Invalid readable type specified");var f,c=vu(o);void 0===u&&(u=0),u=hu(u),function(t,n,i,r,e,o){function u(){return n}t.$d=function(t,n,i,r,e,o){void 0===e&&(e=1),void 0===o&&(o=function(){return 1});var u=h.create(rs.prototype);return os(u),Rs(u,h.create(Ss.prototype),t,n,i,r,e,o),u}(u,function(n){return function(t,n){var i=t.il;if(!0===t.Sd){var r=t.ul;return Ru(r,function(){var r=t.$d,e=r.rd;if("erroring"===e)throw r.ed;return tc(i,n)})}return tc(i,n)}(t,n)},function(){return function(t){var n=t.ol,i=t.il,r=i.hl();return Zf(i),Ru(r,function(){if("errored"===n.rd)throw n.ed;var t=n.vd;!0===ef(t)&&Qs(t)},function(i){throw zf(t,i),n.ed})}(t)},function(n){return function(t,n){return zf(t,n),bu(void 0)}(t,n)},i,r),t.ol=Pf(u,function(){return function(t){return Yf(t,!1),t.ul}(t)},function(n){return Gf(t,n),bu(void 0)},e,o),t.Sd=void 0,t.ul=void 0,t.al=void 0,Yf(t,!0),t.il=void 0}(this,pu(function(t){f=t}),e,s,u,c),function(t,n){var i=h.create($f.prototype),r=function(t){try{return Qf(i,t),bu(void 0)}catch(t){return gu(t)}},e=n.transform;if(void 0!==e){if("function"!=typeof e)throw new a("transform is not a method");r=function(t){return cu(e,n,[t,i])}}var o=su(n,"flush",0,[i]);!function(t,n,i,r){n.cl=t,t.il=n,n.fl=i,n.hl=r}(t,i,r,o)}(this,t);var v=fu(t,"start",[this.il]);f(v)}return h.defineProperty(t.prototype,"readable",{get:function(){if(!1===Vf(this))throw ic("readable");return this.ol},enumerable:!0,configurable:!0}),h.defineProperty(t.prototype,"writable",{get:function(){if(!1===Vf(this))throw ic("writable");return this.$d},enumerable:!0,configurable:!0}),t}();function Vf(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"il")}function zf(t,n){nf(t.ol.vd,n),Gf(t,n)}function Gf(t,n){Zf(t.il),As(t.$d.yd,n),!0===t.Sd&&Yf(t,!1)}function Yf(t,n){void 0!==t.ul&&t.al(),t.ul=pu(function(n){t.al=n}),t.Sd=n}var Kf,$f=function(){function t(){throw new a("TransformStreamDefaultController instances cannot be created directly")}return h.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===Jf(this))throw nc("desiredSize");return rf(this.cl.ol.vd)},enumerable:!0,configurable:!0}),t.prototype.enqueue=function(t){if(!1===Jf(this))throw nc("enqueue");Qf(this,t)},t.prototype.error=function(t){if(!1===Jf(this))throw nc("error");var n;n=t,zf(this.cl,n)},t.prototype.terminate=function(){if(!1===Jf(this))throw nc("terminate");!function(t){var n=t.cl,i=n.ol.vd;!0===ef(i)&&Qs(i);var r=new a("TransformStream terminated");Gf(n,r)}(this)},t}();function Jf(t){return!!ru(t)&&!!h.prototype.hasOwnProperty.call(t,"cl")}function Zf(t){t.fl=void 0,t.hl=void 0}function Qf(t,n){var i=t.cl,r=i.ol.vd;if(!1===ef(r))throw new a("Readable side is not in a state that permits enqueue");try{tf(r,n)}catch(t){throw Gf(i,t),i.ol.ed}(function(t){return!0!==Js(t)})(r)!==i.Sd&&Yf(i,!0)}function tc(t,n){return Ru(t.fl(n),void 0,function(n){throw zf(t.cl,n),n})}function nc(t){return new a("TransformStreamDefaultController.prototype."+t+" can only be used on a TransformStreamDefaultController")}function ic(t){return new a("TransformStream.prototype."+t+" can only be used on a TransformStream")}function rc(t){return n=[t],new Ff({start:function(t){for(var i=0;i<n.length;i++){var r=n[i];t.enqueue(r)}t.close()}});var n}function ec(t){return rc(new y(t))}function oc(t,n){return function(t,n){var i=n,r=t.getReader(),e=new vo,o=function(){u();var t=new Qt;r.cancel(t).catch(D),e.mc(t)},u=function(){i&&(i._a(o),i=void 0)};i&&(i.Jh?o():i.va(o));var s=[];return E.resolve(r.read()).then(function t(n){return n.done?(u(),E.resolve(s)):(s.push(n.value),E.resolve(r.read()).then(t))}).then(function(t){u(),e.kc(t)},function(t){u(),e.mc(t)}),e.yc}(t,n).then(function(t){return Dn(t).buffer})}function uc(t,n){var i=n,r=new Hf,e=r.readable,o=r.writable,u=o.getWriter(),s=function(){i&&i.Ta()};return u.closed.then(s,s),t.then(function(t){return i=void 0,u.releaseLock(),t.pipeTo(o).catch(D)},function(t){return i=void 0,u.releaseLock(),o.abort(t).catch(D)}),e}function sc(t){return En(new y(t))}function fc(t){return Sn(t).buffer}!function(t){t[t.Xv=0]="Xv",t[t.dl=1]="dl"}(Kf||(Kf={}));var cc="content-type",ac="text/plain;charset=UTF-8",hc=function(){function t(){}var n=t.prototype;return n.ll=function(t){return this._l(t).then(JSON.parse)},n.wl=function(t,n){switch(t){case Ko.Hv:return this.yl(n);case Ko.Vv:return this.ll(n);case Ko.Xv:return this.bl();case Ko.fu:return this._l(n);default:throw new a}},t}();function vc(t,n,i){if(t instanceof hc)return t;if(t instanceof Ff)return function(t,n){return new dc({Hh:Kf.Xv,bl:t,Al:lc(n)})}(t,i);var r=lc(i),e=E.resolve(t).then(function(t){return function(t,n){if(t){if("string"==typeof t)return{Hh:Ko.fu,Tl:t,Al:n||ac};if(t instanceof ArrayBuffer||Nn(t))return{Hh:Ko.Hv,Tl:_c(t),Al:n};if(T(i=t)&&i.constructor&&i.constructor===h||I(t))return{Hh:Ko.Vv,Tl:t,Al:n};throw new a("Unsupported BodyInit type")}return{Hh:Ko.fu,Tl:null,Al:n};var i}(t,r)});return new dc({Hh:Kf.dl,yc:e,Sl:n})}function lc(t){return(t.get(cc)||"").toLowerCase()}var dc=function(t){function n(n){var i;return(i=t.call(this)||this).El=!1,i.Il=void 0,i.Rl=new vo,i.Rl.yc.catch(D),i.Nl(n),i}rt(n,t);var i=n.prototype;return i.Dl=function(){return this.Rl.yc},i._l=function(t){return this.Cl(wc,t)},i.ll=function(t){return this.Cl(pc,t)},i.yl=function(t){return this.Cl(gc,t)},i.bl=function(){return this.Pl((t=this.Il).Hh===Kf.Xv?t.bl:uc(t.yc.then(mc).then(ec),t.Sl));var t},i.Cl=function(t,n){if(this.El)return E.reject(new a("Already used"));this.El=!0;var i=t(this.Il,n);return this.Rl.kc(i.then(D)),i},i.Pl=function(t){if(this.El)throw new a("Already used");if(t.locked)throw new a("Body stream is locked");this.El=!0;var n=new Hf,i=E.resolve(t.pipeTo(n.writable));return this.Rl.kc(i),n.readable},i.Nl=function(t){this.Il=t,t.Hh===Kf.dl&&t.yc.catch(D)},i.Ol=function(){if(this.El)throw new a("Already used");var t=function(t){if(t.Hh===Kf.Xv){var n=t.bl.tee(),i=n[0],r=n[1];return[{Hh:t.Hh,bl:i,Al:t.Al},{Hh:t.Hh,bl:r,Al:t.Al}]}var e=t.Sl.Ea(),o=e[0],u=e[1];return[{Hh:t.Hh,yc:t.yc,Sl:o},{Hh:t.Hh,yc:t.yc,Sl:u}]}(this.Il),i=t[0],r=t[1];return this.Nl(i),new n(r)},P(n,[{key:"Bl",get:function(){return this.El}}]),n}(hc);function wc(t,n){return t.Hh===Kf.Xv?oc(t.bl,n).then(sc):(n&&t.Sl.Sa(n),nn(t.yc.then(yc),t.Sl))}function yc(t){switch(t.Hh){case Ko.fu:return E.resolve(t.Tl||"");case Ko.Hv:return E.resolve(t.Tl).then(sc);case Ko.Vv:return E.resolve(t.Tl).then(JSON.stringify)}}function pc(t,n){return t.Hh===Kf.Xv?wc(t,n).then(JSON.parse):(n&&t.Sl.Sa(n),nn(t.yc.then(bc),t.Sl))}function bc(t){return t.Hh===Ko.Vv?E.resolve(t.Tl):yc(t).then(JSON.parse)}function gc(t,n){return t.Hh===Kf.Xv?oc(t.bl,n):(n&&t.Sl.Sa(n),nn(t.yc.then(mc),t.Sl))}function mc(t){switch(t.Hh){case Ko.Hv:return E.resolve(t.Tl);case Ko.fu:case Ko.Vv:return yc(t).then(fc)}}function _c(t){return t instanceof ArrayBuffer?t:kn(In(t)).buffer}function Ec(t){return t.Ll>=200&&t.Ll<=299||304===t.Ll}var Sc,Rc,Ic,Tc,kc=function(t){function n(n,i){var r,e,o,u,s,f;i?(e=i.Ml,o=i.xl,u=i.Ll,s=i.Ul,f=i.Fl):(e=[],o=Ko.fu,u=200,s="OK",f=!1);var c=n.Hl,a=new $o(n.Ml||e),h=n.xl||o,v=n.Vl||(i&&i.Hl===c?i.Vl:c.Xl),l=i?i.zl:null,d=vc(void 0!==n.Gu?n.Gu:l,n.Sl||new Zt,a);return(r=t.call(this,d)||this).Ml=void 0,r.Hl=void 0,r.Vl=void 0,r.xl=void 0,r.Ll=void 0,r.Ul=void 0,r.Fl=void 0,r.Ml=a,r.Hl=c,r.Vl=v,r.xl=h,r.Ll=void 0!==n.Ll?n.Ll:u,r.Ul=void 0!==n.Ul?String(n.Ul):s,r.Fl=n.Fl||f,r}rt(n,t);var i=n.prototype;return i.Gu=function(t){return this.wl(this.xl,t)},i.lc=function(){return new n({Gu:this.Ol(),Hl:this.Hl},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.Dl=function(){return this.zl.Dl()},i._l=function(t){return this.zl._l(t)},i.ll=function(t){return this.zl.ll(t)},i.yl=function(t){return this.zl.yl(t)},i.bl=function(){return this.zl.bl()},i.Ol=function(){return this.zl.Ol()},P(n,[{key:"Bl",get:function(){return this.zl.Bl}}]),n}(hc));!function(t){t.DELETE="DELETE",t.GET="GET",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t.POST="POST",t.PUT="PUT"}(Sc||(Sc={})),function(t){t.Wl="",t.ql="manifest",t.Gl="segment",t.jl="content-protection"}(Rc||(Rc={})),function(t){t.Wl="",t.Yl="initialization-segment",t.Ql="fairplay-license",t.Kl="fairplay-certificate",t.Zl="widevine-license",t.Jl="widevine-certificate",t.$l="playready-license",t.t_="clearkey-license",t.n_="aes128-key"}(Ic||(Ic={})),function(t){t.Wl="",t.i_="audio",t.r_="video",t.fu="text",t.e_="image"}(Tc||(Tc={}));var Ac=function(t,n){this.Tl=void 0,this.Ml=void 0,this.s_=void 0,this.xl=void 0,this.u_=void 0,this.Ia=void 0,this.Hh=void 0,this.o_=void 0,this.h_=void 0,this.Xl=void 0,this.a_=void 0,this.c_=void 0;var i,r,e,o,u,s,f,c,a,h,v,l=t.Xl;n?(i=n.Tl,r=n.Ml,e=n.s_,o=n.xl,u=n.u_,s=n.Ia,f=n.Hh,c=n.o_,a=n.h_,h=n.a_,v=n.c_):(i=null,r={},e=Sc.GET,o=Ko.fu,u=0,f=Rc.Wl,c=Ic.Wl,a=Tc.Wl,h=!1),this.Xl=l,this.Tl=t.Tl||i,this.Ml=new $o(t.Ml||r),this.s_=t.s_||e,this.xl=t.xl||o,this.u_=void 0!==t.u_?Number(t.u_)||0:u,this.Ia=t.Ia||s||(new Zt).Ia,this.Hh=t.Hh||f,this.o_=t.o_||c,this.h_=t.h_||a,this.a_=void 0!==t.a_?Boolean(t.a_):h,this.c_=t.c_||v},Oc=function(){function t(){}var n=t.prototype;return n.Hl=function(t){var n=function(t){return new kc({Gu:null,Ml:{},Hl:t,Vl:t.Xl,xl:t.xl,Ll:0,Ul:Yo.yv})}(new Ac(t));return E.resolve(n)},n.f_=function(t){},n.v_=function(){},t}();var Nc,Dc=function(){function t(t,n){void 0===n&&(n=!0),this.d_=void 0,this.l_=void 0,this.d_=t,this.l_=n}var n=t.prototype;return n.Hl=function(t){var n=this.__(t);return this.d_.Hl(n)},n.f_=function(t){return this.d_.f_(this.w_(t))},n.__=function(n){var i=new Ac(n);if(!this.l_){var r=t.g_(i.Xl);i=new Ac({Xl:r},i)}return i},n.w_=function(n){var i=n.Xl;return this.l_||(i=t.g_(i)),{Xl:i,Tl:n.Tl}},t.g_=function(t){return m.ph&&fn(t,"http://")?t.replace(":","s:"):t},n.v_=function(){this.d_.v_()},P(t,null,[{key:"y_",get:function(){return t.k_||(t.k_=new t(new Oc)),t.k_}}]),t}();Dc.k_=void 0,function(t){t.m_="HttpOpenError",t.p_="HttpResponseError",t.b_="HttpTimeoutError"}(Nc||(Nc={}));var Cc=function(t){function n(n,i,r){var e;return(e=t.call(this,i,r)||this).A_=void 0,e.A_=n,e}return rt(n,t),P(n,[{key:"Hl",get:function(){return this.A_}}]),n}($t);var xc=function(t){function n(n,i){return t.call(this,n,"Error while opening "+n.Xl+". Invalid URL.",i)||this}return rt(n,t),P(n,[{key:"name",get:function(){return Nc.m_}}]),n}(Cc);var Bc=function(t){function n(n,i,r){var e;return(e=t.call(this,n.Hl,null!=r?r:function(t){return"Error while loading "+t.Hl.Xl+", status code "+t.Ll}(n),i)||this).T_=void 0,e.T_=n,e}return rt(n,t),P(n,[{key:"name",get:function(){return Nc.p_}},{key:"S_",get:function(){return this.T_}}]),n}(Cc);var Fc=function(t){function n(n,i){return t.call(this,n,function(t){return"Request for "+t.Xl+" timed out after "+t.u_+" seconds."}(n),i)||this}return rt(n,t),P(n,[{key:"name",get:function(){return Nc.b_}}]),n}(Cc),Pc=function(t,n){return(Pc=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 jc(t,n){function i(){this.constructor=t}Pc(t,n),t.prototype=null===n?h.create(n):(i.prototype=n.prototype,new i)}var Uc="object"==typeof i?i:"object"==typeof t?t:"object"==typeof global?global:null;var Lc=function(){var t=Uc.Blob;if(t)try{return new t,function(t,n){return new Uc.Blob(t,n)}}catch(t){}var n,i=Uc.BlobBuilder||Uc.WebKitBlobBuilder||Uc.MozBlobBuilder||Uc.MSBlobBuilder;return i?(n=i,function(t,i){var r=new n;if(t)for(var e=0,o=t;e<o.length;e++){var u=o[e];r.append(u)}return r.getBlob(i&&i.type||"")}):null}(),Mc="function"==typeof Ff?Ff:void 0;function qc(t){return t&&"function"==typeof t.getReader}function Wc(t){if("function"!=typeof t)return!1;try{var n=!1,i=new t({start:function(){n=!0}});return!!n&&qc(i)}catch(t){return!1}}var Xc=function(){function t(t,n){this.td=t,this.E_=n}return t.prototype.pull=function(t){var n=this;return this.td.read().then(function(i){n.E_&&n.E_(i),i.done?t.close():t.enqueue(i.value)})},t.prototype.cancel=function(t){return this.td.cancel(t)},t}();function Hc(t,n){return n.constructor===t?n:new t(new Xc(n.getReader()),{highWaterMark:0})}var Vc=function(){function t(t,n){this.I_=t,this.Pt=n}return t.prototype.pull=function(t){return this.I_().then(function(n){t.enqueue(new y(n)),t.close()})},t.prototype.cancel=function(t){this.Pt&&this.Pt(t)},t}();function zc(t,n,i){return new t(new Vc(n,i),{highWaterMark:0})}var Gc={searchParams:"URLSearchParams"in Uc,iterable:"Symbol"in Uc&&"iterator"in Symbol,blob:"FileReader"in Uc&&!!Lc,formData:"FormData"in Uc,arrayBuffer:"ArrayBuffer"in Uc,stream:Wc(Mc),streamRequest:"Request"in Uc&&"body"in Uc.Request.prototype,streamResponse:"Response"in Uc&&"body"in Uc.Response.prototype,abort:"AbortController"in Uc&&"Request"in Uc&&"signal"in Uc.Request.prototype,encoding:"TextEncoder"in Uc&&"TextDecoder"in Uc,url:"URL"in Uc&&function(t){try{return new Uc.URL(t).toString()===t}catch(t){return!1}}("http://example.com/"),firefox:"navigator"in Uc&&/Firefox\//.test(Uc.navigator.userAgent)};function Yc(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 Kc(t){return"string"!=typeof t&&(t=String(t)),t}function $c(t){var n={next:function(){var n=t.shift();return{done:void 0===n,value:n}}};return Gc.iterable&&(n[Symbol.iterator]=function(){return n}),n}var Jc=function(){function t(t){var n=this;this.Oh={};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 Gc.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=Yc(t),n=Kc(n);var i=t.toLowerCase();if(this.Oh.hasOwnProperty(i)){var r=this.Oh[i],e=r[1];r[1]=e?e+", "+n:n}else this.Oh[i]=[t,n]},t.prototype.delete=function(t){var n=Yc(t).toLowerCase();delete this.Oh[n]},t.prototype.get=function(t){var n=Yc(t).toLowerCase();return this.Oh.hasOwnProperty(n)?this.Oh[n][1]:null},t.prototype.has=function(t){var n=Yc(t).toLowerCase();return this.Oh.hasOwnProperty(n)},t.prototype.set=function(t,n){var i=(t=Yc(t)).toLowerCase();this.Oh[i]=[t,Kc(n)]},t.prototype.forEach=function(t,n){for(var i in this.Oh)this.Oh.hasOwnProperty(i)&&t.call(n,this.Oh[i][1],i,this)},t.prototype.keys=function(){var t=[];return this.forEach(function(n,i){t.push(i)}),$c(t)},t.prototype.values=function(){var t=[];return this.forEach(function(n){t.push(n)}),$c(t)},t.prototype.entries=function(){var t=[];return this.forEach(function(n,i){t.push([i,n])}),$c(t)},t.prototype.asList=function(){var t=[];for(var n in this.Oh)if(this.Oh.hasOwnProperty(n)){var i=this.Oh[n],r=i[0],e=i[1];t.push([r,e])}return t},t}();function Zc(){}Gc.iterable&&(Jc.prototype[Symbol.iterator]=Jc.prototype.entries);var Qc,ta,na,ia=v.min,ra=String.fromCharCode,ea=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+=ea){var e=ia(r+ea,n);i.push(ra.apply(null,t.slice(r,e)))}return i.join("")}(n)}function ua(t){if(t>=55296&&t<=57343)throw new c("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function sa(t,n){return t>>n&63|128}function fa(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(ua(t),n.push(t>>12&15|224),n.push(sa(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(sa(t,12)),n.push(sa(t,6))),n.push(63&t|128)):n.push(t)}function ca(){if(na>=ta)throw new c("Invalid byte index");var t=255&Qc[na];if(na++,128==(192&t))return 63&t;throw new c("Invalid continuation byte")}function aa(){var t,n;if(na>ta)throw new c("Invalid byte index");if(na===ta)return!1;if(t=255&Qc[na],na++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|ca())>=128)return n;throw new c("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|ca()<<6|ca())>=2048)return ua(n),n;throw new c("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|ca()<<12|ca()<<6|ca())>=65536&&n<=1114111)return n;throw new c("Invalid UTF-8 detected")}var ha=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"];function va(t){return t&&URLSearchParams.prototype.isPrototypeOf(t)}function la(t){return t&&ArrayBuffer.prototype.isPrototypeOf(t)}function da(t){return t&&DataView.prototype.isPrototypeOf(t)}var wa,ya=ArrayBuffer.isView||function(t){return t&&(ha.indexOf(h.prototype.toString.call(t))>-1||da(t))};function pa(t){if(t.bodyUsed)return E.reject(new a("Already used"));t.bodyUsed=!0}function ba(t){return new E(function(n,i){t.onload=function(){n(t.result)},t.onerror=function(){i(t.error)}})}function ga(t){return Gc.encoding?new Uc.TextDecoder("utf-8").decode(new y(t)):oa(function(t){ta=(Qc=t).length,na=0;for(var n,i=[];!1!==(n=aa());)i.push(n);return i}(new y(t)))}function ma(t){return Gc.encoding?(new Uc.TextEncoder).encode(t).buffer:new y(function(t){for(var n=[],i=0,r=t;i<r.length;i++)fa(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 o=t.charCodeAt(i++);56320==(64512&o)?n.push(((1023&e)<<10)+(1023&o)+65536):(n.push(e),i--)}else n.push(e)}return n}(t))).buffer}function _a(t){var n=t.getReader(),i=[],r=function(t){var e=t.done,o=t.value;return e?E.resolve(i):(i.push(o),n.read().then(r))};return n.read().then(r)}function Ea(t){return _a(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),o=0,u=0,s=t;u<s.length;u++){var f=s[u];e.set(f,o),o+=f.byteLength}return e}(t).buffer})}function Sa(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 Ia(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 Ta(t){var n=t;if(n.bodyUsed)throw new a("Already used");if(n.R_===wa.N_){if(!n.D_.tee)throw new c("could not clone ReadableStream body");var i=n.D_.tee(),r=i[0],e=i[1];return n.body=r,n.D_=r,n.C_=r,e}return n.R_===wa.Hv?Sa(n.D_):n.R_===wa.dl?n.D_.then(Ta):n.C_}!function(t){t[t.fu=0]="fu",t[t.P_=1]="P_",t[t.O_=2]="O_",t[t.Hv=3]="Hv",t[t.N_=4]="N_",t[t.dl=5]="dl"}(wa||(wa={}));var ka=function(){function t(n,i){this.bodyUsed=!1;var r,e,o,u=this;if(this.C_=n||null,n)if("string"==typeof n)this.R_=wa.fu,this.D_=n;else if((o=n)&&"function"==typeof o.then)this.R_=wa.dl,this.D_=E.resolve(n).then(function(n){return new t(n,i)}),this.D_.catch(Zc);else if(Gc.blob&&function(t){return t&&Blob.prototype.isPrototypeOf(t)}(n))this.R_=wa.P_,this.D_=n;else if(Gc.formData&&function(t){return t&&FormData.prototype.isPrototypeOf(t)}(n))this.R_=wa.O_,this.D_=n;else if(Gc.searchParams&&va(n))this.R_=wa.fu,this.D_=n.toString();else if(Gc.arrayBuffer&&(la(n)||ya(n)))da(n)&&(this.C_=new y((e=n).buffer,e.byteOffset,e.byteLength)),this.R_=wa.Hv,this.D_=la(r=n)?Sa(r):Ra(r);else{if(!Gc.stream||!qc(n))throw new c("unsupported BodyInit type");n=Hc(Mc,n),this.R_=wa.N_,this.D_=n,this.C_=n}else this.R_=wa.fu,this.D_="";this.B_="",i.has("content-type")?this.B_=(i.get("content-type")||"").toLowerCase():("string"==typeof n?this.B_="text/plain;charset=UTF-8":u.R_===wa.P_&&u.D_.type?this.B_=u.D_.type:Gc.searchParams&&va(n)&&(this.B_="application/x-www-form-urlencoded;charset=UTF-8"),this.B_&&i.set("content-type",this.B_)),Gc.stream&&(null==n?this.body=null:u.R_===wa.N_?this.body=u.D_:this.body=zc(Mc,function(){return u.arrayBuffer()},function(){u.bodyUsed=!0}))}return t.prototype.text=function(){var t,n,i,r=pa(this);return r||(this.R_===wa.P_?(t=this.D_,n=new FileReader,i=ba(n),n.readAsText(t),i):this.R_===wa.Hv?E.resolve(this.D_).then(ga):this.R_===wa.N_?Ea(this.D_).then(ga):this.R_===wa.dl?this.D_.then(function(t){return t.text()}):this.R_===wa.O_?E.reject(new c("could not read FormData body as text")):E.resolve(this.D_))},t.prototype.json=function(){return this.text().then(JSON.parse)},t}();Gc.blob&&(ka.prototype.blob=function(){var t,n,i=pa(this);return i||(this.R_===wa.P_?E.resolve(this.D_):this.R_===wa.Hv?E.resolve(Lc([this.D_],{type:this.B_})):this.R_===wa.N_?(t=this.D_,n=this.B_,_a(t).then(function(t){return Lc(t,{type:n||""})})):this.R_===wa.dl?this.D_.then(function(t){return t.blob()}):this.R_===wa.O_?E.reject(new c("could not read FormData body as Blob")):E.resolve(Lc([this.D_],{type:this.B_})))}),Gc.arrayBuffer&&(ka.prototype.arrayBuffer=function(){var t,n,i;return this.R_===wa.Hv?pa(this)||E.resolve(this.D_):this.R_===wa.P_?pa(this)||(t=this.D_,n=new FileReader,i=ba(n),n.readAsArrayBuffer(t),i):this.R_===wa.N_?Ea(this.D_):this.R_===wa.dl?pa(this)||this.D_.then(function(t){return t.arrayBuffer()}):this.R_===wa.O_?E.reject(new c("could not read FormData body as ArrayBuffer")):E.resolve(this.D_).then(ma)}),Gc.formData&&(ka.prototype.formData=function(){return this.R_===wa.O_?pa(this)||E.resolve(this.D_):this.text().then(Ia)});var Aa=[301,302,303,307,308],Oa=function(t){function n(n,i){var r=this,e=new Jc((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 jc(n,t),n.prototype.clone=function(){return new n(Ta(this),{status:this.status,statusText:this.statusText,headers:new Jc(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===Aa.indexOf(i))throw new RangeError("Invalid status code");return new n(null,{status:i,headers:{location:t}})},n}(ka);var Na,Da=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 u(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 u(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){o(function(){return i.call(n,t)})},r=this.listeners[t.type],e=0,u=r.length;e<u;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),u(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 u(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});(Na=Da)&&Na.__esModule&&h.prototype.hasOwnProperty.call(Na,"default")&&Na.default;Da.AbortSignal;var Ca=Da.AbortController,xa=Uc.DOMException;try{new xa}catch(t){(xa=function(t,n){c.call(this,t),this.name=n||"Error",c.captureStackTrace&&c.captureStackTrace(this,this.constructor)}).prototype=h.create(c.prototype),xa.prototype.constructor=xa}var Ba=Ca;function Fa(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 Pa(t,n,i){return new E(function(r,e){if(n.signal.aborted)return t.catch(Zc),e(ja());var o=function(){n.signal.removeEventListener("abort",o),e(ja())};n.signal.addEventListener("abort",o),t.then(function(t){n.signal.removeEventListener("abort",o),r(t),i&&n.abort()},function(t){n.signal.removeEventListener("abort",o),e(t),i&&n.abort()})})}function ja(){return new xa("Aborted","AbortError")}var Ua,La="moz-chunked-arraybuffer";function Ma(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"}(Ua||(Ua={}));var qa=function(){function t(t,n){var i=this;this.L_=!1,this.A_=t,this.M_=n,this.x_=new p,this.U_=new E(function(t,n){i.F_=t,i.H_=n})}return t.prototype.send=function(){var t=this;return this.V_().then(function(n){return t.X_(n,t.M_),t.U_})},t.prototype.V_=function(){var t=this.A_;return t.R_===wa.N_?t.arrayBuffer():E.resolve(t.C_)},t.prototype.z_=function(t){this.A_.onprogress&&this.A_.onprogress(t.loaded,t.lengthComputable?t.total:void 0)},t.prototype.W_=function(t){this.H_(t)},t.prototype.q_=function(){this.W_(new a("Network request failed"))},t.prototype.G_=function(){this.W_(new a("Network request failed"))},t.prototype.j_=function(){this.W_(ja())},t.prototype.X_=function(t,n){var i=this,r=this.A_,e=this.x_,o=function(){return i.Y_()};if(r.signal.aborted)return this.j_();e.onreadystatechange=function(){if(e.readyState>=Ua.HEADERS_RECEIVED&&!i.L_){var t=function(t){var n=new Jc;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.L_=!0,i.Q_(n)}},e.onprogress=function(t){return i.z_(t)},e.onload=function(){return i.K_()},e.onerror=function(){return i.q_()},e.ontimeout=function(){return i.G_()},e.onabort=function(){return i.j_()},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",o),e.onloadend=function(){r.signal.removeEventListener("abort",o)},t?e.send(t):e.send()},t.prototype.Y_=function(){this.j_(),this.x_.abort()},t}(),Wa=function(t){function n(n,i){var r=t.call(this,n,i)||this;return r.Z_=void 0,r.J_=void 0,r}return jc(n,t),n.prototype.Q_=function(t){var n=this;this.Z_=new E(function(t,i){n.J_=t,n.nw=i}),this.F_(new Oa(this.Z_,t))},n.prototype.K_=function(){var t=this.x_.response||this.x_.responseText;this.J_(t)},n.prototype.W_=function(n){t.prototype.W_.call(this,n),this.nw&&this.nw(n)},n}(qa),Xa=function(t){function n(n){var i=t.call(this,n,La)||this;return i.iw=void 0,i.ew=void 0,i.uw=!1,i}return jc(n,t),n.prototype.Q_=function(t){var n=this;this.iw=new Mc({start:function(t){n.ew=t},cancel:function(){n.uw=!0,n.Y_()}}),this.F_(new Oa(this.iw,t))},n.prototype.z_=function(n){this.uw||this.ew.enqueue(new y(this.x_.response)),t.prototype.z_.call(this,n)},n.prototype.K_=function(){this.ew.close()},n.prototype.W_=function(n){t.prototype.W_.call(this,n),this.ew&&!this.uw&&(this.uw=!0,this.ew.error(n))},n}(qa),Ha=function(){var t=Gc.firefox&&Ma(La);return Ha=function(){return t},t},Va=function(){var t;return t=Gc.arrayBuffer&&Ma("arraybuffer")?"arraybuffer":Gc.blob&&Ma("blob")?"blob":"",Va=function(){return t},t};function za(t){return(Gc.stream&&Ha()?new Xa(t):new Wa(t,Va())).send()}var Ga=Uc.fetch,Ya=Uc.Request,Ka=(Uc.Response,Uc.AbortController);var $a=["http:","https:"];var Ja=function(){try{if(Gc.streamRequest){var t=new Ya("about:blank",{body:"",method:"POST"}).body;if(t&&Wc(t.constructor))return t.constructor}}catch(t){}}();function Za(t,n,i){var r;if(Gc.stream){var e=void 0;if(Gc.streamResponse){var o=t.body;e=o&&Hc(Mc,o)}else e=zc(Mc,function(){return Pa(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 Xc(n.getReader(),i),{highWaterMark:0})}(Mc,t,function(t){var e=t.done,o=t.value;e?i=void 0===i?r:i:r+=o.byteLength,n(r,i)})}(e,i,Qa(t.headers))),r=e}else{var u=Pa(t.arrayBuffer(),n,!0);i&&(u=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})}(u,i,Qa(t.headers))),r=u}return new Oa(r,t)}function Qa(t){return t.has("content-length")?Number(t.get("content-length")):void 0}function th(t){var n=new Ba;return t.signal&&Fa(n,t.signal),function(t,n){var i,r,e=t;if(i=e.R_===wa.N_?Gc.streamRequest&&Ja?E.resolve(Hc(Ja,e.D_)):Pa(t.arrayBuffer(),n,!1):Pa(E.resolve(t.C_),n,!1),Gc.abort){var o=new Ka;Fa(o,n.signal),r=o.signal}return i.then(function(n){return new Ya(t.url,{body:n||void 0,credentials:t.credentials,headers:(i=t.headers,(i instanceof Jc?i:new Jc(i)).asList()),method:t.method,mode:t.mode,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:r});var i})}(t,n).then(function(i){return Ga(i).then(function(i){return Za(i,n,t.onprogress)})})}var nh=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];var ih=function(t){function n(i,r){var e,o,u,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,o=i.credentials,r.headers||(u=new Jc(i.headers)),s=i.method,f=i.mode,c=i.referrer,h=i.referrerPolicy,v=i.signal,l=i.onprogress,w||null==i.C_||(w=i.C_,i.bodyUsed=!0)}else e=String(i),o="same-origin",s="GET",f="cors",c="about:client",h="",v=null,l=null;if(!r.headers&&u||(u=new Jc(r.headers)),r&&(c="about:client",h=""),(d=t.call(this,w,u)||this).url=e,d.headers=u,d.credentials=r.credentials||o,d.method=function(t){var n=t.toUpperCase();return nh.indexOf(n)>-1?n:t}(r.method||s),d.mode=r.mode||f,d.signal=r.signal||v||(new Ba).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 jc(n,t),n.prototype.clone=function(){return new n(this,{body:Ta(this)})},n}(ka),rh="function"==typeof Ga&&Gc.stream&&Gc.streamResponse&&Gc.url;function eh(t,n){return new E(function(i){var r=new ih(t,n);i((rh&&function(t){try{return $a.indexOf(new Uc.URL(t,Uc.location.href).protocol)>=0}catch(t){return!1}}(r.url)?th:za)(r))})}eh.polyfill=!0;var oh=function(){function t(t){this.S_=void 0,this.A_=void 0,this.ow=new Zt,this.T_=void 0,this.hw=!1,this.A_=t,this.ow.Sa(t.Ia),this.S_=this.aw()}var n=t.prototype;return n.aw=function(){var t=E.coroutine(_.mark(function t(){var n,i,r,e,u,s,f,c,a=this;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(n=this.A_).u_&&o(function(){a.hw=!0,a.ow.Ta()},n.u_),t.prev=2,i=eh(n.Xl,{method:n.s_,headers:n.Ml.zv(),body:n.Tl,credentials:n.a_?"include":"same-origin",signal:fh(this.ow.Ia),onprogress:n.c_}),t.next=9;break;case 6:throw t.prev=6,t.t0=t.catch(2),new xc(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.cw(t.t1))&&this.ow.Ta(),e;case 20:if(u=r.url||n.Xl,s=0===r.status&&"file:"===(h=u,m.dh(h).protocol)?200:r.status,f=new uh(this,r,this.ow),c=new kc({Gu:f,Hl:n,xl:n.xl,Ml:new $o(r.headers.asList()),Ll:s,Ul:r.statusText,Vl:u}),this.T_=c,!Ec(c)){t.next=29;break}return t.abrupt("return",c);case 29:throw new Bc(c);case 30:case"end":return t.stop()}var h},t,this,[[2,6],[9,15]])}));return function(){return t.apply(this,arguments)}}(),n.cw=function(t){return tn(t)?this.hw?new Fc(this.A_):new Qt(t.message,t):this.T_?new Bc(this.T_,t):new xc(this.A_,t)},t}(),uh=function(t){function n(n,i,r){var e;return(e=t.call(this)||this).Sn=void 0,e.fw=void 0,e.ow=void 0,e.Rl=new vo,e.Sn=n,e.fw=i,e.ow=r,e.Rl.yc.catch(D),e}rt(n,t);var i=n.prototype;return i.Dl=function(){return this.Rl.yc},i._l=function(t){return this.Cl(this.fw.text(),t)},i.yl=function(t){return this.Cl(this.fw.arrayBuffer(),t)},i.bl=function(){var t=this.fw.body;return t?this.Pl(t):uc(this.yl().then(ec),this.ow)},i.Ol=function(){var t=this.fw.clone(),i=this.ow.Ea(),r=i[0],e=i[1];return this.ow=r,new n(this.Sn,t,e)},i.Cl=function(t,n){var i=this;n&&this.ow.Sa(n);var r=E.resolve(t).catch(function(t){throw i.Sn.cw(t)});return r=nn(r,this.ow),this.Rl.kc(r.then(D)),r},i.Pl=function(t){var n=this,i=new Hf,r=E.resolve(t.pipeTo(i.writable,{preventAbort:!0})).catch(function(t){var r=n.Sn.cw(t);throw i.writable.abort(r).catch(D),r});return r=nn(r,this.ow),this.Rl.kc(r.then(D)),i.readable},P(n,[{key:"Bl",get:function(){return this.fw.bodyUsed}}]),n}(hc),sh="abort";function fh(t){var n=new Ba;if(t.Jh)n.abort();else if(!t.$h){var i=function(){r(),n.abort()},r=function r(){n.signal.removeEventListener(sh,i),t._a(i),t.ma(r)};n.signal.addEventListener(sh,i),t.va(i),t.ya(r)}return n.signal}var ch=function(){function t(){}var n=t.prototype;return n.Hl=function(t){return new oh(t).S_},n.f_=function(t){var n=t.Al?{"Content-type":t.Al}:void 0;this.Hl(new Ac({s_:Sc.POST,Xl:t.Xl,Tl:t.Tl,Ml:n})).then(D,D)},n.v_=function(){},t}(),ah=function(n){function i(){for(var i,r=arguments.length,e=new Array(r),o=0;o<r;o++)e[o]=arguments[o];return(i=n.call.apply(n,[this].concat(e))||this).vw=void 0,i.dw=function(){try{return"body"in t.Response.prototype}catch(t){return!1}}(),i.lw=ii.js,i._w=void 0,i}return rt(i,n),P(i,[{key:"eh",get:function(){return this.vw||(this.vw=new uo(Wo())),this.vw}},{key:"ww",get:function(){return this.dw}},{key:"gw",get:function(){return this.lw}},{key:"yw",get:function(){return!1}},{key:"mw",get:function(){return Ho.jf()}},{key:"pw",get:function(){return{bw:Go}}},{key:"Aw",get:function(){return e.connection&&e.connection.effectiveType||"default"}},{key:"Tw",get:function(){return e.connection&&e.connection.type||"unknown"}},{key:"Sw",get:function(){return this._w||(this._w=new Dc(new ch)),this._w}}]),i}(Ve);S(new ah),S(new ah);var hh=t;hh.addEventListener("install",function(t){t.waitUntil(hh.skipWaiting())}),hh.addEventListener("activate",function(t){t.waitUntil(hh.clients.claim())}),zn.be.hm(hh)}()}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this);
|