@theoplayer/theoads 9.3.0 → 9.3.2

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.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: 9.3.0
28
- Created: 2025-05-07T15:40:29.006Z
27
+ Version: 9.3.2
28
+ Created: 2025-05-13T14:57:06.480Z
29
29
  */
30
30
  !function(t){"use strict";var n,i,e,r,o,u,s,f,c,h=t.window,a=t.document,v=(t.location,t.navigator),d=t.setTimeout,l=t.clearTimeout,w=t.setInterval,b=t.clearInterval,g=t.Error,m=t.TypeError,p=(t.SyntaxError,t.Object),y=t.Math,_=t.parseInt,S=t.parseFloat,T=t.isNaN,E=t.Uint8Array,k=(t.Worker,t.WorkerGlobalScope,t.XMLHttpRequest),I=p.create,R=p.defineProperty,O=p.getOwnPropertyDescriptor,N=p.getOwnPropertyNames,P=p.getPrototypeOf,A=p.prototype.hasOwnProperty,D=function(t,n){return function(){return t&&(n=t(t=0)),n}},C=function(t,n){return function(){return n||t((n={exports:{}}).exports,n),n.exports}},x=D((function(){"function"==typeof Symbol&&Symbol.iterator?(n=Symbol,i=null!=(u=Symbol.for)?u:Symbol,e=Symbol.iterator,r=null!=(s=Symbol.dispose)?s:i("Symbol.dispose"),o=null!=(f=Symbol.asyncDispose)?f:i("Symbol.asyncDispose")):(c=0,n=function(t){return"ul"+t+"_"+ ++c},e=(i=function(t){return"ul"+t})("Symbol.iterator"),r=i("Symbol.dispose"),o=i("Symbol.asyncDispose"),n.for=i,n.iterator=e,n.dispose=r,n.asyncDispose=o)}));function B(t){return t&&void 0!==n&&t.constructor===n?"symbol":typeof t}var M,L,U,F,z,W,H,V,q,X,j,Y,K,G,$,Z,J,Q,tt,nt=D((function(){x(),gt()}));function it(t){var n=this.constructor;return this.then((function(i){return n.resolve(t()).then((function(){return i}))}),(function(i){return n.resolve(t()).then((function(){return n.reject(i)}))}))}function et(t){return new this((function(n,i){if(!t||void 0===t.length)return i(new m((void 0===t?"undefined":B(t))+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var e=Array.prototype.slice.call(t);if(0===e.length)return n([]);var r=e.length;function o(t,i){if(i&&("object"===(void 0===i?"undefined":B(i))||"function"==typeof i)){var u=i.then;if("function"==typeof u)return void u.call(i,(function(n){o(t,n)}),(function(i){e[t]={status:"rejected",reason:i},0==--r&&n(e)}))}e[t]={status:"fulfilled",value:i},0==--r&&n(e)}for(var u=0;u<e.length;u++)o(u,e[u])}))}function rt(t){return Boolean(t&&void 0!==t.length)}function ot(){}function ut(t){if(!(this instanceof ut))throw new m("Promises must be constructed via new");if("function"!=typeof t)throw new m("not a function");this.Fa=0,this.ttn=!1,this.UTt=void 0,this.ntn=[],vt(t,this)}function st(t,n){for(;3===t.Fa;)t=t.UTt;0!==t.Fa?(t.ttn=!0,ut.itn((function(){var i=1===t.Fa?n.onFulfilled:n.onRejected;if(null!==i){var e;try{e=i(t.UTt)}catch(t){return void ct(n.promise,t)}ft(n.promise,e)}else(1===t.Fa?ft:ct)(n.promise,t.UTt)}))):t.ntn.push(n)}function ft(t,n){try{if(n===t)throw new m("A promise cannot be resolved with itself.");if(n&&("object"===(void 0===n?"undefined":B(n))||"function"==typeof n)){var i=n.then;if(n instanceof ut)return t.Fa=3,t.UTt=n,void ht(t);if("function"==typeof i)return void vt(function(t,n){return function(){t.apply(n,arguments)}}(i,n),t)}t.Fa=1,t.UTt=n,ht(t)}catch(n){ct(t,n)}}function ct(t,n){t.Fa=2,t.UTt=n,ht(t)}function ht(t){2===t.Fa&&0===t.ntn.length&&ut.itn((function(){t.ttn||ut.rtn(t.UTt)}));for(var n=0,i=t.ntn.length;n<i;n++)st(t,t.ntn[n]);t.ntn=null}function at(t,n,i){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof n?n:null,this.promise=i}function vt(t,n){var i=!1;try{t((function(t){i||(i=!0,ft(n,t))}),(function(t){i||(i=!0,ct(n,t))}))}catch(t){if(i)return;i=!0,ct(n,t)}}function dt(t){return new Y(j,{reason:t,promise:L.reject(t).catch((function(){})),cancelable:!0})}function lt(t){var n=new K(j,{detail:{reason:t},cancelable:!0});return p.defineProperty(n,"reason",{value:t}),n}function wt(t){var n=a.createEvent("CustomEvent");return n.initCustomEvent(j,!1,!0,{reason:t}),n}var bt=D((function(){var t,n,i,e;x(),gt(),nt(),M=d,ut.prototype.catch=function(t){return this.then(null,t)},ut.prototype.then=function(t,n){var i=new this.constructor(ot);return st(this,new at(t,n,i)),i},ut.prototype.finally=it,ut.all=function(t){return new ut((function(n,i){if(!rt(t))return i(new m("Promise.all accepts an array"));var e=Array.prototype.slice.call(t);if(0===e.length)return n([]);var r=e.length;function o(t,u){try{if(u&&("object"===(void 0===u?"undefined":B(u))||"function"==typeof u)){var s=u.then;if("function"==typeof s)return void s.call(u,(function(n){o(t,n)}),i)}e[t]=u,0==--r&&n(e)}catch(t){i(t)}}for(var u=0;u<e.length;u++)o(u,e[u])}))},ut.allSettled=et,ut.resolve=function(t){return t&&"object"===(void 0===t?"undefined":B(t))&&t.constructor===ut?t:new ut((function(n){n(t)}))},ut.reject=function(t){return new ut((function(n,i){i(t)}))},ut.race=function(t){return new ut((function(n,i){if(!rt(t))return i(new m("Promise.race accepts an array"));for(var e=0,r=t.length;e<r;e++)ut.resolve(t[e]).then(n,i)}))},ut.itn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){M(t,0)},ut.rtn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},L=function(){var t=self.Promise;if(void 0!==t)try{if(-1!==t.toString().indexOf("[native code]"))return t}catch(t){}}(),U=v?v.userAgent:"",F=U.match(/Firefox\/([0-9]+)/i),z=null!=F,W=F?Number(F[1]):0,H=U.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),V=null!=H,q=H?Number(H[3]):0,X=function(){function t(t){this.Qb=0,this.Rd=0,this.kp=[],this.etn=t}return t.prototype.utn=function(t){var n=this.length();this.stn(n+1);var i=this.Rd+n&this.etn-1;this.kp[i]=t,this.Qb=n+1},t.prototype.push=function(t){var n=this.length()+1;if(this.etn<n)this.utn(t);else{var i=this.Rd+n-1,e=this.etn-1;this.kp[i&e]=t,this.Qb=n}},t.prototype.shift=function(){var t=this.Rd,n=this.kp[t];return this.kp[t]=void 0,this.Rd=t+1&this.etn-1,this.Qb--,n},t.prototype.length=function(){return this.Qb},t.prototype.stn=function(t){this.etn<t&&this.otn(this.etn<<1)},t.prototype.otn=function(t){var n=this.etn;this.etn=t;var i=this.Rd+this.Qb&n-1;!function(t,n,i,e){for(var r=0;r<e;++r)t[r+i]=t[r+n],t[r+n]=void 0}(this.kp,0,n,i)},t}(),j="unhandledrejection",Y=self.PromiseRejectionEvent,K=self.CustomEvent,G=function(t){return G=function(){try{var t=L.resolve(),n="error",i=new Y(j,{reason:n,promise:t});return j===i.type&&n===i.reason}catch(t){}return!1}()?dt:function(){try{var t="error",n=new K(j,{detail:{reason:t}});return j===n.type&&t===n.detail.reason}catch(t){}return!1}()?lt:wt,G(t)},Z=z&&W<60||V&&q<15,L&&!Z?(J=L,function(){}):(J=ut,Q=null!==($=function(){var t=self.queueMicrotask;if("function"==typeof t)return function(n){return t(n)};var n=L;if(n&&"function"==typeof n.resolve){var i=n.resolve();return function(t){return i.then(t)}}}())&&void 0!==$?$:ut.itn,t=Q,n=new X(16),i=!1,(tt={g6:function(r){n.push(r),i||(i=!0,t(e))},cY:e=function(){for(;n.length()>0;)n.shift()();i=!1}}).cY,ut.itn=tt.g6,ut.rtn=function(t){try{var n=G(t);if(!self.dispatchEvent(n)||n.defaultPrevented)return}catch(t){}d((function(){throw new g("Unhandled promise rejection: ".concat(t))}),0)})})),gt=D((function(){bt()})),mt=C((function(t,i){var r,o;x(),gt(),nt(),r=t,o=function(t){var i="function"==typeof n&&"symbol"===B(e)?n:function(t){return"Symbol("+t+")"};function r(){}var o=Number.isNaN||function(t){return t!=t},u=r;function s(t){return"object"===(void 0===t?"undefined":B(t))&&null!==t||"function"==typeof t}function f(t){return t.slice()}function c(t,n,i,e,r){new E(t).set(new E(i,e,r),n)}function h(t){return!1!==function(t){return"number"==typeof t&&(!o(t)&&!(t<0))}(t)&&t!==1/0}function a(t,n,i){if("function"!=typeof t)throw new m("Argument is not a function");return Function.prototype.apply.call(t,n,i)}function v(t,n,i,e){var r=t[n];if(void 0!==r){if("function"!=typeof r)throw new m(r+" is not a method");switch(i){case 0:return function(){return l(r,t,e)};case 1:return function(n){var i=[n].concat(e);return l(r,t,i)}}}return function(){return R(void 0)}}function d(t,n,i){var e=t[n];if(void 0!==e)return a(e,t,i)}function l(t,n,i){try{return R(a(t,n,i))}catch(t){return O(t)}}function w(t){if(t=Number(t),o(t)||t<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return t}function b(t){if(void 0===t)return function(){return 1};if("function"!=typeof t)throw new m("size property of a queuing strategy must be a function");return function(n){return t(n)}}var _=J,S=J.prototype.then,T=J.resolve.bind(_),k=J.reject.bind(_);function I(t){return new _(t)}function R(t){return T(t)}function O(t){return k(t)}function N(t,n,i){return S.call(t,n,i)}function P(t,n,i){N(N(t,n,i),void 0,u)}function A(t,n){P(t,n)}function D(t,n){P(t,void 0,n)}function C(t,n,i){return N(t,n,i)}function x(t){N(t,void 0,u)}var M=function(){function t(){this.hd=0,this.Ed=0,this.Rd={Id:[],Dd:void 0},this.Nd=this.Rd,this.hd=0,this.Ed=0}return p.defineProperty(t.prototype,"length",{get:function(){return this.Ed},enumerable:!0,configurable:!0}),t.prototype.push=function(t){var n=this.Nd,i=n;16383===n.Id.length&&(i={Id:[],Dd:void 0}),n.Id.push(t),i!==n&&(this.Nd=i,n.Dd=i),++this.Ed},t.prototype.shift=function(){var t=this.Rd,n=t,i=this.hd,e=i+1,r=t.Id,o=r[i];return 16384===e&&(n=t.Dd,e=0),--this.Ed,this.hd=e,t!==n&&(this.Rd=n),r[i]=void 0,o},t.prototype.forEach=function(t){for(var n=this.hd,i=this.Rd,e=i.Id;!(n===e.length&&void 0===i.Dd||n===e.length&&(n=0,0===(e=(i=i.Dd).Id).length));)t(e[n]),++n},t.prototype.peek=function(){var t=this.Rd,n=this.hd;return t.Id[n]},t}();function L(t,n,i){var e=null;!0===i&&(e=p.prototype);var r=p.create(e);return r.value=t,r.done=n,r}function U(t,n){t.Ld=!0,t.Bd=n,n.Od=t,"readable"===n.Fa?H(t):"closed"===n.Fa?function(t){H(t),X(t)}(t):V(t,n.Fd)}function F(t,n){return Zn(t.Bd,n)}function z(t){"readable"===t.Bd.Fa?q(t,new m("Reader was released and can no longer be used to monitor the stream's closedness")):function(t,n){V(t,n)}(t,new m("Reader was released and can no longer be used to monitor the stream's closedness")),t.Bd.Od=void 0,t.Bd=void 0}function W(t){return new m("Cannot "+t+" a stream using a released reader")}function H(t){t.Vd=I((function(n,i){t.Wd=n,t.Ud=i}))}function V(t,n){H(t),q(t,n)}function q(t,n){x(t.Vd),t.Ud(n),t.Wd=void 0,t.Ud=void 0}function X(t){t.Wd(void 0),t.Wd=void 0,t.Ud=void 0}var j=i("[[CancelSteps]]"),Y=i("[[PullSteps]]");function K(t,n){void 0===n&&(n=!1);var i=new it(t);return i.Ld=n,i}function G(t){return I((function(n,i){var e={Gd:n,Hd:i};t.Od.Zd.push(e)}))}function $(t,n,i){var e=t.Od;e.Zd.shift().Gd(L(n,i,e.Ld))}function Z(t){return t.Od.Zd.length}function Q(t){var n=t.Od;return void 0!==n&&!!et(n)}var tt,nt,it=function(){function t(t){if(!1===Gn(t))throw new m("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===$n(t))throw new m("This stream has already been locked for exclusive reading by another reader");U(this,t),this.Zd=new M}return p.defineProperty(t.prototype,"closed",{get:function(){return et(this)?this.Vd:O(ot("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return et(this)?void 0===this.Bd?O(W("cancel")):F(this,t):O(ot("cancel"))},t.prototype.read=function(){return et(this)?void 0===this.Bd?O(W("read from")):rt(this):O(ot("read"))},t.prototype.releaseLock=function(){if(!et(this))throw ot("releaseLock");if(void 0!==this.Bd){if(this.Zd.length>0)throw new m("Tried to release a reader lock when that reader has pending read() calls un-settled");z(this)}},t}();function et(t){return!!s(t)&&!!p.prototype.hasOwnProperty.call(t,"Zd")}function rt(t){var n=t.Bd;return n.Xd=!0,"closed"===n.Fa?R(L(void 0,!0,t.Ld)):"errored"===n.Fa?O(n.Fd):n.zd[Y]()}function ot(t){return new m("ReadableStreamDefaultReader.prototype."+t+" can only be used on a ReadableStreamDefaultReader")}"symbol"===B(i.asyncIterator)&&((tt={})[i.asyncIterator]=function(){return this},nt=tt,p.defineProperty(nt,i.asyncIterator,{enumerable:!1}));var ut={next:function(){if(!1===st(this))return O(ft("next"));var t=this.qd;return void 0===t.Bd?O(W("iterate")):C(rt(t),(function(n){var i=n.done;return i&&z(t),L(n.value,i,!0)}))},return:function(t){if(!1===st(this))return O(ft("next"));var n=this.qd;if(void 0===n.Bd)return O(W("finish iterating"));if(n.Zd.length>0)return O(new m("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this.Yd){var i=F(n,t);return z(n),C(i,(function(){return L(t,!0,!0)}))}return z(n),R(L(t,!0,!0))}};function st(t){return!!s(t)&&!!p.prototype.hasOwnProperty.call(t,"qd")}function ft(t){return new m("ReadableStreamAsyncIterator."+t+" can only be used on a ReadableSteamAsyncIterator")}function ct(t){var n=t.Kd.shift();return t.Qd-=n.size,t.Qd<0&&(t.Qd=0),n.value}function ht(t,n,i){if(!h(i=Number(i)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");t.Kd.push({value:n,size:i}),t.Qd+=i}function at(t){t.Kd=new M,t.Qd=0}void 0!==nt&&p.setPrototypeOf(ut,nt),p.defineProperty(ut,"next",{enumerable:!1}),p.defineProperty(ut,"return",{enumerable:!1});var vt=i("[[AbortSteps]]"),dt=i("[[ErrorSteps]]"),lt=function(){function t(t,n){void 0===t&&(t={}),void 0===n&&(n={}),bt(this);var i=n.size,e=n.highWaterMark;if(void 0!==t.type)throw new RangeError("Invalid type is specified");var r=b(i);void 0===e&&(e=1),function(t,n,i,e){var r=p.create(xt.prototype);function o(){return d(n,"start",[r])}var u=v(n,"write",1,[r]),s=v(n,"close",0,[]),f=v(n,"abort",1,[]);Bt(t,r,o,u,s,f,i,e)}(this,t,e=w(e),r)}return p.defineProperty(t.prototype,"locked",{get:function(){if(!1===gt(this))throw Ht("locked");return mt(this)},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===gt(this)?O(Ht("abort")):!0===mt(this)?O(new m("Cannot abort a stream that already has a writer")):pt(this,t)},t.prototype.close=function(){return!1===gt(this)?O(Ht("close")):!0===mt(this)?O(new m("Cannot close a stream that already has a writer")):!0===Et(this)?O(new m("Cannot close an already-closing stream")):yt(this)},t.prototype.getWriter=function(){if(!1===gt(this))throw Ht("getWriter");return wt(this)},t}();function wt(t){return new Rt(t)}function bt(t){t.Fa="writable",t.Fd=void 0,t.Jd=void 0,t.$d=void 0,t.tf=new M,t.ef=void 0,t.nf=void 0,t.rf=void 0,t.hf=void 0,t.uf=!1}function gt(t){return!!s(t)&&!!p.prototype.hasOwnProperty.call(t,"$d")}function mt(t){return void 0!==t.Jd}function pt(t,n){var i=t.Fa;if("closed"===i||"errored"===i)return R(void 0);if(void 0!==t.hf)return t.hf.cf;var e=!1;"erroring"===i&&(e=!0,n=void 0);var r=I((function(i,r){t.hf={cf:void 0,Gd:i,Hd:r,lf:n,df:e}}));return t.hf.cf=r,!1===e&&St(t,n),r}function yt(t){var n=t.Fa;if("closed"===n||"errored"===n)return O(new m("The stream (in "+n+" state) is not in the writable state and cannot be closed"));var i=I((function(n,i){var e={Gd:n,Hd:i};t.nf=e})),e=t.Jd;return void 0!==e&&!0===t.uf&&"writable"===n&&Qt(e),function(t){ht(t,"close",0),Ut(t)}(t.$d),i}function _t(t,n){"writable"!==t.Fa?Tt(t):St(t,n)}function St(t,n){var i=t.$d;t.Fa="erroring",t.Fd=n;var e=t.Jd;void 0!==e&&At(e,n),!1===function(t){return void 0!==t.ef||void 0!==t.rf}(t)&&!0===i._f&&Tt(t)}function Tt(t){t.Fa="errored",t.$d[dt]();var n=t.Fd;if(t.tf.forEach((function(t){t.Hd(n)})),t.tf=new M,void 0!==t.hf){var i=t.hf;if(t.hf=void 0,!0===i.df)return i.Hd(n),void kt(t);P(t.$d[vt](i.lf),(function(){i.Gd(),kt(t)}),(function(n){i.Hd(n),kt(t)}))}else kt(t)}function Et(t){return void 0!==t.nf||void 0!==t.rf}function kt(t){void 0!==t.nf&&(t.nf.Hd(t.Fd),t.nf=void 0);var n=t.Jd;void 0!==n&&Yt(n,t.Fd)}function It(t,n){var i=t.Jd;void 0!==i&&n!==t.uf&&(!0===n?function(t){Gt(t)}(i):Qt(i)),t.uf=n}var Rt=function(){function t(t){if(!1===gt(t))throw new m("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===mt(t))throw new m("This stream has already been locked for exclusive writing by another writer");this.vf=t,t.Jd=this;var n=t.Fa;if("writable"===n)!1===Et(t)&&!0===t.uf?Gt(this):Zt(this),Xt(this);else if("erroring"===n)$t(this,t.Fd),Xt(this);else if("closed"===n)Zt(this),function(t){Xt(t),Kt(t)}(this);else{var i=t.Fd;$t(this,i),jt(this,i)}}return p.defineProperty(t.prototype,"closed",{get:function(){return!1===Ot(this)?O(Vt("closed")):this.Vd},enumerable:!0,configurable:!0}),p.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===Ot(this))throw Vt("desiredSize");if(void 0===this.vf)throw qt("desiredSize");return function(t){var n=t.vf,i=n.Fa;return"errored"===i||"erroring"===i?null:"closed"===i?0:Lt(n.$d)}(this)},enumerable:!0,configurable:!0}),p.defineProperty(t.prototype,"ready",{get:function(){return!1===Ot(this)?O(Vt("ready")):this.mf},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===Ot(this)?O(Vt("abort")):void 0===this.vf?O(qt("abort")):function(t,n){var i=t.vf;return pt(i,n)}(this,t)},t.prototype.close=function(){if(!1===Ot(this))return O(Vt("close"));var t=this.vf;return void 0===t?O(qt("close")):!0===Et(t)?O(new m("Cannot close an already-closing stream")):Nt(this)},t.prototype.releaseLock=function(){if(!1===Ot(this))throw Vt("releaseLock");void 0!==this.vf&&Dt(this)},t.prototype.write=function(t){return!1===Ot(this)?O(Vt("write")):void 0===this.vf?O(qt("write to")):Ct(this,t)},t}();function Ot(t){return!!s(t)&&!!p.prototype.hasOwnProperty.call(t,"vf")}function Nt(t){return yt(t.vf)}function Pt(t,n){"pending"===t.gf?Yt(t,n):function(t,n){jt(t,n)}(t,n)}function At(t,n){"pending"===t.pf?Jt(t,n):function(t,n){$t(t,n)}(t,n)}function Dt(t){var n=t.vf,i=new m("Writer was released and can no longer be used to monitor the stream's closedness");At(t,i),Pt(t,i),n.Jd=void 0,t.vf=void 0}function Ct(t,n){var i=t.vf,e=i.$d,r=function(t,n){try{return t.wf(n)}catch(n){return Ft(t,n),1}}(e,n);if(i!==t.vf)return O(qt("write to"));var o=i.Fa;if("errored"===o)return O(i.Fd);if(!0===Et(i)||"closed"===o)return O(new m("The stream is closing or closed and cannot be written to"));if("erroring"===o)return O(i.Fd);var u=function(t){return I((function(n,i){var e={Gd:n,Hd:i};t.tf.push(e)}))}(i);return function(t,n,i){var e={chunk:n};try{ht(t,e,i)}catch(n){return void Ft(t,n)}var r=t.yf;!1===Et(r)&&"writable"===r.Fa&&It(r,zt(t)),Ut(t)}(e,n,r),u}var xt=function(){function t(){throw new m("WritableStreamDefaultController cannot be constructed explicitly")}return t.prototype.error=function(t){if(!1===function(t){return!!s(t)&&!!p.prototype.hasOwnProperty.call(t,"yf")}(this))throw new m("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this.yf.Fa&&Wt(this,t)},t.prototype[vt]=function(t){var n=this.bf(t);return Mt(this),n},t.prototype[dt]=function(){at(this)},t}();function Bt(t,n,i,e,r,o,u,s){n.yf=t,t.$d=n,n.Kd=void 0,n.Qd=void 0,at(n),n._f=!1,n.wf=s,n.Af=u,n.Sf=e,n.Tf=r,n.bf=o;var f=zt(n);It(t,f),P(R(i()),(function(){n._f=!0,Ut(n)}),(function(i){n._f=!0,_t(t,i)}))}function Mt(t){t.Sf=void 0,t.Tf=void 0,t.bf=void 0,t.wf=void 0}function Lt(t){return t.Af-t.Qd}function Ut(t){var n=t.yf;if(!1!==t._f&&void 0===n.ef)if("erroring"!==n.Fa){if(0!==t.Kd.length){var i=function(t){return t.Kd.peek().value}(t);"close"===i?function(t){var n=t.yf;(function(t){t.rf=t.nf,t.nf=void 0})(n),ct(t);var i=t.Tf();Mt(t),P(i,(function(){!function(t){t.rf.Gd(void 0),t.rf=void 0,"erroring"===t.Fa&&(t.Fd=void 0,void 0!==t.hf&&(t.hf.Gd(),t.hf=void 0)),t.Fa="closed";var n=t.Jd;void 0!==n&&Kt(n)}(n)}),(function(t){!function(t,n){t.rf.Hd(n),t.rf=void 0,void 0!==t.hf&&(t.hf.Hd(n),t.hf=void 0),_t(t,n)}(n,t)}))}(t):function(t,n){var i=t.yf;!function(t){t.ef=t.tf.shift()}(i);var e=t.Sf(n);P(e,(function(){!function(t){t.ef.Gd(void 0),t.ef=void 0}(i);var n=i.Fa;if(ct(t),!1===Et(i)&&"writable"===n){var e=zt(t);It(i,e)}Ut(t)}),(function(n){"writable"===i.Fa&&Mt(t),function(t,n){t.ef.Hd(n),t.ef=void 0,_t(t,n)}(i,n)}))}(t,i.chunk)}}else Tt(n)}function Ft(t,n){"writable"===t.yf.Fa&&Wt(t,n)}function zt(t){return Lt(t)<=0}function Wt(t,n){var i=t.yf;Mt(t),St(i,n)}function Ht(t){return new m("WritableStream.prototype."+t+" can only be used on a WritableStream")}function Vt(t){return new m("WritableStreamDefaultWriter.prototype."+t+" can only be used on a WritableStreamDefaultWriter")}function qt(t){return new m("Cannot "+t+" a stream using a released writer")}function Xt(t){t.Vd=I((function(n,i){t.Wd=n,t.Ud=i,t.gf="pending"}))}function jt(t,n){Xt(t),Yt(t,n)}function Yt(t,n){x(t.Vd),t.Ud(n),t.Wd=void 0,t.Ud=void 0,t.gf="rejected"}function Kt(t){t.Wd(void 0),t.Wd=void 0,t.Ud=void 0,t.gf="resolved"}function Gt(t){t.mf=I((function(n,i){t.kf=n,t.Ef=i})),t.pf="pending"}function $t(t,n){Gt(t),Jt(t,n)}function Zt(t){Gt(t),Qt(t)}function Jt(t,n){x(t.mf),t.Ef(n),t.kf=void 0,t.Ef=void 0,t.pf="rejected"}function Qt(t){t.kf(void 0),t.kf=void 0,t.Ef=void 0,t.pf="fulfilled"}function tn(t){if("object"!==(void 0===t?"undefined":B(t))||null===t)return!1;try{return"boolean"==typeof t.aborted}catch(t){return!1}}var nn,en="undefined"!=typeof DOMException?DOMException:void 0,rn=function(t){if("function"!=typeof t&&"object"!==(void 0===t?"undefined":B(t)))return!1;try{return new t,!0}catch(t){return!1}}(en)?en:((nn=function(t,n){this.message=t||"",this.name=n||"Error",g.captureStackTrace&&g.captureStackTrace(this,this.constructor)}).prototype=p.create(g.prototype),p.defineProperty(nn.prototype,"constructor",{value:nn,writable:!0,configurable:!0}),nn);function on(t,n,i,e,o,u){var s=K(t),f=wt(n);t.Xd=!0;var c=!1,h=R(void 0);return I((function(a,v){var d,l,w,b;if(void 0!==u){if(d=function(){var i=new rn("Aborted","AbortError"),r=[];!1===e&&r.push((function(){return"writable"===n.Fa?pt(n,i):R(void 0)})),!1===o&&r.push((function(){return"readable"===t.Fa?Zn(t,i):R(void 0)})),_((function(){return J.all(r.map((function(t){return t()})))}),!0,i)},!0===u.aborted)return void d();u.addEventListener("abort",d)}if(y(t,s.Vd,(function(t){!1===e?_((function(){return pt(n,t)}),!0,t):S(!0,t)})),y(n,f.Vd,(function(n){!1===o?_((function(){return Zn(t,n)}),!0,n):S(!0,n)})),l=t,w=s.Vd,b=function(){!1===i?_((function(){return function(t){var n=t.vf,i=n.Fa;return!0===Et(n)||"closed"===i?R(void 0):"errored"===i?O(n.Fd):Nt(t)}(f)})):S()},"closed"===l.Fa?b():A(w,b),!0===Et(n)||"closed"===n.Fa){var g=new m("the destination writable stream closed before all data could be piped to it");!1===o?_((function(){return Zn(t,g)}),!0,g):S(!0,g)}function p(){var t=h;return N(h,(function(){return t!==h?p():void 0}))}function y(t,n,i){"errored"===t.Fa?i(t.Fd):D(n,i)}function _(t,i,e){function r(){P(t(),(function(){return T(i,e)}),(function(t){return T(!0,t)}))}!0!==c&&(c=!0,"writable"===n.Fa&&!1===Et(n)?A(p(),r):r())}function S(t,i){!0!==c&&(c=!0,"writable"===n.Fa&&!1===Et(n)?A(p(),(function(){return T(t,i)})):T(t,i))}function T(t,n){Dt(f),z(s),void 0!==u&&u.removeEventListener("abort",d),t?v(n):a(void 0)}x(I((function(t,n){!function i(e){e?t():N(!0===c?R(!0):N(f.mf,(function(){return N(rt(s),(function(t){return!0===t.done||(h=N(Ct(f,t.value),void 0,r),!1)}))})),i,n)}(!1)})))}))}var un=function(){function t(){throw new m}return p.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===sn(this))throw gn("desiredSize");return ln(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===sn(this))throw gn("close");if(!1===wn(this))throw new m("The stream is not in a state that permits close");an(this)},t.prototype.enqueue=function(t){if(!1===sn(this))throw gn("enqueue");if(!1===wn(this))throw new m("The stream is not in a state that permits enqueue");return vn(this,t)},t.prototype.error=function(t){if(!1===sn(this))throw gn("error");dn(this,t)},t.prototype[j]=function(t){at(this);var n=this.xf(t);return hn(this),n},t.prototype[Y]=function(){var t=this.Rf;if(this.Kd.length>0){var n=ct(this);return!0===this.If&&0===this.Kd.length?(hn(this),Jn(t)):fn(this),R(L(n,!1,t.Od.Ld))}var i=G(t);return fn(this),i},t}();function sn(t){return!!s(t)&&!!p.prototype.hasOwnProperty.call(t,"Rf")}function fn(t){!1!==cn(t)&&(!0!==t.Cf?(t.Cf=!0,P(t.Pf(),(function(){t.Cf=!1,!0===t.Df&&(t.Df=!1,fn(t))}),(function(n){dn(t,n)}))):t.Df=!0)}function cn(t){var n=t.Rf;return!1!==wn(t)&&!1!==t._f&&(!0===$n(n)&&Z(n)>0||ln(t)>0)}function hn(t){t.Pf=void 0,t.xf=void 0,t.wf=void 0}function an(t){var n=t.Rf;t.If=!0,0===t.Kd.length&&(hn(t),Jn(n))}function vn(t,n){var i=t.Rf;if(!0===$n(i)&&Z(i)>0)$(i,n,!1);else{var e=void 0;try{e=t.wf(n)}catch(n){throw dn(t,n),n}try{ht(t,n,e)}catch(n){throw dn(t,n),n}}fn(t)}function dn(t,n){var i=t.Rf;"readable"===i.Fa&&(at(t),hn(t),Qn(i,n))}function ln(t){var n=t.Rf.Fa;return"errored"===n?null:"closed"===n?0:t.Af-t.Qd}function wn(t){var n=t.Rf.Fa;return!1===t.If&&"readable"===n}function bn(t,n,i,e,r,o,u){n.Rf=t,n.Kd=void 0,n.Qd=void 0,at(n),n._f=!1,n.If=!1,n.Df=!1,n.Cf=!1,n.wf=u,n.Af=o,n.Pf=e,n.xf=r,t.zd=n,P(R(i()),(function(){n._f=!0,fn(n)}),(function(t){dn(n,t)}))}function gn(t){return new m("ReadableStreamDefaultController.prototype."+t+" can only be used on a ReadableStreamDefaultController")}var mn=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&y.floor(t)===t},pn=function(){function t(){throw new m("ReadableStreamBYOBRequest cannot be used directly")}return p.defineProperty(t.prototype,"view",{get:function(){if(!1===Sn(this))throw Un("view");return this.Nf},enumerable:!0,configurable:!0}),t.prototype.respond=function(t){if(!1===Sn(this))throw Un("respond");if(void 0===this.Mf)throw new m("This BYOB request has been invalidated");this.Nf.buffer,function(t,n){if(!1===h(n=Number(n)))throw new RangeError("bytesWritten must be a finite");Dn(t,n)}(this.Mf,t)},t.prototype.respondWithNewView=function(t){if(!1===Sn(this))throw Un("respond");if(void 0===this.Mf)throw new m("This BYOB request has been invalidated");if(!ArrayBuffer.isView(t))throw new m("You can only respond with array buffer views");t.buffer,function(t,n){var i=t.Lf.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,Dn(t,n.byteLength)}(this.Mf,t)},t}(),yn=function(){function t(){throw new m("ReadableByteStreamController constructor cannot be used directly")}return p.defineProperty(t.prototype,"byobRequest",{get:function(){if(!1===_n(this))throw Fn("byobRequest");if(void 0===this.Bf&&this.Lf.length>0){var t=this.Lf.peek(),n=new E(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),i=p.create(pn.prototype);!function(t,n,i){t.Mf=n,t.Nf=i}(i,this,n),this.Bf=i}return this.Bf},enumerable:!0,configurable:!0}),p.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===_n(this))throw Fn("desiredSize");return Mn(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===_n(this))throw Fn("close");if(!0===this.If)throw new m("The stream has already been closed; do not close it again!");var t=this.Of.Fa;if("readable"!==t)throw new m("The stream (in "+t+" state) is not in the readable state and cannot be closed");!function(t){var n=t.Of;if(t.Qd>0)t.If=!0;else{if(t.Lf.length>0&&t.Lf.peek().bytesFilled>0){var i=new m("Insufficient bytes to fill elements in the given buffer");throw Bn(t,i),i}xn(t),Jn(n)}}(this)},t.prototype.enqueue=function(t){if(!1===_n(this))throw Fn("enqueue");if(!0===this.If)throw new m("stream is closed or draining");var n=this.Of.Fa;if("readable"!==n)throw new m("The stream (in "+n+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(t))throw new m("You can only enqueue array buffer views when using a ReadableByteStreamController");t.buffer,function(t,n){var i=t.Of,e=n.buffer,r=n.byteOffset,o=n.byteLength,u=e;!0===Q(i)?0===Z(i)?In(t,u,r,o):$(i,new E(u,r,o),!1):!0===Hn(i)?(In(t,u,r,o),An(t)):In(t,u,r,o),Tn(t)}(this,t)},t.prototype.error=function(t){if(!1===_n(this))throw Fn("error");Bn(this,t)},t.prototype[j]=function(t){this.Lf.length>0&&(this.Lf.peek().bytesFilled=0),at(this);var n=this.xf(t);return xn(this),n},t.prototype[Y]=function(){var t=this.Of;if(this.Qd>0){var n=this.Kd.shift();this.Qd-=n.byteLength,Nn(this);var i=void 0;try{i=new E(n.buffer,n.byteOffset,n.byteLength)}catch(t){return O(t)}return R(L(i,!1,t.Od.Ld))}var e=this.Ff;if(void 0!==e){var r=void 0;try{r=new ArrayBuffer(e)}catch(t){return O(t)}var o={buffer:r,byteOffset:0,byteLength:e,bytesFilled:0,elementSize:1,ctor:E,readerType:"default"};this.Lf.push(o)}var u=G(t);return Tn(this),u},t}();function _n(t){return!!s(t)&&!!p.prototype.hasOwnProperty.call(t,"Of")}function Sn(t){return!!s(t)&&!!p.prototype.hasOwnProperty.call(t,"Mf")}function Tn(t){var n=function(t){var n=t.Of;if("readable"!==n.Fa)return!1;if(!0===t.If)return!1;if(!1===t._f)return!1;if(!0===Q(n)&&Z(n)>0)return!0;if(!0===Hn(n)&&Wn(n)>0)return!0;var i=Mn(t);return i>0}(t);!1!==n&&(!0!==t.Cf?(t.Cf=!0,P(t.Pf(),(function(){t.Cf=!1,!0===t.Df&&(t.Df=!1,Tn(t))}),(function(n){Bn(t,n)}))):t.Df=!0)}function En(t,n){var i=!1;"closed"===t.Fa&&(i=!0);var e=kn(n);"default"===n.readerType?$(t,e,i):function(t,n,i){var e=t.Od,r=e.Vf.shift();r.Gd(L(n,i,e.Ld))}(t,e,i)}function kn(t){var n=t.bytesFilled,i=t.elementSize;return new t.ctor(t.buffer,t.byteOffset,n/i)}function In(t,n,i,e){t.Kd.push({buffer:n,byteOffset:i,byteLength:e}),t.Qd+=e}function Rn(t,n){var i=n.elementSize,e=n.bytesFilled-n.bytesFilled%i,r=y.min(t.Qd,n.byteLength-n.bytesFilled),o=n.bytesFilled+r,u=o-o%i,s=r,f=!1;u>e&&(s=u-n.bytesFilled,f=!0);for(var h=t.Kd;s>0;){var a=h.peek(),v=y.min(s,a.byteLength),d=n.byteOffset+n.bytesFilled;c(n.buffer,d,a.buffer,a.byteOffset,v),a.byteLength===v?h.shift():(a.byteOffset+=v,a.byteLength-=v),t.Qd-=v,On(t,v,n),s-=v}return f}function On(t,n,i){Pn(t),i.bytesFilled+=n}function Nn(t){0===t.Qd&&!0===t.If?(xn(t),Jn(t.Of)):Tn(t)}function Pn(t){void 0!==t.Bf&&(t.Bf.Mf=void 0,t.Bf.Nf=void 0,t.Bf=void 0)}function An(t){for(;t.Lf.length>0;){if(0===t.Qd)return;var n=t.Lf.peek();!0===Rn(t,n)&&(Cn(t),En(t.Of,n))}}function Dn(t,n){var i=t.Lf.peek();if("closed"===t.Of.Fa){if(0!==n)throw new m("bytesWritten must be 0 when calling respond() on a closed stream");!function(t,n){n.buffer=n.buffer;var i=t.Of;if(!0===Hn(i))for(;Wn(i)>0;)En(i,Cn(t))}(t,i)}else!function(t,n,i){if(i.bytesFilled+n>i.byteLength)throw new RangeError("bytesWritten out of range");if(On(t,n,i),!(i.bytesFilled<i.elementSize)){Cn(t);var e=i.bytesFilled%i.elementSize;if(e>0){var r=i.byteOffset+i.bytesFilled,o=i.buffer.slice(r-e,r);In(t,o,0,o.byteLength)}i.buffer=i.buffer,i.bytesFilled-=e,En(t.Of,i),An(t)}}(t,n,i);Tn(t)}function Cn(t){var n=t.Lf.shift();return Pn(t),n}function xn(t){t.Pf=void 0,t.xf=void 0}function Bn(t,n){var i=t.Of;"readable"===i.Fa&&(function(t){Pn(t),t.Lf=new M}(t),at(t),xn(t),Qn(i,n))}function Mn(t){var n=t.Of.Fa;return"errored"===n?null:"closed"===n?0:t.Af-t.Qd}function Ln(t,n,i){var e=p.create(yn.prototype),r=v(n,"pull",0,[e]),o=v(n,"cancel",1,[]),u=n.autoAllocateChunkSize;if(void 0!==u&&(u=Number(u),!1===mn(u)||u<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");!function(t,n,i,e,r,o,u){n.Of=t,n.Df=!1,n.Cf=!1,n.Bf=void 0,n.Kd=n.Qd=void 0,at(n),n.If=!1,n._f=!1,n.Af=w(o),n.Pf=e,n.xf=r,n.Ff=u,n.Lf=new M,t.zd=n,P(R(i()),(function(){n._f=!0,Tn(n)}),(function(t){Bn(n,t)}))}(t,e,(function(){return d(n,"start",[e])}),r,o,i,u)}function Un(t){return new m("ReadableStreamBYOBRequest.prototype."+t+" can only be used on a ReadableStreamBYOBRequest")}function Fn(t){return new m("ReadableByteStreamController.prototype."+t+" can only be used on a ReadableByteStreamController")}function zn(t){return I((function(n,i){var e={Gd:n,Hd:i};t.Od.Vf.push(e)}))}function Wn(t){return t.Od.Vf.length}function Hn(t){var n=t.Od;return void 0!==n&&!!qn(n)}var Vn=function(){function t(t){if(!Gn(t))throw new m("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===_n(t.zd))throw new m("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if($n(t))throw new m("This stream has already been locked for exclusive reading by another reader");U(this,t),this.Vf=new M}return p.defineProperty(t.prototype,"closed",{get:function(){return qn(this)?this.Vd:O(Xn("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return qn(this)?void 0===this.Bd?O(W("cancel")):F(this,t):O(Xn("cancel"))},t.prototype.read=function(t){return qn(this)?void 0===this.Bd?O(W("read from")):ArrayBuffer.isView(t)?(t.buffer,0===t.byteLength?O(new m("view must have non-zero byteLength")):function(t,n){var i=t.Bd;return i.Xd=!0,"errored"===i.Fa?O(i.Fd):function(t,n){var i=t.Of,e=1;n.constructor!==DataView&&(e=n.constructor.BYTES_PER_ELEMENT);var r=n.constructor,o={buffer:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength,bytesFilled:0,elementSize:e,ctor:r,readerType:"byob"};if(t.Lf.length>0)return t.Lf.push(o),zn(i);if("closed"===i.Fa)return R(L(new r(o.buffer,o.byteOffset,0),!0,i.Od.Ld));if(t.Qd>0){if(!0===Rn(t,o)){var u=kn(o);return Nn(t),R(L(u,!1,i.Od.Ld))}if(!0===t.If){var s=new m("Insufficient bytes to fill elements in the given buffer");return Bn(t,s),O(s)}}t.Lf.push(o);var f=zn(i);return Tn(t),f}(i.zd,n)}(this,t)):O(new m("view must be an array buffer view")):O(Xn("read"))},t.prototype.releaseLock=function(){if(!qn(this))throw Xn("releaseLock");if(void 0!==this.Bd){if(this.Vf.length>0)throw new m("Tried to release a reader lock when that reader has pending read() calls un-settled");z(this)}},t}();function qn(t){return!!s(t)&&!!p.prototype.hasOwnProperty.call(t,"Vf")}function Xn(t){return new m("ReadableStreamBYOBReader.prototype."+t+" can only be used on a ReadableStreamBYOBReader")}var jn=function(){function t(t,n){void 0===t&&(t={}),void 0===n&&(n={}),Kn(this);var i=n.size,e=n.highWaterMark,r=t.type;if("bytes"===String(r)){if(void 0!==i)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===e&&(e=0),Ln(this,t,e=w(e))}else{if(void 0!==r)throw new RangeError("Invalid type is specified");var o=b(i);void 0===e&&(e=1),function(t,n,i,e){var r=p.create(un.prototype),o=v(n,"pull",0,[r]),u=v(n,"cancel",1,[]);bn(t,r,(function(){return d(n,"start",[r])}),o,u,i,e)}(this,t,e=w(e),o)}}return p.defineProperty(t.prototype,"locked",{get:function(){if(!1===Gn(this))throw ti("locked");return $n(this)},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return!1===Gn(this)?O(ti("cancel")):!0===$n(this)?O(new m("Cannot cancel a stream that already has a reader")):Zn(this,t)},t.prototype.getReader=function(t){var n=(void 0===t?{}:t).mode;if(!1===Gn(this))throw ti("getReader");if(void 0===n)return K(this,!0);if("byob"===(n=String(n)))return function(t,n){void 0===n&&(n=!1);var i=new Vn(t);return i.Ld=n,i}(this,!0);throw new RangeError("Invalid mode is specified")},t.prototype.pipeThrough=function(t,n){var i=t.writable,e=t.readable,r=void 0===n?{}:n,o=r.preventClose,u=r.preventAbort,s=r.preventCancel,f=r.signal;if(!1===Gn(this))throw ti("pipeThrough");if(!1===gt(i))throw new m("writable argument to pipeThrough must be a WritableStream");if(!1===Gn(e))throw new m("readable argument to pipeThrough must be a ReadableStream");if(o=Boolean(o),u=Boolean(u),s=Boolean(s),void 0!==f&&!tn(f))throw new m("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===$n(this))throw new m("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===mt(i))throw new m("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return x(on(this,i,o,u,s,f)),e},t.prototype.pipeTo=function(t,n){var i=void 0===n?{}:n,e=i.preventClose,r=i.preventAbort,o=i.preventCancel,u=i.signal;return!1===Gn(this)?O(ti("pipeTo")):!1===gt(t)?O(new m("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(e=Boolean(e),r=Boolean(r),o=Boolean(o),void 0===u||tn(u)?!0===$n(this)?O(new m("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===mt(t)?O(new m("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):on(this,t,e,r,o,u):O(new m("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},t.prototype.tee=function(){if(!1===Gn(this))throw ti("tee");var t=function(t,n){var i,e,r,o,u,s=K(t),c=!1,h=!1,a=!1,v=I((function(t){u=t}));function d(){return!0===c||(c=!0,x(C(rt(s),(function(t){if(c=!1,!0===t.done)return!1===h&&an(r.zd),void(!1===a&&an(o.zd));var n=t.value,i=n,e=n;!1===h&&vn(r.zd,i),!1===a&&vn(o.zd,e)})))),R(void 0)}function l(){}return r=Yn(l,d,(function(n){if(h=!0,i=n,!0===a){var r=f([i,e]),o=Zn(t,r);u(o)}return v})),o=Yn(l,d,(function(n){if(a=!0,e=n,!0===h){var r=f([i,e]),o=Zn(t,r);u(o)}return v})),D(s.Vd,(function(t){dn(r.zd,t),dn(o.zd,t)})),[r,o]}(this);return f(t)},t.prototype.getIterator=function(t){var n=(void 0===t?{}:t).preventCancel,i=void 0!==n&&n;if(!1===Gn(this))throw ti("getIterator");return function(t,n){void 0===n&&(n=!1);var i=K(t),e=p.create(ut);return e.qd=i,e.Yd=Boolean(n),e}(this,i)},t}();function Yn(t,n,i,e,r){void 0===e&&(e=1),void 0===r&&(r=function(){return 1});var o=p.create(jn.prototype);return Kn(o),bn(o,p.create(un.prototype),t,n,i,e,r),o}function Kn(t){t.Fa="readable",t.Od=void 0,t.Fd=void 0,t.Xd=!1}function Gn(t){return!!s(t)&&!!p.prototype.hasOwnProperty.call(t,"zd")}function $n(t){return void 0!==t.Od}function Zn(t,n){return t.Xd=!0,"closed"===t.Fa?R(void 0):"errored"===t.Fa?O(t.Fd):(Jn(t),C(t.zd[j](n),r))}function Jn(t){t.Fa="closed";var n=t.Od;void 0!==n&&(et(n)&&(n.Zd.forEach((function(t){t.Gd(L(void 0,!0,n.Ld))})),n.Zd=new M),X(n))}function Qn(t,n){t.Fa="errored",t.Fd=n;var i=t.Od;void 0!==i&&(et(i)?(i.Zd.forEach((function(t){t.Hd(n)})),i.Zd=new M):(i.Vf.forEach((function(t){t.Hd(n)})),i.Vf=new M),q(i,n))}function ti(t){return new m("ReadableStream.prototype."+t+" can only be used on a ReadableStream")}"symbol"===B(i.asyncIterator)&&p.defineProperty(jn.prototype,i.asyncIterator,{value:jn.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var ni=function(){function t(t){var n=t.highWaterMark;this.highWaterMark=n}return t.prototype.size=function(t){return t.byteLength},t}(),ii=function(){function t(t){var n=t.highWaterMark;this.highWaterMark=n}return t.prototype.size=function(){return 1},t}(),ei=function(){function t(t,n,i){void 0===t&&(t={}),void 0===n&&(n={}),void 0===i&&(i={});var e=n.size,r=n.highWaterMark,o=i.size,u=i.highWaterMark;if(void 0!==t.writableType)throw new RangeError("Invalid writable type specified");var s=b(e);if(void 0===r&&(r=1),r=w(r),void 0!==t.readableType)throw new RangeError("Invalid readable type specified");var f,c=b(o);void 0===u&&(u=0),u=w(u),function(t,n,i,e,r,o){function u(){return n}function s(n){return function(t,n){var i=t.Wf;return!0===t.uf?C(t.Uf,(function(){var e=t.Gf;if("erroring"===e.Fa)throw e.Fd;return vi(i,n)})):vi(i,n)}(t,n)}function f(n){return function(t,n){return oi(t,n),R(void 0)}(t,n)}function c(){return function(t){var n=t.Hf,i=t.Wf,e=i.Zf();return hi(i),C(e,(function(){if("errored"===n.Fa)throw n.Fd;var t=n.zd;!0===wn(t)&&an(t)}),(function(i){throw oi(t,i),n.Fd}))}(t)}function h(){return function(t){return si(t,!1),t.Uf}(t)}function a(n){return ui(t,n),R(void 0)}t.Gf=function(t,n,i,e,r,o){void 0===r&&(r=1),void 0===o&&(o=function(){return 1});var u=p.create(lt.prototype);return bt(u),Bt(u,p.create(xt.prototype),t,n,i,e,r,o),u}(u,s,c,f,i,e),t.Hf=Yn(u,h,a,r,o),t.uf=void 0,t.Uf=void 0,t.Xf=void 0,si(t,!0),t.Wf=void 0}(this,I((function(t){f=t})),r,s,u,c),function(t,n){var i=p.create(fi.prototype),e=function(t){try{return ai(i,t),R(void 0)}catch(t){return O(t)}},r=n.transform;if(void 0!==r){if("function"!=typeof r)throw new m("transform is not a method");e=function(t){return l(r,n,[t,i])}}var o=v(n,"flush",0,[i]);!function(t,n,i,e){n.zf=t,t.Wf=n,n.qf=i,n.Zf=e}(t,i,e,o)}(this,t);var h=d(t,"start",[this.Wf]);f(h)}return p.defineProperty(t.prototype,"readable",{get:function(){if(!1===ri(this))throw li("readable");return this.Hf},enumerable:!0,configurable:!0}),p.defineProperty(t.prototype,"writable",{get:function(){if(!1===ri(this))throw li("writable");return this.Gf},enumerable:!0,configurable:!0}),t}();function ri(t){return!!s(t)&&!!p.prototype.hasOwnProperty.call(t,"Wf")}function oi(t,n){dn(t.Hf.zd,n),ui(t,n)}function ui(t,n){hi(t.Wf),Ft(t.Gf.$d,n),!0===t.uf&&si(t,!1)}function si(t,n){void 0!==t.Uf&&t.Xf(),t.Uf=I((function(n){t.Xf=n})),t.uf=n}var fi=function(){function t(){throw new m("TransformStreamDefaultController instances cannot be created directly")}return p.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===ci(this))throw di("desiredSize");return ln(this.zf.Hf.zd)},enumerable:!0,configurable:!0}),t.prototype.enqueue=function(t){if(!1===ci(this))throw di("enqueue");ai(this,t)},t.prototype.error=function(t){if(!1===ci(this))throw di("error");!function(t,n){oi(t.zf,n)}(this,t)},t.prototype.terminate=function(){if(!1===ci(this))throw di("terminate");!function(t){var n=t.zf,i=n.Hf.zd;!0===wn(i)&&an(i);var e=new m("TransformStream terminated");ui(n,e)}(this)},t}();function ci(t){return!!s(t)&&!!p.prototype.hasOwnProperty.call(t,"zf")}function hi(t){t.qf=void 0,t.Zf=void 0}function ai(t,n){var i=t.zf,e=i.Hf.zd;if(!1===wn(e))throw new m("Readable side is not in a state that permits enqueue");try{vn(e,n)}catch(t){throw ui(i,t),i.Hf.Fd}var r=function(t){return!0!==cn(t)}(e);r!==i.uf&&si(i,!0)}function vi(t,n){return C(t.qf(n),void 0,(function(n){throw oi(t.zf,n),n}))}function di(t){return new m("TransformStreamDefaultController.prototype."+t+" can only be used on a TransformStreamDefaultController")}function li(t){return new m("TransformStream.prototype."+t+" can only be used on a TransformStream")}t.ByteLengthQueuingStrategy=ni,t.CountQueuingStrategy=ii,t.ReadableStream=jn,t.TransformStream=ei,t.WritableStream=lt,p.defineProperty(t,"__esModule",{value:!0})},"object"===(void 0===t?"undefined":B(t))&&void 0!==i?o(t):"function"==typeof define&&define.amd?define(["exports"],o):o((r=r||self).WebStreamsPolyfill={})})),pt=C((function(t){function n(){var t=mt();return n=function(){return t},t}x(),gt(),p.defineProperty(t,"__esModule",{value:!0}),function(t,n){for(var i in n)p.defineProperty(t,i,{enumerable:!0,get:n[i]})}(t,{ByteLengthQueuingStrategy:function(){return n().ByteLengthQueuingStrategy},CountQueuingStrategy:function(){return n().CountQueuingStrategy},ReadableStream:function(){return n().ReadableStream},TransformStream:function(){return n().TransformStream},WritableStream:function(){return n().WritableStream}})}));function yt(t,n){return(yt=p.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function _t(t,n){if("function"!=typeof n&&null!==n)throw new m("Super expression must either be null or a function");t.prototype=p.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&yt(t,n)}function St(t,n){for(var i=0;i<n.length;i++){var e=n[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),p.defineProperty(t,e.key,e)}}function Tt(t,n,i){return n&&St(t.prototype,n),i&&St(t,i),t}x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt();var Et,kt=((Et={}).Tv="web",Et.Ev="android",Et.xv="android-tv",Et.Rv="ios",Et.Iv="tvos",Et.Cv="chromecast",Et.Pv="theoliveweb",Et);var It=v?v.userAgent:"",Rt=It.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),Ot=It.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),Nt=It.match(/Android ([0-9\.]+)/i),Pt=It.match(/Windows NT ([0-9\.]+)/i),At=It.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),Dt=It.match(/Firefox\/([0-9\.]+)/i),Ct=It.match(/OPR\/(\d+\.\d+)/i),xt=It.match(/Tizen ([0-9\.]+)/i),Bt=It.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),Mt=It.match(/HbbTV\/([0-9.]+)/i),Lt=function(){function t(){this.Dv=Boolean("ontouchstart"in self||self.DocumentTouch&&a instanceof self.DocumentTouch||v&&v.msMaxTouchPoints),this.Mv=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(It)||/(macintosh|mac(?=_powerpc)\s)/i.test(It),this.Bv=/Windows NT/i.test(It),this.Fv=Pt?S(Pt[1]):0,this.Wv=/Android/i.test(It),this.Gv=Nt?S(Nt[1]):0,this.Zv=/windows phone (8|8\.1)/i.test(It),this.zv=/iPhone/i.test(It),this.Yv=/iPad/i.test(It),this.Qv=this.Mv&&this.Dv&&!this.Yv,this.$v=/iPod/i.test(It),this.fm=/Mobile Safari/i.test(It),this.lm=/EOS\d*STB/i.test(It),this.dm=/APP\d*STB/i.test(It),this.im=(this.zv||this.Yv||this.Qv||this.$v)&&!this.Zv,this.hm=Bt?S(Bt[2]):0,this._m=this.Zv||this.im||this.Wv||this.fm,this.gm=/CriOS/i.test(It),this.wm=Boolean(self.chrome&&/google/i.test(v.vendor))||this.gm,this.Em=this.wm&&/Edg\//i.test(v.userAgent),this.Rm=Ot?_(Ot[1],10):0,this.Fg=Boolean(/CriOS/i.test(It)),this.Og=Boolean(self.chrome||/Chrome/i.test(It)||this.Fg),this.Sm=Rt?_(Rt[1],10):0,this.Pm=/SMART-TV.*Tizen/i.test(It),this.Nm=xt?S(xt[1]):0,this.Am=this.Nm>0?function(t){return t>=8?108:t>=7?94:t>=6.5?85:t>=6?76:t>=5.5?69:t>=5?63:t>=4?56:t>=3?47:0}(this.Nm):void 0,this.Lm=/webos|web0s/i.test(It),this.Om=/HbbTV/i.test(It),this.Vm=!!Mt&&function(t){if(!t)return!1;var n=t.split(".").map(Number);return 3===n.length&&1===n[0]&&2===n[1]}(Mt[1]),this.Um=/VIZIO/i.test(It),this.Hm=/Edge\/\d+/i.test(It),this.Xm=/Trident/i.test(It),this.qm=this.Xm&&!self.ActiveXObject&&"ActiveXObject"in self,this.Km=/Vivaldi/i.test(It),this.Qm=/Firefox/i.test(It)&&!/Seamonkey/i.test(It),this.$m=Dt?S(Dt[1]):0,this.rg=/Safari/i.test(It)&&!/Chrome/i.test(It)&&!this.Zv&&!this.Pm,this.hg=At?S(At[2]):0,this.cg=Boolean(Ct),this.fg=Ct?S(Ct[1]):0,this.vg=/CrKey/.test(It),this.pg=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(It),this.Ag=/PlayStation 4/i.test(It),this.Tg="web"===kt.xv,this.xg="web"===kt.Ev,this.Ig=this.xg||this.Tg,this.Pg="web"===kt.Rv,this.Ng="web"===kt.Iv,this.Lg="web"===kt.Cv}return Tt(t,[{key:"Qe",get:function(){return this.Dv}},{key:"Nv",get:function(){return this.Mv}},{key:"Lv",get:function(){return this.Bv}},{key:"Ov",get:function(){return this.Fv}},{key:"Vv",get:function(){return this.Wv}},{key:"Uv",get:function(){return this.Gv}},{key:"Hv",get:function(){return this.Zv}},{key:"Xv",get:function(){return this.zv}},{key:"qv",get:function(){return this.Yv}},{key:"Kv",get:function(){return this.Qv}},{key:"Jv",get:function(){return this.$v}},{key:"su",get:function(){return this.im}},{key:"nm",get:function(){return this.hm}},{key:"um",get:function(){return this.lm||this.dm}},{key:"ud",get:function(){return this.fm}},{key:"Qs",get:function(){return this._m}},{key:"vm",get:function(){return this.gm}},{key:"pm",get:function(){return this.wm}},{key:"ym",get:function(){var t;return null!=(t=this.Am)?t:this.Sm}},{key:"Tm",get:function(){return this.Em}},{key:"xm",get:function(){var t;return(null==(t=h.chrome)?void 0:t.webview)&&this.Rm>0}},{key:"Im",get:function(){return this.Rm}},{key:"Cm",get:function(){return this.Pm}},{key:"Dm",get:function(){return this.Nm}},{key:"Mm",get:function(){return this.Lm}},{key:"Bm",get:function(){return this.Om}},{key:"Fm",get:function(){return this.Vm}},{key:"Wm",get:function(){return this.Um}},{key:"Gm",get:function(){return this.Hm}},{key:"Zm",get:function(){return this.Xm}},{key:"zm",get:function(){return this.qm}},{key:"Ym",get:function(){return this.Km}},{key:"jm",get:function(){return this.Qm}},{key:"Jm",get:function(){return this.$m}},{key:"eg",get:function(){return this.rg}},{key:"og",get:function(){return this.hg}},{key:"ag",get:function(){return this.cg}},{key:"dg",get:function(){return this.fg}},{key:"_g",get:function(){return this.vg}},{key:"gg",get:function(){return this.pg}},{key:"wg",get:function(){return!(!this.Mm&&!this.Cm)&&this.ym<=56}},{key:"yg",get:function(){return this.Ag}},{key:"Sg",get:function(){return this.Tg}},{key:"Eg",get:function(){return this.xg}},{key:"Rg",get:function(){return this.Ig}},{key:"Cg",get:function(){return this.Pg}},{key:"Dg",get:function(){return this.Ng}},{key:"Mg",get:function(){return this.Lg}},{key:"Bg",get:function(){return this.Og}},{key:"IS_IOS_CHROME",get:function(){return this.Fg}}]),t}();Lt.Vg=new Lt;var Ut=Lt.Vg;x(),gt(),nt();var Ft={}.toString;function zt(t){return null!=t}var Wt,Ht=Array.isArray||function(t){return"[object Array]"===Ft.call(t)};function Vt(t){return"object"===(void 0===t?"undefined":B(t))&&null!==t}function qt(t){return"function"==typeof t}function Xt(t){return qt(t)||Vt(t)}function jt(t){Wt=t}x(),gt(),x(),gt();var Yt=function(){};function Kt(t){var n;return function(){return void 0!==t&&(n=t(),t=void 0),n}}function Gt(){return void 0!==a?a.createElement("video"):void 0}var $t=Kt(Gt);Kt((function(){return"undefined"!=typeof HTMLVideoElement&&$t()instanceof HTMLVideoElement}));x(),gt(),x(),gt(),x(),gt();var Zt=null;try{Zt=new WebAssembly.Instance(new WebAssembly.Module(new E([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(Et){}function Jt(t,n,i){this.low=0|t,this.high=0|n,this.unsigned=!!i}function Qt(t){return!0===(t&&t.Hg)}function tn(t){var n=y.clz32(t&-t);return t?31-n:n}Jt.prototype.Hg,p.defineProperty(Jt.prototype,"Hg",{value:!0}),Jt.isLong=Qt;var nn={},en={};function rn(t,n){var i,e,r;return n?(r=0<=(t>>>=0)&&t<256)&&(e=en[t])?e:(i=un(t,0,!0),r&&(en[t]=i),i):(r=-128<=(t|=0)&&t<128)&&(e=nn[t])?e:(i=un(t,t<0?-1:0,!1),r&&(nn[t]=i),i)}function on(t,n){if(T(t))return n?wn:ln;if(n){if(t<0)return wn;if(t>=an)return yn}else{if(t<=-vn)return _n;if(t+1>=vn)return pn}return t<0?on(-t,n).neg():un(t%hn|0,t/hn|0,n)}function un(t,n,i){return new Jt(t,n,i)}Jt.fromInt=rn,Jt.fromNumber=on,Jt.fromBits=un;var sn=y.pow;function fn(t,n,i){if(0===t.length)throw g("empty string");if("number"==typeof n?(i=n,n=!1):n=!!n,"NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return n?wn:ln;if((i=i||10)<2||36<i)throw RangeError("radix");var e;if((e=t.indexOf("-"))>0)throw g("interior hyphen");if(0===e)return fn(t.substring(1),n,i).neg();for(var r=on(sn(i,8)),o=ln,u=0;u<t.length;u+=8){var s=y.min(8,t.length-u),f=_(t.substring(u,u+s),i);if(s<8){var c=on(sn(i,s));o=o.mul(c).add(on(f))}else o=(o=o.mul(r)).add(on(f))}return o.unsigned=n,o}function cn(t,n){return"number"==typeof t?on(t,n):"string"==typeof t?fn(t,n):un(t.low,t.high,"boolean"==typeof n?n:t.unsigned)}Jt.fromString=fn,Jt.fromValue=cn;var hn=4294967296,an=hn*hn,vn=an/2,dn=rn(1<<24),ln=rn(0);Jt.ZERO=ln;var wn=rn(0,!0);Jt.UZERO=wn;var bn=rn(1);Jt.ONE=bn;var gn=rn(1,!0);Jt.UONE=gn;var mn=rn(-1);Jt.NEG_ONE=mn;var pn=un(-1,2147483647,!1);Jt.MAX_VALUE=pn;var yn=un(-1,-1,!0);Jt.MAX_UNSIGNED_VALUE=yn;var _n=un(0,-2147483648,!1);Jt.MIN_VALUE=_n;var Sn=Jt.prototype;Sn.toInt=function(){return this.unsigned?this.low>>>0:this.low},Sn.toNumber=function(){return this.unsigned?(this.high>>>0)*hn+(this.low>>>0):this.high*hn+(this.low>>>0)},Sn.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(_n)){var n=on(t),i=this.div(n),e=i.mul(n).sub(this);return i.toString(t)+e.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var r=on(sn(t,6),this.unsigned),o=this,u="";;){var s=o.div(r),f=(o.sub(s.mul(r)).toInt()>>>0).toString(t);if((o=s).isZero())return f+u;for(;f.length<6;)f="0"+f;u=""+f+u}},Sn.getHighBits=function(){return this.high},Sn.getHighBitsUnsigned=function(){return this.high>>>0},Sn.getLowBits=function(){return this.low},Sn.getLowBitsUnsigned=function(){return this.low>>>0},Sn.getNumBitsAbs=function(){if(this.isNegative())return this.eq(_n)?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},Sn.isZero=function(){return 0===this.high&&0===this.low},Sn.eqz=Sn.isZero,Sn.isNegative=function(){return!this.unsigned&&this.high<0},Sn.isPositive=function(){return this.unsigned||this.high>=0},Sn.isOdd=function(){return 1==(1&this.low)},Sn.isEven=function(){return 0==(1&this.low)},Sn.equals=function(t){return Qt(t)||(t=cn(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&(this.high===t.high&&this.low===t.low)},Sn.eq=Sn.equals,Sn.notEquals=function(t){return!this.eq(t)},Sn.neq=Sn.notEquals,Sn.ne=Sn.notEquals,Sn.lessThan=function(t){return this.comp(t)<0},Sn.lt=Sn.lessThan,Sn.lessThanOrEqual=function(t){return this.comp(t)<=0},Sn.lte=Sn.lessThanOrEqual,Sn.le=Sn.lessThanOrEqual,Sn.greaterThan=function(t){return this.comp(t)>0},Sn.gt=Sn.greaterThan,Sn.greaterThanOrEqual=function(t){return this.comp(t)>=0},Sn.gte=Sn.greaterThanOrEqual,Sn.ge=Sn.greaterThanOrEqual,Sn.compare=function(t){if(Qt(t)||(t=cn(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},Sn.comp=Sn.compare,Sn.negate=function(){return!this.unsigned&&this.eq(_n)?_n:this.not().add(bn)},Sn.neg=Sn.negate,Sn.add=function(t){Qt(t)||(t=cn(t));var n=this.high>>>16,i=65535&this.high,e=this.low>>>16,r=65535&this.low,o=t.high>>>16,u=65535&t.high,s=t.low>>>16,f=0,c=0,h=0,a=0;return h+=(a+=r+(65535&t.low))>>>16,c+=(h+=e+s)>>>16,f+=(c+=i+u)>>>16,f+=n+o,un((h&=65535)<<16|(a&=65535),(f&=65535)<<16|(c&=65535),this.unsigned)},Sn.subtract=function(t){return Qt(t)||(t=cn(t)),this.add(t.neg())},Sn.sub=Sn.subtract,Sn.multiply=function(t){if(this.isZero())return this;if(Qt(t)||(t=cn(t)),Zt)return un(Zt.mul(this.low,this.high,t.low,t.high),Zt.get_high(),this.unsigned);if(t.isZero())return this.unsigned?wn:ln;if(this.eq(_n))return t.isOdd()?_n:ln;if(t.eq(_n))return this.isOdd()?_n:ln;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(dn)&&t.lt(dn))return on(this.toNumber()*t.toNumber(),this.unsigned);var n=this.high>>>16,i=65535&this.high,e=this.low>>>16,r=65535&this.low,o=t.high>>>16,u=65535&t.high,s=t.low>>>16,f=65535&t.low,c=0,h=0,a=0,v=0;return a+=(v+=r*f)>>>16,h+=(a+=e*f)>>>16,a&=65535,h+=(a+=r*s)>>>16,c+=(h+=i*f)>>>16,h&=65535,c+=(h+=e*s)>>>16,h&=65535,c+=(h+=r*u)>>>16,c+=n*f+i*s+e*u+r*o,un((a&=65535)<<16|(v&=65535),(c&=65535)<<16|(h&=65535),this.unsigned)},Sn.mul=Sn.multiply,Sn.divide=function(t){if(Qt(t)||(t=cn(t)),t.isZero())throw g("division by zero");var n,i,e;if(Zt)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?un((this.unsigned?Zt.div_u:Zt.div_s)(this.low,this.high,t.low,t.high),Zt.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?wn:ln;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return wn;if(t.gt(this.shru(1)))return gn;e=wn}else{if(this.eq(_n))return t.eq(bn)||t.eq(mn)?_n:t.eq(_n)?bn:(n=this.shr(1).div(t).shl(1)).eq(ln)?t.isNegative()?bn:mn:(i=this.sub(t.mul(n)),e=n.add(i.div(t)));if(t.eq(_n))return this.unsigned?wn:ln;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();e=ln}for(i=this;i.gte(t);){n=y.max(1,y.floor(i.toNumber()/t.toNumber()));for(var r=y.ceil(y.log(n)/y.LN2),o=r<=48?1:sn(2,r-48),u=on(n),s=u.mul(t);s.isNegative()||s.gt(i);)s=(u=on(n-=o,this.unsigned)).mul(t);u.isZero()&&(u=bn),e=e.add(u),i=i.sub(s)}return e},Sn.div=Sn.divide,Sn.modulo=function(t){return Qt(t)||(t=cn(t)),Zt?un((this.unsigned?Zt.rem_u:Zt.rem_s)(this.low,this.high,t.low,t.high),Zt.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},Sn.mod=Sn.modulo,Sn.rem=Sn.modulo,Sn.not=function(){return un(~this.low,~this.high,this.unsigned)},Sn.countLeadingZeros=function(){return this.high?y.clz32(this.high):y.clz32(this.low)+32},Sn.clz=Sn.countLeadingZeros,Sn.countTrailingZeros=function(){return this.low?tn(this.low):tn(this.high)+32},Sn.ctz=Sn.countTrailingZeros,Sn.and=function(t){return Qt(t)||(t=cn(t)),un(this.low&t.low,this.high&t.high,this.unsigned)},Sn.or=function(t){return Qt(t)||(t=cn(t)),un(this.low|t.low,this.high|t.high,this.unsigned)},Sn.xor=function(t){return Qt(t)||(t=cn(t)),un(this.low^t.low,this.high^t.high,this.unsigned)},Sn.shiftLeft=function(t){return Qt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?un(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):un(0,this.low<<t-32,this.unsigned)},Sn.shl=Sn.shiftLeft,Sn.shiftRight=function(t){return Qt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?un(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):un(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},Sn.shr=Sn.shiftRight,Sn.shiftRightUnsigned=function(t){return Qt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?un(this.low>>>t|this.high<<32-t,this.high>>>t,this.unsigned):un(32===t?this.high:this.high>>>t-32,0,this.unsigned)},Sn.shru=Sn.shiftRightUnsigned,Sn.shr_u=Sn.shiftRightUnsigned,Sn.rotateLeft=function(t){var n;return Qt(t)&&(t=t.toInt()),0==(t&=63)?this:32===t?un(this.high,this.low,this.unsigned):t<32?(n=32-t,un(this.low<<t|this.high>>>n,this.high<<t|this.low>>>n,this.unsigned)):(n=32-(t-=32),un(this.high<<t|this.low>>>n,this.low<<t|this.high>>>n,this.unsigned))},Sn.rotl=Sn.rotateLeft,Sn.rotateRight=function(t){var n;return Qt(t)&&(t=t.toInt()),0==(t&=63)?this:32===t?un(this.high,this.low,this.unsigned):t<32?(n=32-t,un(this.high<<n|this.low>>>t,this.low<<n|this.high>>>t,this.unsigned)):(n=32-(t-=32),un(this.low<<n|this.high>>>t,this.high<<n|this.low>>>t,this.unsigned))},Sn.rotr=Sn.rotateRight,Sn.toSigned=function(){return this.unsigned?un(this.low,this.high,!1):this},Sn.toUnsigned=function(){return this.unsigned?this:un(this.low,this.high,!0)},Sn.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},Sn.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]},Sn.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]},Jt.fromBytes=function(t,n,i){return i?Jt.fromBytesLE(t,n):Jt.fromBytesBE(t,n)},Jt.fromBytesLE=function(t,n){return new Jt(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,n)},Jt.fromBytesBE=function(t,n){return new Jt(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],n)};var Tn=Jt;x(),gt();var En=9007199254740991;y.pow(2,-52);function kn(){return Date.now()||(new Date).getTime()}Tn.fromNumber(En);var In=!!("ontouchstart"in self||self.DocumentTouch&&a instanceof self.DocumentTouch)||!(!v||!v.msMaxTouchPoints),Rn=$t(),On=!(!Rn||!Rn.webkitShowPlaybackTargetPicker),Nn=function(){function t(){this.Xg=void 0,this.vp=!1,this.Qe=In,this.Qs=!1,this.mp=!0}var n=t.prototype;return n.zg=function(){return 0},n.dp=function(t,n){return!0},n.fp=function(t){return t>=.3333333333333333},Tt(t,[{key:"Zg",get:function(){return void 0===this.Xg&&(this.Xg=this.zg()),this.Xg}},{key:"qg",get:function(){return!Ut.gg}},{key:"Yg",get:function(){if(h.screen)return{width:h.screen.width,height:h.screen.height}}},{key:"Kg",get:function(){return h.devicePixelRatio||1}},{key:"jg",get:function(){return On}},{key:"Qg",get:function(){return!1}},{key:"Jg",get:function(){return!0}},{key:"$g",get:function(){return!!(Ut.eg||Ut.su||Ut.xm)||!!Ut.Wm}},{key:"tp",get:function(){return Ut.Wm}},{key:"ep",get:function(){return!Ut.su}},{key:"sp",get:function(){return!0}},{key:"np",get:function(){return!0}},{key:"rp",get:function(){return!1}},{key:"op",get:function(){}},{key:"hp",get:function(){return!0}},{key:"ap",get:function(){return!1}},{key:"cp",get:function(){return Ut.Wm}},{key:"lp",get:function(){return!1}},{key:"_p",get:function(){return!1}}]),t}(),Pn=function(t){function n(){return t.call(this)||this}return _t(n,t),n}(Nn);x(),gt();var An=function(t){function n(){return t.apply(this,arguments)||this}return _t(n,t),n.prototype.dp=function(t,n){if(t&&t.gp&&n&&n.gp){var i=Dn(t.gp,"mp4a.40.2")&&Dn(n.gp,"mp4a.40.5"),e=Dn(t.gp,"mp4a.40.5")&&Dn(n.gp,"mp4a.40.2"),r=Dn(t.gp,"mp4a.40.2")&&Dn(n.gp,"mp4a.40.34"),o=Dn(t.gp,"mp4a.40.34")&&Dn(n.gp,"mp4a.40.2"),u=Dn(t.gp,"mp4a.40.5")&&Dn(n.gp,"mp4a.40.34"),s=Dn(t.gp,"mp4a.40.34")&&Dn(n.gp,"mp4a.40.5");return!(i||e||r||o||u||s)}return!0},Tt(n,[{key:"op",get:function(){if(Ut.Nv)return 4096}}]),n}(Pn);function Dn(t,n){return t.indexOf(n)>-1}x(),gt();var Cn=function(t){function n(){return t.apply(this,arguments)||this}return _t(n,t),n.prototype.fp=function(t){return t>=2},n}(Pn);x(),gt();var xn=function(t){function n(){var n;return(n=t.call(this)||this).vp=Ut.og>=11,n.mp=Ut.eg&&!(Ut.su&&Ut.og<10),n}return _t(n,t),Tt(n,[{key:"lp",get:function(){return Ut.og<17}},{key:"_p",get:function(){return!0}}]),n}(Pn);x(),gt();var Bn,Mn=function(t){function n(){return t.apply(this,arguments)||this}return _t(n,t),Tt(n,[{key:"hp",get:function(){return!Ut.Lv||(Ut.Tm?92!==Ut.Im:Ut.ym>=100)}}]),n}(Pn);x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt();var Ln=function(){var t=Gt();if(!t)return!1;var n=t.muted;return t.muted=!n,t.muted!==n}();!function(){if(Ut.Kv)return!1;var t=Gt();if(!t)return!1;var n=t.volume;t.volume=n/2+.1,t.volume}();var Un=function(t){function n(n){var i;return(i=t.call(this)||this).pp=n,i.vp=i.pp.vp,i.Qe=i.pp.Qe,i.mp=Ln&&i.pp.mp,i}_t(n,t);var i=n.prototype;return i.zg=function(){return this.pp.Zg},i.dp=function(t,n){return this.pp.dp(t,n)},i.fp=function(t){return this.pp.fp(t)},Tt(n,[{key:"op",get:function(){return this.pp.op}},{key:"hp",get:function(){return this.pp.hp}},{key:"lp",get:function(){return this.pp.lp}}]),n}(Nn),Fn=function(t){function n(n){var i;return(i=t.call(this,n)||this).vp=!0,i.Qs=!0,i}return _t(n,t),Tt(n,[{key:"rp",get:function(){return Ut.su}}]),n}(Un);x(),gt();var zn=function(t){function n(){return t.apply(this,arguments)||this}return _t(n,t),n.prototype.zg=function(){return function(t){return t&&Xt(h.ManagedMediaSource)?h.ManagedMediaSource:Xt(h.MediaSource)?h.MediaSource:void 0}(!0)?t.prototype.zg.call(this):1},Tt(n,[{key:"rp",get:function(){return!0}}]),n}(Fn);x(),gt();var Wn=function(t){function n(){return t.apply(this,arguments)||this}return _t(n,t),n.prototype.dp=function(n,i){return t.prototype.dp.call(this,n,i)},Tt(n,[{key:"Qg",get:function(){return Ut.Dm<3}},{key:"Jg",get:function(){return Ut.Dm>=3}},{key:"Yg",get:function(){var t=this;return h.tizen&&!this.Ap&&h.tizen.systeminfo.getPropertyValue("DISPLAY",(function(n){var i=n.resolutionWidth,e=n.resolutionHeight;1===i&&1===e||(t.Ap={width:i,height:e})})),this.Ap}},{key:"ap",get:function(){return Ut.Dm<3}}]),n}(Un);x(),gt();var Hn=function(t){function n(){return t.apply(this,arguments)||this}return _t(n,t),Tt(n,[{key:"Yg",get:function(){var t=this;return h.webOS&&!this.Ap&&h.webOS.deviceInfo((function(n){t.Ap={width:n.screenWidth,height:n.screenHeight}})),this.Ap}},{key:"sp",get:function(){return!1}}]),n}(Un);x(),gt();var Vn=function(t){function n(){return t.apply(this,arguments)||this}return _t(n,t),Tt(n,[{key:"rp",get:function(){return!0}},{key:"_p",get:function(){return this.pp._p}}]),n}(Un);function qn(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,e=new Array(n);i<n;i++)e[i]=t[i];return e}function Xn(t,n){if(t){if("string"==typeof t)return qn(t,n);var i=p.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?qn(t,n):void 0}}function jn(t){return function(t){if(Array.isArray(t))return qn(t)}(t)||function(t){if(void 0!==n&&null!=t[e]||null!=t["@@iterator"])return Array.from(t)}(t)||Xn(t)||function(){throw new m("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}!function(t){Bn=t}(function(){var t=function(){if(Ut.jm)return new An;if(Ut.Gm||Ut.Zm)return new Cn;if(Ut.eg)return new xn;if(Ut.pm)return new Mn;return new Pn}();return Ut.su?new zn(t):Ut.Qs?new Fn(t):Ut.Cm?new Wn(t):Ut.Mm?new Hn(t):Ut.Nv?new Vn(t):new Un(t)}()),x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt(),nt(),x(),gt();var Yn=!(Ut.Zm&&!Ut.zm),Kn=self.console;function Gn(t){if(Vt(t))try{return JSON.stringify(t)}catch(t){}return t}function $n(t){return t.map(Gn).join(" ")}function Zn(t){var n=Kn&&Kn[t];return n?n.bind&&Yn?n.bind(Kn):function(){for(var n=arguments.length,i=new Array(n),e=0;e<n;e++)i[e]=arguments[e];Kn[t]($n(i))}:void 0}var Jn=Zn("log")||Yt,Qn=Zn("warn")||Jn.bind(void 0,"WARNING:"),ti=Zn("error")||Jn.bind(void 0,"ERROR:"),ni=function(){var t=Kn&&Kn.assert;return t?t.bind&&Yn?t.bind(Kn):function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),e=1;e<n;e++)i[e-1]=arguments[e];Kn.assert(t,$n(i))}:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),e=1;e<n;e++)i[e-1]=arguments[e];t||ti.apply(void 0,["Assertion failed:"].concat(jn(i)))}}();function ii(t,n){for(var i=0;i<n.length;i++){var e=n[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),p.defineProperty(t,e.key,e)}}function ei(t,n){var i=function(t,n){var i=t.length;if(i<=1)return t;for(var e=new Array(i),r=1;r<i;r*=2){ri(t,n,r,e);var o=t;t=e,e=o}return t}(t,n);return i!==t&&ri(i,null,t.length,t),t}function ri(t,n,i,e){var r,o,u,s,f,c=t.length,h=0,a=2*i;for(r=0;r<c;r+=a)for(u=(o=r+i)+i,o>c&&(o=c),u>c&&(u=c),s=r,f=o;;)if(s<o&&f<u)n(t[s],t[f])<=0?e[h++]=t[s++]:e[h++]=t[f++];else if(s<o)e[h++]=t[s++];else{if(!(f<u))break;e[h++]=t[f++]}}x(),gt();var oi=/[a-zA-Z]/,ui=/[0-9]/,si=/[0-9a-fA-F]/,fi=/^0x/i,ci=/^[0-9]+$/,hi=/^[0-9a-fA-F]+$/,ai=/^[0-7]+$/,vi=p.prototype.toString,di=Array.isArray||function(t){return"[object Array]"===vi.call(t)},li=void 0!==n&&"symbol"==typeof e;function wi(t){return di(t)?t:Array.from(t)}function bi(t,n,i){var e=t[n];t[n]=t[i],t[i]=e}function gi(t){return t>=65&&t<=90}function mi(t){return gi(t)||function(t){return t>=97&&t<=122}(t)}function pi(t){return t>=48&&t<=57}function yi(t){return pi(t)||mi(t)}function _i(t){return pi(t)||t>=65&&t<=70||t>=97&&t<=102}function Si(t){return gi(t)?t+32:t}function Ti(t){return pi(t)?t-48:t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:-1}function Ei(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=y.min,Ii=String.fromCharCode,Ri=16384;function Oi(t){for(var n=t.length,i=[],e=0;e<n;e+=Ri){var r=ki(e+Ri,n);i.push(Ii.apply(null,t.slice(e,r)))}return i.join("")}var Ni=2147483647,Pi=/[^\0-\x7E]/,Ai=/[\x2E\u3002\uFF0E\uFF61]/g,Di={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ci=y.floor,xi=String.fromCharCode;function Bi(t){throw new RangeError(Di[t])}function Mi(t){for(var n=[],i=0,e=t.length;i<e;){var r=t.charCodeAt(i++);if(r>=55296&&r<=56319&&i<e){var o=t.charCodeAt(i++);56320==(64512&o)?n.push(((1023&r)<<10)+(1023&o)+65536):(n.push(r),i--)}else n.push(r)}return n}var Li,Ui,Fi,zi=function(t,n){return t+22+75*(t<26)-((0!=n)<<5)},Wi=function(t,n,i){var e=0;for(t=i?Ci(t/700):t>>1,t+=Ci(t/n);t>455;e+=36)t=Ci(t/35);return Ci(e+36*t/(t+38))},Hi=function(t){return function(t,n){var i=t.split("@"),e="";i.length>1&&(e=i[0]+"@",t=i[1]);var r=function(t,n){for(var i=[],e=t.length;e--;)i[e]=n(t[e]);return i}((t=t.replace(Ai,".")).split("."),n).join(".");return e+r}(t,(function(t){return Pi.test(t)?"xn--"+function(t){for(var n=[],i=(t=Mi(t)).length,e=128,r=0,o=72,u=0,s=t;u<s.length;u++){var f=s[u];f<128&&n.push(xi(f))}var c=n.length,h=c;for(c&&n.push("-");h<i;){for(var a=Ni,v=0,d=t;v<d.length;v++){var l=d[v];l>=e&&l<a&&(a=l)}var w=h+1;a-e>Ci((Ni-r)/w)&&Bi("overflow"),r+=(a-e)*w,e=a;for(var b=0,g=t;b<g.length;b++){var m=g[b];if(m<e&&++r>Ni&&Bi("overflow"),m==e){for(var p=r,y=36;;y+=36){var _=y<=o?1:y>=o+26?26:y-o;if(p<_)break;var S=p-_,T=36-_;n.push(xi(zi(_+S%T,0))),p=Ci(S/T)}n.push(xi(zi(p,0))),o=Wi(r,w,h==c),r=0,++h}}++r,++e}return n.join("")}(t):t}))};function Vi(t){for(var n=[],i=0;i<t.length;i++){var e=t[i];e>65535&&(e-=65536,n.push(e>>>10&1023|55296),e=56320|1023&e),n.push(e)}return Oi(n)}function qi(t){if(t>=55296&&t<=57343)throw new g("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function Xi(t,n){return t>>n&63|128}function ji(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(qi(t),n.push(t>>12&15|224),n.push(Xi(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(Xi(t,12)),n.push(Xi(t,6))),n.push(63&t|128)):n.push(t)}function Yi(t){for(var n=[],i=0;i<t.length;i++){ji(t[i],n)}return n}function Ki(){if(Fi>=Ui)throw new g("Invalid byte index");var t=255&Li[Fi];if(Fi++,128==(192&t))return 63&t;throw new g("Invalid continuation byte")}function Gi(){var t,n;if(Fi>Ui)throw new g("Invalid byte index");if(Fi===Ui)return!1;if(t=255&Li[Fi],Fi++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|Ki())>=128)return n;throw new g("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|Ki()<<6|Ki())>=2048)return qi(n),n;throw new g("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|Ki()<<12|Ki()<<6|Ki())>=65536&&n<=1114111)return n;throw new g("Invalid UTF-8 detected")}function $i(t){return[37,Ei(t>>4),Ei(15&t)]}function Zi(t){return function(t){return t>=0&&t<=31}(t)||t>126}function Ji(t){return Zi(t)||32===t||34===t||60===t||62===t||96===t}function Qi(t){return Ji(t)||35===t||63===t||123===t||125===t}function te(t){return Qi(t)||47===t||58===t||59===t||61===t||64===t||t>=91&&t<=94||124===t}function ne(t){return t<33||t>126||34===t||35===t||60===t||62===t}function ie(t){return ne(t)||39===t}function ee(t,n){if(!n(t))return[t];for(var i=Yi([t]),e=[],r=0;r<i.length;r++){var o=i[r];e.push.apply(e,$i(o))}return e}function re(t,n){for(var i=[],e=0,r=Mi(t);e<r.length;e++){var o=r[e];i.push.apply(i,ee(o,n))}return Vi(i)}function oe(t){return function(t){for(var n=[],i=t.length,e=0;e<i;e++){var r=t[e];if(37===r&&e+2<i&&_i(t[e+1])&&_i(t[e+2])){var o=Ti(t[e+1])<<4|Ti(t[e+2]);n.push(o),e+=2}else n.push(r)}return n}(Yi(t))}function ue(t){return Vi(function(t){Li=t.slice(),Ui=Li.length,Fi=0;for(var n,i=[];!1!==(n=Gi());)i.push(n);return i}(oe(Mi(t))))}function se(t){var n=t.length,i=[0,0,0,0,0,0,0,0],e=0,r=null,o=0;if(o<n&&":"===t[o]){if(!(o+1<n&&":"===t[o+1]))throw new m;o+=2,r=e+=1}for(;o<n;){if(8===e)throw new m("Too many groups");if(":"!==t[o]){for(var u=0,s=0;s<4&&o<n&&si.test(t[o]);)u=u<<4|_(t[o],16),o+=1,s+=1;if("."===t[o]){if(0===s)throw new m;if(o-=s,e>6)throw new m;for(var f=0;o<n;){var c=null;if(f>0){if(!("."===t[o]&&f<4))throw new m;o+=1}if(!ui.test(t[o]))throw new m;for(;o<n&&ui.test(t[o]);){var h=_(t[o],10);if(null===c)c=h;else{if(0===c)throw new m;if((c=10*c+h)>255)throw new m}o+=1}i[e]=i[e]<<8|c,2!==(f+=1)&&4!==f||(e+=1)}if(4!==f)throw new m;break}if(":"===t[o]){if((o+=1)===n)throw new m}else if(o<n)throw new m;i[e]=u,e+=1}else{if(null!==r)throw new m("Too many :: groups");o+=1,r=e+=1}}if(null!==r){var a=e-r;for(e=7;0!==e&&a>0;)bi(i,e,r+a-1),e-=1,a-=1}else if(8!==e)throw new m;return i}function fe(t){var n=10,i=ci;return fi.test(t)?(t=t.slice(2),n=16,i=hi):t.length>=2&&"0"===t[0]&&(t=t.slice(1),n=8,i=ai),""===t?0:i.test(t)?_(t,n):void 0}var ce={Sp:4},he=/[\0\t\n\r #%/:?@\[\\\]]/,ae=/[\0\t\n\r #/:?@\[\\\]]/;function ve(t,n){if("["===t[0]){if("]"!==t[t.length-1])throw new m("Invalid IPv6 address");return{Sp:2,Tp:se(t.slice(1,-1))}}if(!n)return function(t){if(ae.test(t))throw new m("Invalid code point in opaque host");var n=re(t,Zi);return""===n?ce:{Sp:3,kp:n}}(t);var i=function(t){var n=function(t){return Hi(t.toLowerCase())}(t);return n}(ue(t));if(he.test(i))throw new m("Invalid code point in host");var e=function(t){var n=t.split(".");if(""===n[n.length-1]&&n.pop(),!(n.length>4)){for(var i=[],e=0;e<n.length;e++){var r=n[e];if(""===r)return;var o=fe(r);if(void 0===o)return;i.push(o)}for(var u=0;u<i.length-1;u++)if(i[u]>255)throw new m;if(i[i.length-1]>=y.pow(256,5-i.length))throw new m;for(var s=i.pop(),f=0;f<i.length;f++)s+=i[f]*y.pow(256,3-f);return s}}(i);return void 0!==e?{Sp:1,Tp:e}:""===i?ce:{Sp:0,Ep:i}}function de(t){switch(t.Sp){case 0:return t.Ep;case 1:return function(t){for(var n=[],i=t,e=1;e<=4;e++)n.push(""+(255&i)),4!==e&&n.push("."),i>>>=8;return n.reverse().join("")}(t.Tp);case 2:return"["+function(t){for(var n="",i=function(t){for(var n=0,i=0,e=0,r=0,o=0;o<8;o++)0===t[o]?(0===r&&(e=o),r++):(r>i&&(n=e,i=r),r=0);return r>i&&(n=e,i=r),i>1?n:null}(t),e=!1,r=0;r<8;r++){if(e){if(0===t[r])continue;e=!1}i!==r?(n+=t[r].toString(16),7!==r&&(n+=":")):(n+=0===r?"::":":",e=!0)}return n}(t.Tp)+"]";case 3:return t.kp;case 4:return""}}var le=/\+/g;function we(t){return 42===t||45===t||46===t||95===t||yi(t)}function be(t){for(var n=t.split("&"),i=[],e=0;e<n.length;e++){var r=n[e];if(""!==r){var o=r.indexOf("="),u=void 0,s=void 0;-1!==o?(u=r.slice(0,o),s=r.slice(o+1)):(u=r,s=""),u=u.replace(le," "),s=s.replace(le," ");var f=ue(u),c=ue(s);i.push([f,c])}}return i}function ge(t){for(var n="",i=0;i<t.length;i++){var e=t[i];i>0&&(n+="&"),n+=me(Yi(Mi(e[0])))+"="+me(Yi(Mi(e[1])))}return n}function me(t){for(var n=[],i=0;i<t.length;i++){var e=t[i];32===e?n.push(43):we(e)?n.push(e):n.push.apply(n,$i(e))}return Oi(n)}var pe=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function ye(t){var n=""+t,i=pe.exec(n);return i?function(t,n){for(var i=t.length,e=[],r=n;r<i;r++){var o=t.charCodeAt(r);if(Se(o))if(Te(o)||r===i-1)e.push(_e);else{var u=t.charCodeAt(r+1);Te(u)?(e.push(o,u),r++):e.push(_e)}else e.push(o)}return t.slice(0,n)+Oi(e)}(n,i.index):n}var _e=65533,Se=function(t){return 55296==(63488&t)},Te=function(t){return 0!=(1024&t)};function Ee(t,n){var i=t[0],e=n[0];return i===e?0:i<e?-1:1}function ke(t){t.D_.length=0}function Ie(t,n){!function(t,n){for(var i=0;i<n.length;i++)t[i]=n[i];t.length=n.length}(t.D_,be(n))}function Re(t){if(t.ic){var n=ge(t.D_);""===n&&(n=null),t.ic.ic.xp=n}}var Oe=function(){function t(t){if(void 0===t&&(t=void 0),this.ic=null,null==t)this.D_=[];else if("object"==typeof t||"function"==typeof t)if(function(t){return t instanceof Oe&&!!di(t.D_)&&(!li||t[e]===Ne)}(t))this.D_=t.D_.slice();else if(function(t){return null!=t&&(!!di(t)||!!li&&"function"==typeof t[e])}(t)){this.D_=[];for(var n=0,i=wi(t);n<i.length;n++){var r=wi(i[n]);if(2!==r.length)throw new m("Invalid name-value pair");this.D_.push([ye(r[0]),ye(r[1])])}}else for(var o in this.D_=[],t)p.prototype.hasOwnProperty.call(t,o)&&this.D_.push([ye(o),ye(t[o])]);else(t=ye(t)).length>0&&"?"===t[0]&&(t=t.slice(1)),this.D_=be(t)}var n=t.prototype;return n.append=function(t,n){t=ye(t),n=ye(n),this.D_.push([t,n]),Re(this)},n.delete=function(t){t=ye(t);for(var n=this.D_,i=0;i<n.length;){n[i][0]===t?n.splice(i,1):i++}Re(this)},n.get=function(t){t=ye(t);for(var n=this.D_,i=0;i<n.length;i++){var e=n[i];if(e[0]===t)return e[1]}return null},n.getAll=function(t){t=ye(t);for(var n=this.D_,i=[],e=0;e<n.length;e++){var r=n[e];r[0]===t&&i.push(r[1])}return i},n.has=function(t){t=ye(t);for(var n=this.D_,i=0;i<n.length;i++){if(n[i][0]===t)return!0}return!1},n.set=function(t,n){t=ye(t),n=ye(n);for(var i=this.D_,e=!1,r=0;r<i.length;){var o=i[r];o[0]===t?e?i.splice(r,1):(o[1]=n,e=!0,r++):r++}e||i.push([t,n]),Re(this)},n.sort=function(){ei(this.D_,Ee),Re(this)},n.toString=function(){return ge(this.D_)},n.entries=function(){return new Ce(this.D_,Pe)},n.keys=function(){return new Ce(this.D_,Ae)},n.values=function(){return new Ce(this.D_,De)},n.forEach=function(t){var n=this;this.D_.forEach((function(i){return t(i[1],i[0],n)}))},t}(),Ne=Oe.prototype.entries;li&&(Oe.prototype[e]=Ne);var Pe=function(t){return[t[0],t[1]]},Ae=function(t){return t[0]},De=function(t){return t[1]},Ce=function(){function t(t,n){this.Rp=0,this.D_=t,this.Ip=n}return t.prototype.next=function(){return this.Rp<this.D_.length?{done:!1,value:this.Ip(this.D_[this.Rp++])}:{done:!0,value:void 0}},t}(),xe="null";var Be=p.create(null);Be.ftp=21,Be.file=0,Be.gopher=70,Be.http=80,Be.https=443,Be.ws=80,Be.wss=443;var Me=/^(?:\.|%2e)$/i,Le=/^(?:\.|%2e){2}$/i;function Ue(t){return Me.test(t)}function Fe(t){return Le.test(t)}function ze(t){return void 0!==Be[t]}function We(t){return ze(t.Cp)}function He(t){return""!==t.Pp||""!==t.Dp}function Ve(t){var n=t.length;if(!(n>=2))return!1;if(!Xe(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 qe(t){return 2===t.length&&oi.test(t[0])&&(":"===t[1]||"|"===t[1])}function Xe(t){return 2===t.length&&qe(Oi(t))}function je(t){return qe(t)&&":"===t[1]}function Ye(t){var n=t.Np;0!==n.length&&("file"===t.Cp&&1===n.length&&je(n[0])||n.pop())}function Ke(t){return null===t.Mp||ce===t.Mp||t.Lp||"file"===t.Cp}var Ge=-1,$e=/\t|\n|\r/g,Ze=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function Je(t,n,i,e){void 0===i&&(i=null),void 0===e&&(e=null),i||(i=new tr,t=t.replace(Ze,""));var r=null!==e?e:0;n=n||null;for(var o=[],u=!1,s=!1,f=!1,c=Mi(t=t.replace($e,"")),h=c.length,a=0;a<=h;){var v=a<h?c[a]:Ge;switch(r){case 0:if(!mi(v)){if(null===e){o.length=0,r=2;continue}throw new m("Invalid scheme")}o.push(Si(v)),r=1;break;case 1:if(yi(v)||43===v||45===v||46===v)o.push(Si(v));else{if(58!==v){if(null===e){o.length=0,r=2,a=0;continue}throw new m("Invalid scheme")}var d=Vi(o);if(null!==e){if(ze(i.Cp)&&!ze(d))return;if(!ze(i.Cp)&&ze(d))return;if((He(i)||null!==i.Bp)&&"file"===d)return;if("file"===i.Cp&&(i.Mp===ce||null===i.Mp))return}if(i.Cp=d,null!==e)return void(We(i)&&i.Bp===Be[i.Cp]&&(i.Bp=null));o.length=0,"file"===i.Cp?r=13:We(i)&&n&&n.Cp===i.Cp?r=3:We(i)?r=7:47===c[a+1]?(r=4,a+=1):(i.Lp=!0,i.Np.push(""),r=18)}break;case 2:if(!n||n.Lp&&35!==v)throw new m("Invalid scheme");n.Lp&&35===v?(i.Cp=n.Cp,i.Np=n.Np.slice(),i.xp=n.xp,i.Op="",i.Lp=!0,r=20):"file"!==n.Cp?(r=5,a-=1):(r=13,a-=1);break;case 3:47===v&&47===c[a+1]?r=8:(r=5,a-=1);break;case 4:47===v?r=9:(r=17,a-=1);break;case 5:i.Cp=n.Cp,Ge===v?(i.Pp=n.Pp,i.Dp=n.Dp,i.Mp=n.Mp,i.Bp=n.Bp,i.Np=n.Np.slice(),i.xp=n.xp):47===v?r=6:63===v?(i.Pp=n.Pp,i.Dp=n.Dp,i.Mp=n.Mp,i.Bp=n.Bp,i.Np=n.Np.slice(),i.xp="",r=19):35===v?(i.Pp=n.Pp,i.Dp=n.Dp,i.Mp=n.Mp,i.Bp=n.Bp,i.Np=n.Np.slice(),i.xp=n.xp,i.Op="",r=20):92===v&&We(i)?r=6:(i.Pp=n.Pp,i.Dp=n.Dp,i.Mp=n.Mp,i.Bp=n.Bp,i.Np=n.Np.slice(),i.Np.pop(),r=17,a-=1);break;case 6:!We(i)||47!==v&&92!==v?47===v?r=9:(i.Pp=n.Pp,i.Dp=n.Dp,i.Mp=n.Mp,i.Bp=n.Bp,r=17,a-=1):r=8;break;case 7:if(47!==v||47!==c[a+1]){r=8;continue}r=8,a+=1;break;case 8:47!==v&&92!==v&&(r=9,a-=1);break;case 9:if(64===v){u&&o.unshift(37,52,48),u=!0;for(var l=0;l<o.length;l++){var w=o[l];if(58!==w||f){var b=Vi(ee(w,te));f?i.Dp+=b:i.Pp+=b}else f=!0}o.length=0}else if(Ge===v||47===v||63===v||35===v||We(i)&&92===v){if(u&&0===o.length)throw new m("Invalid host");a-=o.length+1,o.length=0,r=10}else o.push(v);break;case 10:case 11:if(null!==e&&"file"===i.Cp)a-=1,r=15;else if(58!==v||s)if(Ge===v||47===v||63===v||35===v||We(i)&&92===v){if(a-=1,We(i)&&0===o.length)throw new m("Invalid host");if(null!==e&&0===o.length&&(He(i)||null!==i.Bp))return;var g=ve(Vi(o),We(i));if(i.Mp=g,o.length=0,r=16,null!==e)return}else 91===v?s=!0:93===v&&(s=!1),o.push(v);else{if(0===o.length)throw new m("Invalid host");var p=ve(Vi(o),We(i));if(i.Mp=p,o.length=0,r=12,11===e)return}break;case 12:if(pi(v))o.push(v);else{if(!(Ge===v||47===v||63===v||35===v||We(i)&&92===v||null!==e))throw new m("Invalid port");if(0!==o.length){var y=_(Vi(o),10);if(y>65535)throw new m("Invalid port");i.Bp=y===Be[i.Cp]?null:y,o.length=0}if(null!==e)return;r=16,a-=1}break;case 13:i.Cp="file",47===v||92===v?r=14:n&&"file"===n.Cp?Ge===v?(i.Mp=n.Mp,i.Np=n.Np.slice(),i.xp=n.xp):63===v?(i.Mp=n.Mp,i.Np=n.Np.slice(),i.xp="",r=19):35===v?(i.Mp=n.Mp,i.Np=n.Np.slice(),i.xp=n.xp,i.Op="",r=20):(Ve(c.slice(a))||(i.Mp=n.Mp,i.Np=n.Np.slice(),Ye(i)),r=17,a-=1):(r=17,a-=1);break;case 14:47===v||92===v?r=15:(n&&"file"===n.Cp&&!Ve(c.slice(a))&&(je(n.Np[0])?i.Np.push(n.Np[0]):i.Mp=n.Mp),r=17,a-=1);break;case 15:if(Ge===v||47===v||92===v||63===v||35===v)if(a-=1,null===e&&Xe(o))r=17;else if(0===o.length){if(i.Mp=ce,null!==e)return;r=16}else{var S=ve(Vi(o),We(i));if(0===S.Sp&&"localhost"===S.Ep&&(S=ce),i.Mp=S,null!==e)return;o.length=0,r=16}else o.push(v);break;case 16:We(i)?(r=17,47!==v&&92!==v&&(a-=1)):null===e&&63===v?(i.xp="",r=19):null===e&&35===v?(i.Op="",r=20):Ge!==v&&(r=17,47!==v&&(a-=1));break;case 17:if(Ge===v||47===v||We(i)&&92===v||null===e&&(63===v||35===v)){var T=Vi(o);if(Fe(T)?(Ye(i),47===v||We(i)&&92===v||i.Np.push("")):!Ue(T)||47===v||We(i)&&92===v?Ue(T)||("file"===i.Cp&&0===i.Np.length&&Xe(o)&&(ce!==i.Mp&&null!==i.Mp&&(i.Mp=ce),o[1]=58,T=Vi(o)),i.Np.push(T)):i.Np.push(""),o.length=0,"file"===i.Cp&&(Ge===v||63===v||35===v))for(;i.Np.length>1&&""===i.Np[0];)i.Np.shift();63===v?(i.xp="",r=19):35===v&&(i.Op="",r=20)}else o.push.apply(o,ee(v,Qi));break;case 18:63===v?(i.xp="",r=19):35===v?(i.Op="",r=20):Ge!==v&&(i.Np[0]+=Vi(ee(v,Zi)));break;case 19:null===e&&35===v?(i.Op="",r=20):Ge!==v&&(i.xp+=Vi(ee(v,We(i)?ie:ne)));break;case 20:Ge===v||0===v||(i.Op+=Vi(ee(v,Ji)))}a++}return i}function Qe(t,n,i,e){try{Je(t,n,i,e)}catch(t){}}var tr=function(){this.Cp="",this.Pp="",this.Dp="",this.Mp=null,this.Bp=null,this.Np=[],this.xp=null,this.Op=null,this.Lp=!1};function nr(t){switch(t.Cp){case"blob":var n;try{n=Je(t.Np[0],null)}catch(t){return xe}return nr(n);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(t,n,i){return t+"://"+de(n)+(null===i?"":":"+i)}(t.Cp,t.Mp,t.Bp);default:return xe}}var ir=function(){function t(t,n){var i,e=null;if(null!=n)if(function(t){return null!=t&&t instanceof ir&&"object"==typeof t.ic}(n))e=n.ic;else try{e=Je(String(n),null)}catch(t){throw new m("Invalid base URL: "+t.message)}try{i=Je(String(t),e)}catch(t){throw new m("Invalid URL: "+t.message)}var r=i.xp;this.ic=i,this.xp=function(t){var n=new Oe;return null!==t&&Ie(n,t),n}(r),this.xp.ic=this}var n=t.prototype;return n.toString=function(){return this.href},n.toJSON=function(){return this.href},function(t,n,i){n&&ii(t.prototype,n),i&&ii(t,i)}(t,[{key:"href",get:function(){return function(t,n){void 0===n&&(n=!1);var i=t.Cp+":";if(null!==t.Mp?(i+="//",He(t)&&(i+=t.Pp,""!==t.Dp&&(i+=":"+t.Dp),i+="@"),i+=de(t.Mp),null!==t.Bp&&(i+=":"+t.Bp)):null===t.Mp&&"file"===t.Cp&&(i+="//"),t.Lp)i+=t.Np[0];else for(var e=0,r=t.Np;e<r.length;e++)i+="/"+r[e];return null!==t.xp&&(i+="?"+t.xp),n||null===t.Op||(i+="#"+t.Op),i}(this.ic)},set:function(t){var n;try{n=Je(String(t),null)}catch(t){throw new m("Invalid URL: "+t.message)}this.ic=n,ke(this.xp);var i=this.ic.xp;null!==i&&Ie(this.xp,i)}},{key:"origin",get:function(){return nr(this.ic)}},{key:"protocol",get:function(){return this.ic.Cp+":"},set:function(t){Qe(t+":",null,this.ic,0)}},{key:"username",get:function(){return this.ic.Pp},set:function(t){Ke(this.ic)||(this.ic.Pp=re(t,te))}},{key:"password",get:function(){return this.ic.Dp},set:function(t){Ke(this.ic)||(this.ic.Dp=re(t,te))}},{key:"host",get:function(){var t=this.ic,n=t.Mp;if(null===n)return"";var i=t.Bp,e=de(n);return null!==i&&(e+=":"+i),e},set:function(t){this.ic.Lp||Qe(t,null,this.ic,10)}},{key:"hostname",get:function(){var t=this.ic.Mp;return null===t?"":de(t)},set:function(t){this.ic.Lp||Qe(t,null,this.ic,11)}},{key:"port",get:function(){var t=this.ic.Bp;return null===t?"":""+t},set:function(t){Ke(this.ic)||(""===t?this.ic.Bp=null:Qe(t,null,this.ic,12))}},{key:"pathname",get:function(){var t=this.ic.Np;return this.ic.Lp?t[0]:0===t.length?"":"/"+t.join("/")},set:function(t){this.ic.Lp||(this.ic.Np.length=0,Qe(t,null,this.ic,16))}},{key:"search",get:function(){var t=this.ic.xp;return null===t||""===t?"":"?"+t},set:function(t){t=ye(t);var n=this.ic;if(""===t)return n.xp=null,void ke(this.xp);"?"===t[0]&&(t=t.slice(1)),n.xp="",Qe(t,null,n,19),Ie(this.xp,t)}},{key:"searchParams",get:function(){return this.xp}},{key:"hash",get:function(){var t=this.ic.Op;return null===t||""===t?"":"#"+t},set:function(t){""!==t?("#"===t[0]&&(t=t.slice(1)),this.ic.Op="",Qe(t,null,this.ic,20)):this.ic.Op=null}}]),t}();function er(t){return t.document&&t.document.baseURI||t.location.href||""}x(),gt();var rr=function(){function t(){this.$p=new or,this.nw=Bn,this.iw=ur(),self.performance&&self.performance.now?this.Wg=function(){return self.performance.now()}:this.Wg=kn}var n=t.prototype;return n.Fp=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];Jn.apply(void 0,jn(n))},n.Vp=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];Qn.apply(void 0,jn(n))},n.Wp=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];ti.apply(void 0,jn(n))},n.Up=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),e=1;e<n;e++)i[e-1]=arguments[e];ni.apply(void 0,[t].concat(jn(i)))},n.Gg=function(t,n){return d(t,n)},n.Gp=function(t,n){return w(t,n)},n.Ug=function(t){l(t)},n.Hp=function(t){b(t)},n.Zp=function(){return this.Xp.Zp()},n.zp=function(){return this.Xp.zp()},n.qp=function(){return this.Xp.qp()},n.Yp=function(){return this.Xp.Yp()},n.Kp=function(){return this.Xp.Kp()},n.jp=function(t,n){return this.Xp.jp(t,n)},n.Qp=function(t){return this.Xp.Qp(t)},n.Ih=function(t,n){var i;return void 0===n&&(n=er(h)),i="object"!==(void 0===n?"undefined":B(n))||n instanceof ir?n:n.href,new ir(t,i)},n.ew=function(t,n){if(void 0===n&&(n=er(h)),this.iw){var i=function(t){return"string"==typeof t}(n)?n:n.toString();return new self.URL(t,i).href}return this.Ih(t,n).href},Tt(t,[{key:"Jp",get:function(){return this.$p}},{key:"Ys",get:function(){return this.nw}},{key:"ow",get:function(){return{hw:v&&v.userAgent.match(/Android /i)?"Android":"other",aw:Boolean(v&&v.userAgent.match(/Android 8.0.0/i))}}},{key:"uw",get:function(){return self&&self.location&&"https:"===self.location.protocol}},{key:"cw",get:function(){return"languages"in v?v.languages.slice():[v.language]}}]),t}(),or=function(){function t(){}return Tt(t,[{key:"lw",get:function(){return v.oscpu}},{key:"Ys",get:function(){return v.platform}},{key:"dw",get:function(){return v.vendor}},{key:"fw",get:function(){return v.vendorSub}}]),t}();function ur(){if(self.URL)try{var t=new self.URL("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href}catch(t){}return!1}x(),gt();var sr=function(){function t(){}var n=t.prototype;return n.Kp=function(){return J.resolve(!1)},n.zp=function(){return J.resolve(!1)},n.Yp=function(){return J.resolve(!1)},n.qp=function(){return J.resolve(!1)},n.Qp=function(t){return J.resolve(!1)},n.jp=function(t,n){return J.resolve(!1)},n.Zp=function(){return J.resolve(!1)},t}();x(),gt();var fr=function(){function t(){}var n=t.prototype;return n.wk=function(){},n.Fb=function(t){},n.Lb=function(t){},n.Bb=function(t,n){},t}();x(),gt();var cr="default",hr="unknown";x(),gt(),x(),gt(),x(),gt();var ar=function(t){return t.bk="arraybuffer",t.Ak="json",t.Sk="stream",t.Tk="text",t}({});function vr(t,i){return function(t){if(Array.isArray(t))return t}(t)||function(t,i){var r=null==t?null:void 0!==n&&t[e]||t["@@iterator"];if(null!=r){var o,u,s=[],f=!0,c=!1;try{for(r=r.call(t);!(f=(o=r.next()).done)&&(s.push(o.value),!i||s.length!==i);f=!0);}catch(t){c=!0,u=t}finally{try{f||null==r.return||r.return()}finally{if(c)throw u}}return s}}(t,i)||Xn(t,i)||function(){throw new m("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt();var dr=function(){function t(n){var i=this;this.P_={},n instanceof t?n.asList().forEach((function(t){var n=vr(t,2),e=n[0],r=n[1];i.append(e,r)})):Array.isArray(n)?n.forEach((function(t){var n=vr(t,2),e=n[0],r=n[1];i.append(e,r)})):n&&p.getOwnPropertyNames(n).forEach((function(t){i.append(t,n[t])}))}var n=t.prototype;return n.append=function(t,n){var i=t,e=n;i=lr(i),e=wr(e);var r=i.toLowerCase();if(this.P_.hasOwnProperty(r)){var o=this.P_[r],u=o[1];o[1]=u?u+", "+e:e}else this.P_[r]=[i,e]},n.delete=function(t){var n=lr(t).toLowerCase();delete this.P_[n]},n.get=function(t){var n=lr(t).toLowerCase();return this.P_.hasOwnProperty(n)?this.P_[n][1]:null},n.has=function(t){var n=lr(t).toLowerCase();return this.P_.hasOwnProperty(n)},n.set=function(t,n){var i=t,e=(i=lr(i)).toLowerCase();this.P_[e]=[i,wr(n)]},n.forEach=function(t,n){for(var i in this.P_)this.P_.hasOwnProperty(i)&&t.call(n,this.P_[i][1],i,this)},n.asList=function(){var t=[];for(var n in this.P_)if(this.P_.hasOwnProperty(n)){var i=vr(this.P_[n],2),e=i[0],r=i[1];t.push([e,r])}return t},n.Ek=function(){var t={};return this.forEach((function(n,i){t[i]=n})),t},n.xk=function(t){var n=this;t.forEach((function(t,i){n.append(i,t)}))},n.Rk=function(t){var n=this;t.forEach((function(t,i){n.set(i,t)}))},t}();function lr(t){var n=t;if("string"!=typeof n&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(n))throw new m("Invalid character in header field name");return n}function wr(t){var n=t;return"string"!=typeof n&&(n=String(n)),n}function br(t,n,i,e,r,o,u){try{var s=t[o](u),f=s.value}catch(t){return void i(t)}s.done?n(f):J.resolve(f).then(e,r)}function gr(t){return function(){var n=this,i=arguments;return new J((function(e,r){var o=t.apply(n,i);function u(t){br(o,e,r,u,s,"next",t)}function s(t){br(o,e,r,u,s,"throw",t)}u(void 0)}))}}function mr(t,i){var r,o,u,s={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},f=p.create(("function"==typeof Iterator?Iterator:p).prototype);return f.next=c(0),f.throw=c(1),f.return=c(2),"function"==typeof n&&(f[e]=function(){return this}),f;function c(n){return function(e){return function(n){if(r)throw new m("Generator is already executing.");for(;f&&(f=0,n[0]&&(s=0)),s;)try{if(r=1,o&&(u=2&n[0]?o.return:n[0]?o.throw||((u=o.return)&&u.call(o),0):o.next)&&!(u=u.call(o,n[1])).done)return u;switch(o=0,u&&(n=[2&n[0],u.value]),n[0]){case 0:case 1:u=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,o=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!(u=s.trys,(u=u.length>0&&u[u.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!u||n[1]>u[0]&&n[1]<u[3])){s.label=n[1];break}if(6===n[0]&&s.label<u[1]){s.label=u[1],u=n;break}if(u&&s.label<u[2]){s.label=u[2],s.ops.push(n);break}u[2]&&s.ops.pop(),s.trys.pop();continue}n=i.call(t,s)}catch(t){n=[6,t],o=0}finally{r=u=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,e])}}}x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt();var pr="function"==typeof SuppressedError?SuppressedError:function(t,n,i){var e=new g(i);return e.name="SuppressedError",e.error=t,e.suppressed=n,e};x(),gt(),x(),gt();Array.prototype.find,Array.prototype.findLast;var yr="function"==typeof Array.prototype.findIndex?function(t,n){return t.findIndex(n)}:function(t,n){for(var i=0;i<t.length;i+=1){if(n(t[i],i,t))return i}return-1},_r="function"==typeof Array.prototype.findLastIndex?function(t,n){return t.findLastIndex(n)}:function(t,n){for(var i=t.length-1;i>=0;i-=1){if(n(t[i],i,t))return i}return-1};function Sr(t,n){var i=t.indexOf(n);return-1!==i&&(function(t,n){0===n?t.shift():t.splice(n,1)}(t,i),!0)}function Tr(t,n){for(var i=new Array(t.length),e=0,r=0;r<t.length;){if(t[r]===n){r++,i.length-=1;break}i[e++]=t[r++]}for(;r<t.length;)i[e++]=t[r++];return i}function Er(t,n){return-1!==t.indexOf(n)}function kr(t){t.length=0}Array.prototype.flat,Array.prototype.flatMap;var Ir=function(){function t(){this.Fw=!1,this.Hw=!1,this.Zw=[],this.zw=[]}var n=t.prototype;return n.Gw=function(){if(!this.Fw&&!this.Hw){this.Fw=!0;for(var t=0,n=this.Zw.slice();t<n.length;t++){(0,n[t])()}this.Xw()}},n.Xw=function(){if(!this.Hw){this.Hw=!0;for(var t=0,n=this.zw.slice();t<n.length;t++){(0,n[t])()}kr(this.Zw),kr(this.zw)}},n.Ww=function(t){this.Hw||this.Zw.push(t)},n.Vw=function(t){this.Hw||Sr(this.Zw,t)},n.qw=function(t){this.Hw||this.zw.push(t)},n.Yw=function(t){this.Hw||Sr(this.zw,t)},t}(),Rr=function(){function t(){this.Kw=new Ir}var n=t.prototype;return n.jw=function(){this.Kw.Gw()},n.Xw=function(){this.Kw.Xw()},n.Qw=function(t){var n=this.Kw;if(!n.Fw)if(t.Fw)n.Gw();else if(!n.Hw&&!t.Hw){var i=function(){e(),n.Gw()},e=function(){t.Vw(i),t.Yw(e),n.Vw(i),n.Yw(e)};t.Ww(i),t.qw(e),n.Ww(i),n.qw(e)}},n.Jw=function(){var n=new t,i=new t,e=n.Uw,r=i.Uw,o=this.Kw,u=function(){e.Fw&&r.Hw||r.Fw&&e.Hw?o.Gw():e.Hw&&r.Hw&&o.Xw()};e.Ww(u),r.Ww(u),e.qw(u),r.qw(u),n.Qw(o),i.Qw(o);return o.qw((function(){e.Vw(u),r.Vw(u),e.Yw(u),r.Yw(u)})),[n,i]},n[r]=function(){this.jw()},t.$w=function(n){for(var i=new t,e=0;e<n.length;e++){var r=n[e];void 0!==r&&i.Qw(r)}return i},Tt(t,[{key:"Uw",get:function(){return this.Kw}}]),t}(),Or=function(t){return t.DELETE="DELETE",t.GET="GET",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t.POST="POST",t.PUT="PUT",t}({}),Nr=function(t){return t.pE="same-origin",t.wE="no-cors",t.yE="cors",t.bE="navigate",t}({}),Pr=function(t,n){var i,e,r,o,u,s,f,c,h,a,v,d,l,w,b,g,m,p,y=t.Xu;n?(i=n.Lk,e=n.Jk,r=n.AE,o=n.jk,u=n.SE,s=n.TE,f=n.Uw,c=n.Tw,h=n.kE,a=n.EE,v=n.xE,d=n.RE,l=n.CE,w=n.PE,b=n.DE):(i=null,e={},r="GET",o=ar.Tk,u=0,s=0,c="",h="",a="",v=!1,l=void 0,w=!1,b=void 0),this.Xu=y,this.Lk=t.Lk||i,this.Jk=new dr(t.Jk||e),this.AE=t.AE||r,this.jk=t.jk||o,this.SE=void 0!==t.SE?Number(t.SE)||0:u,this.TE=void 0!==t.TE?Number(t.TE)||0:s,this.Uw=t.Uw||f||(new Rr).Uw,this.Tw=t.Tw||c,this.kE=t.kE||h,this.EE=t.EE||a,this.xE=void 0!==t.xE?Boolean(t.xE):v,this.RE=t.RE||d,this.CE=null!=(g=t.CE)?g:l,this.PE=null!=(m=t.PE)?m:w,this.DE=null!=(p=t.DE)?p:b};x(),gt(),x(),gt(),x(),gt();var Ar=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];g.apply(this,n)};(Ar.prototype=p.create(g.prototype)).constructor=Ar;var Dr=function(t){function n(n,i){var e;return(e=t.call(this)||this).message=n||"Unknown error",e.cause=i,g.captureStackTrace&&g.captureStackTrace(e,e.constructor),e}return _t(n,t),Tt(n,[{key:"name",get:function(){return"BaseError"}}]),n}(Ar),Cr=function(t){return t.GE="HttpOpenError",t.HE="HttpResponseError",t.ZE="HttpTimeoutError",t}({}),xr=function(t){function n(n,i,e){var r;return(r=t.call(this,i,e)||this).XE=n,r}return _t(n,t),Tt(n,[{key:"Qk",get:function(){return this.XE}}]),n}(Dr);var Br=function(t){function n(n,i){return t.call(this,n,function(t){return"Error while opening "+t+". Invalid URL."}(n.Xu),i)||this}return _t(n,t),Tt(n,[{key:"name",get:function(){return Cr.GE}}]),n}(xr),Mr=function(){function t(){}var n=t.prototype;return n.Qk=function(t){return J.reject(new Br(new Pr(t)))},n.NE=function(t){},n.yn=function(){},t}();x(),gt();var Lr=function(t){function n(n){return t.call(this,"Invalid XML",n)||this}return _t(n,t),n}(Dr),Ur=function(t){function n(){var n;return(n=t.apply(this,arguments)||this).tR=new sr,n.fW=new Mr,n.i=new fr,n}return _t(n,t),n.prototype.Ix=function(t){throw new Lr},Tt(n,[{key:"Xp",get:function(){return this.tR}},{key:"eR",get:function(){return!1}},{key:"sR",get:function(){return!1}},{key:"hR",get:function(){return!1}},{key:"rR",get:function(){return!1}},{key:"aR",get:function(){return this.i}},{key:"uR",get:function(){return{cR:Yt}}},{key:"lR",get:function(){return cr}},{key:"dR",get:function(){return hr}},{key:"fR",get:function(){return this.fW}}]),n}(rr);function Fr(){return Fr=p.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var e in i)p.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])}return t},Fr.apply(this,arguments)}function zr(){var t=p.create(null);return t._w=void 0,delete t._w,t}function Wr(){return new Vr}jt(new Ur),x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt();var Hr="undefined"!=typeof Map&&"entries"in Map.prototype?Map:void 0,Vr=Hr||function(){var t=function(){function t(t,n){this.index=0,this.data=t,this.selector=n,this.keys=p.keys(t)}return t.prototype.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}();return function(){function n(){this.data=zr(),this.size=0}var i=n.prototype;return i.get=function(t){return this.data[t]},i.set=function(t,n){return this.has(t)||this.size++,this.data[t]=n,this},i.has=function(t){return t in this.data},i.delete=function(t){return!!this.has(t)&&(this.size--,delete this.data[t],!0)},i.clear=function(){this.data=zr(),this.size=0},i.keys=function(){return new t(this.data,(function(t,n){return n}))},i.values=function(){return new t(this.data,(function(t,n){return t[n]}))},i.entries=function(){return new t(this.data,(function(t,n){return[n,t[n]]}))},i.forEach=function(t){for(var n in this.data)t(this.data[n],n)},n}()}();Hr||function(){var t=function(){function t(t,n){this.mw=t,this.gw=n}return t.prototype.next=function(){var t=this.mw.next();return t.done?t:{value:this.gw(t.value),done:!1}},t}();(function(){function n(){this.P_=Wr()}var i=n.prototype;i.get=function(t){return this.P_.get(""+t)},i.set=function(t,n){return this.P_.set(""+t,n),this},i.has=function(t){return this.P_.has(""+t)},i.delete=function(t){return this.P_.delete(""+t)},i.clear=function(){this.P_.clear()},i.keys=function(){return new t(this.P_.keys(),(function(t){return Number(t)}))},i.values=function(){return this.P_.values()},i.entries=function(){return new t(this.P_.entries(),(function(t){var n=vr(t,2),i=n[0],e=n[1];return[Number(i),e]}))},i.forEach=function(t){this.P_.forEach((function(n,i){t(n,Number(i))}))},Tt(n,[{key:"size",get:function(){return this.P_.size}}])})()}();x(),gt(),x(),gt();var qr="9a04f079-9840-4286-ab92-e65be0885f95",Xr="urn:uuid:"+qr,jr="com.microsoft.playready",Yr="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",Kr="urn:uuid:"+Yr,Gr="com.widevine.alpha",$r="1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",Zr="urn:uuid:"+$r,Jr="94ce86fb-07ff-4f43-adb8-93d2fa968ca2",Qr="urn:uuid:"+Jr,to="com.apple.fps.1_0";x(),gt();var no=function(t){return t.pw="playready",t.ww="widevine",t.Aw="fairplay",t.yw="clearkey",t.Sw="aes128",t}({}),io={Tw:no.pw,Ew:jr,xw:"cenc",Rw:qr,Iw:Xr,Cw:"PlayReady"},eo={Tw:no.ww,Ew:Gr,xw:"cenc",Rw:Yr,Iw:Kr,Cw:"Widevine"},ro={Tw:no.Aw,Ew:to,xw:"skd",Rw:Jr,Iw:Qr,Cw:"FairPlay"},oo=(no.Aw,{Tw:no.yw,Ew:"org.w3.clearkey",xw:"cenc",Rw:$r,Iw:Zr,Cw:"ClearKey"});x(),gt();String.prototype.replaceAll;var uo="function"==typeof String.prototype.startsWith?function(t,n){return zt(t)&&t.startsWith(n)}:function(t,n){return zt(t)&&t.substr(0,n.length)===n},so=(String.prototype.endsWith,"function"==typeof String.prototype.repeat?function(t,n){return t.repeat(n)}:function(t,n){var i=0|n;if(0===t.length||0===i)return"";for(var e=t,r="";1==(1&i)&&(r+=e),0!=(i>>>=1);)e+=e;return r}),fo=(String.prototype.padStart,String.prototype.padEnd,16384),co="function"==typeof String.fromCodePoint?function(t){var n;return t.length<=fo?(n=String).fromCodePoint.apply(n,jn(t)):ao(t,String.fromCodePoint)}:function(t){for(var n=[],i=0;i<t.length;i++){var e=t[i];e>65535&&(e-=65536,n.push(e>>>10&1023|55296),e=56320|1023&e),n.push(e)}return ho(n)};function ho(t){var n;return t.length<=fo?(n=String).fromCharCode.apply(n,jn(t)):ao(t,String.fromCharCode)}function ao(t,n){for(var i=[],e=0;e<t.length;e+=fo)i.push(n.apply(void 0,jn(t.slice(e,e+fo))));return i.join("")}var vo=Ut.pm&&Ut.ym>=42||Ut.jm&&Ut.Jm>=38||Ut.Gm||Ut.zm||Ut.ag&&Ut.dg>=29;function lo(t,n){return function(t,n){return zt(t)&&-1!==t.indexOf(n)}(t,"audio")?{initDataTypes:["cenc"],audioCapabilities:[Fr({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]}:{initDataTypes:["cenc"],videoCapabilities:[Fr({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]}}var wo=function(){function t(t){this.Pw=Wr(),this.Mw=void 0,this.Nw=t}var n=t.prototype;return n.Kp=function(){return this.Qp(eo)},n.zp=function(){return this.Qp(oo)},n.Yp=function(){return this.Qp(io)},n.qp=function(){return this.Qp(ro)},n.Qp=function(t){var n=t.Iw,i=this.Pw.get(n);if(i)return i;var e=this.jp(t,'video/mp4; codecs="avc1.42000a"');return this.Pw.set(n,e),e},n.jp=function(t,n){var i=this;return gr((function(){return mr(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,7]),[4,i.Nw.Dw(t.Ew,[lo(n,!0)])];case 1:return e.sent(),[2,!0];case 2:e.sent(),e.label=3;case 3:return e.trys.push([3,5,,6]),[4,i.Nw.Dw(t.Ew,[lo(n,!1)])];case 4:return e.sent(),[2,!0];case 5:return e.sent(),[2,!1];case 6:return[3,7];case 7:return[2]}}))}))()},n.Zp=function(){return this.Mw||(this.Mw=this.Lw()),this.Mw},n.Lw=function(){var t=this;return gr((function(){return mr(this,(function(n){switch(n.label){case 0:return"https:"===h.location.protocol?[2,!1]:vo?[4,t.zp()]:[2,!1];case 1:return n.sent()?[2,!1]:[2,!0]}}))}))()},t}();x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt();var bo=function(t){function n(n,i){return t.call(this,n||"Aborted",i)||this}return _t(n,t),Tt(n,[{key:"name",get:function(){return"AbortError"}}]),n}(Dr);function go(t){return t instanceof g&&"AbortError"===t.name}function mo(t,n){return n?new J((function(i,e){if(n.Fw)return t.catch(Yt),e(new bo);var r=function(){n.Vw(r),e(new bo)};n.Ww(r),t.then((function(t){n.Vw(r),i(t)}),(function(t){n.Vw(r),e(t)}))})):t}function po(t,n){return yo.apply(this,arguments)}function yo(){return yo=gr((function(t,n){var i,e;return mr(this,(function(u){switch(u.label){case 0:i={stack:[],error:void 0,hasError:!1},u.label=1;case 1:return u.trys.push([1,3,4,5]),function(t,n,i){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new m("Object expected.");var e,u;if(i){if(!o)throw new m("Symbol.asyncDispose is not defined.");e=n[o]}if(void 0===e){if(!r)throw new m("Symbol.dispose is not defined.");e=n[r],i&&(u=e)}if("function"!=typeof e)throw new m("Object not disposable.");u&&(e=function(){try{u.call(this)}catch(t){return J.reject(t)}}),t.stack.push({value:n,dispose:e,async:i})}else i&&t.stack.push({async:!0});return n}(i,n,!1),[4,t];case 2:return[2,u.sent()];case 3:return e=u.sent(),i.error=e,i.hasError=!0,[3,5];case 4:return function(t){function n(n){t.error=t.hasError?new pr(n,t.error,"An error was suppressed during disposal."):n,t.hasError=!0}var i,e=0;(function r(){for(;i=t.stack.pop();)try{if(!i.async&&1===e)return e=0,t.stack.push(i),J.resolve().then(r);if(i.dispose){var o=i.dispose.call(i.value);if(i.async)return e|=2,J.resolve(o).then(r,(function(t){return n(t),r()}))}else e|=1}catch(t){n(t)}if(1===e)return t.hasError?J.reject(t.error):J.resolve();if(t.hasError)throw t.error})()}(i),[7];case 5:return[2]}}))})),yo.apply(this,arguments)}x(),gt();J.resolve();function _o(t,n){return new J((function(i,e){if(void 0!==n&&n.Fw)e(new bo);else{var r=Wt.Gg((function(){void 0!==n&&n.Vw(o),i()}),t),o=function(){Wt.Ug(r),e(new bo)};void 0!==n&&n.Ww(o)}}))}function So(t,n,i){if("function"==typeof i)i.call(t,n);else for(var e=0;e<i.length;e++){i[e].call(t,n)}}var To=function(){function t(t){var n=this;this.iy=zr(),this.uy=void 0,this.sy=0,this.Ds=function(t){n._o(t)},this.ly=null!=t?t:this}var n=t.prototype;return n.bn=function(t,n){if("function"==typeof n)if("string"==typeof t)this.ey(t,n);else for(var i=0;i<t.length;i++){var e=t[i];this.ey(e,n)}},n.ey=function(t,n){var i=this.iy[t];void 0===i?this.iy[t]=n:"function"==typeof i?this.iy[t]=[i,n]:0===this.sy?i.push(n):this.iy[t]=i.concat(n)},n.oy=function(t){if("function"==typeof t){var n=this.uy;void 0===n?this.uy=t:"function"==typeof n?this.uy=[n,t]:0===this.sy?n.push(t):this.uy=n.concat(t)}},n.Ro=function(){this.iy=zr(),this.uy=void 0},n._o=function(t){this.sy++;var n=this.iy[t.type],i=this.uy;void 0!==n&&So(this.ly,t,n),void 0!==i&&So(this.ly,t,i),this.sy--},n.vn=function(t,n){if("function"==typeof n)if("string"==typeof t)this._y(t,n);else for(var i=0;i<t.length;i++){var e=t[i];this._y(e,n)}},n._y=function(t,n){var i=this.iy[t];void 0!==i&&("function"==typeof i?i===n&&(this.iy[t]=void 0):0===this.sy?Sr(i,n):this.iy[t]=Tr(i,n))},n.vy=function(t){if("string"==typeof t)this.iy[t]=void 0;else for(var n=0;n<t.length;n++){var i=t[n];this.iy[i]=void 0}},n.gy=function(t){var n=this.uy;void 0!==n&&("function"==typeof n?n===t&&(this.uy=void 0):0===this.sy?Sr(n,t):this.uy=Tr(n,t))},n.py=function(t,n){var i=this;return new J((function(e,r){if(n&&n.Fw)return r(new bo);var o=function(t){s(),e(t)},u=function(){s(),r(new bo)},s=function(){i.vn(t,o),n&&n.Vw(u)};i.bn(t,o),n&&n.Ww(u)}))},t}();x(),gt(),x(),gt();var Eo=function(t,n){void 0===n&&(n=new Date),this.type=t,this.date=n};x(),gt();var ko=function(t){return t.wy="yy",t.Ay="Sy",t.Ty="contentprotectionerror",t.Ey="contentprotectionsuccess",t.xy="currentsourcechange",t.Ry="destroy",t.Iy="durationchange",t.Cy="emptied",t.Py="encrypted",t.Dy="ended",t.Ny="My",t.Ly="By",t.Oy="Fy",t.Vy="Wy",t.Uy="loadstart",t.Gy="manifestupdate",t.Hy="nosupportedrepresentationfound",t.Zy="offline",t.Xy="online",t.zy="pause",t.ho="play",t.qy="progress",t.Yy="ratechange",t.Ky="representationchange",t.jy="resize",t.Qy="seeked",t.Jy="seeking",t.$y="segmentnotfound",t.eb="ib",t.sb="ob",t.uo="sourcechange",t.hb="timeupdate",t.ub="volumechange",t.fb="_b",t.vb="mb",t.gb="metricschange",t}({}),Io=["cenc"],Ro=["cbcs","cbcs-1-9"],Oo=function(t){function n(n){var i;return(i=t.call(this,ko.vb)||this).pb=n,i}return _t(n,t),n}(Eo),No=function(t){function n(n,i,e,r){var o;return(o=t.call(this,"wb")||this).yb=n,o.bb=i,o.wb=e,o.Ab=r,o}return _t(n,t),n}(Eo),Po=function(t){function n(){return t.call(this,"lt")||this}return _t(n,t),n}(Eo);x(),gt(),x(),gt(),x(),gt();var Ao="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Do=16383;function Co(t,n,i){return Ao[t>>2]+Ao[(3&t)<<4|n>>4]+Ao[(15&n)<<2|i>>6]+Ao[63&i]}function xo(t,n,i){for(var e=[],r=n;r<i;r+=3)e.push(Co(t[r],t[r+1],t[r+2]));return e.join("")}x(),gt(),x(),gt();var Bo=function(){function t(t){void 0===t&&(t=0),this.rc=t}var n=t.prototype;return n.xb=function(t){this.rc+=t},n.Rb=function(t){this.rc=t},n.Ib=function(){return new t(this.nc)},Tt(t,[{key:"nc",get:function(){return this.rc}}]),t}();function Mo(t){if(t>=55296&&t<=57343)throw new g("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function Lo(t,n){return t>>n&63|128}function Uo(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(Mo(t),n.push(t>>12&15|224),n.push(Lo(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(Lo(t,12)),n.push(Lo(t,6))),n.push(63&t|128)):n.push(t)}function Fo(t,n){if(n.nc>=t.length)throw new g("Invalid byte index");var i=255&t[n.nc];if(n.xb(1),128==(192&i))return 63&i;throw new g("Invalid continuation byte")}function zo(t,n){var i=n.nc;if(i>t.length)throw new g("Invalid byte index");if(i===t.length)return!1;var e=255&t[i];if(n.xb(1),0==(128&e))return e;if(192==(224&e)){var r=(31&e)<<6|Fo(t,n);if(r>=128)return r;throw new g("Invalid continuation byte")}if(224==(240&e)){var o=(15&e)<<12|Fo(t,n)<<6|Fo(t,n);if(o>=2048)return Mo(o),o;throw new g("Invalid continuation byte")}if(240==(248&e)){var u=(7&e)<<18|Fo(t,n)<<12|Fo(t,n)<<6|Fo(t,n);if(u>=65536&&u<=1114111)return u}throw new g("Invalid UTF-8 detected")}x(),gt(),x(),gt();var Wo=65279;function Ho(t,n,i){void 0===i&&(i=!1);var e=t.getUint16(n.nc,i);return n.xb(2),e}function Vo(t,n,i,e){void 0===e&&(e=!1),t.setUint16(n.nc,i,e),n.xb(2)}function qo(t,n,i,e){void 0===e&&(e=!1),t.setUint32(n.nc,i,e),n.xb(4)}function Xo(t,n,i,e){void 0===e&&(e=!1);for(var r=i.length,o=0;o<r;o+=1){Vo(t,n,i.charCodeAt(o),e)}}function jo(t,n){return void 0===n&&(n=!1),function(t,n,i,e){for(var r=[];n.nc+2<=t.byteLength;){var o=Ho(t,n,i);if(e&&!o)break;r.push(o)}return ho(r)}(Go(t),new Qo,n,!1)}function Yo(t){return function(t){return co(t)}(function(t,n){var i,e=[],r=new Qo;if(!n){if(!1===(i=zo(t,r)))return e;i===Wo||e.push(i)}for(;!1!==(i=zo(t,r));)e.push(i);return e}($o(t)))}function Ko(t){return new E(function(t){for(var n=[],i=0;i<t.length;i++)Uo(t[i],n);return n}(function(t){for(var n=[],i=0,e=t.length;i<e;){var r=t.charCodeAt(i++);if(r>=55296&&r<=56319&&i<e){var o=t.charCodeAt(i++);56320==(64512&o)?n.push(((1023&r)<<10)+(1023&o)+65536):(n.push(r),i--)}else n.push(r)}return n}(t)))}function Go(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function $o(t){return new E(t.buffer,t.byteOffset,t.byteLength)}function Zo(t){return t instanceof ArrayBuffer?new E(t):$o(t)}function Jo(t){if(t.slice)return t.slice(0);var n=new E(t.byteLength);return n.set(t,0),n}var Qo=function(){function t(t){void 0===t&&(t=0),this.rc=t}var n=t.prototype;return n.xb=function(t){this.rc+=t},n.Rb=function(t){this.rc=t},n.Ib=function(){return new t(this.nc)},n.Db=function(){return new Bo(this.nc<<3)},Tt(t,[{key:"nc",get:function(){return this.rc}}]),t}(),tu=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"],nu=ArrayBuffer.isView||function(t){return t&&Er(tu,Ft.call(t))};function iu(t,n){return t===n||function(t,n){if(t===n)return!0;if(t.byteLength!==n.byteLength)return!1;if(t.buffer===n.buffer&&t.byteOffset===n.byteOffset)return!0;for(var i=0;i<t.length;i+=1)if(t[i]!==n[i])return!1;return!0}(Zo(t),Zo(n))}function eu(t){var n=t.reduce((function(t,n){return t+n.byteLength}),0);return function(t,n){for(var i=new E(n),e=0,r=0;r<t.length;r++){var o=t[r];i.set(o,e),e+=o.byteLength}return i}(t,n)}function ru(t){return function(t){for(var n=t.length,i=n%3,e=[],r=n-i,o=0;o<r;o+=Do)e.push(xo(t,o,y.min(r,o+Do)));if(1===i){var u=t[n-1];e.push(Ao[u>>2]+Ao[(3&u)<<4]+"==")}else if(2===i){var s=t[n-2],f=t[n-1];e.push(Ao[s>>2]+Ao[(3&s)<<4|f>>4]+Ao[(15&f)<<2]+"=")}return e.join("")}(new E(t))}var ou=new E([0]).buffer,uu=function(){function t(){this.tc=[]}var n=t.prototype;return n.Mb=function(t){for(var n=0,i=this.tc;n<i.length;n++){if(iu(i[n][0],t))return!0}return!1},n.Lb=function(t){for(var n=0,i=this.tc;n<i.length;n++){var e=i[n];if(iu(e[0],t))return e[1]}},n.Bb=function(t,n){for(var i=0,e=this.tc;i<e.length;i++){var r=e[i];if(iu(r[0],t))return void(r[1]=n)}this.tc.push([t,n])},n.Ob=function(t,n){this.tc.forEach((function(n){return t(n[1],n[0])}),n)},n.Fb=function(){kr(this.tc)},Tt(t,[{key:"Nb",get:function(){return this.tc.length}}]),t}();x(),gt();var su=function(){function t(){var t=this;this.Ub=new J((function(n,i){t.Gd=n,t.Hd=i}))}var n=t.prototype;return n.Vb=function(t){this.Gd&&(this.Gd(t),this.Xw())},n.Wb=function(t){this.Hd&&(this.Hd(t),this.Xw())},n.jw=function(){this.Ub.catch(Yt),this.Wb(new bo)},n.Qw=function(t){var n=this;t.then((function(t){return n.Vb(t)}),(function(t){return n.Wb(t)}))},n.Xw=function(){this.Gd=void 0,this.Hd=void 0},t}();function fu(t,n){return t===jr?function(t){if(t.byteLength<2*cu.length)return t;var n=new DataView(t,0,2*cu.length),i=jo(n,!0);if(i===cu)return t;return function(t){var n='<PlayReadyKeyMessage type="LicenseAcquisition"><LicenseAcquisition Version="1"><Challenge encoding="base64encoded">',i='</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>',e=""+n+ru(t)+i;return function(t,n){void 0===n&&(n=!1);var i=new E(2*t.length);return Xo(Go(i),new Qo,t,n),i}(e,!0).buffer}(t)}(n):n}x(),gt();var cu="<PlayReady";x(),gt(),x(),gt();var hu=function(t){function n(n,i,e,r){var o;return(o=t.call(this,n,r)||this).Gb=i,o.Hb=e,o}return _t(n,t),n}(Dr);x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt();var au=function(t,n){return(au=p.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)p.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)};function vu(t,n){if("function"!=typeof n&&null!==n)throw new m("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}au(t,n),t.prototype=null===n?p.create(n):(i.prototype=n.prototype,new i)}function du(t,n,i){return t.indexOf?t.indexOf(n,i):Array.prototype.indexOf.call(t,n,i)}x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt();!function(){function t(t,n){this.Zb=t,this.Xb=n}t.prototype.get=function(t){var n=this.Zb.get(t);if(0===this.Xb||void 0===n)return n;var i=this.Zb.get(t+1)||0,e=n&(1<<8-this.Xb)-1,r=i>>8-this.Xb;return(e<<this.Xb)+r},t.prototype.getBit=function(t){if(!(t<0)){var n=this.Zb.get(y.floor((t+this.Xb)/8));if(void 0!==n)return(n&1<<7-this.Xb-t%8)>0?1:0}},p.defineProperty(t.prototype,"bitLength",{get:function(){return this.Zb.bitLength-this.Xb},enumerable:!1,configurable:!0}),p.defineProperty(t.prototype,"length",{get:function(){return this.Zb.length},enumerable:!1,configurable:!0})}();x(),gt(),x(),gt();y.pow(2,-52);function lu(t,n,i){return y.min(y.max(t,n),i)}function wu(t,n){return t>>8-n}function bu(t,n){return t&(1<<n)-1}var gu=function(){function t(t){this.zb=t,this.qb=0,this.Yb=0}return p.defineProperty(t.prototype,"totalBitsRead",{get:function(){return 8*this.qb+this.Yb},enumerable:!1,configurable:!0}),p.defineProperty(t.prototype,"done",{get:function(){return this.qb===this.zb.length&&0===this.Yb},enumerable:!1,configurable:!0}),p.defineProperty(t.prototype,"location",{get:function(){return{byte:this.qb,bit:this.Yb}},enumerable:!1,configurable:!0}),t.prototype.copy=function(){var n=new t(this.zb);return n.seek(this.qb,this.Yb),n},t.prototype.canReadBits=function(t){return 8*this.qb+t+this.Yb<=8*this.zb.length},t.prototype.canReadBytes=function(t){return 0===this.Yb?this.qb+t<=this.zb.length:this.qb+t<this.zb.length},t.prototype.incBit=function(){this.Yb++,this.Yb>7&&(this.qb++,this.Yb=0)},t.prototype.seek=function(t,n){this.qb=t,this.Yb=n},t.prototype.peekBit=function(){if(!this.canReadBits(1))throw new g("Cannot read past end of buffer.");return this.zb.get(this.qb)>>7-this.Yb&1},t.prototype.readBit=function(){var t=this.peekBit();return this.incBit(),t},t.prototype.readByte=function(){if(!this.canReadBytes(1))throw new g("Cannot read past end of buffer.");if(0===this.Yb)return this.zb.get(this.qb++);var t=bu(this.zb.get(this.qb),8-this.Yb),n=wu(this.zb.get(this.qb+1),this.Yb);return this.qb++,t<<this.Yb|n},t.prototype.readBits=function(t){if(!this.canReadBits(t))throw new g("Cannot read past end of buffer.");for(var n=[],i=0;i<t;i++)n.push(this.readBit());return n},t.prototype.readUInt=function(t){if(t>32)throw new g("The max bitlength that can be provided is 32.");if(!this.canReadBits(t))throw new g("Cannot read past end of buffer.");var n=0;if(0===this.Yb&&t%8==0)for(var i=t-8;i>=0;i-=8)n|=this.readByte()<<i;else for(i=t-1;i>=0;i--)n|=this.readBit()<<i;return n},t.prototype.readInt=function(t){if(t>32)throw new g("The max bitlength that can be provided is 32.");if(!this.canReadBits(t))throw new g("Cannot read past end of buffer.");var n=this.readUInt(t);return 0===(n&1<<t-1)?n:n-y.pow(2,t)},t.prototype.readExponentialGolombCode=function(){for(var t=0;0===this.readBit();)t++;var n=1<<t;return n+=this.readUInt(t)-1},t.prototype.readSignedExponentialGolombCode=function(){var t=this.readExponentialGolombCode();return 1&t?(t+1)/2:-t/2},t.prototype.skipBits=function(t){if(!this.canReadBits(t))throw new g("Skipping over the buffer edge is not allowed.");var n=this.Yb+t;this.qb+=n>>3,this.Yb=7&n},t.prototype.readBool=function(){return this.readBit()>0},t.prototype.readString=function(t){if(!this.canReadBytes(t))throw new g("Cannot read past end of buffer.");for(var n=[],i=0;i<t;i++)n.push(this.readByte());return String.fromCharCode.apply(String,n)},t}();x(),gt(),x(),gt(),x(),gt();var mu=function(t,n){return t===n?0:t<n?-1:t>n?1:T(t)?T(n)?0:1:-1},pu=function(){function t(){this.Kb=[],this.jb=[],this.Qb=0}return t.from=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];for(var e=new t,r=0,o=n;r<o.length;r++){var u=o[r];e.pushRange(u)}return e},t.prototype.pushRange=function(t,n,i){if(void 0===n&&(n=0),void 0===i&&(i=t.length),i<0)throw new g("The buffer length must be positive.");if(0!==i){if(0===this.jb.length)this.jb.push(0);else{var e=this.jb[this.jb.length-1]+this.Kb[this.Kb.length-1].length;this.jb.push(e)}this.Kb.push(t.subarray(n,n+i)),this.Qb+=i}},t.prototype.concat=function(n){var i=new t;return i.pushRange(this.join()),i.pushRange(n.join()),i},t.prototype.copy=function(t,n,i,e){if(void 0===n&&(n=0),void 0===i&&(i=0),void 0===e&&(e=this.length),n<0||i<0||e<0)throw new RangeError;return this.slice(i,e).copyInternal(t,n)},t.prototype.copyInternal=function(t,n){for(var i=0,e=n,r=0,o=this.Kb;r<o.length;r++){var u=o[r];t.set(u,e),i+=u.length,e+=u.length}return i},t.prototype.clear=function(){this.Kb=[],this.jb=[],this.Qb=0},t.prototype.get=function(t){if(!(t<0||t>=this.length)){var n=this.findContainingBufferIndex(t),i=t-this.jb[n];return this.Kb[n][i]}},p.defineProperty(t.prototype,"first",{get:function(){return this.get(0)},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(t){if(this.Kb.length<1)return-1;if(this.Kb.length>1){var n=this.join();this.clear(),this.pushRange(n)}var i=this.Kb[0];return"number"==typeof t?du(i,t):"undefined"!=typeof Buffer?Buffer.from(i.buffer,i.byteOffset,i.byteLength).indexOf(t):function(t,n){if(0===n.length)return 0;for(var i=n[0],e=n.length,r=t.length-e,o=0;o<=r&&!((o=du(t,i,o))<0||o>r);o++){for(var u=o+1,s=o+e,f=1;u<s&&t[u]===n[f];u++,f++);if(u===s)return o}return-1}(i,t)},t.prototype.findContainingBufferIndex=function(t){return function(t,n,i){if(0!==t.length){var e=0,r=t.length-1;if(1!==i(t[e],n)){if(1===i(n,t[r]))return r;for(;e!==r;){var o=y.ceil((e+r)/2);i(t[o],n)<=0?e=o:r=o-1}return e}}}(this.jb,t,mu)},t.prototype.join=function(){if(1===this.Kb.length)return this.Kb[0];var t=new E(this.length);return this.copyInternal(t,0),t},p.defineProperty(t.prototype,"length",{get:function(){return this.Qb},enumerable:!1,configurable:!0}),p.defineProperty(t.prototype,"bitLength",{get:function(){return 8*this.length},enumerable:!1,configurable:!0}),t.prototype.readUIntBE=function(t,n){if(n<=0||n>4)throw new g("Expected byteLength to be between 0 and 4 but was "+n);if(t<0||t>this.length-n)throw new g("Offset must be between 0 and buffer.length - byteLength, but was "+t+" (max allowed "+(this.length-n)+")");if(1===n)return this.get(t);for(var i=0,e=0;e<n;e++)i+=this.get(t+e)*y.pow(2,8*(n-e-1));return i},t.prototype.slice=function(n,i){void 0===i&&(i=this.length);var e=lu(n,0,this.length),r=lu(i,0,this.length);if(e>r)return new t;if(e===r)return new t;for(var o=new t,u=this.findContainingBufferIndex(e),s=this.Kb[u],f=e,c=f-this.jb[u];f+s.length-c<r;)o.pushRange(s,c,s.length-c),u+=1,c=(f+=s.length-c)-this.jb[u],s=this.Kb[u];var h=r-f;return o.pushRange(s,c,h),o},t.prototype.trim=function(){if(0===this.length)return new t;for(var n=this.length-1,i=this.Kb.length-1,e=this.Kb[i],r=e.length-1;n>=0&&i>=0;){if(0!==e[r])break;if(0===r){if(0===i)return new t;i-=1,r=(e=this.Kb[i]).length-1}else r-=1;n-=1}return this.slice(0,n+1)},t}(),yu=function(){function t(n){this.Jb=n||t.BUFFER_CHUNK_SIZE,this.$b=!1,this.tA=new pu,this.zb=new E(this.Jb),this.eA=0,this.iA=0,this.Yb=7}return t.prototype.closeByte=function(){this.zb[this.eA++]=this.iA,this.eA>=this.Jb&&this.closeBuffer(),this.iA=0,this.Yb=7},t.prototype.closeBuffer=function(t){void 0===t&&(t=!0),0!==this.eA&&(this.tA.pushRange(this.zb,0,this.eA),t&&(this.zb=new E(this.Jb)),this.eA=0)},p.defineProperty(t.prototype,"isWritingStartBit",{get:function(){return 7===this.Yb},enumerable:!1,configurable:!0}),t.prototype.close=function(){if(this.$b)throw new g("Cannot close a closed BitWriter.");return this.isWritingStartBit||this.closeByte(),this.closeBuffer(!1),this.$b=!0,this.tA},t.prototype.writeBit=function(t){if(this.$b)throw new g("Cannot write to a closed BitWriter.");this.iA|=t<<this.Yb,0===this.Yb?this.closeByte():this.Yb--},t.prototype.writeByte=function(t){if(this.$b)throw new g("Cannot write to a closed BitWriter.");this.isWritingStartBit?(this.iA=t,this.closeByte()):this.writeByteUnaligned(t)},t.prototype.writeByteUnaligned=function(t){var n=this.Yb;this.iA|=wu(t,n+1),this.closeByte(),this.iA=bu(t,8-n)<<n+1,this.Yb=n},t.prototype.writeBits=function(t){for(var n=0,i=t;n<i.length;n++){var e=i[n];this.writeBit(e)}},t.prototype.writeBytes=function(t){if(this.$b)throw new g("Cannot write to a closed BitWriter.");this.isWritingStartBit?this.writeBytesAligned(t):this.writeBytesUnaligned(t)},t.prototype.writeBytesAligned=function(t){this.eA+t.length<=this.Jb?(this.zb.set(t,this.eA),this.eA+=t.length,this.eA===this.Jb&&this.closeBuffer()):(this.closeBuffer(),this.tA.pushRange(t))},t.prototype.writeBytesUnaligned=function(t){if(0!==t.length){var n=this.Yb;this.iA|=wu(t[0],n+1),this.closeByte();for(var i=1;i<t.length;i++){var e=bu(t[i-1],8-n),r=wu(t[i],n+1);this.iA=e<<n+1|r,this.closeByte()}this.iA=bu(t[t.length-1],8-n)<<n+1,this.Yb=n}},t.prototype.writeUInt=function(t,n){if(t<0)throw new g("Received a negative number.");if(n>32)throw new g("The max bitlength that can be provided is 32.");if(t>=y.pow(2,n))throw new g("Uint "+t+" cannot be represented in "+n+" bit(s).");if(this.isWritingStartBit&&n%8==0)for(var i=n-8;i>=0;i-=8)this.writeByte(t>>i&255);else for(i=n-1;i>=0;i--)this.writeBool((t&1<<i)>0)},t.prototype.writeInt=function(t,n){if(n>32)throw new g("The max bitlength that can be provided is 32.");if(y.abs(t)>=y.pow(2,n-1))throw new g("Signed integer "+t+" cannot be represented in "+n+" bit(s).");t<0?this.writeUInt(t+y.pow(2,n),n):this.writeUInt(t,n)},t.prototype.writeExponentialGolombCode=function(t){if(t<0)throw new g("Received a negative number.");for(var n=y.floor(y.log2(t+1))+1,i=0;i<n-1;i++)this.writeBit(0);this.writeUInt(t+1,n)},t.prototype.writeSignedExponentialGolombCode=function(t){0===t?this.writeExponentialGolombCode(0):t<0?this.writeExponentialGolombCode(-2*t):this.writeExponentialGolombCode(2*t-1)},t.prototype.padByte=function(t){for(;!this.isWritingStartBit;)this.writeBit(t)},t.prototype.writeBool=function(t){this.writeBit(t?1:0)},t.prototype.writeString=function(t){for(var n=function(t){for(var n=new E(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}(t),i=0;i<n.length;i++)this.writeByte(n[i])},t.BUFFER_CHUNK_SIZE=1024,t}();x(),gt();var _u=function(){function t(t){this.rb=new pu,this.Jd=t}return t.prototype.closeWriter=function(){void 0!==this.Jd&&(this.rb=this.rb.concat(this.Jd.close()),this.Jd=void 0)},p.defineProperty(t.prototype,"writer",{get:function(){return void 0===this.Jd&&(this.Jd=new yu),this.Jd},enumerable:!1,configurable:!0}),t.prototype.concat=function(t){this.closeWriter(),this.rb=this.rb.concat(t)},t.prototype.toRangedBuffer=function(){return this.closeWriter(),this.rb},t}(),Su=function(){function t(t){if(this.boxType=t,4!==t.length&&16!==t.length)throw new g("The provided box type does not conform to either a 4 character type or a 16 byte uuid.")}return t.prototype.serializeCommonBoxHeader=function(n){var i=this.getSize(),e=i>=t.LARGE_SIZE/8,r=16===this.boxType.length;n.writeUInt(e?1:i,32),n.writeString(r?"uuid":this.boxType),e&&(n.writeUInt(y.floor(i/t.LARGE_SIZE),32),n.writeUInt(i%t.LARGE_SIZE,32)),r&&n.writeString(this.boxType)},t.prototype.getSize=function(){var n=8+(this.boxType.length>4?16:0),i=this.getBoxContentSize()+n;return i>=t.LARGE_SIZE/8&&(i+=8),i},t.prototype.serialize=function(){var t=new _u;return this.serializeCommonBoxHeader(t.writer),this.serializeBoxContent(t),t.toRangedBuffer()},t.LARGE_SIZE=y.pow(2,32),t}();function Tu(t,n){return t instanceof Tn?64===n:t<y.pow(2,n)}function Eu(t,n){return y.round(t*y.pow(2,n))}function ku(t,n){for(var i=0;i<n.length;i++)t.writeByte(n[i])}function Iu(t,n){return t/y.pow(2,n)}x(),gt();var Ru=function(t){function n(n,i,e){var r=t.call(this,n)||this;if(r.version=i,!Tu(i,8))throw new g("the provided version cannot fit in 8 bits.");return r.flags=e,r}return vu(n,t),p.defineProperty(n.prototype,"flags",{get:function(){return this.v_},set:function(t){this.v_=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 4},n.prototype.serializeFlags=function(t){if("number"!=typeof this.flags)throw new g("Missing custom serializeFlags method.");t.writer.writeUInt(this.flags,24)},n.prototype.serializeBoxContent=function(t){t.writer.writeByte(this.version),this.serializeFlags(t)},n}(Su);x(),gt(),x(),gt();var Ou=function(t){function n(n,i){var e=t.call(this,n)||this;return e.data=i,e}return vu(n,t),n.prototype.getBoxContentSize=function(){return this.data.length},n.prototype.serializeBoxContent=function(t){t.concat(pu.from(this.data))},n}(Su);x(),gt(),x(),gt();var Nu=function(){function t(t){void 0===t&&(t=0),this.offset=t}return t.prototype.shift=function(t){this.offset+=t},t.prototype.seek=function(t){this.offset=t},t.prototype.clone=function(){return new t(this.offset)},t}();x(),gt();var Pu=16384;function Au(t){var n=t.length;if(n<=Pu)return String.fromCharCode.apply(String,t);for(var i=[],e=0;e<n;e+=Pu)i.push(String.fromCharCode.apply(String,t.slice(e,e+Pu)));return i.join("")}var Du=function(){function t(t){this.raw=t}return t.prototype.isSet=function(t){return function(t,n){return(t&n)===n}(this.raw,t)},t}();function Cu(t,n){var i=t.getUint8(n.offset);return n.shift(1),i}function xu(t,n,i){var e=Wu(Vu(t),n.offset,n.offset+i);return n.shift(e.byteLength),e}function Bu(t,n,i){return n.offset+i<=t.byteLength}function Mu(t,n,i){void 0===i&&(i=!1);var e=t.getUint32(n.offset,i);return n.shift(4),e}function Lu(t,n,i){void 0===i&&(i=!1);var e=Mu(t,n,i),r=Mu(t,n,i),o=i?r:e,u=i?e:r;return Tn.fromBits(u,o,!0)}function Uu(t,n,i){return Au(function(t){return[].slice.call(t)}(xu(t,n,i)))}function Fu(t,n){var i,e=Cu(t,n);return 0==(128&e)?i=e:192==(224&e)?i=64*(31&e)+(63&Cu(t,n)):224==(240&e)?i=4096*(15&e)+64*(63&Cu(t,n))+(63&Cu(t,n)):240==(248&e)&&(i=262144*(7&e)+4096*(63&Cu(t,n))+64*(63&Cu(t,n))+(63&Cu(t,n))),i}function zu(t,n){return function(t,n,i){var e=[],r=function(t,n){return n.offset+3<=t.byteLength&&239===t.getUint8(n.offset)&&187===t.getUint8(n.offset+1)&&191===t.getUint8(n.offset+2)}(t,n);r&&n.shift(3);for(;n.offset<t.byteLength;){var o=Fu(t,n);if(void 0===o)break;if(i&&0===o)break;e.push(o)}return function(t){for(var n=[],i=0,e=t;i<e.length;i++){var r=e[i];r>65535&&(r-=65536,n.push(r>>>10&1023|55296),r=56320|1023&r),n.push(r)}return Au(n)}(e)}(t,n,!0)}function Wu(t,n,i){return void 0===n&&(n=0),void 0===i&&(i=t.byteLength),new E(t.buffer,t.byteOffset+n,i-n)}function Hu(t,n,i){return void 0===n&&(n=0),void 0===i&&(i=t.byteLength),new DataView(t.buffer,t.byteOffset+n,i-n)}function Vu(t){return new E(t.buffer,t.byteOffset,t.byteLength)}var qu=function(){function t(t){void 0===t&&(t=0),this.offset=t}return t.prototype.shift=function(t){this.offset+=t},t.prototype.seek=function(t){this.offset=t},t.prototype.clone=function(){return new t(this.offset)},t.prototype.toBit=function(){return new Nu(this.offset<<3)},t}();x(),gt();var Xu=function(){function t(t,n){this.data=t,this.cursor=n}return t.prototype.nextUint8=function(){return Cu(this.data,this.cursor)},t.prototype.nextUint16=function(){return function(t,n,i){void 0===i&&(i=!1);var e=t.getUint16(n.offset,i);return n.shift(2),e}(this.data,this.cursor)},t.prototype.nextInt16=function(){return function(t,n,i){void 0===i&&(i=!1);var e=t.getInt16(n.offset,i);return n.shift(2),e}(this.data,this.cursor)},t.prototype.nextUint32=function(){return Mu(this.data,this.cursor)},t.prototype.nextInt32=function(){return function(t,n,i){void 0===i&&(i=!1);var e=t.getInt32(n.offset,i);return n.shift(4),e}(this.data,this.cursor)},t.prototype.nextInt64=function(){return function(t,n,i){void 0===i&&(i=!1);var e=Mu(t,n,i),r=Mu(t,n,i),o=i?r:e,u=i?e:r;return Tn.fromBits(u,o,!1)}(this.data,this.cursor)},t.prototype.nextUint64=function(){return Lu(this.data,this.cursor)},t.prototype.nextUint8Array=function(t){return xu(this.data,this.cursor,t)},t.prototype.nextUint32Array=function(t){return function(t,n,i){for(var e=[],r=0;r<i;r++)e.push(Mu(t,n));return e}(this.data,this.cursor,t)},t.prototype.nextChars=function(t){return Uu(this.data,this.cursor,t)},t.prototype.nextUTF8String=function(){return zu(this.data,this.cursor)},t.prototype.skip=function(t){this.cursor.shift(t)},t.prototype.clone=function(){return new t(this.data,this.cursor.clone())},t}();function ju(t,n){return t.type===n}var Yu=8;function Ku(t){var n=function(t,n){var i=[];for(;n.offset<t.byteLength;){var e=Gu(t,n);if(!e.complete)return{complete:!1,boxes:i};i.push(e.box)}return{complete:!0,boxes:i}}(t.data,t.cursor);if(!n.complete)throw new g("Data incomplete");return n.boxes}function Gu(t,n){var i=n.offset,e=function(t,n){var i=n.offset;if(!Bu(t,n,Yu)){return{complete:!1,neededOffset:o=n.offset+Yu}}var e=Mu(t,n),r=Uu(t,n,4);if(1===e){if(!Bu(t,n,8)){var o=n.offset+8;return n.seek(i),{complete:!1,neededOffset:o}}e=Lu(t,n).toNumber()}if("uuid"===r){if(!Bu(t,n,16)){o=n.offset+16;return n.seek(i),{complete:!1,neededOffset:o}}r=Uu(t,n,16)}var u=n.offset,s={type:r,size:e,headerSize:u-i};return{complete:!0,header:s}}(t,n);if(!e.complete)return e;var r=e.header,o=r.size;0===o&&(o=t.byteLength-i);var u=i+o;if(u>t.byteLength){var s=u;return n.seek(i),{complete:!1,neededOffset:s}}var f={type:r.type,offset:i,data:new Xu(Hu(t,i,u),new qu(r.headerSize))};return n.seek(u),{complete:!0,box:f}}function $u(t){return{version:t>>24,flags:new Du(16777215&t)}}function Zu(t,n){var i,e,r,o;return 1===n?(i=t.nextUint64(),e=t.nextUint64(),r=t.nextUint32(),o=t.nextUint64()):(i=t.nextUint32(),e=t.nextUint32(),r=t.nextUint32(),o=t.nextUint32()),{creation:i,modification:e,scale:r,duration:o}}function Ju(t){return t.skipBits(4),{isLeading:t.readUInt(2),sampleDependsOn:t.readUInt(2),sampleIsDependedOn:t.readUInt(2),sampleHasRedundancy:t.readUInt(2),samplePaddingValue:t.readUInt(3),sampleIsNonSyncSample:Boolean(t.readBit()),sampleDegradationPriority:t.readUInt(16)}}function Qu(t){var n=t.nextUint32Array(9);return{a:Iu(n[0],16),b:Iu(n[1],16),u:Iu(n[2],30),c:Iu(n[3],16),d:Iu(n[4],16),v:Iu(n[5],30),x:Iu(n[6],16),y:Iu(n[7],16),w:Iu(n[8],30)}}function ts(t){return new Ou(t.type,Wu(Vu(t.data.data),t.data.cursor.offset))}var ns=function(t){function n(n,i,e,r){void 0===e&&(e=0),void 0===r&&(r=0);var o=t.call(this,"hdlr",e,r)||this;return o.name=i,o.handlerType=n,o}return vu(n,t),p.defineProperty(n.prototype,"handlerType",{get:function(){return this.sA},set:function(t){this.sA=t},enumerable:!1,configurable:!0}),n.prototype.serializeReserved=function(t){t.writer.writeUInt(0,32),t.writer.writeUInt(0,32),t.writer.writeUInt(0,32)},n.prototype.getBoxContentSize=function(){var n,i;return t.prototype.getBoxContentSize.call(this)+4+4+12+(null!==(i=null===(n=this.name)||void 0===n?void 0:n.length)&&void 0!==i?i:0)+1},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(0,32),n.writer.writeString(this.handlerType),this.serializeReserved(n),this.name&&n.writer.writeString(this.name),n.writer.writeByte(0)},n}(Ru);function is(t){var n=t.data,i=$u(n.nextUint32()),e=i.version,r=i.flags;n.skip(4);var o=n.nextChars(4);n.skip(12);var u=n.nextUTF8String();return new ns(o,u,e,r.raw)}!function(t){function n(){return t.call(this,"mdir")||this}vu(n,t),n.prototype.serializeReserved=function(t){t.writer.writeString("appl"),t.writer.writeUInt(0,32),t.writer.writeUInt(0,32)}}(ns);x(),gt(),x(),gt(),x(),gt();var es=function(){function t(t,n){void 0===n&&(n=!1),this.fixed28BitMode=n,this.tag=t}return t.prototype.encodeSize=function(t){for(var n=[];t>0;)n.length>0&&(n[n.length-1]+=128),n.push(t%128),t>>=7;if(this.fixed28BitMode)for(;n.length<4;)n.push(128);return n.reverse()},p.defineProperty(t.prototype,"tag",{get:function(){return this.nA},set:function(t){if(!Tu(t,8))throw new g("Provided tag does not fit in 8 bits.");this.nA=t},enumerable:!1,configurable:!0}),t.prototype.getSize=function(){return this.getDescriptorSize()+1+this.encodeSize(this.getDescriptorSize()).length},t.prototype.serialize=function(t){t.writer.writeByte(this.tag);for(var n=0,i=this.encodeSize(this.getDescriptorSize());n<i.length;n++){var e=i[n];t.writer.writeByte(e)}this.serializeDescriptorContent(t)},t}();x(),gt();!function(t){function n(n,i,e,r,o,u,s){void 0===s&&(s={});var f=t.call(this,4,s.fixed28BitMode)||this;return f.upStream=e,f.decoderSpecificInfo=u,f.objectTypeIndication=n,f.streamType=i,f.bufferSizeDb=r,f.maxBitrate=o.max,f.avgBitrate=o.avg,f}vu(n,t),p.defineProperty(n.prototype,"objectTypeIndication",{get:function(){return this.rA},set:function(t){if(!Tu(t,8))throw new g("Provided objectTypeIndication does not fit in 8 bits.");this.rA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"streamType",{get:function(){return this.oA},set:function(t){if(!Tu(t,6))throw new g("Provided streamType does not fit in 6 bits.");this.oA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"bufferSizeDb",{get:function(){return this.hA},set:function(t){if(!Tu(t,24))throw new g("Provided bufferSizeDb does not fit in 24 bits.");this.hA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"maxBitrate",{get:function(){return this.aA},set:function(t){if(!Tu(t,32))throw new g("Provided maxBitrate does not fit in 32 bits.");this.aA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"avgBitrate",{get:function(){return this.uA},set:function(t){if(!Tu(t,32))throw new g("Provided avgBitrate does not fit in 32 bits.");this.uA=t},enumerable:!1,configurable:!0}),n.prototype.getDescriptorSize=function(){return 13+this.decoderSpecificInfo.reduce((function(t,n){return t+n.getSize()}),0)},n.prototype.serializeDescriptorContent=function(t){t.writer.writeByte(this.objectTypeIndication),t.writer.writeUInt(this.streamType,6),t.writer.writeBool(this.upStream),t.writer.writeBit(1),t.writer.writeUInt(this.bufferSizeDb,24),t.writer.writeUInt(this.maxBitrate,32),t.writer.writeUInt(this.avgBitrate,32);for(var n=0,i=this.decoderSpecificInfo;n<i.length;n++){i[n].serialize(t)}}}(es);x(),gt();!function(t){function n(n,i){void 0===i&&(i={});var e=t.call(this,5,i.fixed28BitMode)||this;return e.data=n,e}vu(n,t),n.prototype.getDescriptorSize=function(){return this.data.length},n.prototype.serializeDescriptorContent=function(t){t.concat(pu.from(this.data))}}(es);x(),gt(),x(),gt();var rs=function(t){function n(n){void 0===n&&(n=!1);var i=t.call(this,6,n)||this;return i.predefined=2,i}return vu(n,t),n.prototype.getDescriptorSize=function(){return 1},n.prototype.serializeDescriptorContent=function(t){t.writer.writeByte(this.predefined)},n}(es);!function(t){function n(n,i,e,r){void 0===r&&(r={});var o=t.call(this,3,r.fixed28BitMode)||this;return o.decoderConfigDescriptor=e,o.esId=n,o.streamPriority=i,o.dependsOnEsId=null==r?void 0:r.dependsOnEsId,o.urlString=null==r?void 0:r.url,o.ocrEsId=null==r?void 0:r.ocrEsId,o.slConfigDescriptor=new rs(r.fixed28BitMode),o}vu(n,t),p.defineProperty(n.prototype,"streamDependenceFlag",{get:function(){return void 0!==this.dependsOnEsId},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"urlFlag",{get:function(){return void 0!==this.urlString},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"ocrStreamFlag",{get:function(){return void 0!==this.ocrEsId},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"esId",{get:function(){return this.cA},set:function(t){if(!Tu(t,16))throw new g("Provided esId does not fit in 16 bits.");this.cA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"streamPriority",{get:function(){return this.lA},set:function(t){if(!Tu(t,5))throw new g("Provided streamPriority does not fit in 5 bits.");this.lA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"dependsOnEsId",{get:function(){return this.dA},set:function(t){if(t&&!Tu(t,16))throw new g("Provided dependsOnEsId does not fit in 16 bits.");this.dA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"ocrEsId",{get:function(){return this.fA},set:function(t){if(t&&!Tu(t,16))throw new g("Provided ocrEsId does not fit in 16 bits.");this.fA=t},enumerable:!1,configurable:!0}),n.prototype.getDescriptorSize=function(){return 3+(this.streamDependenceFlag?2:0)+(this.urlFlag?1+this.urlString.length:0)+(this.ocrStreamFlag?2:0)+this.decoderConfigDescriptor.getSize()+this.slConfigDescriptor.getSize()},n.prototype.serializeDescriptorContent=function(t){t.writer.writeUInt(this.esId,16),t.writer.writeBool(this.streamDependenceFlag),t.writer.writeBool(this.urlFlag),t.writer.writeBool(this.ocrStreamFlag),t.writer.writeUInt(this.streamPriority,5),this.streamDependenceFlag&&t.writer.writeUInt(this.dependsOnEsId,16),this.urlFlag&&(t.writer.writeByte(this.urlString.length),t.writer.writeString(this.urlString)),this.ocrStreamFlag&&t.writer.writeUInt(this.ocrEsId,16),this.decoderConfigDescriptor.serialize(t),this.slConfigDescriptor.serialize(t)}}(es);x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt();var os=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.boxes=[],n}return vu(n,t),n.prototype.getSize=function(){return t.prototype.getSize.call(this)+this.boxes.reduce((function(t,n){return t+n.getSize()}),0)},n.prototype.serialize=function(){for(var n=t.prototype.serialize.call(this),i=0,e=this.boxes;i<e.length;i++){var r=e[i];n=n.concat(r.serialize())}return n},n}(Su),us=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return vu(n,t),n.prototype.serializeBoxContent=function(t){},n.prototype.getBoxContentSize=function(){return 0},n}(os),ss=function(t){function n(n,i){var e=t.call(this,n)||this;return e.dataReferenceIndex=i,e}return vu(n,t),p.defineProperty(n.prototype,"dataReferenceIndex",{get:function(){return this._A},set:function(t){if(!Tu(t,16))throw new g("Provided dataReferenceIndex does not fit in 16 bits.");this._A=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 8},n.prototype.serializeBoxContent=function(t){for(var n=0;n<6;n++)t.writer.writeByte(0);t.writer.writeUInt(this.dataReferenceIndex,16)},n}(us),fs=function(t){function n(n,i,e,r){var o,u,s=this;return(s=t.call(this,n,i)||this).extra=r,s.channelCount=null!==(o=e.channelCount)&&void 0!==o?o:2,s.sampleSize=null!==(u=e.sampleSize)&&void 0!==u?u:16,s.sampleRate=e.sampleRate,s}return vu(n,t),p.defineProperty(n.prototype,"channelCount",{get:function(){return this.vA},set:function(t){if(!Tu(t,16))throw new g("Provided channelCount does not fit in 16 bits.");this.vA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"sampleSize",{get:function(){return this.mA},set:function(t){if(!Tu(t,16))throw new g("Provided sampleSize does not fit in 16 bits.");this.mA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"sampleRate",{get:function(){return this.gA},set:function(t){if(!Tu(Eu(t,16),32))throw new g("Provided rate does not fit in 32 bits (fixed 16.16).");this.gA=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){var n,i;return t.prototype.getBoxContentSize.call(this)+8+2+2+2+2+(void 0!==this.sampleRate?4:0)+(null!==(i=null===(n=this.extra)||void 0===n?void 0:n.length)&&void 0!==i?i:0)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(0,32),n.writer.writeUInt(0,32),n.writer.writeUInt(this.channelCount,16),n.writer.writeUInt(this.sampleSize,16),n.writer.writeUInt(0,16),n.writer.writeUInt(0,16),n.writer.writeUInt(Eu(this.sampleRate,16),32),this.extra&&ku(n.writer,this.extra)},n}(ss);x(),gt();!function(t){function n(n){var i=t.call(this,"stco",0,0)||this;return i.entries=n,i}vu(n,t),p.defineProperty(n.prototype,"entries",{get:function(){return this.pA},set:function(t){if(!Tu(t.length,32))throw new g("Number of allowed entries cannot fit in 32 bits.");if(t.some((function(t){return!Tu(t,32)})))throw new g("Not all entries can be represented in 32 bits.");this.pA=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4*this.entries.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.entries.length,32);for(var i=0,e=this.entries;i<e.length;i++){var r=e[i];n.writer.writeUInt(r,32)}}}(Ru);x(),gt();!function(t){function n(n){var i=t.call(this,"clap")||this;return i.cleanApertureWidthN=n.cleanApertureWidthN,i.cleanApertureWidthD=n.cleanApertureWidthD,i.cleanApertureHeightN=n.cleanApertureHeightN,i.cleanApertureHeightD=n.cleanApertureHeightD,i.horizOffN=n.horizOffN,i.horizOffD=n.horizOffD,i.vertOffN=n.vertOffN,i.vertOffD=n.vertOffD,i}vu(n,t),p.defineProperty(n.prototype,"cleanApertureWidthN",{get:function(){return this.wA},set:function(t){if(!Tu(t,32))throw new g("Provided cleanApertureWidthN does not fit in 32 bits.");this.wA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"cleanApertureWidthD",{get:function(){return this.yA},set:function(t){if(!Tu(t,32))throw new g("Provided cleanApertureWidthD does not fit in 32 bits.");this.yA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"cleanApertureHeightN",{get:function(){return this.bA},set:function(t){if(!Tu(t,32))throw new g("Provided cleanApertureHeightN does not fit in 32 bits.");this.bA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"cleanApertureHeightD",{get:function(){return this.AA},set:function(t){if(!Tu(t,32))throw new g("Provided cleanApertureHeightD does not fit in 32 bits.");this.AA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"horizOffN",{get:function(){return this.SA},set:function(t){if(!Tu(t,32))throw new g("Provided horizOffN does not fit in 32 bits.");this.SA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"horizOffD",{get:function(){return this.TA},set:function(t){if(!Tu(t,32))throw new g("Provided horizOffD does not fit in 32 bits.");this.TA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"vertOffN",{get:function(){return this.kA},set:function(t){if(!Tu(t,32))throw new g("Provided vertOffN does not fit in 32 bits.");this.kA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"vertOffD",{get:function(){return this.EA},set:function(t){if(!Tu(t,32))throw new g("Provided vertOffD does not fit in 32 bits.");this.EA=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 32},n.prototype.serializeBoxContent=function(t){t.writer.writeUInt(this.cleanApertureWidthN,32),t.writer.writeUInt(this.cleanApertureWidthD,32),t.writer.writeUInt(this.cleanApertureHeightN,32),t.writer.writeUInt(this.cleanApertureHeightD,32),t.writer.writeUInt(this.horizOffN,32),t.writer.writeUInt(this.horizOffD,32),t.writer.writeUInt(this.vertOffN,32),t.writer.writeUInt(this.vertOffD,32)}}(Su);x(),gt();!function(t){function n(n,i){var e=t.call(this,"ctts",n,0)||this;return e.entries=i,e}vu(n,t),p.defineProperty(n.prototype,"entries",{get:function(){return this.pA},set:function(t){if(!Tu(t.length,32))throw new g("Number of allowed entries cannot fit in 32 bits.");if(t.some((function(t){return!Tu(t.sampleCount,32)||!Tu(t.sampleOffset,32)})))throw new g("Not all entries can be represented in 64 bits.");this.pA=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+8*this.entries.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.entries.length,32);for(var i=0,e=this.entries;i<e.length;i++){var r=e[i];n.writer.writeUInt(r.sampleCount,32),0===this.version?n.writer.writeUInt(r.sampleOffset,32):1===this.version&&n.writer.writeInt(r.sampleOffset,32)}}}(Ru);x(),gt();!function(t){function n(n){var i=t.call(this,"url ",0,void 0===n?1:0)||this;return i.location=n,i}vu(n,t),p.defineProperty(n.prototype,"location",{get:function(){return this.xA},set:function(t){this.flags=void 0===t?1:0,this.xA=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){var n=t.prototype.getBoxContentSize.call(this);return this.location?n+this.location.length+1:n},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.location&&(n.writer.writeString(this.location),n.writer.writeByte(0))}}(Ru);x(),gt();!function(t){function n(n,i,e){var r=t.call(this,"urn ",0,e)||this;return r.name=n,r.location=i,r}vu(n,t),p.defineProperty(n.prototype,"location",{get:function(){return this.xA},set:function(t){if(1&this.flags)throw new g("The moov containment flag is set, a DataEntryUrlBox should be used instead.");this.xA=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){var n=t.prototype.getBoxContentSize.call(this)+this.name.length+1;return this.location?n+this.location.length+1:n},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeString(this.name),n.writer.writeByte(0),this.location&&(n.writer.writeString(this.location),n.writer.writeByte(0))}}(Ru);x(),gt();!function(t){function n(){return t.call(this,"dinf")||this}vu(n,t)}(us);x(),gt(),x(),gt();var cs=function(t){function n(n,i,e){var r=t.call(this,n)||this;if(r.version=i,!Tu(i,8))throw new g("the provided version cannot fit in 8 bits.");return r.flags=e,r}return vu(n,t),p.defineProperty(n.prototype,"flags",{get:function(){return this.v_},set:function(t){this.v_=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 4},n.prototype.serializeFlags=function(t){if("number"!=typeof this.flags)throw new g("Missing custom serializeFlags method.");t.writer.writeUInt(this.flags,24)},n.prototype.serializeBoxContent=function(t){t.writer.writeByte(this.version),this.serializeFlags(t)},n}(os);!function(t){function n(){return t.call(this,"dref",0,0)||this}vu(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.boxes.length,32)}}(cs);x(),gt(),x(),gt();var hs=function(t){function n(n,i,e){void 0===e&&(e=0);var r=t.call(this,"elst",i,e)||this;return r.entries=n,r}return vu(n,t),p.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"entries",{get:function(){return this.pA},set:function(t){for(var n=0,i=t;n<i.length;n++){var e=i[n];if(!Tu(e.segmentDuration,this.bitSize))throw new g("SegmentDuration of one of the entries does not fit in ".concat(this.bitSize," bits."));if(!Tu(e.mediaTime,this.bitSize))throw new g("MediaTime of one of the entries does not fit in ".concat(this.bitSize," bits."));if(!Tu(e.mediaRateInteger,16))throw new g("Provided mediaRateInteger does not fit in 16 bits.");if(e.mediaRateFraction&&!Tu(e.mediaRateFraction,16))throw new g("Provided mediaRateFraction does not fit in 16 bits.")}this.pA=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+this.entries.length*(2*this.bitSize/8+2+2)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.entries.length,32),this.serializeElstBoxContent(n)},n}(Ru),as=function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,0,i)||this}return vu(n,t),n.prototype.serializeElstBoxContent=function(t){for(var n,i=0,e=this.entries;i<e.length;i++){var r=e[i];t.writer.writeUInt(r.segmentDuration,32),t.writer.writeInt(r.mediaTime,32),t.writer.writeUInt(r.mediaRateInteger,16),t.writer.writeUInt(null!==(n=r.mediaRateFraction)&&void 0!==n?n:0,16)}},n}(hs),vs=function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,1,i)||this}return vu(n,t),n.prototype.serializeElstBoxContent=function(t){for(var n,i=0,e=this.entries;i<e.length;i++){var r=e[i];t.writer.writeUInt(r.segmentDuration.getHighBitsUnsigned(),32),t.writer.writeUInt(r.segmentDuration.getLowBitsUnsigned(),32),t.writer.writeInt(r.mediaTime.getHighBits(),32),t.writer.writeInt(r.mediaTime.getLowBits(),32),t.writer.writeUInt(r.mediaRateInteger,16),t.writer.writeUInt(null!==(n=r.mediaRateFraction)&&void 0!==n?n:0,16)}},n}(hs);function ds(t){for(var n=t.data,i=$u(n.nextUint32()),e=i.version,r=i.flags,o=n.nextUint32(),u=[],s=0;s<o;s++){var f=void 0,c=void 0;0===e?(f=n.nextUint32(),c=n.nextInt32()):(f=n.nextUint64(),c=n.nextInt64());var h=n.nextInt16(),a=n.nextInt16();u.push({segmentDuration:f,mediaTime:c,mediaRateFraction:a,mediaRateInteger:h})}return 0===e?new as(u,r.raw):new vs(u,r.raw)}var ls=function(t){function n(){return t.call(this,"edts")||this}return vu(n,t),n}(us);function ws(t){for(var n=new ls,i=0,e=Ku(t.data);i<e.length;i++){var r=e[i];ju(r,"elst")?n.boxes.push(ds(r)):n.boxes.push(ts(r))}return n}x(),gt(),x(),gt();var bs=function(t){function n(n,i,e,r){var o=t.call(this,n)||this;return o.majorBrand=i,o.minorVersion=e,o.compatibleBrands=r,o}return vu(n,t),p.defineProperty(n.prototype,"majorBrand",{get:function(){return this.RA},set:function(t){if(4!==t.length)throw new g("the provided major brand does not conform to the 4 character requirement");this.RA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"minorVersion",{get:function(){return this.IA},set:function(t){if(!Tu(t,32))throw new g("the provided minor version does not fit in 32 bits.");this.IA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"compatibleBrands",{get:function(){return this.CA},set:function(t){if(t.some((function(t){return 4!==t.length})))throw new g("Some of the compatible brands do not conform to the 4 character requirement");this.CA=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 4*(2+this.compatibleBrands.length)},n.prototype.serializeBoxContent=function(t){t.writer.writeString(this.majorBrand),t.writer.writeUInt(this.minorVersion,32);for(var n=0,i=this.compatibleBrands;n<i.length;n++){var e=i[n];t.writer.writeString(e)}},n}(Su);!function(t){function n(n,i,e){return t.call(this,"ftyp",n,i,e)||this}vu(n,t)}(bs);x(),gt();!function(t){function n(n,i){void 0===i&&(i="free");var e=t.call(this,i)||this;return e.data=n,e}vu(n,t),n.prototype.getBoxContentSize=function(){var t,n;return null!==(n=null===(t=this.data)||void 0===t?void 0:t.length)&&void 0!==n?n:0},n.prototype.serializeBoxContent=function(t){this.data&&t.concat(pu.from(this.data))}}(Su);x(),gt(),x(),gt();var gs=function(t){function n(n,i,e,r){void 0===r&&(r=0);var o=t.call(this,"mdhd",e,r)||this;return o.creationTime=n.creation,o.modificationTime=n.modification,o.timescale=n.scale,o.duration=n.duration,o.language=i,o}return vu(n,t),p.defineProperty(n.prototype,"creationTime",{get:function(){return this.PA},set:function(t){if(!Tu(t,this.bitSize))throw new g("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.PA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"modificationTime",{get:function(){return this.DA},set:function(t){if(!Tu(t,this.bitSize))throw new g("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.DA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"timescale",{get:function(){return this.NA},set:function(t){if(!Tu(t,32))throw new g("Provided sequence number does not fit in 32 bits.");this.NA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"duration",{get:function(){return this.MA},set:function(t){if(!Tu(t,this.bitSize))throw new g("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.MA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"language",{get:function(){return this.LA},set:function(t){if(!_s(t))throw new g("Expected an ISO-639-2/T language code");this.LA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.bitSize/8*3+4+2+2},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.serializeMdiaContent(n),n.writer.writeBit(0);for(var i=0,e=this.language;i<e.length;i++){var r=e[i];n.writer.writeUInt(r.charCodeAt(0)-96,5)}n.writer.writeUInt(0,16)},n}(Ru),ms=function(t){function n(n,i,e){return void 0===e&&(e=0),t.call(this,n,i,0,e)||this}return vu(n,t),n.prototype.serializeMdiaContent=function(t){t.writer.writeUInt(this.creationTime,32),t.writer.writeUInt(this.modificationTime,32),t.writer.writeUInt(this.timescale,32),t.writer.writeUInt(this.duration,32)},n}(gs),ps=function(t){function n(n,i,e){return void 0===e&&(e=0),t.call(this,n,i,1,e)||this}return vu(n,t),n.prototype.serializeMdiaContent=function(t){t.writer.writeUInt(this.creationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.creationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.modificationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.modificationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.timescale,32),t.writer.writeUInt(this.duration.getHighBitsUnsigned(),32),t.writer.writeUInt(this.duration.getLowBitsUnsigned(),32)},n}(gs);function ys(t){var n=t.data,i=$u(n.nextUint32()),e=i.version,r=i.flags,o=Zu(n,e),u=new gu(pu.from(n.nextUint8Array(2)));u.skipBits(1);for(var s=[],f=0;f<3;f++)s.push(u.readUInt(5));var c=s.map((function(t){return String.fromCharCode(t+96)})).join("");return _s(c)||(c="und"),n.skip(2),0===e?new ms(o,c,r.raw):new ps(o,c,r.raw)}function _s(t){return/^[a-z]{3}$/.test(t)}var Ss=function(t){function n(){return t.call(this,"mdia")||this}return vu(n,t),n}(us);function Ts(t){for(var n=new Ss,i=0,e=Ku(t.data);i<e.length;i++){var r=e[i];ju(r,"mdhd")?n.boxes.push(ys(r)):ju(r,"hdlr")?n.boxes.push(is(r)):n.boxes.push(ts(r))}return n}x(),gt();!function(t){function n(){var n=t.call(this,"mdat")||this;return n.data=new pu,n}vu(n,t),n.prototype.getBoxContentSize=function(){return this.data.length},n.prototype.serializeBoxContent=function(t){t.concat(this.data)}}(Su);x(),gt();!function(t){function n(){return t.call(this,"minf")||this}vu(n,t)}(us);x(),gt();var Es;!function(t){function n(n){var i=t.call(this,"meta",0,0)||this;return i.handler=n,i}vu(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.handler.getSize()},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.concat(this.handler.serialize())}}(cs);x(),gt(),x(),gt(),function(t){t.VIDEO="vide",t.AUXILIARY_VIDEO="auxv",t.AUDIO="soun",t.METADATA="meta",t.HINT="hint",t.TEXT="text",t.SUBTITLE="subt",t.FONT="fdsm"}(Es||(Es={})),x(),gt();var ks,Is,Rs={a:1,b:0,u:0,c:0,d:1,v:0,x:0,y:0,w:1};function Os(t,n){n.writer.writeUInt(Eu(t.a,16),32),n.writer.writeUInt(Eu(t.b,16),32),n.writer.writeUInt(Eu(0,30),32),n.writer.writeUInt(Eu(t.c,16),32),n.writer.writeUInt(Eu(t.d,16),32),n.writer.writeUInt(Eu(0,30),32),n.writer.writeUInt(Eu(t.x,16),32),n.writer.writeUInt(Eu(t.y,16),32),n.writer.writeUInt(Eu(1,30),32)}function Ns(t,n){var i,e,r,o;n.writer.writeUInt(null!==(i=t.isLeading)&&void 0!==i?i:ks.UNKNOWN,2),n.writer.writeUInt(null!==(e=t.sampleDependsOn)&&void 0!==e?e:Is.UNKNOWN,2),n.writer.writeUInt(null!==(r=t.sampleIsDependedOn)&&void 0!==r?r:Is.UNKNOWN,2),n.writer.writeUInt(null!==(o=t.sampleHasRedundancy)&&void 0!==o?o:Is.UNKNOWN,2)}function Ps(t,n){var i,e,r;n.writer.writeUInt(0,4),Ns(t,n),n.writer.writeUInt(null!==(i=t.samplePaddingValue)&&void 0!==i?i:0,3),n.writer.writeBool(null!==(e=t.sampleIsNonSyncSample)&&void 0!==e&&e),n.writer.writeUInt(null!==(r=t.sampleDegradationPriority)&&void 0!==r?r:0,16)}x(),gt(),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WITH_DEPENDENCY=1]="WITH_DEPENDENCY",t[t.NO=2]="NO",t[t.WITHOUT_DEPENDENCY=3]="WITHOUT_DEPENDENCY"}(ks||(ks={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.YES=1]="YES",t[t.NO=2]="NO",t[t.RESERVED=3]="RESERVED"}(Is||(Is={})),x(),gt(),x(),gt();var As=function(){};x(),gt(),x(),gt(),x(),gt();var Ds=function(t){function n(n,i,e){var r=t.call(this,"pssh",n,0)||this;return r.systemId=i,r.data=e,r}return vu(n,t),p.defineProperty(n.prototype,"systemId",{get:function(){return this.BA},set:function(t){if(16!==t.length)throw new g("Provided systemId length is not 16.");this.BA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"data",{get:function(){return this.kp},set:function(t){if(!Tu(t.length,32))throw new g("Provided data length does not fit in 32 bits.");this.kp=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+16+4+this.data.length},n.prototype.serializeVersionBoxContent=function(t){},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.concat(pu.from(this.systemId)),this.serializeVersionBoxContent(n),n.writer.writeUInt(this.data.length,32),n.concat(pu.from(this.data))},n}(Ru),Cs=function(t){function n(n,i){return t.call(this,0,n,i)||this}return vu(n,t),n}(Ds),xs=function(t){function n(n,i,e){var r=t.call(this,1,n,i)||this;return r.kIds=e,r}return vu(n,t),p.defineProperty(n.prototype,"kIds",{get:function(){return this.OA},set:function(t){if(!Tu(t.length,32))throw new g("Provided kIds length cannot fit in 32 bits.");if(t.some((function(t){return 16!==t.length})))throw new g("Not all provided key ids are 16 bytes long.");this.OA=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+16*this.kIds.length},n.prototype.serializeVersionBoxContent=function(t){t.writer.writeUInt(this.kIds.length,32);for(var n=0,i=this.kIds;n<i.length;n++){var e=i[n];t.concat(pu.from(e))}},n}(Ds);function Bs(t){var n=t.data.nextUint8();t.data.skip(3);var i=t.data.nextUint8Array(16),e=[];if(1===n)for(var r=t.data.nextUint32(),o=0;o<r;o++)e.push(t.data.nextUint8Array(16));var u=t.data.nextUint32(),s=t.data.nextUint8Array(u);return 1===n?new xs(i,s,e):new Cs(i,s)}x(),gt(),x(),gt();var Ms=function(t){function n(n,i,e){void 0===e&&(e=0);var r=t.call(this,"mehd",i,e)||this;return r.fragmentDuration=n,r}return vu(n,t),p.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"fragmentDuration",{get:function(){return this.FA},set:function(t){if(!Tu(t,this.bitSize))throw new g("The provided fragmentDuration does not fit in ".concat(this.bitSize," bits."));this.FA=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.bitSize/8},n}(Ru),Ls=function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,0,i)||this}return vu(n,t),n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.fragmentDuration,32)},n}(Ms),Us=function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,1,i)||this}return vu(n,t),n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.fragmentDuration.getHighBitsUnsigned(),32),n.writer.writeUInt(this.fragmentDuration.getLowBitsUnsigned(),32)},n}(Ms);function Fs(t){var n=t.data,i=$u(n.nextUint32()),e=i.version,r=i.flags;return 0===e?new Ls(n.nextUint32(),r.raw):new Us(n.nextUint64(),r.raw)}x(),gt();var zs=function(t){function n(n,i,e,r){void 0===i&&(i={}),void 0===e&&(e=0),void 0===r&&(r=0);var o,u,s,f=this;return(f=t.call(this,"trex",e,r)||this).trackId=n,f.defaultSampleDescriptionIndex=null!==(o=null==i?void 0:i.sampleDescriptionIndex)&&void 0!==o?o:0,f.defaultSampleDuration=null!==(u=i.sampleDuration)&&void 0!==u?u:0,f.defaultSampleSize=null!==(s=i.sampleSize)&&void 0!==s?s:0,f.defaultSampleFlags=i.sampleFlags,f}return vu(n,t),p.defineProperty(n.prototype,"trackId",{get:function(){return this.VA},set:function(t){if(!Tu(t,32))throw new g("Provided track id does not fit in 32 bits.");this.VA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"defaultSampleDescriptionIndex",{get:function(){return this.WA},set:function(t){if(!Tu(t,32))throw new g("Provided default sample description index does not fit in 32 bits.");this.WA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"defaultSampleDuration",{get:function(){return this.UA},set:function(t){if(!Tu(t,32))throw new g("Provided default sample duration does not fit in 32 bits.");this.UA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"defaultSampleSize",{get:function(){return this.GA},set:function(t){if(!Tu(t,32))throw new g("Provided default sample size does not fit in 32 bits.");this.GA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"defaultSampleFlags",{get:function(){return this.HA},set:function(t){if((null==t?void 0:t.samplePaddingValue)&&!Tu(t.samplePaddingValue,3))throw new g("Provided sample padding value does not fit in 3 bits.");if((null==t?void 0:t.sampleDegradationPriority)&&!Tu(t.sampleDegradationPriority,16))throw new g("Provided sample degradation priority does not fit in 16 bits.");this.HA=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+20},n.prototype.serializeBoxContent=function(n){var i;t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.trackId,32),n.writer.writeUInt(this.defaultSampleDescriptionIndex,32),n.writer.writeUInt(this.defaultSampleDuration,32),n.writer.writeUInt(this.defaultSampleSize,32),Ps(null!==(i=this.defaultSampleFlags)&&void 0!==i?i:{},n)},n}(Ru);function Ws(t){var n=t.data,i=$u(n.nextUint32()),e=i.version,r=i.flags,o=n.nextUint32(),u=n.nextUint32(),s=n.nextUint32(),f=n.nextUint32(),c=Ju(new gu(pu.from(n.nextUint8Array(4))));return new zs(o,{sampleDescriptionIndex:u,sampleDuration:s,sampleSize:f,sampleFlags:c},e,r.raw)}var Hs=function(t){function n(){return t.call(this,"mvex")||this}return vu(n,t),n}(us);function Vs(t){for(var n=new Hs,i=0,e=Ku(t.data);i<e.length;i++){var r=e[i];ju(r,"mehd")?n.boxes.push(Fs(r)):ju(r,"trex")?n.boxes.push(Ws(r)):n.boxes.push(ts(r))}return n}x(),gt();var qs=function(t){function n(i,e,r,o,u){void 0===u&&(u=0);var s,f,c,h=this;return(h=t.call(this,"mvhd",o,u)||this).creationTime=i.creation,h.modificationTime=i.modification,h.timescale=i.scale,h.duration=i.duration,h.rate=null!==(s=r.rate)&&void 0!==s?s:n.DEFAULT_RATE,h.volume=null!==(f=r.volume)&&void 0!==f?f:n.DEFAULT_VOLUME,h.matrix=null!==(c=r.matrix)&&void 0!==c?c:Rs,h.ZA=e,h}return vu(n,t),p.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"creationTime",{get:function(){return this.PA},set:function(t){if(!Tu(t,this.bitSize))throw new g("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.PA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"modificationTime",{get:function(){return this.DA},set:function(t){if(!Tu(t,this.bitSize))throw new g("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.DA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"timescale",{get:function(){return this.NA},set:function(t){if(!Tu(t,32))throw new g("Provided sequence number does not fit in 32 bits.");this.NA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"duration",{get:function(){return this.MA},set:function(t){if(!Tu(t,this.bitSize))throw new g("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.MA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"rate",{get:function(){return this.XA},set:function(t){if(!Tu(Eu(t,16),32))throw new g("Provided rate does not fit in 32 bits (fixed 16.16).");this.XA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"volume",{get:function(){return this.zA},set:function(t){if(!Tu(Eu(t,8),16))throw new g("Provided volume does not fit in 16 bits (fixed 8.8).");this.zA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"matrix",{get:function(){return this.qA},set:function(t){if(0!==t.u||0!==t.v||1!==t.w)throw new g("(u, v, w) does not match the required (0, 0, 1)");this.qA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"nextTrackId",{get:function(){return this.ZA},set:function(t){if(0===t)throw new g("NextTrackId cannot be 0.");if(!Tu(t,32))throw new g("NextTrackId cannot exceed 32 bits.");this.ZA=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.bitSize/8*3+4+4+2+2+8+36+24+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.serializeMvhdContent(n),n.writer.writeUInt(Eu(this.rate,16),32),n.writer.writeUInt(Eu(this.volume,8),16),n.writer.writeUInt(0,16),n.writer.writeUInt(0,32),n.writer.writeUInt(0,32),Os(this.matrix,n);for(var i=0;i<6;i++)n.writer.writeUInt(0,32);n.writer.writeUInt(this.nextTrackId,32)},n.DEFAULT_RATE=1,n.DEFAULT_VOLUME=1,n}(Ru),Xs=function(t){function n(n,i,e,r){return void 0===e&&(e={}),void 0===r&&(r=0),t.call(this,n,i,e,0,r)||this}return vu(n,t),n.prototype.serializeMvhdContent=function(t){t.writer.writeUInt(this.creationTime,32),t.writer.writeUInt(this.modificationTime,32),t.writer.writeUInt(this.timescale,32),t.writer.writeUInt(this.duration,32)},n}(qs),js=function(t){function n(n,i,e,r){return void 0===e&&(e={}),void 0===r&&(r=0),t.call(this,n,i,e,1,r)||this}return vu(n,t),n.prototype.serializeMvhdContent=function(t){t.writer.writeUInt(this.creationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.creationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.modificationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.modificationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.timescale,32),t.writer.writeUInt(this.duration.getHighBitsUnsigned(),32),t.writer.writeUInt(this.duration.getLowBitsUnsigned(),32)},n}(qs);function Ys(t){var n=t.data,i=$u(n.nextUint32()),e=i.version,r=i.flags,o=Zu(n,e),u=Iu(n.nextUint32(),16),s=Iu(n.nextUint16(),8);n.skip(2),n.skip(8);var f=Qu(n);n.skip(24);var c=n.nextUint32();return 0===e?new Xs(o,c,{rate:u,volume:s,matrix:f},r.raw):new js(o,c,{rate:u,volume:s,matrix:f},r.raw)}x(),gt(),x(),gt();var Ks=function(t){function n(n,i,e,r,o,u,s){void 0===s&&(s={});var f,c,h,a=this;return a=t.call(this,"tkhd",n,function(t){var n,i,e,r;return{trackEnabled:null===(n=null==t?void 0:t.trackEnabled)||void 0===n||n,trackInMovie:null===(i=null==t?void 0:t.trackInMovie)||void 0===i||i,trackInPreview:null===(e=null==t?void 0:t.trackInPreview)||void 0===e||e,trackSizeIsAspectRatio:null!==(r=null==t?void 0:t.trackSizeIsAspectRatio)&&void 0!==r&&r}}(s))||this,a.creationTime=i.creation,a.modificationTime=i.modification,a.trackId=e,a.duration=i.duration,a.volume=r,a.width=o,a.height=u,a.layer=null!==(f=s.layer)&&void 0!==f?f:0,a.alternateGroup=null!==(c=s.alternateGroup)&&void 0!==c?c:0,a.matrix=null!==(h=s.matrix)&&void 0!==h?h:Rs,a}return vu(n,t),p.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"creationTime",{get:function(){return this.PA},set:function(t){if(!Tu(t,this.bitSize))throw new g("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.PA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"modificationTime",{get:function(){return this.DA},set:function(t){if(!Tu(t,this.bitSize))throw new g("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.DA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"trackId",{get:function(){return this.VA},set:function(t){if(0===t)throw new g("trackId cannot be 0.");if(!Tu(t,32))throw new g("trackId cannot exceed 32 bits.");this.VA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"duration",{get:function(){return this.MA},set:function(t){if(!Tu(t,this.bitSize))throw new g("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.MA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"volume",{get:function(){return this.zA},set:function(t){if(!Tu(Eu(t,8),16))throw new g("Provided volume does not fit in 16 bits (fixed 8.8).");this.zA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"width",{get:function(){return this.YA},set:function(t){if(!Tu(Eu(t,16),32))throw new g("Provided width does not fit in 32 bits (fixed 16.16).");this.YA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"height",{get:function(){return this.KA},set:function(t){if(!Tu(Eu(t,16),32))throw new g("Provided height does not fit in 32 bits (fixed 16.16).");this.KA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"layer",{get:function(){return this.jA},set:function(t){if(!Tu(t,16))throw new g("Provided layer does not fit in 16 bits.");this.jA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"alternateGroup",{get:function(){return this.QA},set:function(t){if(!Tu(t,16))throw new g("Provided alternateGroup does not fit in 16 bits.");this.QA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"matrix",{get:function(){return this.qA},set:function(t){if(0!==t.u||0!==t.v||1!==t.w)throw new g("(u, v, w) does not match the required (0, 0, 1)");this.qA=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.bitSize/8*3+4+4+8+2+2+2+2+36+4+4},n.prototype.serializeFlags=function(t){t.writer.writeUInt(0,20),t.writer.writeBool(this.flags.trackSizeIsAspectRatio),t.writer.writeBool(this.flags.trackInPreview),t.writer.writeBool(this.flags.trackInMovie),t.writer.writeBool(this.flags.trackEnabled)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.serializeTkhdContent(n),n.writer.writeUInt(0,32),n.writer.writeUInt(0,32),n.writer.writeUInt(this.layer,16),n.writer.writeUInt(this.alternateGroup,16),n.writer.writeUInt(Eu(this.volume,8),16),n.writer.writeUInt(0,16),Os(this.matrix,n),n.writer.writeUInt(Eu(this.width,16),32),n.writer.writeUInt(Eu(this.height,16),32)},n}(Ru),Gs=function(t){function n(n,i,e,r,o,u){return t.call(this,0,n,i,e,r,o,u)||this}return vu(n,t),n.prototype.serializeTkhdContent=function(t){t.writer.writeUInt(this.creationTime,32),t.writer.writeUInt(this.modificationTime,32),t.writer.writeUInt(this.trackId,32),t.writer.writeUInt(0,32),t.writer.writeUInt(this.duration,32)},n}(Ks),$s=function(t){function n(n,i,e,r,o,u){return t.call(this,1,n,i,e,r,o,u)||this}return vu(n,t),n.prototype.serializeTkhdContent=function(t){t.writer.writeUInt(this.creationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.creationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.modificationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.modificationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.trackId,32),t.writer.writeUInt(0,32),t.writer.writeUInt(this.duration.getHighBitsUnsigned(),32),t.writer.writeUInt(this.duration.getLowBitsUnsigned(),32)},n}(Ks);function Zs(t){var n,i,e,r,o=t.data,u=$u(o.nextUint32()),s=u.version,f=u.flags,c=f.isSet(8),h=f.isSet(4),a=f.isSet(2),v=f.isSet(1);0===s?(n=o.nextUint32(),i=o.nextUint32(),e=o.nextUint32(),o.skip(4),r=o.nextUint32()):(n=o.nextUint64(),i=o.nextUint64(),e=o.nextUint32(),o.skip(4),r=o.nextUint64()),o.skip(8);var d=o.nextInt16(),l=o.nextInt16(),w=Iu(o.nextInt16(),8);o.skip(2);var b=Qu(o),g=Iu(o.nextUint32(),16),m=Iu(o.nextUint32(),16);return 0===s?new Gs({creation:n,modification:i,duration:r},e,w,g,m,{layer:d,matrix:b,alternateGroup:l,trackSizeIsAspectRatio:c,trackEnabled:v,trackInPreview:h,trackInMovie:a}):new $s({creation:n,modification:i,duration:r},e,w,g,m,{layer:d,matrix:b,alternateGroup:l,trackSizeIsAspectRatio:c,trackEnabled:v,trackInPreview:h,trackInMovie:a})}var Js=function(t){function n(){return t.call(this,"trak")||this}return vu(n,t),n}(us);function Qs(t){for(var n=new Js,i=0,e=Ku(t.data);i<e.length;i++){var r=e[i];ju(r,"tkhd")?n.boxes.push(Zs(r)):ju(r,"mdia")?n.boxes.push(Ts(r)):ju(r,"edts")?n.boxes.push(ws(r)):n.boxes.push(ts(r))}return n}var tf=function(t){function n(){return t.call(this,"moov")||this}return vu(n,t),n}(us);x(),gt(),x(),gt(),x(),gt();var nf=function(t){function n(n,i,e){void 0===e&&(e=0);var r=t.call(this,"tfdt",i,e)||this;return r.baseMediaDecodeTime=n,r}return vu(n,t),p.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"baseMediaDecodeTime",{get:function(){return this.JA},set:function(t){if(!Tu(t,this.bitSize))throw new g("Provided baseMediaDecodeTime does not fit in ".concat(this.bitSize," bits."));this.JA=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.bitSize/8},n}(Ru),ef=function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,0,i)||this}return vu(n,t),n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.baseMediaDecodeTime,32)},n}(nf),rf=function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,1,i)||this}return vu(n,t),n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.baseMediaDecodeTime.getHighBitsUnsigned(),32),n.writer.writeUInt(this.baseMediaDecodeTime.getLowBitsUnsigned(),32)},n}(nf);function of(t){var n=t.data,i=$u(n.nextUint32()),e=i.version,r=i.flags;return 0===e?new ef(n.nextUint32(),r.raw):new rf(n.nextUint64(),r.raw)}x(),gt();var uf=function(t){function n(n,i){void 0===i&&(i=0);var e=t.call(this,"tfhd",i,function(t){return{baseDataOffsetPresent:void 0!==t.baseDataOffset,sampleDescriptionIndexPresent:void 0!==t.sampleDescriptionIndex,defaultSampleDurationPresent:void 0!==t.defaultSampleDuration,defaultSampleSizePresent:void 0!==t.defaultSampleSize,defaultSampleFlagsPresent:void 0!==t.defaultSampleFlags,durationIsEmpty:t.durationIsEmpty,defaultBaseIsMoof:t.defaultBaseIsMoof}}(n))||this;return e.trackId=n.trackId,e.baseDataOffset=n.baseDataOffset,e.sampleDescriptionIndex=n.sampleDescriptionIndex,e.defaultSampleDuration=n.defaultSampleDuration,e.defaultSampleSize=n.defaultSampleSize,e.defaultSampleFlags=n.defaultSampleFlags,e}return vu(n,t),p.defineProperty(n.prototype,"trackId",{get:function(){return this.VA},set:function(t){if(!Tu(t,32))throw new g("Provided track id does not fit in 32 bits.");this.VA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"baseDataOffset",{get:function(){return this.$A},set:function(t){if(void 0===t&&this.flags.baseDataOffsetPresent)throw new g("The base data offset present flag is set.");if(void 0!==t&&!this.flags.baseDataOffsetPresent)throw new g("The base data offset present flag is not set.");if(t&&!Tu(t,64))throw new g("Provided baseDataOffset does not fit in 32 bits.");this.$A=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"sampleDescriptionIndex",{get:function(){return this.tS},set:function(t){if(void 0===t&&this.flags.sampleDescriptionIndexPresent)throw new g("The sample description index flag is set.");if(void 0!==t&&!this.flags.sampleDescriptionIndexPresent)throw new g("The sample description index flag is not set.");if(t&&!Tu(t,32))throw new g("Provided sampleDescriptionIndex does not fit in 32 bits.");this.tS=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"defaultSampleDuration",{get:function(){return this.UA},set:function(t){if(void 0===t&&this.flags.defaultSampleDurationPresent)throw new g("The default sample duration present flag is set.");if(void 0!==t&&!this.flags.defaultSampleDurationPresent)throw new g("The default sample duration present flag is not set.");if(t&&!Tu(t,32))throw new g("Provided defaultSampleDuration does not fit in 32 bits.");this.UA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"defaultSampleSize",{get:function(){return this.GA},set:function(t){if(void 0===t&&this.flags.defaultSampleSizePresent)throw new g("The default sample size present flag is set.");if(void 0!==t&&!this.flags.defaultSampleSizePresent)throw new g("The default sample size present flag is not set.");if(t&&!Tu(t,32))throw new g("Provided defaultSampleSize does not fit in 32 bits.");this.GA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"defaultSampleFlags",{get:function(){return this.HA},set:function(t){if(void 0===t&&this.flags.defaultSampleFlagsPresent)throw new g("The default sample flags present flag is set.");if(void 0!==t&&!this.flags.defaultSampleFlagsPresent)throw new g("The default sample flags present flag is not set.");if((null==t?void 0:t.samplePaddingValue)&&!Tu(t.samplePaddingValue,3))throw new g("Provided sample padding value does not fit in 3 bits.");if((null==t?void 0:t.sampleDegradationPriority)&&!Tu(t.sampleDegradationPriority,16))throw new g("Provided sample degradation priority does not fit in 16 bits.");this.HA=t},enumerable:!1,configurable:!0}),n.prototype.serializeFlags=function(t){t.writer.writeUInt(0,6),t.writer.writeBool(this.flags.defaultBaseIsMoof),t.writer.writeBool(this.flags.durationIsEmpty),t.writer.writeByte(0),t.writer.writeUInt(0,2),t.writer.writeBool(this.flags.defaultSampleFlagsPresent),t.writer.writeBool(this.flags.defaultSampleSizePresent),t.writer.writeBool(this.flags.defaultSampleDurationPresent),t.writer.writeBit(0),t.writer.writeBool(this.flags.sampleDescriptionIndexPresent),t.writer.writeBool(this.flags.baseDataOffsetPresent)},n.prototype.getBoxContentSize=function(){var n=t.prototype.getBoxContentSize.call(this)+4;return this.flags.baseDataOffsetPresent&&(n+=8),this.flags.sampleDescriptionIndexPresent&&(n+=4),this.flags.defaultSampleDurationPresent&&(n+=4),this.flags.defaultSampleSizePresent&&(n+=4),this.flags.defaultSampleFlagsPresent&&(n+=4),n},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.trackId,32),this.flags.baseDataOffsetPresent&&(n.writer.writeUInt(this.baseDataOffset.getHighBitsUnsigned(),32),n.writer.writeUInt(this.baseDataOffset.getLowBitsUnsigned(),32)),this.flags.sampleDescriptionIndexPresent&&n.writer.writeUInt(this.sampleDescriptionIndex,32),this.flags.defaultSampleDurationPresent&&n.writer.writeUInt(this.defaultSampleDuration,32),this.flags.defaultSampleSizePresent&&n.writer.writeUInt(this.defaultSampleSize,32),this.flags.defaultSampleFlagsPresent&&Ps(this.defaultSampleFlags,n)},n}(Ru);function sf(t){var n=t.data,i=n.nextUint8(),e=new gu(pu.from(n.nextUint8Array(3)));e.skipBits(6);var r=Boolean(e.readBit()),o=Boolean(e.readBit());e.skipBits(10);var u=Boolean(e.readBit()),s=Boolean(e.readBit()),f=Boolean(e.readBit());e.skipBits(1);var c=Boolean(e.readBit()),h=Boolean(e.readBit()),a=n.nextUint32(),v=h?n.nextUint64():void 0,d=c?n.nextUint32():void 0,l=f?n.nextUint32():void 0,w=s?n.nextUint32():void 0,b=u?Ju(new gu(pu.from(n.nextUint8Array(4)))):void 0;return new uf({trackId:a,defaultBaseIsMoof:r,durationIsEmpty:o,baseDataOffset:v,sampleDescriptionIndex:d,defaultSampleDuration:l,defaultSampleSize:w,defaultSampleFlags:b},i)}x(),gt();var ff=function(t){function n(n,i,e){var r=t.call(this,"trun",n,function(t){var n,i,e,r;return{dataOffsetPresent:void 0!==t.dataOffset,firstSampleFlagsPresent:void 0!==t.firstSampleFlags,sampleDurationPresent:null!==(n=t.sampleDurationPresent)&&void 0!==n&&n,sampleSizePresent:null!==(i=t.sampleSizePresent)&&void 0!==i&&i,sampleFlagsPresent:null!==(e=t.sampleFlagsPresent)&&void 0!==e&&e,sampleCompositionTimeOffsetsPresent:null!==(r=t.sampleCompositionTimeOffsetsPresent)&&void 0!==r&&r}}(i))||this;return r.dataOffset=i.dataOffset,r.samples=e,r.firstSampleFlags=i.firstSampleFlags,r}return vu(n,t),p.defineProperty(n.prototype,"dataOffset",{get:function(){return this.eS},set:function(t){if(t&&!Tu(t,32))throw new g("Provided data offset does not fit in 32 bits.");this.eS=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"firstSampleFlags",{get:function(){return this.iS},set:function(t){if((null==t?void 0:t.samplePaddingValue)&&!Tu(t.samplePaddingValue,3))throw new g("Provided sample padding value does not fit in 3 bits.");if((null==t?void 0:t.sampleDegradationPriority)&&!Tu(t.sampleDegradationPriority,16))throw new g("Provided sample degradation priority does not fit in 16 bits.");this.iS=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"samples",{get:function(){return this.sS},set:function(t){var n,i;if(!Tu(t.length,32))throw new g("The sample count cannot be represented in 32 bits.");for(var e=0,r=t;e<r.length;e++){var o=r[e];if(void 0===o.duration&&this.flags.sampleDurationPresent)throw new g("The sample duration present flag is set.");if(void 0!==o.duration&&!this.flags.sampleDurationPresent)throw new g("The sample duration present flag is not set.");if(o.duration&&!Tu(o.duration,32))throw new g("Provided sample duration does not fit in 32 bits.");if(void 0===o.size&&this.flags.sampleSizePresent)throw new g("The sample size present flag is set.");if(void 0!==o.size&&!this.flags.sampleSizePresent)throw new g("The sample size present flag is not set.");if(o.size&&!Tu(o.size,32))throw new g("Provided sample size does not fit in 32 bits.");if(void 0===o.flags&&this.flags.sampleFlagsPresent)throw new g("The sample flags present flag is set.");if(void 0!==o.flags&&!this.flags.sampleFlagsPresent)throw new g("The sample flags present flag is not set.");if((null===(n=o.flags)||void 0===n?void 0:n.samplePaddingValue)&&!Tu(o.flags.samplePaddingValue,3))throw new g("Provided sample padding value does not fit in 3 bits.");if((null===(i=o.flags)||void 0===i?void 0:i.sampleDegradationPriority)&&!Tu(o.flags.sampleDegradationPriority,16))throw new g("Provided sample degradation priority does not fit in 16 bits.");if(void 0===o.compositionTimeOffset&&this.flags.sampleCompositionTimeOffsetsPresent)throw new g("The sample compositionTimeOffset present flag is set.");if(void 0!==o.compositionTimeOffset&&!this.flags.sampleCompositionTimeOffsetsPresent)throw new g("The sample compositionTimeOffset present flag is not set.");if(o.compositionTimeOffset&&!Tu(o.compositionTimeOffset,32))throw new g("Provided sample compositionTimeOffset does not fit in 32 bits.")}this.sS=t},enumerable:!1,configurable:!0}),n.prototype.serializeFlags=function(t){t.writer.writeByte(0),t.writer.writeUInt(0,4),t.writer.writeBool(this.flags.sampleCompositionTimeOffsetsPresent),t.writer.writeBool(this.flags.sampleFlagsPresent),t.writer.writeBool(this.flags.sampleSizePresent),t.writer.writeBool(this.flags.sampleDurationPresent),t.writer.writeUInt(0,5),t.writer.writeBool(this.flags.firstSampleFlagsPresent),t.writer.writeBit(0),t.writer.writeBool(this.flags.dataOffsetPresent)},n.prototype.getBoxContentSize=function(){var n=t.prototype.getBoxContentSize.call(this)+4;return this.flags.dataOffsetPresent&&(n+=4),this.flags.firstSampleFlagsPresent&&(n+=4),this.flags.sampleDurationPresent&&(n+=4*this.samples.length),this.flags.sampleSizePresent&&(n+=4*this.samples.length),this.flags.sampleFlagsPresent&&(n+=4*this.samples.length),this.flags.sampleCompositionTimeOffsetsPresent&&(n+=4*this.samples.length),n},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.samples.length,32),this.flags.dataOffsetPresent&&n.writer.writeUInt(this.dataOffset,32),this.flags.firstSampleFlagsPresent&&Ps(this.firstSampleFlags,n);for(var i=0,e=this.samples;i<e.length;i++){var r=e[i];this.flags.sampleDurationPresent&&n.writer.writeUInt(r.duration,32),this.flags.sampleSizePresent&&n.writer.writeUInt(r.size,32),this.flags.sampleFlagsPresent&&Ps(r.flags,n),this.flags.sampleCompositionTimeOffsetsPresent&&(0===this.version?n.writer.writeUInt(r.compositionTimeOffset,32):n.writer.writeInt(r.compositionTimeOffset,32))}},n}(Ru);function cf(t){var n=t.data,i=n.nextUint8(),e=new gu(pu.from(n.nextUint8Array(3)));e.skipBits(12);var r=Boolean(e.readBit()),o=Boolean(e.readBit()),u=Boolean(e.readBit()),s=Boolean(e.readBit());e.skipBits(5);var f=Boolean(e.readBit());e.skipBits(1);var c=Boolean(e.readBit()),h=n.nextUint32(),a={sampleDurationPresent:s,sampleSizePresent:u,sampleFlagsPresent:o,sampleCompositionTimeOffsetsPresent:r};c&&(a.dataOffset=n.nextInt32()),f&&(a.firstSampleFlags=Ju(new gu(pu.from(n.nextUint8Array(4)))));for(var v=[],d=0;d<h;d++){var l={};s&&(l.duration=n.nextUint32()),u&&(l.size=n.nextUint32()),o&&(l.flags=Ju(new gu(pu.from(n.nextUint8Array(4))))),r&&(l.compositionTimeOffset=0===i?n.nextUint32():n.nextInt32()),v.push(l)}return new ff(i,a,v)}var hf=function(t){function n(){return t.call(this,"traf")||this}return vu(n,t),n}(us);function af(t){for(var n=new hf,i=0,e=Ku(t.data);i<e.length;i++){var r=e[i];ju(r,"tfhd")?n.boxes.push(sf(r)):ju(r,"tfdt")?n.boxes.push(of(r)):ju(r,"trun")?n.boxes.push(cf(r)):n.boxes.push(ts(r))}return n}var vf=function(t){function n(){return t.call(this,"moof")||this}return vu(n,t),n}(us);x(),gt();!function(t){function n(n){var i=t.call(this,"mfhd",0,0)||this;return i.sequenceNumber=n,i}vu(n,t),p.defineProperty(n.prototype,"sequenceNumber",{get:function(){return this.nS},set:function(t){if(!Tu(t,32))throw new g("Provided sequence number does not fit in 32 bits.");this.nS=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.sequenceNumber,32)}}(Ru);x(),gt();var df=function(t){function n(n){var i=t.call(this,"frma")||this;return i.codingName=n,i}return vu(n,t),p.defineProperty(n.prototype,"codingName",{get:function(){return this.rS},set:function(t){if(4!==t.length)throw new g("Provided coding name was not 4 characters long.");this.rS=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 4},n.prototype.serializeBoxContent=function(t){t.writer.writeString(this.codingName)},n}(Su);x(),gt();!function(t){function n(n,i){var e=t.call(this,"pasp")||this;return e.hSpacing=n,e.vSpacing=i,e}vu(n,t),p.defineProperty(n.prototype,"hSpacing",{get:function(){return this.oS},set:function(t){if(!Tu(t,32))throw new g("Provided hSpacing does not fit in 32 bits.");this.oS=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"vSpacing",{get:function(){return this.hS},set:function(t){if(!Tu(t,32))throw new g("Provided vSpacing does not fit in 32 bits.");this.hS=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 8},n.prototype.serializeBoxContent=function(t){t.writer.writeUInt(this.hSpacing,32),t.writer.writeUInt(this.vSpacing,32)}}(Su);x(),gt();!function(t){function n(n,i,e){var r=t.call(this,n)||this;return r.sample=i,r.sinf=e,r}vu(n,t),n.prototype.getBoxContentSize=function(){return this.sample.getBoxContentSize()+this.sinf.getSize()},n.prototype.serializeBoxContent=function(t){this.sample.serializeBoxContent(t),t.concat(this.sinf.serialize())}}(us);x(),gt();!function(t){function n(n,i,e){var r=t.call(this,"sinf")||this;return r.schm=i,r.schi=e,r.frma=new df(n),r}vu(n,t),n.prototype.getBoxContentSize=function(){var t,n,i,e;return this.frma.getSize()+(null!==(n=null===(t=this.schm)||void 0===t?void 0:t.getSize())&&void 0!==n?n:0)+(null!==(e=null===(i=this.schi)||void 0===i?void 0:i.getSize())&&void 0!==e?e:0)},n.prototype.serializeBoxContent=function(t){t.concat(this.frma.serialize()),this.schm&&t.concat(this.schm.serialize()),this.schi&&t.concat(this.schi.serialize())}}(Su);x(),gt();var lf=function(t){function n(n,i,e){var r=t.call(this,"saio",n,void 0===e?0:1)||this;return r.entries=i,r.explicitAuxInfoType=e,r}return vu(n,t),p.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"entries",{get:function(){return this.pA},set:function(t){var n=this;if(!Tu(t.length,32))throw new g("Number of entries provided does not fit in 32 bits.");if(t.some((function(t){return!Tu(t,n.bitSize)})))throw new g("Not all provided entries fit in ".concat(this.bitSize," bits."));this.pA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"explicitAuxInfoType",{get:function(){return this.aS},set:function(t){if(void 0===t)this.flags=0;else{if(!Tu(t.auxInfoType,32))throw new g("Provided auxInfoType does not fit in 32 bits.");if(!Tu(t.auxInfoTypeParameter,32))throw new g("Provided auxInfoTypeParameter does not fit in 32 bits.");this.flags=1}this.aS=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+(void 0===this.explicitAuxInfoType?0:8)+4+this.entries.length*this.bitSize/8},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),void 0!==this.explicitAuxInfoType&&(n.writer.writeUInt(this.explicitAuxInfoType.auxInfoType,32),n.writer.writeUInt(this.explicitAuxInfoType.auxInfoTypeParameter,32)),n.writer.writeUInt(this.entries.length,32),this.serializeSaioContent(n)},n}(Ru);(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}vu(n,t),n.prototype.serializeSaioContent=function(t){for(var n=0,i=this.entries;n<i.length;n++){var e=i[n];t.writer.writeUInt(e,32)}}})(lf),function(t){function n(){return null!==t&&t.apply(this,arguments)||this}vu(n,t),n.prototype.serializeSaioContent=function(t){for(var n=0,i=this.entries;n<i.length;n++){var e=i[n];t.writer.writeUInt(e.getHighBitsUnsigned(),32),t.writer.writeUInt(e.getLowBitsUnsigned(),32)}}}(lf);x(),gt();!function(t){function n(n,i,e){var r=t.call(this,"saiz",0,void 0===e?0:1)||this;return r.defaultSampleInfoSize=n,r.sampleInfoSizes=i,r.explicitAuxInfoType=e,r}vu(n,t),p.defineProperty(n.prototype,"defaultSampleInfoSize",{get:function(){return this.uS},set:function(t){if(!Tu(t,8))throw new g("Provided defaultSampleInfoSize does not fit in a single byte.");this.uS=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"sampleInfoSizes",{get:function(){return this.cS},set:function(t){if(!Tu(t.length,32))throw new g("Number of sampleInfoSizes provided does not fit in 32 bits.");if(t.some((function(t){return!Tu(t,8)})))throw new g("Not all provided sampleInfoSizes fit in a byte.");this.cS=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"explicitAuxInfoType",{get:function(){return this.aS},set:function(t){if(void 0===t)this.flags=0;else{if(!Tu(t.auxInfoType,32))throw new g("Provided auxInfoType does not fit in 32 bits.");if(!Tu(t.auxInfoTypeParameter,32))throw new g("Provided auxInfoTypeParameter does not fit in 32 bits.");this.flags=1}this.aS=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+(void 0===this.explicitAuxInfoType?0:8)+1+4+(0!==this.defaultSampleInfoSize?0:this.sampleInfoSizes.length)},n.prototype.serializeBoxContent=function(n){if(0!==this.defaultSampleInfoSize&&this.sampleInfoSizes.length>0)throw new g("Both a default size and specific sizes are provided. This is prohibited.");t.prototype.serializeBoxContent.call(this,n),void 0!==this.explicitAuxInfoType&&(n.writer.writeUInt(this.explicitAuxInfoType.auxInfoType,32),n.writer.writeUInt(this.explicitAuxInfoType.auxInfoTypeParameter,32)),n.writer.writeByte(this.defaultSampleInfoSize),n.writer.writeUInt(this.sampleInfoSizes.length,32);for(var i=0,e=this.sampleInfoSizes;i<e.length;i++){var r=e[i];n.writer.writeByte(r)}}}(Ru);x(),gt();!function(t){function n(n){var i=t.call(this,"sdtp",0,0)||this;return i.samples=n,i}vu(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.samples.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n);for(var i=0,e=this.samples;i<e.length;i++){Ns(e[i],n)}}}(Ru);x(),gt();!function(t){function n(n){return t.call(this,"stsd",n,0)||this}vu(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.boxes.length,32)}}(cs);x(),gt();var wf=function(t){function n(n,i,e){var r=t.call(this,"sgpd",n,0)||this;return r.entries=e,r.groupingType=i,r}return vu(n,t),p.defineProperty(n.prototype,"groupingType",{get:function(){return this.lS},set:function(t){if(4!==t.length)throw new g("The provided groupingType does not equal 4 characters.");this.lS=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeString(this.groupingType),this.serializeVersionBoxContent(n),n.writer.writeUInt(this.entries.length,32);for(var i=0,e=this.entries;i<e.length;i++){var r=e[i];this.serializeEntryBoxContent(n,r)}},n.prototype.serializeEntryBoxContent=function(t,n){n.serializeBoxContent(t)},n}(Ru);(function(t){function n(n,i){return t.call(this,0,n,i)||this}vu(n,t),n.prototype.serializeVersionBoxContent=function(t){}})(wf),function(t){function n(n,i,e){var r=t.call(this,1,n,e)||this;return r.defaultLength=i,r}vu(n,t),p.defineProperty(n.prototype,"defaultLength",{get:function(){return this.dS},set:function(t){if(!Tu(t,32))throw new g("The provided defaultLength does not fit in 32 bits.");this.dS=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+this.entries.length*(this.defaultLength||4)},n.prototype.serializeVersionBoxContent=function(t){t.writer.writeUInt(this.defaultLength,32)},n.prototype.serializeEntryBoxContent=function(t,n){0===this.defaultLength&&t.writer.writeUInt(n.getBoxContentSize(),32),n.serializeBoxContent(t)}}(wf),function(t){function n(n,i,e,r){void 0===r&&(r=0);var o=this;if(n<2)throw new g("This constructor is only meant for versions 2 and up.");return(o=t.call(this,n,i,e)||this).defaultSampleDescriptionIndex=r,o}vu(n,t),p.defineProperty(n.prototype,"defaultSampleDescriptionIndex",{get:function(){return this.WA},set:function(t){if(!Tu(t,32))throw new g("The provided defaultSampleDescriptionIndex does not fit in 32 bits.");this.WA=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4},n.prototype.serializeVersionBoxContent=function(t){t.writer.writeUInt(this.defaultSampleDescriptionIndex,32)}}(wf);x(),gt();(function(t){function n(n){void 0===n&&(n=[]);var i=t.call(this,"stsz",0,0)||this;return i.sampleSizes=n,i}vu(n,t),p.defineProperty(n.prototype,"sampleSizes",{get:function(){return this.fS},set:function(t){if(!Tu(t.length,32))throw new g("Number of allowed samples cannot fit in 32 bits.");if(t.some((function(t){return!Tu(t,32)})))throw new g("Not all sampleSizes can be represented in 32 bits.");this.fS=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4+4*this.sampleSizes.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(0,32),n.writer.writeUInt(this.sampleSizes.length,32);for(var i=0,e=this.sampleSizes;i<e.length;i++){var r=e[i];n.writer.writeUInt(r,32)}}})(Ru),function(t){function n(n,i){void 0===n&&(n=0),void 0===i&&(i=0);var e=t.call(this,"stsz",0,0)||this;return e.defaultSampleSize=n,e.samples=i,e}vu(n,t),p.defineProperty(n.prototype,"defaultSampleSize",{get:function(){return this.GA},set:function(t){if(!Tu(t,32))throw new g("Provided defaultSampleSize does not fit in 32 bits.");this.GA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"samples",{get:function(){return this.sS},set:function(t){if(!Tu(t,32))throw new g("Number of allowed samples cannot fit in 32 bits.");this.sS=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.defaultSampleSize,32),n.writer.writeUInt(this.samples,32)}}(Ru);x(),gt();!function(t){function n(){return t.call(this,"stbl")||this}vu(n,t)}(us);x(),gt();!function(t){function n(n){var i=t.call(this,"stsc",0,0)||this;return i.entries=n,i}vu(n,t),p.defineProperty(n.prototype,"entries",{get:function(){return this.pA},set:function(t){if(!Tu(t.length,32))throw new g("Number of allowed entries cannot fit in 32 bits.");if(t.some((function(t){return!Tu(t.firstChunk,32)||!Tu(t.sampleDescriptionIndex,32)||!Tu(t.samplesPerChunk,32)})))throw new g("Not all entries can be represented in 96 bits.");this.pA=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+12*this.entries.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.entries.length,32);for(var i=0,e=this.entries;i<e.length;i++){var r=e[i];n.writer.writeUInt(r.firstChunk,32),n.writer.writeUInt(r.samplesPerChunk,32),n.writer.writeUInt(r.sampleDescriptionIndex,32)}}}(Ru);x(),gt();!function(t){function n(){return t.call(this,"schi")||this}vu(n,t)}(us);x(),gt();!function(t){function n(n,i,e){var r=t.call(this,"schm",0,void 0===e?0:1)||this;return r.schemeType=n,r.schemeVersion=i,r.schemeUri=e,r}vu(n,t),p.defineProperty(n.prototype,"schemeType",{get:function(){return this._S},set:function(t){if(4!==t.length)throw new g("The provided schemeType does not have a length of 4.");this._S=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"schemeVersion",{get:function(){return this.vS},set:function(t){if(!Tu(t,32))throw new g("The provided schemeVersion does not fit in 23 bits.");this.vS=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"schemeUri",{get:function(){return this.mS},set:function(t){if(t&&4!==t.length)throw new g("The provided schemeUri does not have a length of 4.");this.flags=void 0===t?0:1,this.mS=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4+(void 0===this.schemeUri?0:this.schemeUri.length+1)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeString(this.schemeType),n.writer.writeUInt(this.schemeVersion,32),this.schemeUri&&(n.writer.writeString(this.schemeUri),n.writer.writeByte(0))}}(Ru);x(),gt();var bf=function(t){function n(n,i,e,r,o,u,s){void 0===s&&(s=0);var f=t.call(this,"sidx",n,s)||this;return f.referenceId=i,f.timescale=e,f.earliestPresentationTime=r,f.firstOffset=o,f.references=u,f}return vu(n,t),p.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"referenceId",{get:function(){return this.gS},set:function(t){if(!Tu(t,32))throw new g("Provided referenceId does not fit in 32 bits.");this.gS=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"timescale",{get:function(){return this.NA},set:function(t){if(!Tu(t,32))throw new g("Provided timescale does not fit in 32 bits.");this.NA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"earliestPresentationTime",{get:function(){return this.pS},set:function(t){if(!Tu(t,this.bitSize))throw new g("Provided earliestPresentationTime does not fit in ".concat(this.bitSize," bits."));this.pS=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"firstOffset",{get:function(){return this.wS},set:function(t){if(!Tu(t,this.bitSize))throw new g("Provided timescale does not fit in ".concat(this.bitSize," bits."));this.wS=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"references",{get:function(){return this.yS},set:function(t){if(!Tu(t.length,16))throw new g("The number of provided reference items does not fit in 16 bits.");for(var n=0,i=t;n<i.length;n++){var e=i[n];if(!Tu(e.referencedSize,31))throw new g("Provided referenced size does not fit in 31 bits.");if(!Tu(e.subsegmentDuration,32))throw new g("Provided subsegment duration does not fit in 31 bits.");if(!Tu(e.sapType,3))throw new g("Provided SAP type does not fit in 3 bits.");if(!Tu(e.sapDeltaTime,28))throw new g("Provided SAP delta time does not fit in 28 bits.")}this.yS=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4+this.bitSize/8*2+2+2+12*this.references.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.referenceId,32),n.writer.writeUInt(this.timescale,32),this.serializeSidxBoxContent(n),n.writer.writeUInt(0,16),n.writer.writeUInt(this.references.length,16);for(var i=0,e=this.references;i<e.length;i++){var r=e[i];n.writer.writeBit(r.referenceType),n.writer.writeUInt(r.referencedSize,31),n.writer.writeUInt(r.subsegmentDuration,32),n.writer.writeBool(r.startsWithSap),n.writer.writeUInt(r.sapType,3),n.writer.writeUInt(r.sapDeltaTime,28)}},n}(Ru),gf=function(t){function n(n,i,e,r,o,u){return void 0===u&&(u=0),t.call(this,0,n,i,e,r,o,u)||this}return vu(n,t),n.prototype.serializeSidxBoxContent=function(t){t.writer.writeUInt(this.earliestPresentationTime,32),t.writer.writeUInt(this.firstOffset,32)},n}(bf),mf=function(t){function n(n,i,e,r,o,u){return void 0===u&&(u=0),t.call(this,1,n,i,e,r,o,u)||this}return vu(n,t),n.prototype.serializeSidxBoxContent=function(t){t.writer.writeUInt(this.earliestPresentationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.earliestPresentationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.firstOffset.getHighBitsUnsigned(),32),t.writer.writeUInt(this.firstOffset.getLowBitsUnsigned(),32)},n}(bf);x(),gt();!function(t){function n(n,i,e){return t.call(this,"styp",n,i,e)||this}vu(n,t)}(bs);x(),gt();!function(t){function n(n){void 0===n&&(n=0);var i=t.call(this,"smhd",0,0)||this;return i.balance=n,i}vu(n,t),p.defineProperty(n.prototype,"balance",{get:function(){return this.bS},set:function(t){if(t<-1||t>1)throw new g("Provided balance does not fit in the allowed range [-1, 1].");if(!Tu(Eu(t,8),16))throw new g("Provided balance does not fit in 16 bits (fixed 8.8).");this.bS=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+2+2},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(Eu(this.balance,8),16),n.writer.writeUInt(0,16)}}(Ru);x(),gt();!function(t){function n(n){var i=t.call(this,"stss",0,0)||this;return i.entries=n,i}vu(n,t),p.defineProperty(n.prototype,"entries",{get:function(){return this.pA},set:function(t){if(!Tu(t.length,32))throw new g("Number of allowed entries cannot fit in 32 bits.");if(t.some((function(t){return!Tu(t,32)})))throw new g("Not all entries can be represented in 32 bits.");this.pA=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4*this.entries.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.entries.length,32);for(var i=0,e=this.entries;i<e.length;i++){var r=e[i];n.writer.writeUInt(r,32)}}}(Ru);x(),gt();!function(t){function n(n){var i=t.call(this,"stts",0,0)||this;return i.entries=n,i}vu(n,t),p.defineProperty(n.prototype,"entries",{get:function(){return this.pA},set:function(t){if(!Tu(t.length,32))throw new g("Number of allowed entries cannot fit in 32 bits.");if(t.some((function(t){return!Tu(t.sampleCount,32)||!Tu(t.sampleDelta,32)})))throw new g("Not all entries can be represented in 64 bits.");this.pA=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+8*this.entries.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.entries.length,32);for(var i=0,e=this.entries;i<e.length;i++){var r=e[i];n.writer.writeUInt(r.sampleCount,32),n.writer.writeUInt(r.sampleDelta,32)}}}(Ru);x(),gt();!function(t){function n(n){var i=t.call(this,"trep",0,0)||this;return i.trackId=n,i}vu(n,t),p.defineProperty(n.prototype,"trackId",{get:function(){return this.VA},set:function(t){if(!Tu(t,32))throw new g("The provided trackId does not fit in 32 bits.");this.VA=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.trackId,32)}}(cs);x(),gt();!function(t){function n(){return t.call(this,"udta")||this}vu(n,t)}(us);x(),gt();var pf={red:0,green:0,blue:0};!function(t){function n(n,i){void 0===n&&(n=0),void 0===i&&(i=pf);var e=t.call(this,"vmhd",0,1)||this;return e.graphicsMode=n,e.opColor=i,e}vu(n,t),p.defineProperty(n.prototype,"opColor",{get:function(){return this.SS},set:function(t){if(!Tu(t.red,16)||!Tu(t.green,16)||!Tu(t.blue,16))throw new g("Not all colors could be represented in 16 bits.");this.SS=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+2+6},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.graphicsMode,16),n.writer.writeUInt(this.opColor.red,16),n.writer.writeUInt(this.opColor.green,16),n.writer.writeUInt(this.opColor.blue,16)}}(Ru);x(),gt();var yf=function(t){function n(n,i,e,r,o){void 0===r&&(r={}),void 0===o&&(o=void 0);var u,s,f,c,h,a=this;return(a=t.call(this,n,i)||this).width=e.width,a.height=e.height,a.horizontalResolution=null!==(u=e.horizontal)&&void 0!==u?u:72,a.verticalResolution=null!==(s=e.vertical)&&void 0!==s?s:72,a.compressorName=null!==(f=r.compressorName)&&void 0!==f?f:"",a.frameCount=null!==(c=r.frameCount)&&void 0!==c?c:1,a.depth=null!==(h=r.depth)&&void 0!==h?h:24,a.clap=r.clap,a.pasp=r.pasp,a.extra=o,a}return vu(n,t),p.defineProperty(n.prototype,"width",{get:function(){return this.YA},set:function(t){if(!Tu(t,16))throw new g("Provided width does not fit in 16 bits.");this.YA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"height",{get:function(){return this.KA},set:function(t){if(!Tu(t,16))throw new g("Provided height does not fit in 16 bits.");this.KA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"horizontalResolution",{get:function(){return this.TS},set:function(t){if(!Tu(Eu(t,16),32))throw new g("Provided horizontalResolution does not fit in 32 bits (fixed 16.16).");this.TS=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"verticalResolution",{get:function(){return this.kS},set:function(t){if(!Tu(Eu(t,16),32))throw new g("Provided verticalResolution does not fit in 32 bits (fixed 16.16).");this.kS=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"compressorName",{get:function(){return this.ES},set:function(t){if(t.length>31)throw new g("The provided compressorName should at most be 31 characters long.");this.ES=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"frameCount",{get:function(){return this.xS},set:function(t){if(!Tu(t,16))throw new g("Provided frameCount does not fit in 16 bits.");this.xS=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"depth",{get:function(){return this.RS},set:function(t){if(!Tu(t,16))throw new g("Provided depth does not fit in 16 bits.");this.RS=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){var n,i,e,r,o,u;return t.prototype.getBoxContentSize.call(this)+2+2+12+2+2+4+4+4+2+32+2+2+(null!==(i=null===(n=this.clap)||void 0===n?void 0:n.getSize())&&void 0!==i?i:0)+(null!==(r=null===(e=this.pasp)||void 0===e?void 0:e.getSize())&&void 0!==r?r:0)+(null!==(u=null===(o=this.extra)||void 0===o?void 0:o.length)&&void 0!==u?u:0)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(0,16),n.writer.writeUInt(0,16),n.writer.writeUInt(0,32),n.writer.writeUInt(0,32),n.writer.writeUInt(0,32),n.writer.writeUInt(this.width,16),n.writer.writeUInt(this.height,16),n.writer.writeUInt(Eu(this.horizontalResolution,16),32),n.writer.writeUInt(Eu(this.verticalResolution,16),32),n.writer.writeUInt(0,32),n.writer.writeUInt(this.frameCount,16),n.writer.writeByte(this.compressorName.length),n.writer.writeString(this.compressorName);for(var i=0;i<31-this.compressorName.length;i++)n.writer.writeByte(0);n.writer.writeUInt(this.depth,16),n.writer.writeInt(-1,16),this.clap&&n.concat(this.clap.serialize()),this.pasp&&n.concat(this.pasp.serialize()),this.extra&&ku(n.writer,this.extra)},n}(ss);x(),gt(),x(),gt();!function(t){function n(n){var i=t.call(this,"esds",0,0)||this;return i.esDescriptor=n,i}vu(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+(this.esDescriptor instanceof E?this.esDescriptor.length:this.esDescriptor.getSize())},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.esDescriptor instanceof E?n.concat(pu.from(this.esDescriptor)):this.esDescriptor.serialize(n)}}(Ru);x(),gt();!function(t){function n(n,i,e){var r=t.call(this,"mp4a",n,e)||this;return r.esd=i,r}vu(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.esd.getSize()},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.concat(this.esd.serialize())}}(fs);x(),gt();!function(t){function n(n,i,e,r){void 0===r&&(r={});var o=t.call(this,"mp4v",n,i,r)||this;return o.esDescriptor=e,o}vu(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.esDescriptor.getSize()},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.esDescriptor.serialize(n)}}(yf);x(),gt();!function(t){function n(n,i){var e=t.call(this,"mp4s",n)||this;return e.esDescriptor=i,e}vu(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.esDescriptor.getSize()},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.esDescriptor.serialize(n)}}(ss);x(),gt(),x(),gt();!function(t){function n(n){var i=t.call(this,"avcC")||this;return i.decoderConfig=n,i}vu(n,t),n.prototype.getBoxContentSize=function(){return this.decoderConfig.getSize()},n.prototype.serializeBoxContent=function(t){this.decoderConfig.serialize(t)}}(Su);x(),gt();!function(){function t(t,n,i,e,r,o){void 0===o&&(o=1),this.lengthSizeMinusOne=i,this.version=o,this.profileIndication=t.indication,this.profileCompatibility=t.compatibility,this.levelIndication=n,this.spsSets=e,this.ppsSets=r}p.defineProperty(t.prototype,"version",{get:function(){return this.IS},set:function(t){if(!Tu(t,8))throw new g("Provided version does not fit in 8 bits.");this.IS=t},enumerable:!1,configurable:!0}),p.defineProperty(t.prototype,"profileIndication",{get:function(){return this.CS},set:function(t){if(!Tu(t,8))throw new g("Provided profileIndication does not fit in 8 bits.");this.CS=t},enumerable:!1,configurable:!0}),p.defineProperty(t.prototype,"profileCompatibility",{get:function(){return this.PS},set:function(t){if(!Tu(t,8))throw new g("Provided profileCompatibility does not fit in 8 bits.");this.PS=t},enumerable:!1,configurable:!0}),p.defineProperty(t.prototype,"levelIndication",{get:function(){return this.DS},set:function(t){if(!Tu(t,8))throw new g("Provided levelIndication does not fit in 8 bits.");this.DS=t},enumerable:!1,configurable:!0}),p.defineProperty(t.prototype,"spsSets",{get:function(){return this.NS},set:function(t){if(!Tu(t.length,5))throw new g("Provided number of spsSets exceeds the max (32)");this.NS=t},enumerable:!1,configurable:!0}),p.defineProperty(t.prototype,"ppsSets",{get:function(){return this.MS},set:function(t){if(!Tu(t.length,8))throw new g("Provided number of ppsSets exceeds the max (256)");this.MS=t},enumerable:!1,configurable:!0}),t.prototype.getSize=function(){return 7+2*this.spsSets.length+this.spsSets.reduce((function(t,n){return t+n.length}),0)+2*this.ppsSets.length+this.ppsSets.reduce((function(t,n){return t+n.length}),0)},t.prototype.serialize=function(t){t.writer.writeByte(this.version),t.writer.writeByte(this.profileIndication),t.writer.writeByte(this.profileCompatibility),t.writer.writeByte(this.levelIndication),t.writer.writeBits([1,1,1,1,1,1]),t.writer.writeUInt(this.lengthSizeMinusOne,2),t.writer.writeBits([1,1,1]),t.writer.writeUInt(this.spsSets.length,5);for(var n=0,i=this.spsSets;n<i.length;n++){var e=i[n];t.writer.writeUInt(e.length,16),t.concat(pu.from(e))}t.writer.writeByte(this.ppsSets.length);for(var r=0,o=this.ppsSets;r<o.length;r++){var u=o[r];t.writer.writeUInt(u.length,16),t.concat(pu.from(u))}}}();x(),gt();!function(t){function n(n,i,e,r,o){void 0===r&&(r={}),void 0===o&&(o=void 0);var u=t.call(this,"avc1",n,i,r)||this;return u.configurationBox=e,u.bitrateBox=o,u}vu(n,t),n.prototype.getBoxContentSize=function(){var n,i;return t.prototype.getBoxContentSize.call(this)+this.configurationBox.getSize()+(null!==(i=null===(n=this.bitrateBox)||void 0===n?void 0:n.getSize())&&void 0!==i?i:0)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.concat(this.configurationBox.serialize()),this.bitrateBox&&n.concat(this.bitrateBox.serialize())}}(yf);x(),gt();!function(t){function n(n,i,e){var r=t.call(this,"btrt")||this;return r.bufferSizeDb=n,r.max=i,r.avg=e,r}vu(n,t),p.defineProperty(n.prototype,"bufferSizeDb",{get:function(){return this.hA},set:function(t){if(!Tu(t,32))throw new g("Provided bufferSizeDb does not fit in 32 bits.");this.hA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"max",{get:function(){return this.M_},set:function(t){if(!Tu(t,32))throw new g("Provided max does not fit in 32 bits.");this.M_=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"avg",{get:function(){return this.LS},set:function(t){if(!Tu(t,32))throw new g("Provided avg does not fit in 32 bits.");this.LS=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 12},n.prototype.serializeBoxContent=function(t){t.writer.writeUInt(this.bufferSizeDb,32),t.writer.writeUInt(this.max,32),t.writer.writeUInt(this.avg,32)}}(Su);x(),gt(),x(),gt(),x(),gt();var _f=function(t){function n(n,i){var e,r,o,u,s=this;if(s=t.call(this,"tenc",n,0)||this,i.perSampleIvSize>0&&(null!==(r=null===(e=i.constantIv)||void 0===e?void 0:e.length)&&void 0!==r?r:0)>0)throw new g("Either perSampleSize should be > 0 or constantIv should be defined. Not both.");return s.kId=i.kId,s.isProtected=null!==(o=i.isProtected)&&void 0!==o?o:1,i.perSampleIvSize>0?s.perSampleIvSize=i.perSampleIvSize:s.constantIv=null!==(u=i.constantIv)&&void 0!==u?u:new E(0),s}return vu(n,t),p.defineProperty(n.prototype,"isProtected",{get:function(){return this.FS},set:function(t){if(!Tu(t,8))throw new g("Provided isProtected does not fit in 1 byte.");this.FS=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"perSampleIvSize",{get:function(){return this.VS},set:function(t){if(![8,16].includes(t))throw new g("Provided perSampleIvSize does not match any allowed value [8, 16].");this.VS=t,this.WS=new E(0)},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"kId",{get:function(){return this.US},set:function(t){if(16!==t.length)throw new g("Provided kId length is not 16.");this.US=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"constantIv",{get:function(){return this.WS},set:function(t){if(![8,16].includes(t.length))throw new g("Provided constant IV length does not match any allowed value [8, 16].");this.WS=t,this.VS=0},enumerable:!1,configurable:!0}),n.prototype.getTencHeaderSize=function(){return 20+(this.constantIv.length>0?1+this.constantIv.length:0)},n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.getTencHeaderSize()},n.prototype.serializeVersionBoxContent=function(t){t.writer.writeByte(0)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.serializeOwnContent(n)},n.prototype.serializeOwnContent=function(t){t.writer.writeByte(0),this.serializeVersionBoxContent(t),t.writer.writeByte(this.isProtected),t.writer.writeByte(this.perSampleIvSize),ku(t.writer,this.kId),0===this.perSampleIvSize&&(t.writer.writeByte(this.constantIv.length),ku(t.writer,this.constantIv))},n}(Ru),Sf=(function(t){function n(n){return t.call(this,0,n)||this}vu(n,t)}(_f),function(t){function n(n){var i=t.call(this,1,n)||this;return i.cryptByteBlocks=n.cryptByteBlock,i.skipByteBlocks=n.skipByteBlock,i}return vu(n,t),p.defineProperty(n.prototype,"cryptByteBlocks",{get:function(){return this.GS},set:function(t){if(!Tu(t,4))throw new g("Provided cryptByteBlocks does not fit in 4 bits.");this.GS=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"skipByteBlocks",{get:function(){return this.HS},set:function(t){if(!Tu(t,4))throw new g("Provided skipByteBlocks does not fit in 4 bits.");this.HS=t},enumerable:!1,configurable:!0}),n.prototype.serializeVersionBoxContent=function(t){t.writer.writeUInt(this.cryptByteBlocks,4),t.writer.writeUInt(this.skipByteBlocks,4)},n}(_f));!function(t){function n(n){var i=t.call(this)||this;return i.tencBox=new Sf(n),i}vu(n,t),n.prototype.serializeBoxContent=function(t){this.tencBox.serializeOwnContent(t)},n.prototype.getBoxContentSize=function(){return this.tencBox.getTencHeaderSize()}}(As);function Tf(t){return void 0!==t.iv}function Ef(t){return void 0!==t.subsamples}x(),gt();!function(t){function n(n){var i=t.call(this,"senc",0,{useSubsampleEncryption:!1})||this;return i.samples=n,i}vu(n,t),p.defineProperty(n.prototype,"samples",{get:function(){return this.sS},set:function(t){var n;if(!Tu(t.length,32))throw new g("The number of samples provided does not fit in 32 bits.");for(var i=0,e=t;i<e.length;i++){var r=e[i];if(Tf(r)&&![8,16].includes(r.iv.length))throw new g("IV of one of the provided samples did not satisfy the required length constraints. [8, 16]");if(void 0===n&&(n=Ef(r)),!0===n&&!Ef(r)||!1===n&&Ef(r))throw new g("Mix of samples with and without subsamples detected.");if(Ef(r)){if(!Tu(r.subsamples.length,16))throw new g("Subsample length of one of the provided samples does not fit in 16 bits.");for(var o=0,u=r.subsamples;o<u.length;o++){var s=u[o];if(!Tu(s.clearData,16))throw new g("Subsample clearData of one of the provided samples does not fit in 16 bits.");if(!Tu(s.protectedData,23))throw new g("Subsample protectedData of one of the provided samples does not fit in 23 bits.")}}}this.flags.useSubsampleEncryption=null!=n&&n,this.sS=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){for(var n=0,i=0,e=this.samples;i<e.length;i++){var r=e[i];Tf(r)&&(n+=r.iv.length),Ef(r)&&(n+=2+6*r.subsamples.length)}return t.prototype.getBoxContentSize.call(this)+4+n},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.samples.length,32);for(var i=0,e=this.samples;i<e.length;i++){var r=e[i];if(Tf(r)&&ku(n.writer,r.iv),Ef(r)){n.writer.writeUInt(r.subsamples.length,16);for(var o=0,u=r.subsamples;o<u.length;o++){var s=u[o];n.writer.writeUInt(s.clearData,16),n.writer.writeUInt(s.protectedData,32)}}}},n.prototype.serializeFlags=function(t){t.writer.writeUInt(this.flags.useSubsampleEncryption?2:0,24)}}(Ru);x(),gt(),x(),gt();!function(t){function n(n,i,e,r,o){var u=t.call(this,"emsg",0,0)||this;return u.schemeIdUri=n,u.value=i,u.data=o,u.id=e,u.timescale=r.timescale,u.presentationTimeDelta=r.presentationTimeDelta,u.eventDuration=r.eventDuration,u}vu(n,t),p.defineProperty(n.prototype,"timescale",{get:function(){return this.NA},set:function(t){if(!Tu(t,32))throw new g("The provided timescale does not fit in 32 bits.");this.NA=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"presentationTimeDelta",{get:function(){return this.ZS},set:function(t){if(!Tu(t,32))throw new g("The provided presentationTimeDelta does not fit in 32 bits.");this.ZS=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"eventDuration",{get:function(){return this.XS},set:function(t){if(!Tu(t,32))throw new g("The provided eventDuration does not fit in 32 bits.");this.XS=t},enumerable:!1,configurable:!0}),p.defineProperty(n.prototype,"id",{get:function(){return this.zS},set:function(t){if(!Tu(t,32))throw new g("The provided id does not fit in 32 bits.");this.zS=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.schemeIdUri.length+1+this.value.length+1+16+this.data.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeString(this.schemeIdUri),n.writer.writeByte(0),n.writer.writeString(this.value),n.writer.writeByte(0),n.writer.writeUInt(this.timescale,32),n.writer.writeUInt(this.presentationTimeDelta,32),n.writer.writeUInt(this.eventDuration,32),n.writer.writeUInt(this.id,32),n.concat(pu.from(this.data))}}(Ru);x(),gt(),x(),gt(),x(),gt();!function(){function t(){this.boxes=[]}t.prototype.serialize=function(){for(var t=new _u,n=0,i=this.boxes;n<i.length;n++){var e=i[n];t.concat(e.serialize())}return t.toRangedBuffer()}}();function kf(t,n){return function(i){var e=new Xu(function(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}(i),new qu),r=function(t,n){for(var i=t.data,e=t.cursor;e.offset<i.byteLength;){var r=Gu(i,e);if(!r.complete)return;if(ju(r.box,n))return r.box}}(e,t);if(!r)throw new g("".concat(t," box not found"));return n(r)}}kf("moov",(function(t){for(var n=new tf,i=0,e=Ku(t.data);i<e.length;i++){var r=e[i];ju(r,"mvhd")?n.boxes.push(Ys(r)):ju(r,"trak")?n.boxes.push(Qs(r)):ju(r,"mvex")?n.boxes.push(Vs(r)):ju(r,"pssh")?n.boxes.push(Bs(r)):n.boxes.push(ts(r))}return n})),kf("sidx",(function(t){var n,i,e=t.data,r=$u(e.nextUint32()),o=r.version,u=r.flags,s=e.nextUint32(),f=e.nextUint32();0===o?(n=e.nextUint32(),i=e.nextUint32()):(n=e.nextUint64(),i=e.nextUint64()),e.skip(2);for(var c=e.nextUint16(),h=[],a=0;a<c;a++){var v=new gu(pu.from(e.nextUint8Array(12))),d=v.readBit(),l=v.readUInt(31),w=v.readUInt(32),b=Boolean(v.readBit()),g=v.readUInt(3),m=v.readUInt(28);h.push({referenceType:d,referencedSize:l,subsegmentDuration:w,startsWithSap:b,sapType:g,sapDeltaTime:m})}return 0===o?new gf(s,f,n,i,h,u.raw):new mf(s,f,n,i,h,u.raw)})),kf("moof",(function(t){for(var n=new vf,i=0,e=Ku(t.data);i<e.length;i++){var r=e[i];ju(r,"traf")?n.boxes.push(af(r)):ju(r,"pssh")?n.boxes.push(Bs(r)):n.boxes.push(ts(r))}return n}));var If=kf("pssh",Bs),Rf=function(t){function n(n,i){var e;(e=t.call(this)||this).KS=n,e.nT=i,e.JS=!1,e.rT=function(){e.iT()},e.oT=function(t){e._o(new No(e,t.messageType,fu(e.nT,t.message)))},e.hT=function(){e.JS=!0,e.jS.Nb>0&&(e.jS.Fb(),e._o(new Oo(e.jS))),e.KS.removeEventListener("keystatuseschange",e.rT),e.KS.removeEventListener("message",e.oT)},e.KS.addEventListener("keystatuseschange",e.rT),e.KS.addEventListener("message",e.oT),e.jS=new uu;var r=[];return e.KS.closed&&r.push(J.resolve(e.KS.closed)),e.$S=new su,r.push(e.$S.Ub),e.Vd=J.race(r).then(e.hT,e.hT),e.iT(),e}_t(n,t);var i=n.prototype;return i.Ws=function(){if(this.JS)return this.Vd;var t=[];return t.push(J.resolve(this.KS.close())),t.push(_o(1e3)),this.$S.Qw(J.race(t).catch(Of)),this.JS=!0,this.Vd},i.tT=function(t,n,i){if(Ut.um){var e=If(Zo(n));if(1===e.version)n=new Cs(e.systemId,e.data).serialize().join()}return J.resolve(this.KS.generateRequest(t,n)).catch(Of)},i.$n=function(t){return J.resolve(this.KS.load(t)).catch(Of)},i.eT=function(){return J.resolve(this.KS.remove()).catch(Of)},i.ir=function(t){return J.resolve(this.KS.update(t)).catch(Of)},i.iT=function(){var t=this;this.jS.Fb(),this.KS.keyStatuses.forEach((function(n,i){t.sT(i,n)})),this._o(new Oo(this.jS))},i.sT=function(t,n){if("string"==typeof t){var i=t;t=n,n=i}var e=Zo(t);if(this.nT===jr&&16===e.byteLength&&(Ut.Tm||Ut.yg)){var r=Go(e),o=r.getUint32(0,!0),u=r.getUint16(4,!0),s=r.getUint16(6,!0);r.setUint32(0,o,!1),r.setUint16(4,u,!1),r.setUint16(6,s,!1)}this.nT===jr&&"status-pending"===n&&(n="usable"),this.jS.Bb(e,n)},Tt(n,[{key:"qS",get:function(){return this.Vd}},{key:"YS",get:function(){return this.KS.expiration}},{key:"pb",get:function(){return this.jS}},{key:"QS",get:function(){return this.KS.sessionId}}]),n}(To);function Of(t){var n;if(t.message){var i=t.message.match(/^SystemCode:0x([0-9a-fA-F]+)$/);i&&(n=0|_(i[1],16))}throw new hu(t.message,void 0,n,t)}var Nf=function(){function t(t,n,i){this.uT=t,this.cT=n,this.kd=i}var n=t.prototype;return n.aT=function(t){var n=this;return gr((function(){return mr(this,(function(i){return[2,new Rf(n.uT.createSession(t),n.cT)]}))}))()},n.lT=function(t){return J.resolve(this.uT.setServerCertificate(t))},n.kn=function(t){return J.resolve(t.setMediaKeys(this.uT))},n.dT=function(t){return J.resolve(t.setMediaKeys(null))},n.nr=function(){return J.resolve()},t}(),Pf=function(){function t(t,n,i){this.fT=t,this.nT=n,this.vT=i}var n=t.prototype;return n._T=function(){var t=this;return gr((function(){var n;return mr(this,(function(i){switch(i.label){case 0:return[4,t.fT.createMediaKeys()];case 1:return n=i.sent(),[2,new Nf(n,t.nT,t.vT)]}}))}))()},n.mT=function(){return this.vT},Tt(t,[{key:"cT",get:function(){return this.fT.keySystem}}]),t}();function Af(t){var n=t.trim(),i=n.indexOf(";");return i<0?n:n.substr(0,i).trim()}function Df(t,n,i,e){var r=!1;if(!(e.persistentState&&"optional"!==e.persistentState||e.distinctiveIdentifier&&"optional"!==e.distinctiveIdentifier)){var o={audioCapabilities:[],videoCapabilities:[],persistentState:e.persistentState||"optional",distinctiveIdentifier:e.distinctiveIdentifier||"optional",initDataTypes:e.initDataTypes,sessionTypes:["temporary"],label:e.label,wT:e.wT},u=!1;if(e.audioCapabilities){var s=e.audioCapabilities.filter((function(t){return Boolean(t.contentType)}));s.length&&(o.audioCapabilities=s.filter((function(e){return Cf(t,n,i,e)})),u=!0,o.audioCapabilities.length&&(r=!0))}if(e.videoCapabilities){var f=e.videoCapabilities.filter((function(t){return Boolean(t.contentType)}));f.length&&(o.videoCapabilities=f.filter((function(e){return Cf(t,n,i,e)})),u=!0,o.videoCapabilities.length&&(r=!0))}return u||(r=t(i,"video/mp4")),r?o:void 0}}function Cf(t,n,i,e){return!!e.contentType&&(!(e.encryptionScheme&&!Er(n,e.encryptionScheme))&&(!e.robustness&&t(i,Af(e.contentType))))}function xf(t){if(t.videoCapabilities)for(var n=0,i=t.videoCapabilities;n<i.length;n++){var e=i[n];if(e.contentType)return e.contentType}if(t.audioCapabilities)for(var r=0,o=t.audioCapabilities;r<o.length;r++){var u=o[r];if(u.contentType)return u.contentType}}function Bf(t){for(var n=[],i=0;i<t.length;i++){var e=t[i];e.encryptionScheme&&n.push({contentType:e.contentType,robustness:e.robustness})}return t.concat(n)}function Mf(t){return!(!t.audioCapabilities||!t.audioCapabilities.some(Lf))||!(!t.videoCapabilities||!t.videoCapabilities.some(Lf))}function Lf(t){return!t.robustness}function Uf(t,n){for(var i=[],e=0;e<t.length;e++){var r=t[e];r.robustness?i.push(r):i.push(Fr({},r,{robustness:n}))}return i}x(),gt(),x(),gt();var Ff=function(){function t(){}return t.prototype.Dw=function(t,n){return gr((function(){var i,e,r,o,u,s,f;return mr(this,(function(c){switch(c.label){case 0:for(n=n.filter((function(t){return!t.wT})),i=0;i<n.length;i++)(e=n[i]).audioCapabilities&&(e.audioCapabilities=Bf(e.audioCapabilities)),e.videoCapabilities&&(e.videoCapabilities=Bf(e.videoCapabilities));if(t!==Gr||!n.some(Mf))return[3,4];r=n.map((function(t){return function(t,n){return Fr({},t,{videoCapabilities:t.videoCapabilities?Uf(t.videoCapabilities,n):void 0,audioCapabilities:t.audioCapabilities?Uf(t.audioCapabilities,n):void 0})}(t,"SW_SECURE_CRYPTO")})),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,v.requestMediaKeySystemAccess(t,r)];case 2:return o=c.sent(),u=o.getConfiguration(),[2,new Pf(o,t,u)];case 3:return c.sent(),[3,4];case 4:return[4,v.requestMediaKeySystemAccess(t,n)];case 5:return s=c.sent(),f=s.getConfiguration(),[2,new Pf(s,t,f)]}}))}))()},t.yT=function(){return void 0!==v&&"function"==typeof v.requestMediaKeySystemAccess},t}();x(),gt(),x(),gt(),x(),gt(),x(),gt();var zf=function(t){function n(n,i){var e;return(e=t.call(this)||this).xT=n,e.IT=i,e.JS=!1,e.NT=void 0,e.kT=void 0,e.bT=void 0,e.hT=function(){e.JS=!0,e.AT.Vb(void 0),e.bT&&(e.bT.removeEventListener("mskeyclose",e.hT),e.bT.removeEventListener("mskeymessage",e.CT),e.bT.removeEventListener("mskeyerror",e.Ss),e.bT.removeEventListener("mskeyadded",e.PT))},e.CT=function(t){e.kT&&(e.kT.Vb(void 0),e.kT=void 0),e._o(new No(e,"license-request",Jo(t.message).buffer,t.destinationURL||void 0))},e.Ss=function(){var t=e.bT&&e.bT.error;if(t){var n=new hu("Unknown CDM error",t.code,t.systemCode);if(e.kT)e.kT.Wb(n),e.kT=void 0;else if(e.NT)e.NT.Wb(n),e.NT=void 0;else switch(n.Gb){case MSMediaKeyError.MS_MEDIA_KEYERR_OUTPUT:case MSMediaKeyError.MS_MEDIA_KEYERR_HARDWARECHANGE:e.DT("output-not-allowed");break;default:e.DT("internal-error")}}},e.PT=function(){e.kT&&(e.DT("usable"),e.kT.Vb(void 0),e.kT=void 0),e.NT&&(e.DT("usable"),e.NT.Vb(void 0),e.NT=void 0)},e.AT=new su,e.ST=new uu,e}_t(n,t);var i=n.prototype;return i.tT=function(t,n,i){var e=this;return gr((function(){return mr(this,(function(t){switch(t.label){case 0:return e.TT(),e.kT=new su,e.aT(Zo(n),i),[4,e.kT.Ub];case 1:return t.sent(),[2]}}))}))()},i.aT=function(t,n){if(!t)throw new m("Expected initData to be defined but was "+t+".");var i,e=n&&n.playready&&n.playready.ET;return(i=n?this.xT.createSession(this.IT,t,e):this.xT.createSession(this.IT,t)).addEventListener("mskeyclose",this.hT),i.addEventListener("mskeymessage",this.CT),i.addEventListener("mskeyerror",this.Ss),i.addEventListener("mskeyadded",this.PT),this.bT=i,this.DT("status-pending"),i},i.$n=function(t){var n=this;return gr((function(){return mr(this,(function(t){return n.TT(),[2,!0]}))}))()},i.ir=function(t){var n=this;return gr((function(){var i;return mr(this,(function(e){switch(e.label){case 0:if(n.NT=new su,n.TT(),!n.bT)return[2,J.resolve()];if(0===(i=Zo(t)).byteLength)throw new m("Cannot call update with an empty response.");return n.bT.update(i),[4,n.NT.Ub];case 1:return e.sent(),[2]}}))}))()},i.Ws=function(){return!this.JS&&this.bT&&(this.JS=!0,this.bT.close()),this.AT.Ub},i.eT=function(){var t=this;return gr((function(){return mr(this,(function(n){return t.TT(),[2]}))}))()},i.TT=function(){if(this.JS)throw new m("Already closing or closed.")},i.DT=function(t){this.ST.Fb(),this.ST.Bb(ou,t),this._o(new Oo(this.ST))},Tt(n,[{key:"QS",get:function(){return this.bT&&this.bT.sessionId||""}},{key:"YS",get:function(){return NaN}},{key:"qS",get:function(){return this.AT.Ub}},{key:"pb",get:function(){return this.ST}}]),n}(To),Wf=function(){function t(t,n,i){this.xT=t,this.cT=n,this.kd=i;var e=xf(i)||"video/mp4";this.IT=Af(e)}var n=t.prototype;return n.aT=function(t){var n=this;return gr((function(){return mr(this,(function(t){return[2,new zf(n.xT,n.IT)]}))}))()},n.lT=function(t){return J.resolve(!1)},n.kn=function(t){var n=this,i=function(){t.msSetMediaKeys(n.xT),t.removeEventListener("loadedmetadata",i)};return t.readyState>=1?t.msSetMediaKeys(this.xT):t.addEventListener("loadedmetadata",i),J.resolve()},n.dT=function(t){return J.resolve()},n.nr=function(){return J.resolve()},t}(),Hf=function(){function t(t,n){this.nT=t,this.MT=n}var n=t.prototype;return n.mT=function(){return this.MT},n._T=function(){var t=new h.MSMediaKeys(this.nT);return J.resolve(new Wf(t,this.nT,this.MT))},Tt(t,[{key:"cT",get:function(){return this.nT}}]),t}(),Vf=function(){function t(){}return t.prototype.Dw=function(t,n){try{return J.resolve(function(t,n){if(!qf())throw new m("Unsupported key system "+t);for(var i=0;i<n.length;i++){var e=n[i],r=Df(Xf,Io,t,e);if(r)return new Hf(t,r)}throw new m("Unsupported key system configuration for "+t)}(t,n))}catch(t){return J.reject(t)}},t.yT=function(){return qf()},t}();function qf(){return void 0!==h.MSMediaKeys&&"function"==typeof h.MSMediaKeys.isTypeSupported}function Xf(t,n){return h.MSMediaKeys.isTypeSupported(t,n)}x(),gt(),x(),gt(),x(),gt(),x(),gt();var jf=function(t){function n(n,i,e){var r;return(r=t.call(this)||this).FT=n,r.IT=i,r.OT=e,r.AT=new su,r.WT=void 0,r.ST=new uu,r.LT=void 0,r.VT=new su,r.Ss=function(){var t=r.LT&&r.LT.error;if(t){var n=new hu("Unknown CDM error",t.code,t.systemCode);r.WT?(r.WT.Wb(n),r.WT=void 0):n.Gb===WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT?r.DT("output-not-allowed"):r.DT("internal-error"),r._o(new Po)}},r.CT=function(t){r._o(new No(r,"license-request",Jo(t.message).buffer,"this is a test string"===t.destinationURL?void 0:t.destinationURL))},r.PT=function(){r.WT&&(r.WT.Vb(void 0),r.WT=void 0),r.DT("usable")},r}_t(n,t);var i=n.prototype;return i.tT=function(t,n,i){var e=i&&i.fairplay&&i.fairplay.BT;if(!e)throw new m("Expected FairPlay contentId to be defined but was "+e+".");var r=function(t,n,i){var e=Yo(t),r=2*e.length,o=2*n.length,u=new ArrayBuffer(4+r+4+o+4+i.byteLength),s=new DataView(u),f=new Qo;return qo(s,f,r,!0),Xo(s,f,e,!0),qo(s,f,o,!0),Xo(s,f,n,!0),qo(s,f,i.byteLength,!0),function(t,n,i){$o(t).set($o(i),n.nc),n.xb(i.byteLength)}(s,f,i),new E(u)}(Zo(n),e,this.OT);return this.LT=this.FT.createSession(this.IT,r),this.LT.addEventListener("webkitkeymessage",this.CT,!1),this.LT.addEventListener("webkitkeyadded",this.PT,!1),this.LT.addEventListener("webkitkeyerror",this.Ss,!1),this.DT("status-pending"),this.VT.Vb(this.LT),this.VT=new su,J.resolve()},i.$n=function(t){return J.resolve(!0)},i.ir=function(t){var n=this;return gr((function(){var i,e;return mr(this,(function(r){switch(r.label){case 0:if(0===(i=Zo(t)).byteLength)throw new m("Cannot call update with an empty response.");return n.WT=new su,(e=n.LT)?[3,2]:[4,n.VT.Ub];case 1:e=r.sent(),r.label=2;case 2:return e.update(i),[4,n.WT.Ub];case 3:return r.sent(),[2]}}))}))()},i.Ws=function(){var t,n=this.LT;return n&&(n.removeEventListener("webkitkeymessage",this.CT,!1),n.removeEventListener("webkitkeyadded",this.PT,!1),n.removeEventListener("webkitkeyerror",this.Ss,!1),n.close()),this.VT.jw(),null==(t=this.WT)||t.jw(),this.AT.Vb(void 0),this.AT.Ub},i.eT=function(){return J.resolve(void 0)},i.DT=function(t){this.ST.Fb(),this.ST.Bb(ou,t),this._o(new Oo(this.ST))},Tt(n,[{key:"QS",get:function(){return this.LT?this.LT.sessionId:""}},{key:"YS",get:function(){return NaN}},{key:"qS",get:function(){return this.AT.Ub}},{key:"pb",get:function(){return this.ST}}]),n}(To);x(),gt(),x(),gt();var Yf=function(t){return 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.LICENSE_INVALID_FEATURE=2004]="LICENSE_INVALID_FEATURE",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",t[t.PICTURE_IN_PICTURE_ERROR=11001]="PICTURE_IN_PICTURE_ERROR",t[t.CACHE_SOURCE_ERROR=12e3]="CACHE_SOURCE_ERROR",t[t.CACHE_CONTENT_PROTECTION_ERROR=12001]="CACHE_CONTENT_PROTECTION_ERROR",t[t.THEO_LIVE_UNKNOWN_ERROR=13e3]="THEO_LIVE_UNKNOWN_ERROR",t[t.THEO_LIVE_CHANNEL_NOT_FOUND=13001]="THEO_LIVE_CHANNEL_NOT_FOUND",t[t.THEO_LIVE_END_OF_DEMO=13002]="THEO_LIVE_END_OF_DEMO",t[t.THEO_LIVE_ANALYTICS_ERROR=13003]="THEO_LIVE_ANALYTICS_ERROR",t}({}),Kf=function(t){return 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",t[t.CACHE=12]="CACHE",t[t.THEOLIVE=13]="THEOLIVE",t}({});!function(t){t.fromCode=function(n){var i=y.floor(n/1e3);if(i in t)return i;throw new m("Invalid error code: "+n)}}(Kf||(Kf={}));var Gf=function(t){function n(n,i,e){var r;return(r=t.call(this,i,e)||this).code=n,r}return _t(n,t),Tt(n,[{key:"name",get:function(){return"THEOplayerError"}},{key:"category",get:function(){return Kf.fromCode(this.code)}}]),n}(Dr),$f=function(){function t(t,n,i){this.FT=t,this.cT=n,this.kd=i,this.OT=void 0;var e=xf(i)||"video/mp4";this.IT=Af(e)}var n=t.prototype;return n.getInternalMediaKeys=function(){return this.FT},n.aT=function(t){var n=this;return gr((function(){return mr(this,(function(t){if(!n.OT)throw new Gf(Yf.CONTENT_PROTECTION_CERTIFICATE_ERROR,"No valid certificate was provided.");return[2,new jf(n.FT,n.IT,n.OT)]}))}))()},n.lT=function(t){return this.OT=Zo(t),J.resolve(!0)},n.kn=function(t){return t.webkitSetMediaKeys(this.FT),J.resolve()},n.dT=function(t){return t.webkitSetMediaKeys(null),J.resolve()},n.nr=function(){return J.resolve()},t}(),Zf=function(){function t(t,n){this.nT=t,this.MT=n}var n=t.prototype;return n.mT=function(){return this.MT},n._T=function(){var t=new h.WebKitMediaKeys(this.nT);return J.resolve(new $f(t,this.nT,this.MT))},Tt(t,[{key:"cT",get:function(){return this.nT}}]),t}(),Jf=function(){function t(){}return t.prototype.Dw=function(t,n){try{return J.resolve(function(t,n){if(t!==to)throw new m(t+" is not supported with webkit-prefixed Encrypted Media Extensions.");if(!Qf())throw new m("Unsupported key system "+t);for(var i=0;i<n.length;i++){var e=n[i],r=Df(tc,Ro,t,e);if(r)return new Zf(t,r)}throw new m("Unsupported key system configuration for "+t)}(t,n))}catch(t){return J.reject(t)}},t.yT=function(){return Qf()},t}();function Qf(){return void 0!==h.WebKitMediaKeys&&"function"==typeof h.WebKitMediaKeys.isTypeSupported}function tc(t,n){return h.WebKitMediaKeys.isTypeSupported(t,n)}x(),gt();var nc=function(){function t(t){this.UT=t}return t.prototype.Dw=function(t,n){var i=this;return gr((function(){var e,r,o;return mr(this,(function(u){switch(u.label){case 0:e=0,r=i.UT,u.label=1;case 1:if(!(e<r.length))return[3,6];o=r[e],u.label=2;case 2:return u.trys.push([2,4,,5]),[4,o.Dw(t,n)];case 3:return[2,u.sent()];case 4:return u.sent(),[3,5];case 5:return e++,[3,1];case 6:throw new m("Unsupported key system configuration for "+t)}}))}))()},t}();x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt();var ic=function(){function t(t){var n=this;this.HT=[],this.ZT=void 0,this.GT=new Rr,this.XT=function(){return 0===n.HT.length?n.qT?ec(n.qT,n.GT.Uw).then(n.YT,n.YT):n.YT():n.HT.shift()().then(n.XT)},this.YT=function(){if(0!==n.HT.length)return n.XT();n.ZT=void 0},this.qT=t}var n=t.prototype;return n.Qo=function(t,n){var i=this;return new J((function(e){var r=Rr.$w([i.GT.Uw,n]),o=function(){r.Xw()};i.HT.push((function(){var n=ec(t,r.Uw);return e(n),n.then(o,o)})),i.ZT||(i.ZT=i.XT())}))},n.jw=function(){return this.zT(!0)},n.yn=function(){return this.qT=void 0,this.zT(!1)},n.zT=function(t){var n=this.ZT;return this.GT.jw(),t&&(this.GT=new Rr),J.resolve(n)},t}();function ec(t,n){return new J((function(i){return i(t(n))}))}var rc=new ic,oc=function(t){function n(n){var i;return(i=t.call(this)||this).nT=n,i.kT=void 0,i.WT=void 0,i.$b=!1,i.hk=void 0,i.$T=void 0,i.AT=new su,i.rk="",i.ek=new su,i.nk=new uu,i}_t(n,t);var i=n.prototype;return i.KT=function(){this.WT&&(this.DT("usable"),this.WT.Vb(void 0),this.WT=void 0)},i.jT=function(t){var n=new hu("Unknown CDM error",t.errorCode,t.systemCode);this.WT?(this.WT.Wb(n),this.WT=void 0):this.kT?(this.kT.Wb(n),this.kT=void 0):n.Gb===WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT?this.DT("output-restricted"):1===n.Hb?this.DT("expired"):this.DT("internal-error")},i.QT=function(t){0!==t.message.byteLength?(this.kT&&(this.kT.Vb(void 0),this.kT=void 0),this._o(new No(this,"license-request",fu(this.nT,Jo(t.message).buffer),t.defaultURL||void 0))):this.kT&&(this.kT.Wb("Empty key message"),this.kT=void 0)},i.JT=function(t){this.$T||(this.$T=t,this.ek.Vb(t))},i.Ws=function(){var t=this;return gr((function(){return mr(this,(function(n){return t.throwIfClosed(),t.WT&&(t.WT.Wb(void 0),t.WT=void 0),t.$b=!0,t.AT.Vb(void 0),[2]}))}))()},i.tT=function(t,n){var i=this;return gr((function(){var t;return mr(this,(function(e){switch(e.label){case 0:return i.throwIfClosed(),i.kT=new su,i.hk=Zo(n),(t=i.$T)?[3,2]:[4,i.ek.Ub];case 1:t=e.sent(),e.label=2;case 2:return t.webkitGenerateKeyRequest(i.nT,i.hk),[4,i.kT.Ub];case 3:return e.sent(),[2]}}))}))()},i.$n=function(t){var n=this;return gr((function(){return mr(this,(function(t){return n.throwIfClosed(),[2,!1]}))}))()},i.eT=function(){var t=this;return gr((function(){return mr(this,(function(n){return t.throwIfClosed(),[2]}))}))()},i.ir=function(t){var n=this;return gr((function(){return mr(this,(function(i){switch(i.label){case 0:return n.throwIfClosed(),n.WT=new su,Ut.Mm||Ut.Cm?[2,rc.Qo(gr((function(){return mr(this,(function(i){switch(i.label){case 0:return[4,n.doUpdate(t)];case 1:return i.sent(),[2]}}))})))]:[4,n.doUpdate(t)];case 1:return i.sent(),[2]}}))}))()},i.doUpdate=function(t){var n=this;return gr((function(){var i;return mr(this,(function(e){switch(e.label){case 0:return void 0===n.WT?[2]:(i=n.$T)?[3,2]:[4,n.ek.Ub];case 1:i=e.sent(),e.label=2;case 2:return i.webkitAddKey(n.nT,Zo(t),n.hk,n.QS),[4,n.WT.Ub];case 3:return e.sent(),Ut.Cm?[4,_o(500)]:[3,5];case 4:e.sent(),e.label=5;case 5:return[2]}}))}))()},i.throwIfClosed=function(){if(this.$b)throw new m("Already closing or closed.")},i.DT=function(t){this.nk.Fb(),this.nk.Bb(ou,t),this._o(new Oo(this.nk))},i.ck=function(){var t=this;return gr((function(){var n,i;return mr(this,(function(e){switch(e.label){case 0:return(i=t.$T)?[3,2]:[4,t.ek.Ub];case 1:i=e.sent(),e.label=2;case 2:if(!(n=i).webkitCancelKeyRequest)return[3,7];e.label=3;case 3:return e.trys.push([3,4,5,7]),n.webkitCancelKeyRequest(t.nT,t.rk),[3,7];case 4:return e.sent(),[3,7];case 5:return[4,_o(500)];case 6:return e.sent(),[7];case 7:return[2]}}))}))()},Tt(n,[{key:"pb",get:function(){return this.nk}},{key:"QS",get:function(){return this.rk},set:function(t){this.rk=t}},{key:"qS",get:function(){return this.AT.Ub}},{key:"YS",get:function(){return NaN}}]),n}(To),uc=function(){function t(t,n){var i=this;this.cT=t,this.kd=n,this.$T=void 0,this.fk=Wr(),this._k=[],this.PT=function(t){var n=i.vk(t.sessionId);n&&n.KT()},this.lk=function(t){var n=i.vk(t.sessionId);n&&n.jT(t)},this.dk=function(t){var n=i.vk(t.sessionId);n&&n.QT(t)}}var n=t.prototype;return n.kn=function(t){return this.$T=t,this.$T.addEventListener("webkitkeyadded",this.PT),this.$T.addEventListener("webkitkeyerror",this.lk),this.$T.addEventListener("webkitkeymessage",this.dk),this.fk.forEach((function(n,i){return n.JT(t)})),this._k.forEach((function(n){return n.JT(t)})),J.resolve()},n.dT=function(t){return t.removeEventListener("webkitkeyadded",this.PT),t.removeEventListener("webkitkeyerror",this.lk),t.removeEventListener("webkitkeymessage",this.dk),this.$T=void 0,J.resolve()},n.nr=function(){var t=this;return gr((function(){var n,i;return mr(this,(function(e){switch(e.label){case 0:n=t.fk.entries(),i=n.next(),e.label=1;case 1:return i.done?[3,3]:[4,i.value[1].ck()];case 2:return e.sent(),i=n.next(),[3,1];case 3:return t.fk.clear(),[2]}}))}))()},n.aT=function(t,n,i){var e=this;return gr((function(){var t;return mr(this,(function(n){return t=new oc(e.cT),e.$T&&t.JT(e.$T),e._k.push(t),[2,t]}))}))()},n.lT=function(t){return J.resolve(!1)},n.vk=function(t){if(t){var n=this.fk.get(t);return n||((n=this._k.shift())?(n.QS=t,this.fk.set(t,n),n):void 0)}},t}(),sc=function(){function t(t,n){this.cT=t,this.gk=n}var n=t.prototype;return n._T=function(){return J.resolve(new uc(this.cT,this.gk))},n.mT=function(){return this.gk},t}(),fc=function(){function t(){}return t.prototype.Dw=function(t,n){try{return J.resolve(function(t,n){if(!fc.yT())throw new m("Unsupported key system "+t);for(var i=0;i<n.length;i++){var e=n[i],r=Df(cc,Io,t,e);if(r)return new sc(t,r)}throw new m("Unsupported key system configuration for "+t)}(t,n))}catch(t){return J.reject(t)}},t.yT=function(){return"undefined"!=typeof HTMLMediaElement&&void 0!==HTMLMediaElement.prototype.webkitGenerateKeyRequest&&void 0!==HTMLMediaElement.prototype.webkitAddKey&&void 0!==HTMLMediaElement.prototype.webkitCancelKeyRequest},t}();function cc(t,n){var i=$t();return!(!i||!i.canPlayType||""===i.canPlayType(n,t))}x(),gt();var hc,ac=function(){function t(){}return t.prototype.Dw=function(t,n){return t===Gr||t===jr?J.resolve(void 0):J.reject(new g("DRM configuration not supported"))},t}();function vc(){return hc||(hc=function(){var t=[];Jf.yT()&&t.push(new Jf);Ff.yT()&&t.push(new Ff);Vf.yT()&&t.push(new Vf);fc.yT()&&t.push(new fc);Ut.Bm&&t.push(new ac);return new nc(t)}()),hc}x(),gt(),x(),gt();var dc=function(){function t(){this.pk=Wr()}var n=t.prototype;return n.Fb=function(t){this.pk.delete(t)},n.wk=function(){this.pk.clear()},n.Lb=function(t){return this.pk.get(t)},n.Bb=function(t,n){this.pk.set(t,n)},t}(),lc=function(){function t(){}return t.yk=function(){return t.Vg||(t.Vg=wc.yT()?new wc:new dc),t.Vg},t.Fb=function(n){t.yk().Fb(n)},t.wk=function(){t.yk().wk()},t.Lb=function(n){return t.yk().Lb(n)},t.Bb=function(n,i){t.yk().Bb(n,i)},t}();lc.Vg=void 0;var wc=function(t){function n(){return t.apply(this,arguments)||this}_t(n,t);var i=n.prototype;return i.Fb=function(t){self.sessionStorage.removeItem(t)},i.wk=function(){self.sessionStorage.clear()},i.Lb=function(t){var n;return null!=(n=self.sessionStorage.getItem(t))?n:void 0},i.Bb=function(t,n){self.sessionStorage.setItem(t,n)},n.yT=function(){var t="foobar";try{return self.sessionStorage.setItem(t,t),self.sessionStorage.removeItem(t),!0}catch(t){return!1}},n}(lc);x(),gt(),x(),gt();var bc=function(){var t=self.Blob;if(t)try{new t;return function(t){return function(n,i){return new t(n,i)}}(t)}catch(t){}var n=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder;if(n)return function(t){return function(n,i){var e=new t;if(n)for(var r=0;r<n.length;r++){var o=n[r];e.append(o)}return e.getBlob(i&&i.type||"")}}(n)}();function gc(t,n,i){var e=bc([n],{type:"application/octet-stream"}),r=URL.createObjectURL(e),o=function(t,n){var i=t,e=i.indexOf("?");if(e>=0&&(i=i.substr(0,e)),i=i.substr(i.lastIndexOf("/")+1),n){var r=i.indexOf(".");r<0&&(r=i.length),i=i.substr(0,r)+n+i.substr(r)}return i}(t,i),u=a.createElement("a");u.href=r,u.download=o,a.body.appendChild(u),u.click(),a.body.removeChild(u),URL.revokeObjectURL(r)}x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt(),x(),gt();var mc=function(t,n,i){return i=null!=t?I(P(t)):{},function(t,n,i,e){if(n&&"object"==typeof n||"function"==typeof n)for(var r,o=N(n),u=0,s=o.length;u<s;u++)r=o[u],A.call(t,r)||r===i||R(t,r,{get:function(t){return n[t]}.bind(null,r),enumerable:!(e=O(n,r))||e.enumerable});return t}(!n&&t&&t.__esModule?i:R(i,"default",{value:t,enumerable:!0}),t)}(pt());x(),gt();var pc=t,yc=Xt(pc.ReadableStream)&&Xt(pc.WritableStream)&&Xt(pc.TransformStream)&&qt(pc.ReadableStream.prototype.pipeThrough)&&!Bn.lp,_c=yc?pc.ReadableStream:mc.ReadableStream,Sc=(yc?pc.WritableStream:mc.WritableStream,yc?pc.TransformStream:mc.TransformStream);yc&&pc.ByteLengthQueuingStrategy?pc.ByteLengthQueuingStrategy:mc.ByteLengthQueuingStrategy,yc&&pc.CountQueuingStrategy?pc.CountQueuingStrategy:mc.CountQueuingStrategy;function Tc(t){return function(t){return new _c({start:function(n){for(var i=0;i<t.length;i++){var e=t[i];n.enqueue(e)}n.close()}})}([t])}function Ec(t){return Tc(function(t){return new E(t)}(t))}function kc(t,n){return function(t,n){var i=n,e=t.getReader(),r=new su,o=function(){u();var t=new bo;e.cancel(t).catch(Yt),r.Wb(t)},u=function(){i&&(i.Vw(o),i=void 0)};i&&(i.Fw?o():i.Ww(o));var s=[],f=function(t){return t.done?(u(),J.resolve(s)):(s.push(t.value),J.resolve(e.read()).then(f))};return J.resolve(e.read()).then(f).then((function(t){u(),r.Vb(t)}),(function(t){u(),r.Wb(t)})),r.Ub}(t,n).then((function(t){return eu(t).buffer}))}function Ic(t,n){var i=n,e=new Sc,r=e.readable,o=e.writable,u=o.getWriter(),s=function(){i&&i.jw()};return u.closed.then(s,s),t.then((function(t){return i=void 0,u.releaseLock(),t.pipeTo(o).catch(Yt)}),(function(t){return i=void 0,u.releaseLock(),o.abort(t).catch(Yt)})),r}function Rc(t){return Yo(new E(t))}function Oc(t){return Ko(t).buffer}x(),gt();var Nc="content-type",Pc="text/plain;charset=UTF-8",Ac=function(){function t(){}var n=t.prototype;return n.Ik=function(t){return this.Ck(t).then(JSON.parse)},n.Pk=function(t,n){switch(t){case ar.bk:return this.Dk(n);case ar.Ak:return this.Ik(n);case ar.Sk:return this.Nk();case ar.Tk:return this.Ck(n);default:throw new m}},t}();function Dc(t,n,i){if(t instanceof Ac)return t;if(t instanceof _c)return function(t,n){return new xc({Tw:0,Nk:t,Mk:Cc(n)})}(t,i);var e=Cc(i),r=J.resolve(t).then((function(t){return function(t,n){if(t){if("string"==typeof t)return{Tw:ar.Tk,Lk:t,Mk:n||Pc};if(t instanceof ArrayBuffer||nu(t))return{Tw:ar.bk,Lk:Wc(t),Mk:n};if(function(t){return Vt(t)&&t.constructor&&t.constructor===p}(t)||Ht(t))return{Tw:ar.Ak,Lk:t,Mk:n};throw new m("Unsupported BodyInit type")}return{Tw:ar.Tk,Lk:null,Mk:n}}(t,e)}));return new xc({Tw:1,Ub:r,Bk:n})}function Cc(t){return(t.get(Nc)||"").toLowerCase()}var xc=function(t){function n(n){var i;return(i=t.call(this)||this).Fk=!1,i.Gk=new su,i.Gk.Ub.catch(Yt),i.Xk(n),i}_t(n,t);var i=n.prototype;return i.Uk=function(){return this.Gk.Ub},i.Ck=function(t){return this.Hk(Bc,t)},i.Ik=function(t){return this.Hk(Lc,t)},i.Dk=function(t){return this.Hk(Fc,t)},i.Nk=function(){return this.Zk(function(t){return 0===t.Tw?t.Nk:Ic(t.Ub.then(zc).then(Ec),t.Bk)}(this.Wk))},i.Hk=function(t,n){if(this.Fk)return J.reject(new m("Already used"));this.Fk=!0;var i=t(this.Wk,n);return this.Gk.Qw(i.then(Yt)),i},i.Zk=function(t){if(this.Fk)throw new m("Already used");if(t.locked)throw new m("Body stream is locked");this.Fk=!0;var n=new Sc,i=J.resolve(t.pipeTo(n.writable));return this.Gk.Qw(i),n.readable},i.Xk=function(t){this.Wk=t,1===t.Tw&&t.Ub.catch(Yt)},i.zk=function(){if(this.Fk)throw new m("Already used");var t=function(t){if(0===t.Tw){var n=vr(t.Nk.tee(),2),i=n[0],e=n[1];return[{Tw:t.Tw,Nk:i,Mk:t.Mk},{Tw:t.Tw,Nk:e,Mk:t.Mk}]}var r=vr(t.Bk.Jw(),2),o=r[0],u=r[1];return[{Tw:t.Tw,Ub:t.Ub,Bk:o},{Tw:t.Tw,Ub:t.Ub,Bk:u}]}(this.Wk),i=t[0],e=t[1];return this.Xk(i),new n(e)},Tt(n,[{key:"Ok",get:function(){return this.Fk}},{key:"Vk",get:function(){return 0===this.Wk.Tw}}]),n}(Ac);function Bc(t,n){return 0===t.Tw?kc(t.Nk,n).then(Rc):(n&&t.Bk.Qw(n),po(t.Ub.then(Mc),t.Bk))}function Mc(t){switch(t.Tw){case ar.Tk:return J.resolve(t.Lk||"");case ar.bk:return J.resolve(t.Lk).then(Rc);case ar.Ak:return J.resolve(t.Lk).then(JSON.stringify)}}function Lc(t,n){return 0===t.Tw?Bc(t,n).then(JSON.parse):(n&&t.Bk.Qw(n),po(t.Ub.then(Uc),t.Bk))}function Uc(t){return t.Tw===ar.Ak?J.resolve(t.Lk):Mc(t).then(JSON.parse)}function Fc(t,n){return 0===t.Tw?kc(t.Nk,n):(n&&t.Bk.Qw(n),po(t.Ub.then(zc),t.Bk))}function zc(t){switch(t.Tw){case ar.bk:return J.resolve(t.Lk);case ar.Tk:case ar.Ak:return Mc(t).then(Oc)}}function Wc(t){return t instanceof ArrayBuffer?t:Jo($o(t)).buffer}var Hc=function(t){function n(n){var i;return(i=t.call(this)||this).qk=n,i}_t(n,t);var i=n.prototype;return i.Uk=function(){return this.qk.Uk()},i.Ck=function(t){return this.qk.Ck(t)},i.Ik=function(t){return this.qk.Ik(t)},i.Dk=function(t){return this.qk.Dk(t)},i.Nk=function(t){return this.qk.Nk(t)},i.zk=function(){return this.qk.zk()},Tt(n,[{key:"Ok",get:function(){return this.qk.Ok}},{key:"Vk",get:function(){return this.qk.Vk}}]),n}(Ac);var Vc=function(t){function n(n,i){var e,r,o,u,s,f;i?(r=i.Jk,o=i.jk,u=i.Yk,s=i.$k,f=i.tE):(r=[],o=ar.Tk,u=200,s="OK",f=!1);var c=n.Qk,h=new dr(n.Jk||r),a=n.jk||o,v=n.eE||(i&&i.Qk===c?i.eE:c.Xu),d=i?i.qk:null,l=Dc(void 0!==n.Kk?n.Kk:d,n.Bk||new Rr,h);return(e=t.call(this,l)||this).Jk=h,e.Qk=c,e.eE=v,e.jk=a,e.Yk=void 0!==n.Yk?n.Yk:u,e.$k=void 0!==n.$k?String(n.$k):s,e.tE=n.tE||f,e}_t(n,t);var i=n.prototype;return i.Kk=function(t){return this.Pk(this.jk,t)},i.Ib=function(){return new n({Kk:this.zk(),Qk:this.Qk},this)},n}(Hc),qc=function(){function t(){}var n=t.prototype;return n.Qk=function(t){var n=function(t){return new Vc({Kk:null,Jk:{},Qk:t,eE:t.Xu,jk:t.jk,Yk:0,$k:ko.Zy})}(new Pr(t));return J.resolve(n)},n.NE=function(t){},n.yn=function(){},t}();var Xc=function(){function t(t,n){void 0===n&&(n=!0),this.FE=t,this.WE=n}var n=t.prototype;return n.Qk=function(t){var n=this.OE(t);return this.FE.Qk(n)},n.NE=function(t){return this.FE.NE(this.VE(t))},n.OE=function(n){var i=new Pr(n);if(!this.WE){var e=t.UE(i.Xu);i=new Pr({Xu:e},i)}return i},n.VE=function(n){var i=n.Xu;return this.WE||(i=t.UE(i)),{Xu:i,Lk:n.Lk}},n.yn=function(){this.FE.yn()},t.UE=function(t){return Wt.uw&&uo(t,"http://")?t.replace(":","s:"):t},Tt(t,null,[{key:"LE",get:function(){return t.BE||(t.BE=new t(new qc)),t.BE}}]),t}();Xc.BE=void 0,x(),gt(),x(),gt(),x(),gt(),x(),gt();var jc=function(t){function n(n,i,e){var r;return(r=t.call(this,n.Qk,null!=e?e:function(t){return"Error while loading "+t.Qk.Xu+", status code "+t.Yk}(n),i)||this).qE=n,r}return _t(n,t),Tt(n,[{key:"name",get:function(){return Cr.HE}},{key:"zE",get:function(){return this.qE}}]),n}(xr);x(),gt();var Yc=function(t){function n(n,i){return t.call(this,n,function(t){return"Request for "+t.Xu+" timed out after "+t.SE+" seconds."}(n),i)||this}return _t(n,t),Tt(n,[{key:"name",get:function(){return Cr.ZE}}]),n}(xr);x(),gt();var Kc=self.fetch,Gc=self.Request,$c=self.Response,Zc=self.Headers,Jc=self.ReadableStream,Qc=self.AbortSignal,th=self.AbortController,nh=Kt((function(){try{return qt(Kc)&&Xt(Gc)&&Xt($c)&&Xt(Zc)&&"forEach"in Zc.prototype&&ur()}catch(t){return!1}})),ih=["http:","https:"];var eh=Kt((function(){try{return nh()&&Xt(Qc)&&Xt(th)&&"signal"in Gc.prototype}catch(t){return!1}})),rh=Kt((function(){try{return nh()&&Xt(Jc)&&"body"in $c.prototype&&!Ut.um}catch(t){return!1}}));function oh(t,n){var i,e=t.Jk.has("content-length")?Number(t.Jk.get("content-length")):void 0;return i=t.Vk?function(t,n,i){return t.pipeThrough(new Sc(new uh(n,i)))}(t.Nk(),n,e):function(t,n,i){return sh.apply(this,arguments)}(t.Dk(),n,e),new Vc({Kk:i,Qk:t.Qk},t)}x(),gt(),x(),gt();var uh=function(){function t(t,n){this.KE=t,this.jE=n,this.YE=0}var n=t.prototype;return n.transform=function(t,n){this.YE+=t.byteLength,this.KE(this.YE,this.jE),n.enqueue(t)},n.flush=function(t){var n;this.KE(this.YE,null!=(n=this.jE)?n:this.YE)},t}();function sh(){return sh=gr((function(t,n,i){var e,r;return mr(this,(function(o){switch(o.label){case 0:return[4,J.resolve()];case 1:return o.sent(),n(0,i),[4,t];case 2:return e=o.sent(),r=e.byteLength,n(r,null!=i?i:r),[2,e]}}))})),sh.apply(this,arguments)}var fh=function(){function t(t){this.GT=new Rr,this.qE=void 0,this.JE=0,this.$E=!1,this.XE=t,this.GT.Qw(t.Uw),this.zE=this.QE()}var n=t.prototype;return n.QE=function(){var t=this;return gr((function(){var n,i,e,r,o,u,s,f,c;return mr(this,(function(h){switch(h.label){case 0:(n=t.XE).SE&&(t.JE=d((function(){t.$E=!0,t.GT.jw()}),n.SE),t.GT.Uw.qw((function(){l(t.JE)})));try{i=Kc(n.Xu,{method:n.AE,headers:n.Jk.Ek(),body:n.Lk,credentials:n.xE?"include":"same-origin",signal:ah(t.GT.Uw),mode:n.CE,keepalive:n.DE})}catch(t){throw new Br(n,t)}h.label=1;case 1:return h.trys.push([1,3,,4]),[4,i];case 2:return e=h.sent(),[3,4];case 3:throw r=h.sent(),go(o=t.tx(r))&&t.GT.jw(),o;case 4:if(u=e.url||n.Xu,s=0===e.status&&"file:"===function(t){return Wt.Ih(t).protocol}(u)?200:e.status,f=new ch(t,e,t.GT),!function(t){return t.Yk>=200&&t.Yk<=299||304===t.Yk}(c=new Vc({Kk:f,Qk:n,jk:n.jk,Jk:vh(e.headers),Yk:s,$k:e.statusText,eE:u})))throw new jc(c);return n.RE&&(c=oh(c,n.RE)),[2,c]}}))}))()},n.tx=function(t){return function(t){return t instanceof xr}(t)?t:go(t)?this.$E?new Yc(this.XE):new bo(t.message,t):this.qE?new jc(this.qE,t):new Br(this.XE,t)},t}(),ch=function(t){function n(n,i,e){var r;return(r=t.call(this)||this).Gk=new su,r.sx=n,r.ix=i,r.GT=e,r.Gk.Ub.catch(Yt),r}_t(n,t);var i=n.prototype;return i.Uk=function(){return this.Gk.Ub},i.Ck=function(t){return this.Hk(this.ix.text(),t)},i.Dk=function(t){return this.Hk(this.ix.arrayBuffer(),t)},i.Nk=function(){var t=this.ix.body;return t?this.Zk(t):Ic(this.Dk().then(Ec),this.GT)},i.zk=function(){var t=this.ix.clone(),i=vr(this.GT.Jw(),2),e=i[0],r=i[1];return this.GT=e,new n(this.sx,t,r)},i.Hk=function(t,n){var i=this;n&&this.GT.Qw(n);var e=mo(J.resolve(t),this.GT.Uw).catch((function(t){throw i.sx.tx(t)}));return e=po(e,this.GT),this.Gk.Qw(e.then(Yt)),e},i.Zk=function(t){var n=this;return new _c(new dh(t,(function(t){return n.sx.tx(t)}),this.GT,this.Gk),{highWaterMark:0})},Tt(n,[{key:"Ok",get:function(){return this.ix.bodyUsed}},{key:"Vk",get:function(){return zt(this.ix.body)}}]),n}(Ac),hh="abort";function ah(t){if(eh()){var n=new th;if(t.Fw)n.abort();else if(!t.Hw){var i=function(){e(),n.abort()},e=function(){n.signal.removeEventListener(hh,i),t.Vw(i),t.Yw(e)};n.signal.addEventListener(hh,i),t.Ww(i),t.qw(e)}return n.signal}}function vh(t){if(function(t){return Vt(t)&&"function"==typeof t.forEach}(t)){var n=new dr;return t.forEach((function(t,i){Array.isArray(t)&&2===t.length?n.append(t[0],t[1]):n.append(i,t)})),n}return new dr(t)}var dh=function(){function t(t,n,i,e){this.nx=t,this.ox=n,this.GT=i,this.Gk=e}var n=t.prototype;return n.start=function(t){this.Od=this.nx.getReader()},n.pull=function(t){var n=this;return gr((function(){var i,e,r;return mr(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,mo(n.Od.read(),n.GT.Uw)];case 1:return i=o.sent(),[3,3];case 2:return e=o.sent(),r=n.ox(e),n.Gk.Wb(r),n.GT.jw(),n.Od.cancel(r).catch(Yt),t.error(r),[2];case 3:return i.done?(n.Gk.Vb(),n.GT.jw(),t.close()):t.enqueue(i.value),[2]}}))}))()},n.cancel=function(t){return this.GT.jw(),this.Gk.Wb(t),this.Od.cancel(t)},t}();x(),gt();var lh=function(){function t(t){var n=this;this.GT=new Rr,this.qE=void 0,this.hx=new su,this.bx=!1,this.yx=function(){var t;n.lx(),null==(t=n.ux)||t.abort()},this.XE=t,this.GT.Qw(t.Uw),this.ux=new k,this.QE()}var n=t.prototype;return n.QE=function(){var t=this,n=this.ux,i=this.XE;if(i.Uw.Fw)return this.lx();n.onreadystatechange=function(){return t._x()},n.onprogress=function(n){return t.KE(n)},n.onload=function(){return t.vx()},n.onloadend=function(){return t.mx()},n.onerror=function(){return t.gx()},n.ontimeout=function(){return t.wx()},n.onabort=function(){return t.lx()},n.open(i.AE,i.Xu,!0),n.withCredentials=Boolean(i.xE),"responseType"in n&&i.jk&&(i.jk===ar.Tk?n.responseType="text":n.responseType="arraybuffer"),i.Jk.forEach((function(t,i){n.setRequestHeader(i,t)})),i.SE&&(n.timeout=i.SE),this.GT.Uw.Ww(this.yx);var e=i.Lk;e?n.send(e):n.send()},n._x=function(){var t=this.ux;void 0!==t&&t.readyState>=2&&!this.bx&&(this.bx=!0,this.Ax())},n.Ax=function(){var t,n,i=this.ux,e=function(t){var n=new dr,i=t.replace(/\r?\n[\t ]+/g," ");return i.split(/\r?\n/).forEach((function(t){var i=t.split(":"),e=i.shift().trim();if(e){var r=i.join(":").trim();n.append(e,r)}})),n}(i.getAllResponseHeaders()||""),r=this.XE;this.Sx=new su,this.qE=new Vc({Qk:r,jk:r.jk,Kk:this.Sx.Ub,Yk:i.status,$k:i.statusText,Jk:e,eE:null!=(n=i.responseURL)?n:e.get("X-Request-URL")}),null==(t=this.hx)||t.Vb(this.qE)},n.vx=function(){var t,n=this.ux;if(void 0!==n){var i=n.response;if(!zt(i)){var e=this.XE.jk;i=e===ar.Tk?n.responseText:e===ar.bk?new ArrayBuffer(0):{}}null==(t=this.Sx)||t.Vb(i)}},n.mx=function(){this.yn()},n.KE=function(t){void 0!==this.ux&&(null==this.XE.RE||this.XE.RE.call(this.XE,t.loaded,t.lengthComputable?t.total:void 0))},n.gx=function(){var t=new g("Network request failed");this.qE?this.Ss(new jc(this.qE,t)):this.Ss(new Br(this.XE,t))},n.wx=function(){this.Ss(new Yc(this.XE))},n.lx=function(){this.Ss(new bo),this.yn()},n.Ss=function(t){var n,i;null==(n=null!=(i=this.Sx)?i:this.hx)||n.Wb(t)},n.yn=function(){this.ux=void 0,this.qE=void 0,this.hx=void 0,this.Sx=void 0,this.GT.Xw()},Tt(t,[{key:"zE",get:function(){return this.hx.Ub}}]),t}();x(),gt();var wh=function(){function t(){}var n=t.prototype;return n.Qk=function(t){return function(t){if(!nh()||!function(t){try{return ih.indexOf(new self.URL(t,self.location.href).protocol)>=0}catch(t){return!1}}(t.Xu))return!1;if(!rh()&&t.RE)return!1;if(!t.PE&&t.AE!==Or.POST){if(Ut.Mm&&Ut.ym<=68)return!1;if(Ut.Cm)return!1}return!0}(t)?new fh(t).zE:new lh(t).zE},n.NE=function(t){var n=h.navigator;if(n&&n.sendBeacon)n.sendBeacon(t.Xu,bc([t.Lk],{type:t.Mk}));else{var i=t.Mk?{"Content-type":t.Mk}:void 0;this.Qk(new Pr({AE:Or.POST,Xu:t.Xu,Lk:t.Lk,Jk:i,CE:Nr.wE})).then((function(t){!function(t){t.then(Yt,Yt)}(t.Dk())}),Yt)}},n.yn=function(){},t}();x(),gt(),x(),gt();var bh=function(t){return t[t.Tx=1]="Tx",t[t.kx=2]="kx",t[t.Tk=3]="Tk",t[t.Ex=4]="Ex",t[t.xx=9]="xx",t}({});var gh=function(){function t(){}return t.prototype.Ix=function(t){var n,i=new DOMParser;try{n=i.parseFromString(t,"text/xml")}catch(t){throw new Lr(t)}if(!n||n.getElementsByTagName("parsererror").length>0)throw new Lr;return new Eh(n)},t}(),mh=function(){function t(t){this.Px=t}var n=t.prototype;return n.Lx=function(t){return this.Px.isEqualNode(t.Px)},n.Bx=function(n){return new t(this.Px.cloneNode(n))},Tt(t,[{key:"Rx",get:function(){return bh.kx}},{key:"Cx",get:function(){var t;return null!=(t=this.Px.localName)?t:Rh(this.Px.nodeName)}},{key:"l",get:function(){return this.Px.nodeName}},{key:"Dx",get:function(){var t;return null!=(t=this.Px.namespaceURI)?t:void 0}},{key:"Nx",get:function(){var t;return null!=(t=this.Px.prefix)?t:void 0}},{key:"Mx",get:function(){return this.Px.nodeValue}}]),t}(),ph=function(){function t(t){this.Fx=void 0,this.Vx=t}var n=t.prototype;return n.Wx=function(t){return this.Ox.filter((function(n){return kh(n)&&n.Ux===t}))},n.Gx=function(t,n){return this.Ox.filter((function(i){return kh(i)&&i.Cx===n&&i.Dx===t}))},n.Zx=function(t){this.Vx.appendChild(t.Hx),this.Fx&&this.Fx.push(t)},n.Lx=function(t){return this.Vx.isEqualNode(t.Hx)},Tt(t,[{key:"Ox",get:function(){return void 0===this.Fx&&(this.Fx=function(t){for(var n=[],i=0;i<t.length;i++){var e=Ih(t.item(i));e&&n.push(e)}return n}(this.Vx.childNodes)),this.Fx}},{key:"m",get:function(){return this.Ox.filter(kh)}},{key:"Hx",get:function(){return this.Vx}}]),t}(),yh=function(t){function n(n){return t.call(this,n)||this}_t(n,t);var i=n.prototype;return i.qx=function(t){if(this.Vx.hasAttribute(t))return this.Vx.getAttribute(t)},i.Yx=function(t,n){if(this.Vx.hasAttributeNS(t,n))return this.Vx.getAttributeNS(t,n)},i.Kx=function(t){this.Vx.removeAttribute(t)},i.jx=function(t,n){this.Vx.removeAttributeNS(t,n)},i.Qx=function(t,n){this.Vx.setAttribute(t,n)},i.Jx=function(t,n,i){this.Vx.setAttributeNS(t,n,i)},i.Bx=function(t){return new n(this.Vx.cloneNode(t))},Tt(n,[{key:"Rx",get:function(){return bh.Tx}},{key:"Cx",get:function(){var t;return null!=(t=this.Vx.localName)?t:Rh(this.Vx.nodeName)}},{key:"Dx",get:function(){var t;return null!=(t=this.Vx.namespaceURI)?t:void 0}},{key:"Nx",get:function(){var t;return null!=(t=this.Vx.prefix)?t:void 0}},{key:"Ux",get:function(){return this.Vx.nodeName}},{key:"Xx",get:function(){return function(t){for(var n=[],i=0;i<t.length;i++)n.push(new mh(t.item(i)));return n}(this.Vx.attributes)}},{key:"zx",get:function(){return this.Vx.textContent}}]),n}(ph),_h=function(){function t(t){this.Vx=t}return t.prototype.Lx=function(t){return this.Kk===t.Kk},Tt(t,[{key:"Kk",get:function(){return this.Vx.nodeValue}},{key:"Hx",get:function(){return this.Vx}}]),t}(),Sh=function(t){function n(n){return t.call(this,n)||this}return _t(n,t),n.prototype.Bx=function(t){return new n(this.Vx.cloneNode(t))},Tt(n,[{key:"Rx",get:function(){return bh.Tk}}]),n}(_h),Th=function(t){function n(n){return t.call(this,n)||this}return _t(n,t),n.prototype.Bx=function(t){return new n(this.Vx.cloneNode(t))},Tt(n,[{key:"Rx",get:function(){return bh.Ex}}]),n}(_h),Eh=function(t){function n(n){return t.call(this,n)||this}return _t(n,t),n.prototype.Bx=function(t){return new n(this.Vx.cloneNode(t))},Tt(n,[{key:"Rx",get:function(){return bh.xx}},{key:"$x",get:function(){return new yh(this.Vx.documentElement)}}]),n}(ph);function kh(t){return function(t){return 1===t.Rx}(t)}function Ih(t){switch(t.nodeType){case bh.Tx:return new yh(t);case bh.Tk:return new Sh(t);case bh.Ex:return new Th(t)}}function Rh(t){var n=t.indexOf(":");return n<0?t:t.substr(n+1)}var Oh=function(t){function n(){var n;return(n=t.apply(this,arguments)||this).tR=void 0,n.iR=rh(),n.nR=Ut.wg||Ut.um,n.oR=(Ut.wg||Ut.Mm&&Ut.ym<=68||Ut.um)&&!(Ut.Cm&&Ut.Dm<3),n._R=void 0,n.vR=new gh,n}return _t(n,t),n.prototype.Ix=function(t){return this.vR.Ix(t)},Tt(n,[{key:"Xp",get:function(){return this.tR||(this.tR=new wo(vc())),this.tR}},{key:"eR",get:function(){return this.iR}},{key:"sR",get:function(){return this.nR}},{key:"rR",get:function(){return this.oR}},{key:"hR",get:function(){return!1}},{key:"aR",get:function(){return lc.yk()}},{key:"uR",get:function(){return{cR:gc}}},{key:"lR",get:function(){return v.connection&&v.connection.effectiveType||cr}},{key:"dR",get:function(){return v.connection&&v.connection.type||hr}},{key:"fR",get:function(){return this._R||(this._R=new Xc(new wh)),this._R}}]),n}(rr);jt(new Oh),x(),gt(),x(),gt();x(),gt(),x(),gt(),x(),gt();var Nh=function(t){return t.vE="audio",t.mE="video",t.eW="metadata",t}({});x(),gt(),x(),gt();var Ph=function(t){return t.nE="#EXTINF",t.uBt="#EXT-X-MAP",t.p="#EXTM3U",t.en="#EXT-X-VERSION",t.ui="#EXT-X-TARGETDURATION",t.fTt="#EXT-X-START",t.li="#EXT-X-INDEPENDENT-SEGMENTS",t.Sk="#EXT-X-STREAM-INF",t.vr="#EXT-X-MEDIA-SEQUENCE",t.if="#EXT-X-ENDLIST",t.sf="#EXT-X-MEDIA",t.ff="#EXT-X-DISCONTINUITY",t.af="#EXT-X-DISCONTINUITY-SEQUENCE",t.tv="#EXT-X-PLAYLIST-TYPE",t.nv="#EXT-X-KEY",t}({}),Ah=function(){function t(t,n){this.Tw="#EXTINF",this.ev=t,this.sv=n}return t.prototype.uP=function(){return this.Tw+":"+this.ev+",\n"+this.sv},t}(),Dh=function(){function t(t){this.Tw="#EXT-X-MAP",this.sv=t}return t.prototype.uP=function(){return this.Tw+':URI="'+this.sv+'"'},t}(),Ch=function(){function t(){this.Tw="#EXTM3U"}return t.prototype.uP=function(){return this.Tw},t}(),xh=function(){function t(t){this.Tw="#EXT-X-VERSION",this.jD=t}return t.prototype.uP=function(){return this.Tw+":"+this.jD},t}(),Bh=function(){function t(t){this.Tw="#EXT-X-TARGETDURATION",this.tBt=t}return t.prototype.uP=function(){return this.Tw+":"+this.tBt},t}(),Mh=function(){function t(t){this.Tw="#EXT-X-START",this.eOt=t}return t.prototype.uP=function(){return this.Tw+":TIME-OFFSET="+this.eOt},t}(),Lh=function(){function t(t,n,i){this.uri=t,this.keyFormat=n,this.keyFormatVersions=i,this.Tw="#EXT-X-KEY"}return t.prototype.uP=function(){return this.Tw+':METHOD=SAMPLE-AES,URI="'+this.uri+'",KEYFORMAT="'+this.keyFormat+'",KEYFORMATVERSIONS="'+this.keyFormatVersions+'"'},t}(),Uh=function(){function t(t){this.Tw="#EXT-X-STREAM-INF",this.bG=1,this.sv=t}return t.prototype.uP=function(){return this.Tw+":BANDWIDTH="+this.bG+',AUDIO="audio"\n'+this.sv},t}(),Fh=function(){function t(t){this.Tw="#EXT-X-MEDIA-SEQUENCE",this.sL=t}return t.prototype.uP=function(){return this.Tw+":"+this.sL},t}(),zh=function(){function t(t){this.Tw="#EXT-X-MEDIA",this.sv=t}return t.prototype.uP=function(){var t=Wr();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.sv+'"');var n=[];return t.forEach((function(t,i){return n.push(i+"="+t)})),this.Tw+":"+n.join(",")},t}();x(),gt();var Wh=function(){function t(t){this.pA=[],this.pA=t}var n=t.prototype;return n.UN=function(){return this.pA},n.cv=function(t){this.pA.push(t)},n.RVt=function(){for(var t="",n=0,i=this.UN();n<i.length;n++){t+=i[n].uP()+"\n"}return t},n.Xw=function(){this.pA.length=0},t}(),Hh=function(t){function n(n,i){var e;return e=t.call(this,[new Ch,new xh(8)])||this,i&&e.cv(new Uh("video/index.m3u8")),n&&e.cv(new zh("audio/index.m3u8")),e}return _t(n,t),n}(Wh);x(),gt(),x(),gt(),x(),gt();var Vh=function(t){return t.Qet="HELLO",t.Jet="HI_THERE",t.$et="INITIALIZE",t.tit="APPEND_INIT",t.eit="APPEND_DATA",t.iit="ACK",t.sit="REMOVE",t.nit="DESTROY_SESSION",t}({});x(),gt(),x(),gt();var qh,Xh=new Array(256);for(qh=0;qh<256;qh+=1)Xh[qh]=(qh<16?"0":"")+qh.toString(16);function jh(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=16*y.random()|0;return("x"===t?n:3&n|8).toString(16)}))}x(),gt();var Yh=function(t){function n(n){var i;return(i=t.call(this,"append")||this).Kk=n,i}return _t(n,t),n}(Eo),Kh=function(t){function n(){var n;return(n=t.apply(this,arguments)||this).Pxt=0,n.kp=new E(0),n.$b=!1,n.av=!1,n}_t(n,t);var i=n.prototype;return i.g2=function(t,n){this.Pxt+=n,this.kp=eu([this.kp,t]),this._o(new Yh(t))},i.Ws=function(){this.qS||(this._o(new Eo("close")),this.$b=!0)},Tt(n,[{key:"wR",get:function(){return this.Pxt}},{key:"Kk",get:function(){return this.kp}},{key:"qS",get:function(){return this.$b}},{key:"dv",get:function(){return this.av},set:function(t){this.av=t}}]),n}(To),Gh="sync-seg-",$h=function(){function t(t,n){this.lv=!1,this.wv=!1,this.o=Gh+jh(),this.gv=n?new Kh:void 0,this.kv=t?new Kh:void 0}return t.prototype.Ws=function(){this.gv&&this.gv.Ws(),this.kv&&this.kv.Ws()},Tt(t,[{key:"jv",get:function(){return this.lv},set:function(t){this.lv=t}},{key:"Ad",get:function(){return this.wv},set:function(t){this.wv=t}}]),t}();x(),gt();var Zh=1.1,Jh=function(t){function n(n,i,e){var r;return(r=t.call(this,[new Ch,new xh(8),new Bh(1),new Mh(0)])||this).tw=[],r.Xbt=Wr(),r.rw=0,r.sw=function(t){if(t.UO>=En)for(;r.tw.length>0;)r.bw()},e&&r.cv(new Lh(e,"com.apple.streamingkeydelivery","1")),r.vut=n,r.Cot=i,r.Cot.bn("remove",r.sw),r.kw=new Fh(0),r.cv(r.kw),r}_t(n,t);var i=n.prototype;return i.ACt=function(){return this.vut===Nh.mE?this.Cot.tb:this.vut===Nh.vE?this.Cot.nb:void 0},i.cut=function(t){return this.Xbt.get(t)},i.Xw=function(){this.tw.length=0,this.kw.sL=0,this.Xbt.clear(),this.rw=0},i.UN=function(){return this.cb(),jn(t.prototype.UN.call(this)).concat(jn(this.tw))},i.cb=function(){for(var t=this.Cot.ab(),n=0;n<t.length;n++){var i=t[n];if(!this.Xbt.has(i.o)){var e=void 0;if(this.vut===Nh.mE?(e=i.gv,i.Ad=!0):(e=i.kv,i.jv=!0),!e)return;this.Xbt.set(i.o,e),e.dv&&this.tw.push(new Dh(i.o+"-init")),this.tw.push(new Ah(Zh,i.o)),this.rw+=Zh}}this.lb()},i.lb=function(){for(;this.rw>60;)this.bw()},i.bw=function(){var t=this.tw.shift();void 0!==t&&function(t){return t.Tw===Ph.nE}(t)&&(this.Xbt.delete(t.sv),this.rw-=t.ev,this.kw.sL++)},n}(Wh);var Qh=function(t){function n(n){var i;return(i=t.call(this,"remove")||this).UO=n,i}return _t(n,t),n}(Eo),ta=function(t){function n(n,i){var e;return(e=t.call(this)||this).tg=n,e.ng=i,e.ig=[],e.ug=[],e.sg=Wr(),e.lg=Wr(),e.bg=Wr(),e.mg=0,e}_t(n,t);var i=n.prototype;return i.ab=function(){return this.kg?(this.ig=this.ig.filter((function(t){return!(t.Ad&&t.jv)})),jn(this.ig).concat([this.kg],jn(this.ug))):[]},i.A2=function(t){this.tm(t)},i.g2=function(t){this.tm(t),this.rm(t),this.om(t)},i.eT=function(t){this.tm(t),this.om(t)},i.Xw=function(){var t;null==(t=this.kg)||t.Ws(),this.kg=void 0,this.ug.forEach((function(t){return t.Ws()})),this.ug.length=0,this.ig.length=0,this.bg=Wr(),this.mg=0},i.rm=function(t){var n=t.startPts,i=t.totalDuration;this.lg.set(t.mediaType,n+i)},i.sm=function(){if(this.kg){this.kg.Ws(),this.ig.push(this.kg);var t=this.ug.shift(),n=new $h(this.tg,this.ng);t?(this.kg=t,this.ug.push(n)):this.kg=n}},i.am=function(t){if(this.kg){var n=!this.kg.kv||0===this.kg.kv.wR,i=!this.kg.gv||0===this.kg.gv.wR,e=this.kg.kv&&this.kg.kv.dv,r=this.kg.gv&&this.kg.gv.dv,o=i&&(n&&!(this.kg.jv||this.kg.Ad)||e),u=n&&(i&&!(this.kg.jv||this.kg.Ad)||r);(t===Nh.vE&&!u||t===Nh.mE&&!o)&&(this.sm(),this.sm())}},i.tm=function(t){var n=t.mediaType,i=t.kind,e=this.sg.get(n);if(void 0===e){if(i===Vh.tit||i===Vh.eit){var r=[t];this.sg.set(n,r)}}else e.push(t)},i.om=function(t){var n=this.bm(t);for(var i=0;i<n.length;i++){var e=n[i];switch(e.kind){case Vh.tit:this.km(e),this.bg=Wr(),this.mg=0;break;case Vh.sit:this.ip(e);break;case Vh.eit:this.up(e)}}},i.km=function(t){var n=t.mediaType;void 0===this.kg?(this.kg=new $h(this.tg,this.ng),this.ug.push(new $h(this.tg,this.ng))):this.am(n),n===Nh.mE?(this.ty=t.segment,this.kg.gv.dv=!0):n===Nh.vE&&(this.ny=t.segment,this.kg.kv.dv=!0)},i.up=function(t){var n,i,e=t.mediaType===Nh.vE,r=t.totalDuration,o=null!=(n=this.bg.get(t.mediaType))?n:0;e?(this.kg.kv.g2(t.segment,r),i=o+this.kg.kv.wR):(this.kg.gv.g2(t.segment,r),i=o+this.kg.gv.wR),i>=this.mg+Zh&&(this.bg.set(t.mediaType,i),this.mg+=Zh,this.sm())},i.ip=function(t){this.lg.set(t.mediaType,void 0),this.am(t.mediaType),this.ig.length=0,this._o(new Qh(t.endTime))},i.bm=function(t){var n=this;if(t.kind===Vh.sit)return this.hy(t);var i=[];return this.sg.forEach((function(t){if(t&&t.length>0){var e=yr(t,(function(t){return t.kind===Vh.sit}));-1===e&&(e=t.length);for(var r=t.slice(0,e),o=0;o<r.length;o++){var u=r[o];if(!Er(i,u)){var s,f=n.hy(u);if(f.length>0)(s=i).push.apply(s,jn(f));else if(u.kind===Vh.eit)break}}}})),i},i.hy=function(t){var n=this.sg.get(t.mediaType),i=function(t){return t===Nh.mE?Nh.vE:Nh.mE}(t.mediaType);if(!(i===Nh.mE?this.ng:this.tg))return n.splice(0,n.indexOf(t)+1);if(t.kind===Vh.tit)return[];var e=this.lg.get(i);if(void 0===e)return[];if(t.kind===Vh.sit){var r=this.by(i);if(r.length>0){var o=n.splice(0,n.indexOf(t));return n.splice(0,1),jn(o).concat(jn(r),[t])}return[]}if(t.startPts<=e){var u=n.splice(0,n.indexOf(t));n.splice(0,1);var s=this.my(t,u,i);return jn(u).concat(jn(s),[t])}return[]},i.my=function(t,n,i){var e=this.sg.get(i);if(!e)return[];var r=t.startPts+t.totalDuration,o=yr(e,(function(t){return t.kind===Vh.sit})),u=o-1;-1===o&&(u=e.length-1);for(var s=u+1,f=0;f<=u&&s===u+1;f++){var c=e[f];c.kind===Vh.eit&&c.startPts>r&&(s=f)}var h=-1;return-1!==yr(n,(function(t){return t.kind===Vh.tit}))&&(h=yr(e,(function(t){return t.kind===Vh.tit}))),h>s&&(s=h+1),s>0?(e[s-1].kind===Vh.tit&&(s-=1),e.splice(0,s)):[]},i.by=function(t){var n=this.sg.get(t);if(n){var i=yr(n,(function(t){return t.kind===Vh.sit}));if(i>=0)return n.splice(0,i+1)}return[]},i.ky=function(){var t="[MEDIABUFFER] endPTS: ";this.lg.forEach((function(n,i){t=t.concat(i+" = "+n+" ")})),Wt.Fp(t)},i.OS=function(t,n){var i=t+": [";null==n||n.forEach((function(t){i=i.concat(" "+t.kind+"("+t.mediaType+")")})),i=i.concat(" ]"),Wt.Fp(i)},Tt(n,[{key:"nb",get:function(){var t;return null==(t=this.ny)?void 0:t.slice()}},{key:"tb",get:function(){var t;return null==(t=this.ty)?void 0:t.slice()}}]),n}(To);var na=function(){function t(t,n){var i=t.some((function(t){return t.match("audio")})),e=t.some((function(t){return t.match("video")}));this.AS=new ta(i,e),this.BS=new Hh(i,e),i&&(this.RT=new Jh(Nh.vE,this.AS,n)),e&&(this.IE=new Jh(Nh.mE,this.AS,n))}var n=t.prototype;return n.ME=function(t){var n,i,e=ia(t);return e===Nh.mE?null==(n=this.IE)?void 0:n.ACt():e===Nh.vE?null==(i=this.RT)?void 0:i.ACt():void 0},n.cut=function(t){var n,i,e=t.split("/")[1],r=ia(t);return r===Nh.mE?null==(n=this.IE)?void 0:n.cut(e):r===Nh.vE?null==(i=this.RT)?void 0:i.cut(e):void 0},n.A2=function(t){this.AS.A2(t)},n.g2=function(t){this.AS.g2(t)},n.Adt=function(t){this.AS.eT(t)},n.Xw=function(){var t,n;this.AS.Xw(),this.BS.Xw(),null==(t=this.RT)||t.Xw(),null==(n=this.IE)||n.Xw()},Tt(t,[{key:"tk",get:function(){return this.BS}},{key:"ik",get:function(){return this.RT}},{key:"uk",get:function(){return this.IE}}]),t}();function ia(t){return t.match(/video/)?Nh.mE:Nh.vE}var ea=function(){function t(t,n){var i=this;this.sk=t,this.ak=n,this.Uut=void 0,this.Gzt=gr((function(t){var n,e;return mr(this,(function(r){switch((n=t.data).kind){case Vh.$et:i.Uut=new na(n.mediaBufferConfigs,n.fairPlaySdkUri);break;case Vh.tit:i.Uut.A2(n);break;case Vh.eit:i.Uut.g2(n);break;case Vh.sit:i.Uut.Adt(n)}return e={kind:Vh.iit},i.sk.postMessage(e),[2]}))})),this.sk.onmessage=this.Gzt}var n=t.prototype;return n.RVt=function(t){return"master.m3u8"===t?this.Uut.tk:"video/index.m3u8"===t?this.Uut.uk:"audio/index.m3u8"===t?this.Uut.ik:void 0},n.mk=function(t){if(t.match(/m3u8/)){var n,i=null==(n=this.RVt(t))?void 0:n.RVt();return new Response(i,{headers:{"Content-Type":"application/x-mpegurl; charset=utf-8"}})}if(t.match(Gh)){var e={"Content-Type":t.match(/video/)?"video/mp4":"audio/mp4"};if(t.match(/init/)){var r,o=null==(r=this.Uut)?void 0:r.ME(t);return new Response(o,{headers:e})}var u=this.aut(t);if(!u)return new Response(void 0,{status:404,statusText:"Not Found"});var s=function(t){var n,i=function(t){n.enqueue(t.Kk)},e=function(){n.close(),t.vn("append",i),t.vn("close",e)};return new self.ReadableStream({start:function(r){(n=r).enqueue(t.Kk),t.qS?n.close():(t.bn("append",i),t.bn("close",e))},cancel:function(){t.vn("append",i),t.vn("close",e)}})}(u);return new Response(s,{headers:e})}return new Response(void 0,{status:404,statusText:"Not Found"})},n.aut=function(t){return this.Uut.cut(t)},n.close=function(){var t;this.sk.close(),null==(t=this.Uut)||t.Xw()},t}(),ra=function(){function t(){var t=this;this.Y6=Wr(),this.Gzt=function(n){var i=n.data;if(i.kind===Vh.Qet){t.kk().catch(Yt);var e=i.port,r=jh(),o=new ea(e,n.source.id);t.Y6.set(r,o);var u=function(n){n.data.kind===Vh.nit&&(t.TR(r),e.removeEventListener("message",u))};e.addEventListener("message",u);var s={kind:Vh.Jet,sessionId:r};e.postMessage(s)}},this.CR=function(n){if(uo(n.request.url,"https://theo.proxy")){var i=new URL(n.request.url).pathname.split("/"),e=i[1],r=i.slice(2).join("/"),o=t.Y6.get(e);if(void 0===o){var u=new Response(void 0,{headers:{message:"Given session ["+e+"] not found."},status:404,statusText:"Not Found"});return void n.respondWith(u)}if(void 0===r){var s=new Response(void 0,{headers:{message:"No resource ["+r+"] provided."},status:404,statusText:"Not Found"});return void n.respondWith(s)}var f=o.mk(r);n.respondWith(f)}}}var n=t.prototype;return n.pr=function(t){this.wzt=t,t.addEventListener("message",this.Gzt),t.addEventListener("fetch",this.CR)},n.TR=function(t){var n=this.Y6.get(t);n&&n.close(),this.Y6.delete(t)},n.kk=function(){var t=this;return gr((function(){var n,i;return mr(this,(function(e){switch(e.label){case 0:return[4,t.wzt.clients.matchAll()];case 1:return n=e.sent(),i=n.map((function(t){return t.id})),t.Y6.forEach((function(n,e){Er(i,n.ak)||t.TR(e)})),[2]}}))}))()},t}();ra.BR=new ra;var oa=self;oa.addEventListener("install",(function(t){t.waitUntil(oa.skipWaiting())})),oa.addEventListener("activate",(function(t){t.waitUntil(oa.clients.claim())})),ra.BR.pr(oa)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof s?s:"undefined"!=typeof global?global:this);