@theoplayer/extended 4.12.5 → 4.12.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,7 +24,7 @@
24
24
  THEOplayer is based on patented technology developed by
25
25
  THEO Technologies (https://www.theoplayer.com).
26
26
 
27
- Version: 2023.2.0 (4.12.5)
28
- Created: 2023-06-14T13:38:38.875Z
27
+ Version: 2023.2.0 (4.12.6)
28
+ Created: 2023-08-17T13:06:24.920Z
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.M="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),D=k.match(/Tizen ([0-9\.]+)/i),C=k.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),P=function(){function i(){this.U=Boolean("ontouchstart"in t||t.DocumentTouch&&r instanceof t.DocumentTouch||u&&u.msMaxTouchPoints),this.F=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(k)||/(macintosh|mac(?=_powerpc)\s)/i.test(k),this.V=/Windows NT/i.test(k),this.q=m?_(m[1]):0,this.G=/Android/i.test(k),this.Y=S?_(S[1]):0,this.j=/windows phone (8|8\.1)/i.test(k),this.K=/iPhone/i.test(k),this.Z=/iPad/i.test(k),this.J=this.F&&this.U&&!this.Z,this.nt=/iPod/i.test(k),this.ut=/Mobile Safari/i.test(k),this.ot=/EOSSTB/i.test(k),this.ct=(this.K||this.Z||this.J||this.nt)&&!this.j,this.ft=C?_(C[2]):0,this.vt=this.j||this.ct||this.G||this.ut,this.dt=/CriOS/i.test(k),this._t=Boolean(t.chrome&&/google/i.test(u.vendor))||this.dt,this.wt=this._t&&/Edg\//i.test(u.userAgent),this.yt=O?d(O[1],10):0,this.kt=Boolean(t.chrome||/Chrome/i.test(k)||/CriOS/i.test(k)),this.bt=T?d(T[1],10):0,this.At=/SMART-TV.*Tizen/i.test(k),this.Tt=D?_(D[1]):0,this.St=/webos|web0s/i.test(k),this.Et=/Edge\/\d+/i.test(k),this.It=/Trident/i.test(k),this.Rt=this.It&&!t.ActiveXObject&&"ActiveXObject"in t,this.Nt=/Vivaldi/i.test(k),this.Dt=/Firefox/i.test(k)&&!/Seamonkey/i.test(k),this.Ct=N?_(N[1]):0,this.Pt=/Safari/i.test(k)&&!/Chrome/i.test(k)&&!this.j&&!this.At,this.Ot=b?_(b[2]):0,this.Bt=Boolean(A),this.Lt=A?_(A[1]):0,this.Mt=/CrKey/.test(k),this.xt=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv)\b/i.test(k),this.Ut="web"===n.I,this.Ft="web"===n.g,this.Ht=this.Ft||this.Ut,this.Vt="web"===n.R,this.Xt="web"===n.N,this.zt="web"===n.M}return I(i,[{key:"qt",get:function(){return this.U}},{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.ct}},{key:"hn",get:function(){return this.ft}},{key:"cn",get:function(){return this.ot}},{key:"fn",get:function(){return this.ut}},{key:"vn",get:function(){return this.vt}},{key:"dn",get:function(){return this.dt}},{key:"_n",get:function(){return this._t}},{key:"wn",get:function(){return this.bt}},{key:"yn",get:function(){return this.wt}},{key:"pn",get:function(){return this.yt}},{key:"An",get:function(){return this.At}},{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.Sn&&!this.An)&&this.wn<=56}},{key:"Fn",get:function(){return this.Ut}},{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.kt}}]),i}();P.Gn=new P;var L=P.Gn;function F(t){return null!=t}var U=function(){},M=!(L.In&&!L.Rn),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.Qn)}function $(t){var n=v.clz32(t&-t);return t?31-n:n}Y.prototype.Qn,l.defineProperty(Y.prototype,"Qn",{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.Zn=1]="Zn",t[t.$n=2]="$n",t[t.Jn=3]="Jn",t[t.ni=4]="ni",t[t.ei=9]="ei"}(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.ri=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.oi=void 0,this.oi=t}var n=t.prototype;return n.ai=function(t){return this.oi.isEqualNode(t.oi)},n.ci=function(n){return new t(this.oi.cloneNode(n))},I(t,[{key:"Kn",get:function(){return Et.$n}},{key:"di",get:function(){var t;return null!=(t=this.oi.localName)?t:Pt(this.oi.nodeName)}},{key:"_i",get:function(){return this.oi.nodeName}},{key:"gi",get:function(){var t;return null!=(t=this.oi.namespaceURI)?t:void 0}},{key:"wi",get:function(){var t;return null!=(t=this.oi.prefix)?t:void 0}},{key:"Ai",get:function(){return this.oi.nodeValue}}]),t}(),Ot=function(){function t(t){this.Ti=void 0,this.Si=void 0,this.Ti=t}var n=t.prototype;return n.Ei=function(t){return this.Ii.filter(function(n){return Dt(n)&&n.Ri===t})},n.Ni=function(t,n){return this.Ii.filter(function(i){return Dt(i)&&i.di===n&&i.gi===t})},n.Di=function(t){this.Ti.appendChild(t.Ci),this.Si&&this.Si.push(t)},n.ai=function(t){return this.Ti.isEqualNode(t.Ci)},I(t,[{key:"Ii",get:function(){return void 0===this.Si&&(this.Si=function(t){for(var n=[],i=0;i<t.length;i++){var r=Ct(t.item(i));r&&n.push(r)}return n}(this.Ti.childNodes)),this.Si}},{key:"Pi",get:function(){return this.Ii.filter(Dt)}},{key:"Ci",get:function(){return this.Ti}}]),t}(),St=function(t){function n(n){return t.call(this,n)||this}R(n,t);var i=n.prototype;return i.Oi=function(t){if(this.Ti.hasAttribute(t))return this.Ti.getAttribute(t)},i.Bi=function(t,n){if(this.Ti.hasAttributeNS(t,n))return this.Ti.getAttributeNS(t,n)},i.Li=function(t){this.Ti.removeAttribute(t)},i.Mi=function(t,n){this.Ti.removeAttributeNS(t,n)},i.xi=function(t,n){this.Ti.setAttribute(t,n)},i.Ui=function(t,n,i){this.Ti.setAttributeNS(t,n,i)},i.ci=function(t){return new n(this.Ti.cloneNode(t))},I(n,[{key:"Kn",get:function(){return Et.Zn}},{key:"di",get:function(){var t;return null!=(t=this.Ti.localName)?t:Pt(this.Ti.nodeName)}},{key:"gi",get:function(){var t;return null!=(t=this.Ti.namespaceURI)?t:void 0}},{key:"wi",get:function(){var t;return null!=(t=this.Ti.prefix)?t:void 0}},{key:"Ri",get:function(){return this.Ti.nodeName}},{key:"Fi",get:function(){return function(t){for(var n=[],i=0;i<t.length;i++)n.push(new Tt(t.item(i)));return n}(this.Ti.attributes)}},{key:"Hi",get:function(){return this.Ti.textContent}}]),n}(Ot),mt=function(){function t(t){this.Ti=void 0,this.Ti=t}return t.prototype.ai=function(t){return this.Vi===t.Vi},I(t,[{key:"Vi",get:function(){return this.Ti.nodeValue}},{key:"Ci",get:function(){return this.Ti}}]),t}(),bt=function(t){function n(n){return t.call(this,n)||this}return R(n,t),n.prototype.ci=function(t){return new n(this.Ti.cloneNode(t))},I(n,[{key:"Kn",get:function(){return Et.Jn}}]),n}(mt),Nt=function(t){function n(n){return t.call(this,n)||this}return R(n,t),n.prototype.ci=function(t){return new n(this.Ti.cloneNode(t))},I(n,[{key:"Kn",get:function(){return Et.ni}}]),n}(mt),At=function(t){function n(n){return t.call(this,n)||this}return R(n,t),n.prototype.ci=function(t){return new n(this.Ti.cloneNode(t))},I(n,[{key:"Kn",get:function(){return Et.ei}},{key:"Xi",get:function(){return new St(this.Ti.documentElement)}}]),n}(Ot);function Dt(t){return function(t){return t.Kn===Et.Zn}(t)}function Ct(t){switch(t.nodeType){case Et.Zn:return new St(t);case Et.Jn:return new bt(t);case Et.ni: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 Dn(t){return An(t)||47===t||58===t||59===t||61===t||64===t||t>=91&&t<=94||124===t}function Cn(t){return t<33||t>126||34===t||35===t||60===t||62===t}function Pn(t){return Cn(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={zi: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{zi:2,qi: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:{zi:3,Wi: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?{zi:1,qi:r}:""===i?Vn:{zi:0,Gi:i}}function jn(t){switch(t.zi){case 0:return t.Gi;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.qi);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.qi)+"]";case 3:return t.Wi;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.Yi.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.Yi,qn(n))}function ri(t){if(t.ji){var n=Xn(t.Yi);""===n&&(n=null),t.ji.ji.Qi=n}}function ei(t){return t instanceof ui&&(!!Kt(t.Yi)&&(!qt||t[Symbol.iterator]===oi))}var ui=function(){function t(t){if(void 0===t&&(t=void 0),this.ji=null,null==t)this.Yi=[];else if("object"==typeof t||"function"==typeof t)if(ei(t))this.Yi=t.Yi.slice();else if(null!=(u=t)&&(Kt(u)||qt&&"function"==typeof u[Symbol.iterator])){this.Yi=[];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.Yi.push([$n(r[0]),$n(r[1])])}}else for(var e in this.Yi=[],t)l.prototype.hasOwnProperty.call(t,e)&&this.Yi.push([$n(e),$n(t[e])]);else(t=$n(t)).length>0&&"?"===t[0]&&(t=t.slice(1)),this.Yi=qn(t);var u}var n=t.prototype;return n.append=function(t,n){t=$n(t),n=$n(n),this.Yi.push([t,n]),ri(this)},n.delete=function(t){t=$n(t);for(var n=this.Yi,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.Yi,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.Yi,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.Yi,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.Yi,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.Yi,ti),ri(this)},n.toString=function(){return Xn(this.Yi)},n.entries=function(){return new ai(this.Yi,si)},n.keys=function(){return new ai(this.Yi,fi)},n.values=function(){return new ai(this.Yi,ci)},n.forEach=function(t){var n=this;this.Yi.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.Ki=0,this.Yi=t,this.Zi=n}return t.prototype.next=function(){return this.Ki<this.Yi.length?{done:!1,value:this.Zi(this.Yi[this.Ki++])}:{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.Ji)}function Ei(t){return""!==t.$i||""!==t.re}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.ue;0!==n.length&&("file"===t.Ji&&1===n.length&&ki(n[0])||n.pop())}function Oi(t){return null===t.oe||Vn===t.oe||t.fe||"file"===t.Ji}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 Di,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.Ji)&&!wi(_))return;if(!wi(i.Ji)&&wi(_))return;if((Ei(i)||null!==i._e)&&"file"===_)return;if("file"===i.Ji&&(i.oe===Vn||null===i.oe))return}if(i.Ji=_,null!==r)return void(pi(i)&&i._e===li[i.Ji]&&(i._e=null));u.length=0,"file"===i.Ji?e=13:pi(i)&&n&&n.Ji===i.Ji?e=3:pi(i)?e=7:47===c[l+1]?(e=4,l+=1):(i.fe=!0,i.ue.push(""),e=18)}break;case 2:if(!n||n.fe&&35!==v)throw new h("Invalid scheme");n.fe&&35===v?(i.Ji=n.Ji,i.ue=n.ue.slice(),i.Qi=n.Qi,i.we="",i.fe=!0,e=20):"file"!==n.Ji?(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.Ji=n.Ji,Si===v?(i.$i=n.$i,i.re=n.re,i.oe=n.oe,i._e=n._e,i.ue=n.ue.slice(),i.Qi=n.Qi):47===v?e=6:63===v?(i.$i=n.$i,i.re=n.re,i.oe=n.oe,i._e=n._e,i.ue=n.ue.slice(),i.Qi="",e=19):35===v?(i.$i=n.$i,i.re=n.re,i.oe=n.oe,i._e=n._e,i.ue=n.ue.slice(),i.Qi=n.Qi,i.we="",e=20):92===v&&pi(i)?e=6:(i.$i=n.$i,i.re=n.re,i.oe=n.oe,i._e=n._e,i.ue=n.ue.slice(),i.ue.pop(),e=17,l-=1);break;case 6:!pi(i)||47!==v&&92!==v?47===v?e=9:(i.$i=n.$i,i.re=n.re,i.oe=n.oe,i._e=n._e,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,Dn));f?i.re+=p:i.$i+=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.Ji)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._e))return;var E=Hn(In(u),pi(i));if(i.oe=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.oe=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._e=g===li[i.Ji]?null:g,u.length=0}if(null!==r)return;e=16,l-=1}break;case 13:i.Ji="file",47===v||92===v?e=14:n&&"file"===n.Ji?Si===v?(i.oe=n.oe,i.ue=n.ue.slice(),i.Qi=n.Qi):63===v?(i.oe=n.oe,i.ue=n.ue.slice(),i.Qi="",e=19):35===v?(i.oe=n.oe,i.ue=n.ue.slice(),i.Qi=n.Qi,i.we="",e=20):(Ii(c.slice(l))||(i.oe=n.oe,i.ue=n.ue.slice(),Ti(i)),e=17,l-=1):(e=17,l-=1);break;case 14:47===v||92===v?e=15:(n&&"file"===n.Ji&&!Ii(c.slice(l))&&(ki(n.ue[0])?i.ue.push(n.ue[0]):i.oe=n.oe),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.oe=Vn,null!==r)return;e=16}else{var R=Hn(In(u),pi(i));if(0===R.zi&&"localhost"===R.Gi&&(R=Vn),i.oe=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.Qi="",e=19):null===r&&35===v?(i.we="",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.ue.push("")):!_i(k)||47===v||pi(i)&&92===v?_i(k)||("file"===i.Ji&&0===i.ue.length&&Ri(u)&&(Vn!==i.oe&&null!==i.oe&&(i.oe=Vn),u[1]=58,k=In(u)),i.ue.push(k)):i.ue.push(""),u.length=0,"file"===i.Ji&&(Si===v||63===v||35===v))for(;i.ue.length>1&&""===i.ue[0];)i.ue.shift();63===v?(i.Qi="",e=19):35===v&&(i.we="",e=20)}else u.push.apply(u,Ln(v,An));break;case 18:63===v?(i.Qi="",e=19):35===v?(i.we="",e=20):Si!==v&&(i.ue[0]+=In(Ln(v,bn)));break;case 19:null===r&&35===v?(i.we="",e=20):Si!==v&&(i.Qi+=In(Ln(v,pi(i)?Pn:Cn)));break;case 20:Si===v||0===v||(i.we+=In(Ln(v,Nn)))}l++}return i}function Ai(t,n,i,r){try{Ni(t,n,i,r)}catch(t){}}var Di=function(){this.Ji="",this.$i="",this.re="",this.oe=null,this._e=null,this.ue=[],this.Qi=null,this.we=null,this.fe=!1};function Ci(t){switch(t.Ji){case"blob":var n;try{n=Ni(t.ue[0],null)}catch(t){return hi}return Ci(n);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return i=t.Ji,r=t.oe,e=t._e,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.ji)e=n.ji;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.Qi;this.ji=r,this.Qi=function(t){var n=new ui;return null!==t&&ii(n,t),n}(u),this.Qi.ji=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.Ji+":";if(null!==t.oe?(i+="//",Ei(t)&&(i+=t.$i,""!==t.re&&(i+=":"+t.re),i+="@"),i+=jn(t.oe),null!==t._e&&(i+=":"+t._e)):null===t.oe&&"file"===t.Ji&&(i+="//"),t.fe)i+=t.ue[0];else for(var r=0,e=t.ue;r<e.length;r++)i+="/"+e[r];return null!==t.Qi&&(i+="?"+t.Qi),n||null===t.we||(i+="#"+t.we),i}(this.ji)},set:function(t){var n;try{n=Ni(String(t),null)}catch(t){throw new h("Invalid URL: "+t.message)}this.ji=n,ni(this.Qi);var i=this.ji.Qi;null!==i&&ii(this.Qi,i)}},{key:"origin",get:function(){return Ci(this.ji)}},{key:"protocol",get:function(){return this.ji.Ji+":"},set:function(t){Ai(t+":",null,this.ji,0)}},{key:"username",get:function(){return this.ji.$i},set:function(t){Oi(this.ji)||(this.ji.$i=Fn(t,Dn))}},{key:"password",get:function(){return this.ji.re},set:function(t){Oi(this.ji)||(this.ji.re=Fn(t,Dn))}},{key:"host",get:function(){var t=this.ji,n=t.oe;if(null===n)return"";var i=t._e,r=jn(n);return null!==i&&(r+=":"+i),r},set:function(t){this.ji.fe||Ai(t,null,this.ji,10)}},{key:"hostname",get:function(){var t=this.ji.oe;return null===t?"":jn(t)},set:function(t){this.ji.fe||Ai(t,null,this.ji,11)}},{key:"port",get:function(){var t=this.ji._e;return null===t?"":""+t},set:function(t){Oi(this.ji)||(""===t?this.ji._e=null:Ai(t,null,this.ji,12))}},{key:"pathname",get:function(){var t=this.ji.ue;return this.ji.fe?t[0]:0===t.length?"":"/"+t.join("/")},set:function(t){this.ji.fe||(this.ji.ue.length=0,Ai(t,null,this.ji,16))}},{key:"search",get:function(){var t=this.ji.Qi;return null===t||""===t?"":"?"+t},set:function(t){t=$n(t);var n=this.ji;if(""===t)return n.Qi=null,void ni(this.Qi);"?"===t[0]&&(t=t.slice(1)),n.Qi="",Ai(t,null,n,19),ii(this.Qi,t)}},{key:"searchParams",get:function(){return this.Qi}},{key:"hash",get:function(){var t=this.ji.we;return null===t||""===t?"":"#"+t},set:function(t){""!==t?("#"===t[0]&&(t=t.slice(1)),this.ji.we="",Ai(t,null,this.ji,20)):this.ji.we=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.ye=0,this.ke=!1,this.me=void 0,this.pe=[],ji(t,this)}function xi(t,n){for(;3===t.ye;)t=t.me;0!==t.ye?(t.ke=!0,Wi.Ae(function(){var i=1===t.ye?n.onFulfilled:n.onRejected;if(null!==i){var r;try{r=i(t.me)}catch(t){return void Bi(n.promise,t)}Vi(n.promise,r)}else(1===t.ye?Vi:Bi)(n.promise,t.me)})):t.pe.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.ye=3,t.me=n,void Gi(t);if("function"==typeof i)return void ji((r=i,e=n,function(){r.apply(e,arguments)}),t)}t.ye=1,t.me=n,Gi(t)}catch(n){Bi(t,n)}var r,e}function Bi(t,n){t.ye=2,t.me=n,Gi(t)}function Gi(t){2===t.ye&&0===t.pe.length&&Wi.Ae(function(){t.ke||Wi.Te(t.me)});for(var n=0,i=t.pe.length;n<i;n++)xi(t,t.pe[n]);t.pe=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.Ae="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){Fi(t,0)},Wi.Te=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.Se=0,this.Ee=0,this.Wi=[],this.Ie=t}return t.prototype.Re=function(t){var n=this.length();this.Ne(n+1);var i=this.Ee+n&this.Ie-1;this.Wi[i]=t,this.Se=n+1},t.prototype.push=function(t){var n=this.length()+1;if(this.Ie<n)this.Re(t);else{var i=this.Ee+n-1,r=this.Ie-1;this.Wi[i&r]=t,this.Se=n}},t.prototype.shift=function(){var t=this.Ee,n=this.Wi[t];return this.Wi[t]=void 0,this.Ee=t+1&this.Ie-1,this.Se--,n},t.prototype.length=function(){return this.Se},t.prototype.Ne=function(t){this.Ie<t&&this.De(this.Ie<<1)},t.prototype.De=function(t){var n=this.Ie;this.Ie=t;var i=this.Ee+this.Se&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.Wi,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.Ae,_r=(fr=dr,cr=new Qi(16),ar=!1,{Ce:function(t){cr.push(t),ar||(ar=!0,fr(hr))},Pe:hr=function(){for(;cr.length()>0;)cr.shift()();ar=!1}});Wi.Ae=_r.Ce,Wi.Te=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.Oe=void 0,this.Be=!1,this.qt=wr,this.vn=!1,this.Le=!0}var n=t.prototype;return n.Me=function(){return 0},n.xe=function(t,n){return!0},n.Ue=function(t){return t>=1/6*2},I(t,[{key:"Fe",get:function(){return void 0===this.Oe&&(this.Oe=this.Me()),this.Oe}},{key:"He",get:function(){return!L.xn}},{key:"Ve",get:function(){}},{key:"Xe",get:function(){return i.devicePixelRatio||1}},{key:"ze",get:function(){return Er}},{key:"qe",get:function(){return!1}},{key:"We",get:function(){return!0}},{key:"Ge",get:function(){return L.Pn||L.un}},{key:"Ye",get:function(){return!0}},{key:"je",get:function(){return!0}},{key:"Qe",get:function(){return!1}},{key:"Ke",get:function(){}},{key:"Ze",get:function(){return!0}},{key:"Je",get:function(){return!1}},{key:"$e",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.$t)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).ir=void 0,i.ir=n,i.ir&&(i.Be=i.ir.Be,i.qt=i.ir.qt,i.Le=gr&&i.ir.Le),i}R(n,t);var i=n.prototype;return i.Me=function(){return this.ir?this.ir.Fe:t.prototype.Me.call(this)},i.xe=function(n,i){return this.ir?this.ir.xe(n,i):t.prototype.xe.call(this,n,i)},i.Ue=function(n){return this.ir?this.ir.Ue(n):t.prototype.Ue.call(this,n)},I(n,[{key:"Ke",get:function(){var t;return null==(t=this.ir)?void 0:t.Ke}},{key:"Ze",get:function(){var t,n;return null==(t=null==(n=this.ir)?void 0:n.Ze)||t}}]),n}(Ir),kr=function(t){function n(n){var i;return(i=t.call(this,n)||this).Be=!0,i.vn=!0,i}return R(n,t),I(n,[{key:"Qe",get:function(){return L.un}}]),n}(Rr),Tr=function(t){function n(){return t.apply(this,arguments)||this}return R(n,t),n.prototype.Me=function(){if(!(void 0).MediaSource)return 1},I(n,[{key:"Qe",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).rr=void 0,n}return R(n,t),n.prototype.xe=function(n,i){return t.prototype.xe.call(this,n,i)},I(n,[{key:"qe",get:function(){return L.Tn<3}},{key:"We",get:function(){return L.Tn>=3}},{key:"Ve",get:function(){var t=this;return i.tizen&&!this.rr&&i.tizen.systeminfo.getPropertyValue("DISPLAY",function(n){var i=n.resolutionWidth,r=n.resolutionHeight;1===i&&1===r||(t.rr={width:i,height:r})}),this.rr}},{key:"Je",get:function(){return L.Tn<3}},{key:"$e",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.xe=function(t,n){if(t&&t.dr&&n&&n.dr){var i=br(t.dr,"mp4a.40.2")&&br(n.dr,"mp4a.40.5"),r=br(t.dr,"mp4a.40.5")&&br(n.dr,"mp4a.40.2"),e=br(t.dr,"mp4a.40.2")&&br(n.dr,"mp4a.40.34"),u=br(t.dr,"mp4a.40.34")&&br(n.dr,"mp4a.40.2"),o=br(t.dr,"mp4a.40.5")&&br(n.dr,"mp4a.40.34"),s=br(t.dr,"mp4a.40.34")&&br(n.dr,"mp4a.40.5");return!(i||r||e||u||o||s)}return!0},I(n,[{key:"Ke",get:function(){if(L.Wt)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.Ue=function(t){return t>=2},n}(Sr),Ar=function(t){function n(){var n;return(n=t.call(this)||this).Be=L.On>=11,n.Le=L.Pn&&!(L.un&&L.On<10),n}return R(n,t),n}(Sr),Dr=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).rr=void 0,n}return R(n,t),I(n,[{key:"Ve",get:function(){var t=this;return i.webOS&&!this.rr&&i.webOS.deviceInfo(function(n){t.rr={width:n.screenWidth,height:n.screenHeight}}),this.rr}},{key:"Ye",get:function(){return!1}},{key:"$e",get:function(){return!0}}]),n}(Rr),Cr=function(t){function n(){return t.apply(this,arguments)||this}return R(n,t),I(n,[{key:"Ze",get:function(){return!L.Gt||(L.yn?92!==L.pn:L.wn>=100)}}]),n}(Sr),Pr=function(t){function n(){return t.apply(this,arguments)||this}return R(n,t),I(n,[{key:"Qe",get:function(){return!0}}]),n}(Rr),Lr=function(){function n(){var n;this._r=void 0,this.gr=new kt,this.wr=new Fr,this.yr=(n=function(){if(L.Dn)return new mr;if(L.En||L.In)return new Nr;if(L.Pn)return new Ar;if(L._n)return new Cr;return new Sr}(),L.un?new Tr(n):L.vn?new kr(n):L.An?new Or(n):L.Sn?new Dr(n):L.Wt?new Pr(n):new Rr(n)),this.pr=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._r=function(){return t.performance.now()}:this._r=pt}var i=n.prototype;return i.Ar=function(){H.apply(void 0,arguments)},i.Tr=function(){j.apply(void 0,arguments)},i.Sr=function(){K.apply(void 0,arguments)},i.Er=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.jn=function(t,n){return o(t,n)},i.Ir=function(t,n){return f(t,n)},i.Yn=function(t){s(t)},i.Rr=function(t){c(t)},i.ri=function(t){return this.gr.ri(t)},i.Nr=function(){return this.Dr.Nr()},i.Cr=function(){return this.Dr.Cr()},i.Pr=function(){return this.Dr.Pr()},i.Or=function(){return this.Dr.Or()},i.Br=function(){return this.Dr.Br()},i.Lr=function(t,n){return this.Dr.Lr(t,n)},i.Mr=function(t){return this.Dr.Mr(t)},i.xr=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.Ur=function(n,i){if(void 0===i&&(i=Li(void 0)),this.pr){var r="string"==typeof i?i:i.toString();return new t.URL(n,r).href}return this.xr(n,i).href},I(n,[{key:"Fr",get:function(){return this.wr}},{key:"Hr",get:function(){return this.yr}},{key:"Vr",get:function(){return{Xr:u&&u.userAgent.match(/Android /i)?"Android":"other",zr:Boolean(u&&u.userAgent.match(/Android 8.0.0/i))}}},{key:"qr",get:function(){return t&&t.location&&"https:"===t.location.protocol}},{key:"Wr",get:function(){return"languages"in u?u.languages.slice():[u.language]}}]),n}(),Fr=function(){function t(){}return I(t,[{key:"Gr",get:function(){return u.oscpu}},{key:"Hr",get:function(){return u.platform}},{key:"Yr",get:function(){return u.vendor}},{key:"jr",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 D(r||[]);return u.Qr=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.Kr=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(C([])));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.Qr(n,t)}})}function m(t){var n;this.Qr=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,"Zr")?sr.resolve(a.Zr).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 D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(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{Zr: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=C,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this.Kr=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:C(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.us="9a04f079-9840-4286-ab92-e65be0885f95",t.hs="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",t.fs="1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",t.vs="94ce86fb-07ff-4f43-adb8-93d2fa968ca2"}(Br||(Br={}));var Hr,jr=Br.us,Kr="urn:uuid:"+jr,qr=Br.hs,Xr="urn:uuid:"+qr,Yr=Br.fs,zr="urn:uuid:"+Yr,$r=Br.vs,Zr="urn:uuid:"+$r;!function(t){t.us="playready",t.hs="widevine",t.vs="fairplay",t.fs="clearkey",t.ds="aes128"}(Hr||(Hr={}));var Jr={ls:Hr.us,_s:"com.microsoft.playready",gs:"cenc",ys:jr,As:Kr,Ts:"PlayReady"},Qr={ls:Hr.hs,_s:"com.widevine.alpha",gs:"cenc",ys:qr,As:Xr,Ts:"Widevine"},te={ls:Hr.vs,_s:"com.apple.fps.1_0",gs:"skd",ys:$r,As:Zr,Ts:"FairPlay"};Hr.vs;var ne={ls:Hr.fs,_s:"org.w3.clearkey",gs:"cenc",ys:Yr,As:zr,Ts:"ClearKey"};var ie=L._n&&L.wn>=42||L.Dn&&L.Cn>=38||L.En||L.Rn||L.Bn&&L.Ln>=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.Ss=void 0,this.Es=new Gr,this.Is=void 0,this.Ss=t}var n=t.prototype;return n.Br=function(){return this.Mr(Qr)},n.Cr=function(){return this.Mr(ne)},n.Or=function(){return this.Mr(Jr)},n.Pr=function(){return this.Mr(te)},n.Mr=function(t){var n=t.As,i=this.Es.get(n);if(i)return i;var r=this.Lr(t,'video/mp4; codecs="avc1.42000a"');return this.Es.set(n,r),r},n.Lr=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.Ss.Rs(t._s,[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.Ss.Rs(t._s,[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.Nr=function(){return this.Is||(this.Is=this.Ns()),this.Is},n.Ns=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.Cr());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.kf=function(){},n.Ou=function(t){},n.Du=function(t){},n.mf=function(t,n){},t}(),se=function(){function t(){}return t.prototype.Rs=function(t,n){return sr.reject(new h("Unsupported key system configuration"))},t}();!function(t){t.hv="arraybuffer",t.fv="json",t.vv="stream",t.Jn="text"}(ee||(ee={}));var fe,ce=function(){function t(n){var i=this;this.rs=void 0,this.rs={},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.rs.hasOwnProperty(e)){var u=this.rs[e],o=u[1];u[1]=o?o+", "+r:r}else this.rs[e]=[i,r]},n.delete=function(t){var n=ae(t).toLowerCase();delete this.rs[n]},n.get=function(t){var n=ae(t).toLowerCase();return this.rs.hasOwnProperty(n)?this.rs[n][1]:null},n.has=function(t){var n=ae(t).toLowerCase();return this.rs.hasOwnProperty(n)},n.set=function(t,n){var i=t,r=(i=ae(i)).toLowerCase();this.rs[r]=[i,he(n)]},n.forEach=function(t,n){for(var i in this.rs)this.rs.hasOwnProperty(i)&&t.call(n,this.rs[i][1],i,this)},n.asList=function(){var t=[];for(var n in this.rs)if(this.rs.hasOwnProperty(n)){var i=this.rs[n],r=i[0],e=i[1];t.push([r,e])}return t},n._v=function(){var t={};return this.forEach(function(n,i){t[i]=n}),t},n.wv=function(t){var n=this;t.forEach(function(t,i){n.append(i,t)})},n.yv=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.Ds=0]="Ds",t[t.Cs=1]="Cs",t[t.Ps=-1]="Ps"}(fe||(fe={}));var de,_e,ye,we,pe=function(){function t(){this.Os=!1,this.Bs=!1,this.Ls=[],this.Ms=[]}var n=t.prototype;return n.xs=function(){if(!this.Os&&!this.Bs){this.Os=!0;for(var t=0,n=this.Ls.slice();t<n.length;t++){(0,n[t])()}this.Us()}},n.Us=function(){if(!this.Bs){this.Bs=!0;for(var t=0,n=this.Ms.slice();t<n.length;t++){(0,n[t])()}ve(this.Ls),ve(this.Ms)}},n.Fs=function(t){this.Bs||this.Ls.push(t)},n.Hs=function(t){this.Bs||le(this.Ls,t)},n.Vs=function(t){this.Bs||this.Ms.push(t)},n.Xs=function(t){this.Bs||le(this.Ms,t)},t}(),Ee=function(){function t(){this.zs=new pe}var n=t.prototype;return n.qs=function(){this.zs.xs()},n.Us=function(){this.zs.Us()},n.Ws=function(t){var n=this.zs;if(!n.Os)if(t.Os)n.xs();else if(!n.Bs&&!t.Bs){var i=function(){r(),n.xs()},r=function r(){t.Hs(i),t.Xs(r),n.Hs(i),n.Xs(r)};t.Fs(i),t.Vs(r),n.Fs(i),n.Vs(r)}},n.Gs=function(){var n=new t,i=new t,r=n.Ys,e=i.Ys,u=this.zs,o=function(){r.Os&&e.Bs||e.Os&&r.Bs?u.xs():r.Bs&&e.Bs&&u.Us()};r.Fs(o),e.Fs(o),r.Vs(o),e.Vs(o),n.Ws(u),i.Ws(u);return u.Vs(function(){r.Hs(o),e.Hs(o),r.Xs(o),e.Xs(o)}),[n,i]},I(t,[{key:"Ys",get:function(){return this.zs}}]),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.ll="",t._l="manifest",t.wl="segment",t.yl="preload-hint",t.bl="content-protection"}(_e||(_e={})),function(t){t.ll="",t.Al="initialization-segment",t.Tl="fairplay-license",t.Sl="fairplay-certificate",t.El="widevine-license",t.Il="widevine-certificate",t.Rl="playready-license",t.Nl="clearkey-license",t.Dl="aes128-key"}(ye||(ye={})),function(t){t.ll="",t.Cl="audio",t.Pl="video",t.Jn="text",t.Ol="image"}(we||(we={}));var Ie,ge=function(t,n){this.zd=void 0,this.ul=void 0,this.Bl=void 0,this.ol=void 0,this.Ll=void 0,this.Ys=void 0,this.ls=void 0,this.Ml=void 0,this.xl=void 0,this.vl=void 0,this.Ul=void 0,this.Fl=void 0;var i,r,e,u,o,s,f,c,a,h,l,v=t.vl;n?(i=n.zd,r=n.ul,e=n.Bl,u=n.ol,o=n.Ll,s=n.Ys,f=n.ls,c=n.Ml,a=n.xl,h=n.Ul,l=n.Fl):(i=null,r={},e=de.GET,u=ee.Jn,o=0,f=_e.ll,c=ye.ll,a=we.ll,h=!1),this.vl=v,this.zd=t.zd||i,this.ul=new ce(t.ul||r),this.Bl=t.Bl||e,this.ol=t.ol||u,this.Ll=void 0!==t.Ll?Number(t.Ll)||0:o,this.Ys=t.Ys||s||(new Ee).Ys,this.ls=t.ls||f,this.Ml=t.Ml||c,this.xl=t.xl||a,this.Ul=void 0!==t.Ul?Boolean(t.Ul):h,this.Fl=t.Fl||l};!function(t){t.jl="HttpOpenError",t.Ql="HttpResponseError",t.Kl="HttpTimeoutError"}(Ie||(Ie={}));var Re,ke,Te,Oe=function(t){function n(n,i){return t.call(this,n,"Error while opening "+n.vl+". Invalid URL.",i)||this}return R(n,t),I(n,[{key:"name",get:function(){return Ie.jl}}]),n}(function(t){function n(n,i,r){var e;return(e=t.call(this,i,r)||this).Zl=void 0,e.Zl=n,e}return R(n,t),I(n,[{key:"cl",get:function(){return this.Zl}}]),n}(gt)),Se=function(){function t(){}var n=t.prototype;return n.cl=function(t){return sr.reject(new Oe(new ge(t)))},n.Hl=function(t){},n.Jc=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).x_=new ue(new se),n.NE=new Se,n.i=new oe,n}return R(n,t),I(n,[{key:"Dr",get:function(){return this.x_}},{key:"X_",get:function(){return!1}},{key:"z_",get:function(){return!1}},{key:"W_",get:function(){return!1}},{key:"q_",get:function(){return!1}},{key:"G_",get:function(){return this.i}},{key:"Y_",get:function(){return{j_:U}}},{key:"Q_",get:function(){return"default"}},{key:"K_",get:function(){return"unknown"}},{key:"Z_",get:function(){return this.NE}}]),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"}(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"}(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 De(){return Ae.buffer!==be.memory.buffer&&(Ae=new w(be.memory.buffer)),Ae}function Ce(t,n){return Ne.decode(De().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 De().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 De().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.__wbindgen_string_new=function(t,n){return Fe(Ce(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 De().subarray(r,r+i.length).set(i),We=i.length,r}let r=t.length,e=n(r);const u=De();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=De().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(Ce(t,n))}finally{be.__wbindgen_export_1(t,n)}},t.wbg.__wbindgen_object_drop_ref=function(t){Me(t)},t.wbg.__wbg_createoutputdata_c9fb9a8cb1ad69de=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_c2121b4c783ce2f4=function(t,n,i){return Fe({low:t>>>0,high:n>>>0,base:i>>>0})},t.wbg.__wbg_createoutputmetadata_7a2e484140ec8b15=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=Ce(i,r).slice(),be.__wbindgen_export_1(i,1*r)),0!==e&&(d=Ce(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_ef997e364ed7e443=function(t,n){var i,r;return Fe((i=Me(t),r=Me(n),{data:i,metadata:r}))},t.wbg.__wbg_data_dd8a03447d9291e4=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_41d5a25e28ae6cc0=function(t){const n=Ue(t).metadata;return Ge(n)?0:Fe(n)},t.wbg.__wbg_spsnal_8d5f8275aa528046=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_e5015882cc1470f9=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_2657ae70e543fe2c=function(t){const n=Ue(t).video_pid;return Ge(n)?16777215:n},t.wbg.__wbg_audiopid_d2d3ae4173cde0b7=function(t){const n=Ue(t).audio_pid;return Ge(n)?16777215:n},t.wbg.__wbg_programmaptablepid_e2ff720f835635f1=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.ve=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.ve)}}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({JAt:"4.12.5"})},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(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.M="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),D=k.match(/Tizen ([0-9\.]+)/i),C=k.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),P=function(){function i(){this.U=Boolean("ontouchstart"in t||t.DocumentTouch&&r instanceof t.DocumentTouch||u&&u.msMaxTouchPoints),this.F=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(k)||/(macintosh|mac(?=_powerpc)\s)/i.test(k),this.V=/Windows NT/i.test(k),this.q=m?_(m[1]):0,this.G=/Android/i.test(k),this.Y=S?_(S[1]):0,this.j=/windows phone (8|8\.1)/i.test(k),this.K=/iPhone/i.test(k),this.Z=/iPad/i.test(k),this.J=this.F&&this.U&&!this.Z,this.nt=/iPod/i.test(k),this.ut=/Mobile Safari/i.test(k),this.ot=/EOSSTB/i.test(k),this.ct=(this.K||this.Z||this.J||this.nt)&&!this.j,this.ft=C?_(C[2]):0,this.vt=this.j||this.ct||this.G||this.ut,this.dt=/CriOS/i.test(k),this._t=Boolean(t.chrome&&/google/i.test(u.vendor))||this.dt,this.wt=this._t&&/Edg\//i.test(u.userAgent),this.yt=O?d(O[1],10):0,this.kt=Boolean(t.chrome||/Chrome/i.test(k)||/CriOS/i.test(k)),this.bt=T?d(T[1],10):0,this.At=/SMART-TV.*Tizen/i.test(k),this.Tt=D?_(D[1]):0,this.St=/webos|web0s/i.test(k),this.Et=/Edge\/\d+/i.test(k),this.It=/Trident/i.test(k),this.Rt=this.It&&!t.ActiveXObject&&"ActiveXObject"in t,this.Nt=/Vivaldi/i.test(k),this.Dt=/Firefox/i.test(k)&&!/Seamonkey/i.test(k),this.Ct=N?_(N[1]):0,this.Pt=/Safari/i.test(k)&&!/Chrome/i.test(k)&&!this.j&&!this.At,this.Ot=b?_(b[2]):0,this.Bt=Boolean(A),this.Lt=A?_(A[1]):0,this.Mt=/CrKey/.test(k),this.xt=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv)\b/i.test(k),this.Ut="web"===n.I,this.Ft="web"===n.g,this.Ht=this.Ft||this.Ut,this.Vt="web"===n.R,this.Xt="web"===n.N,this.zt="web"===n.M}return I(i,[{key:"qt",get:function(){return this.U}},{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.ct}},{key:"hn",get:function(){return this.ft}},{key:"cn",get:function(){return this.ot}},{key:"fn",get:function(){return this.ut}},{key:"vn",get:function(){return this.vt}},{key:"dn",get:function(){return this.dt}},{key:"_n",get:function(){return this._t}},{key:"wn",get:function(){return this.bt}},{key:"yn",get:function(){return this.wt}},{key:"pn",get:function(){return this.yt}},{key:"An",get:function(){return this.At}},{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.Sn&&!this.An)&&this.wn<=56}},{key:"Fn",get:function(){return this.Ut}},{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.kt}}]),i}();P.Gn=new P;var L=P.Gn;function F(t){return null!=t}var U=function(){},M=!(L.In&&!L.Rn),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.Qn)}function $(t){var n=v.clz32(t&-t);return t?31-n:n}Y.prototype.Qn,l.defineProperty(Y.prototype,"Qn",{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.Zn=1]="Zn",t[t.$n=2]="$n",t[t.Jn=3]="Jn",t[t.ni=4]="ni",t[t.ei=9]="ei"}(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.ri=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.oi=void 0,this.oi=t}var n=t.prototype;return n.ai=function(t){return this.oi.isEqualNode(t.oi)},n.ci=function(n){return new t(this.oi.cloneNode(n))},I(t,[{key:"Kn",get:function(){return Et.$n}},{key:"di",get:function(){var t;return null!=(t=this.oi.localName)?t:Pt(this.oi.nodeName)}},{key:"_i",get:function(){return this.oi.nodeName}},{key:"gi",get:function(){var t;return null!=(t=this.oi.namespaceURI)?t:void 0}},{key:"wi",get:function(){var t;return null!=(t=this.oi.prefix)?t:void 0}},{key:"Ai",get:function(){return this.oi.nodeValue}}]),t}(),Ot=function(){function t(t){this.Ti=void 0,this.Si=void 0,this.Ti=t}var n=t.prototype;return n.Ei=function(t){return this.Ii.filter(function(n){return Dt(n)&&n.Ri===t})},n.Ni=function(t,n){return this.Ii.filter(function(i){return Dt(i)&&i.di===n&&i.gi===t})},n.Di=function(t){this.Ti.appendChild(t.Ci),this.Si&&this.Si.push(t)},n.ai=function(t){return this.Ti.isEqualNode(t.Ci)},I(t,[{key:"Ii",get:function(){return void 0===this.Si&&(this.Si=function(t){for(var n=[],i=0;i<t.length;i++){var r=Ct(t.item(i));r&&n.push(r)}return n}(this.Ti.childNodes)),this.Si}},{key:"Pi",get:function(){return this.Ii.filter(Dt)}},{key:"Ci",get:function(){return this.Ti}}]),t}(),St=function(t){function n(n){return t.call(this,n)||this}R(n,t);var i=n.prototype;return i.Oi=function(t){if(this.Ti.hasAttribute(t))return this.Ti.getAttribute(t)},i.Bi=function(t,n){if(this.Ti.hasAttributeNS(t,n))return this.Ti.getAttributeNS(t,n)},i.Li=function(t){this.Ti.removeAttribute(t)},i.Mi=function(t,n){this.Ti.removeAttributeNS(t,n)},i.xi=function(t,n){this.Ti.setAttribute(t,n)},i.Ui=function(t,n,i){this.Ti.setAttributeNS(t,n,i)},i.ci=function(t){return new n(this.Ti.cloneNode(t))},I(n,[{key:"Kn",get:function(){return Et.Zn}},{key:"di",get:function(){var t;return null!=(t=this.Ti.localName)?t:Pt(this.Ti.nodeName)}},{key:"gi",get:function(){var t;return null!=(t=this.Ti.namespaceURI)?t:void 0}},{key:"wi",get:function(){var t;return null!=(t=this.Ti.prefix)?t:void 0}},{key:"Ri",get:function(){return this.Ti.nodeName}},{key:"Fi",get:function(){return function(t){for(var n=[],i=0;i<t.length;i++)n.push(new Tt(t.item(i)));return n}(this.Ti.attributes)}},{key:"Hi",get:function(){return this.Ti.textContent}}]),n}(Ot),mt=function(){function t(t){this.Ti=void 0,this.Ti=t}return t.prototype.ai=function(t){return this.Vi===t.Vi},I(t,[{key:"Vi",get:function(){return this.Ti.nodeValue}},{key:"Ci",get:function(){return this.Ti}}]),t}(),bt=function(t){function n(n){return t.call(this,n)||this}return R(n,t),n.prototype.ci=function(t){return new n(this.Ti.cloneNode(t))},I(n,[{key:"Kn",get:function(){return Et.Jn}}]),n}(mt),Nt=function(t){function n(n){return t.call(this,n)||this}return R(n,t),n.prototype.ci=function(t){return new n(this.Ti.cloneNode(t))},I(n,[{key:"Kn",get:function(){return Et.ni}}]),n}(mt),At=function(t){function n(n){return t.call(this,n)||this}return R(n,t),n.prototype.ci=function(t){return new n(this.Ti.cloneNode(t))},I(n,[{key:"Kn",get:function(){return Et.ei}},{key:"Xi",get:function(){return new St(this.Ti.documentElement)}}]),n}(Ot);function Dt(t){return function(t){return t.Kn===Et.Zn}(t)}function Ct(t){switch(t.nodeType){case Et.Zn:return new St(t);case Et.Jn:return new bt(t);case Et.ni: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 Dn(t){return An(t)||47===t||58===t||59===t||61===t||64===t||t>=91&&t<=94||124===t}function Cn(t){return t<33||t>126||34===t||35===t||60===t||62===t}function Pn(t){return Cn(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={zi: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{zi:2,qi: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:{zi:3,Wi: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?{zi:1,qi:r}:""===i?Vn:{zi:0,Gi:i}}function jn(t){switch(t.zi){case 0:return t.Gi;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.qi);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.qi)+"]";case 3:return t.Wi;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.Yi.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.Yi,qn(n))}function ri(t){if(t.ji){var n=Xn(t.Yi);""===n&&(n=null),t.ji.ji.Qi=n}}function ei(t){return t instanceof ui&&(!!Kt(t.Yi)&&(!qt||t[Symbol.iterator]===oi))}var ui=function(){function t(t){if(void 0===t&&(t=void 0),this.ji=null,null==t)this.Yi=[];else if("object"==typeof t||"function"==typeof t)if(ei(t))this.Yi=t.Yi.slice();else if(null!=(u=t)&&(Kt(u)||qt&&"function"==typeof u[Symbol.iterator])){this.Yi=[];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.Yi.push([$n(r[0]),$n(r[1])])}}else for(var e in this.Yi=[],t)l.prototype.hasOwnProperty.call(t,e)&&this.Yi.push([$n(e),$n(t[e])]);else(t=$n(t)).length>0&&"?"===t[0]&&(t=t.slice(1)),this.Yi=qn(t);var u}var n=t.prototype;return n.append=function(t,n){t=$n(t),n=$n(n),this.Yi.push([t,n]),ri(this)},n.delete=function(t){t=$n(t);for(var n=this.Yi,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.Yi,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.Yi,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.Yi,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.Yi,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.Yi,ti),ri(this)},n.toString=function(){return Xn(this.Yi)},n.entries=function(){return new ai(this.Yi,si)},n.keys=function(){return new ai(this.Yi,fi)},n.values=function(){return new ai(this.Yi,ci)},n.forEach=function(t){var n=this;this.Yi.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.Ki=0,this.Yi=t,this.Zi=n}return t.prototype.next=function(){return this.Ki<this.Yi.length?{done:!1,value:this.Zi(this.Yi[this.Ki++])}:{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.Ji)}function Ei(t){return""!==t.$i||""!==t.re}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.ue;0!==n.length&&("file"===t.Ji&&1===n.length&&ki(n[0])||n.pop())}function Oi(t){return null===t.oe||Vn===t.oe||t.fe||"file"===t.Ji}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 Di,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.Ji)&&!wi(_))return;if(!wi(i.Ji)&&wi(_))return;if((Ei(i)||null!==i._e)&&"file"===_)return;if("file"===i.Ji&&(i.oe===Vn||null===i.oe))return}if(i.Ji=_,null!==r)return void(pi(i)&&i._e===li[i.Ji]&&(i._e=null));u.length=0,"file"===i.Ji?e=13:pi(i)&&n&&n.Ji===i.Ji?e=3:pi(i)?e=7:47===c[l+1]?(e=4,l+=1):(i.fe=!0,i.ue.push(""),e=18)}break;case 2:if(!n||n.fe&&35!==v)throw new h("Invalid scheme");n.fe&&35===v?(i.Ji=n.Ji,i.ue=n.ue.slice(),i.Qi=n.Qi,i.we="",i.fe=!0,e=20):"file"!==n.Ji?(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.Ji=n.Ji,Si===v?(i.$i=n.$i,i.re=n.re,i.oe=n.oe,i._e=n._e,i.ue=n.ue.slice(),i.Qi=n.Qi):47===v?e=6:63===v?(i.$i=n.$i,i.re=n.re,i.oe=n.oe,i._e=n._e,i.ue=n.ue.slice(),i.Qi="",e=19):35===v?(i.$i=n.$i,i.re=n.re,i.oe=n.oe,i._e=n._e,i.ue=n.ue.slice(),i.Qi=n.Qi,i.we="",e=20):92===v&&pi(i)?e=6:(i.$i=n.$i,i.re=n.re,i.oe=n.oe,i._e=n._e,i.ue=n.ue.slice(),i.ue.pop(),e=17,l-=1);break;case 6:!pi(i)||47!==v&&92!==v?47===v?e=9:(i.$i=n.$i,i.re=n.re,i.oe=n.oe,i._e=n._e,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,Dn));f?i.re+=p:i.$i+=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.Ji)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._e))return;var E=Hn(In(u),pi(i));if(i.oe=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.oe=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._e=g===li[i.Ji]?null:g,u.length=0}if(null!==r)return;e=16,l-=1}break;case 13:i.Ji="file",47===v||92===v?e=14:n&&"file"===n.Ji?Si===v?(i.oe=n.oe,i.ue=n.ue.slice(),i.Qi=n.Qi):63===v?(i.oe=n.oe,i.ue=n.ue.slice(),i.Qi="",e=19):35===v?(i.oe=n.oe,i.ue=n.ue.slice(),i.Qi=n.Qi,i.we="",e=20):(Ii(c.slice(l))||(i.oe=n.oe,i.ue=n.ue.slice(),Ti(i)),e=17,l-=1):(e=17,l-=1);break;case 14:47===v||92===v?e=15:(n&&"file"===n.Ji&&!Ii(c.slice(l))&&(ki(n.ue[0])?i.ue.push(n.ue[0]):i.oe=n.oe),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.oe=Vn,null!==r)return;e=16}else{var R=Hn(In(u),pi(i));if(0===R.zi&&"localhost"===R.Gi&&(R=Vn),i.oe=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.Qi="",e=19):null===r&&35===v?(i.we="",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.ue.push("")):!_i(k)||47===v||pi(i)&&92===v?_i(k)||("file"===i.Ji&&0===i.ue.length&&Ri(u)&&(Vn!==i.oe&&null!==i.oe&&(i.oe=Vn),u[1]=58,k=In(u)),i.ue.push(k)):i.ue.push(""),u.length=0,"file"===i.Ji&&(Si===v||63===v||35===v))for(;i.ue.length>1&&""===i.ue[0];)i.ue.shift();63===v?(i.Qi="",e=19):35===v&&(i.we="",e=20)}else u.push.apply(u,Ln(v,An));break;case 18:63===v?(i.Qi="",e=19):35===v?(i.we="",e=20):Si!==v&&(i.ue[0]+=In(Ln(v,bn)));break;case 19:null===r&&35===v?(i.we="",e=20):Si!==v&&(i.Qi+=In(Ln(v,pi(i)?Pn:Cn)));break;case 20:Si===v||0===v||(i.we+=In(Ln(v,Nn)))}l++}return i}function Ai(t,n,i,r){try{Ni(t,n,i,r)}catch(t){}}var Di=function(){this.Ji="",this.$i="",this.re="",this.oe=null,this._e=null,this.ue=[],this.Qi=null,this.we=null,this.fe=!1};function Ci(t){switch(t.Ji){case"blob":var n;try{n=Ni(t.ue[0],null)}catch(t){return hi}return Ci(n);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return i=t.Ji,r=t.oe,e=t._e,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.ji)e=n.ji;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.Qi;this.ji=r,this.Qi=function(t){var n=new ui;return null!==t&&ii(n,t),n}(u),this.Qi.ji=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.Ji+":";if(null!==t.oe?(i+="//",Ei(t)&&(i+=t.$i,""!==t.re&&(i+=":"+t.re),i+="@"),i+=jn(t.oe),null!==t._e&&(i+=":"+t._e)):null===t.oe&&"file"===t.Ji&&(i+="//"),t.fe)i+=t.ue[0];else for(var r=0,e=t.ue;r<e.length;r++)i+="/"+e[r];return null!==t.Qi&&(i+="?"+t.Qi),n||null===t.we||(i+="#"+t.we),i}(this.ji)},set:function(t){var n;try{n=Ni(String(t),null)}catch(t){throw new h("Invalid URL: "+t.message)}this.ji=n,ni(this.Qi);var i=this.ji.Qi;null!==i&&ii(this.Qi,i)}},{key:"origin",get:function(){return Ci(this.ji)}},{key:"protocol",get:function(){return this.ji.Ji+":"},set:function(t){Ai(t+":",null,this.ji,0)}},{key:"username",get:function(){return this.ji.$i},set:function(t){Oi(this.ji)||(this.ji.$i=Fn(t,Dn))}},{key:"password",get:function(){return this.ji.re},set:function(t){Oi(this.ji)||(this.ji.re=Fn(t,Dn))}},{key:"host",get:function(){var t=this.ji,n=t.oe;if(null===n)return"";var i=t._e,r=jn(n);return null!==i&&(r+=":"+i),r},set:function(t){this.ji.fe||Ai(t,null,this.ji,10)}},{key:"hostname",get:function(){var t=this.ji.oe;return null===t?"":jn(t)},set:function(t){this.ji.fe||Ai(t,null,this.ji,11)}},{key:"port",get:function(){var t=this.ji._e;return null===t?"":""+t},set:function(t){Oi(this.ji)||(""===t?this.ji._e=null:Ai(t,null,this.ji,12))}},{key:"pathname",get:function(){var t=this.ji.ue;return this.ji.fe?t[0]:0===t.length?"":"/"+t.join("/")},set:function(t){this.ji.fe||(this.ji.ue.length=0,Ai(t,null,this.ji,16))}},{key:"search",get:function(){var t=this.ji.Qi;return null===t||""===t?"":"?"+t},set:function(t){t=$n(t);var n=this.ji;if(""===t)return n.Qi=null,void ni(this.Qi);"?"===t[0]&&(t=t.slice(1)),n.Qi="",Ai(t,null,n,19),ii(this.Qi,t)}},{key:"searchParams",get:function(){return this.Qi}},{key:"hash",get:function(){var t=this.ji.we;return null===t||""===t?"":"#"+t},set:function(t){""!==t?("#"===t[0]&&(t=t.slice(1)),this.ji.we="",Ai(t,null,this.ji,20)):this.ji.we=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.ye=0,this.ke=!1,this.me=void 0,this.pe=[],ji(t,this)}function xi(t,n){for(;3===t.ye;)t=t.me;0!==t.ye?(t.ke=!0,Wi.Ae(function(){var i=1===t.ye?n.onFulfilled:n.onRejected;if(null!==i){var r;try{r=i(t.me)}catch(t){return void Bi(n.promise,t)}Vi(n.promise,r)}else(1===t.ye?Vi:Bi)(n.promise,t.me)})):t.pe.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.ye=3,t.me=n,void Gi(t);if("function"==typeof i)return void ji((r=i,e=n,function(){r.apply(e,arguments)}),t)}t.ye=1,t.me=n,Gi(t)}catch(n){Bi(t,n)}var r,e}function Bi(t,n){t.ye=2,t.me=n,Gi(t)}function Gi(t){2===t.ye&&0===t.pe.length&&Wi.Ae(function(){t.ke||Wi.Te(t.me)});for(var n=0,i=t.pe.length;n<i;n++)xi(t,t.pe[n]);t.pe=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.Ae="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){Fi(t,0)},Wi.Te=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.Se=0,this.Ee=0,this.Wi=[],this.Ie=t}return t.prototype.Re=function(t){var n=this.length();this.Ne(n+1);var i=this.Ee+n&this.Ie-1;this.Wi[i]=t,this.Se=n+1},t.prototype.push=function(t){var n=this.length()+1;if(this.Ie<n)this.Re(t);else{var i=this.Ee+n-1,r=this.Ie-1;this.Wi[i&r]=t,this.Se=n}},t.prototype.shift=function(){var t=this.Ee,n=this.Wi[t];return this.Wi[t]=void 0,this.Ee=t+1&this.Ie-1,this.Se--,n},t.prototype.length=function(){return this.Se},t.prototype.Ne=function(t){this.Ie<t&&this.De(this.Ie<<1)},t.prototype.De=function(t){var n=this.Ie;this.Ie=t;var i=this.Ee+this.Se&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.Wi,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.Ae,_r=(fr=dr,cr=new Qi(16),ar=!1,{Ce:function(t){cr.push(t),ar||(ar=!0,fr(hr))},Pe:hr=function(){for(;cr.length()>0;)cr.shift()();ar=!1}});Wi.Ae=_r.Ce,Wi.Te=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.Oe=void 0,this.Be=!1,this.qt=wr,this.vn=!1,this.Le=!0}var n=t.prototype;return n.Me=function(){return 0},n.xe=function(t,n){return!0},n.Ue=function(t){return t>=1/6*2},I(t,[{key:"Fe",get:function(){return void 0===this.Oe&&(this.Oe=this.Me()),this.Oe}},{key:"He",get:function(){return!L.xn}},{key:"Ve",get:function(){}},{key:"Xe",get:function(){return i.devicePixelRatio||1}},{key:"ze",get:function(){return Er}},{key:"qe",get:function(){return!1}},{key:"We",get:function(){return!0}},{key:"Ge",get:function(){return L.Pn||L.un}},{key:"Ye",get:function(){return!0}},{key:"je",get:function(){return!0}},{key:"Qe",get:function(){return!1}},{key:"Ke",get:function(){}},{key:"Ze",get:function(){return!0}},{key:"Je",get:function(){return!1}},{key:"$e",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.$t)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).ir=void 0,i.ir=n,i.ir&&(i.Be=i.ir.Be,i.qt=i.ir.qt,i.Le=gr&&i.ir.Le),i}R(n,t);var i=n.prototype;return i.Me=function(){return this.ir?this.ir.Fe:t.prototype.Me.call(this)},i.xe=function(n,i){return this.ir?this.ir.xe(n,i):t.prototype.xe.call(this,n,i)},i.Ue=function(n){return this.ir?this.ir.Ue(n):t.prototype.Ue.call(this,n)},I(n,[{key:"Ke",get:function(){var t;return null==(t=this.ir)?void 0:t.Ke}},{key:"Ze",get:function(){var t,n;return null==(t=null==(n=this.ir)?void 0:n.Ze)||t}}]),n}(Ir),kr=function(t){function n(n){var i;return(i=t.call(this,n)||this).Be=!0,i.vn=!0,i}return R(n,t),I(n,[{key:"Qe",get:function(){return L.un}}]),n}(Rr),Tr=function(t){function n(){return t.apply(this,arguments)||this}return R(n,t),n.prototype.Me=function(){if(!(void 0).MediaSource)return 1},I(n,[{key:"Qe",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).rr=void 0,n}return R(n,t),n.prototype.xe=function(n,i){return t.prototype.xe.call(this,n,i)},I(n,[{key:"qe",get:function(){return L.Tn<3}},{key:"We",get:function(){return L.Tn>=3}},{key:"Ve",get:function(){var t=this;return i.tizen&&!this.rr&&i.tizen.systeminfo.getPropertyValue("DISPLAY",function(n){var i=n.resolutionWidth,r=n.resolutionHeight;1===i&&1===r||(t.rr={width:i,height:r})}),this.rr}},{key:"Je",get:function(){return L.Tn<3}},{key:"$e",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.xe=function(t,n){if(t&&t.dr&&n&&n.dr){var i=br(t.dr,"mp4a.40.2")&&br(n.dr,"mp4a.40.5"),r=br(t.dr,"mp4a.40.5")&&br(n.dr,"mp4a.40.2"),e=br(t.dr,"mp4a.40.2")&&br(n.dr,"mp4a.40.34"),u=br(t.dr,"mp4a.40.34")&&br(n.dr,"mp4a.40.2"),o=br(t.dr,"mp4a.40.5")&&br(n.dr,"mp4a.40.34"),s=br(t.dr,"mp4a.40.34")&&br(n.dr,"mp4a.40.5");return!(i||r||e||u||o||s)}return!0},I(n,[{key:"Ke",get:function(){if(L.Wt)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.Ue=function(t){return t>=2},n}(Sr),Ar=function(t){function n(){var n;return(n=t.call(this)||this).Be=L.On>=11,n.Le=L.Pn&&!(L.un&&L.On<10),n}return R(n,t),n}(Sr),Dr=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).rr=void 0,n}return R(n,t),I(n,[{key:"Ve",get:function(){var t=this;return i.webOS&&!this.rr&&i.webOS.deviceInfo(function(n){t.rr={width:n.screenWidth,height:n.screenHeight}}),this.rr}},{key:"Ye",get:function(){return!1}},{key:"$e",get:function(){return!0}}]),n}(Rr),Cr=function(t){function n(){return t.apply(this,arguments)||this}return R(n,t),I(n,[{key:"Ze",get:function(){return!L.Gt||(L.yn?92!==L.pn:L.wn>=100)}}]),n}(Sr),Pr=function(t){function n(){return t.apply(this,arguments)||this}return R(n,t),I(n,[{key:"Qe",get:function(){return!0}}]),n}(Rr),Lr=function(){function n(){var n;this._r=void 0,this.gr=new kt,this.wr=new Fr,this.yr=(n=function(){if(L.Dn)return new mr;if(L.En||L.In)return new Nr;if(L.Pn)return new Ar;if(L._n)return new Cr;return new Sr}(),L.un?new Tr(n):L.vn?new kr(n):L.An?new Or(n):L.Sn?new Dr(n):L.Wt?new Pr(n):new Rr(n)),this.pr=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._r=function(){return t.performance.now()}:this._r=pt}var i=n.prototype;return i.Ar=function(){H.apply(void 0,arguments)},i.Tr=function(){j.apply(void 0,arguments)},i.Sr=function(){K.apply(void 0,arguments)},i.Er=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.jn=function(t,n){return o(t,n)},i.Ir=function(t,n){return f(t,n)},i.Yn=function(t){s(t)},i.Rr=function(t){c(t)},i.ri=function(t){return this.gr.ri(t)},i.Nr=function(){return this.Dr.Nr()},i.Cr=function(){return this.Dr.Cr()},i.Pr=function(){return this.Dr.Pr()},i.Or=function(){return this.Dr.Or()},i.Br=function(){return this.Dr.Br()},i.Lr=function(t,n){return this.Dr.Lr(t,n)},i.Mr=function(t){return this.Dr.Mr(t)},i.xr=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.Ur=function(n,i){if(void 0===i&&(i=Li(void 0)),this.pr){var r="string"==typeof i?i:i.toString();return new t.URL(n,r).href}return this.xr(n,i).href},I(n,[{key:"Fr",get:function(){return this.wr}},{key:"Hr",get:function(){return this.yr}},{key:"Vr",get:function(){return{Xr:u&&u.userAgent.match(/Android /i)?"Android":"other",zr:Boolean(u&&u.userAgent.match(/Android 8.0.0/i))}}},{key:"qr",get:function(){return t&&t.location&&"https:"===t.location.protocol}},{key:"Wr",get:function(){return"languages"in u?u.languages.slice():[u.language]}}]),n}(),Fr=function(){function t(){}return I(t,[{key:"Gr",get:function(){return u.oscpu}},{key:"Hr",get:function(){return u.platform}},{key:"Yr",get:function(){return u.vendor}},{key:"jr",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 D(r||[]);return u.Qr=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.Kr=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(C([])));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.Qr(n,t)}})}function m(t){var n;this.Qr=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,"Zr")?sr.resolve(a.Zr).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 D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(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{Zr: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=C,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this.Kr=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:C(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.us="9a04f079-9840-4286-ab92-e65be0885f95",t.hs="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",t.fs="1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",t.vs="94ce86fb-07ff-4f43-adb8-93d2fa968ca2"}(Br||(Br={}));var Hr,jr=Br.us,Kr="urn:uuid:"+jr,qr=Br.hs,Xr="urn:uuid:"+qr,Yr=Br.fs,zr="urn:uuid:"+Yr,$r=Br.vs,Zr="urn:uuid:"+$r;!function(t){t.us="playready",t.hs="widevine",t.vs="fairplay",t.fs="clearkey",t.ds="aes128"}(Hr||(Hr={}));var Jr={ls:Hr.us,_s:"com.microsoft.playready",gs:"cenc",ys:jr,As:Kr,Ts:"PlayReady"},Qr={ls:Hr.hs,_s:"com.widevine.alpha",gs:"cenc",ys:qr,As:Xr,Ts:"Widevine"},te={ls:Hr.vs,_s:"com.apple.fps.1_0",gs:"skd",ys:$r,As:Zr,Ts:"FairPlay"};Hr.vs;var ne={ls:Hr.fs,_s:"org.w3.clearkey",gs:"cenc",ys:Yr,As:zr,Ts:"ClearKey"};var ie=L._n&&L.wn>=42||L.Dn&&L.Cn>=38||L.En||L.Rn||L.Bn&&L.Ln>=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.Ss=void 0,this.Es=new Gr,this.Is=void 0,this.Ss=t}var n=t.prototype;return n.Br=function(){return this.Mr(Qr)},n.Cr=function(){return this.Mr(ne)},n.Or=function(){return this.Mr(Jr)},n.Pr=function(){return this.Mr(te)},n.Mr=function(t){var n=t.As,i=this.Es.get(n);if(i)return i;var r=this.Lr(t,'video/mp4; codecs="avc1.42000a"');return this.Es.set(n,r),r},n.Lr=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.Ss.Rs(t._s,[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.Ss.Rs(t._s,[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.Nr=function(){return this.Is||(this.Is=this.Ns()),this.Is},n.Ns=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.Cr());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.kf=function(){},n.Ou=function(t){},n.Du=function(t){},n.mf=function(t,n){},t}(),se=function(){function t(){}return t.prototype.Rs=function(t,n){return sr.reject(new h("Unsupported key system configuration"))},t}();!function(t){t.hv="arraybuffer",t.fv="json",t.vv="stream",t.Jn="text"}(ee||(ee={}));var fe,ce=function(){function t(n){var i=this;this.rs=void 0,this.rs={},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.rs.hasOwnProperty(e)){var u=this.rs[e],o=u[1];u[1]=o?o+", "+r:r}else this.rs[e]=[i,r]},n.delete=function(t){var n=ae(t).toLowerCase();delete this.rs[n]},n.get=function(t){var n=ae(t).toLowerCase();return this.rs.hasOwnProperty(n)?this.rs[n][1]:null},n.has=function(t){var n=ae(t).toLowerCase();return this.rs.hasOwnProperty(n)},n.set=function(t,n){var i=t,r=(i=ae(i)).toLowerCase();this.rs[r]=[i,he(n)]},n.forEach=function(t,n){for(var i in this.rs)this.rs.hasOwnProperty(i)&&t.call(n,this.rs[i][1],i,this)},n.asList=function(){var t=[];for(var n in this.rs)if(this.rs.hasOwnProperty(n)){var i=this.rs[n],r=i[0],e=i[1];t.push([r,e])}return t},n._v=function(){var t={};return this.forEach(function(n,i){t[i]=n}),t},n.wv=function(t){var n=this;t.forEach(function(t,i){n.append(i,t)})},n.yv=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.Ds=0]="Ds",t[t.Cs=1]="Cs",t[t.Ps=-1]="Ps"}(fe||(fe={}));var de,_e,ye,we,pe=function(){function t(){this.Os=!1,this.Bs=!1,this.Ls=[],this.Ms=[]}var n=t.prototype;return n.xs=function(){if(!this.Os&&!this.Bs){this.Os=!0;for(var t=0,n=this.Ls.slice();t<n.length;t++){(0,n[t])()}this.Us()}},n.Us=function(){if(!this.Bs){this.Bs=!0;for(var t=0,n=this.Ms.slice();t<n.length;t++){(0,n[t])()}ve(this.Ls),ve(this.Ms)}},n.Fs=function(t){this.Bs||this.Ls.push(t)},n.Hs=function(t){this.Bs||le(this.Ls,t)},n.Vs=function(t){this.Bs||this.Ms.push(t)},n.Xs=function(t){this.Bs||le(this.Ms,t)},t}(),Ee=function(){function t(){this.zs=new pe}var n=t.prototype;return n.qs=function(){this.zs.xs()},n.Us=function(){this.zs.Us()},n.Ws=function(t){var n=this.zs;if(!n.Os)if(t.Os)n.xs();else if(!n.Bs&&!t.Bs){var i=function(){r(),n.xs()},r=function r(){t.Hs(i),t.Xs(r),n.Hs(i),n.Xs(r)};t.Fs(i),t.Vs(r),n.Fs(i),n.Vs(r)}},n.Gs=function(){var n=new t,i=new t,r=n.Ys,e=i.Ys,u=this.zs,o=function(){r.Os&&e.Bs||e.Os&&r.Bs?u.xs():r.Bs&&e.Bs&&u.Us()};r.Fs(o),e.Fs(o),r.Vs(o),e.Vs(o),n.Ws(u),i.Ws(u);return u.Vs(function(){r.Hs(o),e.Hs(o),r.Xs(o),e.Xs(o)}),[n,i]},I(t,[{key:"Ys",get:function(){return this.zs}}]),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.ll="",t._l="manifest",t.wl="segment",t.yl="preload-hint",t.bl="content-protection"}(_e||(_e={})),function(t){t.ll="",t.Al="initialization-segment",t.Tl="fairplay-license",t.Sl="fairplay-certificate",t.El="widevine-license",t.Il="widevine-certificate",t.Rl="playready-license",t.Nl="clearkey-license",t.Dl="aes128-key"}(ye||(ye={})),function(t){t.ll="",t.Cl="audio",t.Pl="video",t.Jn="text",t.Ol="image"}(we||(we={}));var Ie,ge=function(t,n){this.zd=void 0,this.ul=void 0,this.Bl=void 0,this.ol=void 0,this.Ll=void 0,this.Ys=void 0,this.ls=void 0,this.Ml=void 0,this.xl=void 0,this.vl=void 0,this.Ul=void 0,this.Fl=void 0;var i,r,e,u,o,s,f,c,a,h,l,v=t.vl;n?(i=n.zd,r=n.ul,e=n.Bl,u=n.ol,o=n.Ll,s=n.Ys,f=n.ls,c=n.Ml,a=n.xl,h=n.Ul,l=n.Fl):(i=null,r={},e=de.GET,u=ee.Jn,o=0,f=_e.ll,c=ye.ll,a=we.ll,h=!1),this.vl=v,this.zd=t.zd||i,this.ul=new ce(t.ul||r),this.Bl=t.Bl||e,this.ol=t.ol||u,this.Ll=void 0!==t.Ll?Number(t.Ll)||0:o,this.Ys=t.Ys||s||(new Ee).Ys,this.ls=t.ls||f,this.Ml=t.Ml||c,this.xl=t.xl||a,this.Ul=void 0!==t.Ul?Boolean(t.Ul):h,this.Fl=t.Fl||l};!function(t){t.jl="HttpOpenError",t.Ql="HttpResponseError",t.Kl="HttpTimeoutError"}(Ie||(Ie={}));var Re,ke,Te,Oe=function(t){function n(n,i){return t.call(this,n,"Error while opening "+n.vl+". Invalid URL.",i)||this}return R(n,t),I(n,[{key:"name",get:function(){return Ie.jl}}]),n}(function(t){function n(n,i,r){var e;return(e=t.call(this,i,r)||this).Zl=void 0,e.Zl=n,e}return R(n,t),I(n,[{key:"cl",get:function(){return this.Zl}}]),n}(gt)),Se=function(){function t(){}var n=t.prototype;return n.cl=function(t){return sr.reject(new Oe(new ge(t)))},n.Hl=function(t){},n.Jc=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).x_=new ue(new se),n.NE=new Se,n.i=new oe,n}return R(n,t),I(n,[{key:"Dr",get:function(){return this.x_}},{key:"X_",get:function(){return!1}},{key:"z_",get:function(){return!1}},{key:"W_",get:function(){return!1}},{key:"q_",get:function(){return!1}},{key:"G_",get:function(){return this.i}},{key:"Y_",get:function(){return{j_:U}}},{key:"Q_",get:function(){return"default"}},{key:"K_",get:function(){return"unknown"}},{key:"Z_",get:function(){return this.NE}}]),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"}(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"}(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 De(){return Ae.buffer!==be.memory.buffer&&(Ae=new w(be.memory.buffer)),Ae}function Ce(t,n){return Ne.decode(De().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 De().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 De().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.__wbindgen_string_new=function(t,n){return Fe(Ce(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 De().subarray(r,r+i.length).set(i),We=i.length,r}let r=t.length,e=n(r);const u=De();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=De().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(Ce(t,n))}finally{be.__wbindgen_export_1(t,n)}},t.wbg.__wbindgen_object_drop_ref=function(t){Me(t)},t.wbg.__wbg_createoutputdata_c9fb9a8cb1ad69de=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_c2121b4c783ce2f4=function(t,n,i){return Fe({low:t>>>0,high:n>>>0,base:i>>>0})},t.wbg.__wbg_createoutputmetadata_7a2e484140ec8b15=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=Ce(i,r).slice(),be.__wbindgen_export_1(i,1*r)),0!==e&&(d=Ce(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_ef997e364ed7e443=function(t,n){var i,r;return Fe((i=Me(t),r=Me(n),{data:i,metadata:r}))},t.wbg.__wbg_data_dd8a03447d9291e4=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_41d5a25e28ae6cc0=function(t){const n=Ue(t).metadata;return Ge(n)?0:Fe(n)},t.wbg.__wbg_spsnal_8d5f8275aa528046=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_e5015882cc1470f9=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_2657ae70e543fe2c=function(t){const n=Ue(t).video_pid;return Ge(n)?16777215:n},t.wbg.__wbg_audiopid_d2d3ae4173cde0b7=function(t){const n=Ue(t).audio_pid;return Ge(n)?16777215:n},t.wbg.__wbg_programmaptablepid_e2ff720f835635f1=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.ve=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.ve)}}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({JAt:"4.12.6"})},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);
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": "4.12.5",
5
+ "version": "4.12.6",
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/",