@theoplayer/extended 5.2.0 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THEOplayer.chromeless.d.ts +2 -2
- package/THEOplayer.chromeless.js +5 -5
- package/THEOplayer.common.d.ts +33 -2
- package/THEOplayer.d.ts +2 -2
- package/THEOplayer.js +3 -3
- package/THEOplayer.transmux.asmjs.js +3 -3
- package/THEOplayer.transmux.js +3 -3
- package/package.json +1 -1
- package/theoplayer.d.js +3 -3
- package/theoplayer.e.js +3 -3
- package/theoplayer.p.js +3 -3
- package/ui.css +1 -1
package/THEOplayer.transmux.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
THEOplayer is based on patented technology developed by
|
|
25
25
|
THEO Technologies (https://www.theoplayer.com).
|
|
26
26
|
|
|
27
|
-
Version:
|
|
28
|
-
Created: 2023-
|
|
27
|
+
Version: 5.4.0 (5.4.0)
|
|
28
|
+
Created: 2023-06-12T11:56:57.371Z
|
|
29
29
|
*/
|
|
30
|
-
!function(t){!function(){"use strict";var n,i=t.window,r=t.document,e=t.location,u=t.navigator,o=t.setTimeout,s=t.clearTimeout,f=t.setInterval,c=t.clearInterval,a=t.Error,h=t.TypeError,l=(t.SyntaxError,t.Object),v=t.Math,d=t.parseInt,_=t.parseFloat,y=t.isNaN,w=t.Uint8Array,p=(t.Worker,t.WorkerGlobalScope,t.XMLHttpRequest);function E(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),l.defineProperty(t,r.key,r)}}function I(t,n,i){return n&&E(t.prototype,n),i&&E(t,i),l.defineProperty(t,"prototype",{writable:!1}),t}function g(t,n){return(g=l.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function R(t,n){t.prototype=l.create(n.prototype),t.prototype.constructor=t,g(t,n)}!function(t){t.l="web",t.g="android",t.I="android-tv",t.R="ios",t.N="tvos",t.U="chromecast"}(n||(n={}));var k=u?u.userAgent:"",T=k.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),O=k.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),S=k.match(/Android ([0-9\.]+)/i),m=k.match(/Windows NT ([0-9\.]+)/i),b=k.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),N=k.match(/Firefox\/([0-9\.]+)/i),A=k.match(/OPR\/(\d+\.\d+)/i),C=k.match(/Tizen ([0-9\.]+)/i),D=k.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),P=function(){function i(){this.F=Boolean("ontouchstart"in t||t.DocumentTouch&&r instanceof t.DocumentTouch||u&&u.msMaxTouchPoints),this.V=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(k)||/(macintosh|mac(?=_powerpc)\s)/i.test(k),this.q=/Windows NT/i.test(k),this.G=m?_(m[1]):0,this.Y=/Android/i.test(k),this.j=S?_(S[1]):0,this.K=/windows phone (8|8\.1)/i.test(k),this.Z=/iPhone/i.test(k),this.J=/iPad/i.test(k),this.nt=this.V&&this.F&&!this.J,this.ut=/iPod/i.test(k),this.ot=/Mobile Safari/i.test(k),this.ct=/EOSSTB/i.test(k),this.ft=(this.Z||this.J||this.nt||this.ut)&&!this.K,this.vt=D?_(D[2]):0,this.dt=this.K||this.ft||this.Y||this.ot,this._t=/CriOS/i.test(k),this.wt=Boolean(t.chrome&&/google/i.test(u.vendor))||this._t,this.yt=this.wt&&/Edg\//i.test(u.userAgent),this.kt=O?d(O[1],10):0,this.bt=Boolean(t.chrome||/Chrome/i.test(k)||/CriOS/i.test(k)),this.At=T?d(T[1],10):0,this.Tt=/SMART-TV.*Tizen/i.test(k),this.St=C?_(C[1]):0,this.Et=/webos|web0s/i.test(k),this.It=/Edge\/\d+/i.test(k),this.Rt=/Trident/i.test(k),this.Nt=this.Rt&&!t.ActiveXObject&&"ActiveXObject"in t,this.Dt=/Vivaldi/i.test(k),this.Ct=/Firefox/i.test(k)&&!/Seamonkey/i.test(k),this.Pt=N?_(N[1]):0,this.Ot=/Safari/i.test(k)&&!/Chrome/i.test(k)&&!this.K&&!this.Tt,this.Bt=b?_(b[2]):0,this.Lt=Boolean(A),this.Mt=A?_(A[1]):0,this.xt=/CrKey/.test(k),this.Ut=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv)\b/i.test(k),this.Ft="web"===n.I,this.Ht="web"===n.g,this.Vt=this.Ht||this.Ft,this.Xt="web"===n.R,this.zt="web"===n.N,this.qt="web"===n.U}return I(i,[{key:"Wt",get:function(){return this.F}},{key:"Gt",get:function(){return this.V}},{key:"Yt",get:function(){return this.q}},{key:"jt",get:function(){return this.G}},{key:"Qt",get:function(){return this.Y}},{key:"Kt",get:function(){return this.j}},{key:"Zt",get:function(){return this.K}},{key:"Jt",get:function(){return this.Z}},{key:"$t",get:function(){return this.J}},{key:"in",get:function(){return this.nt}},{key:"un",get:function(){return this.ut}},{key:"hn",get:function(){return this.ft}},{key:"cn",get:function(){return this.vt}},{key:"fn",get:function(){return this.ct}},{key:"vn",get:function(){return this.ot}},{key:"dn",get:function(){return this.dt}},{key:"_n",get:function(){return this._t}},{key:"wn",get:function(){return this.wt}},{key:"yn",get:function(){return this.At}},{key:"pn",get:function(){return this.yt}},{key:"An",get:function(){return this.kt}},{key:"Tn",get:function(){return this.Tt}},{key:"Sn",get:function(){return this.St}},{key:"En",get:function(){return this.Et}},{key:"In",get:function(){return this.It}},{key:"Rn",get:function(){return this.Rt}},{key:"Nn",get:function(){return this.Nt}},{key:"Dn",get:function(){return this.Dt}},{key:"Cn",get:function(){return this.Ct}},{key:"Pn",get:function(){return this.Pt}},{key:"On",get:function(){return this.Ot}},{key:"Bn",get:function(){return this.Bt}},{key:"Ln",get:function(){return this.Lt}},{key:"Mn",get:function(){return this.Mt}},{key:"xn",get:function(){return this.xt}},{key:"Un",get:function(){return this.Ut}},{key:"Fn",get:function(){return!(!this.En&&!this.Tn)&&this.yn<=56}},{key:"Hn",get:function(){return this.Ft}},{key:"Vn",get:function(){return this.Ht}},{key:"Xn",get:function(){return this.Vt}},{key:"zn",get:function(){return this.Xt}},{key:"qn",get:function(){return this.zt}},{key:"Wn",get:function(){return this.qt}},{key:"Gn",get:function(){return this.bt}}]),i}();P.Yn=new P;var L=P.Yn;function F(t){return null!=t}var U=function(){},M=!(L.Rn&&!L.Nn),W=t.console;function x(t){if(function(t){return"object"==typeof t&&null!==t}(t))try{return JSON.stringify(t)}catch(t){}return t}function V(t){return t.map(x).join(" ")}function B(t){var n=W&&W[t];return n?n.bind&&M?n.bind(W):function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];W[t](V(i))}:void 0}var G,H=B("log")||U,j=B("warn")||H.bind(void 0,"WARNING:"),K=B("error")||H.bind(void 0,"ERROR:"),q=(G=W&&W.assert)?G.bind&&M?G.bind(W):function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];W.assert(t,V(i))}:function(t){if(!t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];K.apply(void 0,["Assertion failed:"].concat(i))}},X=null;try{X=new WebAssembly.Instance(new WebAssembly.Module(new w([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(t){}function Y(t,n,i){this.low=0|t,this.high=0|n,this.unsigned=!!i}function z(t){return!0===(t&&t.Zn)}function $(t){var n=v.clz32(t&-t);return t?31-n:n}Y.prototype.Zn,l.defineProperty(Y.prototype,"Zn",{value:!0}),Y.isLong=z;var Z={},J={};function Q(t,n){var i,r,e;return n?(e=0<=(t>>>=0)&&t<256)&&(r=J[t])?r:(i=nt(t,0,!0),e&&(J[t]=i),i):(e=-128<=(t|=0)&&t<128)&&(r=Z[t])?r:(i=nt(t,t<0?-1:0,!1),e&&(Z[t]=i),i)}function tt(t,n){if(y(t))return n?at:ct;if(n){if(t<0)return at;if(t>=ot)return _t}else{if(t<=-st)return yt;if(t+1>=st)return dt}return t<0?tt(-t,n).neg():nt(t%ut|0,t/ut|0,n)}function nt(t,n,i){return new Y(t,n,i)}Y.fromInt=Q,Y.fromNumber=tt,Y.fromBits=nt;var it=v.pow;function rt(t,n,i){if(0===t.length)throw a("empty string");if("number"==typeof n?(i=n,n=!1):n=!!n,"NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return n?at:ct;if((i=i||10)<2||36<i)throw RangeError("radix");var r;if((r=t.indexOf("-"))>0)throw a("interior hyphen");if(0===r)return rt(t.substring(1),n,i).neg();for(var e=tt(it(i,8)),u=ct,o=0;o<t.length;o+=8){var s=v.min(8,t.length-o),f=d(t.substring(o,o+s),i);if(s<8){var c=tt(it(i,s));u=u.mul(c).add(tt(f))}else u=(u=u.mul(e)).add(tt(f))}return u.unsigned=n,u}function et(t,n){return"number"==typeof t?tt(t,n):"string"==typeof t?rt(t,n):nt(t.low,t.high,"boolean"==typeof n?n:t.unsigned)}Y.fromString=rt,Y.fromValue=et;var ut=4294967296,ot=ut*ut,st=ot/2,ft=Q(1<<24),ct=Q(0);Y.ZERO=ct;var at=Q(0,!0);Y.UZERO=at;var ht=Q(1);Y.ONE=ht;var lt=Q(1,!0);Y.UONE=lt;var vt=Q(-1);Y.NEG_ONE=vt;var dt=nt(-1,2147483647,!1);Y.MAX_VALUE=dt;var _t=nt(-1,-1,!0);Y.MAX_UNSIGNED_VALUE=_t;var yt=nt(0,-2147483648,!1);Y.MIN_VALUE=yt;var wt=Y.prototype;wt.toInt=function(){return this.unsigned?this.low>>>0:this.low},wt.toNumber=function(){return this.unsigned?(this.high>>>0)*ut+(this.low>>>0):this.high*ut+(this.low>>>0)},wt.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(yt)){var n=tt(t),i=this.div(n),r=i.mul(n).sub(this);return i.toString(t)+r.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var e=tt(it(t,6),this.unsigned),u=this,o="";;){var s=u.div(e),f=(u.sub(s.mul(e)).toInt()>>>0).toString(t);if((u=s).isZero())return f+o;for(;f.length<6;)f="0"+f;o=""+f+o}},wt.getHighBits=function(){return this.high},wt.getHighBitsUnsigned=function(){return this.high>>>0},wt.getLowBits=function(){return this.low},wt.getLowBitsUnsigned=function(){return this.low>>>0},wt.getNumBitsAbs=function(){if(this.isNegative())return this.eq(yt)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,n=31;n>0&&0==(t&1<<n);n--);return 0!=this.high?n+33:n+1},wt.isZero=function(){return 0===this.high&&0===this.low},wt.eqz=wt.isZero,wt.isNegative=function(){return!this.unsigned&&this.high<0},wt.isPositive=function(){return this.unsigned||this.high>=0},wt.isOdd=function(){return 1==(1&this.low)},wt.isEven=function(){return 0==(1&this.low)},wt.equals=function(t){return z(t)||(t=et(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&(this.high===t.high&&this.low===t.low)},wt.eq=wt.equals,wt.notEquals=function(t){return!this.eq(t)},wt.neq=wt.notEquals,wt.ne=wt.notEquals,wt.lessThan=function(t){return this.comp(t)<0},wt.lt=wt.lessThan,wt.lessThanOrEqual=function(t){return this.comp(t)<=0},wt.lte=wt.lessThanOrEqual,wt.le=wt.lessThanOrEqual,wt.greaterThan=function(t){return this.comp(t)>0},wt.gt=wt.greaterThan,wt.greaterThanOrEqual=function(t){return this.comp(t)>=0},wt.gte=wt.greaterThanOrEqual,wt.ge=wt.greaterThanOrEqual,wt.compare=function(t){if(z(t)||(t=et(t)),this.eq(t))return 0;var n=this.isNegative(),i=t.isNegative();return n&&!i?-1:!n&&i?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},wt.comp=wt.compare,wt.negate=function(){return!this.unsigned&&this.eq(yt)?yt:this.not().add(ht)},wt.neg=wt.negate,wt.add=function(t){z(t)||(t=et(t));var n=this.high>>>16,i=65535&this.high,r=this.low>>>16,e=65535&this.low,u=t.high>>>16,o=65535&t.high,s=t.low>>>16,f=0,c=0,a=0,h=0;return a+=(h+=e+(65535&t.low))>>>16,c+=(a+=r+s)>>>16,f+=(c+=i+o)>>>16,f+=n+u,nt((a&=65535)<<16|(h&=65535),(f&=65535)<<16|(c&=65535),this.unsigned)},wt.subtract=function(t){return z(t)||(t=et(t)),this.add(t.neg())},wt.sub=wt.subtract,wt.multiply=function(t){if(this.isZero())return this;if(z(t)||(t=et(t)),X)return nt(X.mul(this.low,this.high,t.low,t.high),X.get_high(),this.unsigned);if(t.isZero())return this.unsigned?at:ct;if(this.eq(yt))return t.isOdd()?yt:ct;if(t.eq(yt))return this.isOdd()?yt:ct;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(ft)&&t.lt(ft))return tt(this.toNumber()*t.toNumber(),this.unsigned);var n=this.high>>>16,i=65535&this.high,r=this.low>>>16,e=65535&this.low,u=t.high>>>16,o=65535&t.high,s=t.low>>>16,f=65535&t.low,c=0,a=0,h=0,l=0;return h+=(l+=e*f)>>>16,a+=(h+=r*f)>>>16,h&=65535,a+=(h+=e*s)>>>16,c+=(a+=i*f)>>>16,a&=65535,c+=(a+=r*s)>>>16,a&=65535,c+=(a+=e*o)>>>16,c+=n*f+i*s+r*o+e*u,nt((h&=65535)<<16|(l&=65535),(c&=65535)<<16|(a&=65535),this.unsigned)},wt.mul=wt.multiply,wt.divide=function(t){if(z(t)||(t=et(t)),t.isZero())throw a("division by zero");var n,i,r;if(X)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?nt((this.unsigned?X.div_u:X.div_s)(this.low,this.high,t.low,t.high),X.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?at:ct;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return at;if(t.gt(this.shru(1)))return lt;r=at}else{if(this.eq(yt))return t.eq(ht)||t.eq(vt)?yt:t.eq(yt)?ht:(n=this.shr(1).div(t).shl(1)).eq(ct)?t.isNegative()?ht:vt:(i=this.sub(t.mul(n)),r=n.add(i.div(t)));if(t.eq(yt))return this.unsigned?at:ct;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();r=ct}for(i=this;i.gte(t);){n=v.max(1,v.floor(i.toNumber()/t.toNumber()));for(var e=v.ceil(v.log(n)/v.LN2),u=e<=48?1:it(2,e-48),o=tt(n),s=o.mul(t);s.isNegative()||s.gt(i);)s=(o=tt(n-=u,this.unsigned)).mul(t);o.isZero()&&(o=ht),r=r.add(o),i=i.sub(s)}return r},wt.div=wt.divide,wt.modulo=function(t){return z(t)||(t=et(t)),X?nt((this.unsigned?X.rem_u:X.rem_s)(this.low,this.high,t.low,t.high),X.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},wt.mod=wt.modulo,wt.rem=wt.modulo,wt.not=function(){return nt(~this.low,~this.high,this.unsigned)},wt.countLeadingZeros=function(){return this.high?v.clz32(this.high):v.clz32(this.low)+32},wt.clz=wt.countLeadingZeros,wt.countTrailingZeros=function(){return this.low?$(this.low):$(this.high)+32},wt.ctz=wt.countTrailingZeros,wt.and=function(t){return z(t)||(t=et(t)),nt(this.low&t.low,this.high&t.high,this.unsigned)},wt.or=function(t){return z(t)||(t=et(t)),nt(this.low|t.low,this.high|t.high,this.unsigned)},wt.xor=function(t){return z(t)||(t=et(t)),nt(this.low^t.low,this.high^t.high,this.unsigned)},wt.shiftLeft=function(t){return z(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?nt(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):nt(0,this.low<<t-32,this.unsigned)},wt.shl=wt.shiftLeft,wt.shiftRight=function(t){return z(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?nt(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):nt(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},wt.shr=wt.shiftRight,wt.shiftRightUnsigned=function(t){return z(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?nt(this.low>>>t|this.high<<32-t,this.high>>>t,this.unsigned):nt(32===t?this.high:this.high>>>t-32,0,this.unsigned)},wt.shru=wt.shiftRightUnsigned,wt.shr_u=wt.shiftRightUnsigned,wt.rotateLeft=function(t){var n;return z(t)&&(t=t.toInt()),0==(t&=63)?this:32===t?nt(this.high,this.low,this.unsigned):t<32?(n=32-t,nt(this.low<<t|this.high>>>n,this.high<<t|this.low>>>n,this.unsigned)):(n=32-(t-=32),nt(this.high<<t|this.low>>>n,this.low<<t|this.high>>>n,this.unsigned))},wt.rotl=wt.rotateLeft,wt.rotateRight=function(t){var n;return z(t)&&(t=t.toInt()),0==(t&=63)?this:32===t?nt(this.high,this.low,this.unsigned):t<32?(n=32-t,nt(this.high<<n|this.low>>>t,this.low<<n|this.high>>>t,this.unsigned)):(n=32-(t-=32),nt(this.low<<n|this.high>>>t,this.high<<n|this.low>>>t,this.unsigned))},wt.rotr=wt.rotateRight,wt.toSigned=function(){return this.unsigned?nt(this.low,this.high,!1):this},wt.toUnsigned=function(){return this.unsigned?this:nt(this.low,this.high,!0)},wt.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},wt.toBytesLE=function(){var t=this.high,n=this.low;return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]},wt.toBytesBE=function(){var t=this.high,n=this.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,n>>>24,n>>>16&255,n>>>8&255,255&n]},Y.fromBytes=function(t,n,i){return i?Y.fromBytesLE(t,n):Y.fromBytesBE(t,n)},Y.fromBytesLE=function(t,n){return new Y(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,n)},Y.fromBytesBE=function(t,n){return new Y(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],n)};function pt(){return Date.now()||(new Date).getTime()}var Et;Y.fromNumber(9007199254740991),function(t){t[t.$n=1]="$n",t[t.ei=2]="ei",t[t.ni=3]="ni",t[t.ri=4]="ri",t[t.oi=9]="oi"}(Et||(Et={}));var It=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];a.apply(this,n)};(It.prototype=l.create(a.prototype)).constructor=It;var gt=function(t){function n(n,i){var r;return(r=t.call(this)||this).cause=void 0,r.message=n||"Unknown error",r.cause=i,a.captureStackTrace&&a.captureStackTrace(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r),r.constructor),r}return R(n,t),I(n,[{key:"name",get:function(){return"BaseError"}}]),n}(It),Rt=function(t){function n(n){return t.call(this,"Invalid XML",n)||this}return R(n,t),n}(gt),kt=function(){function t(){}return t.prototype.ai=function(t){var n,i=new DOMParser;try{n=i.parseFromString(t,"text/xml")}catch(t){throw new Rt(t)}if(!n||n.getElementsByTagName("parsererror").length>0)throw new Rt;return new At(n)},t}(),Tt=function(){function t(t){this.ci=void 0,this.ci=t}var n=t.prototype;return n.di=function(t){return this.ci.isEqualNode(t.ci)},n._i=function(n){return new t(this.ci.cloneNode(n))},I(t,[{key:"Jn",get:function(){return Et.ei}},{key:"gi",get:function(){var t;return null!=(t=this.ci.localName)?t:Pt(this.ci.nodeName)}},{key:"wi",get:function(){return this.ci.nodeName}},{key:"Ai",get:function(){var t;return null!=(t=this.ci.namespaceURI)?t:void 0}},{key:"Ti",get:function(){var t;return null!=(t=this.ci.prefix)?t:void 0}},{key:"Si",get:function(){return this.ci.nodeValue}}]),t}(),Ot=function(){function t(t){this.Ei=void 0,this.Ii=void 0,this.Ei=t}var n=t.prototype;return n.Ri=function(t){return this.Ni.filter(function(n){return Ct(n)&&n.Di===t})},n.Ci=function(t,n){return this.Ni.filter(function(i){return Ct(i)&&i.gi===n&&i.Ai===t})},n.Pi=function(t){this.Ei.appendChild(t.Oi),this.Ii&&this.Ii.push(t)},n.di=function(t){return this.Ei.isEqualNode(t.Oi)},I(t,[{key:"Ni",get:function(){return void 0===this.Ii&&(this.Ii=function(t){for(var n=[],i=0;i<t.length;i++){var r=Dt(t.item(i));r&&n.push(r)}return n}(this.Ei.childNodes)),this.Ii}},{key:"Bi",get:function(){return this.Ni.filter(Ct)}},{key:"Oi",get:function(){return this.Ei}}]),t}(),St=function(t){function n(n){return t.call(this,n)||this}R(n,t);var i=n.prototype;return i.Li=function(t){if(this.Ei.hasAttribute(t))return this.Ei.getAttribute(t)},i.Mi=function(t,n){if(this.Ei.hasAttributeNS(t,n))return this.Ei.getAttributeNS(t,n)},i.xi=function(t){this.Ei.removeAttribute(t)},i.Ui=function(t,n){this.Ei.removeAttributeNS(t,n)},i.Fi=function(t,n){this.Ei.setAttribute(t,n)},i.Hi=function(t,n,i){this.Ei.setAttributeNS(t,n,i)},i._i=function(t){return new n(this.Ei.cloneNode(t))},I(n,[{key:"Jn",get:function(){return Et.$n}},{key:"gi",get:function(){var t;return null!=(t=this.Ei.localName)?t:Pt(this.Ei.nodeName)}},{key:"Ai",get:function(){var t;return null!=(t=this.Ei.namespaceURI)?t:void 0}},{key:"Ti",get:function(){var t;return null!=(t=this.Ei.prefix)?t:void 0}},{key:"Di",get:function(){return this.Ei.nodeName}},{key:"Vi",get:function(){return function(t){for(var n=[],i=0;i<t.length;i++)n.push(new Tt(t.item(i)));return n}(this.Ei.attributes)}},{key:"Xi",get:function(){return this.Ei.textContent}}]),n}(Ot),mt=function(){function t(t){this.Ei=void 0,this.Ei=t}return t.prototype.di=function(t){return this.zi===t.zi},I(t,[{key:"zi",get:function(){return this.Ei.nodeValue}},{key:"Oi",get:function(){return this.Ei}}]),t}(),bt=function(t){function n(n){return t.call(this,n)||this}return R(n,t),n.prototype._i=function(t){return new n(this.Ei.cloneNode(t))},I(n,[{key:"Jn",get:function(){return Et.ni}}]),n}(mt),Nt=function(t){function n(n){return t.call(this,n)||this}return R(n,t),n.prototype._i=function(t){return new n(this.Ei.cloneNode(t))},I(n,[{key:"Jn",get:function(){return Et.ri}}]),n}(mt),At=function(t){function n(n){return t.call(this,n)||this}return R(n,t),n.prototype._i=function(t){return new n(this.Ei.cloneNode(t))},I(n,[{key:"Jn",get:function(){return Et.oi}},{key:"qi",get:function(){return new St(this.Ei.documentElement)}}]),n}(Ot);function Ct(t){return function(t){return t.Jn===Et.$n}(t)}function Dt(t){switch(t.nodeType){case Et.$n:return new St(t);case Et.ni:return new bt(t);case Et.ri:return new Nt(t)}}function Pt(t){var n=t.indexOf(":");return n<0?t:t.substr(n+1)}function Lt(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),l.defineProperty(t,r.key,r)}}function Ft(t,n){var i=function(t,n){var i=t.length;if(i<=1)return t;for(var r=new Array(i),e=1;e<i;e*=2){Ut(t,n,e,r);var u=t;t=r,r=u}return t}(t,n);return i!==t&&Ut(i,null,t.length,t),t}function Ut(t,n,i,r){var e,u,o,s,f,c=t.length,a=0,h=2*i;for(e=0;e<c;e+=h)for(o=(u=e+i)+i,u>c&&(u=c),o>c&&(o=c),s=e,f=u;;)if(s<u&&f<o)n(t[s],t[f])<=0?r[a++]=t[s++]:r[a++]=t[f++];else if(s<u)r[a++]=t[s++];else{if(!(f<o))break;r[a++]=t[f++]}}var Mt=/[a-zA-Z]/,Wt=/[0-9]/,xt=/[0-9a-fA-F]/,Vt=/^0x/i,Bt=/^[0-9]+$/,Gt=/^[0-9a-fA-F]+$/,Ht=/^[0-7]+$/,jt=l.prototype.toString,Kt=Array.isArray||function(t){return"[object Array]"===jt.call(t)},qt="undefined"!=typeof Symbol&&"symbol"==typeof Symbol.iterator;function Xt(t){return Kt(t)?t:Array.from(t)}function Yt(t){return t>=65&&t<=90}function zt(t){return Yt(t)||function(t){return t>=97&&t<=122}(t)}function $t(t){return t>=48&&t<=57}function Zt(t){return $t(t)||zt(t)}function Jt(t){return $t(t)||t>=65&&t<=70||t>=97&&t<=102}function Qt(t){return Yt(t)?t+32:t}function tn(t){return $t(t)?t-48:t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:-1}function nn(t,n){return void 0===n&&(n=!1),0<=t&&t<=9?t+48:10<=t&&t<=15?t+(n?87:55):-1}var rn=v.min,en=String.fromCharCode,un=16384;function on(t){for(var n=t.length,i=[],r=0;r<n;r+=un){var e=rn(r+un,n);i.push(en.apply(null,t.slice(r,e)))}return i.join("")}var sn=/[^\0-\x7E]/,fn=/[\x2E\u3002\uFF0E\uFF61]/g,cn={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},an=v.floor,hn=String.fromCharCode;function ln(t){throw new RangeError(cn[t])}function vn(t){for(var n=[],i=0,r=t.length;i<r;){var e=t.charCodeAt(i++);if(e>=55296&&e<=56319&&i<r){var u=t.charCodeAt(i++);56320==(64512&u)?n.push(((1023&e)<<10)+(1023&u)+65536):(n.push(e),i--)}else n.push(e)}return n}var dn,_n,yn,wn=function(t,n){return t+22+75*(t<26)-((0!=n)<<5)},pn=function(t,n,i){var r=0;for(t=i?an(t/700):t>>1,t+=an(t/n);t>455;r+=36)t=an(t/35);return an(r+36*t/(t+38))},En=function(t){return function(t,n){var i=t.split("@"),r="";i.length>1&&(r=i[0]+"@",t=i[1]);var e=function(t,n){for(var i=[],r=t.length;r--;)i[r]=n(t[r]);return i}((t=t.replace(fn,".")).split("."),n).join(".");return r+e}(t,function(t){return sn.test(t)?"xn--"+function(t){for(var n=[],i=(t=vn(t)).length,r=128,e=0,u=72,o=0,s=t;o<s.length;o++){var f=s[o];f<128&&n.push(hn(f))}var c=n.length,a=c;for(c&&n.push("-");a<i;){for(var h=2147483647,l=0,v=t;l<v.length;l++){var d=v[l];d>=r&&d<h&&(h=d)}var _=a+1;h-r>an((2147483647-e)/_)&&ln("overflow"),e+=(h-r)*_,r=h;for(var y=0,w=t;y<w.length;y++){var p=w[y];if(p<r&&++e>2147483647&&ln("overflow"),p==r){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,k=36-g;n.push(hn(wn(g+R%k,0))),E=an(R/k)}n.push(hn(wn(E,0))),u=pn(e,_,a==c),e=0,++a}}++e,++r}return n.join("")}(t):t})};function In(t){for(var n=[],i=0;i<t.length;i++){var r=t[i];r>65535&&(r-=65536,n.push(r>>>10&1023|55296),r=56320|1023&r),n.push(r)}return on(n)}function gn(t){if(t>=55296&&t<=57343)throw new a("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function Rn(t,n){return t>>n&63|128}function kn(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(gn(t),n.push(t>>12&15|224),n.push(Rn(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(Rn(t,12)),n.push(Rn(t,6))),n.push(63&t|128)):n.push(t)}function Tn(t){for(var n=[],i=0;i<t.length;i++){kn(t[i],n)}return n}function On(){if(yn>=_n)throw new a("Invalid byte index");var t=255&dn[yn];if(yn++,128==(192&t))return 63&t;throw new a("Invalid continuation byte")}function Sn(){var t,n;if(yn>_n)throw new a("Invalid byte index");if(yn===_n)return!1;if(t=255&dn[yn],yn++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|On())>=128)return n;throw new a("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|On()<<6|On())>=2048)return gn(n),n;throw new a("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|On()<<12|On()<<6|On())>=65536&&n<=1114111)return n;throw new a("Invalid UTF-8 detected")}function mn(t){return[37,nn(t>>4),nn(15&t)]}function bn(t){return function(t){return t>=0&&t<=31}(t)||t>126}function Nn(t){return bn(t)||32===t||34===t||60===t||62===t||96===t}function An(t){return Nn(t)||35===t||63===t||123===t||125===t}function Cn(t){return An(t)||47===t||58===t||59===t||61===t||64===t||t>=91&&t<=94||124===t}function Dn(t){return t<33||t>126||34===t||35===t||60===t||62===t}function Pn(t){return Dn(t)||39===t}function Ln(t,n){if(!n(t))return[t];for(var i=Tn([t]),r=[],e=0;e<i.length;e++){var u=i[e];r.push.apply(r,mn(u))}return r}function Fn(t,n){for(var i=[],r=0,e=vn(t);r<e.length;r++){var u=e[r];i.push.apply(i,Ln(u,n))}return In(i)}function Un(t){return function(t){for(var n=[],i=t.length,r=0;r<i;r++){var e=t[r];if(37===e&&r+2<i&&Jt(t[r+1])&&Jt(t[r+2])){var u=tn(t[r+1])<<4|tn(t[r+2]);n.push(u),r+=2}else n.push(e)}return n}(Tn(t))}function Mn(t){return In(function(t){dn=t.slice(),_n=dn.length,yn=0;for(var n,i=[];!1!==(n=Sn());)i.push(n);return i}(Un(vn(t))))}function Wn(t){var n,i,r,e,u=t.length,o=[0,0,0,0,0,0,0,0],s=0,f=null,c=0;if(c<u&&":"===t[c]){if(!(c+1<u&&":"===t[c+1]))throw new h;c+=2,f=s+=1}for(;c<u;){if(8===s)throw new h("Too many groups");if(":"!==t[c]){for(var a=0,l=0;l<4&&c<u&&xt.test(t[c]);)a=a<<4|d(t[c],16),c+=1,l+=1;if("."===t[c]){if(0===l)throw new h;if(c-=l,s>6)throw new h;for(var v=0;c<u;){var _=null;if(v>0){if(!("."===t[c]&&v<4))throw new h;c+=1}if(!Wt.test(t[c]))throw new h;for(;c<u&&Wt.test(t[c]);){var y=d(t[c],10);if(null===_)_=y;else{if(0===_)throw new h;if((_=10*_+y)>255)throw new h}c+=1}o[s]=o[s]<<8|_,2!==(v+=1)&&4!==v||(s+=1)}if(4!==v)throw new h;break}if(":"===t[c]){if((c+=1)===u)throw new h}else if(c<u)throw new h;o[s]=a,s+=1}else{if(null!==f)throw new h("Too many :: groups");c+=1,f=s+=1}}if(null!==f){var w=s-f;for(s=7;0!==s&&w>0;)r=f+w-1,e=void 0,e=(n=o)[i=s],n[i]=n[r],n[r]=e,s-=1,w-=1}else if(8!==s)throw new h;return o}function xn(t){var n=10,i=Bt;return Vt.test(t)?(t=t.slice(2),n=16,i=Gt):t.length>=2&&"0"===t[0]&&(t=t.slice(1),n=8,i=Ht),""===t?0:i.test(t)?d(t,n):void 0}var Vn={Wi:4},Bn=/[\0\t\n\r #%/:?@\[\\\]]/,Gn=/[\0\t\n\r #/:?@\[\\\]]/;function Hn(t,n){if("["===t[0]){if("]"!==t[t.length-1])throw new h("Invalid IPv6 address");return{Wi:2,Gi:Wn(t.slice(1,-1))}}if(!n)return function(t){if(Gn.test(t))throw new h("Invalid code point in opaque host");var n=Fn(t,bn);return""===n?Vn:{Wi:3,Yi:n}}(t);var i=function(t){return function(t){return En(t.toLowerCase())}(t)}(Mn(t));if(Bn.test(i))throw new h("Invalid code point in host");var r=function(t){var n=t.split(".");if(""===n[n.length-1]&&n.pop(),!(n.length>4)){for(var i=[],r=0;r<n.length;r++){var e=n[r];if(""===e)return;var u=xn(e);if(void 0===u)return;i.push(u)}for(var o=0;o<i.length-1;o++)if(i[o]>255)throw new h;if(i[i.length-1]>=v.pow(256,5-i.length))throw new h;for(var s=i.pop(),f=0;f<i.length;f++)s+=i[f]*v.pow(256,3-f);return s}}(i);return void 0!==r?{Wi:1,Gi:r}:""===i?Vn:{Wi:0,ji:i}}function jn(t){switch(t.Wi){case 0:return t.ji;case 1:return function(t){for(var n=[],i=t,r=1;r<=4;r++)n.push(""+(255&i)),4!==r&&n.push("."),i>>>=8;return n.reverse().join("")}(t.Gi);case 2:return"["+function(t){for(var n="",i=function(t){for(var n=0,i=0,r=0,e=0,u=0;u<8;u++)0===t[u]?(0===e&&(r=u),e++):(e>i&&(n=r,i=e),e=0);return e>i&&(n=r,i=e),i>1?n:null}(t),r=!1,e=0;e<8;e++){if(r){if(0===t[e])continue;r=!1}i!==e?(n+=t[e].toString(16),7!==e&&(n+=":")):(n+=0===e?"::":":",r=!0)}return n}(t.Gi)+"]";case 3:return t.Yi;case 4:return""}}var Kn=/\+/g;function qn(t){for(var n=t.split("&"),i=[],r=0;r<n.length;r++){var e=n[r];if(""!==e){var u=e.indexOf("="),o=void 0,s=void 0;-1!==u?(o=e.slice(0,u),s=e.slice(u+1)):(o=e,s=""),o=o.replace(Kn," "),s=s.replace(Kn," ");var f=Mn(o),c=Mn(s);i.push([f,c])}}return i}function Xn(t){for(var n="",i=0;i<t.length;i++){var r=t[i];i>0&&(n+="&"),n+=Yn(Tn(vn(r[0])))+"="+Yn(Tn(vn(r[1])))}return n}function Yn(t){for(var n,i=[],r=0;r<t.length;r++){var e=t[r];32===e?i.push(43):42===(n=e)||45===n||46===n||95===n||Zt(n)?i.push(e):i.push.apply(i,mn(e))}return on(i)}var zn=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function $n(t){var n=""+t,i=zn.exec(n);return i?function(t,n){for(var i=t.length,r=[],e=n;e<i;e++){var u=t.charCodeAt(e);if(Jn(u))if(Qn(u)||e===i-1)r.push(Zn);else{var o=t.charCodeAt(e+1);Qn(o)?(r.push(u,o),e++):r.push(Zn)}else r.push(u)}return t.slice(0,n)+on(r)}(n,i.index):n}var Zn=65533,Jn=function(t){return 55296==(63488&t)},Qn=function(t){return 0!=(1024&t)};function ti(t,n){var i=t[0],r=n[0];return i===r?0:i<r?-1:1}function ni(t){t.Qi.length=0}function ii(t,n){!function(t,n){for(var i=0;i<n.length;i++)t[i]=n[i];t.length=n.length}(t.Qi,qn(n))}function ri(t){if(t.Ki){var n=Xn(t.Qi);""===n&&(n=null),t.Ki.Ki.Zi=n}}function ei(t){return t instanceof ui&&(!!Kt(t.Qi)&&(!qt||t[Symbol.iterator]===oi))}var ui=function(){function t(t){if(void 0===t&&(t=void 0),this.Ki=null,null==t)this.Qi=[];else if("object"==typeof t||"function"==typeof t)if(ei(t))this.Qi=t.Qi.slice();else if(null!=(u=t)&&(Kt(u)||qt&&"function"==typeof u[Symbol.iterator])){this.Qi=[];for(var n=0,i=Xt(t);n<i.length;n++){var r=Xt(i[n]);if(2!==r.length)throw new h("Invalid name-value pair");this.Qi.push([$n(r[0]),$n(r[1])])}}else for(var e in this.Qi=[],t)l.prototype.hasOwnProperty.call(t,e)&&this.Qi.push([$n(e),$n(t[e])]);else(t=$n(t)).length>0&&"?"===t[0]&&(t=t.slice(1)),this.Qi=qn(t);var u}var n=t.prototype;return n.append=function(t,n){t=$n(t),n=$n(n),this.Qi.push([t,n]),ri(this)},n.delete=function(t){t=$n(t);for(var n=this.Qi,i=0;i<n.length;){n[i][0]===t?n.splice(i,1):i++}ri(this)},n.get=function(t){t=$n(t);for(var n=this.Qi,i=0;i<n.length;i++){var r=n[i];if(r[0]===t)return r[1]}return null},n.getAll=function(t){t=$n(t);for(var n=this.Qi,i=[],r=0;r<n.length;r++){var e=n[r];e[0]===t&&i.push(e[1])}return i},n.has=function(t){t=$n(t);for(var n=this.Qi,i=0;i<n.length;i++){if(n[i][0]===t)return!0}return!1},n.set=function(t,n){t=$n(t),n=$n(n);for(var i=this.Qi,r=!1,e=0;e<i.length;){var u=i[e];u[0]===t?r?i.splice(e,1):(u[1]=n,r=!0,e++):e++}r||i.push([t,n]),ri(this)},n.sort=function(){Ft(this.Qi,ti),ri(this)},n.toString=function(){return Xn(this.Qi)},n.entries=function(){return new ai(this.Qi,si)},n.keys=function(){return new ai(this.Qi,fi)},n.values=function(){return new ai(this.Qi,ci)},n.forEach=function(t){var n=this;this.Qi.forEach(function(i){return t(i[1],i[0],n)})},t}(),oi=ui.prototype.entries;qt&&(ui.prototype[Symbol.iterator]=oi);var si=function(t){return[t[0],t[1]]},fi=function(t){return t[0]},ci=function(t){return t[1]},ai=function(){function t(t,n){this.Ji=0,this.Qi=t,this.$i=n}return t.prototype.next=function(){return this.Ji<this.Qi.length?{done:!1,value:this.$i(this.Qi[this.Ji++])}:{done:!0,value:void 0}},t}(),hi="null";var li=l.create(null);li.ftp=21,li.file=0,li.gopher=70,li.http=80,li.https=443,li.ws=80,li.wss=443;var vi=/^(?:\.|%2e)$/i,di=/^(?:\.|%2e){2}$/i;function _i(t){return vi.test(t)}function yi(t){return di.test(t)}function wi(t){return void 0!==li[t]}function pi(t){return wi(t.re)}function Ei(t){return""!==t.ue||""!==t.oe}function Ii(t){var n=t.length;if(!(n>=2))return!1;if(!Ri(t.slice(0,2)))return!1;if(2!==n){var i=t[2];if(47!==i&&92!==i&&63!==i&&35!==i)return!1}return!0}function gi(t){return 2===t.length&&Mt.test(t[0])&&(":"===t[1]||"|"===t[1])}function Ri(t){return 2===t.length&&gi(on(t))}function ki(t){return gi(t)&&":"===t[1]}function Ti(t){var n=t.fe;0!==n.length&&("file"===t.re&&1===n.length&&ki(n[0])||n.pop())}function Oi(t){return null===t._e||Vn===t._e||t.we||"file"===t.re}var Si=-1,mi=/\t|\n|\r/g,bi=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function Ni(t,n,i,r){void 0===i&&(i=null),void 0===r&&(r=null),i||(i=new Ci,t=t.replace(bi,""));var e=null!==r?r:0;n=n||null;for(var u=[],o=!1,s=!1,f=!1,c=vn(t=t.replace(mi,"")),a=c.length,l=0;l<=a;){var v=l<a?c[l]:Si;switch(e){case 0:if(!zt(v)){if(null===r){u.length=0,e=2;continue}throw new h("Invalid scheme")}u.push(Qt(v)),e=1;break;case 1:if(Zt(v)||43===v||45===v||46===v)u.push(Qt(v));else{if(58!==v){if(null===r){u.length=0,e=2,l=0;continue}throw new h("Invalid scheme")}var _=In(u);if(null!==r){if(wi(i.re)&&!wi(_))return;if(!wi(i.re)&&wi(_))return;if((Ei(i)||null!==i.ye)&&"file"===_)return;if("file"===i.re&&(i._e===Vn||null===i._e))return}if(i.re=_,null!==r)return void(pi(i)&&i.ye===li[i.re]&&(i.ye=null));u.length=0,"file"===i.re?e=13:pi(i)&&n&&n.re===i.re?e=3:pi(i)?e=7:47===c[l+1]?(e=4,l+=1):(i.we=!0,i.fe.push(""),e=18)}break;case 2:if(!n||n.we&&35!==v)throw new h("Invalid scheme");n.we&&35===v?(i.re=n.re,i.fe=n.fe.slice(),i.Zi=n.Zi,i.ke="",i.we=!0,e=20):"file"!==n.re?(e=5,l-=1):(e=13,l-=1);break;case 3:47===v&&47===c[l+1]?e=8:(e=5,l-=1);break;case 4:47===v?e=9:(e=17,l-=1);break;case 5:i.re=n.re,Si===v?(i.ue=n.ue,i.oe=n.oe,i._e=n._e,i.ye=n.ye,i.fe=n.fe.slice(),i.Zi=n.Zi):47===v?e=6:63===v?(i.ue=n.ue,i.oe=n.oe,i._e=n._e,i.ye=n.ye,i.fe=n.fe.slice(),i.Zi="",e=19):35===v?(i.ue=n.ue,i.oe=n.oe,i._e=n._e,i.ye=n.ye,i.fe=n.fe.slice(),i.Zi=n.Zi,i.ke="",e=20):92===v&&pi(i)?e=6:(i.ue=n.ue,i.oe=n.oe,i._e=n._e,i.ye=n.ye,i.fe=n.fe.slice(),i.fe.pop(),e=17,l-=1);break;case 6:!pi(i)||47!==v&&92!==v?47===v?e=9:(i.ue=n.ue,i.oe=n.oe,i._e=n._e,i.ye=n.ye,e=17,l-=1):e=8;break;case 7:if(47!==v||47!==c[l+1]){e=8;continue}e=8,l+=1;break;case 8:47!==v&&92!==v&&(e=9,l-=1);break;case 9:if(64===v){o&&u.unshift(37,52,48),o=!0;for(var y=0;y<u.length;y++){var w=u[y];if(58!==w||f){var p=In(Ln(w,Cn));f?i.oe+=p:i.ue+=p}else f=!0}u.length=0}else if(Si===v||47===v||63===v||35===v||pi(i)&&92===v){if(o&&0===u.length)throw new h("Invalid host");l-=u.length+1,u.length=0,e=10}else u.push(v);break;case 10:case 11:if(null!==r&&"file"===i.re)l-=1,e=15;else if(58!==v||s)if(Si===v||47===v||63===v||35===v||pi(i)&&92===v){if(l-=1,pi(i)&&0===u.length)throw new h("Invalid host");if(null!==r&&0===u.length&&(Ei(i)||null!==i.ye))return;var E=Hn(In(u),pi(i));if(i._e=E,u.length=0,e=16,null!==r)return}else 91===v?s=!0:93===v&&(s=!1),u.push(v);else{if(0===u.length)throw new h("Invalid host");var I=Hn(In(u),pi(i));if(i._e=I,u.length=0,e=12,11===r)return}break;case 12:if($t(v))u.push(v);else{if(!(Si===v||47===v||63===v||35===v||pi(i)&&92===v||null!==r))throw new h("Invalid port");if(0!==u.length){var g=d(In(u),10);if(g>65535)throw new h("Invalid port");i.ye=g===li[i.re]?null:g,u.length=0}if(null!==r)return;e=16,l-=1}break;case 13:i.re="file",47===v||92===v?e=14:n&&"file"===n.re?Si===v?(i._e=n._e,i.fe=n.fe.slice(),i.Zi=n.Zi):63===v?(i._e=n._e,i.fe=n.fe.slice(),i.Zi="",e=19):35===v?(i._e=n._e,i.fe=n.fe.slice(),i.Zi=n.Zi,i.ke="",e=20):(Ii(c.slice(l))||(i._e=n._e,i.fe=n.fe.slice(),Ti(i)),e=17,l-=1):(e=17,l-=1);break;case 14:47===v||92===v?e=15:(n&&"file"===n.re&&!Ii(c.slice(l))&&(ki(n.fe[0])?i.fe.push(n.fe[0]):i._e=n._e),e=17,l-=1);break;case 15:if(Si===v||47===v||92===v||63===v||35===v)if(l-=1,null===r&&Ri(u))e=17;else if(0===u.length){if(i._e=Vn,null!==r)return;e=16}else{var R=Hn(In(u),pi(i));if(0===R.Wi&&"localhost"===R.ji&&(R=Vn),i._e=R,null!==r)return;u.length=0,e=16}else u.push(v);break;case 16:pi(i)?(e=17,47!==v&&92!==v&&(l-=1)):null===r&&63===v?(i.Zi="",e=19):null===r&&35===v?(i.ke="",e=20):Si!==v&&(e=17,47!==v&&(l-=1));break;case 17:if(Si===v||47===v||pi(i)&&92===v||null===r&&(63===v||35===v)){var k=In(u);if(yi(k)?(Ti(i),47===v||pi(i)&&92===v||i.fe.push("")):!_i(k)||47===v||pi(i)&&92===v?_i(k)||("file"===i.re&&0===i.fe.length&&Ri(u)&&(Vn!==i._e&&null!==i._e&&(i._e=Vn),u[1]=58,k=In(u)),i.fe.push(k)):i.fe.push(""),u.length=0,"file"===i.re&&(Si===v||63===v||35===v))for(;i.fe.length>1&&""===i.fe[0];)i.fe.shift();63===v?(i.Zi="",e=19):35===v&&(i.ke="",e=20)}else u.push.apply(u,Ln(v,An));break;case 18:63===v?(i.Zi="",e=19):35===v?(i.ke="",e=20):Si!==v&&(i.fe[0]+=In(Ln(v,bn)));break;case 19:null===r&&35===v?(i.ke="",e=20):Si!==v&&(i.Zi+=In(Ln(v,pi(i)?Pn:Dn)));break;case 20:Si===v||0===v||(i.ke+=In(Ln(v,Nn)))}l++}return i}function Ai(t,n,i,r){try{Ni(t,n,i,r)}catch(t){}}var Ci=function(){this.re="",this.ue="",this.oe="",this._e=null,this.ye=null,this.fe=[],this.Zi=null,this.ke=null,this.we=!1};function Di(t){switch(t.re){case"blob":var n;try{n=Ni(t.fe[0],null)}catch(t){return hi}return Di(n);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return i=t.re,r=t._e,e=t.ye,i+"://"+jn(r)+(null===e?"":":"+e);case"file":default:return hi}var i,r,e}var Pi=function(){function t(t,n){var i,r,e=null;if(null!=n)if(null!=(i=n)&&i instanceof Pi&&"object"==typeof i.Ki)e=n.Ki;else try{e=Ni(String(n),null)}catch(t){throw new h("Invalid base URL: "+t.message)}try{r=Ni(String(t),e)}catch(t){throw new h("Invalid URL: "+t.message)}var u=r.Zi;this.Ki=r,this.Zi=function(t){var n=new ui;return null!==t&&ii(n,t),n}(u),this.Zi.Ki=this}var n,i,r,e=t.prototype;return e.toString=function(){return this.href},e.toJSON=function(){return this.href},n=t,(i=[{key:"href",get:function(){return function(t,n){void 0===n&&(n=!1);var i=t.re+":";if(null!==t._e?(i+="//",Ei(t)&&(i+=t.ue,""!==t.oe&&(i+=":"+t.oe),i+="@"),i+=jn(t._e),null!==t.ye&&(i+=":"+t.ye)):null===t._e&&"file"===t.re&&(i+="//"),t.we)i+=t.fe[0];else for(var r=0,e=t.fe;r<e.length;r++)i+="/"+e[r];return null!==t.Zi&&(i+="?"+t.Zi),n||null===t.ke||(i+="#"+t.ke),i}(this.Ki)},set:function(t){var n;try{n=Ni(String(t),null)}catch(t){throw new h("Invalid URL: "+t.message)}this.Ki=n,ni(this.Zi);var i=this.Ki.Zi;null!==i&&ii(this.Zi,i)}},{key:"origin",get:function(){return Di(this.Ki)}},{key:"protocol",get:function(){return this.Ki.re+":"},set:function(t){Ai(t+":",null,this.Ki,0)}},{key:"username",get:function(){return this.Ki.ue},set:function(t){Oi(this.Ki)||(this.Ki.ue=Fn(t,Cn))}},{key:"password",get:function(){return this.Ki.oe},set:function(t){Oi(this.Ki)||(this.Ki.oe=Fn(t,Cn))}},{key:"host",get:function(){var t=this.Ki,n=t._e;if(null===n)return"";var i=t.ye,r=jn(n);return null!==i&&(r+=":"+i),r},set:function(t){this.Ki.we||Ai(t,null,this.Ki,10)}},{key:"hostname",get:function(){var t=this.Ki._e;return null===t?"":jn(t)},set:function(t){this.Ki.we||Ai(t,null,this.Ki,11)}},{key:"port",get:function(){var t=this.Ki.ye;return null===t?"":""+t},set:function(t){Oi(this.Ki)||(""===t?this.Ki.ye=null:Ai(t,null,this.Ki,12))}},{key:"pathname",get:function(){var t=this.Ki.fe;return this.Ki.we?t[0]:0===t.length?"":"/"+t.join("/")},set:function(t){this.Ki.we||(this.Ki.fe.length=0,Ai(t,null,this.Ki,16))}},{key:"search",get:function(){var t=this.Ki.Zi;return null===t||""===t?"":"?"+t},set:function(t){t=$n(t);var n=this.Ki;if(""===t)return n.Zi=null,void ni(this.Zi);"?"===t[0]&&(t=t.slice(1)),n.Zi="",Ai(t,null,n,19),ii(this.Zi,t)}},{key:"searchParams",get:function(){return this.Zi}},{key:"hash",get:function(){var t=this.Ki.ke;return null===t||""===t?"":"#"+t},set:function(t){""!==t?("#"===t[0]&&(t=t.slice(1)),this.Ki.ke="",Ai(t,null,this.Ki,20)):this.Ki.ke=null}}])&&Lt(n.prototype,i),r&&Lt(n,r),t}();function Li(t){return t.document&&t.document.baseURI||t.location.href||""}var Fi=o;function Ui(t){return Boolean(t&&void 0!==t.length)}function Mi(){}function Wi(t){if(!(this instanceof Wi))throw new h("Promises must be constructed via new");if("function"!=typeof t)throw new h("not a function");this.me=0,this.pe=!1,this.Ae=void 0,this.Te=[],ji(t,this)}function xi(t,n){for(;3===t.me;)t=t.Ae;0!==t.me?(t.pe=!0,Wi.Se(function(){var i=1===t.me?n.onFulfilled:n.onRejected;if(null!==i){var r;try{r=i(t.Ae)}catch(t){return void Bi(n.promise,t)}Vi(n.promise,r)}else(1===t.me?Vi:Bi)(n.promise,t.Ae)})):t.Te.push(n)}function Vi(t,n){try{if(n===t)throw new h("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var i=n.then;if(n instanceof Wi)return t.me=3,t.Ae=n,void Gi(t);if("function"==typeof i)return void ji((r=i,e=n,function(){r.apply(e,arguments)}),t)}t.me=1,t.Ae=n,Gi(t)}catch(n){Bi(t,n)}var r,e}function Bi(t,n){t.me=2,t.Ae=n,Gi(t)}function Gi(t){2===t.me&&0===t.Te.length&&Wi.Se(function(){t.pe||Wi.Ee(t.Ae)});for(var n=0,i=t.Te.length;n<i;n++)xi(t,t.Te[n]);t.Te=null}function Hi(t,n,i){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof n?n:null,this.promise=i}function ji(t,n){var i=!1;try{t(function(t){i||(i=!0,Vi(n,t))},function(t){i||(i=!0,Bi(n,t))})}catch(t){if(i)return;i=!0,Bi(n,t)}}Wi.prototype.catch=function(t){return this.then(null,t)},Wi.prototype.then=function(t,n){var i=new this.constructor(Mi);return xi(this,new Hi(t,n,i)),i},Wi.prototype.finally=function(t){var n=this.constructor;return this.then(function(i){return n.resolve(t()).then(function(){return i})},function(i){return n.resolve(t()).then(function(){return n.reject(i)})})},Wi.all=function(t){return new Wi(function(n,i){if(!Ui(t))return i(new h("Promise.all accepts an array"));var r=Array.prototype.slice.call(t);if(0===r.length)return n([]);var e=r.length;function u(t,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var s=o.then;if("function"==typeof s)return void s.call(o,function(n){u(t,n)},i)}r[t]=o,0==--e&&n(r)}catch(t){i(t)}}for(var o=0;o<r.length;o++)u(o,r[o])})},Wi.allSettled=function(t){return new this(function(n,i){if(!t||void 0===t.length)return i(new h(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(t);if(0===r.length)return n([]);var e=r.length;function u(t,i){if(i&&("object"==typeof i||"function"==typeof i)){var o=i.then;if("function"==typeof o)return void o.call(i,function(n){u(t,n)},function(i){r[t]={status:"rejected",reason:i},0==--e&&n(r)})}r[t]={status:"fulfilled",value:i},0==--e&&n(r)}for(var o=0;o<r.length;o++)u(o,r[o])})},Wi.resolve=function(t){return t&&"object"==typeof t&&t.constructor===Wi?t:new Wi(function(n){n(t)})},Wi.reject=function(t){return new Wi(function(n,i){i(t)})},Wi.race=function(t){return new Wi(function(n,i){if(!Ui(t))return i(new h("Promise.race accepts an array"));for(var r=0,e=t.length;r<e;r++)Wi.resolve(t[r]).then(n,i)})},Wi.Se="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){Fi(t,0)},Wi.Ee=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var Ki=function(){var n=t.Promise;if(void 0!==n)try{if(-1!==n.toString().indexOf("[native code]"))return n}catch(t){}}(),qi=u?u.userAgent:"",Xi=qi.match(/Firefox\/([0-9]+)/i),Yi=null!=Xi,zi=Xi?Number(Xi[1]):0,$i=qi.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),Zi=null!=$i,Ji=$i?Number($i[3]):0,Qi=function(){function t(t){this.Ie=0,this.Re=0,this.Yi=[],this.Ne=t}return t.prototype.De=function(t){var n=this.length();this.Ce(n+1);var i=this.Re+n&this.Ne-1;this.Yi[i]=t,this.Ie=n+1},t.prototype.push=function(t){var n=this.length()+1;if(this.Ne<n)this.De(t);else{var i=this.Re+n-1,r=this.Ne-1;this.Yi[i&r]=t,this.Ie=n}},t.prototype.shift=function(){var t=this.Re,n=this.Yi[t];return this.Yi[t]=void 0,this.Re=t+1&this.Ne-1,this.Ie--,n},t.prototype.length=function(){return this.Ie},t.prototype.Ce=function(t){this.Ne<t&&this.Pe(this.Ne<<1)},t.prototype.Pe=function(t){var n=this.Ne;this.Ne=t;var i=this.Re+this.Ie&n-1;!function(t,n,i,r){for(var e=0;e<r;++e)t[e+i]=t[e+n],t[e+n]=void 0}(this.Yi,0,n,i)},t}();var tr="unhandledrejection",nr=t.PromiseRejectionEvent,ir=t.CustomEvent;function rr(t){return new nr(tr,{reason:t,promise:Ki.reject(t).catch(function(){}),cancelable:!0})}function er(t){var n=new ir(tr,{detail:{reason:t},cancelable:!0});return l.defineProperty(n,"reason",{value:t}),n}function ur(t){var n=r.createEvent("CustomEvent");return n.initCustomEvent(tr,!1,!0,{reason:t}),n}var or,sr,fr,cr,ar,hr,lr,vr=function(t){return(vr=function(){try{var t=Ki.resolve(),n=new nr(tr,{reason:"error",promise:t});return tr===n.type&&"error"===n.reason}catch(t){}return!1}()?rr:function(){try{var t=new ir(tr,{detail:{reason:"error"}});return tr===t.type&&"error"===t.detail.reason}catch(t){}return!1}()?er:ur)(t)};if(Ki&&!(Yi&&zi<60||Zi&&Ji<15))sr=Ki;else{sr=Wi;var dr=null!==(or=function(){var n=t.queueMicrotask;if("function"==typeof n)return function(t){return n(t)};var i=Ki;if(i&&"function"==typeof i.resolve){var r=i.resolve();return function(t){return r.then(t)}}}())&&void 0!==or?or:Wi.Se,_r=(fr=dr,cr=new Qi(16),ar=!1,{Oe:function(t){cr.push(t),ar||(ar=!0,fr(hr))},Be:hr=function(){for(;cr.length()>0;)cr.shift()();ar=!1}});Wi.Se=_r.Oe,Wi.Ee=function(n){try{var i=vr(n);if(!t.dispatchEvent(i)||i.defaultPrevented)return}catch(t){}o(function(){throw new a("Unhandled promise rejection: ".concat(n))},0)}}function yr(){return void 0!==r?r.createElement("video"):void 0}var wr=!!("ontouchstart"in t||t.DocumentTouch&&r instanceof t.DocumentTouch)||!(!u||!u.msMaxTouchPoints),pr=(lr||(lr=yr()),lr),Er=!(!pr||!pr.webkitShowPlaybackTargetPicker),Ir=function(){function t(){this.Le=void 0,this.Me=!1,this.Wt=wr,this.dn=!1,this.xe=!0}var n=t.prototype;return n.Ue=function(){return 0},n.Fe=function(t,n){return!0},n.He=function(t){return t>=1/6*2},I(t,[{key:"Ve",get:function(){return void 0===this.Le&&(this.Le=this.Ue()),this.Le}},{key:"Xe",get:function(){return!L.Un}},{key:"ze",get:function(){}},{key:"qe",get:function(){return i.devicePixelRatio||1}},{key:"We",get:function(){return Er}},{key:"Ge",get:function(){return!1}},{key:"Ye",get:function(){return!0}},{key:"je",get:function(){return L.On||L.hn}},{key:"Qe",get:function(){return!0}},{key:"Ke",get:function(){return!0}},{key:"Ze",get:function(){return!1}},{key:"Je",get:function(){}},{key:"$e",get:function(){return!0}},{key:"ir",get:function(){return!1}},{key:"rr",get:function(){return!1}}]),t}(),gr=function(){var t=yr();if(!t)return!1;var n=t.muted;return t.muted=!n,t.muted!==n}();!function(){if(L.in)return!1;var t=yr();if(!t)return!1;var n=t.volume;t.volume=n/2+.1,t.volume}();var Rr=function(t){function n(n){var i;return(i=t.call(this)||this).dr=void 0,i.dr=n,i.dr&&(i.Me=i.dr.Me,i.Wt=i.dr.Wt,i.xe=gr&&i.dr.xe),i}R(n,t);var i=n.prototype;return i.Ue=function(){return this.dr?this.dr.Ve:t.prototype.Ue.call(this)},i.Fe=function(n,i){return this.dr?this.dr.Fe(n,i):t.prototype.Fe.call(this,n,i)},i.He=function(n){return this.dr?this.dr.He(n):t.prototype.He.call(this,n)},I(n,[{key:"Je",get:function(){var t;return null==(t=this.dr)?void 0:t.Je}},{key:"$e",get:function(){var t,n;return null==(t=null==(n=this.dr)?void 0:n.$e)||t}}]),n}(Ir),kr=function(t){function n(n){var i;return(i=t.call(this,n)||this).Me=!0,i.dn=!0,i}return R(n,t),I(n,[{key:"Ze",get:function(){return L.hn}}]),n}(Rr),Tr=function(t){function n(){return t.apply(this,arguments)||this}return R(n,t),n.prototype.Ue=function(){if(!(void 0).MediaSource)return 1},I(n,[{key:"Ze",get:function(){return!0}}]),n}(kr),Or=function(t){function n(){for(var n,i=arguments.length,r=new Array(i),e=0;e<i;e++)r[e]=arguments[e];return(n=t.call.apply(t,[this].concat(r))||this)._r=void 0,n}return R(n,t),n.prototype.Fe=function(n,i){return t.prototype.Fe.call(this,n,i)},I(n,[{key:"Ge",get:function(){return L.Sn<3}},{key:"Ye",get:function(){return L.Sn>=3}},{key:"ze",get:function(){var t=this;return i.tizen&&!this._r&&i.tizen.systeminfo.getPropertyValue("DISPLAY",function(n){var i=n.resolutionWidth,r=n.resolutionHeight;1===i&&1===r||(t._r={width:i,height:r})}),this._r}},{key:"ir",get:function(){return L.Sn<3}},{key:"rr",get:function(){return!0}}]),n}(Rr),Sr=function(t){function n(){return t.call(this)||this}return R(n,t),n}(Ir),mr=function(t){function n(){return t.apply(this,arguments)||this}return R(n,t),n.prototype.Fe=function(t,n){if(t&&t.gr&&n&&n.gr){var i=br(t.gr,"mp4a.40.2")&&br(n.gr,"mp4a.40.5"),r=br(t.gr,"mp4a.40.5")&&br(n.gr,"mp4a.40.2"),e=br(t.gr,"mp4a.40.2")&&br(n.gr,"mp4a.40.34"),u=br(t.gr,"mp4a.40.34")&&br(n.gr,"mp4a.40.2"),o=br(t.gr,"mp4a.40.5")&&br(n.gr,"mp4a.40.34"),s=br(t.gr,"mp4a.40.34")&&br(n.gr,"mp4a.40.5");return!(i||r||e||u||o||s)}return!0},I(n,[{key:"Je",get:function(){if(L.Gt)return 4096}}]),n}(Sr);function br(t,n){return t.indexOf(n)>-1}var Nr=function(t){function n(){return t.apply(this,arguments)||this}return R(n,t),n.prototype.He=function(t){return t>=2},n}(Sr),Ar=function(t){function n(){var n;return(n=t.call(this)||this).Me=L.Bn>=11,n.xe=L.On&&!(L.hn&&L.Bn<10),n}return R(n,t),n}(Sr),Cr=function(t){function n(){for(var n,i=arguments.length,r=new Array(i),e=0;e<i;e++)r[e]=arguments[e];return(n=t.call.apply(t,[this].concat(r))||this)._r=void 0,n}return R(n,t),I(n,[{key:"ze",get:function(){var t=this;return i.webOS&&!this._r&&i.webOS.deviceInfo(function(n){t._r={width:n.screenWidth,height:n.screenHeight}}),this._r}},{key:"Qe",get:function(){return!1}},{key:"rr",get:function(){return!0}}]),n}(Rr),Dr=function(t){function n(){return t.apply(this,arguments)||this}return R(n,t),I(n,[{key:"$e",get:function(){return!L.Yt||(L.pn?92!==L.An:L.yn>=100)}}]),n}(Sr),Pr=function(t){function n(){return t.apply(this,arguments)||this}return R(n,t),I(n,[{key:"Ze",get:function(){return!0}}]),n}(Rr),Lr=function(){function n(){var n;this.jn=void 0,this.wr=new kt,this.yr=new Fr,this.pr=(n=function(){if(L.Cn)return new mr;if(L.In||L.Rn)return new Nr;if(L.On)return new Ar;if(L.wn)return new Dr;return new Sr}(),L.hn?new Tr(n):L.dn?new kr(n):L.Tn?new Or(n):L.En?new Cr(n):L.Gt?new Pr(n):new Rr(n)),this.Ar=function(){if(t.URL)try{var n=new t.URL("b","http://a");return n.pathname="c d","http://a/c%20d"===n.href}catch(t){}return!1}(),t.performance&&t.performance.now?this.jn=function(){return t.performance.now()}:this.jn=pt}var i=n.prototype;return i.Tr=function(){H.apply(void 0,arguments)},i.Sr=function(){j.apply(void 0,arguments)},i.Er=function(){K.apply(void 0,arguments)},i.Ir=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];q.apply(void 0,[t].concat(i))},i.Kn=function(t,n){return o(t,n)},i.Rr=function(t,n){return f(t,n)},i.Qn=function(t){s(t)},i.Nr=function(t){c(t)},i.ai=function(t){return this.wr.ai(t)},i.Dr=function(){return this.Cr.Dr()},i.Pr=function(){return this.Cr.Pr()},i.Or=function(){return this.Cr.Or()},i.Br=function(){return this.Cr.Br()},i.Lr=function(){return this.Cr.Lr()},i.Mr=function(t,n){return this.Cr.Mr(t,n)},i.xr=function(t){return this.Cr.xr(t)},i.Ur=function(t,n){var i;return void 0===n&&(n=Li(void 0)),i="object"!=typeof n||n instanceof Pi?n:n.href,new Pi(t,i)},i.Fr=function(n,i){if(void 0===i&&(i=Li(void 0)),this.Ar){var r="string"==typeof i?i:i.toString();return new t.URL(n,r).href}return this.Ur(n,i).href},I(n,[{key:"Hr",get:function(){return this.yr}},{key:"Vr",get:function(){return this.pr}},{key:"Xr",get:function(){return{zr:u&&u.userAgent.match(/Android /i)?"Android":"other",qr:Boolean(u&&u.userAgent.match(/Android 8.0.0/i))}}},{key:"Wr",get:function(){return t&&t.location&&"https:"===t.location.protocol}},{key:"Gr",get:function(){return"languages"in u?u.languages.slice():[u.language]}}]),n}(),Fr=function(){function t(){}return I(t,[{key:"Yr",get:function(){return u.oscpu}},{key:"Vr",get:function(){return u.platform}},{key:"jr",get:function(){return u.vendor}},{key:"Qr",get:function(){return u.vendorSub}}]),t}();var Ur={exports:{}};!function(t){var n,i=l.prototype,r=i.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},u=e.iterator||"@@iterator",o=e.asyncIterator||"@@asyncIterator",s=e.toStringTag||"@@toStringTag";function f(t,n,i,r){var e=n&&n.prototype instanceof E?n:E,u=l.create(e.prototype),o=new C(r||[]);return u.Kr=function(t,n,i){var r=v;return function(e,u){if(r===_)throw new a("Generator is already running");if(r===w){if("throw"===e)throw u;return P()}for(i.method=e,i.arg=u;;){var o=i.delegate;if(o){var s=b(o,i);if(s){if(s===p)continue;return s}}if("next"===i.method)i.sent=i.Zr=i.arg;else if("throw"===i.method){if(r===v)throw r=w,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=_;var f=c(t,n,i);if("normal"===f.type){if(r=i.done?w:d,f.arg===p)continue;return{value:f.arg,done:i.done}}"throw"===f.type&&(r=w,i.method="throw",i.arg=f.arg)}}}(t,i,o),u}function c(t,n,i){try{return{type:"normal",arg:t.call(n,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var v="suspendedStart",d="suspendedYield",_="executing",w="completed",p={};function E(){}function I(){}function g(){}var R={};R[u]=function(){return this};var k=l.getPrototypeOf,T=k&&k(k(D([])));T&&T!==i&&r.call(T,u)&&(R=T);var O=g.prototype=E.prototype=l.create(R);function S(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this.Kr(n,t)}})}function m(t){var n;this.Kr=function(i,e){function u(){return new sr(function(n,u){!function n(i,e,u,o){var s=c(t[i],t,e);if("throw"!==s.type){var f=s.arg,a=f.value;return a&&"object"==typeof a&&r.call(a,"Jr")?sr.resolve(a.Jr).then(function(t){n("next",t,u,o)},function(t){n("throw",t,u,o)}):sr.resolve(a).then(function(t){f.value=t,u(f)},function(t){return n("throw",t,u,o)})}o(s.arg)}(i,e,n,u)})}return n=n?n.then(u,u):u()}}function b(t,i){var r=t.iterator[i.method];if(r===n){if(i.delegate=null,"throw"===i.method){if(t.iterator.return&&(i.method="return",i.arg=n,b(t,i),"throw"===i.method))return p;i.method="throw",i.arg=new h("The iterator does not provide a 'throw' method")}return p}var e=c(r,t.iterator,i.arg);if("throw"===e.type)return i.method="throw",i.arg=e.arg,i.delegate=null,p;var u=e.arg;return u?u.done?(i[t.resultName]=u.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=n),i.delegate=null,p):u:(i.method="throw",i.arg=new h("iterator result is not an object"),i.delegate=null,p)}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function A(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function D(t){if(t){var i=t[u];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!y(t.length)){var e=-1,o=function i(){for(;++e<t.length;)if(r.call(t,e))return i.value=t[e],i.done=!1,i;return i.value=n,i.done=!0,i};return o.next=o}}return{next:P}}function P(){return{value:n,done:!0}}I.prototype=O.constructor=g,g.constructor=I,g[s]=I.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===I||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return l.setPrototypeOf?l.setPrototypeOf(t,g):(t.__proto__=g,s in t||(t[s]="GeneratorFunction")),t.prototype=l.create(O),t},t.awrap=function(t){return{Jr:t}},S(m.prototype),m.prototype[o]=function(){return this},t.AsyncIterator=m,t.async=function(n,i,r,e){var u=new m(f(n,i,r,e));return t.isGeneratorFunction(i)?u:u.next().then(function(t){return t.done?t.value:u.next()})},S(O),O[s]="Generator",O[u]=function(){return this},O.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var i in t)n.push(i);return n.reverse(),function i(){for(;n.length;){var r=n.pop();if(r in t)return i.value=r,i.done=!1,i}return i.done=!0,i}},t.values=D,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this.Zr=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(A),!t)for(var i in this)"t"===i.charAt(0)&&r.call(this,i)&&!y(+i.slice(1))&&(this[i]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function e(r,e){return s.type="throw",s.arg=t,i.next=r,e&&(i.method="next",i.arg=n),!!e}for(var u=this.tryEntries.length-1;u>=0;--u){var o=this.tryEntries[u],s=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var f=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(f&&c){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(f){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!c)throw new a("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,n){for(var i=this.tryEntries.length-1;i>=0;--i){var e=this.tryEntries[i];if(e.tryLoc<=this.prev&&r.call(e,"finallyLoc")&&this.prev<e.finallyLoc){var u=e;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=n&&n<=u.finallyLoc&&(u=null);var o=u?u.completion:{};return o.type=t,o.arg=n,u?(this.method="next",this.next=u.finallyLoc,p):this.complete(o)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),p},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),A(i),p}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc===t){var r=i.completion;if("throw"===r.type){var e=r.arg;A(i)}return e}}throw new a("illegal catch attempt")},delegateYield:function(t,i,r){return this.delegate={iterator:D(t),resultName:i,nextLoc:r},"next"===this.method&&(this.arg=n),p}}}(Ur.exports);var Mr=Ur.exports;function Wr(){return(Wr=l.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)l.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}function xr(){var t=l.create(null);return t.__=void 0,delete t.__,t}var Vr,Br,Gr=("undefined"!=typeof Map&&"entries"in Map.prototype?Map:void 0)||(Vr=function(){function t(t,n){this.data=void 0,this.keys=void 0,this.index=0,this.selector=void 0,this.data=t,this.selector=n,this.keys=l.keys(t)}var n=t.prototype;return n.next=function(){var t=this.index;return t<this.keys.length?(this.index++,{value:this.selector(this.data,this.keys[t]),done:!1}):{value:void 0,done:!0}},t}(),function(){function t(){this.data=xr(),this.size=0}var n=t.prototype;return n.get=function(t){return this.data[t]},n.set=function(t,n){return this.has(t)||this.size++,this.data[t]=n,this},n.has=function(t){return t in this.data},n.delete=function(t){return!!this.has(t)&&(this.size--,delete this.data[t],!0)},n.clear=function(){this.data=xr(),this.size=0},n.keys=function(){return new Vr(this.data,function(t,n){return n})},n.values=function(){return new Vr(this.data,function(t,n){return t[n]})},n.entries=function(){return new Vr(this.data,function(t,n){return[n,t[n]]})},n.forEach=function(t){for(var n in this.data)t(this.data[n],n)},t}());!function(t){t.hs="9a04f079-9840-4286-ab92-e65be0885f95",t.fs="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",t.vs="1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",t.ds="94ce86fb-07ff-4f43-adb8-93d2fa968ca2"}(Br||(Br={}));var Hr,jr=Br.hs,Kr="urn:uuid:"+jr,qr=Br.fs,Xr="urn:uuid:"+qr,Yr=Br.vs,zr="urn:uuid:"+Yr,$r=Br.ds,Zr="urn:uuid:"+$r;!function(t){t.hs="playready",t.fs="widevine",t.ds="fairplay",t.vs="clearkey",t.ls="aes128"}(Hr||(Hr={}));var Jr={_s:Hr.hs,gs:"com.microsoft.playready",ys:"cenc",As:jr,Ts:Kr,Ss:"PlayReady"},Qr={_s:Hr.fs,gs:"com.widevine.alpha",ys:"cenc",As:qr,Ts:Xr,Ss:"Widevine"},te={_s:Hr.ds,gs:"com.apple.fps.1_0",ys:"skd",As:$r,Ts:Zr,Ss:"FairPlay"};Hr.ds;var ne={_s:Hr.vs,gs:"org.w3.clearkey",ys:"cenc",As:Yr,Ts:zr,Ss:"ClearKey"};var ie=L.wn&&L.yn>=42||L.Cn&&L.Pn>=38||L.In||L.Nn||L.Ln&&L.Mn>=29;function re(t,n){return r="audio",null!=(i=t)&&-1!==i.indexOf(r)?{initDataTypes:["cenc"],audioCapabilities:[Wr({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]}:{initDataTypes:["cenc"],videoCapabilities:[Wr({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]};var i,r}var ee,ue=function(){function t(t){this.Es=void 0,this.Is=new Gr,this.Rs=void 0,this.Es=t}var n=t.prototype;return n.Lr=function(){return this.xr(Qr)},n.Pr=function(){return this.xr(ne)},n.Br=function(){return this.xr(Jr)},n.Or=function(){return this.xr(te)},n.xr=function(t){var n=t.Ts,i=this.Is.get(n);if(i)return i;var r=this.Mr(t,'video/mp4; codecs="avc1.42000a"');return this.Is.set(n,r),r},n.Mr=function(t,n){return Mr.async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,Mr.awrap(this.Es.Ns(t.gs,[re(n,!0)]));case 3:return i.abrupt("return",!0);case 6:return i.prev=6,i.t0=i.catch(0),i.prev=8,i.next=11,Mr.awrap(this.Es.Ns(t.gs,[re(n,!1)]));case 11:return i.abrupt("return",!0);case 14:return i.prev=14,i.t1=i.catch(8),i.abrupt("return",!1);case 17:case"end":return i.stop()}},null,this,[[0,6],[8,14]],sr)},n.Dr=function(){return this.Rs||(this.Rs=this.Ds()),this.Rs},n.Ds=function(){return Mr.async(function(t){for(;;)switch(t.prev=t.next){case 0:if("https:"!==(void 0).protocol){t.next=2;break}case 2:if(ie){t.next=4;break}return t.abrupt("return",!1);case 4:return t.next=6,Mr.awrap(this.Pr());case 6:if(!t.sent){t.next=8;break}return t.abrupt("return",!1);case 8:return t.abrupt("return",!0);case 9:case"end":return t.stop()}},null,this,null,sr)},t}(),oe=function(){function t(){}var n=t.prototype;return n.mf=function(){},n.Bu=function(t){},n.Cu=function(t){},n.pf=function(t,n){},t}(),se=function(){function t(){}return t.prototype.Ns=function(t,n){return sr.reject(new h("Unsupported key system configuration"))},t}();!function(t){t.fv="arraybuffer",t.vv="json",t._v="stream",t.ni="text"}(ee||(ee={}));var fe,ce=function(){function t(n){var i=this;this.us=void 0,this.us={},n instanceof t?n.asList().forEach(function(t){var n=t[0],r=t[1];i.append(n,r)}):Array.isArray(n)?n.forEach(function(t){i.append(t[0],t[1])}):n&&l.getOwnPropertyNames(n).forEach(function(t){i.append(t,n[t])})}var n=t.prototype;return n.append=function(t,n){var i=t,r=n;i=ae(i),r=he(r);var e=i.toLowerCase();if(this.us.hasOwnProperty(e)){var u=this.us[e],o=u[1];u[1]=o?o+", "+r:r}else this.us[e]=[i,r]},n.delete=function(t){var n=ae(t).toLowerCase();delete this.us[n]},n.get=function(t){var n=ae(t).toLowerCase();return this.us.hasOwnProperty(n)?this.us[n][1]:null},n.has=function(t){var n=ae(t).toLowerCase();return this.us.hasOwnProperty(n)},n.set=function(t,n){var i=t,r=(i=ae(i)).toLowerCase();this.us[r]=[i,he(n)]},n.forEach=function(t,n){for(var i in this.us)this.us.hasOwnProperty(i)&&t.call(n,this.us[i][1],i,this)},n.asList=function(){var t=[];for(var n in this.us)if(this.us.hasOwnProperty(n)){var i=this.us[n],r=i[0],e=i[1];t.push([r,e])}return t},n.wv=function(){var t={};return this.forEach(function(n,i){t[i]=n}),t},n.yv=function(t){var n=this;t.forEach(function(t,i){n.append(i,t)})},n.mv=function(t){var n=this;t.forEach(function(t,i){n.set(i,t)})},t}();function ae(t){var n=t;if("string"!=typeof n&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(n))throw new h("Invalid character in header field name");return n}function he(t){var n=t;return"string"!=typeof n&&(n=String(n)),n}function le(t,n){var i=t.indexOf(n);return-1!==i&&(function(t,n){t.splice(n,1)}(t,i),!0)}function ve(t){t.length=0}!function(t){t[t.Cs=0]="Cs",t[t.Ps=1]="Ps",t[t.Os=-1]="Os"}(fe||(fe={}));var de,_e,ye,we,pe=function(){function t(){this.Bs=!1,this.Ls=!1,this.Ms=[],this.xs=[]}var n=t.prototype;return n.Us=function(){if(!this.Bs&&!this.Ls){this.Bs=!0;for(var t=0,n=this.Ms.slice();t<n.length;t++){(0,n[t])()}this.Fs()}},n.Fs=function(){if(!this.Ls){this.Ls=!0;for(var t=0,n=this.xs.slice();t<n.length;t++){(0,n[t])()}ve(this.Ms),ve(this.xs)}},n.Hs=function(t){this.Ls||this.Ms.push(t)},n.Vs=function(t){this.Ls||le(this.Ms,t)},n.Xs=function(t){this.Ls||this.xs.push(t)},n.zs=function(t){this.Ls||le(this.xs,t)},t}(),Ee=function(){function t(){this.qs=new pe}var n=t.prototype;return n.Ws=function(){this.qs.Us()},n.Fs=function(){this.qs.Fs()},n.Gs=function(t){var n=this.qs;if(!n.Bs)if(t.Bs)n.Us();else if(!n.Ls&&!t.Ls){var i=function(){r(),n.Us()},r=function r(){t.Vs(i),t.zs(r),n.Vs(i),n.zs(r)};t.Hs(i),t.Xs(r),n.Hs(i),n.Xs(r)}},n.Ys=function(){var n=new t,i=new t,r=n.js,e=i.js,u=this.qs,o=function(){r.Bs&&e.Ls||e.Bs&&r.Ls?u.Us():r.Ls&&e.Ls&&u.Fs()};r.Hs(o),e.Hs(o),r.Xs(o),e.Xs(o),n.Gs(u),i.Gs(u);return u.Xs(function(){r.Vs(o),e.Vs(o),r.zs(o),e.zs(o)}),[n,i]},I(t,[{key:"js",get:function(){return this.qs}}]),t}();!function(t){t.DELETE="DELETE",t.GET="GET",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t.POST="POST",t.PUT="PUT"}(de||(de={})),function(t){t._l="",t.wl="manifest",t.yl="segment",t.bl="preload-hint",t.Al="content-protection"}(_e||(_e={})),function(t){t._l="",t.Tl="initialization-segment",t.Sl="fairplay-license",t.El="fairplay-certificate",t.Il="widevine-license",t.Rl="widevine-certificate",t.Nl="playready-license",t.Dl="clearkey-license",t.Cl="aes128-key"}(ye||(ye={})),function(t){t._l="",t.Pl="audio",t.Ol="video",t.ni="text",t.Bl="image"}(we||(we={}));var Ie,ge=function(t,n){this.qd=void 0,this.ol=void 0,this.Ll=void 0,this.hl=void 0,this.Ml=void 0,this.js=void 0,this._s=void 0,this.xl=void 0,this.Ul=void 0,this.dl=void 0,this.Fl=void 0,this.Hl=void 0;var i,r,e,u,o,s,f,c,a,h,l,v=t.dl;n?(i=n.qd,r=n.ol,e=n.Ll,u=n.hl,o=n.Ml,s=n.js,f=n._s,c=n.xl,a=n.Ul,h=n.Fl,l=n.Hl):(i=null,r={},e=de.GET,u=ee.ni,o=0,f=_e._l,c=ye._l,a=we._l,h=!1),this.dl=v,this.qd=t.qd||i,this.ol=new ce(t.ol||r),this.Ll=t.Ll||e,this.hl=t.hl||u,this.Ml=void 0!==t.Ml?Number(t.Ml)||0:o,this.js=t.js||s||(new Ee).js,this._s=t._s||f,this.xl=t.xl||c,this.Ul=t.Ul||a,this.Fl=void 0!==t.Fl?Boolean(t.Fl):h,this.Hl=t.Hl||l};!function(t){t.Ql="HttpOpenError",t.Kl="HttpResponseError",t.Zl="HttpTimeoutError"}(Ie||(Ie={}));var Re,ke,Te,Oe=function(t){function n(n,i){return t.call(this,n,"Error while opening "+n.dl+". Invalid URL.",i)||this}return R(n,t),I(n,[{key:"name",get:function(){return Ie.Ql}}]),n}(function(t){function n(n,i,r){var e;return(e=t.call(this,i,r)||this).Jl=void 0,e.Jl=n,e}return R(n,t),I(n,[{key:"fl",get:function(){return this.Jl}}]),n}(gt)),Se=function(){function t(){}var n=t.prototype;return n.fl=function(t){return sr.reject(new Oe(new ge(t)))},n.Vl=function(t){},n.$c=function(){},t}();new(function(t){function n(){for(var n,i=arguments.length,r=new Array(i),e=0;e<i;e++)r[e]=arguments[e];return(n=t.call.apply(t,[this].concat(r))||this).U_=new ue(new se),n.jE=new Se,n.i=new oe,n}return R(n,t),I(n,[{key:"Cr",get:function(){return this.U_}},{key:"z_",get:function(){return!1}},{key:"q_",get:function(){return!1}},{key:"G_",get:function(){return!1}},{key:"W_",get:function(){return!1}},{key:"Y_",get:function(){return this.i}},{key:"j_",get:function(){return{Q_:U}}},{key:"K_",get:function(){return"default"}},{key:"Z_",get:function(){return"unknown"}},{key:"J_",get:function(){return this.jE}}]),n}(Lr)),function(t){t[t.MPEGTS_TO_FMP4=0]="MPEGTS_TO_FMP4",t[t.RAW_AUDIO_TO_FMP4=1]="RAW_AUDIO_TO_FMP4"}(Re||(Re={})),function(t){t[t.CONFIGURATION_ERROR=1e3]="CONFIGURATION_ERROR",t[t.LICENSE_ERROR=2e3]="LICENSE_ERROR",t[t.LICENSE_INVALID_DOMAIN=2001]="LICENSE_INVALID_DOMAIN",t[t.LICENSE_INVALID_SOURCE=2002]="LICENSE_INVALID_SOURCE",t[t.LICENSE_EXPIRED=2003]="LICENSE_EXPIRED",t[t.LICENSE_INVALID_FEATURE=2004]="LICENSE_INVALID_FEATURE",t[t.SOURCE_INVALID=3e3]="SOURCE_INVALID",t[t.SOURCE_NOT_SUPPORTED=3001]="SOURCE_NOT_SUPPORTED",t[t.MANIFEST_LOAD_ERROR=4e3]="MANIFEST_LOAD_ERROR",t[t.MANIFEST_CORS_ERROR=4001]="MANIFEST_CORS_ERROR",t[t.MANIFEST_PARSE_ERROR=4002]="MANIFEST_PARSE_ERROR",t[t.MEDIA_NOT_SUPPORTED=5e3]="MEDIA_NOT_SUPPORTED",t[t.MEDIA_LOAD_ERROR=5001]="MEDIA_LOAD_ERROR",t[t.MEDIA_DECODE_ERROR=5002]="MEDIA_DECODE_ERROR",t[t.MEDIA_AVPLAYER_ERROR=5003]="MEDIA_AVPLAYER_ERROR",t[t.MEDIA_ABORTED=5004]="MEDIA_ABORTED",t[t.NETWORK_ERROR=6e3]="NETWORK_ERROR",t[t.NETWORK_TIMEOUT=6001]="NETWORK_TIMEOUT",t[t.CONTENT_PROTECTION_ERROR=7e3]="CONTENT_PROTECTION_ERROR",t[t.CONTENT_PROTECTION_NOT_SUPPORTED=7001]="CONTENT_PROTECTION_NOT_SUPPORTED",t[t.CONTENT_PROTECTION_CONFIGURATION_MISSING=7002]="CONTENT_PROTECTION_CONFIGURATION_MISSING",t[t.CONTENT_PROTECTION_CONFIGURATION_INVALID=7003]="CONTENT_PROTECTION_CONFIGURATION_INVALID",t[t.CONTENT_PROTECTION_INITIALIZATION_INVALID=7004]="CONTENT_PROTECTION_INITIALIZATION_INVALID",t[t.CONTENT_PROTECTION_CERTIFICATE_ERROR=7005]="CONTENT_PROTECTION_CERTIFICATE_ERROR",t[t.CONTENT_PROTECTION_CERTIFICATE_INVALID=7006]="CONTENT_PROTECTION_CERTIFICATE_INVALID",t[t.CONTENT_PROTECTION_LICENSE_ERROR=7007]="CONTENT_PROTECTION_LICENSE_ERROR",t[t.CONTENT_PROTECTION_LICENSE_INVALID=7008]="CONTENT_PROTECTION_LICENSE_INVALID",t[t.CONTENT_PROTECTION_KEY_EXPIRED=7009]="CONTENT_PROTECTION_KEY_EXPIRED",t[t.CONTENT_PROTECTION_KEY_MISSING=7010]="CONTENT_PROTECTION_KEY_MISSING",t[t.CONTENT_PROTECTION_OUTPUT_RESTRICTED=7011]="CONTENT_PROTECTION_OUTPUT_RESTRICTED",t[t.CONTENT_PROTECTION_INTERNAL_ERROR=7012]="CONTENT_PROTECTION_INTERNAL_ERROR",t[t.SUBTITLE_LOAD_ERROR=8e3]="SUBTITLE_LOAD_ERROR",t[t.SUBTITLE_CORS_ERROR=8001]="SUBTITLE_CORS_ERROR",t[t.SUBTITLE_PARSE_ERROR=8002]="SUBTITLE_PARSE_ERROR",t[t.VR_PLATFORM_UNSUPPORTED=9e3]="VR_PLATFORM_UNSUPPORTED",t[t.VR_PRESENTATION_ERROR=9001]="VR_PRESENTATION_ERROR",t[t.AD_ERROR=1e4]="AD_ERROR",t[t.AD_BLOCKER_DETECTED=10001]="AD_BLOCKER_DETECTED",t[t.FULLSCREEN_ERROR=11e3]="FULLSCREEN_ERROR",t[t.CACHE_SOURCE_ERROR=12e3]="CACHE_SOURCE_ERROR",t[t.CACHE_CONTENT_PROTECTION_ERROR=12001]="CACHE_CONTENT_PROTECTION_ERROR"}(ke||(ke={})),function(t){t[t.CONFIGURATION=1]="CONFIGURATION",t[t.LICENSE=2]="LICENSE",t[t.SOURCE=3]="SOURCE",t[t.MANIFEST=4]="MANIFEST",t[t.MEDIA=5]="MEDIA",t[t.NETWORK=6]="NETWORK",t[t.CONTENT_PROTECTION=7]="CONTENT_PROTECTION",t[t.SUBTITLE=8]="SUBTITLE",t[t.VR=9]="VR",t[t.AD=10]="AD",t[t.FULLSCREEN=11]="FULLSCREEN",t[t.CACHE=12]="CACHE"}(Te||(Te={})),function(t){(Te||(Te={})).fromCode=function(t){var n=v.floor(t/1e3);if(n in Te)return n;throw new h("Invalid error code: "+t)}}();var me=function(t){function n(n,i,r){var e;return(e=t.call(this,i,r)||this).code=void 0,e.code=n,e}return R(n,t),I(n,[{key:"name",get:function(){return"THEOplayerError"}},{key:"category",get:function(){return Te.fromCode(this.code)}}]),n}(gt);let be;const Ne=new class{constructor(t,n){this.encoding=t,this.fatal=(null==n?void 0:n.fatal)||!1,this.ignoreBOM=(null==n?void 0:n.ignoreBOM)||!1}decode(t,n){if(!t)return"";let i;return i=t instanceof ArrayBuffer?new w(t):new w(t.buffer,t.byteOffset,t.byteLength),String.fromCharCode.apply(void 0,i)}}("utf-8",{ignoreBOM:!0,fatal:!0});Ne.decode();let Ae=new w;function Ce(){return Ae.buffer!==be.memory.buffer&&(Ae=new w(be.memory.buffer)),Ae}function De(t,n){return Ne.decode(Ce().subarray(t,t+n))}const Pe=new Array(32).fill(void 0);Pe.push(void 0,null,!0,!1);let Le=Pe.length;function Fe(t){Le===Pe.length&&Pe.push(Pe.length+1);const n=Le;return Le=Pe[n],Pe[n]=t,n}function Ue(t){return Pe[t]}function Me(t){const n=Ue(t);return function(t){t<36||(Pe[t]=Le,Le=t)}(t),n}let We=0;function xe(t,n){const i=n(1*t.length);return Ce().set(t,i/1),We=t.length,i}let Ve=new Int32Array;function Be(){return Ve.buffer!==be.memory.buffer&&(Ve=new Int32Array(be.memory.buffer)),Ve}function Ge(t){return null==t}function He(t,n){return Ce().subarray(t/1,t/1+n)}const je=new class{constructor(t){this.encoding=t}encode(t){if(!t)return new w(0);const n=new w(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}encodeInto(t,n){const i=v.min(t.length,n.byteLength);for(let r=0;r<i;r++)n[r]=t.charCodeAt(r);return{read:i,written:i}}}("utf-8"),Ke="function"==typeof je.encodeInto?function(t,n){return je.encodeInto(t,n)}:function(t,n){const i=je.encode(t);return n.set(i),{read:t.length,written:i.length}};function qe(){const t={wbg:{}};return t.wbg.__wbg_createoutputdata_9b1e2c088ca81233=function(t,n,i,r,e,u,o,s){let f,c,a,h;return 0!==t&&(f=He(t,n).slice(),be.__wbindgen_export_1(t,1*n)),0!==i&&(c=He(i,r).slice(),be.__wbindgen_export_1(i,1*r)),0!==e&&(a=He(e,u).slice(),be.__wbindgen_export_1(e,1*u)),0!==o&&(h=He(o,s).slice(),be.__wbindgen_export_1(o,1*s)),Fe({video_init:f,audio_init:c,video_media:a,audio_media:h})},t.wbg.__wbg_createtimestampwithbase_f6686617a63bb87a=function(t,n,i){return Fe({low:t>>>0,high:n>>>0,base:i>>>0})},t.wbg.__wbg_createoutputmetadata_252c58aa8d5fa3d0=function(t,n,i,r,e,u,o,s,f,c,a,h,l){let v,d,_,y;var w,p,E,I,g,R,k,T;return 0!==i&&(v=De(i,r).slice(),be.__wbindgen_export_1(i,1*r)),0!==e&&(d=De(e,u).slice(),be.__wbindgen_export_1(e,1*u)),0!==o&&(_=He(o,s).slice(),be.__wbindgen_export_1(o,1*s)),0!==f&&(y=He(f,c).slice(),be.__wbindgen_export_1(f,1*c)),Fe((w=16777215===t?void 0:t,p=16777215===n?void 0:n,E=v,I=d,g=_,R=y,k=Me(a),T=Me(h),{video_pid:w,audio_pid:p,video_codec:E,audio_codec:I,sps_nal:g,pps_nal:R,first_decode_timestamp:k,first_presentation_timestamp:T,program_map_table_pid:16777215===l?void 0:l}))},t.wbg.__wbg_createoutput_fc07ea691a3fd678=function(t,n){var i,r;return Fe((i=Me(t),r=Me(n),{data:i,metadata:r}))},t.wbg.__wbindgen_string_new=function(t,n){return Fe(De(t,n))},t.wbg.__wbg_new_693216e109162396=function(){return Fe(new a)},t.wbg.__wbg_stack_0ddaca5d1abfb52f=function(t,n){const i=function(t,n,i){if(void 0===i){const i=je.encode(t),r=n(i.length);return Ce().subarray(r,r+i.length).set(i),We=i.length,r}let r=t.length,e=n(r);const u=Ce();let o=0;for(;o<r;o++){const n=t.charCodeAt(o);if(n>127)break;u[e+o]=n}if(o!==r){0!==o&&(t=t.slice(o)),e=i(e,r,r=o+3*t.length);const n=Ce().subarray(e+o,e+r);o+=Ke(t,n).written}return We=o,e}(Ue(n).stack,be.__wbindgen_export_0,be.__wbindgen_export_2),r=We;Be()[t/4+1]=r,Be()[t/4+0]=i},t.wbg.__wbg_error_09919627ac0992f5=function(t,n){try{console.error(De(t,n))}finally{be.__wbindgen_export_1(t,n)}},t.wbg.__wbindgen_object_drop_ref=function(t){Me(t)},t.wbg.__wbg_data_7bf55e617ef7238d=function(t,n){const i=xe(Ue(n).data,be.__wbindgen_export_0),r=We;Be()[t/4+1]=r,Be()[t/4+0]=i},t.wbg.__wbg_metadata_9a68ab748610bcba=function(t){const n=Ue(t).metadata;return Ge(n)?0:Fe(n)},t.wbg.__wbg_spsnal_a8d715c341c8c8e6=function(t,n){const i=Ue(n).sps_nal;var r=Ge(i)?0:xe(i,be.__wbindgen_export_0),e=We;Be()[t/4+1]=e,Be()[t/4+0]=r},t.wbg.__wbg_ppsnal_d89c06011ececc67=function(t,n){const i=Ue(n).pps_nal;var r=Ge(i)?0:xe(i,be.__wbindgen_export_0),e=We;Be()[t/4+1]=e,Be()[t/4+0]=r},t.wbg.__wbg_videopid_638bbc7abd4a1790=function(t){const n=Ue(t).video_pid;return Ge(n)?16777215:n},t.wbg.__wbg_audiopid_f1243b729485146c=function(t){const n=Ue(t).audio_pid;return Ge(n)?16777215:n},t.wbg.__wbg_programmaptablepid_856db66c868850b0=function(t){const n=Ue(t).program_map_table_pid;return Ge(n)?16777215:n},t}async function Xe(t){void 0===t&&(t=new URL("theomux_bg.wasm",void 0));const n=qe();("string"==typeof t||"function"==typeof Request&&t instanceof Request||"function"==typeof URL&&t instanceof URL)&&(t=fetch(t));const{instance:i,module:r}=await async function(t,n){if("function"==typeof Response&&t instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(t,n)}catch(n){if("application/wasm"==t.headers.get("Content-Type"))throw n;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",n)}const i=await t.arrayBuffer();return await WebAssembly.instantiate(i,n)}{const i=await WebAssembly.instantiate(t,n);return i instanceof WebAssembly.Instance?{instance:i,module:t}:i}}(await t,n);return function(t,n){return be=t.exports,Xe.__wbindgen_wasm_module=n,Ve=new Int32Array,Ae=new w,be.__wbindgen_start(),be}(i,r)}async function Ye(t){"string"==typeof t&&(t=new URL(t));const n=async function(t){if("http:"===t.protocol||"https:"===t.protocol){const n=await fetch(t.href);if("function"==typeof WebAssembly.compileStreaming)try{return await WebAssembly.compileStreaming(n)}catch(t){if("application/wasm"===n.headers.get("Content-Type"))throw t;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",t)}const i=await n.arrayBuffer();return await WebAssembly.compile(i)}{const i=await(n=t.href,new Promise((t,i)=>{const r=new p;r.onload=(()=>{t(r.response||new ArrayBuffer(0))}),r.onerror=(()=>{i(new h(`Failed to fetch "${n}", status ${r.status}`))}),r.open("GET",n,!0),r.responseType="arraybuffer",r.send()}));return await WebAssembly.compile(i)}var n}(t);return await Xe(n),new ze(n)}class ze{constructor(t){this.ae=t}mpegts_to_fmp4(t){return function(t){try{const r=be.__wbindgen_add_to_stack_pointer(-16);be.mpegts_to_fmp4(r,Fe(t));var n=Be()[r/4+0],i=Be()[r/4+1];if(Be()[r/4+2])throw Me(i);return Me(n)}finally{be.__wbindgen_add_to_stack_pointer(16)}}(t)}raw_audio_to_fmp4(t){return function(t){try{const r=be.__wbindgen_add_to_stack_pointer(-16);be.raw_audio_to_fmp4(r,Fe(t));var n=Be()[r/4+0],i=Be()[r/4+1];if(Be()[r/4+2])throw Me(i);return Me(n)}finally{be.__wbindgen_add_to_stack_pointer(16)}}(t)}async restart(){await Xe(this.ae)}}var $e,Ze,Je,Qe=new URL("./THEOplayer.transmux.wasm",e.href);$e=function(){return Ye(Qe)},Je=sr.resolve($e()).then(function(n){Ze=n,Je=void 0,t.postMessage({$Tt:"5.2.0"})},function(n){var i=n,r={success:!1,error:i.message,errorCode:i instanceof me?i.code:ke.MEDIA_DECODE_ERROR};t.postMessage(r)}),t.addEventListener("message",function(n){var i=n.data.id;(function(n){var i,r,e,u,o,s;return Mr.async(function(f){for(;;)switch(f.prev=f.next){case 0:if(void 0===Je){f.next=3;break}return f.next=3,Mr.awrap(Je);case 3:if(e=n.id,n.type!==Re.MPEGTS_TO_FMP4){f.next=8;break}u=Ze.mpegts_to_fmp4(n.input),f.next=13;break;case 8:if(n.type!==Re.RAW_AUDIO_TO_FMP4){f.next=12;break}u=Ze.raw_audio_to_fmp4(n.input),f.next=13;break;case 12:throw new a("Unknown request type: "+n.type);case 13:o={success:!0,requestId:e,output:u},s=[null==(i=n.input.metadata)?void 0:i.sps_nal,null==(r=n.input.metadata)?void 0:r.pps_nal,n.input.data,u.data.video_init,u.data.audio_init,u.data.video_media,u.data.audio_media].filter(F).map(function(t){return t.buffer}),t.postMessage(o,s);case 16:case"end":return f.stop()}},null,null,null,sr)})(n.data).catch(function(n){var r=n,e={success:!1,requestId:i,error:r.message,errorCode:r instanceof me?r.code:ke.MEDIA_DECODE_ERROR};t.postMessage(e)})})}()}("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,y=n.parseFloat,_=n.isNaN,d=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",x=n.PromiseRejectionEvent,V=n.CustomEvent;function B(n){return new x(W,{reason:n,promise:N.reject(n).catch((function(){})),cancelable:!0})}function H(n){var t=new V(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 x(W,{reason:t,promise:n});return W===r.type&&t===r.reason}catch(n){}return!1}()?B:function(){try{var n="error",t=new V(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),yn=cn.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),_n=cn.match(/Firefox\/([0-9\.]+)/i),dn=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.qn=/Windows NT/i.test(cn),this.Wn=vn?y(vn[1]):0,this.Gn=/Android/i.test(cn),this.Yn=ln?y(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=/EOSSTB/i.test(cn),this.ri=(this.Qn||this.Kn||this.Zn||this.Jn)&&!this.jn,this.ei=pn?y(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?y(wn[1]):0,this.Si=/webos|web0s/i.test(cn),this.Ei=/Edge\/\d+/i.test(cn),this.Ii=/Trident/i.test(cn),this.Ri=this.Ii&&!n.ActiveXObject&&"ActiveXObject"in n,this.Ni=/Vivaldi/i.test(cn),this.Di=/Firefox/i.test(cn)&&!/Seamonkey/i.test(cn),this.Ci=_n?y(_n[1]):0,this.Pi=/Safari/i.test(cn)&&!/Chrome/i.test(cn)&&!this.jn&&!this.Ai,this.Oi=yn?y(yn[2]):0,this.Bi=Boolean(dn),this.Li=dn?y(dn[1]):0,this.Mi=/CrKey/.test(cn),this.xi=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv)\b/i.test(cn),this.Ui="web"===J.Un,this.Fi="web"===J.xn,this.Hi=this.Fi||this.Ui,this.Vi="web"===J.Fn,this.Xi="web"===J.Hn,this.zi="web"===J.Vn}return rn(t,[{key:"qi",get:function(){return this.Xn}},{key:"Wi",get:function(){return this.zn}},{key:"Gi",get:function(){return this.qn}},{key:"Yi",get:function(){return this.Wn}},{key:"ji",get:function(){return this.Gn}},{key:"Qi",get:function(){return this.Yn}},{key:"Ki",get:function(){return this.jn}},{key:"Zi",get:function(){return this.Qn}},{key:"Ji",get:function(){return this.Kn}},{key:"$i",get:function(){return this.Zn}},{key:"ir",get:function(){return this.Jn}},{key:"rr",get:function(){return this.ri}},{key:"dr",get:function(){return this.ei}},{key:"_r",get:function(){return this.ni}},{key:"gr",get:function(){return this.$n}},{key:"wr",get:function(){return this.oi}},{key:"yr",get:function(){return this.ai}},{key:"pr",get:function(){return this.ci}},{key:"Ar",get:function(){return this.wi}},{key:"Tr",get:function(){return this.di}},{key:"Sr",get:function(){return this._i}},{key:"Er",get:function(){return this.Ai}},{key:"Ir",get:function(){return this.Ti}},{key:"Rr",get:function(){return this.Si}},{key:"Nr",get:function(){return this.Ei}},{key:"Dr",get:function(){return this.Ii}},{key:"Cr",get:function(){return this.Ri}},{key:"Pr",get:function(){return this.Ni}},{key:"Or",get:function(){return this.Di}},{key:"Br",get:function(){return this.Ci}},{key:"Lr",get:function(){return this.Pi}},{key:"Mr",get:function(){return this.Oi}},{key:"Ur",get:function(){return this.Bi}},{key:"Fr",get:function(){return this.Li}},{key:"Hr",get:function(){return this.Mi}},{key:"Vr",get:function(){return this.xi}},{key:"Xr",get:function(){return!(!this.Rr&&!this.Er)&&this.Ar<=56}},{key:"zr",get:function(){return this.Ui}},{key:"qr",get:function(){return this.Fi}},{key:"Wr",get:function(){return this.Hi}},{key:"Gr",get:function(){return this.Vi}},{key:"Yr",get:function(){return this.Xi}},{key:"jr",get:function(){return this.zi}},{key:"Qr",get:function(){return this.gi}}]),t}();En.Kr=new En;var In=En.Kr,gn={}.toString;function Rn(n){return null!=n}Array.isArray;var Tn=function(){},Sn=!(In.Dr&&!In.Cr),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 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(n){}function Ln(n,t,r){this.low=0|n,this.high=0|t,this.unsigned=!!r}function Un(n){return!0===(n&&n.re)}function Mn(n){var t=l.clz32(n&-n);return n?31-t:t}Ln.prototype.re,h.defineProperty(Ln.prototype,"re",{value:!0}),Ln.isLong=Un;var Wn={},xn={};function Vn(n,t){var r,i,e;return t?(e=0<=(n>>>=0)&&n<256)&&(i=xn[n])?i:(r=Hn(n,0,!0),e&&(xn[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(_(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=Vn,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=Vn(1<<24),$n=Vn(0);Ln.ZERO=$n;var Zn=Vn(0,!0);Ln.UZERO=Zn;var Jn=Vn(1);Ln.ONE=Jn;var Qn=Vn(1,!0);Ln.UONE=Qn;var nt=Vn(-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.oe=1]="oe",st[st.fe=2]="fe",st[st._e=3]="_e",st[st.we=4]="we",st[st.ye=9]="ye";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.me=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.pe=n}var t=n.prototype;return t.ke=function(n){return this.pe.isEqualNode(n.pe)},t.Ae=function(t){return new n(this.pe.cloneNode(t))},rn(n,[{key:"ue",get:function(){return ft.fe}},{key:"Te",get:function(){var n;return null!=(n=this.pe.localName)?n:Rt(this.pe.nodeName)}},{key:"Se",get:function(){return this.pe.nodeName}},{key:"Ee",get:function(){var n;return null!=(n=this.pe.namespaceURI)?n:void 0}},{key:"Ie",get:function(){var n;return null!=(n=this.pe.prefix)?n:void 0}},{key:"Re",get:function(){return this.pe.nodeValue}}]),n}(),yt=function(){function n(n){this.Ne=void 0,this.De=n}var t=n.prototype;return t.Ce=function(n){return this.Pe.filter((function(t){return It(t)&&t.Oe===n}))},t.Be=function(n,t){return this.Pe.filter((function(r){return It(r)&&r.Te===t&&r.Ee===n}))},t.Le=function(n){this.De.appendChild(n.Me),this.Ne&&this.Ne.push(n)},t.ke=function(n){return this.De.isEqualNode(n.Me)},rn(n,[{key:"Pe",get:function(){return void 0===this.Ne&&(this.Ne=function(n){for(var t=[],r=0;r<n.length;r++){var i=gt(n.item(r));i&&t.push(i)}return t}(this.De.childNodes)),this.Ne}},{key:"xe",get:function(){return this.Pe.filter(It)}},{key:"Me",get:function(){return this.De}}]),n}(),_t=function(n){function t(t){return n.call(this,t)}un(t,n);var r=t.prototype;return r.Ue=function(n){if(this.De.hasAttribute(n))return this.De.getAttribute(n)},r.Fe=function(n,t){if(this.De.hasAttributeNS(n,t))return this.De.getAttributeNS(n,t)},r.He=function(n){this.De.removeAttribute(n)},r.Ve=function(n,t){this.De.removeAttributeNS(n,t)},r.Xe=function(n,t){this.De.setAttribute(n,t)},r.ze=function(n,t,r){this.De.setAttributeNS(n,t,r)},r.Ae=function(n){return new t(this.De.cloneNode(n))},rn(t,[{key:"ue",get:function(){return ft.oe}},{key:"Te",get:function(){var n;return null!=(n=this.De.localName)?n:Rt(this.De.nodeName)}},{key:"Ee",get:function(){var n;return null!=(n=this.De.namespaceURI)?n:void 0}},{key:"Ie",get:function(){var n;return null!=(n=this.De.prefix)?n:void 0}},{key:"Oe",get:function(){return this.De.nodeName}},{key:"qe",get:function(){return function(n){for(var t=[],r=0;r<n.length;r++)t.push(new vt(n.item(r)));return t}(this.De.attributes)}},{key:"We",get:function(){return this.De.textContent}}]),t}(yt),dt=function(){function n(n){this.De=n}return n.prototype.ke=function(n){return this.Ge===n.Ge},rn(n,[{key:"Ge",get:function(){return this.De.nodeValue}},{key:"Me",get:function(){return this.De}}]),n}(),wt=function(n){function t(t){return n.call(this,t)}return un(t,n),t.prototype.Ae=function(n){return new t(this.De.cloneNode(n))},rn(t,[{key:"ue",get:function(){return ft._e}}]),t}(dt),pt=function(n){function t(t){return n.call(this,t)}return un(t,n),t.prototype.Ae=function(n){return new t(this.De.cloneNode(n))},rn(t,[{key:"ue",get:function(){return ft.we}}]),t}(dt),Et=function(n){function t(t){return n.call(this,t)}return un(t,n),t.prototype.Ae=function(n){return new t(this.De.cloneNode(n))},rn(t,[{key:"ue",get:function(){return ft.ye}},{key:"Ye",get:function(){return new _t(this.De.documentElement)}}]),t}(yt);function It(n){return function(n){return 1===n.ue}(n)}function gt(n){switch(n.nodeType){case ft.oe:return new _t(n);case ft._e:return new wt(n);case ft.we: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 xt(n){return n>=48&&n<=57}function Vt(n){return xt(n)||Wt(n)}function Bt(n){return xt(n)||n>=65&&n<=70||n>=97&&n<=102}function Ht(n){return Mt(n)?n+32:n}function Gt(n){return xt(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 y=v[l];y>=i&&y<h&&(h=y)}var _=a+1;h-i>Jt((zt-e)/_)&&nr("overflow"),e+=(h-i)*_,i=h;for(var d=0,w=n;d<w.length;d++){var p=w[d];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,_,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 yr(){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 _r(n){return[37,jt(n>>4),jt(15&n)]}function dr(n){return function(n){return n>=0&&n<=31}(n)||n>126}function wr(n){return dr(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,_r(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=yr());)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 y=0;c<u;){var _=null;if(y>0){if(!("."===n[c]&&y<4))throw new a;c+=1}if(!bt.test(n[c]))throw new a;for(;c<u&&bt.test(n[c]);){var d=v(n[c],10);if(null===_)_=d;else{if(0===_)throw new a;if((_=10*_+d)>255)throw new a}c+=1}o[f]=o[f]<<8|_,2!==(y+=1)&&4!==y||(f+=1)}if(4!==y)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={je: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{je:2,Qe: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,dr);return""===t?mr:{je: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?{je:1,Qe:i}:""===r?mr:{je:0,Ke:r}}function Dr(n){switch(n.je){case 0:return n.Ke;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.Qe);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.Qe)+"]";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||Vt(t)?r.push(e):r.push.apply(r,_r(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(Vr(u))if(Br(u)||e===r-1)i.push(xr);else{var o=n.charCodeAt(e+1);Br(o)?(i.push(u,o),e++):i.push(xr)}else i.push(u)}return n.slice(0,t)+Xt(i)}(t,r.index):t}var xr=65533,Vr=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.Ze.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.Ze,Fr(t))}function Kr(n){if(n.Je){var t=Lr(n.Ze);""===t&&(t=null),n.Je.Je.$e=t}}var qr=function(){function n(n){if(void 0===n&&(n=void 0),this.Je=null,null==n)this.Ze=[];else if("object"==typeof n||"function"==typeof n)if((u=n)instanceof qr&&Ft(u.Ze)&&(!Lt||u[Symbol.iterator]===Xr))this.Ze=n.Ze.slice();else if(function(n){return null!=n&&(!!Ft(n)||!!Lt&&"function"==typeof n[Symbol.iterator])}(n)){this.Ze=[];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.Ze.push([Wr(i[0]),Wr(i[1])])}}else for(var e in this.Ze=[],n)h.prototype.hasOwnProperty.call(n,e)&&this.Ze.push([Wr(e),Wr(n[e])]);else(n=Wr(n)).length>0&&"?"===n[0]&&(n=n.slice(1)),this.Ze=Fr(n);var u}var t=n.prototype;return t.append=function(n,t){n=Wr(n),t=Wr(t),this.Ze.push([n,t]),Kr(this)},t.delete=function(n){n=Wr(n);for(var t=this.Ze,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.Ze,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.Ze,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.Ze,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.Ze,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.Ze,Hr),Kr(this)},t.toString=function(){return Lr(this.Ze)},t.entries=function(){return new Zr(this.Ze,zr)},t.keys=function(){return new Zr(this.Ze,Yr)},t.values=function(){return new Zr(this.Ze,$r)},t.forEach=function(n){var t=this;this.Ze.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.tu=0,this.Ze=n,this.nu=t}return n.prototype.next=function(){return this.tu<this.Ze.length?{done:!1,value:this.nu(this.Ze[this.tu++])}:{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.uu)}function oi(n){return""!==n.ou||""!==n.au}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.fu;0!==t.length&&("file"===n.uu&&1===t.length&&ai(t[0])||t.pop())}function li(n){return null===n.vu||mr===n.vu||n.du||"file"===n.uu}var vi=-1,yi=/\t|\n|\r/g,_i=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function di(n,t,r,i){void 0===r&&(r=null),void 0===i&&(i=null),r||(r=new pi,n=n.replace(_i,""));var e=null!==i?i:0;t=t||null;for(var u=[],o=!1,f=!1,s=!1,c=tr(n=n.replace(yi,"")),h=c.length,l=0;l<=h;){var y=l<h?c[l]:vi;switch(e){case 0:if(!Wt(y)){if(null===i){u.length=0,e=2;continue}throw new a("Invalid scheme")}u.push(Ht(y)),e=1;break;case 1:if(Vt(y)||43===y||45===y||46===y)u.push(Ht(y));else{if(58!==y){if(null===i){u.length=0,e=2,l=0;continue}throw new a("Invalid scheme")}var _=sr(u);if(null!==i){if(ei(r.uu)&&!ei(_))return;if(!ei(r.uu)&&ei(_))return;if((oi(r)||null!==r._u)&&"file"===_)return;if("file"===r.uu&&(r.vu===mr||null===r.vu))return}if(r.uu=_,null!==i)return void(ui(r)&&r._u===Qr[r.uu]&&(r._u=null));u.length=0,"file"===r.uu?e=13:ui(r)&&t&&t.uu===r.uu?e=3:ui(r)?e=7:47===c[l+1]?(e=4,l+=1):(r.du=!0,r.fu.push(""),e=18)}break;case 2:if(!t||t.du&&35!==y)throw new a("Invalid scheme");t.du&&35===y?(r.uu=t.uu,r.fu=t.fu.slice(),r.$e=t.$e,r.wu="",r.du=!0,e=20):"file"!==t.uu?(e=5,l-=1):(e=13,l-=1);break;case 3:47===y&&47===c[l+1]?e=8:(e=5,l-=1);break;case 4:47===y?e=9:(e=17,l-=1);break;case 5:r.uu=t.uu,vi===y?(r.ou=t.ou,r.au=t.au,r.vu=t.vu,r._u=t._u,r.fu=t.fu.slice(),r.$e=t.$e):47===y?e=6:63===y?(r.ou=t.ou,r.au=t.au,r.vu=t.vu,r._u=t._u,r.fu=t.fu.slice(),r.$e="",e=19):35===y?(r.ou=t.ou,r.au=t.au,r.vu=t.vu,r._u=t._u,r.fu=t.fu.slice(),r.$e=t.$e,r.wu="",e=20):92===y&&ui(r)?e=6:(r.ou=t.ou,r.au=t.au,r.vu=t.vu,r._u=t._u,r.fu=t.fu.slice(),r.fu.pop(),e=17,l-=1);break;case 6:!ui(r)||47!==y&&92!==y?47===y?e=9:(r.ou=t.ou,r.au=t.au,r.vu=t.vu,r._u=t._u,e=17,l-=1):e=8;break;case 7:if(47!==y||47!==c[l+1]){e=8;continue}e=8,l+=1;break;case 8:47!==y&&92!==y&&(e=9,l-=1);break;case 9:if(64===y){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 p=sr(Rr(w,Er));s?r.au+=p:r.ou+=p}else s=!0}u.length=0}else if(vi===y||47===y||63===y||35===y||ui(r)&&92===y){if(o&&0===u.length)throw new a("Invalid host");l-=u.length+1,u.length=0,e=10}else u.push(y);break;case 10:case 11:if(null!==i&&"file"===r.uu)l-=1,e=15;else if(58!==y||f)if(vi===y||47===y||63===y||35===y||ui(r)&&92===y){if(l-=1,ui(r)&&0===u.length)throw new a("Invalid host");if(null!==i&&0===u.length&&(oi(r)||null!==r._u))return;var E=Cr(sr(u),ui(r));if(r.vu=E,u.length=0,e=16,null!==i)return}else 91===y?f=!0:93===y&&(f=!1),u.push(y);else{if(0===u.length)throw new a("Invalid host");var I=Cr(sr(u),ui(r));if(r.vu=I,u.length=0,e=12,11===i)return}break;case 12:if(xt(y))u.push(y);else{if(!(vi===y||47===y||63===y||35===y||ui(r)&&92===y||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._u=g===Qr[r.uu]?null:g,u.length=0}if(null!==i)return;e=16,l-=1}break;case 13:r.uu="file",47===y||92===y?e=14:t&&"file"===t.uu?vi===y?(r.vu=t.vu,r.fu=t.fu.slice(),r.$e=t.$e):63===y?(r.vu=t.vu,r.fu=t.fu.slice(),r.$e="",e=19):35===y?(r.vu=t.vu,r.fu=t.fu.slice(),r.$e=t.$e,r.wu="",e=20):(fi(c.slice(l))||(r.vu=t.vu,r.fu=t.fu.slice(),hi(r)),e=17,l-=1):(e=17,l-=1);break;case 14:47===y||92===y?e=15:(t&&"file"===t.uu&&!fi(c.slice(l))&&(ai(t.fu[0])?r.fu.push(t.fu[0]):r.vu=t.vu),e=17,l-=1);break;case 15:if(vi===y||47===y||92===y||63===y||35===y)if(l-=1,null===i&&ci(u))e=17;else if(0===u.length){if(r.vu=mr,null!==i)return;e=16}else{var R=Cr(sr(u),ui(r));if(0===R.je&&"localhost"===R.Ke&&(R=mr),r.vu=R,null!==i)return;u.length=0,e=16}else u.push(y);break;case 16:ui(r)?(e=17,47!==y&&92!==y&&(l-=1)):null===i&&63===y?(r.$e="",e=19):null===i&&35===y?(r.wu="",e=20):vi!==y&&(e=17,47!==y&&(l-=1));break;case 17:if(vi===y||47===y||ui(r)&&92===y||null===i&&(63===y||35===y)){var T=sr(u);if(ii(T)?(hi(r),47===y||ui(r)&&92===y||r.fu.push("")):!ri(T)||47===y||ui(r)&&92===y?ri(T)||("file"===r.uu&&0===r.fu.length&&ci(u)&&(mr!==r.vu&&null!==r.vu&&(r.vu=mr),u[1]=58,T=sr(u)),r.fu.push(T)):r.fu.push(""),u.length=0,"file"===r.uu&&(vi===y||63===y||35===y))for(;r.fu.length>1&&""===r.fu[0];)r.fu.shift();63===y?(r.$e="",e=19):35===y&&(r.wu="",e=20)}else u.push.apply(u,Rr(y,pr));break;case 18:63===y?(r.$e="",e=19):35===y?(r.wu="",e=20):vi!==y&&(r.fu[0]+=sr(Rr(y,dr)));break;case 19:null===i&&35===y?(r.wu="",e=20):vi!==y&&(r.$e+=sr(Rr(y,ui(r)?gr:Ir)));break;case 20:vi===y||0===y||(r.wu+=sr(Rr(y,wr)))}l++}return r}function wi(n,t,r,i){try{di(n,t,r,i)}catch(n){}}var pi=function(){this.uu="",this.ou="",this.au="",this.vu=null,this._u=null,this.fu=[],this.$e=null,this.wu=null,this.du=!1};function Ei(n){switch(n.uu){case"blob":var t;try{t=di(n.fu[0],null)}catch(n){return Jr}return Ei(t);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return r=n.uu,i=n.vu,e=n._u,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.Je)e=t.Je;else try{e=di(String(t),null)}catch(n){throw new a("Invalid base URL: "+n.message)}try{i=di(String(n),e)}catch(n){throw new a("Invalid URL: "+n.message)}var u=i.$e;this.Je=i,this.$e=function(n){var t=new qr;return null!==n&&jr(t,n),t}(u),this.$e.Je=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.uu+":";if(null!==n.vu?(r+="//",oi(n)&&(r+=n.ou,""!==n.au&&(r+=":"+n.au),r+="@"),r+=Dr(n.vu),null!==n._u&&(r+=":"+n._u)):null===n.vu&&"file"===n.uu&&(r+="//"),n.du)r+=n.fu[0];else for(var i=0,e=n.fu;i<e.length;i++)r+="/"+e[i];return null!==n.$e&&(r+="?"+n.$e),t||null===n.wu||(r+="#"+n.wu),r}(this.Je)},set:function(n){var t;try{t=di(String(n),null)}catch(n){throw new a("Invalid URL: "+n.message)}this.Je=t,Gr(this.$e);var r=this.Je.$e;null!==r&&jr(this.$e,r)}},{key:"origin",get:function(){return Ei(this.Je)}},{key:"protocol",get:function(){return this.Je.uu+":"},set:function(n){wi(n+":",null,this.Je,0)}},{key:"username",get:function(){return this.Je.ou},set:function(n){li(this.Je)||(this.Je.ou=Tr(n,Er))}},{key:"password",get:function(){return this.Je.au},set:function(n){li(this.Je)||(this.Je.au=Tr(n,Er))}},{key:"host",get:function(){var n=this.Je,t=n.vu;if(null===t)return"";var r=n._u,i=Dr(t);return null!==r&&(i+=":"+r),i},set:function(n){this.Je.du||wi(n,null,this.Je,10)}},{key:"hostname",get:function(){var n=this.Je.vu;return null===n?"":Dr(n)},set:function(n){this.Je.du||wi(n,null,this.Je,11)}},{key:"port",get:function(){var n=this.Je._u;return null===n?"":""+n},set:function(n){li(this.Je)||(""===n?this.Je._u=null:wi(n,null,this.Je,12))}},{key:"pathname",get:function(){var n=this.Je.fu;return this.Je.du?n[0]:0===n.length?"":"/"+n.join("/")},set:function(n){this.Je.du||(this.Je.fu.length=0,wi(n,null,this.Je,16))}},{key:"search",get:function(){var n=this.Je.$e;return null===n||""===n?"":"?"+n},set:function(n){n=Wr(n);var t=this.Je;if(""===n)return t.$e=null,void Gr(this.$e);"?"===n[0]&&(n=n.slice(1)),t.$e="",wi(n,null,t,19),jr(this.$e,n)}},{key:"searchParams",get:function(){return this.$e}},{key:"hash",get:function(){var n=this.Je.wu;return null===n||""===n?"":"#"+n},set:function(n){""!==n?("#"===n[0]&&(n=n.slice(1)),this.Je.wu="",wi(n,null,this.Je,20)):this.Je.wu=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.yu=void 0,this.mu=!1,this.qi=ki,this.wr=!1,this.pu=!0}var r=n.prototype;return r.Au=function(){return 0},r.bu=function(n,t){return!0},r.Tu=function(n){return n>=.3333333333333333},rn(n,[{key:"Su",get:function(){return void 0===this.yu&&(this.yu=this.Au()),this.yu}},{key:"Eu",get:function(){return!In.Vr}},{key:"Iu",get:function(){}},{key:"Ru",get:function(){return t.devicePixelRatio||1}},{key:"Nu",get:function(){return bi}},{key:"Du",get:function(){return!1}},{key:"Cu",get:function(){return!0}},{key:"Pu",get:function(){return In.Lr||In.rr}},{key:"Ou",get:function(){return!0}},{key:"Bu",get:function(){return!0}},{key:"Lu",get:function(){return!1}},{key:"Mu",get:function(){}},{key:"xu",get:function(){return!0}},{key:"Uu",get:function(){return!1}},{key:"Fu",get:function(){return!1}}]),n}(),Ni=function(){var n=Si();if(!n)return!1;var t=n.muted;return n.muted=!t,n.muted!==t}();!function(){if(In.$i)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).Hu=t,r.Hu&&(r.mu=r.Hu.mu,r.qi=r.Hu.qi,r.pu=Ni&&r.Hu.pu),r}un(t,n);var r=t.prototype;return r.Au=function(){return this.Hu?this.Hu.Su:n.prototype.Au.call(this)},r.bu=function(t,r){return this.Hu?this.Hu.bu(t,r):n.prototype.bu.call(this,t,r)},r.Tu=function(t){return this.Hu?this.Hu.Tu(t):n.prototype.Tu.call(this,t)},rn(t,[{key:"Mu",get:function(){var n;return null==(n=this.Hu)?void 0:n.Mu}},{key:"xu",get:function(){var n,t;return null==(t=null==(n=this.Hu)?void 0:n.xu)||t}}]),t}(mi),Ci=function(n){function t(t){var r;return(r=n.call(this,t)||this).mu=!0,r.wr=!0,r}return un(t,n),rn(t,[{key:"Lu",get:function(){return In.rr}}]),t}(Ai),Di=function(n){function t(){return n.apply(this,arguments)}return un(t,n),t.prototype.Au=function(){return Ii.MediaSource?n.prototype.Au.call(this):1},rn(t,[{key:"Lu",get:function(){return!0}}]),t}(Ci),Pi=function(n){function r(){return n.apply(this,arguments)}return un(r,n),r.prototype.bu=function(t,r){return n.prototype.bu.call(this,t,r)},rn(r,[{key:"Du",get:function(){return In.Ir<3}},{key:"Cu",get:function(){return In.Ir>=3}},{key:"Iu",get:function(){var n=this;return t.tizen&&!this.Vu&&t.tizen.systeminfo.getPropertyValue("DISPLAY",(function(t){var r=t.resolutionWidth,i=t.resolutionHeight;1===r&&1===i||(n.Vu={width:r,height:i})})),this.Vu}},{key:"Uu",get:function(){return In.Ir<3}},{key:"Fu",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.bu=function(n,t){if(n&&n.Xu&&t&&t.Xu){var r=Ui(n.Xu,"mp4a.40.2")&&Ui(t.Xu,"mp4a.40.5"),i=Ui(n.Xu,"mp4a.40.5")&&Ui(t.Xu,"mp4a.40.2"),e=Ui(n.Xu,"mp4a.40.2")&&Ui(t.Xu,"mp4a.40.34"),u=Ui(n.Xu,"mp4a.40.34")&&Ui(t.Xu,"mp4a.40.2"),o=Ui(n.Xu,"mp4a.40.5")&&Ui(t.Xu,"mp4a.40.34"),f=Ui(n.Xu,"mp4a.40.34")&&Ui(t.Xu,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},rn(t,[{key:"Mu",get:function(){if(In.Wi)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.Tu=function(n){return n>=2},t}(Fi),Wi=function(n){function t(){var t;return(t=n.call(this)||this).mu=In.Mr>=11,t.pu=In.Lr&&!(In.rr&&In.Mr<10),t}return un(t,n),t}(Fi),xi=function(n){function r(){return n.apply(this,arguments)}return un(r,n),rn(r,[{key:"Iu",get:function(){var n=this;return t.webOS&&!this.Vu&&t.webOS.deviceInfo((function(t){n.Vu={width:t.screenWidth,height:t.screenHeight}})),this.Vu}},{key:"Ou",get:function(){return!1}},{key:"Fu",get:function(){return!0}}]),r}(Ai),Vi=function(n){function t(){return n.apply(this,arguments)}return un(t,n),rn(t,[{key:"xu",get:function(){return!In.Gi||(In.Tr?92!==In.Sr:In.Ar>=100)}}]),t}(Fi),Bi=function(n){function t(){return n.apply(this,arguments)}return un(t,n),rn(t,[{key:"Lu",get:function(){return!0}}]),t}(Ai),Hi=function(){function t(){var t;this.Wu=new lt,this.Gu=new Gi,this.Yu=(t=In.Or?new Li:In.Nr||In.Dr?new Mi:In.Lr?new Wi:In.pr?new Vi:new Fi,In.rr?new Di(t):In.wr?new Ci(t):In.Er?new Pi(t):In.Rr?new xi(t):In.Wi?new Bi(t):new Ai(t)),this.ju=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.Zr=function(){return n.performance.now()}:this.Zr=ot}var r=t.prototype;return r.Qu=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.Ku=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.Zu=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.Ju=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.$r=function(n,t){return u(n,t)},r.$u=function(n,t){return f(n,t)},r.Jr=function(n){o(n)},r.ns=function(n){s(n)},r.me=function(n){return this.Wu.me(n)},r.rs=function(){return this.us.rs()},r.hs=function(){return this.us.hs()},r.fs=function(){return this.us.fs()},r.vs=function(){return this.us.vs()},r.ds=function(){return this.us.ds()},r.ls=function(n,t){return this.us.ls(n,t)},r._s=function(n){return this.us._s(n)},r.gs=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.ys=function(t,r){if(void 0===r&&(r=Ti(Ii)),this.ju){var i="string"==typeof r?r:r.toString();return new n.URL(t,i).href}return this.gs(t,r).href},rn(t,[{key:"As",get:function(){return this.Gu}},{key:"Ts",get:function(){return this.Yu}},{key:"Ss",get:function(){return{Es:e&&e.userAgent.match(/Android /i)?"Android":"other",Is:Boolean(e&&e.userAgent.match(/Android 8.0.0/i))}}},{key:"Rs",get:function(){return n&&n.location&&"https:"===n.location.protocol}},{key:"Ns",get:function(){return"languages"in e?e.languages.slice():[e.language]}}]),t}(),Gi=function(){function n(){}return rn(n,[{key:"Ds",get:function(){return e.oscpu}},{key:"Ts",get:function(){return e.platform}},{key:"Cs",get:function(){return e.vendor}},{key:"Ps",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.Bs=n,this.Ls=t}return n.prototype.next=function(){var n=this.Bs.next();return n.done?n:{value:this.Ls(n.value),done:!1}},n}());(re=te||(te={})).xs="9a04f079-9840-4286-ab92-e65be0885f95",re.Us="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",re.Fs="1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",re.Hs="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={})).xs="playready",ee.Us="widevine",ee.Hs="fairplay",ee.Fs="clearkey",ee.Vs="aes128";var ae={Xs:ie.xs,zs:"com.microsoft.playready",qs:"cenc",Ws:ue,Gs:"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95",Ys:"PlayReady"},he={Xs:ie.Us,zs:"com.widevine.alpha",qs:"cenc",Ws:oe,Gs:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",Ys:"Widevine"},le={Xs:ie.Hs,zs:"com.apple.fps.1_0",qs:"skd",Ws:se,Gs:ce,Ys:"FairPlay"},ve=(ie.Hs,{Xs:ie.Fs,zs:"org.w3.clearkey",qs:"cenc",Ws:fe,Gs:"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",Ys:"ClearKey"});var ye=In.pr&&In.Ar>=42||In.Or&&In.Br>=38||In.Nr||In.Cr||In.Ur&&In.Fr>=29;function _e(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 de,we,pe=function(){function n(n){this.js=$i(),this.Qs=void 0,this.Ks=n}var t=n.prototype;return t.ds=function(){return this._s(he)},t.hs=function(){return this._s(ve)},t.vs=function(){return this._s(ae)},t.fs=function(){return this._s(le)},t._s=function(n){var t=n.Gs,r=this.js.get(t);if(r)return r;var i=this.ls(n,'video/mp4; codecs="avc1.42000a"');return this.js.set(t,i),i},t.ls=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.Ks.Zs(n.zs,[_e(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.Ks.Zs(n.zs,[_e(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.rs=function(){return this.Qs||(this.Qs=this.Js()),this.Qs},t.Js=function(){var n=this;return Ki((function(){return Xi(this,(function(t){switch(t.label){case 0:return"https:"===undefined.protocol?[2,!1]:ye?[4,n.hs()]:[2,!1];case 1:return t.sent()?[2,!1]:[2,!0]}}))}))()},n}(),Ee=function(){function n(){}var t=n.prototype;return t.Uv=function(){},t.Ta=function(n){},t.ya=function(n){},t.Fv=function(n,t){},n}(),Ie=function(){function n(){}return n.prototype.Zs=function(n,t){return K.reject(new a("Unsupported key system configuration"))},n}();(we=de||(de={})).Pd="arraybuffer",we.Od="json",we.Bd="stream",we._e="text";var ge,Re,Te=function(){function n(t){var r=this;this.Ms={},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.Ms.hasOwnProperty(e)){var u=this.Ms[e],o=u[1];u[1]=o?o+", "+i:i}else this.Ms[e]=[r,i]},t.delete=function(n){var t=Se(n).toLowerCase();delete this.Ms[t]},t.get=function(n){var t=Se(n).toLowerCase();return this.Ms.hasOwnProperty(t)?this.Ms[t][1]:null},t.has=function(n){var t=Se(n).toLowerCase();return this.Ms.hasOwnProperty(t)},t.set=function(n,t){var r=n,i=(r=Se(r)).toLowerCase();this.Ms[i]=[r,ke(t)]},t.forEach=function(n,t){for(var r in this.Ms)this.Ms.hasOwnProperty(r)&&n.call(t,this.Ms[r][1],r,this)},t.asList=function(){var n=[];for(var t in this.Ms)if(this.Ms.hasOwnProperty(t)){var r=zi(this.Ms[t],2),i=r[0],e=r[1];n.push([i,e])}return n},t.Ld=function(){var n={};return this.forEach((function(t,r){n[r]=t})),n},t.Md=function(n){var t=this;n.forEach((function(n,r){t.append(r,n)}))},t.xd=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.$s=0]="$s",Re[Re.uo=1]="uo",Re[Re.oo=-1]="oo";var me,Ne,Ae,Ce,De,Pe,Fe,Le,Ue=function(){function n(){this.ao=!1,this.do=!1,this._o=[],this.mo=[]}var t=n.prototype;return t.po=function(){if(!this.ao&&!this.do){this.ao=!0;for(var n=0,t=this._o.slice();n<t.length;n++){(0,t[n])()}this.Ao()}},t.Ao=function(){if(!this.do){this.do=!0;for(var n=0,t=this.mo.slice();n<t.length;n++){(0,t[n])()}be(this._o),be(this.mo)}},t.To=function(n){this.do||this._o.push(n)},t.So=function(n){this.do||Oe(this._o,n)},t.Eo=function(n){this.do||this.mo.push(n)},t.Io=function(n){this.do||Oe(this.mo,n)},n}(),Me=function(){function n(){this.Ro=new Ue}var t=n.prototype;return t.No=function(){this.Ro.po()},t.Ao=function(){this.Ro.Ao()},t.Do=function(n){var t=this.Ro;if(!t.ao)if(n.ao)t.po();else if(!t.do&&!n.do){var r=function(){i(),t.po()},i=function(){n.So(r),n.Io(i),t.So(r),t.Io(i)};n.To(r),n.Eo(i),t.To(r),t.Eo(i)}},t.Co=function(){var t=new n,r=new n,i=t.Po,e=r.Po,u=this.Ro,o=function(){i.ao&&e.do||e.ao&&i.do?u.po():i.do&&e.do&&u.Ao()};i.To(o),e.To(o),i.Eo(o),e.Eo(o),t.Do(u),r.Do(u);return u.Eo((function(){i.So(o),e.So(o),i.Io(o),e.Io(o)})),[t,r]},rn(n,[{key:"Po",get:function(){return this.Ro}}]),n}();(Ne=me||(me={})).DELETE="DELETE",Ne.GET="GET",Ne.HEAD="HEAD",Ne.OPTIONS="OPTIONS",Ne.POST="POST",Ne.PUT="PUT",(Ce=Ae||(Ae={})).wl="",Ce.yl="manifest",Ce.Al="segment",Ce.bl="preload-hint",Ce.Tl="content-protection",(Pe=De||(De={})).wl="",Pe.Sl="initialization-segment",Pe.El="fairplay-license",Pe.Il="fairplay-certificate",Pe.Rl="widevine-license",Pe.Nl="widevine-certificate",Pe.Dl="playready-license",Pe.Cl="clearkey-license",Pe.Pl="aes128-key",(Le=Fe||(Fe={})).wl="",Le.Ol="audio",Le.Bl="video",Le._e="text",Le.Ll="image";var We,xe,Ve=function(n,t){var r,i,e,u,o,f,s,c,a,h,l,v=n.ll;t?(r=t.Wd,i=t.al,e=t.Ml,u=t.cl,o=t.xl,f=t.Po,s=t.Xs,c=t.Ul,a=t.Fl,h=t.Hl,l=t.Vl):(r=null,i={},e="GET",u=de._e,o=0,s="",c="",a="",h=!1),this.ll=v,this.Wd=n.Wd||r,this.al=new Te(n.al||i),this.Ml=n.Ml||e,this.cl=n.cl||u,this.xl=void 0!==n.xl?Number(n.xl)||0:o,this.Po=n.Po||f||(new Me).Po,this.Xs=n.Xs||s,this.Ul=n.Ul||c,this.Fl=n.Fl||a,this.Hl=void 0!==n.Hl?Boolean(n.Hl):h,this.Vl=n.Vl||l};(xe=We||(We={})).Kl="HttpOpenError",xe.Zl="HttpResponseError",xe.Jl="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.ll+". Invalid URL.",r)}return un(t,n),rn(t,[{key:"name",get:function(){return We.Kl}}]),t}(function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).$l=t,e}return un(t,n),rn(t,[{key:"vl",get:function(){return this.$l}}]),t}(at)),Ye=function(){function n(){}var t=n.prototype;return t.vl=function(n){return K.reject(new ze(new Ve(n)))},t.Xl=function(n){},t.mv=function(){},n}();Be=new(function(n){function t(){var t;return(t=n.apply(this,arguments)||this).F_=new pe(new Ie),t.$E=new Ye,t.t=new Ee,t}return un(t,n),rn(t,[{key:"us",get:function(){return this.F_}},{key:"q_",get:function(){return!1}},{key:"W_",get:function(){return!1}},{key:"Y_",get:function(){return!1}},{key:"G_",get:function(){return!1}},{key:"j_",get:function(){return this.t}},{key:"Q_",get:function(){return{K_:Tn}}},{key:"Z_",get:function(){return"default"}},{key:"J_",get:function(){return"unknown"}},{key:"rg",get:function(){return this.$E}}]),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 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 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 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});Qe.decode();var nu=new d;function tu(){return nu.buffer!==Ze.memory.buffer&&(nu=new d(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 yu=new Je("utf-8"),_u="function"==typeof yu.encodeInto?function(n,t){return yu.encodeInto(n,t)}:function(n,t){var r=yu.encode(n);return t.set(r),{read:n.length,written:r.length}};function du(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_9b1e2c088ca81233=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_f6686617a63bb87a=function(n,t,r){return uu({low:n>>>0,high:t>>>0,base:r>>>0})},n.wbg.__wbg_createoutputmetadata_252c58aa8d5fa3d0=function(n,t,r,i,e,u,o,f,s,c,a,h,l){var v,y,_,d,w,p,E,I,g,R,T,S;return 0!==r&&(v=ru(r,i).slice(),Ze.__wbindgen_export_1(r,1*i)),0!==e&&(y=ru(e,u).slice(),Ze.__wbindgen_export_1(e,1*u)),0!==o&&(_=vu(o,f).slice(),Ze.__wbindgen_export_1(o,1*f)),0!==s&&(d=vu(s,c).slice(),Ze.__wbindgen_export_1(s,1*c)),uu((w=16777215===n?void 0:n,p=16777215===t?void 0:t,E=v,I=y,g=_,R=d,T=fu(a),S=fu(h),{video_pid:w,audio_pid:p,video_codec:E,audio_codec:I,sps_nal:g,pps_nal:R,first_decode_timestamp:T,first_presentation_timestamp:S,program_map_table_pid:16777215===l?void 0:l}))},n.wbg.__wbg_createoutput_fc07ea691a3fd678=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=yu.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+=_u(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_7bf55e617ef7238d=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_9a68ab748610bcba=function(n){var t=ou(n).metadata;return lu(t)?0:uu(t)},n.wbg.__wbg_spsnal_a8d715c341c8c8e6=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_d89c06011ececc67=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_638bbc7abd4a1790=function(n){var t=ou(n).video_pid;return lu(t)?16777215:t},n.wbg.__wbg_audiopid_f1243b729485146c=function(n){var t=ou(n).audio_pid;return lu(t)?16777215:t},n.wbg.__wbg_programmaptablepid_856db66c868850b0=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 d,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,du.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({JTt:"5.4.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);
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@theoplayer/extended",
|
|
3
3
|
"main": "THEOplayer.js",
|
|
4
4
|
"types": "THEOplayer.d.ts",
|
|
5
|
-
"version": "5.
|
|
5
|
+
"version": "5.4.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/",
|