@theoplayer/extended 5.10.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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: 5.10.0 (5.10.0)
28
- Created: 2023-09-01T12:36:47.008Z
27
+ Version: 6.0.0
28
+ Created: 2023-09-13T14:03:31.125Z
29
29
  */
30
- !function(n){"use strict";var t=n.window,r=n.document,i=n.location,e=n.navigator,u=n.setTimeout,o=n.clearTimeout,f=n.setInterval,s=n.clearInterval,c=n.Error,a=n.TypeError,h=(n.SyntaxError,n.Object),l=n.Math,v=n.parseInt,_=n.parseFloat,d=n.isNaN,y=n.Uint8Array,w=(n.Worker,n.WorkerGlobalScope,n.XMLHttpRequest);var p=u;function E(n){return Boolean(n&&void 0!==n.length)}function I(){}function g(n){if(!(this instanceof g))throw new a("Promises must be constructed via new");if("function"!=typeof n)throw new a("not a function");this.l=0,this.g=!1,this.I=void 0,this.R=[],b(n,this)}function R(n,t){for(;3===n.l;)n=n.I;0!==n.l?(n.g=!0,g.N((function(){var r=1===n.l?t.onFulfilled:t.onRejected;if(null!==r){var i;try{i=r(n.I)}catch(n){return void S(t.promise,n)}T(t.promise,i)}else(1===n.l?T:S)(t.promise,n.I)}))):n.R.push(t)}function T(n,t){try{if(t===n)throw new a("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var r=t.then;if(t instanceof g)return n.l=3,n.I=t,void k(n);if("function"==typeof r)return void b((i=r,e=t,function(){i.apply(e,arguments)}),n)}n.l=1,n.I=t,k(n)}catch(t){S(n,t)}var i,e}function S(n,t){n.l=2,n.I=t,k(n)}function k(n){2===n.l&&0===n.R.length&&g.N((function(){n.g||g.U(n.I)}));for(var t=0,r=n.R.length;t<r;t++)R(n,n.R[t]);n.R=null}function O(n,t,r){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.promise=r}function b(n,t){var r=!1;try{n((function(n){r||(r=!0,T(t,n))}),(function(n){r||(r=!0,S(t,n))}))}catch(n){if(r)return;r=!0,S(t,n)}}g.prototype.catch=function(n){return this.then(null,n)},g.prototype.then=function(n,t){var r=new this.constructor(I);return R(this,new O(n,t,r)),r},g.prototype.finally=function(n){var t=this.constructor;return this.then((function(r){return t.resolve(n()).then((function(){return r}))}),(function(r){return t.resolve(n()).then((function(){return t.reject(r)}))}))},g.all=function(n){return new g((function(t,r){if(!E(n))return r(new a("Promise.all accepts an array"));var i=Array.prototype.slice.call(n);if(0===i.length)return t([]);var e=i.length;function u(n,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var f=o.then;if("function"==typeof f)return void f.call(o,(function(t){u(n,t)}),r)}i[n]=o,0==--e&&t(i)}catch(n){r(n)}}for(var o=0;o<i.length;o++)u(o,i[o])}))},g.allSettled=function(n){return new this((function(t,r){if(!n||void 0===n.length)return r(new a((void 0===n?"undefined":(i=n)&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var i,e=Array.prototype.slice.call(n);if(0===e.length)return t([]);var u=e.length;function o(n,r){if(r&&("object"==typeof r||"function"==typeof r)){var i=r.then;if("function"==typeof i)return void i.call(r,(function(t){o(n,t)}),(function(r){e[n]={status:"rejected",reason:r},0==--u&&t(e)}))}e[n]={status:"fulfilled",value:r},0==--u&&t(e)}for(var f=0;f<e.length;f++)o(f,e[f])}))},g.resolve=function(n){return n&&"object"==typeof n&&n.constructor===g?n:new g((function(t){t(n)}))},g.reject=function(n){return new g((function(t,r){r(n)}))},g.race=function(n){return new g((function(t,r){if(!E(n))return r(new a("Promise.race accepts an array"));for(var i=0,e=n.length;i<e;i++)g.resolve(n[i]).then(t,r)}))},g.N="function"==typeof setImmediate&&function(n){setImmediate(n)}||function(n){p(n,0)},g.U=function(n){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",n)};var m,N=function(){var t=n.Promise;if(void 0!==t)try{if(-1!==t.toString().indexOf("[native code]"))return t}catch(n){}}(),A=e?e.userAgent:"",C=A.match(/Firefox\/([0-9]+)/i),D=null!=C,P=C?Number(C[1]):0,F=A.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),L=null!=F,U=F?Number(F[3]):0,M=((m=function(n){this.V=0,this.q=0,this.G=[],this.Y=n}).prototype.F=function(n){var t=this.length();this.j(t+1);var r=this.q+t&this.Y-1;this.G[r]=n,this.V=t+1},m.prototype.push=function(n){var t=this.length()+1;if(this.Y<t)this.F(n);else{var r=this.q+t-1,i=this.Y-1;this.G[r&i]=n,this.V=t}},m.prototype.shift=function(){var n=this.q,t=this.G[n];return this.G[n]=void 0,this.q=n+1&this.Y-1,this.V--,t},m.prototype.length=function(){return this.V},m.prototype.j=function(n){this.Y<n&&this.K(this.Y<<1)},m.prototype.K=function(n){var t=this.Y;this.Y=n;var r=this.q+this.V&t-1;!function(n,t,r,i){for(var e=0;e<i;++e)n[e+r]=n[e+t],n[e+t]=void 0}(this.G,0,t,r)},m);var W="unhandledrejection",V=n.PromiseRejectionEvent,x=n.CustomEvent;function B(n){return new V(W,{reason:n,promise:N.reject(n).catch((function(){})),cancelable:!0})}function H(n){var t=new x(W,{detail:{reason:n},cancelable:!0});return h.defineProperty(t,"reason",{value:n}),t}function G(n){var t=r.createEvent("CustomEvent");return t.initCustomEvent(W,!1,!0,{reason:n}),t}var j,K,q,X,z,Y,$,Z,J,Q,nn=function(n){return(nn=function(){try{var n=N.resolve(),t="error",r=new V(W,{reason:t,promise:n});return W===r.type&&t===r.reason}catch(n){}return!1}()?B:function(){try{var n="error",t=new x(W,{detail:{reason:n}});return W===t.type&&n===t.detail.reason}catch(n){}return!1}()?H:G)(n)};function tn(n,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),h.defineProperty(n,i.key,i)}}function rn(n,t,r){return t&&tn(n.prototype,t),r&&tn(n,r),n}function en(n,t){return(en=h.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function un(n,t){if("function"!=typeof t&&null!==t)throw new a("Super expression must either be null or a function");n.prototype=h.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&en(n,t)}function on(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=n[r];return i}function fn(n,t){if(n){if("string"==typeof n)return on(n,t);var r=h.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?on(n,t):void 0}}function sn(n){return function(n){if(Array.isArray(n))return on(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||fn(n)||function(){throw new a("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}N&&!(D&&P<60||L&&U<15)?K=N:(K=g,$=null!==(j=function(){var t=n.queueMicrotask;if("function"==typeof t)return function(n){return t(n)};var r=N;if(r&&"function"==typeof r.resolve){var i=r.resolve();return function(n){return i.then(n)}}}())&&void 0!==j?j:g.N,q=$,X=new M(16),z=!1,(Z={J:function(n){X.push(n),z||(z=!0,q(Y))},Z:Y=function(){for(;X.length()>0;)X.shift()();z=!1}}).Z,g.N=Z.J,g.U=function(t){try{var r=nn(t);if(!n.dispatchEvent(r)||r.defaultPrevented)return}catch(n){}u((function(){throw new c("Unhandled promise rejection: ".concat(t))}),0)}),(Q=J||(J={})).Mn="web",Q.xn="android",Q.Un="android-tv",Q.Fn="ios",Q.Hn="tvos",Q.Vn="chromecast";var cn=e?e.userAgent:"",an=cn.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),hn=cn.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),ln=cn.match(/Android ([0-9\.]+)/i),vn=cn.match(/Windows NT ([0-9\.]+)/i),_n=cn.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),dn=cn.match(/Firefox\/([0-9\.]+)/i),yn=cn.match(/OPR\/(\d+\.\d+)/i),wn=cn.match(/Tizen ([0-9\.]+)/i),pn=cn.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),En=function(){function t(){this.Xn=Boolean("ontouchstart"in n||n.DocumentTouch&&r instanceof n.DocumentTouch||e&&e.msMaxTouchPoints),this.zn=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(cn)||/(macintosh|mac(?=_powerpc)\s)/i.test(cn),this.Wn=/Windows NT/i.test(cn),this.qn=vn?_(vn[1]):0,this.Gn=/Android/i.test(cn),this.Yn=ln?_(ln[1]):0,this.jn=/windows phone (8|8\.1)/i.test(cn),this.Qn=/iPhone/i.test(cn),this.Kn=/iPad/i.test(cn),this.Zn=this.zn&&this.Xn&&!this.Kn,this.Jn=/iPod/i.test(cn),this.$n=/Mobile Safari/i.test(cn),this.ni=/EOS.*STB/i.test(cn),this.ri=(this.Qn||this.Kn||this.Zn||this.Jn)&&!this.jn,this.ei=pn?_(pn[2]):0,this.oi=this.jn||this.ri||this.Gn||this.$n,this.ai=/CriOS/i.test(cn),this.ci=Boolean(n.chrome&&/google/i.test(e.vendor))||this.ai,this.di=this.ci&&/Edg\//i.test(e.userAgent),this._i=hn?v(hn[1],10):0,this.gi=Boolean(n.chrome||/Chrome/i.test(cn)||/CriOS/i.test(cn)),this.wi=an?v(an[1],10):0,this.Ai=/SMART-TV.*Tizen/i.test(cn),this.Ti=wn?_(wn[1]):0,this.Si=/webos|web0s/i.test(cn),this.Ei=/VIZIO/i.test(cn),this.Ii=/Edge\/\d+/i.test(cn),this.Ri=/Trident/i.test(cn),this.Ni=this.Ri&&!n.ActiveXObject&&"ActiveXObject"in n,this.Di=/Vivaldi/i.test(cn),this.Ci=/Firefox/i.test(cn)&&!/Seamonkey/i.test(cn),this.Pi=dn?_(dn[1]):0,this.Oi=/Safari/i.test(cn)&&!/Chrome/i.test(cn)&&!this.jn&&!this.Ai,this.Bi=_n?_(_n[2]):0,this.Li=Boolean(yn),this.Mi=yn?_(yn[1]):0,this.xi=/CrKey/.test(cn),this.Ui=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(cn),this.Fi="web"===J.Un,this.Hi="web"===J.xn,this.Vi=this.Hi||this.Fi,this.Xi="web"===J.Fn,this.zi="web"===J.Hn,this.Wi="web"===J.Vn}return rn(t,[{key:"qi",get:function(){return this.Xn}},{key:"Gi",get:function(){return this.zn}},{key:"Yi",get:function(){return this.Wn}},{key:"ji",get:function(){return this.qn}},{key:"Qi",get:function(){return this.Gn}},{key:"Ki",get:function(){return this.Yn}},{key:"Zi",get:function(){return this.jn}},{key:"Ji",get:function(){return this.Qn}},{key:"$i",get:function(){return this.Kn}},{key:"ir",get:function(){return this.Zn}},{key:"rr",get:function(){return this.Jn}},{key:"dr",get:function(){return this.ri}},{key:"_r",get:function(){return this.ei}},{key:"gr",get:function(){return this.ni}},{key:"wr",get:function(){return this.$n}},{key:"yr",get:function(){return this.oi}},{key:"pr",get:function(){return this.ai}},{key:"Ar",get:function(){return this.ci}},{key:"Tr",get:function(){return this.wi}},{key:"Sr",get:function(){return this.di}},{key:"Er",get:function(){return this._i}},{key:"Ir",get:function(){return this.Ai}},{key:"Rr",get:function(){return this.Ti}},{key:"Nr",get:function(){return this.Si}},{key:"Dr",get:function(){return this.Ei}},{key:"Cr",get:function(){return this.Ii}},{key:"Pr",get:function(){return this.Ri}},{key:"Or",get:function(){return this.Ni}},{key:"Br",get:function(){return this.Di}},{key:"Lr",get:function(){return this.Ci}},{key:"Mr",get:function(){return this.Pi}},{key:"Ur",get:function(){return this.Oi}},{key:"Fr",get:function(){return this.Bi}},{key:"Hr",get:function(){return this.Li}},{key:"Vr",get:function(){return this.Mi}},{key:"Xr",get:function(){return this.xi}},{key:"zr",get:function(){return this.Ui}},{key:"Wr",get:function(){return!(!this.Nr&&!this.Ir)&&this.Tr<=56}},{key:"qr",get:function(){return this.Fi}},{key:"Gr",get:function(){return this.Hi}},{key:"Yr",get:function(){return this.Vi}},{key:"jr",get:function(){return this.Xi}},{key:"Qr",get:function(){return this.zi}},{key:"Kr",get:function(){return this.Wi}},{key:"Zr",get:function(){return this.gi}}]),t}();En.Jr=new En;var In=En.Jr,gn={}.toString;function Rn(n){return null!=n}Array.isArray;var Tn=function(){},Sn=!(In.Pr&&!In.Or),kn=n.console;function On(n){if(function(n){return"object"==typeof n&&null!==n}(n))try{return JSON.stringify(n)}catch(n){}return n}function bn(n){return n.map(On).join(" ")}function mn(n){var t=kn&&kn[n];return t?t.bind&&Sn?t.bind(kn):function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];kn[n](bn(r))}:void 0}var Nn,An=mn("log")||Tn,Cn=mn("warn")||An.bind(void 0,"WARNING:"),Dn=mn("error")||An.bind(void 0,"ERROR:"),Pn=(Nn=kn&&kn.assert)?Nn.bind&&Sn?Nn.bind(kn):function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];kn.assert(n,bn(r))}:function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n||Dn.apply(void 0,["Assertion failed:"].concat(sn(r)))},Fn=null;try{Fn=new WebAssembly.Instance(new WebAssembly.Module(new y([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(n){}function Ln(n,t,r){this.low=0|n,this.high=0|t,this.unsigned=!!r}function Un(n){return!0===(n&&n.oe)}function Mn(n){var t=l.clz32(n&-n);return n?31-t:t}Ln.prototype.oe,h.defineProperty(Ln.prototype,"oe",{value:!0}),Ln.isLong=Un;var Wn={},Vn={};function xn(n,t){var r,i,e;return t?(e=0<=(n>>>=0)&&n<256)&&(i=Vn[n])?i:(r=Hn(n,0,!0),e&&(Vn[n]=r),r):(e=-128<=(n|=0)&&n<128)&&(i=Wn[n])?i:(r=Hn(n,n<0?-1:0,!1),e&&(Wn[n]=r),r)}function Bn(n,t){if(d(n))return t?Zn:$n;if(t){if(n<0)return Zn;if(n>=Xn)return rt}else{if(n<=-zn)return it;if(n+1>=zn)return tt}return n<0?Bn(-n,t).neg():Hn(n%qn|0,n/qn|0,t)}function Hn(n,t,r){return new Ln(n,t,r)}Ln.fromInt=xn,Ln.fromNumber=Bn,Ln.fromBits=Hn;var Gn=l.pow;function jn(n,t,r){if(0===n.length)throw c("empty string");if("number"==typeof t?(r=t,t=!1):t=!!t,"NaN"===n||"Infinity"===n||"+Infinity"===n||"-Infinity"===n)return t?Zn:$n;if((r=r||10)<2||36<r)throw RangeError("radix");var i;if((i=n.indexOf("-"))>0)throw c("interior hyphen");if(0===i)return jn(n.substring(1),t,r).neg();for(var e=Bn(Gn(r,8)),u=$n,o=0;o<n.length;o+=8){var f=l.min(8,n.length-o),s=v(n.substring(o,o+f),r);if(f<8){var a=Bn(Gn(r,f));u=u.mul(a).add(Bn(s))}else u=(u=u.mul(e)).add(Bn(s))}return u.unsigned=t,u}function Kn(n,t){return"number"==typeof n?Bn(n,t):"string"==typeof n?jn(n,t):Hn(n.low,n.high,"boolean"==typeof t?t:n.unsigned)}Ln.fromString=jn,Ln.fromValue=Kn;var qn=4294967296,Xn=qn*qn,zn=Xn/2,Yn=xn(1<<24),$n=xn(0);Ln.ZERO=$n;var Zn=xn(0,!0);Ln.UZERO=Zn;var Jn=xn(1);Ln.ONE=Jn;var Qn=xn(1,!0);Ln.UONE=Qn;var nt=xn(-1);Ln.NEG_ONE=nt;var tt=Hn(-1,2147483647,!1);Ln.MAX_VALUE=tt;var rt=Hn(-1,-1,!0);Ln.MAX_UNSIGNED_VALUE=rt;var it=Hn(0,-2147483648,!1);Ln.MIN_VALUE=it;var et=Ln.prototype;et.toInt=function(){return this.unsigned?this.low>>>0:this.low},et.toNumber=function(){return this.unsigned?(this.high>>>0)*qn+(this.low>>>0):this.high*qn+(this.low>>>0)},et.toString=function(n){if((n=n||10)<2||36<n)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(it)){var t=Bn(n),r=this.div(t),i=r.mul(t).sub(this);return r.toString(n)+i.toInt().toString(n)}return"-"+this.neg().toString(n)}for(var e=Bn(Gn(n,6),this.unsigned),u=this,o="";;){var f=u.div(e),s=(u.sub(f.mul(e)).toInt()>>>0).toString(n);if((u=f).isZero())return s+o;for(;s.length<6;)s="0"+s;o=""+s+o}},et.getHighBits=function(){return this.high},et.getHighBitsUnsigned=function(){return this.high>>>0},et.getLowBits=function(){return this.low},et.getLowBitsUnsigned=function(){return this.low>>>0},et.getNumBitsAbs=function(){if(this.isNegative())return this.eq(it)?64:this.neg().getNumBitsAbs();for(var n=0!=this.high?this.high:this.low,t=31;t>0&&0==(n&1<<t);t--);return 0!=this.high?t+33:t+1},et.isZero=function(){return 0===this.high&&0===this.low},et.eqz=et.isZero,et.isNegative=function(){return!this.unsigned&&this.high<0},et.isPositive=function(){return this.unsigned||this.high>=0},et.isOdd=function(){return 1==(1&this.low)},et.isEven=function(){return 0==(1&this.low)},et.equals=function(n){return Un(n)||(n=Kn(n)),(this.unsigned===n.unsigned||this.high>>>31!=1||n.high>>>31!=1)&&(this.high===n.high&&this.low===n.low)},et.eq=et.equals,et.notEquals=function(n){return!this.eq(n)},et.neq=et.notEquals,et.ne=et.notEquals,et.lessThan=function(n){return this.comp(n)<0},et.lt=et.lessThan,et.lessThanOrEqual=function(n){return this.comp(n)<=0},et.lte=et.lessThanOrEqual,et.le=et.lessThanOrEqual,et.greaterThan=function(n){return this.comp(n)>0},et.gt=et.greaterThan,et.greaterThanOrEqual=function(n){return this.comp(n)>=0},et.gte=et.greaterThanOrEqual,et.ge=et.greaterThanOrEqual,et.compare=function(n){if(Un(n)||(n=Kn(n)),this.eq(n))return 0;var t=this.isNegative(),r=n.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?n.high>>>0>this.high>>>0||n.high===this.high&&n.low>>>0>this.low>>>0?-1:1:this.sub(n).isNegative()?-1:1},et.comp=et.compare,et.negate=function(){return!this.unsigned&&this.eq(it)?it:this.not().add(Jn)},et.neg=et.negate,et.add=function(n){Un(n)||(n=Kn(n));var t=this.high>>>16,r=65535&this.high,i=this.low>>>16,e=65535&this.low,u=n.high>>>16,o=65535&n.high,f=n.low>>>16,s=0,c=0,a=0,h=0;return a+=(h+=e+(65535&n.low))>>>16,c+=(a+=i+f)>>>16,s+=(c+=r+o)>>>16,s+=t+u,Hn((a&=65535)<<16|(h&=65535),(s&=65535)<<16|(c&=65535),this.unsigned)},et.subtract=function(n){return Un(n)||(n=Kn(n)),this.add(n.neg())},et.sub=et.subtract,et.multiply=function(n){if(this.isZero())return this;if(Un(n)||(n=Kn(n)),Fn)return Hn(Fn.mul(this.low,this.high,n.low,n.high),Fn.get_high(),this.unsigned);if(n.isZero())return this.unsigned?Zn:$n;if(this.eq(it))return n.isOdd()?it:$n;if(n.eq(it))return this.isOdd()?it:$n;if(this.isNegative())return n.isNegative()?this.neg().mul(n.neg()):this.neg().mul(n).neg();if(n.isNegative())return this.mul(n.neg()).neg();if(this.lt(Yn)&&n.lt(Yn))return Bn(this.toNumber()*n.toNumber(),this.unsigned);var t=this.high>>>16,r=65535&this.high,i=this.low>>>16,e=65535&this.low,u=n.high>>>16,o=65535&n.high,f=n.low>>>16,s=65535&n.low,c=0,a=0,h=0,l=0;return h+=(l+=e*s)>>>16,a+=(h+=i*s)>>>16,h&=65535,a+=(h+=e*f)>>>16,c+=(a+=r*s)>>>16,a&=65535,c+=(a+=i*f)>>>16,a&=65535,c+=(a+=e*o)>>>16,c+=t*s+r*f+i*o+e*u,Hn((h&=65535)<<16|(l&=65535),(c&=65535)<<16|(a&=65535),this.unsigned)},et.mul=et.multiply,et.divide=function(n){if(Un(n)||(n=Kn(n)),n.isZero())throw c("division by zero");var t,r,i;if(Fn)return this.unsigned||-2147483648!==this.high||-1!==n.low||-1!==n.high?Hn((this.unsigned?Fn.div_u:Fn.div_s)(this.low,this.high,n.low,n.high),Fn.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?Zn:$n;if(this.unsigned){if(n.unsigned||(n=n.toUnsigned()),n.gt(this))return Zn;if(n.gt(this.shru(1)))return Qn;i=Zn}else{if(this.eq(it))return n.eq(Jn)||n.eq(nt)?it:n.eq(it)?Jn:(t=this.shr(1).div(n).shl(1)).eq($n)?n.isNegative()?Jn:nt:(r=this.sub(n.mul(t)),i=t.add(r.div(n)));if(n.eq(it))return this.unsigned?Zn:$n;if(this.isNegative())return n.isNegative()?this.neg().div(n.neg()):this.neg().div(n).neg();if(n.isNegative())return this.div(n.neg()).neg();i=$n}for(r=this;r.gte(n);){t=l.max(1,l.floor(r.toNumber()/n.toNumber()));for(var e=l.ceil(l.log(t)/l.LN2),u=e<=48?1:Gn(2,e-48),o=Bn(t),f=o.mul(n);f.isNegative()||f.gt(r);)f=(o=Bn(t-=u,this.unsigned)).mul(n);o.isZero()&&(o=Jn),i=i.add(o),r=r.sub(f)}return i},et.div=et.divide,et.modulo=function(n){return Un(n)||(n=Kn(n)),Fn?Hn((this.unsigned?Fn.rem_u:Fn.rem_s)(this.low,this.high,n.low,n.high),Fn.get_high(),this.unsigned):this.sub(this.div(n).mul(n))},et.mod=et.modulo,et.rem=et.modulo,et.not=function(){return Hn(~this.low,~this.high,this.unsigned)},et.countLeadingZeros=function(){return this.high?l.clz32(this.high):l.clz32(this.low)+32},et.clz=et.countLeadingZeros,et.countTrailingZeros=function(){return this.low?Mn(this.low):Mn(this.high)+32},et.ctz=et.countTrailingZeros,et.and=function(n){return Un(n)||(n=Kn(n)),Hn(this.low&n.low,this.high&n.high,this.unsigned)},et.or=function(n){return Un(n)||(n=Kn(n)),Hn(this.low|n.low,this.high|n.high,this.unsigned)},et.xor=function(n){return Un(n)||(n=Kn(n)),Hn(this.low^n.low,this.high^n.high,this.unsigned)},et.shiftLeft=function(n){return Un(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Hn(this.low<<n,this.high<<n|this.low>>>32-n,this.unsigned):Hn(0,this.low<<n-32,this.unsigned)},et.shl=et.shiftLeft,et.shiftRight=function(n){return Un(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Hn(this.low>>>n|this.high<<32-n,this.high>>n,this.unsigned):Hn(this.high>>n-32,this.high>=0?0:-1,this.unsigned)},et.shr=et.shiftRight,et.shiftRightUnsigned=function(n){return Un(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Hn(this.low>>>n|this.high<<32-n,this.high>>>n,this.unsigned):Hn(32===n?this.high:this.high>>>n-32,0,this.unsigned)},et.shru=et.shiftRightUnsigned,et.shr_u=et.shiftRightUnsigned,et.rotateLeft=function(n){var t;return Un(n)&&(n=n.toInt()),0==(n&=63)?this:32===n?Hn(this.high,this.low,this.unsigned):n<32?(t=32-n,Hn(this.low<<n|this.high>>>t,this.high<<n|this.low>>>t,this.unsigned)):(t=32-(n-=32),Hn(this.high<<n|this.low>>>t,this.low<<n|this.high>>>t,this.unsigned))},et.rotl=et.rotateLeft,et.rotateRight=function(n){var t;return Un(n)&&(n=n.toInt()),0==(n&=63)?this:32===n?Hn(this.high,this.low,this.unsigned):n<32?(t=32-n,Hn(this.high<<t|this.low>>>n,this.low<<t|this.high>>>n,this.unsigned)):(t=32-(n-=32),Hn(this.low<<t|this.high>>>n,this.high<<t|this.low>>>n,this.unsigned))},et.rotr=et.rotateRight,et.toSigned=function(){return this.unsigned?Hn(this.low,this.high,!1):this},et.toUnsigned=function(){return this.unsigned?this:Hn(this.low,this.high,!0)},et.toBytes=function(n){return n?this.toBytesLE():this.toBytesBE()},et.toBytesLE=function(){var n=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&n,n>>>8&255,n>>>16&255,n>>>24]},et.toBytesBE=function(){var n=this.high,t=this.low;return[n>>>24,n>>>16&255,n>>>8&255,255&n,t>>>24,t>>>16&255,t>>>8&255,255&t]},Ln.fromBytes=function(n,t,r){return r?Ln.fromBytesLE(n,t):Ln.fromBytesBE(n,t)},Ln.fromBytesLE=function(n,t){return new Ln(n[0]|n[1]<<8|n[2]<<16|n[3]<<24,n[4]|n[5]<<8|n[6]<<16|n[7]<<24,t)},Ln.fromBytesBE=function(n,t){return new Ln(n[4]<<24|n[5]<<16|n[6]<<8|n[7],n[0]<<24|n[1]<<16|n[2]<<8|n[3],t)};var ut=Ln;l.pow(2,-52);function ot(){return Date.now()||(new Date).getTime()}var ft,st;ut.fromNumber(9007199254740991);(st=ft||(ft={}))[st._e=1]="_e",st[st.we=2]="we",st[st.ye=3]="ye",st[st.me=4]="me",st[st.pe=9]="pe";var ct=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];c.apply(this,t)};(ct.prototype=h.create(c.prototype)).constructor=ct;var at=function(n){function t(t,r){var i;return(i=n.call(this)||this).message=t||"Unknown error",i.cause=r,c.captureStackTrace&&c.captureStackTrace(function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(i),i.constructor),i}return un(t,n),rn(t,[{key:"name",get:function(){return"BaseError"}}]),t}(ct),ht=function(n){function t(t){return n.call(this,"Invalid XML",t)}return un(t,n),t}(at),lt=function(){function n(){}return n.prototype.ke=function(n){var t,r=new DOMParser;try{t=r.parseFromString(n,"text/xml")}catch(n){throw new ht(n)}if(!t||t.getElementsByTagName("parsererror").length>0)throw new ht;return new Et(t)},n}(),vt=function(){function n(n){this.Ae=n}var t=n.prototype;return t.Te=function(n){return this.Ae.isEqualNode(n.Ae)},t.Se=function(t){return new n(this.Ae.cloneNode(t))},rn(n,[{key:"fe",get:function(){return ft.we}},{key:"Ee",get:function(){var n;return null!=(n=this.Ae.localName)?n:Rt(this.Ae.nodeName)}},{key:"Ie",get:function(){return this.Ae.nodeName}},{key:"Re",get:function(){var n;return null!=(n=this.Ae.namespaceURI)?n:void 0}},{key:"Ne",get:function(){var n;return null!=(n=this.Ae.prefix)?n:void 0}},{key:"De",get:function(){return this.Ae.nodeValue}}]),n}(),_t=function(){function n(n){this.Ce=void 0,this.Pe=n}var t=n.prototype;return t.Oe=function(n){return this.Be.filter((function(t){return It(t)&&t.Le===n}))},t.Me=function(n,t){return this.Be.filter((function(r){return It(r)&&r.Ee===t&&r.Re===n}))},t.xe=function(n){this.Pe.appendChild(n.Ue),this.Ce&&this.Ce.push(n)},t.Te=function(n){return this.Pe.isEqualNode(n.Ue)},rn(n,[{key:"Be",get:function(){return void 0===this.Ce&&(this.Ce=function(n){for(var t=[],r=0;r<n.length;r++){var i=gt(n.item(r));i&&t.push(i)}return t}(this.Pe.childNodes)),this.Ce}},{key:"Fe",get:function(){return this.Be.filter(It)}},{key:"Ue",get:function(){return this.Pe}}]),n}(),dt=function(n){function t(t){return n.call(this,t)}un(t,n);var r=t.prototype;return r.He=function(n){if(this.Pe.hasAttribute(n))return this.Pe.getAttribute(n)},r.Ve=function(n,t){if(this.Pe.hasAttributeNS(n,t))return this.Pe.getAttributeNS(n,t)},r.Xe=function(n){this.Pe.removeAttribute(n)},r.ze=function(n,t){this.Pe.removeAttributeNS(n,t)},r.We=function(n,t){this.Pe.setAttribute(n,t)},r.qe=function(n,t,r){this.Pe.setAttributeNS(n,t,r)},r.Se=function(n){return new t(this.Pe.cloneNode(n))},rn(t,[{key:"fe",get:function(){return ft._e}},{key:"Ee",get:function(){var n;return null!=(n=this.Pe.localName)?n:Rt(this.Pe.nodeName)}},{key:"Re",get:function(){var n;return null!=(n=this.Pe.namespaceURI)?n:void 0}},{key:"Ne",get:function(){var n;return null!=(n=this.Pe.prefix)?n:void 0}},{key:"Le",get:function(){return this.Pe.nodeName}},{key:"Ge",get:function(){return function(n){for(var t=[],r=0;r<n.length;r++)t.push(new vt(n.item(r)));return t}(this.Pe.attributes)}},{key:"Ye",get:function(){return this.Pe.textContent}}]),t}(_t),yt=function(){function n(n){this.Pe=n}return n.prototype.Te=function(n){return this.je===n.je},rn(n,[{key:"je",get:function(){return this.Pe.nodeValue}},{key:"Ue",get:function(){return this.Pe}}]),n}(),wt=function(n){function t(t){return n.call(this,t)}return un(t,n),t.prototype.Se=function(n){return new t(this.Pe.cloneNode(n))},rn(t,[{key:"fe",get:function(){return ft.ye}}]),t}(yt),pt=function(n){function t(t){return n.call(this,t)}return un(t,n),t.prototype.Se=function(n){return new t(this.Pe.cloneNode(n))},rn(t,[{key:"fe",get:function(){return ft.me}}]),t}(yt),Et=function(n){function t(t){return n.call(this,t)}return un(t,n),t.prototype.Se=function(n){return new t(this.Pe.cloneNode(n))},rn(t,[{key:"fe",get:function(){return ft.pe}},{key:"Qe",get:function(){return new dt(this.Pe.documentElement)}}]),t}(_t);function It(n){return function(n){return 1===n.fe}(n)}function gt(n){switch(n.nodeType){case ft._e:return new dt(n);case ft.ye:return new wt(n);case ft.me:return new pt(n)}}function Rt(n){var t=n.indexOf(":");return t<0?n:n.substr(t+1)}function Tt(n,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),h.defineProperty(n,i.key,i)}}function St(n,t){var r=function(n,t){var r=n.length;if(r<=1)return n;for(var i=new Array(r),e=1;e<r;e*=2){kt(n,t,e,i);var u=n;n=i,i=u}return n}(n,t);return r!==n&&kt(r,null,n.length,n),n}function kt(n,t,r,i){var e,u,o,f,s,c=n.length,a=0,h=2*r;for(e=0;e<c;e+=h)for(o=(u=e+r)+r,u>c&&(u=c),o>c&&(o=c),f=e,s=u;;)if(f<u&&s<o)t(n[f],n[s])<=0?i[a++]=n[f++]:i[a++]=n[s++];else if(f<u)i[a++]=n[f++];else{if(!(s<o))break;i[a++]=n[s++]}}var Ot=/[a-zA-Z]/,bt=/[0-9]/,mt=/[0-9a-fA-F]/,Nt=/^0x/i,At=/^[0-9]+$/,Ct=/^[0-9a-fA-F]+$/,Dt=/^[0-7]+$/,Pt=h.prototype.toString,Ft=Array.isArray||function(n){return"[object Array]"===Pt.call(n)},Lt="undefined"!=typeof Symbol&&"symbol"==typeof Symbol.iterator;function Ut(n){return Ft(n)?n:Array.from(n)}function Mt(n){return n>=65&&n<=90}function Wt(n){return Mt(n)||function(n){return n>=97&&n<=122}(n)}function Vt(n){return n>=48&&n<=57}function xt(n){return Vt(n)||Wt(n)}function Bt(n){return Vt(n)||n>=65&&n<=70||n>=97&&n<=102}function Ht(n){return Mt(n)?n+32:n}function Gt(n){return Vt(n)?n-48:n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:-1}function jt(n,t){return void 0===t&&(t=!1),0<=n&&n<=9?n+48:10<=n&&n<=15?n+(t?87:55):-1}var Kt=l.min,qt=String.fromCharCode;function Xt(n){for(var t=n.length,r=[],i=0;i<t;i+=16384){var e=Kt(i+16384,t);r.push(qt.apply(null,n.slice(i,e)))}return r.join("")}var zt=2147483647,Yt=/[^\0-\x7E]/,$t=/[\x2E\u3002\uFF0E\uFF61]/g,Zt={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Jt=l.floor,Qt=String.fromCharCode;function nr(n){throw new RangeError(Zt[n])}function tr(n){for(var t=[],r=0,i=n.length;r<i;){var e=n.charCodeAt(r++);if(e>=55296&&e<=56319&&r<i){var u=n.charCodeAt(r++);56320==(64512&u)?t.push(((1023&e)<<10)+(1023&u)+65536):(t.push(e),r--)}else t.push(e)}return t}var rr,ir,er,ur=function(n,t){return n+22+75*(n<26)-((0!=t)<<5)},or=function(n,t,r){var i=0;for(n=r?Jt(n/700):n>>1,n+=Jt(n/t);n>455;i+=36)n=Jt(n/35);return Jt(i+36*n/(n+38))},fr=function(n){return function(n,t){var r=n.split("@"),i="";r.length>1&&(i=r[0]+"@",n=r[1]);var e=function(n,t){for(var r=[],i=n.length;i--;)r[i]=t(n[i]);return r}((n=n.replace($t,".")).split("."),t).join(".");return i+e}(n,(function(n){return Yt.test(n)?"xn--"+function(n){for(var t=[],r=(n=tr(n)).length,i=128,e=0,u=72,o=0,f=n;o<f.length;o++){var s=f[o];s<128&&t.push(Qt(s))}var c=t.length,a=c;for(c&&t.push("-");a<r;){for(var h=zt,l=0,v=n;l<v.length;l++){var _=v[l];_>=i&&_<h&&(h=_)}var d=a+1;h-i>Jt((zt-e)/d)&&nr("overflow"),e+=(h-i)*d,i=h;for(var y=0,w=n;y<w.length;y++){var p=w[y];if(p<i&&++e>zt&&nr("overflow"),p==i){for(var E=e,I=36;;I+=36){var g=I<=u?1:I>=u+26?26:I-u;if(E<g)break;var R=E-g,T=36-g;t.push(Qt(ur(g+R%T,0))),E=Jt(R/T)}t.push(Qt(ur(E,0))),u=or(e,d,a==c),e=0,++a}}++e,++i}return t.join("")}(n):n}))};function sr(n){for(var t=[],r=0;r<n.length;r++){var i=n[r];i>65535&&(i-=65536,t.push(i>>>10&1023|55296),i=56320|1023&i),t.push(i)}return Xt(t)}function cr(n){if(n>=55296&&n<=57343)throw new c("Lone surrogate U+"+n.toString(16).toUpperCase()+" is not a scalar value")}function ar(n,t){return n>>t&63|128}function hr(n,t){0!=(4294967168&n)?(0==(4294965248&n)?t.push(n>>6&31|192):0==(4294901760&n)?(cr(n),t.push(n>>12&15|224),t.push(ar(n,6))):0==(4292870144&n)&&(t.push(n>>18&7|240),t.push(ar(n,12)),t.push(ar(n,6))),t.push(63&n|128)):t.push(n)}function lr(n){for(var t=[],r=0;r<n.length;r++){hr(n[r],t)}return t}function vr(){if(er>=ir)throw new c("Invalid byte index");var n=255&rr[er];if(er++,128==(192&n))return 63&n;throw new c("Invalid continuation byte")}function _r(){var n,t;if(er>ir)throw new c("Invalid byte index");if(er===ir)return!1;if(n=255&rr[er],er++,0==(128&n))return n;if(192==(224&n)){if((t=(31&n)<<6|vr())>=128)return t;throw new c("Invalid continuation byte")}if(224==(240&n)){if((t=(15&n)<<12|vr()<<6|vr())>=2048)return cr(t),t;throw new c("Invalid continuation byte")}if(240==(248&n)&&(t=(7&n)<<18|vr()<<12|vr()<<6|vr())>=65536&&t<=1114111)return t;throw new c("Invalid UTF-8 detected")}function dr(n){return[37,jt(n>>4),jt(15&n)]}function yr(n){return function(n){return n>=0&&n<=31}(n)||n>126}function wr(n){return yr(n)||32===n||34===n||60===n||62===n||96===n}function pr(n){return wr(n)||35===n||63===n||123===n||125===n}function Er(n){return pr(n)||47===n||58===n||59===n||61===n||64===n||n>=91&&n<=94||124===n}function Ir(n){return n<33||n>126||34===n||35===n||60===n||62===n}function gr(n){return Ir(n)||39===n}function Rr(n,t){if(!t(n))return[n];for(var r=lr([n]),i=[],e=0;e<r.length;e++){var u=r[e];i.push.apply(i,dr(u))}return i}function Tr(n,t){for(var r=[],i=0,e=tr(n);i<e.length;i++){var u=e[i];r.push.apply(r,Rr(u,t))}return sr(r)}function Sr(n){return function(n){for(var t=[],r=n.length,i=0;i<r;i++){var e=n[i];if(37===e&&i+2<r&&Bt(n[i+1])&&Bt(n[i+2])){var u=Gt(n[i+1])<<4|Gt(n[i+2]);t.push(u),i+=2}else t.push(e)}return t}(lr(n))}function kr(n){return sr(function(n){rr=n.slice(),ir=rr.length,er=0;for(var t,r=[];!1!==(t=_r());)r.push(t);return r}(Sr(tr(n))))}function Or(n){var t,r,i,e,u=n.length,o=[0,0,0,0,0,0,0,0],f=0,s=null,c=0;if(c<u&&":"===n[c]){if(!(c+1<u&&":"===n[c+1]))throw new a;c+=2,s=f+=1}for(;c<u;){if(8===f)throw new a("Too many groups");if(":"!==n[c]){for(var h=0,l=0;l<4&&c<u&&mt.test(n[c]);)h=h<<4|v(n[c],16),c+=1,l+=1;if("."===n[c]){if(0===l)throw new a;if(c-=l,f>6)throw new a;for(var _=0;c<u;){var d=null;if(_>0){if(!("."===n[c]&&_<4))throw new a;c+=1}if(!bt.test(n[c]))throw new a;for(;c<u&&bt.test(n[c]);){var y=v(n[c],10);if(null===d)d=y;else{if(0===d)throw new a;if((d=10*d+y)>255)throw new a}c+=1}o[f]=o[f]<<8|d,2!==(_+=1)&&4!==_||(f+=1)}if(4!==_)throw new a;break}if(":"===n[c]){if((c+=1)===u)throw new a}else if(c<u)throw new a;o[f]=h,f+=1}else{if(null!==s)throw new a("Too many :: groups");c+=1,s=f+=1}}if(null!==s){var w=f-s;for(f=7;0!==f&&w>0;)i=s+w-1,e=void 0,e=(t=o)[r=f],t[r]=t[i],t[i]=e,f-=1,w-=1}else if(8!==f)throw new a;return o}function br(n){var t=10,r=At;return Nt.test(n)?(n=n.slice(2),t=16,r=Ct):n.length>=2&&"0"===n[0]&&(n=n.slice(1),t=8,r=Dt),""===n?0:r.test(n)?v(n,t):void 0}var mr={Ke:4},Nr=/[\0\t\n\r #%/:?@\[\\\]]/,Ar=/[\0\t\n\r #/:?@\[\\\]]/;function Cr(n,t){if("["===n[0]){if("]"!==n[n.length-1])throw new a("Invalid IPv6 address");return{Ke:2,Ze:Or(n.slice(1,-1))}}if(!t)return function(n){if(Ar.test(n))throw new a("Invalid code point in opaque host");var t=Tr(n,yr);return""===t?mr:{Ke:3,G:t}}(n);var r=function(n){return function(n){return fr(n.toLowerCase())}(n)}(kr(n));if(Nr.test(r))throw new a("Invalid code point in host");var i=function(n){var t=n.split(".");if(""===t[t.length-1]&&t.pop(),!(t.length>4)){for(var r=[],i=0;i<t.length;i++){var e=t[i];if(""===e)return;var u=br(e);if(void 0===u)return;r.push(u)}for(var o=0;o<r.length-1;o++)if(r[o]>255)throw new a;if(r[r.length-1]>=l.pow(256,5-r.length))throw new a;for(var f=r.pop(),s=0;s<r.length;s++)f+=r[s]*l.pow(256,3-s);return f}}(r);return void 0!==i?{Ke:1,Ze:i}:""===r?mr:{Ke:0,Je:r}}function Dr(n){switch(n.Ke){case 0:return n.Je;case 1:return function(n){for(var t=[],r=n,i=1;i<=4;i++)t.push(""+(255&r)),4!==i&&t.push("."),r>>>=8;return t.reverse().join("")}(n.Ze);case 2:return"["+function(n){for(var t="",r=function(n){for(var t=0,r=0,i=0,e=0,u=0;u<8;u++)0===n[u]?(0===e&&(i=u),e++):(e>r&&(t=i,r=e),e=0);return e>r&&(t=i,r=e),r>1?t:null}(n),i=!1,e=0;e<8;e++){if(i){if(0===n[e])continue;i=!1}r!==e?(t+=n[e].toString(16),7!==e&&(t+=":")):(t+=0===e?"::":":",i=!0)}return t}(n.Ze)+"]";case 3:return n.G;case 4:return""}}var Pr=/\+/g;function Fr(n){for(var t=n.split("&"),r=[],i=0;i<t.length;i++){var e=t[i];if(""!==e){var u=e.indexOf("="),o=void 0,f=void 0;-1!==u?(o=e.slice(0,u),f=e.slice(u+1)):(o=e,f=""),o=o.replace(Pr," "),f=f.replace(Pr," ");var s=kr(o),c=kr(f);r.push([s,c])}}return r}function Lr(n){for(var t="",r=0;r<n.length;r++){var i=n[r];r>0&&(t+="&"),t+=Ur(lr(tr(i[0])))+"="+Ur(lr(tr(i[1])))}return t}function Ur(n){for(var t,r=[],i=0;i<n.length;i++){var e=n[i];32===e?r.push(43):42===(t=e)||45===t||46===t||95===t||xt(t)?r.push(e):r.push.apply(r,dr(e))}return Xt(r)}var Mr=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function Wr(n){var t=""+n,r=Mr.exec(t);return r?function(n,t){for(var r=n.length,i=[],e=t;e<r;e++){var u=n.charCodeAt(e);if(xr(u))if(Br(u)||e===r-1)i.push(Vr);else{var o=n.charCodeAt(e+1);Br(o)?(i.push(u,o),e++):i.push(Vr)}else i.push(u)}return n.slice(0,t)+Xt(i)}(t,r.index):t}var Vr=65533,xr=function(n){return 55296==(63488&n)},Br=function(n){return 0!=(1024&n)};function Hr(n,t){var r=n[0],i=t[0];return r===i?0:r<i?-1:1}function Gr(n){n.$e.length=0}function jr(n,t){!function(n,t){for(var r=0;r<t.length;r++)n[r]=t[r];n.length=t.length}(n.$e,Fr(t))}function Kr(n){if(n.tu){var t=Lr(n.$e);""===t&&(t=null),n.tu.tu.nu=t}}var qr=function(){function n(n){if(void 0===n&&(n=void 0),this.tu=null,null==n)this.$e=[];else if("object"==typeof n||"function"==typeof n)if((u=n)instanceof qr&&Ft(u.$e)&&(!Lt||u[Symbol.iterator]===Xr))this.$e=n.$e.slice();else if(function(n){return null!=n&&(!!Ft(n)||!!Lt&&"function"==typeof n[Symbol.iterator])}(n)){this.$e=[];for(var t=0,r=Ut(n);t<r.length;t++){var i=Ut(r[t]);if(2!==i.length)throw new a("Invalid name-value pair");this.$e.push([Wr(i[0]),Wr(i[1])])}}else for(var e in this.$e=[],n)h.prototype.hasOwnProperty.call(n,e)&&this.$e.push([Wr(e),Wr(n[e])]);else(n=Wr(n)).length>0&&"?"===n[0]&&(n=n.slice(1)),this.$e=Fr(n);var u}var t=n.prototype;return t.append=function(n,t){n=Wr(n),t=Wr(t),this.$e.push([n,t]),Kr(this)},t.delete=function(n){n=Wr(n);for(var t=this.$e,r=0;r<t.length;){t[r][0]===n?t.splice(r,1):r++}Kr(this)},t.get=function(n){n=Wr(n);for(var t=this.$e,r=0;r<t.length;r++){var i=t[r];if(i[0]===n)return i[1]}return null},t.getAll=function(n){n=Wr(n);for(var t=this.$e,r=[],i=0;i<t.length;i++){var e=t[i];e[0]===n&&r.push(e[1])}return r},t.has=function(n){n=Wr(n);for(var t=this.$e,r=0;r<t.length;r++){if(t[r][0]===n)return!0}return!1},t.set=function(n,t){n=Wr(n),t=Wr(t);for(var r=this.$e,i=!1,e=0;e<r.length;){var u=r[e];u[0]===n?i?r.splice(e,1):(u[1]=t,i=!0,e++):e++}i||r.push([n,t]),Kr(this)},t.sort=function(){St(this.$e,Hr),Kr(this)},t.toString=function(){return Lr(this.$e)},t.entries=function(){return new Zr(this.$e,zr)},t.keys=function(){return new Zr(this.$e,Yr)},t.values=function(){return new Zr(this.$e,$r)},t.forEach=function(n){var t=this;this.$e.forEach((function(r){return n(r[1],r[0],t)}))},n}(),Xr=qr.prototype.entries;Lt&&(qr.prototype[Symbol.iterator]=Xr);var zr=function(n){return[n[0],n[1]]},Yr=function(n){return n[0]},$r=function(n){return n[1]},Zr=function(){function n(n,t){this.uu=0,this.$e=n,this.ou=t}return n.prototype.next=function(){return this.uu<this.$e.length?{done:!1,value:this.ou(this.$e[this.uu++])}:{done:!0,value:void 0}},n}(),Jr="null";var Qr=h.create(null);Qr.ftp=21,Qr.file=0,Qr.gopher=70,Qr.http=80,Qr.https=443,Qr.ws=80,Qr.wss=443;var ni=/^(?:\.|%2e)$/i,ti=/^(?:\.|%2e){2}$/i;function ri(n){return ni.test(n)}function ii(n){return ti.test(n)}function ei(n){return void 0!==Qr[n]}function ui(n){return ei(n.au)}function oi(n){return""!==n.fu||""!==n.vu}function fi(n){var t=n.length;if(!(t>=2))return!1;if(!ci(n.slice(0,2)))return!1;if(2!==t){var r=n[2];if(47!==r&&92!==r&&63!==r&&35!==r)return!1}return!0}function si(n){return 2===n.length&&Ot.test(n[0])&&(":"===n[1]||"|"===n[1])}function ci(n){return 2===n.length&&si(Xt(n))}function ai(n){return si(n)&&":"===n[1]}function hi(n){var t=n.du;0!==t.length&&("file"===n.au&&1===t.length&&ai(t[0])||t.pop())}function li(n){return null===n._u||mr===n._u||n.wu||"file"===n.au}var vi=-1,_i=/\t|\n|\r/g,di=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function yi(n,t,r,i){void 0===r&&(r=null),void 0===i&&(i=null),r||(r=new pi,n=n.replace(di,""));var e=null!==i?i:0;t=t||null;for(var u=[],o=!1,f=!1,s=!1,c=tr(n=n.replace(_i,"")),h=c.length,l=0;l<=h;){var _=l<h?c[l]:vi;switch(e){case 0:if(!Wt(_)){if(null===i){u.length=0,e=2;continue}throw new a("Invalid scheme")}u.push(Ht(_)),e=1;break;case 1:if(xt(_)||43===_||45===_||46===_)u.push(Ht(_));else{if(58!==_){if(null===i){u.length=0,e=2,l=0;continue}throw new a("Invalid scheme")}var d=sr(u);if(null!==i){if(ei(r.au)&&!ei(d))return;if(!ei(r.au)&&ei(d))return;if((oi(r)||null!==r.yu)&&"file"===d)return;if("file"===r.au&&(r._u===mr||null===r._u))return}if(r.au=d,null!==i)return void(ui(r)&&r.yu===Qr[r.au]&&(r.yu=null));u.length=0,"file"===r.au?e=13:ui(r)&&t&&t.au===r.au?e=3:ui(r)?e=7:47===c[l+1]?(e=4,l+=1):(r.wu=!0,r.du.push(""),e=18)}break;case 2:if(!t||t.wu&&35!==_)throw new a("Invalid scheme");t.wu&&35===_?(r.au=t.au,r.du=t.du.slice(),r.nu=t.nu,r.mu="",r.wu=!0,e=20):"file"!==t.au?(e=5,l-=1):(e=13,l-=1);break;case 3:47===_&&47===c[l+1]?e=8:(e=5,l-=1);break;case 4:47===_?e=9:(e=17,l-=1);break;case 5:r.au=t.au,vi===_?(r.fu=t.fu,r.vu=t.vu,r._u=t._u,r.yu=t.yu,r.du=t.du.slice(),r.nu=t.nu):47===_?e=6:63===_?(r.fu=t.fu,r.vu=t.vu,r._u=t._u,r.yu=t.yu,r.du=t.du.slice(),r.nu="",e=19):35===_?(r.fu=t.fu,r.vu=t.vu,r._u=t._u,r.yu=t.yu,r.du=t.du.slice(),r.nu=t.nu,r.mu="",e=20):92===_&&ui(r)?e=6:(r.fu=t.fu,r.vu=t.vu,r._u=t._u,r.yu=t.yu,r.du=t.du.slice(),r.du.pop(),e=17,l-=1);break;case 6:!ui(r)||47!==_&&92!==_?47===_?e=9:(r.fu=t.fu,r.vu=t.vu,r._u=t._u,r.yu=t.yu,e=17,l-=1):e=8;break;case 7:if(47!==_||47!==c[l+1]){e=8;continue}e=8,l+=1;break;case 8:47!==_&&92!==_&&(e=9,l-=1);break;case 9:if(64===_){o&&u.unshift(37,52,48),o=!0;for(var y=0;y<u.length;y++){var w=u[y];if(58!==w||s){var p=sr(Rr(w,Er));s?r.vu+=p:r.fu+=p}else s=!0}u.length=0}else if(vi===_||47===_||63===_||35===_||ui(r)&&92===_){if(o&&0===u.length)throw new a("Invalid host");l-=u.length+1,u.length=0,e=10}else u.push(_);break;case 10:case 11:if(null!==i&&"file"===r.au)l-=1,e=15;else if(58!==_||f)if(vi===_||47===_||63===_||35===_||ui(r)&&92===_){if(l-=1,ui(r)&&0===u.length)throw new a("Invalid host");if(null!==i&&0===u.length&&(oi(r)||null!==r.yu))return;var E=Cr(sr(u),ui(r));if(r._u=E,u.length=0,e=16,null!==i)return}else 91===_?f=!0:93===_&&(f=!1),u.push(_);else{if(0===u.length)throw new a("Invalid host");var I=Cr(sr(u),ui(r));if(r._u=I,u.length=0,e=12,11===i)return}break;case 12:if(Vt(_))u.push(_);else{if(!(vi===_||47===_||63===_||35===_||ui(r)&&92===_||null!==i))throw new a("Invalid port");if(0!==u.length){var g=v(sr(u),10);if(g>65535)throw new a("Invalid port");r.yu=g===Qr[r.au]?null:g,u.length=0}if(null!==i)return;e=16,l-=1}break;case 13:r.au="file",47===_||92===_?e=14:t&&"file"===t.au?vi===_?(r._u=t._u,r.du=t.du.slice(),r.nu=t.nu):63===_?(r._u=t._u,r.du=t.du.slice(),r.nu="",e=19):35===_?(r._u=t._u,r.du=t.du.slice(),r.nu=t.nu,r.mu="",e=20):(fi(c.slice(l))||(r._u=t._u,r.du=t.du.slice(),hi(r)),e=17,l-=1):(e=17,l-=1);break;case 14:47===_||92===_?e=15:(t&&"file"===t.au&&!fi(c.slice(l))&&(ai(t.du[0])?r.du.push(t.du[0]):r._u=t._u),e=17,l-=1);break;case 15:if(vi===_||47===_||92===_||63===_||35===_)if(l-=1,null===i&&ci(u))e=17;else if(0===u.length){if(r._u=mr,null!==i)return;e=16}else{var R=Cr(sr(u),ui(r));if(0===R.Ke&&"localhost"===R.Je&&(R=mr),r._u=R,null!==i)return;u.length=0,e=16}else u.push(_);break;case 16:ui(r)?(e=17,47!==_&&92!==_&&(l-=1)):null===i&&63===_?(r.nu="",e=19):null===i&&35===_?(r.mu="",e=20):vi!==_&&(e=17,47!==_&&(l-=1));break;case 17:if(vi===_||47===_||ui(r)&&92===_||null===i&&(63===_||35===_)){var T=sr(u);if(ii(T)?(hi(r),47===_||ui(r)&&92===_||r.du.push("")):!ri(T)||47===_||ui(r)&&92===_?ri(T)||("file"===r.au&&0===r.du.length&&ci(u)&&(mr!==r._u&&null!==r._u&&(r._u=mr),u[1]=58,T=sr(u)),r.du.push(T)):r.du.push(""),u.length=0,"file"===r.au&&(vi===_||63===_||35===_))for(;r.du.length>1&&""===r.du[0];)r.du.shift();63===_?(r.nu="",e=19):35===_&&(r.mu="",e=20)}else u.push.apply(u,Rr(_,pr));break;case 18:63===_?(r.nu="",e=19):35===_?(r.mu="",e=20):vi!==_&&(r.du[0]+=sr(Rr(_,yr)));break;case 19:null===i&&35===_?(r.mu="",e=20):vi!==_&&(r.nu+=sr(Rr(_,ui(r)?gr:Ir)));break;case 20:vi===_||0===_||(r.mu+=sr(Rr(_,wr)))}l++}return r}function wi(n,t,r,i){try{yi(n,t,r,i)}catch(n){}}var pi=function(){this.au="",this.fu="",this.vu="",this._u=null,this.yu=null,this.du=[],this.nu=null,this.mu=null,this.wu=!1};function Ei(n){switch(n.au){case"blob":var t;try{t=yi(n.du[0],null)}catch(n){return Jr}return Ei(t);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return r=n.au,i=n._u,e=n.yu,r+"://"+Dr(i)+(null===e?"":":"+e);case"file":default:return Jr}var r,i,e}var Ii,gi,Ri=function(){function n(n,t){var r,i,e=null;if(null!=t)if(null!=(r=t)&&r instanceof Ri&&"object"==typeof r.tu)e=t.tu;else try{e=yi(String(t),null)}catch(n){throw new a("Invalid base URL: "+n.message)}try{i=yi(String(n),e)}catch(n){throw new a("Invalid URL: "+n.message)}var u=i.nu;this.tu=i,this.nu=function(n){var t=new qr;return null!==n&&jr(t,n),t}(u),this.nu.tu=this}var t,r,i,e=n.prototype;return e.toString=function(){return this.href},e.toJSON=function(){return this.href},t=n,(r=[{key:"href",get:function(){return function(n,t){void 0===t&&(t=!1);var r=n.au+":";if(null!==n._u?(r+="//",oi(n)&&(r+=n.fu,""!==n.vu&&(r+=":"+n.vu),r+="@"),r+=Dr(n._u),null!==n.yu&&(r+=":"+n.yu)):null===n._u&&"file"===n.au&&(r+="//"),n.wu)r+=n.du[0];else for(var i=0,e=n.du;i<e.length;i++)r+="/"+e[i];return null!==n.nu&&(r+="?"+n.nu),t||null===n.mu||(r+="#"+n.mu),r}(this.tu)},set:function(n){var t;try{t=yi(String(n),null)}catch(n){throw new a("Invalid URL: "+n.message)}this.tu=t,Gr(this.nu);var r=this.tu.nu;null!==r&&jr(this.nu,r)}},{key:"origin",get:function(){return Ei(this.tu)}},{key:"protocol",get:function(){return this.tu.au+":"},set:function(n){wi(n+":",null,this.tu,0)}},{key:"username",get:function(){return this.tu.fu},set:function(n){li(this.tu)||(this.tu.fu=Tr(n,Er))}},{key:"password",get:function(){return this.tu.vu},set:function(n){li(this.tu)||(this.tu.vu=Tr(n,Er))}},{key:"host",get:function(){var n=this.tu,t=n._u;if(null===t)return"";var r=n.yu,i=Dr(t);return null!==r&&(i+=":"+r),i},set:function(n){this.tu.wu||wi(n,null,this.tu,10)}},{key:"hostname",get:function(){var n=this.tu._u;return null===n?"":Dr(n)},set:function(n){this.tu.wu||wi(n,null,this.tu,11)}},{key:"port",get:function(){var n=this.tu.yu;return null===n?"":""+n},set:function(n){li(this.tu)||(""===n?this.tu.yu=null:wi(n,null,this.tu,12))}},{key:"pathname",get:function(){var n=this.tu.du;return this.tu.wu?n[0]:0===n.length?"":"/"+n.join("/")},set:function(n){this.tu.wu||(this.tu.du.length=0,wi(n,null,this.tu,16))}},{key:"search",get:function(){var n=this.tu.nu;return null===n||""===n?"":"?"+n},set:function(n){n=Wr(n);var t=this.tu;if(""===n)return t.nu=null,void Gr(this.nu);"?"===n[0]&&(n=n.slice(1)),t.nu="",wi(n,null,t,19),jr(this.nu,n)}},{key:"searchParams",get:function(){return this.nu}},{key:"hash",get:function(){var n=this.tu.mu;return null===n||""===n?"":"#"+n},set:function(n){""!==n?("#"===n[0]&&(n=n.slice(1)),this.tu.mu="",wi(n,null,this.tu,20)):this.tu.mu=null}}])&&Tt(t.prototype,r),i&&Tt(t,i),n}();function Ti(n){return n.document&&n.document.baseURI||n.location.href||""}function Si(){return void 0!==r?r.createElement("video"):void 0}var ki=!!("ontouchstart"in n||n.DocumentTouch&&r instanceof n.DocumentTouch)||!(!e||!e.msMaxTouchPoints),Oi=(gi||(gi=Si()),gi),bi=!(!Oi||!Oi.webkitShowPlaybackTargetPicker),mi=function(){function n(){this.pu=void 0,this.Au=!1,this.qi=ki,this.yr=!1,this.bu=!0}var r=n.prototype;return r.Tu=function(){return 0},r.Su=function(n,t){return!0},r.Eu=function(n){return n>=.3333333333333333},rn(n,[{key:"Iu",get:function(){return void 0===this.pu&&(this.pu=this.Tu()),this.pu}},{key:"Ru",get:function(){return!In.zr}},{key:"Nu",get:function(){if(t.screen)return{width:t.screen.width,height:t.screen.height}}},{key:"Du",get:function(){return t.devicePixelRatio||1}},{key:"Cu",get:function(){return bi}},{key:"Pu",get:function(){return!1}},{key:"Ou",get:function(){return!0}},{key:"Bu",get:function(){return In.Ur||In.dr}},{key:"Lu",get:function(){return!0}},{key:"Mu",get:function(){return!0}},{key:"xu",get:function(){return!1}},{key:"Uu",get:function(){}},{key:"Fu",get:function(){return!0}},{key:"Hu",get:function(){return!1}},{key:"Vu",get:function(){return!1}},{key:"Xu",get:function(){return In.Dr}}]),n}(),Ni=function(){var n=Si();if(!n)return!1;var t=n.muted;return n.muted=!t,n.muted!==t}();!function(){if(In.ir)return!1;var n=Si();if(!n)return!1;var t=n.volume;n.volume=t/2+.1,n.volume}();var Ai=function(n){function t(t){var r;return(r=n.call(this)||this).Wu=t,r.Wu&&(r.Au=r.Wu.Au,r.qi=r.Wu.qi,r.bu=Ni&&r.Wu.bu),r}un(t,n);var r=t.prototype;return r.Tu=function(){return this.Wu?this.Wu.Iu:n.prototype.Tu.call(this)},r.Su=function(t,r){return this.Wu?this.Wu.Su(t,r):n.prototype.Su.call(this,t,r)},r.Eu=function(t){return this.Wu?this.Wu.Eu(t):n.prototype.Eu.call(this,t)},rn(t,[{key:"Uu",get:function(){var n;return null==(n=this.Wu)?void 0:n.Uu}},{key:"Fu",get:function(){var n,t;return null==(t=null==(n=this.Wu)?void 0:n.Fu)||t}}]),t}(mi),Ci=function(n){function t(t){var r;return(r=n.call(this,t)||this).Au=!0,r.yr=!0,r}return un(t,n),rn(t,[{key:"xu",get:function(){return In.dr}}]),t}(Ai),Di=function(n){function t(){return n.apply(this,arguments)}return un(t,n),t.prototype.Tu=function(){return Ii.MediaSource?n.prototype.Tu.call(this):1},rn(t,[{key:"xu",get:function(){return!0}}]),t}(Ci),Pi=function(n){function r(){return n.apply(this,arguments)}return un(r,n),r.prototype.Su=function(t,r){return n.prototype.Su.call(this,t,r)},rn(r,[{key:"Pu",get:function(){return In.Rr<3}},{key:"Ou",get:function(){return In.Rr>=3}},{key:"Nu",get:function(){var n=this;return t.tizen&&!this.Gu&&t.tizen.systeminfo.getPropertyValue("DISPLAY",(function(t){var r=t.resolutionWidth,i=t.resolutionHeight;1===r&&1===i||(n.Gu={width:r,height:i})})),this.Gu}},{key:"Hu",get:function(){return In.Rr<3}},{key:"Vu",get:function(){return!0}}]),r}(Ai),Fi=function(n){function t(){return n.call(this)}return un(t,n),t}(mi),Li=function(n){function t(){return n.apply(this,arguments)}return un(t,n),t.prototype.Su=function(n,t){if(n&&n.Yu&&t&&t.Yu){var r=Ui(n.Yu,"mp4a.40.2")&&Ui(t.Yu,"mp4a.40.5"),i=Ui(n.Yu,"mp4a.40.5")&&Ui(t.Yu,"mp4a.40.2"),e=Ui(n.Yu,"mp4a.40.2")&&Ui(t.Yu,"mp4a.40.34"),u=Ui(n.Yu,"mp4a.40.34")&&Ui(t.Yu,"mp4a.40.2"),o=Ui(n.Yu,"mp4a.40.5")&&Ui(t.Yu,"mp4a.40.34"),f=Ui(n.Yu,"mp4a.40.34")&&Ui(t.Yu,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},rn(t,[{key:"Uu",get:function(){if(In.Gi)return 4096}}]),t}(Fi);function Ui(n,t){return n.indexOf(t)>-1}var Mi=function(n){function t(){return n.apply(this,arguments)}return un(t,n),t.prototype.Eu=function(n){return n>=2},t}(Fi),Wi=function(n){function t(){var t;return(t=n.call(this)||this).Au=In.Fr>=11,t.bu=In.Ur&&!(In.dr&&In.Fr<10),t}return un(t,n),t}(Fi),Vi=function(n){function r(){return n.apply(this,arguments)}return un(r,n),rn(r,[{key:"Nu",get:function(){var n=this;return t.webOS&&!this.Gu&&t.webOS.deviceInfo((function(t){n.Gu={width:t.screenWidth,height:t.screenHeight}})),this.Gu}},{key:"Lu",get:function(){return!1}},{key:"Vu",get:function(){return!0}}]),r}(Ai),xi=function(n){function t(){return n.apply(this,arguments)}return un(t,n),rn(t,[{key:"Fu",get:function(){return!In.Yi||(In.Sr?92!==In.Er:In.Tr>=100)}}]),t}(Fi),Bi=function(n){function t(){return n.apply(this,arguments)}return un(t,n),rn(t,[{key:"xu",get:function(){return!0}}]),t}(Ai),Hi=function(){function t(){var t;this.ju=new lt,this.Qu=new Gi,this.Ku=(t=In.Lr?new Li:In.Cr||In.Pr?new Mi:In.Ur?new Wi:In.Ar?new xi:new Fi,In.dr?new Di(t):In.yr?new Ci(t):In.Ir?new Pi(t):In.Nr?new Vi(t):In.Gi?new Bi(t):new Ai(t)),this.Zu=function(){if(n.URL)try{var t=new n.URL("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href}catch(n){}return!1}(),n.performance&&n.performance.now?this.$r=function(){return n.performance.now()}:this.$r=ot}var r=t.prototype;return r.Ju=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];An.apply(void 0,sn(t))},r.$u=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Cn.apply(void 0,sn(t))},r.ns=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Dn.apply(void 0,sn(t))},r.rs=function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];Pn.apply(void 0,[n].concat(sn(r)))},r.ue=function(n,t){return u(n,t)},r.us=function(n,t){return f(n,t)},r.re=function(n){o(n)},r.hs=function(n){s(n)},r.ke=function(n){return this.ju.ke(n)},r.fs=function(){return this.vs.fs()},r.ds=function(){return this.vs.ds()},r.ls=function(){return this.vs.ls()},r._s=function(){return this.vs._s()},r.gs=function(){return this.vs.gs()},r.ys=function(n,t){return this.vs.ys(n,t)},r.As=function(n){return this.vs.As(n)},r.Ts=function(n,t){var r;return void 0===t&&(t=Ti(Ii)),r="object"!=typeof t||t instanceof Ri?t:t.href,new Ri(n,r)},r.Ss=function(t,r){if(void 0===r&&(r=Ti(Ii)),this.Zu){var i="string"==typeof r?r:r.toString();return new n.URL(t,i).href}return this.Ts(t,r).href},rn(t,[{key:"Es",get:function(){return this.Qu}},{key:"Is",get:function(){return this.Ku}},{key:"Rs",get:function(){return{Ns:e&&e.userAgent.match(/Android /i)?"Android":"other",Ds:Boolean(e&&e.userAgent.match(/Android 8.0.0/i))}}},{key:"Cs",get:function(){return n&&n.location&&"https:"===n.location.protocol}},{key:"Ps",get:function(){return"languages"in e?e.languages.slice():[e.language]}}]),t}(),Gi=function(){function n(){}return rn(n,[{key:"Os",get:function(){return e.oscpu}},{key:"Is",get:function(){return e.platform}},{key:"Bs",get:function(){return e.vendor}},{key:"Ls",get:function(){return e.vendorSub}}]),n}();function ji(n,t,r,i,e,u,o){try{var f=n[u](o),s=f.value}catch(n){return void r(n)}f.done?t(s):K.resolve(s).then(i,e)}function Ki(n){return function(){var t=this,r=arguments;return new K((function(i,e){var u=n.apply(t,r);function o(n){ji(u,i,e,o,f,"next",n)}function f(n){ji(u,i,e,o,f,"throw",n)}o(void 0)}))}}function qi(){return(qi=h.assign||function(n){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)h.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])}return n}).apply(this,arguments)}function Xi(n,t){var r,i,e,u,o=function(n){return function(t){return f([n,t])}},f=function(u){if(r)throw new a("Generator is already executing.");for(;s;)try{if(r=1,i&&(e=2&u[0]?i.return:u[0]?i.throw||((e=i.return)&&e.call(i),0):i.next)&&!(e=e.call(i,u[1])).done)return e;switch(i=0,e&&(u=[2&u[0],e.value]),u[0]){case 0:case 1:e=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,i=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(e=s.trys,(e=e.length>0&&e[e.length-1])||6!==u[0]&&2!==u[0])){s=0;continue}if(3===u[0]&&(!e||u[1]>e[0]&&u[1]<e[3])){s.label=u[1];break}if(6===u[0]&&s.label<e[1]){s.label=e[1],e=u;break}if(e&&s.label<e[2]){s.label=e[2],s.ops.push(u);break}e[2]&&s.ops.pop(),s.trys.pop();continue}u=t.call(n,s)}catch(n){u=[6,n],i=0}finally{r=e=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}},s={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return u={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u}function zi(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var i,e,u=[],o=!0,f=!1;try{for(r=r.call(n);!(o=(i=r.next()).done)&&(u.push(i.value),!t||u.length!==t);o=!0);}catch(n){f=!0,e=n}finally{try{o||null==r.return||r.return()}finally{if(f)throw e}}return u}}(n,t)||fn(n,t)||function(){throw new a("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yi(){var n=h.create(null);return n.__=void 0,delete n.__,n}function $i(){return new Qi}var Zi,Ji="undefined"!=typeof Map&&"entries"in Map.prototype?Map:void 0,Qi=Ji||(Zi=function(){function n(n,t){this.index=0,this.data=n,this.selector=t,this.keys=h.keys(n)}return n.prototype.next=function(){var n=this.index;return n<this.keys.length?(this.index++,{value:this.selector(this.data,this.keys[n]),done:!1}):{value:void 0,done:!0}},n}(),function(){function n(){this.data=Yi(),this.size=0}var t=n.prototype;return t.get=function(n){return this.data[n]},t.set=function(n,t){return this.has(n)||this.size++,this.data[n]=t,this},t.has=function(n){return n in this.data},t.delete=function(n){return!!this.has(n)&&(this.size--,delete this.data[n],!0)},t.clear=function(){this.data=Yi(),this.size=0},t.keys=function(){return new Zi(this.data,(function(n,t){return t}))},t.values=function(){return new Zi(this.data,(function(n,t){return n[t]}))},t.entries=function(){return new Zi(this.data,(function(n,t){return[t,n[t]]}))},t.forEach=function(n){for(var t in this.data)n(this.data[t],t)},n}());var ne,te,re;Ji||(ne=function(){function n(n,t){this.xs=n,this.Us=t}return n.prototype.next=function(){var n=this.xs.next();return n.done?n:{value:this.Us(n.value),done:!1}},n}());(re=te||(te={})).Hs="9a04f079-9840-4286-ab92-e65be0885f95",re.Vs="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",re.Xs="1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",re.zs="94ce86fb-07ff-4f43-adb8-93d2fa968ca2";var ie,ee,ue="9a04f079-9840-4286-ab92-e65be0885f95",oe="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",fe="1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",se="94ce86fb-07ff-4f43-adb8-93d2fa968ca2",ce="urn:uuid:"+se;(ee=ie||(ie={})).Hs="playready",ee.Vs="widevine",ee.zs="fairplay",ee.Xs="clearkey",ee.Ws="aes128";var ae={qs:ie.Hs,Gs:"com.microsoft.playready",Ys:"cenc",js:ue,Qs:"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95",Ks:"PlayReady"},he={qs:ie.Vs,Gs:"com.widevine.alpha",Ys:"cenc",js:oe,Qs:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",Ks:"Widevine"},le={qs:ie.zs,Gs:"com.apple.fps.1_0",Ys:"skd",js:se,Qs:ce,Ks:"FairPlay"},ve=(ie.zs,{qs:ie.Xs,Gs:"org.w3.clearkey",Ys:"cenc",js:fe,Qs:"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",Ks:"ClearKey"});var _e=In.Ar&&In.Tr>=42||In.Lr&&In.Mr>=38||In.Cr||In.Or||In.Hr&&In.Vr>=29;function de(n,t){return i="audio",null!=(r=n)&&-1!==r.indexOf(i)?{initDataTypes:["cenc"],audioCapabilities:[qi({contentType:n},t?{robustness:"SW_SECURE_CRYPTO"}:{})]}:{initDataTypes:["cenc"],videoCapabilities:[qi({contentType:n},t?{robustness:"SW_SECURE_CRYPTO"}:{})]};var r,i}var ye,we,pe=function(){function n(n){this.Zs=$i(),this.Js=void 0,this.$s=n}var t=n.prototype;return t.gs=function(){return this.As(he)},t.ds=function(){return this.As(ve)},t._s=function(){return this.As(ae)},t.ls=function(){return this.As(le)},t.As=function(n){var t=n.Qs,r=this.Zs.get(t);if(r)return r;var i=this.ys(n,'video/mp4; codecs="avc1.42000a"');return this.Zs.set(t,i),i},t.ys=function(n,t){var r=this;return Ki((function(){return Xi(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,7]),[4,r.$s.uo(n.Gs,[de(t,!0)])];case 1:return i.sent(),[2,!0];case 2:i.sent(),i.label=3;case 3:return i.trys.push([3,5,,6]),[4,r.$s.uo(n.Gs,[de(t,!1)])];case 4:return i.sent(),[2,!0];case 5:return i.sent(),[2,!1];case 6:return[3,7];case 7:return[2]}}))}))()},t.fs=function(){return this.Js||(this.Js=this.oo()),this.Js},t.oo=function(){var n=this;return Ki((function(){return Xi(this,(function(t){switch(t.label){case 0:return"https:"===undefined.protocol?[2,!1]:_e?[4,n.ds()]:[2,!1];case 1:return t.sent()?[2,!1]:[2,!0]}}))}))()},n}(),Ee=function(){function n(){}var t=n.prototype;return t.Vv=function(){},t.Ia=function(n){},t.Ta=function(n){},t.Xv=function(n,t){},n}(),Ie=function(){function n(){}return n.prototype.uo=function(n,t){return K.reject(new a("Unsupported key system configuration"))},n}();(we=ye||(ye={})).Fd="arraybuffer",we.Hd="json",we.Vd="stream",we.ye="text";var ge,Re,Te=function(){function n(t){var r=this;this.Fs={},t instanceof n?t.asList().forEach((function(n){var t=zi(n,2),i=t[0],e=t[1];r.append(i,e)})):Array.isArray(t)?t.forEach((function(n){r.append(n[0],n[1])})):t&&h.getOwnPropertyNames(t).forEach((function(n){r.append(n,t[n])}))}var t=n.prototype;return t.append=function(n,t){var r=n,i=t;r=Se(r),i=ke(i);var e=r.toLowerCase();if(this.Fs.hasOwnProperty(e)){var u=this.Fs[e],o=u[1];u[1]=o?o+", "+i:i}else this.Fs[e]=[r,i]},t.delete=function(n){var t=Se(n).toLowerCase();delete this.Fs[t]},t.get=function(n){var t=Se(n).toLowerCase();return this.Fs.hasOwnProperty(t)?this.Fs[t][1]:null},t.has=function(n){var t=Se(n).toLowerCase();return this.Fs.hasOwnProperty(t)},t.set=function(n,t){var r=n,i=(r=Se(r)).toLowerCase();this.Fs[i]=[r,ke(t)]},t.forEach=function(n,t){for(var r in this.Fs)this.Fs.hasOwnProperty(r)&&n.call(t,this.Fs[r][1],r,this)},t.asList=function(){var n=[];for(var t in this.Fs)if(this.Fs.hasOwnProperty(t)){var r=zi(this.Fs[t],2),i=r[0],e=r[1];n.push([i,e])}return n},t.Xd=function(){var n={};return this.forEach((function(t,r){n[r]=t})),n},t.zd=function(n){var t=this;n.forEach((function(n,r){t.append(r,n)}))},t.Wd=function(n){var t=this;n.forEach((function(n,r){t.set(r,n)}))},n}();function Se(n){var t=n;if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new a("Invalid character in header field name");return t}function ke(n){var t=n;return"string"!=typeof t&&(t=String(t)),t}function Oe(n,t){var r=n.indexOf(t);return-1!==r&&(function(n,t){n.splice(t,1)}(n,r),!0)}function be(n){n.length=0}(Re=ge||(ge={}))[Re.ao=0]="ao",Re[Re.do=1]="do",Re[Re._o=-1]="_o";var me,Ne,Ae,Ce,De,Pe,Fe,Le,Ue=function(){function n(){this.mo=!1,this.po=!1,this.Ao=[],this.To=[]}var t=n.prototype;return t.So=function(){if(!this.mo&&!this.po){this.mo=!0;for(var n=0,t=this.Ao.slice();n<t.length;n++){(0,t[n])()}this.Eo()}},t.Eo=function(){if(!this.po){this.po=!0;for(var n=0,t=this.To.slice();n<t.length;n++){(0,t[n])()}be(this.Ao),be(this.To)}},t.Io=function(n){this.po||this.Ao.push(n)},t.Ro=function(n){this.po||Oe(this.Ao,n)},t.No=function(n){this.po||this.To.push(n)},t.Do=function(n){this.po||Oe(this.To,n)},n}(),Me=function(){function n(){this.Co=new Ue}var t=n.prototype;return t.Po=function(){this.Co.So()},t.Eo=function(){this.Co.Eo()},t.Oo=function(n){var t=this.Co;if(!t.mo)if(n.mo)t.So();else if(!t.po&&!n.po){var r=function(){i(),t.So()},i=function(){n.Ro(r),n.Do(i),t.Ro(r),t.Do(i)};n.Io(r),n.No(i),t.Io(r),t.No(i)}},t.Bo=function(){var t=new n,r=new n,i=t.Lo,e=r.Lo,u=this.Co,o=function(){i.mo&&e.po||e.mo&&i.po?u.So():i.po&&e.po&&u.Eo()};i.Io(o),e.Io(o),i.No(o),e.No(o),t.Oo(u),r.Oo(u);return u.No((function(){i.Ro(o),e.Ro(o),i.Do(o),e.Do(o)})),[t,r]},rn(n,[{key:"Lo",get:function(){return this.Co}}]),n}();(Ne=me||(me={})).DELETE="DELETE",Ne.GET="GET",Ne.HEAD="HEAD",Ne.OPTIONS="OPTIONS",Ne.POST="POST",Ne.PUT="PUT",(Ce=Ae||(Ae={})).Il="",Ce.Rl="manifest",Ce.Nl="segment",Ce.Dl="preload-hint",Ce.Cl="content-protection",(Pe=De||(De={})).Il="",Pe.Pl="initialization-segment",Pe.Ol="fairplay-license",Pe.Bl="fairplay-certificate",Pe.Ll="widevine-license",Pe.Ml="widevine-certificate",Pe.xl="playready-license",Pe.Ul="clearkey-license",Pe.Fl="aes128-key",(Le=Fe||(Fe={})).Il="",Le.Hl="audio",Le.Vl="video",Le.ye="text",Le.Xl="image";var We,Ve,xe=function(n,t){var r,i,e,u,o,f,s,c,a,h,l,v,_=n.Sl;t?(r=t.Jd,i=t._l,e=t.zl,u=t.wl,o=t.Wl,f=t.ql,s=t.Lo,c=t.qs,a=t.Gl,h=t.Yl,l=t.jl,v=t.Ql):(r=null,i={},e="GET",u=ye.ye,o=0,f=0,c="",a="",h="",l=!1),this.Sl=_,this.Jd=n.Jd||r,this._l=new Te(n._l||i),this.zl=n.zl||e,this.wl=n.wl||u,this.Wl=void 0!==n.Wl?Number(n.Wl)||0:o,this.ql=void 0!==n.ql?Number(n.ql)||0:f,this.Lo=n.Lo||s||(new Me).Lo,this.qs=n.qs||c,this.Gl=n.Gl||a,this.Yl=n.Yl||h,this.jl=void 0!==n.jl?Boolean(n.jl):l,this.Ql=n.Ql||v};(Ve=We||(We={})).e_="HttpOpenError",Ve.u_="HttpResponseError",Ve.s_="HttpTimeoutError";var Be,He,Ge,je,Ke,qe,Xe,ze=function(n){function t(t,r){return n.call(this,t,"Error while opening "+t.Sl+". Invalid URL.",r)}return un(t,n),rn(t,[{key:"name",get:function(){return We.e_}}]),t}(function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).o_=t,e}return un(t,n),rn(t,[{key:"bl",get:function(){return this.o_}}]),t}(at)),Ye=function(){function n(){}var t=n.prototype;return t.bl=function(n){return K.reject(new ze(new xe(n)))},t.Kl=function(n){},t.bv=function(){},n}();Be=new(function(n){function t(){var t;return(t=n.apply(this,arguments)||this).Y_=new pe(new Ie),t.gI=new Ye,t.t=new Ee,t}return un(t,n),rn(t,[{key:"vs",get:function(){return this.Y_}},{key:"J_",get:function(){return!1}},{key:"rg",get:function(){return!1}},{key:"og",get:function(){return!1}},{key:"eg",get:function(){return!1}},{key:"ag",get:function(){return this.t}},{key:"cg",get:function(){return{hg:Tn}}},{key:"fg",get:function(){return"default"}},{key:"vg",get:function(){return"unknown"}},{key:"dg",get:function(){return this.gI}}]),t}(Hi)),(Ge=He||(He={}))[Ge.MPEGTS_TO_FMP4=0]="MPEGTS_TO_FMP4",Ge[Ge.RAW_AUDIO_TO_FMP4=1]="RAW_AUDIO_TO_FMP4",(Ke=je||(je={}))[Ke.CONFIGURATION_ERROR=1e3]="CONFIGURATION_ERROR",Ke[Ke.LICENSE_ERROR=2e3]="LICENSE_ERROR",Ke[Ke.LICENSE_INVALID_DOMAIN=2001]="LICENSE_INVALID_DOMAIN",Ke[Ke.LICENSE_INVALID_SOURCE=2002]="LICENSE_INVALID_SOURCE",Ke[Ke.LICENSE_EXPIRED=2003]="LICENSE_EXPIRED",Ke[Ke.LICENSE_INVALID_FEATURE=2004]="LICENSE_INVALID_FEATURE",Ke[Ke.SOURCE_INVALID=3e3]="SOURCE_INVALID",Ke[Ke.SOURCE_NOT_SUPPORTED=3001]="SOURCE_NOT_SUPPORTED",Ke[Ke.MANIFEST_LOAD_ERROR=4e3]="MANIFEST_LOAD_ERROR",Ke[Ke.MANIFEST_CORS_ERROR=4001]="MANIFEST_CORS_ERROR",Ke[Ke.MANIFEST_PARSE_ERROR=4002]="MANIFEST_PARSE_ERROR",Ke[Ke.MEDIA_NOT_SUPPORTED=5e3]="MEDIA_NOT_SUPPORTED",Ke[Ke.MEDIA_LOAD_ERROR=5001]="MEDIA_LOAD_ERROR",Ke[Ke.MEDIA_DECODE_ERROR=5002]="MEDIA_DECODE_ERROR",Ke[Ke.MEDIA_AVPLAYER_ERROR=5003]="MEDIA_AVPLAYER_ERROR",Ke[Ke.MEDIA_ABORTED=5004]="MEDIA_ABORTED",Ke[Ke.NETWORK_ERROR=6e3]="NETWORK_ERROR",Ke[Ke.NETWORK_TIMEOUT=6001]="NETWORK_TIMEOUT",Ke[Ke.CONTENT_PROTECTION_ERROR=7e3]="CONTENT_PROTECTION_ERROR",Ke[Ke.CONTENT_PROTECTION_NOT_SUPPORTED=7001]="CONTENT_PROTECTION_NOT_SUPPORTED",Ke[Ke.CONTENT_PROTECTION_CONFIGURATION_MISSING=7002]="CONTENT_PROTECTION_CONFIGURATION_MISSING",Ke[Ke.CONTENT_PROTECTION_CONFIGURATION_INVALID=7003]="CONTENT_PROTECTION_CONFIGURATION_INVALID",Ke[Ke.CONTENT_PROTECTION_INITIALIZATION_INVALID=7004]="CONTENT_PROTECTION_INITIALIZATION_INVALID",Ke[Ke.CONTENT_PROTECTION_CERTIFICATE_ERROR=7005]="CONTENT_PROTECTION_CERTIFICATE_ERROR",Ke[Ke.CONTENT_PROTECTION_CERTIFICATE_INVALID=7006]="CONTENT_PROTECTION_CERTIFICATE_INVALID",Ke[Ke.CONTENT_PROTECTION_LICENSE_ERROR=7007]="CONTENT_PROTECTION_LICENSE_ERROR",Ke[Ke.CONTENT_PROTECTION_LICENSE_INVALID=7008]="CONTENT_PROTECTION_LICENSE_INVALID",Ke[Ke.CONTENT_PROTECTION_KEY_EXPIRED=7009]="CONTENT_PROTECTION_KEY_EXPIRED",Ke[Ke.CONTENT_PROTECTION_KEY_MISSING=7010]="CONTENT_PROTECTION_KEY_MISSING",Ke[Ke.CONTENT_PROTECTION_OUTPUT_RESTRICTED=7011]="CONTENT_PROTECTION_OUTPUT_RESTRICTED",Ke[Ke.CONTENT_PROTECTION_INTERNAL_ERROR=7012]="CONTENT_PROTECTION_INTERNAL_ERROR",Ke[Ke.SUBTITLE_LOAD_ERROR=8e3]="SUBTITLE_LOAD_ERROR",Ke[Ke.SUBTITLE_CORS_ERROR=8001]="SUBTITLE_CORS_ERROR",Ke[Ke.SUBTITLE_PARSE_ERROR=8002]="SUBTITLE_PARSE_ERROR",Ke[Ke.VR_PLATFORM_UNSUPPORTED=9e3]="VR_PLATFORM_UNSUPPORTED",Ke[Ke.VR_PRESENTATION_ERROR=9001]="VR_PRESENTATION_ERROR",Ke[Ke.AD_ERROR=1e4]="AD_ERROR",Ke[Ke.AD_BLOCKER_DETECTED=10001]="AD_BLOCKER_DETECTED",Ke[Ke.FULLSCREEN_ERROR=11e3]="FULLSCREEN_ERROR",Ke[Ke.CACHE_SOURCE_ERROR=12e3]="CACHE_SOURCE_ERROR",Ke[Ke.CACHE_CONTENT_PROTECTION_ERROR=12001]="CACHE_CONTENT_PROTECTION_ERROR",(Xe=qe||(qe={}))[Xe.CONFIGURATION=1]="CONFIGURATION",Xe[Xe.LICENSE=2]="LICENSE",Xe[Xe.SOURCE=3]="SOURCE",Xe[Xe.MANIFEST=4]="MANIFEST",Xe[Xe.MEDIA=5]="MEDIA",Xe[Xe.NETWORK=6]="NETWORK",Xe[Xe.CONTENT_PROTECTION=7]="CONTENT_PROTECTION",Xe[Xe.SUBTITLE=8]="SUBTITLE",Xe[Xe.VR=9]="VR",Xe[Xe.AD=10]="AD",Xe[Xe.FULLSCREEN=11]="FULLSCREEN",Xe[Xe.CACHE=12]="CACHE",(qe||(qe={})).fromCode=function(n){var t=l.floor(n/1e3);if(t in qe)return t;throw new a("Invalid error code: "+n)};var $e=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).code=t,e}return un(t,n),rn(t,[{key:"name",get:function(){return"THEOplayerError"}},{key:"category",get:function(){return qe.fromCode(this.code)}}]),t}(at);var Ze,Je=function(){function n(n){this.encoding=n}var t=n.prototype;return t.encode=function(n){if(!n)return new y(0);for(var t=new y(n.length),r=0;r<n.length;r++)t[r]=n.charCodeAt(r);return t},t.encodeInto=function(n,t){for(var r=l.min(n.length,t.byteLength),i=0;i<r;i++)t[i]=n.charCodeAt(i);return{read:r,written:r}},n}();var Qe=new(function(){function n(n,t){this.encoding=n,this.fatal=(null==t?void 0:t.fatal)||!1,this.ignoreBOM=(null==t?void 0:t.ignoreBOM)||!1}return n.prototype.decode=function(n,t){return n?(r=n instanceof ArrayBuffer?new y(n):new y(n.buffer,n.byteOffset,n.byteLength),String.fromCharCode.apply(void 0,r)):"";var r},n}())("utf-8",{ignoreBOM:!0,fatal:!0});Qe.decode();var nu=new y;function tu(){return nu.buffer!==Ze.memory.buffer&&(nu=new y(Ze.memory.buffer)),nu}function ru(n,t){return Qe.decode(tu().subarray(n,n+t))}var iu=new Array(32).fill(void 0);iu.push(void 0,null,!0,!1);var eu=iu.length;function uu(n){eu===iu.length&&iu.push(iu.length+1);var t=eu;return eu=iu[t],iu[t]=n,t}function ou(n){return iu[n]}function fu(n){var t=ou(n);return function(n){n<36||(iu[n]=eu,eu=n)}(n),t}var su=0;function cu(n,t){var r=t(1*n.length);return tu().set(n,r/1),su=n.length,r}var au=new Int32Array;function hu(){return au.buffer!==Ze.memory.buffer&&(au=new Int32Array(Ze.memory.buffer)),au}function lu(n){return null==n}function vu(n,t){return tu().subarray(n/1,n/1+t)}var _u=new Je("utf-8"),du="function"==typeof _u.encodeInto?function(n,t){return _u.encodeInto(n,t)}:function(n,t){var r=_u.encode(n);return t.set(r),{read:n.length,written:r.length}};function yu(n,t){return wu.apply(this,arguments)}function wu(){return(wu=Ki((function(n,t){var r,i,e;return Xi(this,(function(u){switch(u.label){case 0:if(!("function"==typeof Response&&n instanceof Response))return[3,7];if("function"!=typeof WebAssembly.instantiateStreaming)return[3,4];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,WebAssembly.instantiateStreaming(n,t)];case 2:return[2,u.sent()];case 3:if(r=u.sent(),"application/wasm"==n.headers.get("Content-Type"))throw r;return console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r),[3,4];case 4:return[4,n.arrayBuffer()];case 5:return i=u.sent(),[4,WebAssembly.instantiate(i,t)];case 6:return[2,u.sent()];case 7:return[4,WebAssembly.instantiate(n,t)];case 8:return(e=u.sent())instanceof WebAssembly.Instance?[2,{instance:e,module:n}]:[2,e];case 9:return[2]}}))}))).apply(this,arguments)}function pu(){var n={wbg:{}};return n.wbg.__wbg_createoutputdata_6b40e2d0bf591351=function(n,t,r,i,e,u,o,f){var s,c,a,h;return 0!==n&&(s=vu(n,t).slice(),Ze.__wbindgen_export_1(n,1*t)),0!==r&&(c=vu(r,i).slice(),Ze.__wbindgen_export_1(r,1*i)),0!==e&&(a=vu(e,u).slice(),Ze.__wbindgen_export_1(e,1*u)),0!==o&&(h=vu(o,f).slice(),Ze.__wbindgen_export_1(o,1*f)),uu({video_init:s,audio_init:c,video_media:a,audio_media:h})},n.wbg.__wbg_createtimestampwithbase_a7181e99aa8a3e6d=function(n,t,r){return uu({low:n>>>0,high:t>>>0,base:r>>>0})},n.wbg.__wbg_createoutputmetadata_087921c90f975bf2=function(n,t,r,i,e,u,o,f,s,c,a,h,l,v,_,d){var y,w,p,E,I,g,R,T,S,k,O,b,m;return 0!==r&&(y=ru(r,i).slice(),Ze.__wbindgen_export_1(r,1*i)),0!==e&&(w=ru(e,u).slice(),Ze.__wbindgen_export_1(e,1*u)),0!==o&&(p=vu(o,f).slice(),Ze.__wbindgen_export_1(o,1*f)),0!==s&&(E=vu(s,c).slice(),Ze.__wbindgen_export_1(s,1*c)),uu((I=16777215===n?void 0:n,g=16777215===t?void 0:t,R=y,T=w,S=p,k=E,O=fu(a),b=fu(h),m=fu(l),{video_pid:I,audio_pid:g,video_codec:R,audio_codec:T,sps_nal:S,pps_nal:k,first_decode_timestamp:O,first_presentation_timestamp:b,first_video_presentation_timestamp:m,program_map_table_pid:16777215===v?void 0:v,video_frame_rate:0===_?void 0:d}))},n.wbg.__wbg_createoutput_2e2c81ae854b249f=function(n,t){var r,i;return uu((r=fu(n),i=fu(t),{data:r,metadata:i}))},n.wbg.__wbindgen_string_new=function(n,t){return uu(ru(n,t))},n.wbg.__wbg_new_693216e109162396=function(){return uu(new c)},n.wbg.__wbg_stack_0ddaca5d1abfb52f=function(n,t){var r=function(n,t,r){if(void 0===r){var i=_u.encode(n),e=t(i.length);return tu().subarray(e,e+i.length).set(i),su=i.length,e}for(var u=n.length,o=t(u),f=tu(),s=0;s<u;s++){var c=n.charCodeAt(s);if(c>127)break;f[o+s]=c}if(s!==u){0!==s&&(n=n.slice(s)),o=r(o,u,u=s+3*n.length);var a=tu().subarray(o+s,o+u);s+=du(n,a).written}return su=s,o}(ou(t).stack,Ze.__wbindgen_export_0,Ze.__wbindgen_export_2),i=su;hu()[n/4+1]=i,hu()[n/4+0]=r},n.wbg.__wbg_error_09919627ac0992f5=function(n,t){try{console.error(ru(n,t))}finally{Ze.__wbindgen_export_1(n,t)}},n.wbg.__wbindgen_object_drop_ref=function(n){fu(n)},n.wbg.__wbg_data_df0aa68353fd8525=function(n,t){var r=cu(ou(t).data,Ze.__wbindgen_export_0),i=su;hu()[n/4+1]=i,hu()[n/4+0]=r},n.wbg.__wbg_metadata_5d6bcbe919824c62=function(n){var t=ou(n).metadata;return lu(t)?0:uu(t)},n.wbg.__wbg_spsnal_d4e9cd697d5ffd6a=function(n,t){var r=ou(t).sps_nal,i=lu(r)?0:cu(r,Ze.__wbindgen_export_0),e=su;hu()[n/4+1]=e,hu()[n/4+0]=i},n.wbg.__wbg_ppsnal_2957415e1f10ff6a=function(n,t){var r=ou(t).pps_nal,i=lu(r)?0:cu(r,Ze.__wbindgen_export_0),e=su;hu()[n/4+1]=e,hu()[n/4+0]=i},n.wbg.__wbg_videopid_11284482934d63dd=function(n){var t=ou(n).video_pid;return lu(t)?16777215:t},n.wbg.__wbg_audiopid_7607b7312421e26a=function(n){var t=ou(n).audio_pid;return lu(t)?16777215:t},n.wbg.__wbg_programmaptablepid_1d4cdd5c8c3d4a5e=function(n){var t=ou(n).program_map_table_pid;return lu(t)?16777215:t},n}function Eu(n,t){return Ze=n.exports,Iu.__wbindgen_wasm_module=t,au=new Int32Array,nu=new y,Ze.__wbindgen_start(),Ze}function Iu(n){return gu.apply(this,arguments)}function gu(){return(gu=Ki((function(n){var t,r,i,e;return Xi(this,(function(u){switch(u.label){case 0:return void 0===n&&(n=new URL("theomux_bg.wasm",void 0)),t=pu(),("string"==typeof n||"function"==typeof Request&&n instanceof Request||"function"==typeof URL&&n instanceof URL)&&(n=fetch(n)),[4,n];case 1:return[4,yu.apply(void 0,[u.sent(),t])];case 2:return r=u.sent(),i=r.instance,e=r.module,[2,Eu(i,e)]}}))}))).apply(this,arguments)}function Ru(){return(Ru=Ki((function(n){var t;return Xi(this,(function(r){switch(r.label){case 0:return"string"==typeof n&&(n=new URL(n)),[4,Iu(t=Su(n))];case 1:return r.sent(),[2,new Tu(t)]}}))}))).apply(this,arguments)}var Tu=function(){function n(n){this.ve=n}var t=n.prototype;return t.mpegts_to_fmp4=function(n){return function(n){try{var t=Ze.__wbindgen_add_to_stack_pointer(-16);Ze.mpegts_to_fmp4(t,uu(n));var r=hu()[t/4+0],i=hu()[t/4+1];if(hu()[t/4+2])throw fu(i);return fu(r)}finally{Ze.__wbindgen_add_to_stack_pointer(16)}}(n)},t.raw_audio_to_fmp4=function(n){return function(n){try{var t=Ze.__wbindgen_add_to_stack_pointer(-16);Ze.raw_audio_to_fmp4(t,uu(n));var r=hu()[t/4+0],i=hu()[t/4+1];if(hu()[t/4+2])throw fu(i);return fu(r)}finally{Ze.__wbindgen_add_to_stack_pointer(16)}}(n)},t.restart=function(){var n=this;return Ki((function(){return Xi(this,(function(t){switch(t.label){case 0:return[4,Iu(n.ve)];case 1:return t.sent(),[2]}}))}))()},n}();function Su(n){return ku.apply(this,arguments)}function ku(){return(ku=Ki((function(n){var t,r,i,e;return Xi(this,(function(u){switch(u.label){case 0:return"http:"!==n.protocol&&"https:"!==n.protocol?[3,8]:[4,fetch(n.href)];case 1:if(t=u.sent(),"function"!=typeof WebAssembly.compileStreaming)return[3,5];u.label=2;case 2:return u.trys.push([2,4,,5]),[4,WebAssembly.compileStreaming(t)];case 3:return[2,u.sent()];case 4:if(r=u.sent(),"application/wasm"===t.headers.get("Content-Type"))throw r;return console.warn("`WebAssembly.compileStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.compile` which is slower. Original error:\n",r),[3,5];case 5:return[4,t.arrayBuffer()];case 6:return i=u.sent(),[4,WebAssembly.compile(i)];case 7:return[2,u.sent()];case 8:return[4,Ou(n.href)];case 9:return e=u.sent(),[4,WebAssembly.compile(e)];case 10:return[2,u.sent()];case 11:return[2]}}))}))).apply(this,arguments)}function Ou(n){return new K((function(t,r){var i=new w;i.onload=function(){t(i.response||new ArrayBuffer(0))},i.onerror=function(){r(new a('Failed to fetch "'+n+'", status '+i.status))},i.open("GET",n,!0),i.responseType="arraybuffer",i.send()}))}var bu=new URL("./THEOplayer.transmux.wasm",i.href);!function(t){var r,i=K.resolve(t()).then((function(t){r=t,i=void 0,n.postMessage({REt:"5.10.0"})}),(function(t){var r=t,i={success:!1,error:r.message,errorCode:r instanceof $e?r.code:je.MEDIA_DECODE_ERROR};n.postMessage(i)}));function e(){return(e=Ki((function(t){var e,u,o,f,s,a;return Xi(this,(function(h){switch(h.label){case 0:return void 0===i?[3,2]:[4,i];case 1:h.sent(),h.label=2;case 2:if(o=t.id,t.type===He.MPEGTS_TO_FMP4)f=r.mpegts_to_fmp4(t.input);else{if(t.type!==He.RAW_AUDIO_TO_FMP4)throw new c("Unknown request type: "+t.type);f=r.raw_audio_to_fmp4(t.input)}return s={success:!0,requestId:o,output:f},a=[null==(e=t.input.metadata)?void 0:e.sps_nal,null==(u=t.input.metadata)?void 0:u.pps_nal,t.input.data,f.data.video_init,f.data.audio_init,f.data.video_media,f.data.audio_media].filter(Rn).map((function(n){return n.buffer})),n.postMessage(s,a),[2]}}))}))).apply(this,arguments)}n.addEventListener("message",(function(t){var r=t.data.id;(function(n){return e.apply(this,arguments)})(t.data).catch((function(t){var i=t,e={success:!1,requestId:r,error:i.message,errorCode:i instanceof $e?i.code:je.MEDIA_DECODE_ERROR};n.postMessage(e)}))}))}((function(){return function(n){return Ru.apply(this,arguments)}(bu)}))}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this);
30
+ !function(n){"use strict";var t=n.window,r=n.document,i=n.location,e=n.navigator,u=n.setTimeout,o=n.clearTimeout,f=n.setInterval,s=n.clearInterval,c=n.Error,a=n.TypeError,h=(n.SyntaxError,n.Object),l=n.Math,v=n.parseInt,_=n.parseFloat,y=n.isNaN,d=n.Uint8Array,w=(n.Worker,n.WorkerGlobalScope,n.XMLHttpRequest);var I=u;function E(n){return Boolean(n&&void 0!==n.length)}function p(){}function R(n){if(!(this instanceof R))throw new a("Promises must be constructed via new");if("function"!=typeof n)throw new a("not a function");this.Pa=0,this.$$t=!1,this.drt=void 0,this.t0t=[],b(n,this)}function g(n,t){for(;3===n.Pa;)n=n.drt;0!==n.Pa?(n.$$t=!0,R.n0t((function(){var r=1===n.Pa?t.onFulfilled:t.onRejected;if(null!==r){var i;try{i=r(n.drt)}catch(n){return void O(t.promise,n)}S(t.promise,i)}else(1===n.Pa?S:O)(t.promise,n.drt)}))):n.t0t.push(t)}function S(n,t){try{if(t===n)throw new a("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var r=t.then;if(t instanceof R)return n.Pa=3,n.drt=t,void T(n);if("function"==typeof r)return void b(function(n,t){return function(){n.apply(t,arguments)}}(r,t),n)}n.Pa=1,n.drt=t,T(n)}catch(t){O(n,t)}}function O(n,t){n.Pa=2,n.drt=t,T(n)}function T(n){2===n.Pa&&0===n.t0t.length&&R.n0t((function(){n.$$t||R.i0t(n.drt)}));for(var t=0,r=n.t0t.length;t<r;t++)g(n,n.t0t[t]);n.t0t=null}function k(n,t,r){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.promise=r}function b(n,t){var r=!1;try{n((function(n){r||(r=!0,S(t,n))}),(function(n){r||(r=!0,O(t,n))}))}catch(n){if(r)return;r=!0,O(t,n)}}R.prototype.catch=function(n){return this.then(null,n)},R.prototype.then=function(n,t){var r=new this.constructor(p);return g(this,new k(n,t,r)),r},R.prototype.finally=function(n){var t=this.constructor;return this.then((function(r){return t.resolve(n()).then((function(){return r}))}),(function(r){return t.resolve(n()).then((function(){return t.reject(r)}))}))},R.all=function(n){return new R((function(t,r){if(!E(n))return r(new a("Promise.all accepts an array"));var i=Array.prototype.slice.call(n);if(0===i.length)return t([]);var e=i.length;function u(n,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var f=o.then;if("function"==typeof f)return void f.call(o,(function(t){u(n,t)}),r)}i[n]=o,0==--e&&t(i)}catch(n){r(n)}}for(var o=0;o<i.length;o++)u(o,i[o])}))},R.allSettled=function(n){return new this((function(t,r){if(!n||void 0===n.length)return r(new a((void 0===n?"undefined":function(n){return n&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n}(n))+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var i=Array.prototype.slice.call(n);if(0===i.length)return t([]);var e=i.length;function u(n,r){if(r&&("object"==typeof r||"function"==typeof r)){var o=r.then;if("function"==typeof o)return void o.call(r,(function(t){u(n,t)}),(function(r){i[n]={status:"rejected",reason:r},0==--e&&t(i)}))}i[n]={status:"fulfilled",value:r},0==--e&&t(i)}for(var o=0;o<i.length;o++)u(o,i[o])}))},R.resolve=function(n){return n&&"object"==typeof n&&n.constructor===R?n:new R((function(t){t(n)}))},R.reject=function(n){return new R((function(t,r){r(n)}))},R.race=function(n){return new R((function(t,r){if(!E(n))return r(new a("Promise.race accepts an array"));for(var i=0,e=n.length;i<e;i++)R.resolve(n[i]).then(t,r)}))},R.n0t="function"==typeof setImmediate&&function(n){setImmediate(n)}||function(n){I(n,0)},R.i0t=function(n){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",n)};var m,A=function(){var n=self.Promise;if(void 0!==n)try{if(-1!==n.toString().indexOf("[native code]"))return n}catch(n){}}(),N=e?e.userAgent:"",C=N.match(/Firefox\/([0-9]+)/i),D=null!=C,P=C?Number(C[1]):0,F=N.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),L=null!=F,U=F?Number(F[3]):0,M=((m=function(n){this.gI=0,this.Iu=0,this.sR=[],this.r0t=n}).prototype.e0t=function(n){var t=this.length();this.u0t(t+1);var r=this.Iu+t&this.r0t-1;this.sR[r]=n,this.gI=t+1},m.prototype.push=function(n){var t=this.length()+1;if(this.r0t<t)this.e0t(n);else{var r=this.Iu+t-1,i=this.r0t-1;this.sR[r&i]=n,this.gI=t}},m.prototype.shift=function(){var n=this.Iu,t=this.sR[n];return this.sR[n]=void 0,this.Iu=n+1&this.r0t-1,this.gI--,t},m.prototype.length=function(){return this.gI},m.prototype.u0t=function(n){this.r0t<n&&this.s0t(this.r0t<<1)},m.prototype.s0t=function(n){var t=this.r0t;this.r0t=n;var r=this.Iu+this.gI&t-1;!function(n,t,r,i){for(var e=0;e<i;++e)n[e+r]=n[e+t],n[e+t]=void 0}(this.sR,0,t,r)},m);var W="unhandledrejection",V=self.PromiseRejectionEvent,B=self.CustomEvent;function x(n){return new V(W,{reason:n,promise:A.reject(n).catch((function(){})),cancelable:!0})}function H(n){var t=new B(W,{detail:{reason:n},cancelable:!0});return h.defineProperty(t,"reason",{value:n}),t}function G(n){var t=r.createEvent("CustomEvent");return t.initCustomEvent(W,!1,!0,{reason:n}),t}var j,K,q,z,X=function(n){return(X=function(){try{var n=A.resolve(),t="error",r=new V(W,{reason:t,promise:n});return W===r.type&&t===r.reason}catch(n){}return!1}()?x:function(){try{var n="error",t=new B(W,{detail:{reason:n}});return W===t.type&&n===t.detail.reason}catch(n){}return!1}()?H:G)(n)};function $(n,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),h.defineProperty(n,i.key,i)}}function Z(n,t,r){return t&&$(n.prototype,t),r&&$(n,r),n}function Y(n,t){return(Y=h.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function J(n,t){if("function"!=typeof t&&null!==t)throw new a("Super expression must either be null or a function");n.prototype=h.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Y(n,t)}function Q(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=n[r];return i}function nn(n,t){if(n){if("string"==typeof n)return Q(n,t);var r=h.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Q(n,t):void 0}}function tn(n){return function(n){if(Array.isArray(n))return Q(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||nn(n)||function(){throw new a("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}A&&!(D&&P<60||L&&U<15)?K=A:(K=R,(q=function(n){var t=new M(16),r=!1,i=function(){for(;t.length()>0;)t.shift()();r=!1};return{bY:function(e){t.push(e),r||(r=!0,n(i))},N2:i}}(null!==(j=function(){var n=self.queueMicrotask;if("function"==typeof n)return function(t){return n(t)};var t=A;if(t&&"function"==typeof t.resolve){var r=t.resolve();return function(n){return r.then(n)}}}())&&void 0!==j?j:R.n0t)).N2,R.n0t=q.bY,R.i0t=function(n){try{var t=X(n);if(!self.dispatchEvent(t)||t.defaultPrevented)return}catch(n){}u((function(){throw new c("Unhandled promise rejection: ".concat(n))}),0)}),function(n){n.US="web",n.HS="android",n.VS="android-tv",n.qS="ios",n.WS="tvos",n.zS="chromecast"}(z||(z={}));var rn=e?e.userAgent:"",en=rn.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),un=rn.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),on=rn.match(/Android ([0-9\.]+)/i),fn=rn.match(/Windows NT ([0-9\.]+)/i),sn=rn.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),cn=rn.match(/Firefox\/([0-9\.]+)/i),an=rn.match(/OPR\/(\d+\.\d+)/i),hn=rn.match(/Tizen ([0-9\.]+)/i),ln=rn.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),vn=function(){function n(){this.XS=Boolean("ontouchstart"in self||self.DocumentTouch&&r instanceof self.DocumentTouch||e&&e.msMaxTouchPoints),this.QS=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(rn)||/(macintosh|mac(?=_powerpc)\s)/i.test(rn),this.YS=/Windows NT/i.test(rn),this.ZS=fn?_(fn[1]):0,this.$S=/Android/i.test(rn),this.nk=on?_(on[1]):0,this.hk=/windows phone (8|8\.1)/i.test(rn),this.lk=/iPhone/i.test(rn),this.fk=/iPad/i.test(rn),this.gk=this.QS&&this.XS&&!this.fk,this.wk=/iPod/i.test(rn),this.Rk=/Mobile Safari/i.test(rn),this.Sk=/EOS\d*STB/i.test(rn),this.Ek=/APP\d*STB/i.test(rn),this.yk=(this.lk||this.fk||this.gk||this.wk)&&!this.hk,this.bk=ln?_(ln[2]):0,this.Pk=this.hk||this.yk||this.$S||this.Rk,this.Ck=/CriOS/i.test(rn),this.Dk=Boolean(self.chrome&&/google/i.test(e.vendor))||this.Ck,this.Mk=this.Dk&&/Edg\//i.test(e.userAgent),this.Uk=un?v(un[1],10):0,this.NE=Boolean(self.chrome||/Chrome/i.test(rn)||/CriOS/i.test(rn)),this.Lk=en?v(en[1],10):0,this.Vk=/SMART-TV.*Tizen/i.test(rn),this.Wk=hn?_(hn[1]):0,this.Xk=/webos|web0s/i.test(rn),this.Qk=/VIZIO/i.test(rn),this.Yk=/Edge\/\d+/i.test(rn),this.Zk=/Trident/i.test(rn),this.$k=this.Zk&&!self.ActiveXObject&&"ActiveXObject"in self,this.eE=/Vivaldi/i.test(rn),this.sE=/Firefox/i.test(rn)&&!/Seamonkey/i.test(rn),this.rE=cn?_(cn[1]):0,this.oE=/Safari/i.test(rn)&&!/Chrome/i.test(rn)&&!this.hk&&!this.Vk,this.uE=sn?_(sn[2]):0,this.lE=Boolean(an),this.fE=an?_(an[1]):0,this.gE=/CrKey/.test(rn),this.wE=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(rn),this.yE="web"===z.VS,this.bE="web"===z.HS,this.SE=this.bE||this.yE,this.EE="web"===z.qS,this.RE="web"===z.WS,this.xE="web"===z.zS}return Z(n,[{key:"Ye",get:function(){return this.XS}},{key:"GS",get:function(){return this.QS}},{key:"KS",get:function(){return this.YS}},{key:"jS",get:function(){return this.ZS}},{key:"JS",get:function(){return this.$S}},{key:"ek",get:function(){return this.nk}},{key:"rk",get:function(){return this.hk}},{key:"ck",get:function(){return this.lk}},{key:"dk",get:function(){return this.fk}},{key:"_k",get:function(){return this.gk}},{key:"vk",get:function(){return this.wk}},{key:"pk",get:function(){return this.yk}},{key:"Ak",get:function(){return this.bk}},{key:"Tk",get:function(){return this.Sk||this.Ek}},{key:"Ik",get:function(){return this.Rk}},{key:"Ks",get:function(){return this.Pk}},{key:"xk",get:function(){return this.Ck}},{key:"Nk",get:function(){return this.Dk}},{key:"Bk",get:function(){return this.Lk}},{key:"Ok",get:function(){return this.Mk}},{key:"Fk",get:function(){return this.Uk}},{key:"Hk",get:function(){return this.Vk}},{key:"qk",get:function(){return this.Wk}},{key:"zk",get:function(){return this.Xk}},{key:"Gk",get:function(){return this.Qk}},{key:"Kk",get:function(){return this.Yk}},{key:"jk",get:function(){return this.Zk}},{key:"Jk",get:function(){return this.$k}},{key:"tE",get:function(){return this.eE}},{key:"iE",get:function(){return this.sE}},{key:"nE",get:function(){return this.rE}},{key:"hE",get:function(){return this.oE}},{key:"aE",get:function(){return this.uE}},{key:"cE",get:function(){return this.lE}},{key:"dE",get:function(){return this.fE}},{key:"_E",get:function(){return this.gE}},{key:"vE",get:function(){return this.wE}},{key:"mE",get:function(){return!(!this.zk&&!this.Hk)&&this.Bk<=56}},{key:"pE",get:function(){return this.yE}},{key:"AE",get:function(){return this.bE}},{key:"TE",get:function(){return this.SE}},{key:"kE",get:function(){return this.EE}},{key:"IE",get:function(){return this.RE}},{key:"PE",get:function(){return this.xE}},{key:"CE",get:function(){return this.NE}}]),n}();vn.zf=new vn;var _n=vn.zf,yn={}.toString;function dn(n){return null!=n}Array.isArray;var wn=function(){},In=!(_n.jk&&!_n.Jk),En=self.console;function pn(n){if(function(n){return"object"==typeof n&&null!==n}(n))try{return JSON.stringify(n)}catch(n){}return n}function Rn(n){return n.map(pn).join(" ")}function gn(n){var t=En&&En[n];return t?t.bind&&In?t.bind(En):function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];En[n](Rn(r))}:void 0}var Sn=gn("log")||wn,On=gn("warn")||Sn.bind(void 0,"WARNING:"),Tn=gn("error")||Sn.bind(void 0,"ERROR:"),kn=function(){var n=En&&En.assert;return n?n.bind&&In?n.bind(En):function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];En.assert(n,Rn(r))}:function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n||Tn.apply(void 0,["Assertion failed:"].concat(tn(r)))}}(),bn=null;try{bn=new WebAssembly.Instance(new WebAssembly.Module(new d([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(m){}function mn(n,t,r){this.low=0|n,this.high=0|t,this.unsigned=!!r}function An(n){return!0===(n&&n.Nf)}function Nn(n){var t=l.clz32(n&-n);return n?31-t:t}mn.prototype.Nf,h.defineProperty(mn.prototype,"Nf",{value:!0}),mn.isLong=An;var Cn={},Dn={};function Pn(n,t){var r,i,e;return t?(e=0<=(n>>>=0)&&n<256)&&(i=Dn[n])?i:(r=Ln(n,0,!0),e&&(Dn[n]=r),r):(e=-128<=(n|=0)&&n<128)&&(i=Cn[n])?i:(r=Ln(n,n<0?-1:0,!1),e&&(Cn[n]=r),r)}function Fn(n,t){if(y(n))return t?jn:Gn;if(t){if(n<0)return jn;if(n>=Bn)return $n}else{if(n<=-xn)return Zn;if(n+1>=xn)return Xn}return n<0?Fn(-n,t).neg():Ln(n%Vn|0,n/Vn|0,t)}function Ln(n,t,r){return new mn(n,t,r)}mn.fromInt=Pn,mn.fromNumber=Fn,mn.fromBits=Ln;var Un=l.pow;function Mn(n,t,r){if(0===n.length)throw c("empty string");if("number"==typeof t?(r=t,t=!1):t=!!t,"NaN"===n||"Infinity"===n||"+Infinity"===n||"-Infinity"===n)return t?jn:Gn;if((r=r||10)<2||36<r)throw RangeError("radix");var i;if((i=n.indexOf("-"))>0)throw c("interior hyphen");if(0===i)return Mn(n.substring(1),t,r).neg();for(var e=Fn(Un(r,8)),u=Gn,o=0;o<n.length;o+=8){var f=l.min(8,n.length-o),s=v(n.substring(o,o+f),r);if(f<8){var a=Fn(Un(r,f));u=u.mul(a).add(Fn(s))}else u=(u=u.mul(e)).add(Fn(s))}return u.unsigned=t,u}function Wn(n,t){return"number"==typeof n?Fn(n,t):"string"==typeof n?Mn(n,t):Ln(n.low,n.high,"boolean"==typeof t?t:n.unsigned)}mn.fromString=Mn,mn.fromValue=Wn;var Vn=4294967296,Bn=Vn*Vn,xn=Bn/2,Hn=Pn(1<<24),Gn=Pn(0);mn.ZERO=Gn;var jn=Pn(0,!0);mn.UZERO=jn;var Kn=Pn(1);mn.ONE=Kn;var qn=Pn(1,!0);mn.UONE=qn;var zn=Pn(-1);mn.NEG_ONE=zn;var Xn=Ln(-1,2147483647,!1);mn.MAX_VALUE=Xn;var $n=Ln(-1,-1,!0);mn.MAX_UNSIGNED_VALUE=$n;var Zn=Ln(0,-2147483648,!1);mn.MIN_VALUE=Zn;var Yn=mn.prototype;Yn.toInt=function(){return this.unsigned?this.low>>>0:this.low},Yn.toNumber=function(){return this.unsigned?(this.high>>>0)*Vn+(this.low>>>0):this.high*Vn+(this.low>>>0)},Yn.toString=function(n){if((n=n||10)<2||36<n)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(Zn)){var t=Fn(n),r=this.div(t),i=r.mul(t).sub(this);return r.toString(n)+i.toInt().toString(n)}return"-"+this.neg().toString(n)}for(var e=Fn(Un(n,6),this.unsigned),u=this,o="";;){var f=u.div(e),s=(u.sub(f.mul(e)).toInt()>>>0).toString(n);if((u=f).isZero())return s+o;for(;s.length<6;)s="0"+s;o=""+s+o}},Yn.getHighBits=function(){return this.high},Yn.getHighBitsUnsigned=function(){return this.high>>>0},Yn.getLowBits=function(){return this.low},Yn.getLowBitsUnsigned=function(){return this.low>>>0},Yn.getNumBitsAbs=function(){if(this.isNegative())return this.eq(Zn)?64:this.neg().getNumBitsAbs();for(var n=0!=this.high?this.high:this.low,t=31;t>0&&0==(n&1<<t);t--);return 0!=this.high?t+33:t+1},Yn.isZero=function(){return 0===this.high&&0===this.low},Yn.eqz=Yn.isZero,Yn.isNegative=function(){return!this.unsigned&&this.high<0},Yn.isPositive=function(){return this.unsigned||this.high>=0},Yn.isOdd=function(){return 1==(1&this.low)},Yn.isEven=function(){return 0==(1&this.low)},Yn.equals=function(n){return An(n)||(n=Wn(n)),(this.unsigned===n.unsigned||this.high>>>31!=1||n.high>>>31!=1)&&(this.high===n.high&&this.low===n.low)},Yn.eq=Yn.equals,Yn.notEquals=function(n){return!this.eq(n)},Yn.neq=Yn.notEquals,Yn.ne=Yn.notEquals,Yn.lessThan=function(n){return this.comp(n)<0},Yn.lt=Yn.lessThan,Yn.lessThanOrEqual=function(n){return this.comp(n)<=0},Yn.lte=Yn.lessThanOrEqual,Yn.le=Yn.lessThanOrEqual,Yn.greaterThan=function(n){return this.comp(n)>0},Yn.gt=Yn.greaterThan,Yn.greaterThanOrEqual=function(n){return this.comp(n)>=0},Yn.gte=Yn.greaterThanOrEqual,Yn.ge=Yn.greaterThanOrEqual,Yn.compare=function(n){if(An(n)||(n=Wn(n)),this.eq(n))return 0;var t=this.isNegative(),r=n.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?n.high>>>0>this.high>>>0||n.high===this.high&&n.low>>>0>this.low>>>0?-1:1:this.sub(n).isNegative()?-1:1},Yn.comp=Yn.compare,Yn.negate=function(){return!this.unsigned&&this.eq(Zn)?Zn:this.not().add(Kn)},Yn.neg=Yn.negate,Yn.add=function(n){An(n)||(n=Wn(n));var t=this.high>>>16,r=65535&this.high,i=this.low>>>16,e=65535&this.low,u=n.high>>>16,o=65535&n.high,f=n.low>>>16,s=0,c=0,a=0,h=0;return a+=(h+=e+(65535&n.low))>>>16,c+=(a+=i+f)>>>16,s+=(c+=r+o)>>>16,s+=t+u,Ln((a&=65535)<<16|(h&=65535),(s&=65535)<<16|(c&=65535),this.unsigned)},Yn.subtract=function(n){return An(n)||(n=Wn(n)),this.add(n.neg())},Yn.sub=Yn.subtract,Yn.multiply=function(n){if(this.isZero())return this;if(An(n)||(n=Wn(n)),bn)return Ln(bn.mul(this.low,this.high,n.low,n.high),bn.get_high(),this.unsigned);if(n.isZero())return this.unsigned?jn:Gn;if(this.eq(Zn))return n.isOdd()?Zn:Gn;if(n.eq(Zn))return this.isOdd()?Zn:Gn;if(this.isNegative())return n.isNegative()?this.neg().mul(n.neg()):this.neg().mul(n).neg();if(n.isNegative())return this.mul(n.neg()).neg();if(this.lt(Hn)&&n.lt(Hn))return Fn(this.toNumber()*n.toNumber(),this.unsigned);var t=this.high>>>16,r=65535&this.high,i=this.low>>>16,e=65535&this.low,u=n.high>>>16,o=65535&n.high,f=n.low>>>16,s=65535&n.low,c=0,a=0,h=0,l=0;return h+=(l+=e*s)>>>16,a+=(h+=i*s)>>>16,h&=65535,a+=(h+=e*f)>>>16,c+=(a+=r*s)>>>16,a&=65535,c+=(a+=i*f)>>>16,a&=65535,c+=(a+=e*o)>>>16,c+=t*s+r*f+i*o+e*u,Ln((h&=65535)<<16|(l&=65535),(c&=65535)<<16|(a&=65535),this.unsigned)},Yn.mul=Yn.multiply,Yn.divide=function(n){if(An(n)||(n=Wn(n)),n.isZero())throw c("division by zero");var t,r,i;if(bn)return this.unsigned||-2147483648!==this.high||-1!==n.low||-1!==n.high?Ln((this.unsigned?bn.div_u:bn.div_s)(this.low,this.high,n.low,n.high),bn.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?jn:Gn;if(this.unsigned){if(n.unsigned||(n=n.toUnsigned()),n.gt(this))return jn;if(n.gt(this.shru(1)))return qn;i=jn}else{if(this.eq(Zn))return n.eq(Kn)||n.eq(zn)?Zn:n.eq(Zn)?Kn:(t=this.shr(1).div(n).shl(1)).eq(Gn)?n.isNegative()?Kn:zn:(r=this.sub(n.mul(t)),i=t.add(r.div(n)));if(n.eq(Zn))return this.unsigned?jn:Gn;if(this.isNegative())return n.isNegative()?this.neg().div(n.neg()):this.neg().div(n).neg();if(n.isNegative())return this.div(n.neg()).neg();i=Gn}for(r=this;r.gte(n);){t=l.max(1,l.floor(r.toNumber()/n.toNumber()));for(var e=l.ceil(l.log(t)/l.LN2),u=e<=48?1:Un(2,e-48),o=Fn(t),f=o.mul(n);f.isNegative()||f.gt(r);)f=(o=Fn(t-=u,this.unsigned)).mul(n);o.isZero()&&(o=Kn),i=i.add(o),r=r.sub(f)}return i},Yn.div=Yn.divide,Yn.modulo=function(n){return An(n)||(n=Wn(n)),bn?Ln((this.unsigned?bn.rem_u:bn.rem_s)(this.low,this.high,n.low,n.high),bn.get_high(),this.unsigned):this.sub(this.div(n).mul(n))},Yn.mod=Yn.modulo,Yn.rem=Yn.modulo,Yn.not=function(){return Ln(~this.low,~this.high,this.unsigned)},Yn.countLeadingZeros=function(){return this.high?l.clz32(this.high):l.clz32(this.low)+32},Yn.clz=Yn.countLeadingZeros,Yn.countTrailingZeros=function(){return this.low?Nn(this.low):Nn(this.high)+32},Yn.ctz=Yn.countTrailingZeros,Yn.and=function(n){return An(n)||(n=Wn(n)),Ln(this.low&n.low,this.high&n.high,this.unsigned)},Yn.or=function(n){return An(n)||(n=Wn(n)),Ln(this.low|n.low,this.high|n.high,this.unsigned)},Yn.xor=function(n){return An(n)||(n=Wn(n)),Ln(this.low^n.low,this.high^n.high,this.unsigned)},Yn.shiftLeft=function(n){return An(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Ln(this.low<<n,this.high<<n|this.low>>>32-n,this.unsigned):Ln(0,this.low<<n-32,this.unsigned)},Yn.shl=Yn.shiftLeft,Yn.shiftRight=function(n){return An(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Ln(this.low>>>n|this.high<<32-n,this.high>>n,this.unsigned):Ln(this.high>>n-32,this.high>=0?0:-1,this.unsigned)},Yn.shr=Yn.shiftRight,Yn.shiftRightUnsigned=function(n){return An(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Ln(this.low>>>n|this.high<<32-n,this.high>>>n,this.unsigned):Ln(32===n?this.high:this.high>>>n-32,0,this.unsigned)},Yn.shru=Yn.shiftRightUnsigned,Yn.shr_u=Yn.shiftRightUnsigned,Yn.rotateLeft=function(n){var t;return An(n)&&(n=n.toInt()),0==(n&=63)?this:32===n?Ln(this.high,this.low,this.unsigned):n<32?(t=32-n,Ln(this.low<<n|this.high>>>t,this.high<<n|this.low>>>t,this.unsigned)):(t=32-(n-=32),Ln(this.high<<n|this.low>>>t,this.low<<n|this.high>>>t,this.unsigned))},Yn.rotl=Yn.rotateLeft,Yn.rotateRight=function(n){var t;return An(n)&&(n=n.toInt()),0==(n&=63)?this:32===n?Ln(this.high,this.low,this.unsigned):n<32?(t=32-n,Ln(this.high<<t|this.low>>>n,this.low<<t|this.high>>>n,this.unsigned)):(t=32-(n-=32),Ln(this.low<<t|this.high>>>n,this.high<<t|this.low>>>n,this.unsigned))},Yn.rotr=Yn.rotateRight,Yn.toSigned=function(){return this.unsigned?Ln(this.low,this.high,!1):this},Yn.toUnsigned=function(){return this.unsigned?this:Ln(this.low,this.high,!0)},Yn.toBytes=function(n){return n?this.toBytesLE():this.toBytesBE()},Yn.toBytesLE=function(){var n=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&n,n>>>8&255,n>>>16&255,n>>>24]},Yn.toBytesBE=function(){var n=this.high,t=this.low;return[n>>>24,n>>>16&255,n>>>8&255,255&n,t>>>24,t>>>16&255,t>>>8&255,255&t]},mn.fromBytes=function(n,t,r){return r?mn.fromBytesLE(n,t):mn.fromBytesBE(n,t)},mn.fromBytesLE=function(n,t){return new mn(n[0]|n[1]<<8|n[2]<<16|n[3]<<24,n[4]|n[5]<<8|n[6]<<16|n[7]<<24,t)},mn.fromBytesBE=function(n,t){return new mn(n[4]<<24|n[5]<<16|n[6]<<8|n[7],n[0]<<24|n[1]<<16|n[2]<<8|n[3],t)};var Jn=mn;l.pow(2,-52);function Qn(){return Date.now()||(new Date).getTime()}Jn.fromNumber(9007199254740991);function nt(n,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),h.defineProperty(n,i.key,i)}}function tt(n,t){var r=function(n,t){var r=n.length;if(r<=1)return n;for(var i=new Array(r),e=1;e<r;e*=2){rt(n,t,e,i);var u=n;n=i,i=u}return n}(n,t);return r!==n&&rt(r,null,n.length,n),n}function rt(n,t,r,i){var e,u,o,f,s,c=n.length,a=0,h=2*r;for(e=0;e<c;e+=h)for(o=(u=e+r)+r,u>c&&(u=c),o>c&&(o=c),f=e,s=u;;)if(f<u&&s<o)t(n[f],n[s])<=0?i[a++]=n[f++]:i[a++]=n[s++];else if(f<u)i[a++]=n[f++];else{if(!(s<o))break;i[a++]=n[s++]}}var it=/[a-zA-Z]/,et=/[0-9]/,ut=/[0-9a-fA-F]/,ot=/^0x/i,ft=/^[0-9]+$/,st=/^[0-9a-fA-F]+$/,ct=/^[0-7]+$/,at=h.prototype.toString,ht=Array.isArray||function(n){return"[object Array]"===at.call(n)},lt="undefined"!=typeof Symbol&&"symbol"==typeof Symbol.iterator;function vt(n){return ht(n)?n:Array.from(n)}function _t(n,t,r){var i=n[t];n[t]=n[r],n[r]=i}function yt(n){return n>=65&&n<=90}function dt(n){return yt(n)||function(n){return n>=97&&n<=122}(n)}function wt(n){return n>=48&&n<=57}function It(n){return wt(n)||dt(n)}function Et(n){return wt(n)||n>=65&&n<=70||n>=97&&n<=102}function pt(n){return yt(n)?n+32:n}function Rt(n){return wt(n)?n-48:n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:-1}function gt(n,t){return void 0===t&&(t=!1),0<=n&&n<=9?n+48:10<=n&&n<=15?n+(t?87:55):-1}var St=l.min,Ot=String.fromCharCode;function Tt(n){for(var t=n.length,r=[],i=0;i<t;i+=16384){var e=St(i+16384,t);r.push(Ot.apply(null,n.slice(i,e)))}return r.join("")}var kt=2147483647,bt=/[^\0-\x7E]/,mt=/[\x2E\u3002\uFF0E\uFF61]/g,At={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Nt=l.floor,Ct=String.fromCharCode;function Dt(n){throw new RangeError(At[n])}function Pt(n){for(var t=[],r=0,i=n.length;r<i;){var e=n.charCodeAt(r++);if(e>=55296&&e<=56319&&r<i){var u=n.charCodeAt(r++);56320==(64512&u)?t.push(((1023&e)<<10)+(1023&u)+65536):(t.push(e),r--)}else t.push(e)}return t}var Ft,Lt,Ut,Mt=function(n,t){return n+22+75*(n<26)-((0!=t)<<5)},Wt=function(n,t,r){var i=0;for(n=r?Nt(n/700):n>>1,n+=Nt(n/t);n>455;i+=36)n=Nt(n/35);return Nt(i+36*n/(n+38))},Vt=function(n){return function(n,t){var r=n.split("@"),i="";r.length>1&&(i=r[0]+"@",n=r[1]);var e=function(n,t){for(var r=[],i=n.length;i--;)r[i]=t(n[i]);return r}((n=n.replace(mt,".")).split("."),t).join(".");return i+e}(n,(function(n){return bt.test(n)?"xn--"+function(n){for(var t=[],r=(n=Pt(n)).length,i=128,e=0,u=72,o=0,f=n;o<f.length;o++){var s=f[o];s<128&&t.push(Ct(s))}var c=t.length,a=c;for(c&&t.push("-");a<r;){for(var h=kt,l=0,v=n;l<v.length;l++){var _=v[l];_>=i&&_<h&&(h=_)}var y=a+1;h-i>Nt((kt-e)/y)&&Dt("overflow"),e+=(h-i)*y,i=h;for(var d=0,w=n;d<w.length;d++){var I=w[d];if(I<i&&++e>kt&&Dt("overflow"),I==i){for(var E=e,p=36;;p+=36){var R=p<=u?1:p>=u+26?26:p-u;if(E<R)break;var g=E-R,S=36-R;t.push(Ct(Mt(R+g%S,0))),E=Nt(g/S)}t.push(Ct(Mt(E,0))),u=Wt(e,y,a==c),e=0,++a}}++e,++i}return t.join("")}(n):n}))};function Bt(n){for(var t=[],r=0;r<n.length;r++){var i=n[r];i>65535&&(i-=65536,t.push(i>>>10&1023|55296),i=56320|1023&i),t.push(i)}return Tt(t)}function xt(n){if(n>=55296&&n<=57343)throw new c("Lone surrogate U+"+n.toString(16).toUpperCase()+" is not a scalar value")}function Ht(n,t){return n>>t&63|128}function Gt(n,t){0!=(4294967168&n)?(0==(4294965248&n)?t.push(n>>6&31|192):0==(4294901760&n)?(xt(n),t.push(n>>12&15|224),t.push(Ht(n,6))):0==(4292870144&n)&&(t.push(n>>18&7|240),t.push(Ht(n,12)),t.push(Ht(n,6))),t.push(63&n|128)):t.push(n)}function jt(n){for(var t=[],r=0;r<n.length;r++){Gt(n[r],t)}return t}function Kt(){if(Ut>=Lt)throw new c("Invalid byte index");var n=255&Ft[Ut];if(Ut++,128==(192&n))return 63&n;throw new c("Invalid continuation byte")}function qt(){var n,t;if(Ut>Lt)throw new c("Invalid byte index");if(Ut===Lt)return!1;if(n=255&Ft[Ut],Ut++,0==(128&n))return n;if(192==(224&n)){if((t=(31&n)<<6|Kt())>=128)return t;throw new c("Invalid continuation byte")}if(224==(240&n)){if((t=(15&n)<<12|Kt()<<6|Kt())>=2048)return xt(t),t;throw new c("Invalid continuation byte")}if(240==(248&n)&&(t=(7&n)<<18|Kt()<<12|Kt()<<6|Kt())>=65536&&t<=1114111)return t;throw new c("Invalid UTF-8 detected")}function zt(n){return[37,gt(n>>4),gt(15&n)]}function Xt(n){return function(n){return n>=0&&n<=31}(n)||n>126}function $t(n){return Xt(n)||32===n||34===n||60===n||62===n||96===n}function Zt(n){return $t(n)||35===n||63===n||123===n||125===n}function Yt(n){return Zt(n)||47===n||58===n||59===n||61===n||64===n||n>=91&&n<=94||124===n}function Jt(n){return n<33||n>126||34===n||35===n||60===n||62===n}function Qt(n){return Jt(n)||39===n}function nr(n,t){if(!t(n))return[n];for(var r=jt([n]),i=[],e=0;e<r.length;e++){var u=r[e];i.push.apply(i,zt(u))}return i}function tr(n,t){for(var r=[],i=0,e=Pt(n);i<e.length;i++){var u=e[i];r.push.apply(r,nr(u,t))}return Bt(r)}function rr(n){return function(n){for(var t=[],r=n.length,i=0;i<r;i++){var e=n[i];if(37===e&&i+2<r&&Et(n[i+1])&&Et(n[i+2])){var u=Rt(n[i+1])<<4|Rt(n[i+2]);t.push(u),i+=2}else t.push(e)}return t}(jt(n))}function ir(n){return Bt(function(n){Ft=n.slice(),Lt=Ft.length,Ut=0;for(var t,r=[];!1!==(t=qt());)r.push(t);return r}(rr(Pt(n))))}function er(n){var t=n.length,r=[0,0,0,0,0,0,0,0],i=0,e=null,u=0;if(u<t&&":"===n[u]){if(!(u+1<t&&":"===n[u+1]))throw new a;u+=2,e=i+=1}for(;u<t;){if(8===i)throw new a("Too many groups");if(":"!==n[u]){for(var o=0,f=0;f<4&&u<t&&ut.test(n[u]);)o=o<<4|v(n[u],16),u+=1,f+=1;if("."===n[u]){if(0===f)throw new a;if(u-=f,i>6)throw new a;for(var s=0;u<t;){var c=null;if(s>0){if(!("."===n[u]&&s<4))throw new a;u+=1}if(!et.test(n[u]))throw new a;for(;u<t&&et.test(n[u]);){var h=v(n[u],10);if(null===c)c=h;else{if(0===c)throw new a;if((c=10*c+h)>255)throw new a}u+=1}r[i]=r[i]<<8|c,2!==(s+=1)&&4!==s||(i+=1)}if(4!==s)throw new a;break}if(":"===n[u]){if((u+=1)===t)throw new a}else if(u<t)throw new a;r[i]=o,i+=1}else{if(null!==e)throw new a("Too many :: groups");u+=1,e=i+=1}}if(null!==e){var l=i-e;for(i=7;0!==i&&l>0;)_t(r,i,e+l-1),i-=1,l-=1}else if(8!==i)throw new a;return r}function ur(n){var t=10,r=ft;return ot.test(n)?(n=n.slice(2),t=16,r=st):n.length>=2&&"0"===n[0]&&(n=n.slice(1),t=8,r=ct),""===n?0:r.test(n)?v(n,t):void 0}var or={bK:4},fr=/[\0\t\n\r #%/:?@\[\\\]]/,sr=/[\0\t\n\r #/:?@\[\\\]]/;function cr(n,t){if("["===n[0]){if("]"!==n[n.length-1])throw new a("Invalid IPv6 address");return{bK:2,e4:er(n.slice(1,-1))}}if(!t)return function(n){if(sr.test(n))throw new a("Invalid code point in opaque host");var t=tr(n,Xt);return""===t?or:{bK:3,sR:t}}(n);var r=function(n){return function(n){return Vt(n.toLowerCase())}(n)}(ir(n));if(fr.test(r))throw new a("Invalid code point in host");var i=function(n){var t=n.split(".");if(""===t[t.length-1]&&t.pop(),!(t.length>4)){for(var r=[],i=0;i<t.length;i++){var e=t[i];if(""===e)return;var u=ur(e);if(void 0===u)return;r.push(u)}for(var o=0;o<r.length-1;o++)if(r[o]>255)throw new a;if(r[r.length-1]>=l.pow(256,5-r.length))throw new a;for(var f=r.pop(),s=0;s<r.length;s++)f+=r[s]*l.pow(256,3-s);return f}}(r);return void 0!==i?{bK:1,e4:i}:""===r?or:{bK:0,i4:r}}function ar(n){switch(n.bK){case 0:return n.i4;case 1:return function(n){for(var t=[],r=n,i=1;i<=4;i++)t.push(""+(255&r)),4!==i&&t.push("."),r>>>=8;return t.reverse().join("")}(n.e4);case 2:return"["+function(n){for(var t="",r=function(n){for(var t=0,r=0,i=0,e=0,u=0;u<8;u++)0===n[u]?(0===e&&(i=u),e++):(e>r&&(t=i,r=e),e=0);return e>r&&(t=i,r=e),r>1?t:null}(n),i=!1,e=0;e<8;e++){if(i){if(0===n[e])continue;i=!1}r!==e?(t+=n[e].toString(16),7!==e&&(t+=":")):(t+=0===e?"::":":",i=!0)}return t}(n.e4)+"]";case 3:return n.sR;case 4:return""}}var hr=/\+/g;function lr(n){return 42===n||45===n||46===n||95===n||It(n)}function vr(n){for(var t=n.split("&"),r=[],i=0;i<t.length;i++){var e=t[i];if(""!==e){var u=e.indexOf("="),o=void 0,f=void 0;-1!==u?(o=e.slice(0,u),f=e.slice(u+1)):(o=e,f=""),o=o.replace(hr," "),f=f.replace(hr," ");var s=ir(o),c=ir(f);r.push([s,c])}}return r}function _r(n){for(var t="",r=0;r<n.length;r++){var i=n[r];r>0&&(t+="&"),t+=yr(jt(Pt(i[0])))+"="+yr(jt(Pt(i[1])))}return t}function yr(n){for(var t=[],r=0;r<n.length;r++){var i=n[r];32===i?t.push(43):lr(i)?t.push(i):t.push.apply(t,zt(i))}return Tt(t)}var dr=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function wr(n){var t=""+n,r=dr.exec(t);return r?function(n,t){for(var r=n.length,i=[],e=t;e<r;e++){var u=n.charCodeAt(e);if(Er(u))if(pr(u)||e===r-1)i.push(Ir);else{var o=n.charCodeAt(e+1);pr(o)?(i.push(u,o),e++):i.push(Ir)}else i.push(u)}return n.slice(0,t)+Tt(i)}(t,r.index):t}var Ir=65533,Er=function(n){return 55296==(63488&n)},pr=function(n){return 0!=(1024&n)};function Rr(n,t){var r=n[0],i=t[0];return r===i?0:r<i?-1:1}function gr(n){n.s4.length=0}function Sr(n,t){!function(n,t){for(var r=0;r<t.length;r++)n[r]=t[r];n.length=t.length}(n.s4,vr(t))}function Or(n){if(n.n4){var t=_r(n.s4);""===t&&(t=null),n.n4.n4.r4=t}}var Tr=function(){function n(n){if(void 0===n&&(n=void 0),this.n4=null,null==n)this.s4=[];else if("object"==typeof n||"function"==typeof n)if(function(n){return n instanceof Tr&&!!ht(n.s4)&&(!lt||n[Symbol.iterator]===kr)}(n))this.s4=n.s4.slice();else if(function(n){return null!=n&&(!!ht(n)||!!lt&&"function"==typeof n[Symbol.iterator])}(n)){this.s4=[];for(var t=0,r=vt(n);t<r.length;t++){var i=vt(r[t]);if(2!==i.length)throw new a("Invalid name-value pair");this.s4.push([wr(i[0]),wr(i[1])])}}else for(var e in this.s4=[],n)h.prototype.hasOwnProperty.call(n,e)&&this.s4.push([wr(e),wr(n[e])]);else(n=wr(n)).length>0&&"?"===n[0]&&(n=n.slice(1)),this.s4=vr(n)}var t=n.prototype;return t.append=function(n,t){n=wr(n),t=wr(t),this.s4.push([n,t]),Or(this)},t.delete=function(n){n=wr(n);for(var t=this.s4,r=0;r<t.length;){t[r][0]===n?t.splice(r,1):r++}Or(this)},t.get=function(n){n=wr(n);for(var t=this.s4,r=0;r<t.length;r++){var i=t[r];if(i[0]===n)return i[1]}return null},t.getAll=function(n){n=wr(n);for(var t=this.s4,r=[],i=0;i<t.length;i++){var e=t[i];e[0]===n&&r.push(e[1])}return r},t.has=function(n){n=wr(n);for(var t=this.s4,r=0;r<t.length;r++){if(t[r][0]===n)return!0}return!1},t.set=function(n,t){n=wr(n),t=wr(t);for(var r=this.s4,i=!1,e=0;e<r.length;){var u=r[e];u[0]===n?i?r.splice(e,1):(u[1]=t,i=!0,e++):e++}i||r.push([n,t]),Or(this)},t.sort=function(){tt(this.s4,Rr),Or(this)},t.toString=function(){return _r(this.s4)},t.entries=function(){return new Nr(this.s4,br)},t.keys=function(){return new Nr(this.s4,mr)},t.values=function(){return new Nr(this.s4,Ar)},t.forEach=function(n){var t=this;this.s4.forEach((function(r){return n(r[1],r[0],t)}))},n}(),kr=Tr.prototype.entries;lt&&(Tr.prototype[Symbol.iterator]=kr);var br=function(n){return[n[0],n[1]]},mr=function(n){return n[0]},Ar=function(n){return n[1]},Nr=function(){function n(n,t){this.h4=0,this.s4=n,this.o4=t}return n.prototype.next=function(){return this.h4<this.s4.length?{done:!1,value:this.o4(this.s4[this.h4++])}:{done:!0,value:void 0}},n}(),Cr="null";var Dr=h.create(null);Dr.ftp=21,Dr.file=0,Dr.gopher=70,Dr.http=80,Dr.https=443,Dr.ws=80,Dr.wss=443;var Pr=/^(?:\.|%2e)$/i,Fr=/^(?:\.|%2e){2}$/i;function Lr(n){return Pr.test(n)}function Ur(n){return Fr.test(n)}function Mr(n){return void 0!==Dr[n]}function Wr(n){return Mr(n.a4)}function Vr(n){return""!==n.u4||""!==n.c4}function Br(n){var t=n.length;if(!(t>=2))return!1;if(!Hr(n.slice(0,2)))return!1;if(2!==t){var r=n[2];if(47!==r&&92!==r&&63!==r&&35!==r)return!1}return!0}function xr(n){return 2===n.length&&it.test(n[0])&&(":"===n[1]||"|"===n[1])}function Hr(n){return 2===n.length&&xr(Tt(n))}function Gr(n){return xr(n)&&":"===n[1]}function jr(n){var t=n.l4;0!==t.length&&("file"===n.a4&&1===t.length&&Gr(t[0])||t.pop())}function Kr(n){return null===n.d4||or===n.d4||n.f4||"file"===n.a4}var qr=-1,zr=/\t|\n|\r/g,Xr=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function $r(n,t,r,i){void 0===r&&(r=null),void 0===i&&(i=null),r||(r=new Yr,n=n.replace(Xr,""));var e=null!==i?i:0;t=t||null;for(var u=[],o=!1,f=!1,s=!1,c=Pt(n=n.replace(zr,"")),h=c.length,l=0;l<=h;){var _=l<h?c[l]:qr;switch(e){case 0:if(!dt(_)){if(null===i){u.length=0,e=2;continue}throw new a("Invalid scheme")}u.push(pt(_)),e=1;break;case 1:if(It(_)||43===_||45===_||46===_)u.push(pt(_));else{if(58!==_){if(null===i){u.length=0,e=2,l=0;continue}throw new a("Invalid scheme")}var y=Bt(u);if(null!==i){if(Mr(r.a4)&&!Mr(y))return;if(!Mr(r.a4)&&Mr(y))return;if((Vr(r)||null!==r.F1)&&"file"===y)return;if("file"===r.a4&&(r.d4===or||null===r.d4))return}if(r.a4=y,null!==i)return void(Wr(r)&&r.F1===Dr[r.a4]&&(r.F1=null));u.length=0,"file"===r.a4?e=13:Wr(r)&&t&&t.a4===r.a4?e=3:Wr(r)?e=7:47===c[l+1]?(e=4,l+=1):(r.f4=!0,r.l4.push(""),e=18)}break;case 2:if(!t||t.f4&&35!==_)throw new a("Invalid scheme");t.f4&&35===_?(r.a4=t.a4,r.l4=t.l4.slice(),r.r4=t.r4,r._4="",r.f4=!0,e=20):"file"!==t.a4?(e=5,l-=1):(e=13,l-=1);break;case 3:47===_&&47===c[l+1]?e=8:(e=5,l-=1);break;case 4:47===_?e=9:(e=17,l-=1);break;case 5:r.a4=t.a4,qr===_?(r.u4=t.u4,r.c4=t.c4,r.d4=t.d4,r.F1=t.F1,r.l4=t.l4.slice(),r.r4=t.r4):47===_?e=6:63===_?(r.u4=t.u4,r.c4=t.c4,r.d4=t.d4,r.F1=t.F1,r.l4=t.l4.slice(),r.r4="",e=19):35===_?(r.u4=t.u4,r.c4=t.c4,r.d4=t.d4,r.F1=t.F1,r.l4=t.l4.slice(),r.r4=t.r4,r._4="",e=20):92===_&&Wr(r)?e=6:(r.u4=t.u4,r.c4=t.c4,r.d4=t.d4,r.F1=t.F1,r.l4=t.l4.slice(),r.l4.pop(),e=17,l-=1);break;case 6:!Wr(r)||47!==_&&92!==_?47===_?e=9:(r.u4=t.u4,r.c4=t.c4,r.d4=t.d4,r.F1=t.F1,e=17,l-=1):e=8;break;case 7:if(47!==_||47!==c[l+1]){e=8;continue}e=8,l+=1;break;case 8:47!==_&&92!==_&&(e=9,l-=1);break;case 9:if(64===_){o&&u.unshift(37,52,48),o=!0;for(var d=0;d<u.length;d++){var w=u[d];if(58!==w||s){var I=Bt(nr(w,Yt));s?r.c4+=I:r.u4+=I}else s=!0}u.length=0}else if(qr===_||47===_||63===_||35===_||Wr(r)&&92===_){if(o&&0===u.length)throw new a("Invalid host");l-=u.length+1,u.length=0,e=10}else u.push(_);break;case 10:case 11:if(null!==i&&"file"===r.a4)l-=1,e=15;else if(58!==_||f)if(qr===_||47===_||63===_||35===_||Wr(r)&&92===_){if(l-=1,Wr(r)&&0===u.length)throw new a("Invalid host");if(null!==i&&0===u.length&&(Vr(r)||null!==r.F1))return;var E=cr(Bt(u),Wr(r));if(r.d4=E,u.length=0,e=16,null!==i)return}else 91===_?f=!0:93===_&&(f=!1),u.push(_);else{if(0===u.length)throw new a("Invalid host");var p=cr(Bt(u),Wr(r));if(r.d4=p,u.length=0,e=12,11===i)return}break;case 12:if(wt(_))u.push(_);else{if(!(qr===_||47===_||63===_||35===_||Wr(r)&&92===_||null!==i))throw new a("Invalid port");if(0!==u.length){var R=v(Bt(u),10);if(R>65535)throw new a("Invalid port");r.F1=R===Dr[r.a4]?null:R,u.length=0}if(null!==i)return;e=16,l-=1}break;case 13:r.a4="file",47===_||92===_?e=14:t&&"file"===t.a4?qr===_?(r.d4=t.d4,r.l4=t.l4.slice(),r.r4=t.r4):63===_?(r.d4=t.d4,r.l4=t.l4.slice(),r.r4="",e=19):35===_?(r.d4=t.d4,r.l4=t.l4.slice(),r.r4=t.r4,r._4="",e=20):(Br(c.slice(l))||(r.d4=t.d4,r.l4=t.l4.slice(),jr(r)),e=17,l-=1):(e=17,l-=1);break;case 14:47===_||92===_?e=15:(t&&"file"===t.a4&&!Br(c.slice(l))&&(Gr(t.l4[0])?r.l4.push(t.l4[0]):r.d4=t.d4),e=17,l-=1);break;case 15:if(qr===_||47===_||92===_||63===_||35===_)if(l-=1,null===i&&Hr(u))e=17;else if(0===u.length){if(r.d4=or,null!==i)return;e=16}else{var g=cr(Bt(u),Wr(r));if(0===g.bK&&"localhost"===g.i4&&(g=or),r.d4=g,null!==i)return;u.length=0,e=16}else u.push(_);break;case 16:Wr(r)?(e=17,47!==_&&92!==_&&(l-=1)):null===i&&63===_?(r.r4="",e=19):null===i&&35===_?(r._4="",e=20):qr!==_&&(e=17,47!==_&&(l-=1));break;case 17:if(qr===_||47===_||Wr(r)&&92===_||null===i&&(63===_||35===_)){var S=Bt(u);if(Ur(S)?(jr(r),47===_||Wr(r)&&92===_||r.l4.push("")):!Lr(S)||47===_||Wr(r)&&92===_?Lr(S)||("file"===r.a4&&0===r.l4.length&&Hr(u)&&(or!==r.d4&&null!==r.d4&&(r.d4=or),u[1]=58,S=Bt(u)),r.l4.push(S)):r.l4.push(""),u.length=0,"file"===r.a4&&(qr===_||63===_||35===_))for(;r.l4.length>1&&""===r.l4[0];)r.l4.shift();63===_?(r.r4="",e=19):35===_&&(r._4="",e=20)}else u.push.apply(u,nr(_,Zt));break;case 18:63===_?(r.r4="",e=19):35===_?(r._4="",e=20):qr!==_&&(r.l4[0]+=Bt(nr(_,Xt)));break;case 19:null===i&&35===_?(r._4="",e=20):qr!==_&&(r.r4+=Bt(nr(_,Wr(r)?Qt:Jt)));break;case 20:qr===_||0===_||(r._4+=Bt(nr(_,$t)))}l++}return r}function Zr(n,t,r,i){try{$r(n,t,r,i)}catch(n){}}var Yr=function(){this.a4="",this.u4="",this.c4="",this.d4=null,this.F1=null,this.l4=[],this.r4=null,this._4=null,this.f4=!1};function Jr(n){switch(n.a4){case"blob":var t;try{t=$r(n.l4[0],null)}catch(n){return Cr}return Jr(t);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(n,t,r){return n+"://"+ar(t)+(null===r?"":":"+r)}(n.a4,n.d4,n.F1);case"file":default:return Cr}}var Qr,ni,ti=function(){function n(n,t){var r,i=null;if(null!=t)if(function(n){return null!=n&&n instanceof ti&&"object"==typeof n.n4}(t))i=t.n4;else try{i=$r(String(t),null)}catch(n){throw new a("Invalid base URL: "+n.message)}try{r=$r(String(n),i)}catch(n){throw new a("Invalid URL: "+n.message)}var e=r.r4;this.n4=r,this.r4=function(n){var t=new Tr;return null!==n&&Sr(t,n),t}(e),this.r4.n4=this}var t=n.prototype;return t.toString=function(){return this.href},t.toJSON=function(){return this.href},function(n,t,r){t&&nt(n.prototype,t),r&&nt(n,r)}(n,[{key:"href",get:function(){return function(n,t){void 0===t&&(t=!1);var r=n.a4+":";if(null!==n.d4?(r+="//",Vr(n)&&(r+=n.u4,""!==n.c4&&(r+=":"+n.c4),r+="@"),r+=ar(n.d4),null!==n.F1&&(r+=":"+n.F1)):null===n.d4&&"file"===n.a4&&(r+="//"),n.f4)r+=n.l4[0];else for(var i=0,e=n.l4;i<e.length;i++)r+="/"+e[i];return null!==n.r4&&(r+="?"+n.r4),t||null===n._4||(r+="#"+n._4),r}(this.n4)},set:function(n){var t;try{t=$r(String(n),null)}catch(n){throw new a("Invalid URL: "+n.message)}this.n4=t,gr(this.r4);var r=this.n4.r4;null!==r&&Sr(this.r4,r)}},{key:"origin",get:function(){return Jr(this.n4)}},{key:"protocol",get:function(){return this.n4.a4+":"},set:function(n){Zr(n+":",null,this.n4,0)}},{key:"username",get:function(){return this.n4.u4},set:function(n){Kr(this.n4)||(this.n4.u4=tr(n,Yt))}},{key:"password",get:function(){return this.n4.c4},set:function(n){Kr(this.n4)||(this.n4.c4=tr(n,Yt))}},{key:"host",get:function(){var n=this.n4,t=n.d4;if(null===t)return"";var r=n.F1,i=ar(t);return null!==r&&(i+=":"+r),i},set:function(n){this.n4.f4||Zr(n,null,this.n4,10)}},{key:"hostname",get:function(){var n=this.n4.d4;return null===n?"":ar(n)},set:function(n){this.n4.f4||Zr(n,null,this.n4,11)}},{key:"port",get:function(){var n=this.n4.F1;return null===n?"":""+n},set:function(n){Kr(this.n4)||(""===n?this.n4.F1=null:Zr(n,null,this.n4,12))}},{key:"pathname",get:function(){var n=this.n4.l4;return this.n4.f4?n[0]:0===n.length?"":"/"+n.join("/")},set:function(n){this.n4.f4||(this.n4.l4.length=0,Zr(n,null,this.n4,16))}},{key:"search",get:function(){var n=this.n4.r4;return null===n||""===n?"":"?"+n},set:function(n){n=wr(n);var t=this.n4;if(""===n)return t.r4=null,void gr(this.r4);"?"===n[0]&&(n=n.slice(1)),t.r4="",Zr(n,null,t,19),Sr(this.r4,n)}},{key:"searchParams",get:function(){return this.r4}},{key:"hash",get:function(){var n=this.n4._4;return null===n||""===n?"":"#"+n},set:function(n){""!==n?("#"===n[0]&&(n=n.slice(1)),this.n4._4="",Zr(n,null,this.n4,20)):this.n4._4=null}}]),n}();function ri(n){return n.document&&n.document.baseURI||n.location.href||""}function ii(){return void 0!==r?r.createElement("video"):void 0}var ei=!!("ontouchstart"in self||self.DocumentTouch&&r instanceof self.DocumentTouch)||!(!e||!e.msMaxTouchPoints),ui=(ni||(ni=ii()),ni),oi=!(!ui||!ui.webkitShowPlaybackTargetPicker),fi=function(){function n(){this.v4=void 0,this.P4=!1,this.Ye=ei,this.Ks=!1,this.q1=!0}var r=n.prototype;return r.w4=function(){return 0},r.I4=function(n,t){return!0},r.R4=function(n){return n>=.3333333333333333},Z(n,[{key:"g4",get:function(){return void 0===this.v4&&(this.v4=this.w4()),this.v4}},{key:"m4",get:function(){return!_n.vE}},{key:"y4",get:function(){if(t.screen)return{width:t.screen.width,height:t.screen.height}}},{key:"Mj",get:function(){return t.devicePixelRatio||1}},{key:"A4",get:function(){return oi}},{key:"wj",get:function(){return!1}},{key:"aj",get:function(){return!0}},{key:"D_",get:function(){return _n.hE||_n.pk}},{key:"rN",get:function(){return!0}},{key:"L_",get:function(){return!0}},{key:"B_",get:function(){return!1}},{key:"b4",get:function(){}},{key:"T4",get:function(){return!0}},{key:"SG",get:function(){return!1}},{key:"S4",get:function(){return!1}},{key:"E4",get:function(){return _n.Gk}}]),n}(),si=function(){var n=ii();if(!n)return!1;var t=n.muted;return n.muted=!t,n.muted!==t}();!function(){if(_n._k)return!1;var n=ii();if(!n)return!1;var t=n.volume;n.volume=t/2+.1,n.volume}();var ci=function(n){function t(t){var r;return(r=n.call(this)||this).x4=t,r.x4&&(r.P4=r.x4.P4,r.Ye=r.x4.Ye,r.q1=si&&r.x4.q1),r}J(t,n);var r=t.prototype;return r.w4=function(){return this.x4?this.x4.g4:n.prototype.w4.call(this)},r.I4=function(t,r){return this.x4?this.x4.I4(t,r):n.prototype.I4.call(this,t,r)},r.R4=function(t){return this.x4?this.x4.R4(t):n.prototype.R4.call(this,t)},Z(t,[{key:"b4",get:function(){var n;return null==(n=this.x4)?void 0:n.b4}},{key:"T4",get:function(){var n,t;return null==(t=null==(n=this.x4)?void 0:n.T4)||t}}]),t}(fi),ai=function(n){function t(t){var r;return(r=n.call(this,t)||this).P4=!0,r.Ks=!0,r}return J(t,n),Z(t,[{key:"B_",get:function(){return _n.pk}}]),t}(ci),hi=function(n){function t(){return n.apply(this,arguments)}return J(t,n),t.prototype.w4=function(){return Qr.MediaSource?n.prototype.w4.call(this):1},Z(t,[{key:"B_",get:function(){return!0}}]),t}(ai),li=function(n){function r(){return n.apply(this,arguments)}return J(r,n),r.prototype.I4=function(t,r){return n.prototype.I4.call(this,t,r)},Z(r,[{key:"wj",get:function(){return _n.qk<3}},{key:"aj",get:function(){return _n.qk>=3}},{key:"y4",get:function(){var n=this;return t.tizen&&!this.C4&&t.tizen.systeminfo.getPropertyValue("DISPLAY",(function(t){var r=t.resolutionWidth,i=t.resolutionHeight;1===r&&1===i||(n.C4={width:r,height:i})})),this.C4}},{key:"SG",get:function(){return _n.qk<3}},{key:"S4",get:function(){return!0}}]),r}(ci),vi=function(n){function t(){return n.call(this)}return J(t,n),t}(fi),_i=function(n){function t(){return n.apply(this,arguments)}return J(t,n),t.prototype.I4=function(n,t){if(n&&n.N4&&t&&t.N4){var r=yi(n.N4,"mp4a.40.2")&&yi(t.N4,"mp4a.40.5"),i=yi(n.N4,"mp4a.40.5")&&yi(t.N4,"mp4a.40.2"),e=yi(n.N4,"mp4a.40.2")&&yi(t.N4,"mp4a.40.34"),u=yi(n.N4,"mp4a.40.34")&&yi(t.N4,"mp4a.40.2"),o=yi(n.N4,"mp4a.40.5")&&yi(t.N4,"mp4a.40.34"),f=yi(n.N4,"mp4a.40.34")&&yi(t.N4,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},Z(t,[{key:"b4",get:function(){if(_n.GS)return 4096}}]),t}(vi);function yi(n,t){return n.indexOf(t)>-1}var di=function(n){function t(){return n.apply(this,arguments)}return J(t,n),t.prototype.R4=function(n){return n>=2},t}(vi),wi=function(n){function t(){var t;return(t=n.call(this)||this).P4=_n.aE>=11,t.q1=_n.hE&&!(_n.pk&&_n.aE<10),t}return J(t,n),t}(vi),Ii=function(n){function r(){return n.apply(this,arguments)}return J(r,n),Z(r,[{key:"y4",get:function(){var n=this;return t.webOS&&!this.C4&&t.webOS.deviceInfo((function(t){n.C4={width:t.screenWidth,height:t.screenHeight}})),this.C4}},{key:"rN",get:function(){return!1}},{key:"S4",get:function(){return!0}}]),r}(ci),Ei=function(n){function t(){return n.apply(this,arguments)}return J(t,n),Z(t,[{key:"T4",get:function(){return!_n.KS||(_n.Ok?92!==_n.Fk:_n.Bk>=100)}}]),t}(vi),pi=function(n){function t(){return n.apply(this,arguments)}return J(t,n),Z(t,[{key:"B_",get:function(){return!0}}]),t}(ci),Ri=function(){function n(){this.N6=new gi,this.B6=function(){var n=function(){if(_n.iE)return new _i;if(_n.Kk||_n.jk)return new di;if(_n.hE)return new wi;if(_n.Nk)return new Ei;return new vi}();return _n.pk?new hi(n):_n.Ks?new ai(n):_n.Hk?new li(n):_n.zk?new Ii(n):_n.GS?new pi(n):new ci(n)}(),this.D6=function(){if(self.URL)try{var n=new self.URL("b","http://a");return n.pathname="c d","http://a/c%20d"===n.href}catch(n){}return!1}(),self.performance&&self.performance.now?this.Il=function(){return self.performance.now()}:this.Il=Qn}var t=n.prototype;return t.b6=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Sn.apply(void 0,tn(t))},t.f_=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];On.apply(void 0,tn(t))},t.T6=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Tn.apply(void 0,tn(t))},t.S6=function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];kn.apply(void 0,[n].concat(tn(r)))},t.Pl=function(n,t){return u(n,t)},t.DQ=function(n,t){return f(n,t)},t.Rl=function(n){o(n)},t.LQ=function(n){s(n)},t.vj=function(){return this.k6.vj()},t.E6=function(){return this.k6.E6()},t.I6=function(){return this.k6.I6()},t.R6=function(){return this.k6.R6()},t.P6=function(){return this.k6.P6()},t.x6=function(n,t){return this.k6.x6(n,t)},t.C6=function(n){return this.k6.C6(n)},t.Ih=function(n,t){var r;return void 0===t&&(t=ri(Qr)),r="object"!=typeof t||t instanceof ti?t:t.href,new ti(n,r)},t.Xf=function(n,t){if(void 0===t&&(t=ri(Qr)),this.D6){var r=function(n){return"string"==typeof n}(t)?t:t.toString();return new self.URL(n,r).href}return this.Ih(n,t).href},Z(n,[{key:"JC",get:function(){return this.N6}},{key:"Zs",get:function(){return this.B6}},{key:"M_",get:function(){return{O_:e&&e.userAgent.match(/Android /i)?"Android":"other",F_:Boolean(e&&e.userAgent.match(/Android 8.0.0/i))}}},{key:"QF",get:function(){return self&&self.location&&"https:"===self.location.protocol}},{key:"L6",get:function(){return"languages"in e?e.languages.slice():[e.language]}}]),n}(),gi=function(){function n(){}return Z(n,[{key:"$C",get:function(){return e.oscpu}},{key:"Zs",get:function(){return e.platform}},{key:"tN",get:function(){return e.vendor}},{key:"eN",get:function(){return e.vendorSub}}]),n}();var Si,Oi=function(){function n(){}var t=n.prototype;return t.P6=function(){return K.resolve(!1)},t.E6=function(){return K.resolve(!1)},t.R6=function(){return K.resolve(!1)},t.I6=function(){return K.resolve(!1)},t.C6=function(n){return K.resolve(!1)},t.x6=function(n,t){return K.resolve(!1)},t.vj=function(){return K.resolve(!1)},n}(),Ti=function(){function n(){}var t=n.prototype;return t.JO=function(){},t.iI=function(n){},t.Lf=function(n){},t.Ff=function(n,t){},n}();function ki(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var i,e,u=[],o=!0,f=!1;try{for(r=r.call(n);!(o=(i=r.next()).done)&&(u.push(i.value),!t||u.length!==t);o=!0);}catch(n){f=!0,e=n}finally{try{o||null==r.return||r.return()}finally{if(f)throw e}}return u}}(n,t)||nn(n,t)||function(){throw new a("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}!function(n){n.tS="arraybuffer",n.eS="json",n.iS="stream",n.S_="text"}(Si||(Si={}));var bi,mi=function(){function n(t){var r=this;this.ol={},t instanceof n?t.asList().forEach((function(n){var t=ki(n,2),i=t[0],e=t[1];r.append(i,e)})):Array.isArray(t)?t.forEach((function(n){r.append(n[0],n[1])})):t&&h.getOwnPropertyNames(t).forEach((function(n){r.append(n,t[n])}))}var t=n.prototype;return t.append=function(n,t){var r=n,i=t;r=Ai(r),i=Ni(i);var e=r.toLowerCase();if(this.ol.hasOwnProperty(e)){var u=this.ol[e],o=u[1];u[1]=o?o+", "+i:i}else this.ol[e]=[r,i]},t.delete=function(n){var t=Ai(n).toLowerCase();delete this.ol[t]},t.get=function(n){var t=Ai(n).toLowerCase();return this.ol.hasOwnProperty(t)?this.ol[t][1]:null},t.has=function(n){var t=Ai(n).toLowerCase();return this.ol.hasOwnProperty(t)},t.set=function(n,t){var r=n,i=(r=Ai(r)).toLowerCase();this.ol[i]=[r,Ni(t)]},t.forEach=function(n,t){for(var r in this.ol)this.ol.hasOwnProperty(r)&&n.call(t,this.ol[r][1],r,this)},t.asList=function(){var n=[];for(var t in this.ol)if(this.ol.hasOwnProperty(t)){var r=ki(this.ol[t],2),i=r[0],e=r[1];n.push([i,e])}return n},t.sS=function(){var n={};return this.forEach((function(t,r){n[r]=t})),n},t.nS=function(n){var t=this;n.forEach((function(n,r){t.append(r,n)}))},t.rS=function(n){var t=this;n.forEach((function(n,r){t.set(r,n)}))},n}();function Ai(n){var t=n;if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new a("Invalid character in header field name");return t}function Ni(n){var t=n;return"string"!=typeof t&&(t=String(t)),t}function Ci(n,t,r,i,e,u,o){try{var f=n[u](o),s=f.value}catch(n){return void r(n)}f.done?t(s):K.resolve(s).then(i,e)}function Di(n){return function(){var t=this,r=arguments;return new K((function(i,e){var u=n.apply(t,r);function o(n){Ci(u,i,e,o,f,"next",n)}function f(n){Ci(u,i,e,o,f,"throw",n)}o(void 0)}))}}function Pi(n,t){var r,i,e,u,o=function(n){return function(t){return f([n,t])}},f=function(u){if(r)throw new a("Generator is already executing.");for(;s;)try{if(r=1,i&&(e=2&u[0]?i.return:u[0]?i.throw||((e=i.return)&&e.call(i),0):i.next)&&!(e=e.call(i,u[1])).done)return e;switch(i=0,e&&(u=[2&u[0],e.value]),u[0]){case 0:case 1:e=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,i=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(e=s.trys,(e=e.length>0&&e[e.length-1])||6!==u[0]&&2!==u[0])){s=0;continue}if(3===u[0]&&(!e||u[1]>e[0]&&u[1]<e[3])){s.label=u[1];break}if(6===u[0]&&s.label<e[1]){s.label=e[1],e=u;break}if(e&&s.label<e[2]){s.label=e[2],s.ops.push(u);break}e[2]&&s.ops.pop(),s.trys.pop();continue}u=t.call(n,s)}catch(n){u=[6,n],i=0}finally{r=e=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}},s={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return u={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u}function Fi(n,t){var r=n.indexOf(t);return-1!==r&&(function(n,t){0===t?n.shift():n.splice(t,1)}(n,r),!0)}function Li(n){n.length=0}!function(n){n[n.qr=0]="qr",n[n.Zc=1]="Zc",n[n.Jc=-1]="Jc"}(bi||(bi={}));var Ui,Mi,Wi,Vi,Bi=function(){function n(){this._l=!1,this.vl=!1,this.Sl=[],this.El=[]}var t=n.prototype;return t.ll=function(){if(!this._l&&!this.vl){this._l=!0;for(var n=0,t=this.Sl.slice();n<t.length;n++){(0,t[n])()}this.dl()}},t.dl=function(){if(!this.vl){this.vl=!0;for(var n=0,t=this.El.slice();n<t.length;n++){(0,t[n])()}Li(this.Sl),Li(this.El)}},t.Al=function(n){this.vl||this.Sl.push(n)},t.wl=function(n){this.vl||Fi(this.Sl,n)},t.bl=function(n){this.vl||this.El.push(n)},t.yl=function(n){this.vl||Fi(this.El,n)},n}(),xi=function(){function n(){this.ul=new Bi}var t=n.prototype;return t.cl=function(){this.ul.ll()},t.dl=function(){this.ul.dl()},t.fl=function(n){var t=this.ul;if(!t._l)if(n._l)t.ll();else if(!t.vl&&!n.vl){var r=function(){i(),t.ll()},i=function(){n.wl(r),n.yl(i),t.wl(r),t.yl(i)};n.Al(r),n.bl(i),t.Al(r),t.bl(i)}},t.Tl=function(){var t=new n,r=new n,i=t.al,e=r.al,u=this.ul,o=function(){i._l&&e.vl||e._l&&i.vl?u.ll():i.vl&&e.vl&&u.dl()};i.Al(o),e.Al(o),i.bl(o),e.bl(o),t.fl(u),r.fl(u);return u.bl((function(){i.wl(o),e.wl(o),i.yl(o),e.yl(o)})),[t,r]},Z(n,[{key:"al",get:function(){return this.ul}}]),n}();!function(n){n.DELETE="DELETE",n.GET="GET",n.HEAD="HEAD",n.OPTIONS="OPTIONS",n.POST="POST",n.PUT="PUT"}(Ui||(Ui={})),function(n){n.E_="",n.hS="manifest",n.oS="segment",n.aS="preload-hint",n.uS="content-protection"}(Mi||(Mi={})),function(n){n.E_="",n.cS="initialization-segment",n.lS="fairplay-license",n.dS="fairplay-certificate",n.fS="widevine-license",n._S="widevine-certificate",n.gS="playready-license",n.vS="clearkey-license",n.wS="aes128-key"}(Wi||(Wi={})),function(n){n.E_="",n.d_="audio",n.l_="video",n.S_="text",n.k_="image"}(Vi||(Vi={}));var Hi=function(n,t){var r,i,e,u,o,f,s,c,a,h,l,v,_=n.qT;t?(r=t.mS,i=t.pS,e=t.yS,u=t.AS,o=t.zT,f=t.bS,s=t.al,c=t.Hd,a=t.TS,h=t.SS,l=t.kS,v=t.ES):(r=null,i={},e="GET",u=Si.S_,o=0,f=0,c="",a="",h="",l=!1),this.qT=_,this.mS=n.mS||r,this.pS=new mi(n.pS||i),this.yS=n.yS||e,this.AS=n.AS||u,this.zT=void 0!==n.zT?Number(n.zT)||0:o,this.bS=void 0!==n.bS?Number(n.bS)||0:f,this.al=n.al||s||(new xi).al,this.Hd=n.Hd||c,this.TS=n.TS||a,this.SS=n.SS||h,this.kS=void 0!==n.kS?Boolean(n.kS):l,this.ES=n.ES||v};var Gi=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];c.apply(this,t)};(Gi.prototype=h.create(c.prototype)).constructor=Gi;var ji,Ki=function(n){function t(t,r){var i;return(i=n.call(this)||this).message=t||"Unknown error",i.cause=r,c.captureStackTrace&&c.captureStackTrace(function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(i),i.constructor),i}return J(t,n),Z(t,[{key:"name",get:function(){return"BaseError"}}]),t}(Gi);!function(n){n.LT="HttpOpenError",n.OT="HttpResponseError",n.MT="HttpTimeoutError"}(ji||(ji={}));var qi,zi,Xi,$i=function(n){function t(t,r){return n.call(this,t,function(n){return"Error while opening "+n+". Invalid URL."}(t.qT),r)}return J(t,n),Z(t,[{key:"name",get:function(){return ji.LT}}]),t}(function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).UT=t,e}return J(t,n),Z(t,[{key:"FT",get:function(){return this.UT}}]),t}(Ki)),Zi=function(){function n(){}var t=n.prototype;return t.FT=function(n){return K.reject(new $i(new Hi(n)))},t.VF=function(n){},t.fn=function(){},n}(),Yi=function(n){function t(t){return n.call(this,"Invalid XML",t)}return J(t,n),t}(Ki);!function(n){n}(new(function(n){function t(){var t;return(t=n.apply(this,arguments)||this).O6=new Oi,t.CS=new Zi,t.i=new Ti,t}return J(t,n),t.prototype.ET=function(n){throw new Yi},Z(t,[{key:"k6",get:function(){return this.O6}},{key:"H6",get:function(){return!1}},{key:"SQ",get:function(){return!1}},{key:"z6",get:function(){return!1}},{key:"WQ",get:function(){return!1}},{key:"Bf",get:function(){return this.i}},{key:"X6",get:function(){return{G6:wn}}},{key:"Q6",get:function(){return"default"}},{key:"K6",get:function(){return"unknown"}},{key:"oC",get:function(){return this.CS}}]),t}(Ri))),function(n){n[n.MPEGTS_TO_FMP4=0]="MPEGTS_TO_FMP4",n[n.RAW_AUDIO_TO_FMP4=1]="RAW_AUDIO_TO_FMP4"}(qi||(qi={})),function(n){n[n.CONFIGURATION_ERROR=1e3]="CONFIGURATION_ERROR",n[n.LICENSE_ERROR=2e3]="LICENSE_ERROR",n[n.LICENSE_INVALID_DOMAIN=2001]="LICENSE_INVALID_DOMAIN",n[n.LICENSE_INVALID_SOURCE=2002]="LICENSE_INVALID_SOURCE",n[n.LICENSE_EXPIRED=2003]="LICENSE_EXPIRED",n[n.LICENSE_INVALID_FEATURE=2004]="LICENSE_INVALID_FEATURE",n[n.SOURCE_INVALID=3e3]="SOURCE_INVALID",n[n.SOURCE_NOT_SUPPORTED=3001]="SOURCE_NOT_SUPPORTED",n[n.MANIFEST_LOAD_ERROR=4e3]="MANIFEST_LOAD_ERROR",n[n.MANIFEST_CORS_ERROR=4001]="MANIFEST_CORS_ERROR",n[n.MANIFEST_PARSE_ERROR=4002]="MANIFEST_PARSE_ERROR",n[n.MEDIA_NOT_SUPPORTED=5e3]="MEDIA_NOT_SUPPORTED",n[n.MEDIA_LOAD_ERROR=5001]="MEDIA_LOAD_ERROR",n[n.MEDIA_DECODE_ERROR=5002]="MEDIA_DECODE_ERROR",n[n.MEDIA_AVPLAYER_ERROR=5003]="MEDIA_AVPLAYER_ERROR",n[n.MEDIA_ABORTED=5004]="MEDIA_ABORTED",n[n.NETWORK_ERROR=6e3]="NETWORK_ERROR",n[n.NETWORK_TIMEOUT=6001]="NETWORK_TIMEOUT",n[n.CONTENT_PROTECTION_ERROR=7e3]="CONTENT_PROTECTION_ERROR",n[n.CONTENT_PROTECTION_NOT_SUPPORTED=7001]="CONTENT_PROTECTION_NOT_SUPPORTED",n[n.CONTENT_PROTECTION_CONFIGURATION_MISSING=7002]="CONTENT_PROTECTION_CONFIGURATION_MISSING",n[n.CONTENT_PROTECTION_CONFIGURATION_INVALID=7003]="CONTENT_PROTECTION_CONFIGURATION_INVALID",n[n.CONTENT_PROTECTION_INITIALIZATION_INVALID=7004]="CONTENT_PROTECTION_INITIALIZATION_INVALID",n[n.CONTENT_PROTECTION_CERTIFICATE_ERROR=7005]="CONTENT_PROTECTION_CERTIFICATE_ERROR",n[n.CONTENT_PROTECTION_CERTIFICATE_INVALID=7006]="CONTENT_PROTECTION_CERTIFICATE_INVALID",n[n.CONTENT_PROTECTION_LICENSE_ERROR=7007]="CONTENT_PROTECTION_LICENSE_ERROR",n[n.CONTENT_PROTECTION_LICENSE_INVALID=7008]="CONTENT_PROTECTION_LICENSE_INVALID",n[n.CONTENT_PROTECTION_KEY_EXPIRED=7009]="CONTENT_PROTECTION_KEY_EXPIRED",n[n.CONTENT_PROTECTION_KEY_MISSING=7010]="CONTENT_PROTECTION_KEY_MISSING",n[n.CONTENT_PROTECTION_OUTPUT_RESTRICTED=7011]="CONTENT_PROTECTION_OUTPUT_RESTRICTED",n[n.CONTENT_PROTECTION_INTERNAL_ERROR=7012]="CONTENT_PROTECTION_INTERNAL_ERROR",n[n.SUBTITLE_LOAD_ERROR=8e3]="SUBTITLE_LOAD_ERROR",n[n.SUBTITLE_CORS_ERROR=8001]="SUBTITLE_CORS_ERROR",n[n.SUBTITLE_PARSE_ERROR=8002]="SUBTITLE_PARSE_ERROR",n[n.VR_PLATFORM_UNSUPPORTED=9e3]="VR_PLATFORM_UNSUPPORTED",n[n.VR_PRESENTATION_ERROR=9001]="VR_PRESENTATION_ERROR",n[n.AD_ERROR=1e4]="AD_ERROR",n[n.AD_BLOCKER_DETECTED=10001]="AD_BLOCKER_DETECTED",n[n.FULLSCREEN_ERROR=11e3]="FULLSCREEN_ERROR",n[n.CACHE_SOURCE_ERROR=12e3]="CACHE_SOURCE_ERROR",n[n.CACHE_CONTENT_PROTECTION_ERROR=12001]="CACHE_CONTENT_PROTECTION_ERROR"}(zi||(zi={})),function(n){n[n.CONFIGURATION=1]="CONFIGURATION",n[n.LICENSE=2]="LICENSE",n[n.SOURCE=3]="SOURCE",n[n.MANIFEST=4]="MANIFEST",n[n.MEDIA=5]="MEDIA",n[n.NETWORK=6]="NETWORK",n[n.CONTENT_PROTECTION=7]="CONTENT_PROTECTION",n[n.SUBTITLE=8]="SUBTITLE",n[n.VR=9]="VR",n[n.AD=10]="AD",n[n.FULLSCREEN=11]="FULLSCREEN",n[n.CACHE=12]="CACHE"}(Xi||(Xi={})),function(n){n.fromCode=function(n){var t=l.floor(n/1e3);if(t in Xi)return t;throw new a("Invalid error code: "+n)}}(Xi||(Xi={}));var Ji=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).code=t,e}return J(t,n),Z(t,[{key:"name",get:function(){return"THEOplayerError"}},{key:"category",get:function(){return Xi.fromCode(this.code)}}]),t}(Ki);var Qi,ne=function(){function n(n){this.encoding=n}var t=n.prototype;return t.encode=function(n){if(!n)return new d(0);for(var t=new d(n.length),r=0;r<n.length;r++)t[r]=n.charCodeAt(r);return t},t.encodeInto=function(n,t){for(var r=l.min(n.length,t.byteLength),i=0;i<r;i++)t[i]=n.charCodeAt(i);return{read:r,written:r}},n}();var te=new(function(){function n(n,t){this.encoding=n,this.fatal=(null==t?void 0:t.fatal)||!1,this.ignoreBOM=(null==t?void 0:t.ignoreBOM)||!1}return n.prototype.decode=function(n,t){return n?(r=n instanceof ArrayBuffer?new d(n):new d(n.buffer,n.byteOffset,n.byteLength),String.fromCharCode.apply(void 0,r)):"";var r},n}())("utf-8",{ignoreBOM:!0,fatal:!0});te.decode();var re=new d;function ie(){return re.buffer!==Qi.memory.buffer&&(re=new d(Qi.memory.buffer)),re}function ee(n,t){return te.decode(ie().subarray(n,n+t))}var ue=new Array(32).fill(void 0);ue.push(void 0,null,!0,!1);var oe=ue.length;function fe(n){oe===ue.length&&ue.push(ue.length+1);var t=oe;return oe=ue[t],ue[t]=n,t}function se(n){return ue[n]}function ce(n){var t=se(n);return function(n){n<36||(ue[n]=oe,oe=n)}(n),t}var ae=0;function he(n,t){var r=t(1*n.length);return ie().set(n,r/1),ae=n.length,r}var le=new Int32Array;function ve(){return le.buffer!==Qi.memory.buffer&&(le=new Int32Array(Qi.memory.buffer)),le}function _e(n){return null==n}function ye(n,t){return ie().subarray(n/1,n/1+t)}var de=new ne("utf-8"),we="function"==typeof de.encodeInto?function(n,t){return de.encodeInto(n,t)}:function(n,t){var r=de.encode(n);return t.set(r),{read:n.length,written:r.length}};function Ie(n,t){return Ee.apply(this,arguments)}function Ee(){return(Ee=Di((function(n,t){var r,i,e;return Pi(this,(function(u){switch(u.label){case 0:if(!("function"==typeof Response&&n instanceof Response))return[3,7];if("function"!=typeof WebAssembly.instantiateStreaming)return[3,4];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,WebAssembly.instantiateStreaming(n,t)];case 2:return[2,u.sent()];case 3:if(r=u.sent(),"application/wasm"==n.headers.get("Content-Type"))throw r;return console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r),[3,4];case 4:return[4,n.arrayBuffer()];case 5:return i=u.sent(),[4,WebAssembly.instantiate(i,t)];case 6:return[2,u.sent()];case 7:return[4,WebAssembly.instantiate(n,t)];case 8:return(e=u.sent())instanceof WebAssembly.Instance?[2,{instance:e,module:n}]:[2,e];case 9:return[2]}}))}))).apply(this,arguments)}function pe(){var n={wbg:{}};return n.wbg.__wbg_createoutputdata_bccee5979d8be2f0=function(n,t,r,i,e,u,o,f){var s,c,a,h;return 0!==n&&(s=ye(n,t).slice(),Qi.__wbindgen_export_1(n,1*t)),0!==r&&(c=ye(r,i).slice(),Qi.__wbindgen_export_1(r,1*i)),0!==e&&(a=ye(e,u).slice(),Qi.__wbindgen_export_1(e,1*u)),0!==o&&(h=ye(o,f).slice(),Qi.__wbindgen_export_1(o,1*f)),fe(function(n,t,r,i){return{video_init:n,audio_init:t,video_media:r,audio_media:i}}(s,c,a,h))},n.wbg.__wbg_createtimestampwithbase_946dfd2c21189740=function(n,t,r){return fe(function(n,t,r){return{low:n,high:t,base:r}}(n>>>0,t>>>0,r>>>0))},n.wbg.__wbg_createoutputmetadata_447237f2cefc820a=function(n,t,r,i,e,u,o,f,s,c,a,h,l,v,_,y){var d,w,I,E;return 0!==r&&(d=ee(r,i).slice(),Qi.__wbindgen_export_1(r,1*i)),0!==e&&(w=ee(e,u).slice(),Qi.__wbindgen_export_1(e,1*u)),0!==o&&(I=ye(o,f).slice(),Qi.__wbindgen_export_1(o,1*f)),0!==s&&(E=ye(s,c).slice(),Qi.__wbindgen_export_1(s,1*c)),fe(function(n,t,r,i,e,u,o,f,s,c,a){return{video_pid:n,audio_pid:t,video_codec:r,audio_codec:i,sps_nal:e,pps_nal:u,first_decode_timestamp:o,first_presentation_timestamp:f,first_video_presentation_timestamp:s,program_map_table_pid:c,video_frame_rate:a}}(16777215===n?void 0:n,16777215===t?void 0:t,d,w,I,E,ce(a),ce(h),ce(l),16777215===v?void 0:v,0===_?void 0:y))},n.wbg.__wbg_createoutput_57eadab690ca8f38=function(n,t){return fe(function(n,t){return{data:n,metadata:t}}(ce(n),ce(t)))},n.wbg.__wbindgen_string_new=function(n,t){return fe(ee(n,t))},n.wbg.__wbg_new_693216e109162396=function(){return fe(new c)},n.wbg.__wbg_stack_0ddaca5d1abfb52f=function(n,t){var r=function(n,t,r){if(void 0===r){var i=de.encode(n),e=t(i.length);return ie().subarray(e,e+i.length).set(i),ae=i.length,e}for(var u=n.length,o=t(u),f=ie(),s=0;s<u;s++){var c=n.charCodeAt(s);if(c>127)break;f[o+s]=c}if(s!==u){0!==s&&(n=n.slice(s)),o=r(o,u,u=s+3*n.length);var a=ie().subarray(o+s,o+u);s+=we(n,a).written}return ae=s,o}(se(t).stack,Qi.__wbindgen_export_0,Qi.__wbindgen_export_2),i=ae;ve()[n/4+1]=i,ve()[n/4+0]=r},n.wbg.__wbg_error_09919627ac0992f5=function(n,t){try{console.error(ee(n,t))}finally{Qi.__wbindgen_export_1(n,t)}},n.wbg.__wbindgen_object_drop_ref=function(n){ce(n)},n.wbg.__wbg_data_cc2d56efd30827c5=function(n,t){var r=he(se(t).data,Qi.__wbindgen_export_0),i=ae;ve()[n/4+1]=i,ve()[n/4+0]=r},n.wbg.__wbg_metadata_ca2e3d23c7c1a6ca=function(n){var t=se(n).metadata;return _e(t)?0:fe(t)},n.wbg.__wbg_spsnal_b4bfd05148141930=function(n,t){var r=se(t).sps_nal,i=_e(r)?0:he(r,Qi.__wbindgen_export_0),e=ae;ve()[n/4+1]=e,ve()[n/4+0]=i},n.wbg.__wbg_ppsnal_f7bfb23a31ee4c34=function(n,t){var r=se(t).pps_nal,i=_e(r)?0:he(r,Qi.__wbindgen_export_0),e=ae;ve()[n/4+1]=e,ve()[n/4+0]=i},n.wbg.__wbg_videopid_7a1f9f6b54cf877d=function(n){var t=se(n).video_pid;return _e(t)?16777215:t},n.wbg.__wbg_audiopid_30bbe0807c83c7cc=function(n){var t=se(n).audio_pid;return _e(t)?16777215:t},n.wbg.__wbg_programmaptablepid_1551464a82dd2746=function(n){var t=se(n).program_map_table_pid;return _e(t)?16777215:t},n}function Re(n,t){return Qi=n.exports,ge.__wbindgen_wasm_module=t,le=new Int32Array,re=new d,Qi.__wbindgen_start(),Qi}function ge(n){return Se.apply(this,arguments)}function Se(){return(Se=Di((function(n){var t,r,i,e;return Pi(this,(function(u){switch(u.label){case 0:return void 0===n&&(n=new URL("theomux_bg.wasm",void 0)),t=pe(),("string"==typeof n||"function"==typeof Request&&n instanceof Request||"function"==typeof URL&&n instanceof URL)&&(n=fetch(n)),[4,n];case 1:return[4,Ie.apply(void 0,[u.sent(),t])];case 2:return r=u.sent(),i=r.instance,e=r.module,[2,Re(i,e)]}}))}))).apply(this,arguments)}function Oe(){return(Oe=Di((function(n){var t;return Pi(this,(function(r){switch(r.label){case 0:return"string"==typeof n&&(n=new URL(n)),n instanceof WebAssembly.Module?(t=n,[3,3]):[3,1];case 1:return[4,ke(n)];case 2:t=r.sent(),r.label=3;case 3:return[4,ge(t)];case 4:return r.sent(),[2,new Te(t)]}}))}))).apply(this,arguments)}var Te=function(){function n(n){this.TR=n}var t=n.prototype;return t.mpegts_to_fmp4=function(n){return function(n){try{var t=Qi.__wbindgen_add_to_stack_pointer(-16);Qi.mpegts_to_fmp4(t,fe(n));var r=ve()[t/4+0],i=ve()[t/4+1];if(ve()[t/4+2])throw ce(i);return ce(r)}finally{Qi.__wbindgen_add_to_stack_pointer(16)}}(n)},t.raw_audio_to_fmp4=function(n){return function(n){try{var t=Qi.__wbindgen_add_to_stack_pointer(-16);Qi.raw_audio_to_fmp4(t,fe(n));var r=ve()[t/4+0],i=ve()[t/4+1];if(ve()[t/4+2])throw ce(i);return ce(r)}finally{Qi.__wbindgen_add_to_stack_pointer(16)}}(n)},t.restart=function(){var n=this;return Di((function(){return Pi(this,(function(t){switch(t.label){case 0:return[4,ge(n.TR)];case 1:return t.sent(),[2]}}))}))()},n}();function ke(n){return be.apply(this,arguments)}function be(){return(be=Di((function(n){var t,r,i,e;return Pi(this,(function(u){switch(u.label){case 0:return"http:"!==n.protocol&&"https:"!==n.protocol?[3,8]:[4,fetch(n.href)];case 1:if(t=u.sent(),"function"!=typeof WebAssembly.compileStreaming)return[3,5];u.label=2;case 2:return u.trys.push([2,4,,5]),[4,WebAssembly.compileStreaming(t)];case 3:return[2,u.sent()];case 4:if(r=u.sent(),"application/wasm"===t.headers.get("Content-Type"))throw r;return console.warn("`WebAssembly.compileStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.compile` which is slower. Original error:\n",r),[3,5];case 5:return[4,t.arrayBuffer()];case 6:return i=u.sent(),[4,WebAssembly.compile(i)];case 7:return[2,u.sent()];case 8:return[4,me(n.href)];case 9:return e=u.sent(),[4,WebAssembly.compile(e)];case 10:return[2,u.sent()];case 11:return[2]}}))}))).apply(this,arguments)}function me(n){return new K((function(t,r){var i=new w;i.onload=function(){t(i.response||new ArrayBuffer(0))},i.onerror=function(){r(new a('Failed to fetch "'+n+'", status '+i.status))},i.open("GET",n,!0),i.responseType="arraybuffer",i.send()}))}var Ae=new URL("./THEOplayer.transmux.wasm",i.href);!function(n){var t,r=K.resolve(n()).then((function(n){t=n,r=void 0,self.postMessage({zCt:"6.0.0"})}),(function(n){var t=n,r={success:!1,error:t.message,errorCode:t instanceof Ji?t.code:zi.MEDIA_DECODE_ERROR};self.postMessage(r)}));function i(){return(i=Di((function(n){var i,e,u,o,f,s;return Pi(this,(function(a){switch(a.label){case 0:return void 0===r?[3,2]:[4,r];case 1:a.sent(),a.label=2;case 2:if(u=n.id,n.type===qi.MPEGTS_TO_FMP4)o=t.mpegts_to_fmp4(n.input);else{if(n.type!==qi.RAW_AUDIO_TO_FMP4)throw new c("Unknown request type: "+n.type);o=t.raw_audio_to_fmp4(n.input)}return f={success:!0,requestId:u,output:o},s=[null==(i=n.input.metadata)?void 0:i.sps_nal,null==(e=n.input.metadata)?void 0:e.pps_nal,n.input.data,o.data.video_init,o.data.audio_init,o.data.video_media,o.data.audio_media].filter(dn).map((function(n){return n.buffer})),self.postMessage(f,s),[2]}}))}))).apply(this,arguments)}self.addEventListener("message",(function(n){var t=n.data.id;(function(n){return i.apply(this,arguments)})(n.data).catch((function(n){var r=n,i={success:!1,requestId:t,error:r.message,errorCode:r instanceof Ji?r.code:zi.MEDIA_DECODE_ERROR};self.postMessage(i)}))}))}((function(){return function(n){return Oe.apply(this,arguments)}(Ae)}))}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof s?s:"undefined"!=typeof global?global:this);
Binary file
package/package.json CHANGED
@@ -2,14 +2,54 @@
2
2
  "name": "@theoplayer/extended",
3
3
  "main": "THEOplayer.js",
4
4
  "types": "THEOplayer.d.ts",
5
- "version": "5.10.0",
5
+ "version": "6.0.0",
6
6
  "description": "THEOplayer is the universal video player solution, enabling you to quickly deliver cross-platform content playback.",
7
7
  "author": "THEO Technologies",
8
8
  "homepage": "https://www.theoplayer.com/",
9
9
  "license": "SEE LICENSE AT https://www.theoplayer.com/terms",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./THEOplayer.d.ts",
13
+ "import": "./THEOplayer.esm.js",
14
+ "default": "./THEOplayer.js"
15
+ },
16
+ "./chromeless": {
17
+ "types": "./THEOplayer.chromeless.d.ts",
18
+ "import": "./THEOplayer.chromeless.esm.js",
19
+ "default": "./THEOplayer.chromeless.js"
20
+ },
21
+ "./THEOplayer": {
22
+ "types": "./THEOplayer.d.ts",
23
+ "import": "./THEOplayer.esm.js",
24
+ "default": "./THEOplayer.js"
25
+ },
26
+ "./THEOplayer.js": "./THEOplayer.js",
27
+ "./THEOplayer.d.ts": "./THEOplayer.d.ts",
28
+ "./THEOplayer.chromeless": {
29
+ "types": "./THEOplayer.chromeless.d.ts",
30
+ "import": "./THEOplayer.chromeless.esm.js",
31
+ "default": "./THEOplayer.chromeless.js"
32
+ },
33
+ "./THEOplayer.chromeless.js": "./THEOplayer.chromeless.js",
34
+ "./THEOplayer.chromeless.d.ts": "./THEOplayer.chromeless.d.ts",
35
+ "./THEOplayer.transmux.js": "./THEOplayer.transmux.js",
36
+ "./THEOplayer.transmux.asmjs.js": "./THEOplayer.transmux.asmjs.js",
37
+ "./THEOplayer.transmux.wasm": "./THEOplayer.transmux.wasm",
38
+ "./theoplayer.sw.js": "./theoplayer.sw.js",
39
+ "./theoplayer.d.js": "./theoplayer.d.js",
40
+ "./theoplayer.e.js": "./theoplayer.e.js",
41
+ "./theoplayer.p.js": "./theoplayer.p.js",
42
+ "./iframe.html": "./iframe.html",
43
+ "./ui.css": "./ui.css",
44
+ "./package": "./package.json",
45
+ "./package.json": "./package.json"
46
+ },
10
47
  "files": [
11
48
  "THEOplayer.js",
49
+ "THEOplayer.esm.js",
12
50
  "THEOplayer.chromeless.js",
51
+ "THEOplayer.chromeless.esm.js",
52
+ "THEOplayer.common.esm.js",
13
53
  "theoplayer.sw.js",
14
54
  "theoplayer.d.js",
15
55
  "theoplayer.e.js",