/*!
 THEOplayer

 Usage of this software is limited by the THEOplayer License.

 It is prohibited to reverse engineer, decompile, translate,
 disassemble, decipher, decrypt, or otherwise attempt to
 discover the source code of this software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 OTHER DEALINGS IN THE SOFTWARE.

 For more information, visit https://www.theoplayer.com or contact
 contact @ theoplayer . com



 THEOplayer is based on patented technology developed by
 THEO Technologies (https://www.theoplayer.com).

 Version: 5.7.0 (5.7.0)
 Created: 2023-07-27T16:21:02.789Z
 */
!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.g=0,this.N=!1,this.I=void 0,this.j=[],b(n,this)}function R(n,t){for(;3===n.g;)n=n.I;0!==n.g?(n.N=!0,g.U((function(){var r=1===n.g?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.g?T:S)(t.promise,n.I)}))):n.j.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.g=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.g=1,n.I=t,k(n)}catch(t){S(n,t)}var i,e}function S(n,t){n.g=2,n.I=t,k(n)}function k(n){2===n.g&&0===n.j.length&&g.U((function(){n.N||g.Y(n.I)}));for(var t=0,r=n.j.length;t<r;t++)R(n,n.j[t]);n.j=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.U="function"==typeof setImmediate&&function(n){setImmediate(n)}||function(n){p(n,0)},g.Y=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.Z=[],this.J=n}).prototype.F=function(n){var t=this.length();this.K(t+1);var r=this.q+t&this.J-1;this.Z[r]=n,this.V=t+1},m.prototype.push=function(n){var t=this.length()+1;if(this.J<t)this.F(n);else{var r=this.q+t-1,i=this.J-1;this.Z[r&i]=n,this.V=t}},m.prototype.shift=function(){var n=this.q,t=this.Z[n];return this.Z[n]=void 0,this.q=n+1&this.J-1,this.V--,t},m.prototype.length=function(){return this.V},m.prototype.K=function(n){this.J<n&&this.nt(this.J<<1)},m.prototype.nt=function(n){var t=this.J;this.J=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.Z,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.U,q=$,X=new M(16),z=!1,(Z={ot:function(n){X.push(n),z||(z=!0,q(Y))},ut:Y=function(){for(;X.length()>0;)X.shift()();z=!1}}).ut,g.U=Z.ot,g.Y=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={})).ju="web",Q.Cu="android",Q.Ou="android-tv",Q.xu="ios",Q.Ru="tvos",Q.Bu="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.Pu=Boolean("ontouchstart"in n||n.DocumentTouch&&r instanceof n.DocumentTouch||e&&e.msMaxTouchPoints),this.Uu=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(cn)||/(macintosh|mac(?=_powerpc)\s)/i.test(cn),this.Qu=/Windows NT/i.test(cn),this.Yu=vn?_(vn[1]):0,this.Fu=/Android/i.test(cn),this.Gu=ln?_(ln[1]):0,this.Hu=/windows phone (8|8\.1)/i.test(cn),this.Vu=/iPhone/i.test(cn),this.Wu=/iPad/i.test(cn),this.Xu=this.Uu&&this.Pu&&!this.Wu,this.Zu=/iPod/i.test(cn),this.Ju=/Mobile Safari/i.test(cn),this.Ku=/EOS.*STB/i.test(cn),this.$u=(this.Vu||this.Wu||this.Xu||this.Zu)&&!this.Hu,this.ns=pn?_(pn[2]):0,this.rs=this.Hu||this.$u||this.Fu||this.Ju,this.us=/CriOS/i.test(cn),this.hs=Boolean(n.chrome&&/google/i.test(e.vendor))||this.us,this.fs=this.hs&&/Edg\//i.test(e.userAgent),this.vs=hn?v(hn[1],10):0,this.ds=Boolean(n.chrome||/Chrome/i.test(cn)||/CriOS/i.test(cn)),this.ls=an?v(an[1],10):0,this.gs=/SMART-TV.*Tizen/i.test(cn),this.ys=wn?_(wn[1]):0,this.As=/webos|web0s/i.test(cn),this._s=/VIZIO/i.test(cn),this.Ms=/Edge\/\d+/i.test(cn),this.Ts=/Trident/i.test(cn),this.Ns=this.Ts&&!n.ActiveXObject&&"ActiveXObject"in n,this.Ds=/Vivaldi/i.test(cn),this.Is=/Firefox/i.test(cn)&&!/Seamonkey/i.test(cn),this.Es=dn?_(dn[1]):0,this.Ss=/Safari/i.test(cn)&&!/Chrome/i.test(cn)&&!this.Hu&&!this.gs,this.Ls=_n?_(_n[2]):0,this.Cs=Boolean(yn),this.Os=yn?_(yn[1]):0,this.xs=/CrKey/.test(cn),this.zs=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(cn),this.Rs="web"===J.Ou,this.Bs="web"===J.Cu,this.Ps=this.Bs||this.Rs,this.Us="web"===J.xu,this.Qs="web"===J.Ru,this.Ys="web"===J.Bu}return rn(t,[{key:"Fs",get:function(){return this.Pu}},{key:"Gs",get:function(){return this.Uu}},{key:"Hs",get:function(){return this.Qu}},{key:"Vs",get:function(){return this.Yu}},{key:"Ws",get:function(){return this.Fu}},{key:"Xs",get:function(){return this.Gu}},{key:"qs",get:function(){return this.Hu}},{key:"Zs",get:function(){return this.Vu}},{key:"Js",get:function(){return this.Wu}},{key:"Ks",get:function(){return this.Xu}},{key:"$s",get:function(){return this.Zu}},{key:"uo",get:function(){return this.$u}},{key:"oo",get:function(){return this.ns}},{key:"ao",get:function(){return this.Ku}},{key:"do",get:function(){return this.Ju}},{key:"Ao",get:function(){return this.rs}},{key:"_o",get:function(){return this.us}},{key:"mo",get:function(){return this.hs}},{key:"po",get:function(){return this.ls}},{key:"Mo",get:function(){return this.fs}},{key:"To",get:function(){return this.vs}},{key:"No",get:function(){return this.gs}},{key:"Do",get:function(){return this.ys}},{key:"Io",get:function(){return this.As}},{key:"Eo",get:function(){return this._s}},{key:"So",get:function(){return this.Ms}},{key:"Lo",get:function(){return this.Ts}},{key:"jo",get:function(){return this.Ns}},{key:"Co",get:function(){return this.Ds}},{key:"Oo",get:function(){return this.Is}},{key:"xo",get:function(){return this.Es}},{key:"zo",get:function(){return this.Ss}},{key:"Ro",get:function(){return this.Ls}},{key:"Bo",get:function(){return this.Cs}},{key:"Po",get:function(){return this.Os}},{key:"Uo",get:function(){return this.xs}},{key:"Qo",get:function(){return this.zs}},{key:"Yo",get:function(){return!(!this.Io&&!this.No)&&this.po<=56}},{key:"Fo",get:function(){return this.Rs}},{key:"Go",get:function(){return this.Bs}},{key:"Ho",get:function(){return this.Ps}},{key:"Vo",get:function(){return this.Us}},{key:"Wo",get:function(){return this.Qs}},{key:"Xo",get:function(){return this.Ys}},{key:"qo",get:function(){return this.ds}}]),t}();En.Zo=new En;var In=En.Zo,gn={}.toString;function Rn(n){return null!=n}Array.isArray;var Tn=function(){},Sn=!(In.Lo&&!In.jo),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.ra)}function Mn(n){var t=l.clz32(n&-n);return n?31-t:t}Ln.prototype.ra,h.defineProperty(Ln.prototype,"ra",{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.oa=1]="oa",st[st.va=2]="va",st[st.ya=3]="ya",st[st.Aa=4]="Aa",st[st._a=9]="_a";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.ma=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.Ma=n}var t=n.prototype;return t.Ta=function(n){return this.Ma.isEqualNode(n.Ma)},t.Na=function(t){return new n(this.Ma.cloneNode(t))},rn(n,[{key:"ea",get:function(){return ft.va}},{key:"Da",get:function(){var n;return null!=(n=this.Ma.localName)?n:Rt(this.Ma.nodeName)}},{key:"qn",get:function(){return this.Ma.nodeName}},{key:"Ia",get:function(){var n;return null!=(n=this.Ma.namespaceURI)?n:void 0}},{key:"Ea",get:function(){var n;return null!=(n=this.Ma.prefix)?n:void 0}},{key:"Sa",get:function(){return this.Ma.nodeValue}}]),n}(),_t=function(){function n(n){this.La=void 0,this.Ca=n}var t=n.prototype;return t.Oa=function(n){return this.xa.filter((function(t){return It(t)&&t.Ra===n}))},t.Ba=function(n,t){return this.xa.filter((function(r){return It(r)&&r.Da===t&&r.Ia===n}))},t.Pa=function(n){this.Ca.appendChild(n.Ua),this.La&&this.La.push(n)},t.Ta=function(n){return this.Ca.isEqualNode(n.Ua)},rn(n,[{key:"xa",get:function(){return void 0===this.La&&(this.La=function(n){for(var t=[],r=0;r<n.length;r++){var i=gt(n.item(r));i&&t.push(i)}return t}(this.Ca.childNodes)),this.La}},{key:"Zn",get:function(){return this.xa.filter(It)}},{key:"Ua",get:function(){return this.Ca}}]),n}(),dt=function(n){function t(t){return n.call(this,t)}un(t,n);var r=t.prototype;return r.Qa=function(n){if(this.Ca.hasAttribute(n))return this.Ca.getAttribute(n)},r.Ya=function(n,t){if(this.Ca.hasAttributeNS(n,t))return this.Ca.getAttributeNS(n,t)},r.Fa=function(n){this.Ca.removeAttribute(n)},r.Ga=function(n,t){this.Ca.removeAttributeNS(n,t)},r.Ha=function(n,t){this.Ca.setAttribute(n,t)},r.Va=function(n,t,r){this.Ca.setAttributeNS(n,t,r)},r.Na=function(n){return new t(this.Ca.cloneNode(n))},rn(t,[{key:"ea",get:function(){return ft.oa}},{key:"Da",get:function(){var n;return null!=(n=this.Ca.localName)?n:Rt(this.Ca.nodeName)}},{key:"Ia",get:function(){var n;return null!=(n=this.Ca.namespaceURI)?n:void 0}},{key:"Ea",get:function(){var n;return null!=(n=this.Ca.prefix)?n:void 0}},{key:"Ra",get:function(){return this.Ca.nodeName}},{key:"Wa",get:function(){return function(n){for(var t=[],r=0;r<n.length;r++)t.push(new vt(n.item(r)));return t}(this.Ca.attributes)}},{key:"Xa",get:function(){return this.Ca.textContent}}]),t}(_t),yt=function(){function n(n){this.Ca=n}return n.prototype.Ta=function(n){return this.qa===n.qa},rn(n,[{key:"qa",get:function(){return this.Ca.nodeValue}},{key:"Ua",get:function(){return this.Ca}}]),n}(),wt=function(n){function t(t){return n.call(this,t)}return un(t,n),t.prototype.Na=function(n){return new t(this.Ca.cloneNode(n))},rn(t,[{key:"ea",get:function(){return ft.ya}}]),t}(yt),pt=function(n){function t(t){return n.call(this,t)}return un(t,n),t.prototype.Na=function(n){return new t(this.Ca.cloneNode(n))},rn(t,[{key:"ea",get:function(){return ft.Aa}}]),t}(yt),Et=function(n){function t(t){return n.call(this,t)}return un(t,n),t.prototype.Na=function(n){return new t(this.Ca.cloneNode(n))},rn(t,[{key:"ea",get:function(){return ft._a}},{key:"Za",get:function(){return new dt(this.Ca.documentElement)}}]),t}(_t);function It(n){return function(n){return 1===n.ea}(n)}function gt(n){switch(n.nodeType){case ft.oa:return new dt(n);case ft.ya:return new wt(n);case ft.Aa: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={Ja: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{Ja:2,Ka: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:{Ja:3,Z: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?{Ja:1,Ka:i}:""===r?mr:{Ja:0,$a:r}}function Dr(n){switch(n.Ja){case 0:return n.$a;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.Ka);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.Ka)+"]";case 3:return n.Z;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.tc.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.tc,Fr(t))}function Kr(n){if(n.nc){var t=Lr(n.tc);""===t&&(t=null),n.nc.nc.ic=t}}var qr=function(){function n(n){if(void 0===n&&(n=void 0),this.nc=null,null==n)this.tc=[];else if("object"==typeof n||"function"==typeof n)if((u=n)instanceof qr&&Ft(u.tc)&&(!Lt||u[Symbol.iterator]===Xr))this.tc=n.tc.slice();else if(function(n){return null!=n&&(!!Ft(n)||!!Lt&&"function"==typeof n[Symbol.iterator])}(n)){this.tc=[];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.tc.push([Wr(i[0]),Wr(i[1])])}}else for(var e in this.tc=[],n)h.prototype.hasOwnProperty.call(n,e)&&this.tc.push([Wr(e),Wr(n[e])]);else(n=Wr(n)).length>0&&"?"===n[0]&&(n=n.slice(1)),this.tc=Fr(n);var u}var t=n.prototype;return t.append=function(n,t){n=Wr(n),t=Wr(t),this.tc.push([n,t]),Kr(this)},t.delete=function(n){n=Wr(n);for(var t=this.tc,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.tc,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.tc,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.tc,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.tc,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.tc,Hr),Kr(this)},t.toString=function(){return Lr(this.tc)},t.entries=function(){return new Zr(this.tc,zr)},t.keys=function(){return new Zr(this.tc,Yr)},t.values=function(){return new Zr(this.tc,$r)},t.forEach=function(n){var t=this;this.tc.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.rc=0,this.tc=n,this.ec=t}return n.prototype.next=function(){return this.rc<this.tc.length?{done:!1,value:this.ec(this.tc[this.rc++])}:{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.uc)}function oi(n){return""!==n.cc||""!==n.hc}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.fc;0!==t.length&&("file"===n.uc&&1===t.length&&ai(t[0])||t.pop())}function li(n){return null===n.vc||mr===n.vc||n.dc||"file"===n.uc}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.uc)&&!ei(d))return;if(!ei(r.uc)&&ei(d))return;if((oi(r)||null!==r.lc)&&"file"===d)return;if("file"===r.uc&&(r.vc===mr||null===r.vc))return}if(r.uc=d,null!==i)return void(ui(r)&&r.lc===Qr[r.uc]&&(r.lc=null));u.length=0,"file"===r.uc?e=13:ui(r)&&t&&t.uc===r.uc?e=3:ui(r)?e=7:47===c[l+1]?(e=4,l+=1):(r.dc=!0,r.fc.push(""),e=18)}break;case 2:if(!t||t.dc&&35!==_)throw new a("Invalid scheme");t.dc&&35===_?(r.uc=t.uc,r.fc=t.fc.slice(),r.ic=t.ic,r.gc="",r.dc=!0,e=20):"file"!==t.uc?(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.uc=t.uc,vi===_?(r.cc=t.cc,r.hc=t.hc,r.vc=t.vc,r.lc=t.lc,r.fc=t.fc.slice(),r.ic=t.ic):47===_?e=6:63===_?(r.cc=t.cc,r.hc=t.hc,r.vc=t.vc,r.lc=t.lc,r.fc=t.fc.slice(),r.ic="",e=19):35===_?(r.cc=t.cc,r.hc=t.hc,r.vc=t.vc,r.lc=t.lc,r.fc=t.fc.slice(),r.ic=t.ic,r.gc="",e=20):92===_&&ui(r)?e=6:(r.cc=t.cc,r.hc=t.hc,r.vc=t.vc,r.lc=t.lc,r.fc=t.fc.slice(),r.fc.pop(),e=17,l-=1);break;case 6:!ui(r)||47!==_&&92!==_?47===_?e=9:(r.cc=t.cc,r.hc=t.hc,r.vc=t.vc,r.lc=t.lc,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.hc+=p:r.cc+=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.uc)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.lc))return;var E=Cr(sr(u),ui(r));if(r.vc=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.vc=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.lc=g===Qr[r.uc]?null:g,u.length=0}if(null!==i)return;e=16,l-=1}break;case 13:r.uc="file",47===_||92===_?e=14:t&&"file"===t.uc?vi===_?(r.vc=t.vc,r.fc=t.fc.slice(),r.ic=t.ic):63===_?(r.vc=t.vc,r.fc=t.fc.slice(),r.ic="",e=19):35===_?(r.vc=t.vc,r.fc=t.fc.slice(),r.ic=t.ic,r.gc="",e=20):(fi(c.slice(l))||(r.vc=t.vc,r.fc=t.fc.slice(),hi(r)),e=17,l-=1):(e=17,l-=1);break;case 14:47===_||92===_?e=15:(t&&"file"===t.uc&&!fi(c.slice(l))&&(ai(t.fc[0])?r.fc.push(t.fc[0]):r.vc=t.vc),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.vc=mr,null!==i)return;e=16}else{var R=Cr(sr(u),ui(r));if(0===R.Ja&&"localhost"===R.$a&&(R=mr),r.vc=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.ic="",e=19):null===i&&35===_?(r.gc="",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.fc.push("")):!ri(T)||47===_||ui(r)&&92===_?ri(T)||("file"===r.uc&&0===r.fc.length&&ci(u)&&(mr!==r.vc&&null!==r.vc&&(r.vc=mr),u[1]=58,T=sr(u)),r.fc.push(T)):r.fc.push(""),u.length=0,"file"===r.uc&&(vi===_||63===_||35===_))for(;r.fc.length>1&&""===r.fc[0];)r.fc.shift();63===_?(r.ic="",e=19):35===_&&(r.gc="",e=20)}else u.push.apply(u,Rr(_,pr));break;case 18:63===_?(r.ic="",e=19):35===_?(r.gc="",e=20):vi!==_&&(r.fc[0]+=sr(Rr(_,yr)));break;case 19:null===i&&35===_?(r.gc="",e=20):vi!==_&&(r.ic+=sr(Rr(_,ui(r)?gr:Ir)));break;case 20:vi===_||0===_||(r.gc+=sr(Rr(_,wr)))}l++}return r}function wi(n,t,r,i){try{yi(n,t,r,i)}catch(n){}}var pi=function(){this.uc="",this.cc="",this.hc="",this.vc=null,this.lc=null,this.fc=[],this.ic=null,this.gc=null,this.dc=!1};function Ei(n){switch(n.uc){case"blob":var t;try{t=yi(n.fc[0],null)}catch(n){return Jr}return Ei(t);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return r=n.uc,i=n.vc,e=n.lc,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.nc)e=t.nc;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.ic;this.nc=i,this.ic=function(n){var t=new qr;return null!==n&&jr(t,n),t}(u),this.ic.nc=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.uc+":";if(null!==n.vc?(r+="//",oi(n)&&(r+=n.cc,""!==n.hc&&(r+=":"+n.hc),r+="@"),r+=Dr(n.vc),null!==n.lc&&(r+=":"+n.lc)):null===n.vc&&"file"===n.uc&&(r+="//"),n.dc)r+=n.fc[0];else for(var i=0,e=n.fc;i<e.length;i++)r+="/"+e[i];return null!==n.ic&&(r+="?"+n.ic),t||null===n.gc||(r+="#"+n.gc),r}(this.nc)},set:function(n){var t;try{t=yi(String(n),null)}catch(n){throw new a("Invalid URL: "+n.message)}this.nc=t,Gr(this.ic);var r=this.nc.ic;null!==r&&jr(this.ic,r)}},{key:"origin",get:function(){return Ei(this.nc)}},{key:"protocol",get:function(){return this.nc.uc+":"},set:function(n){wi(n+":",null,this.nc,0)}},{key:"username",get:function(){return this.nc.cc},set:function(n){li(this.nc)||(this.nc.cc=Tr(n,Er))}},{key:"password",get:function(){return this.nc.hc},set:function(n){li(this.nc)||(this.nc.hc=Tr(n,Er))}},{key:"host",get:function(){var n=this.nc,t=n.vc;if(null===t)return"";var r=n.lc,i=Dr(t);return null!==r&&(i+=":"+r),i},set:function(n){this.nc.dc||wi(n,null,this.nc,10)}},{key:"hostname",get:function(){var n=this.nc.vc;return null===n?"":Dr(n)},set:function(n){this.nc.dc||wi(n,null,this.nc,11)}},{key:"port",get:function(){var n=this.nc.lc;return null===n?"":""+n},set:function(n){li(this.nc)||(""===n?this.nc.lc=null:wi(n,null,this.nc,12))}},{key:"pathname",get:function(){var n=this.nc.fc;return this.nc.dc?n[0]:0===n.length?"":"/"+n.join("/")},set:function(n){this.nc.dc||(this.nc.fc.length=0,wi(n,null,this.nc,16))}},{key:"search",get:function(){var n=this.nc.ic;return null===n||""===n?"":"?"+n},set:function(n){n=Wr(n);var t=this.nc;if(""===n)return t.ic=null,void Gr(this.ic);"?"===n[0]&&(n=n.slice(1)),t.ic="",wi(n,null,t,19),jr(this.ic,n)}},{key:"searchParams",get:function(){return this.ic}},{key:"hash",get:function(){var n=this.nc.gc;return null===n||""===n?"":"#"+n},set:function(n){""!==n?("#"===n[0]&&(n=n.slice(1)),this.nc.gc="",wi(n,null,this.nc,20)):this.nc.gc=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.wc=void 0,this.yc=!1,this.Fs=ki,this.Ao=!1,this.Ac=!0}var r=n.prototype;return r._c=function(){return 0},r.mc=function(n,t){return!0},r.kc=function(n){return n>=.3333333333333333},rn(n,[{key:"Mc",get:function(){return void 0===this.wc&&(this.wc=this._c()),this.wc}},{key:"Tc",get:function(){return!In.Qo}},{key:"Nc",get:function(){if(t.screen)return{width:t.screen.width,height:t.screen.height}}},{key:"bc",get:function(){return t.devicePixelRatio||1}},{key:"Dc",get:function(){return bi}},{key:"Ic",get:function(){return!1}},{key:"Ec",get:function(){return!0}},{key:"Sc",get:function(){return In.zo||In.uo}},{key:"Lc",get:function(){return!0}},{key:"jc",get:function(){return!0}},{key:"Cc",get:function(){return!1}},{key:"Oc",get:function(){}},{key:"xc",get:function(){return!0}},{key:"zc",get:function(){return!1}},{key:"Rc",get:function(){return!1}},{key:"Bc",get:function(){return In.Eo}}]),n}(),Ni=function(){var n=Si();if(!n)return!1;var t=n.muted;return n.muted=!t,n.muted!==t}();!function(){if(In.Ks)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).Pc=t,r.Pc&&(r.yc=r.Pc.yc,r.Fs=r.Pc.Fs,r.Ac=Ni&&r.Pc.Ac),r}un(t,n);var r=t.prototype;return r._c=function(){return this.Pc?this.Pc.Mc:n.prototype._c.call(this)},r.mc=function(t,r){return this.Pc?this.Pc.mc(t,r):n.prototype.mc.call(this,t,r)},r.kc=function(t){return this.Pc?this.Pc.kc(t):n.prototype.kc.call(this,t)},rn(t,[{key:"Oc",get:function(){var n;return null==(n=this.Pc)?void 0:n.Oc}},{key:"xc",get:function(){var n,t;return null==(t=null==(n=this.Pc)?void 0:n.xc)||t}}]),t}(mi),Ci=function(n){function t(t){var r;return(r=n.call(this,t)||this).yc=!0,r.Ao=!0,r}return un(t,n),rn(t,[{key:"Cc",get:function(){return In.uo}}]),t}(Ai),Di=function(n){function t(){return n.apply(this,arguments)}return un(t,n),t.prototype._c=function(){return Ii.MediaSource?n.prototype._c.call(this):1},rn(t,[{key:"Cc",get:function(){return!0}}]),t}(Ci),Pi=function(n){function r(){return n.apply(this,arguments)}return un(r,n),r.prototype.mc=function(t,r){return n.prototype.mc.call(this,t,r)},rn(r,[{key:"Ic",get:function(){return In.Do<3}},{key:"Ec",get:function(){return In.Do>=3}},{key:"Nc",get:function(){var n=this;return t.tizen&&!this.Uc&&t.tizen.systeminfo.getPropertyValue("DISPLAY",(function(t){var r=t.resolutionWidth,i=t.resolutionHeight;1===r&&1===i||(n.Uc={width:r,height:i})})),this.Uc}},{key:"zc",get:function(){return In.Do<3}},{key:"Rc",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.mc=function(n,t){if(n&&n.Qc&&t&&t.Qc){var r=Ui(n.Qc,"mp4a.40.2")&&Ui(t.Qc,"mp4a.40.5"),i=Ui(n.Qc,"mp4a.40.5")&&Ui(t.Qc,"mp4a.40.2"),e=Ui(n.Qc,"mp4a.40.2")&&Ui(t.Qc,"mp4a.40.34"),u=Ui(n.Qc,"mp4a.40.34")&&Ui(t.Qc,"mp4a.40.2"),o=Ui(n.Qc,"mp4a.40.5")&&Ui(t.Qc,"mp4a.40.34"),f=Ui(n.Qc,"mp4a.40.34")&&Ui(t.Qc,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},rn(t,[{key:"Oc",get:function(){if(In.Gs)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.kc=function(n){return n>=2},t}(Fi),Wi=function(n){function t(){var t;return(t=n.call(this)||this).yc=In.Ro>=11,t.Ac=In.zo&&!(In.uo&&In.Ro<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:"Nc",get:function(){var n=this;return t.webOS&&!this.Uc&&t.webOS.deviceInfo((function(t){n.Uc={width:t.screenWidth,height:t.screenHeight}})),this.Uc}},{key:"Lc",get:function(){return!1}},{key:"Rc",get:function(){return!0}}]),r}(Ai),xi=function(n){function t(){return n.apply(this,arguments)}return un(t,n),rn(t,[{key:"xc",get:function(){return!In.Hs||(In.Mo?92!==In.To:In.po>=100)}}]),t}(Fi),Bi=function(n){function t(){return n.apply(this,arguments)}return un(t,n),rn(t,[{key:"Cc",get:function(){return!0}}]),t}(Ai),Hi=function(){function t(){var t;this.Yc=new lt,this.Fc=new Gi,this.Gc=(t=In.Oo?new Li:In.So||In.Lo?new Mi:In.zo?new Wi:In.mo?new xi:new Fi,In.uo?new Di(t):In.Ao?new Ci(t):In.No?new Pi(t):In.Io?new Vi(t):In.Gs?new Bi(t):new Ai(t)),this.Hc=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.Jo=function(){return n.performance.now()}:this.Jo=ot}var r=t.prototype;return r.Vc=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.Wc=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.Xc=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.qc=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.$o=function(n,t){return u(n,t)},r.Zc=function(n,t){return f(n,t)},r.Ko=function(n){o(n)},r.Jc=function(n){s(n)},r.ma=function(n){return this.Yc.ma(n)},r.Kc=function(){return this.$c.Kc()},r.nh=function(){return this.$c.nh()},r.ih=function(){return this.$c.ih()},r.rh=function(){return this.$c.rh()},r.eh=function(){return this.$c.eh()},r.uh=function(n,t){return this.$c.uh(n,t)},r.sh=function(n){return this.$c.sh(n)},r.oh=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.ah=function(t,r){if(void 0===r&&(r=Ti(Ii)),this.Hc){var i="string"==typeof r?r:r.toString();return new n.URL(t,i).href}return this.oh(t,r).href},rn(t,[{key:"hh",get:function(){return this.Fc}},{key:"fh",get:function(){return this.Gc}},{key:"dh",get:function(){return{lh:e&&e.userAgent.match(/Android /i)?"Android":"other",gh:Boolean(e&&e.userAgent.match(/Android 8.0.0/i))}}},{key:"wh",get:function(){return n&&n.location&&"https:"===n.location.protocol}},{key:"yh",get:function(){return"languages"in e?e.languages.slice():[e.language]}}]),t}(),Gi=function(){function n(){}return rn(n,[{key:"Ah",get:function(){return e.oscpu}},{key:"fh",get:function(){return e.platform}},{key:"_h",get:function(){return e.vendor}},{key:"ph",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.Mh=n,this.Th=t}return n.prototype.next=function(){var n=this.Mh.next();return n.done?n:{value:this.Th(n.value),done:!1}},n}());(re=te||(te={})).Dh="9a04f079-9840-4286-ab92-e65be0885f95",re.Ih="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",re.Eh="1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",re.Sh="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={})).Dh="playready",ee.Ih="widevine",ee.Sh="fairplay",ee.Eh="clearkey",ee.Lh="aes128";var ae={jh:ie.Dh,Ch:"com.microsoft.playready",Oh:"cenc",Rh:ue,Bh:"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95",Ph:"PlayReady"},he={jh:ie.Ih,Ch:"com.widevine.alpha",Oh:"cenc",Rh:oe,Bh:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",Ph:"Widevine"},le={jh:ie.Sh,Ch:"com.apple.fps.1_0",Oh:"skd",Rh:se,Bh:ce,Ph:"FairPlay"},ve=(ie.Sh,{jh:ie.Eh,Ch:"org.w3.clearkey",Oh:"cenc",Rh:fe,Bh:"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",Ph:"ClearKey"});var _e=In.mo&&In.po>=42||In.Oo&&In.xo>=38||In.So||In.jo||In.Bo&&In.Po>=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.Uh=$i(),this.Qh=void 0,this.Yh=n}var t=n.prototype;return t.eh=function(){return this.sh(he)},t.nh=function(){return this.sh(ve)},t.rh=function(){return this.sh(ae)},t.ih=function(){return this.sh(le)},t.sh=function(n){var t=n.Bh,r=this.Uh.get(t);if(r)return r;var i=this.uh(n,'video/mp4; codecs="avc1.42000a"');return this.Uh.set(t,i),i},t.uh=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.Yh.Fh(n.Ch,[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.Yh.Fh(n.Ch,[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.Kc=function(){return this.Qh||(this.Qh=this.Gh()),this.Qh},t.Gh=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.nh()]:[2,!1];case 1:return t.sent()?[2,!1]:[2,!0]}}))}))()},n}(),Ee=function(){function n(){}var t=n.prototype;return t.mw=function(){},t.Qf=function(n){},t.Bf=function(n){},t.pw=function(n,t){},n}(),Ie=function(){function n(){}return n.prototype.Fh=function(n,t){return K.reject(new a("Unsupported key system configuration"))},n}();(we=ye||(ye={})).wy="arraybuffer",we.yy="json",we.Ay="stream",we.ya="text";var ge,Re,Te=function(){function n(t){var r=this;this.Nh={},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.Nh.hasOwnProperty(e)){var u=this.Nh[e],o=u[1];u[1]=o?o+", "+i:i}else this.Nh[e]=[r,i]},t.delete=function(n){var t=Se(n).toLowerCase();delete this.Nh[t]},t.get=function(n){var t=Se(n).toLowerCase();return this.Nh.hasOwnProperty(t)?this.Nh[t][1]:null},t.has=function(n){var t=Se(n).toLowerCase();return this.Nh.hasOwnProperty(t)},t.set=function(n,t){var r=n,i=(r=Se(r)).toLowerCase();this.Nh[i]=[r,ke(t)]},t.forEach=function(n,t){for(var r in this.Nh)this.Nh.hasOwnProperty(r)&&n.call(t,this.Nh[r][1],r,this)},t.asList=function(){var n=[];for(var t in this.Nh)if(this.Nh.hasOwnProperty(t)){var r=zi(this.Nh[t],2),i=r[0],e=r[1];n.push([i,e])}return n},t._y=function(){var n={};return this.forEach((function(t,r){n[r]=t})),n},t.py=function(n){var t=this;n.forEach((function(n,r){t.append(r,n)}))},t.My=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.Hh=0]="Hh",Re[Re.Vh=1]="Vh",Re[Re.Wh=-1]="Wh";var me,Ne,Ae,Ce,De,Pe,Fe,Le,Ue=function(){function n(){this.Xh=!1,this.qh=!1,this.Zh=[],this.Jh=[]}var t=n.prototype;return t.Kh=function(){if(!this.Xh&&!this.qh){this.Xh=!0;for(var n=0,t=this.Zh.slice();n<t.length;n++){(0,t[n])()}this.$h()}},t.$h=function(){if(!this.qh){this.qh=!0;for(var n=0,t=this.Jh.slice();n<t.length;n++){(0,t[n])()}be(this.Zh),be(this.Jh)}},t.tf=function(n){this.qh||this.Zh.push(n)},t.nf=function(n){this.qh||Oe(this.Zh,n)},t.if=function(n){this.qh||this.Jh.push(n)},t.rf=function(n){this.qh||Oe(this.Jh,n)},n}(),Me=function(){function n(){this.ef=new Ue}var t=n.prototype;return t.uf=function(){this.ef.Kh()},t.$h=function(){this.ef.$h()},t.sf=function(n){var t=this.ef;if(!t.Xh)if(n.Xh)t.Kh();else if(!t.qh&&!n.qh){var r=function(){i(),t.Kh()},i=function(){n.nf(r),n.rf(i),t.nf(r),t.rf(i)};n.tf(r),n.if(i),t.tf(r),t.if(i)}},t.cf=function(){var t=new n,r=new n,i=t.hf,e=r.hf,u=this.ef,o=function(){i.Xh&&e.qh||e.Xh&&i.qh?u.Kh():i.qh&&e.qh&&u.$h()};i.tf(o),e.tf(o),i.if(o),e.if(o),t.sf(u),r.sf(u);return u.if((function(){i.nf(o),e.nf(o),i.rf(o),e.rf(o)})),[t,r]},rn(n,[{key:"hf",get:function(){return this.ef}}]),n}();(Ne=me||(me={})).DELETE="DELETE",Ne.GET="GET",Ne.HEAD="HEAD",Ne.OPTIONS="OPTIONS",Ne.POST="POST",Ne.PUT="PUT",(Ce=Ae||(Ae={})).Jy="",Ce.Ky="manifest",Ce.$y="segment",Ce.tA="preload-hint",Ce.nA="content-protection",(Pe=De||(De={})).Jy="",Pe.iA="initialization-segment",Pe.rA="fairplay-license",Pe.eA="fairplay-certificate",Pe.uA="widevine-license",Pe.sA="widevine-certificate",Pe.oA="playready-license",Pe.aA="clearkey-license",Pe.cA="aes128-key",(Le=Fe||(Fe={})).Jy="",Le.hA="audio",Le.fA="video",Le.ya="text",Le.vA="image";var We,Ve,xe=function(n,t){var r,i,e,u,o,f,s,c,a,h,l,v,_=n.qy;t?(r=t.Ly,i=t.Fy,e=t.dA,u=t.Gy,o=t.lA,f=t.gA,s=t.hf,c=t.jh,a=t.wA,h=t.yA,l=t.AA,v=t._A):(r=null,i={},e="GET",u=ye.ya,o=0,f=0,c="",a="",h="",l=!1),this.qy=_,this.Ly=n.Ly||r,this.Fy=new Te(n.Fy||i),this.dA=n.dA||e,this.Gy=n.Gy||u,this.lA=void 0!==n.lA?Number(n.lA)||0:o,this.gA=void 0!==n.gA?Number(n.gA)||0:f,this.hf=n.hf||s||(new Me).hf,this.jh=n.jh||c,this.wA=n.wA||a,this.yA=n.yA||h,this.AA=void 0!==n.AA?Boolean(n.AA):l,this._A=n._A||v};(Ve=We||(We={})).IA="HttpOpenError",Ve.EA="HttpResponseError",Ve.SA="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.qy+". Invalid URL.",r)}return un(t,n),rn(t,[{key:"name",get:function(){return We.IA}}]),t}(function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).LA=t,e}return un(t,n),rn(t,[{key:"Wy",get:function(){return this.LA}}]),t}(at)),Ye=function(){function n(){}var t=n.prototype;return t.Wy=function(n){return K.reject(new ze(new xe(n)))},t.mA=function(n){},t.Kg=function(){},n}();Be=new(function(n){function t(){var t;return(t=n.apply(this,arguments)||this).y_=new pe(new Ie),t.tS=new Ye,t.t=new Ee,t}return un(t,n),rn(t,[{key:"$c",get:function(){return this.y_}},{key:"k_",get:function(){return!1}},{key:"M_",get:function(){return!1}},{key:"N_",get:function(){return!1}},{key:"T_",get:function(){return!1}},{key:"b_",get:function(){return this.t}},{key:"D_",get:function(){return{I_:Tn}}},{key:"E_",get:function(){return"default"}},{key:"S_",get:function(){return"unknown"}},{key:"L_",get:function(){return this.tS}}]),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.ie=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.ie)];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({dSt:"5.7.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);