UNPKG

theoplayer

Version:

THEOplayer is the universal video player solution, enabling you to quickly deliver cross-platform content playback.

30 lines (22 loc) 73 kB
/*! THEOplayer Usage of this software is limited by the THEOplayer License. It is prohibited to reverse engineer, decompile, translate, disassemble, decipher, decrypt, or otherwise attempt to discover the source code of this software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information, visit https://www.theoplayer.com or contact contact @ theoplayer . com THEOplayer is based on patented technology developed by THEO Technologies (https://www.theoplayer.com). Version: 10.8.0 Created: 2026-01-15T14:16:26.308Z */ !function(t){"use strict";var n,r,i,e,u,o,f,s,c,a=t.window,h=t.document,v=t.location,l=t.navigator,_=t.setTimeout,d=t.clearTimeout,y=t.setInterval,w=t.clearInterval,I=t.Error,E=t.TypeError,g=(t.SyntaxError,t.Object),p=t.Math,R=t.parseInt,S=t.parseFloat,O=t.isNaN,T=t.Uint8Array,k=(t.Worker,t.WorkerGlobalScope,t.XMLHttpRequest);function b(t,r){return null!=r&&void 0!==n&&r[n.hasInstance]?!!r[n.hasInstance](t):t instanceof r}function m(t){return t&&void 0!==n&&t.constructor===n?"symbol":typeof t}"function"==typeof Symbol&&Symbol.iterator?(n=Symbol,r=null!=(o=Symbol.for)?o:Symbol,i=Symbol.iterator,e=null!=(f=Symbol.dispose)?f:r("Symbol.dispose"),u=null!=(s=Symbol.asyncDispose)?s:r("Symbol.asyncDispose")):(c=0,n=function(t){return"hd"+t+"_"+ ++c},i=(r=function(t){return"hd"+t})("Symbol.iterator"),e=r("Symbol.dispose"),u=r("Symbol.asyncDispose"),n.for=r,n.iterator=i,n.dispose=e,n.asyncDispose=u);var N=_;function A(t){return Boolean(t&&void 0!==t.length)}function C(){}function D(t){if(!b(this,D))throw new E("Promises must be constructed via new");if("function"!=typeof t)throw new E("not a function");this.Ua=0,this.IEi=!1,this.fkt=void 0,this.REi=[],U(t,this)}function P(t,n){for(;3===t.Ua;)t=t.fkt;0!==t.Ua?(t.IEi=!0,D.CEi(function(){var r=1===t.Ua?n.onFulfilled:n.onRejected;if(null!==r){var i;try{i=r(t.fkt)}catch(t){return void L(n.promise,t)}F(n.promise,i)}else(1===t.Ua?F:L)(n.promise,t.fkt)})):t.REi.push(n)}function F(t,n){try{if(n===t)throw new E("A promise cannot be resolved with itself.");if(n&&("object"===(void 0===n?"undefined":m(n))||"function"==typeof n)){var r=n.then;if(b(n,D))return t.Ua=3,t.fkt=n,void B(t);if("function"==typeof r)return void U(function(t,n){return function(){t.apply(n,arguments)}}(r,n),t)}t.Ua=1,t.fkt=n,B(t)}catch(n){L(t,n)}}function L(t,n){t.Ua=2,t.fkt=n,B(t)}function B(t){2===t.Ua&&0===t.REi.length&&D.CEi(function(){t.IEi||D.PEi(t.fkt)});for(var n=0,r=t.REi.length;n<r;n++)P(t,t.REi[n]);t.REi=null}function M(t,n,r){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof n?n:null,this.promise=r}function U(t,n){var r=!1;try{t(function(t){r||(r=!0,F(n,t))},function(t){r||(r=!0,L(n,t))})}catch(t){if(r)return;r=!0,L(n,t)}}D.prototype.catch=function(t){return this.then(null,t)},D.prototype.then=function(t,n){var r=new this.constructor(C);return P(this,new M(t,n,r)),r},D.prototype.finally=function(t){var n=this.constructor;return this.then(function(r){return n.resolve(t()).then(function(){return r})},function(r){return n.resolve(t()).then(function(){return n.reject(r)})})},D.all=function(t){return new D(function(n,r){if(!A(t))return r(new E("Promise.all accepts an array"));var i=Array.prototype.slice.call(t);if(0===i.length)return n([]);var e=i.length;function u(t,o){try{if(o&&("object"===(void 0===o?"undefined":m(o))||"function"==typeof o)){var f=o.then;if("function"==typeof f)return void f.call(o,function(n){u(t,n)},r)}i[t]=o,0===--e&&n(i)}catch(t){r(t)}}for(var o=0;o<i.length;o++)u(o,i[o])})},D.allSettled=function(t){return new this(function(n,r){if(!t||void 0===t.length)return r(new E((void 0===t?"undefined":m(t))+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var i=Array.prototype.slice.call(t);if(0===i.length)return n([]);var e=i.length;function u(t,r){if(r&&("object"===(void 0===r?"undefined":m(r))||"function"==typeof r)){var o=r.then;if("function"==typeof o)return void o.call(r,function(n){u(t,n)},function(r){i[t]={status:"rejected",reason:r},0===--e&&n(i)})}i[t]={status:"fulfilled",value:r},0===--e&&n(i)}for(var o=0;o<i.length;o++)u(o,i[o])})},D.resolve=function(t){return t&&"object"===(void 0===t?"undefined":m(t))&&t.constructor===D?t:new D(function(n){n(t)})},D.reject=function(t){return new D(function(n,r){r(t)})},D.race=function(t){return new D(function(n,r){if(!A(t))return r(new E("Promise.race accepts an array"));for(var i=0,e=t.length;i<e;i++)D.resolve(t[i]).then(n,r)})},D.CEi="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){N(t,0)},D.PEi=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var V=function(){var t=self.Promise;if(void 0!==t)try{if(-1!==t.toString().indexOf("[native code]"))return t}catch(t){}}(),H=l?l.userAgent:"",W=H.match(/Firefox\/([0-9]+)/i),x=null!=W,G=W?Number(W[1]):0,j=H.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),K=null!=j,q=j?Number(j[3]):0,z=function(){function t(t){this.Ab=0,this.Wd=0,this.Kp=[],this.DEi=t}return t.prototype.NEi=function(t){var n=this.length();this.xEi(n+1);var r=this.Wd+n&this.DEi-1;this.Kp[r]=t,this.Ab=n+1},t.prototype.push=function(t){var n=this.length()+1;if(this.DEi<n)this.NEi(t);else{var r=this.Wd+n-1,i=this.DEi-1;this.Kp[r&i]=t,this.Ab=n}},t.prototype.shift=function(){var t=this.Wd,n=this.Kp[t];return this.Kp[t]=void 0,this.Wd=t+1&this.DEi-1,this.Ab--,n},t.prototype.length=function(){return this.Ab},t.prototype.xEi=function(t){this.DEi<t&&this.BEi(this.DEi<<1)},t.prototype.BEi=function(t){var n=this.DEi;this.DEi=t;var r=this.Wd+this.Ab&n-1;!function(t,n,r,i){for(var e=0;e<i;++e)t[e+r]=t[e+n],t[e+n]=void 0}(this.Kp,0,n,r)},t}();var X="unhandledrejection",Y=self.PromiseRejectionEvent,$=self.CustomEvent;function Z(t){return new Y(X,{reason:t,promise:V.reject(t).catch(function(){}),cancelable:!0})}function J(t){var n=new $(X,{detail:{reason:t},cancelable:!0});return g.defineProperty(n,"reason",{value:t}),n}function Q(t){var n=h.createEvent("CustomEvent");return n.initCustomEvent(X,!1,!0,{reason:t}),n}var tt,nt,rt,it,et,ut,ot,ft,st=function(t){return st=function(){try{var t=V.resolve(),n="error",r=new Y(X,{reason:n,promise:t});return X===r.type&&n===r.reason}catch(t){}return!1}()?Z:function(){try{var t="error",n=new $(X,{detail:{reason:t}});return X===n.type&&t===n.detail.reason}catch(t){}return!1}()?J:Q,st(t)};function ct(t,n){return ct=g.setPrototypeOf||function(t,n){return t.__proto__=n,t},ct(t,n)}function at(t,n){if("function"!=typeof n&&null!==n)throw new E("Super expression must either be null or a function");t.prototype=g.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&ct(t,n)}function ht(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),g.defineProperty(t,i.key,i)}}function vt(t,n,r){return n&&ht(t.prototype,n),r&&ht(t,r),t}function lt(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=t[r];return i}function _t(t,r){var e=void 0!==n&&t[i]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return lt(t,n);var r=g.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lt(t,n):void 0}}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var u=0;return function(){return u>=t.length?{done:!0}:{done:!1,value:t[u++]}}}throw new E("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}V&&!(x&&G<60||K&&q<15)?nt=V:(nt=D,ot=null!==(tt=function(){var t=self.queueMicrotask;if("function"==typeof t)return function(n){return t(n)};var n=V;if(n&&"function"==typeof n.resolve){var r=n.resolve();return function(t){return r.then(t)}}}())&&void 0!==tt?tt:D.CEi,rt=ot,it=new z(16),et=!1,(ft={n8:function(t){it.push(t),et||(et=!0,rt(ut))},UQ:ut=function(){for(;it.length()>0;)it.shift()();et=!1}}).UQ,D.CEi=ft.n8,D.PEi=function(t){try{var n=st(t);if(!self.dispatchEvent(n)||n.defaultPrevented)return}catch(t){}_(function(){throw new I("Unhandled promise rejection: ".concat(t))},0)});var dt=function(t){return t.Rv="web",t.Dv="android",t.Bv="android-tv",t.Nv="ios",t.Mv="tvos",t.Lv="chromecast",t.Ov="theoliveweb",t}({});var yt=l?l.userAgent:"",wt=yt.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),It=yt.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),Et=yt.match(/Android ([0-9\.]+)/i),gt=yt.match(/Windows NT ([0-9\.]+)/i),pt=yt.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),Rt=yt.match(/Firefox\/([0-9\.]+)/i),St=yt.match(/OPR\/(\d+\.\d+)/i),Ot=yt.match(/Tizen ([0-9\.]+)/i),Tt=yt.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),kt=yt.match(/HbbTV\/([0-9.]+)/i),bt=yt.match(/(AFT.*) Build/i),mt=function(){function t(){this.Fv=Boolean("ontouchstart"in self||self.DocumentTouch&&b(h,self.DocumentTouch)||l&&l.msMaxTouchPoints),this.Vv=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(yt)||/(macintosh|mac(?=_powerpc)\s)/i.test(yt),this.Wv=/Windows NT/i.test(yt),this.zv=gt?S(gt[1]):0,this.Xv=/Android/i.test(yt),this.Kv=Et?S(Et[1]):0,this.Jv=/windows phone (8|8\.1)/i.test(yt),this.$v=/iPhone/i.test(yt),this.i_=/iPad/i.test(yt),this.s_=this.Vv&&this.Fv&&!this.i_,this.r_=/iPod/i.test(yt),this.l_=/Mobile Safari/i.test(yt),this.c_=/EOS\d*STB/i.test(yt),this.d_=/APP\d*STB/i.test(yt),this.h_=(this.$v||this.i_||this.s_||this.r_)&&!this.Jv,this.a_=Tt?S(Tt[2]):0,this.f_=this.Jv||this.h_||this.Xv||this.l_,this.__=/CriOS/i.test(yt),this.p_=Boolean(self.chrome&&/google/i.test(l.vendor))||this.__,this.A_=this.p_&&/Edg\//i.test(l.userAgent),this.T_=It?R(It[1],10):0,this.Vg=Boolean(/CriOS/i.test(yt)),this.Ug=Boolean(self.chrome||/Chrome/i.test(yt)||this.Vg),this.y_=wt?R(wt[1],10):0,this.x_=/SMART-TV.*Tizen/i.test(yt),this.I_=Ot?S(Ot[1]):0,this.w_=this.I_>0?function(t){return t>=8?108:t>=7?94:t>=6.5?85:t>=6?76:t>=5.5?69:t>=5?63:t>=4?56:t>=3?47:0}(this.I_):void 0,this.R_=/webos|web0s/i.test(yt),this.B_=/HbbTV/i.test(yt),this.M_=!!kt&&function(t){if(!t)return!1;var n=t.split(".").map(Number);return 3===n.length&&1===n[0]&&2===n[1]}(kt[1]),this.O_=/AFT.* Build/i.test(yt),this.F_=bt?bt[1]:void 0,this.V_=/VIZIO/i.test(yt),this.W_=/Edge\/\d+/i.test(yt),this.z_=/Trident/i.test(yt),this.X_=this.z_&&!self.ActiveXObject&&"ActiveXObject"in self,this.Q_=/Vivaldi/i.test(yt),this.Y_=/Firefox/i.test(yt)&&!/Seamonkey/i.test(yt),this.Z_=Rt?S(Rt[1]):0,this.rg=/Safari/i.test(yt)&&!/Chrome/i.test(yt)&&!this.Jv&&!this.x_,this.og=pt?S(pt[2]):0,this.cg=Boolean(St),this.fg=St?S(St[1]):0,this._g=/CrKey/.test(yt),this.pg=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(yt),this.Ag=/PlayStation 4/i.test(yt),this.Tg=/PlayStation 5/i.test(yt),this.xg="web"===dt.Bv,this.Ig="web"===dt.Dv,this.Rg=this.Ig||this.xg,this.Bg="web"===dt.Nv,this.Mg="web"===dt.Mv,this.Og="web"===dt.Lv}return vt(t,[{key:"Ke",get:function(){return this.Fv}},{key:"Uv",get:function(){return this.Vv}},{key:"Hv",get:function(){return this.Wv}},{key:"qv",get:function(){return this.zv}},{key:"Gv",get:function(){return this.Xv}},{key:"Qv",get:function(){return this.Kv}},{key:"Yv",get:function(){return this.Jv}},{key:"Zv",get:function(){return this.$v}},{key:"t_",get:function(){return this.i_}},{key:"e_",get:function(){return this.s_}},{key:"n_",get:function(){return this.r_}},{key:"ru",get:function(){return this.h_}},{key:"o_",get:function(){return this.a_}},{key:"u_",get:function(){return this.c_||this.d_}},{key:"$d",get:function(){return this.l_}},{key:"Ks",get:function(){return this.f_}},{key:"v_",get:function(){return this.__}},{key:"g_",get:function(){return this.p_}},{key:"m_",get:function(){var t;return null!=(t=this.w_)?t:this.y_}},{key:"b_",get:function(){return this.A_}},{key:"S_",get:function(){var t;return(null==(t=a.chrome)?void 0:t.webview)&&this.T_>0}},{key:"k_",get:function(){return this.T_}},{key:"E_",get:function(){return this.x_}},{key:"P_",get:function(){return this.I_}},{key:"C_",get:function(){return this.R_}},{key:"D_",get:function(){return this.B_}},{key:"N_",get:function(){return this.M_}},{key:"L_",get:function(){return this.O_}},{key:"IS_FIRETV_AFTMM",get:function(){return"AFTMM"===this.F_}},{key:"U_",get:function(){return this.V_}},{key:"H_",get:function(){return this.W_}},{key:"q_",get:function(){return this.z_}},{key:"G_",get:function(){return this.X_}},{key:"j_",get:function(){return this.Q_}},{key:"K_",get:function(){return this.Y_}},{key:"J_",get:function(){return this.Z_}},{key:"eg",get:function(){return this.rg}},{key:"hg",get:function(){return 0===this.og&&Nt.ru?this.a_:this.og}},{key:"ag",get:function(){return this.cg}},{key:"dg",get:function(){return this.fg}},{key:"vg",get:function(){return this._g}},{key:"gg",get:function(){return this.pg}},{key:"wg",get:function(){return!(!this.C_&&!this.E_)&&this.m_<=56}},{key:"yg",get:function(){return this.Ag}},{key:"Sg",get:function(){return this.Tg}},{key:"Eg",get:function(){return this.xg}},{key:"Pg",get:function(){return this.Ig}},{key:"Cg",get:function(){return this.Rg}},{key:"Dg",get:function(){return this.Bg}},{key:"Ng",get:function(){return this.Mg}},{key:"Lg",get:function(){return this.Og}},{key:"Fg",get:function(){return this.Ug}},{key:"IS_IOS_CHROME",get:function(){return this.Vg}}]),t}();mt.Hg=new mt;var Nt=mt.Hg,At={}.toString;function Ct(t){return null!=t}Array.isArray;function Dt(t){return"object"===(void 0===t?"undefined":m(t))&&null!==t}function Pt(t){return function(t){return"function"==typeof t}(t)||Dt(t)}var Ft=function(){};function Lt(t){var n;return function(){return void 0!==t&&(n=t(),t=void 0),n}}function Bt(t,n,r,i,e,u,o){try{var f=t[u](o),s=f.value}catch(t){return void r(t)}f.done?n(s):nt.resolve(s).then(i,e)}function Mt(t){return function(){var n=this,r=arguments;return new nt(function(i,e){var u=t.apply(n,r);function o(t){Bt(u,i,e,o,f,"next",t)}function f(t){Bt(u,i,e,o,f,"throw",t)}o(void 0)})}}function Ut(t,r){var e,u,o,f={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=g.create(("function"==typeof Iterator?Iterator:g).prototype);return s.next=c(0),s.throw=c(1),s.return=c(2),"function"==typeof n&&(s[i]=function(){return this}),s;function c(n){return function(i){return function(n){if(e)throw new E("Generator is already executing.");for(;s&&(s=0,n[0]&&(f=0)),f;)try{if(e=1,u&&(o=2&n[0]?u.return:n[0]?u.throw||((o=u.return)&&o.call(u),0):u.next)&&!(o=o.call(u,n[1])).done)return o;switch(u=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return f.label++,{value:n[1],done:!1};case 5:f.label++,u=n[1],n=[0];continue;case 7:n=f.ops.pop(),f.trys.pop();continue;default:if(!(o=f.trys,(o=o.length>0&&o[o.length-1])||6!==n[0]&&2!==n[0])){f=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){f.label=n[1];break}if(6===n[0]&&f.label<o[1]){f.label=o[1],o=n;break}if(o&&f.label<o[2]){f.label=o[2],f.ops.push(n);break}o[2]&&f.ops.pop(),f.trys.pop();continue}n=r.call(t,f)}catch(t){n=[6,t],u=0}finally{e=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,i])}}}p.pow(2,-52),Array.prototype.find,Array.prototype.findLast;var Vt="function"==typeof Array.prototype.findIndex?function(t,n){return t.findIndex(n)}:function(t,n){for(var r=0;r<t.length;r+=1){if(n(t[r],r,t))return r}return-1},Ht="function"==typeof Array.prototype.findLastIndex?function(t,n){return t.findLastIndex(n)}:function(t,n){for(var r=t.length-1;r>=0;r-=1){if(n(t[r],r,t))return r}return-1};Array.prototype.at;function Wt(t,n){var r=t.indexOf(n);return-1!==r&&(function(t,n){0===n?t.shift():t.splice(n,1)}(t,r),!0)}function xt(t){t.length=0}Array.prototype.flat,Array.prototype.flatMap;var Gt=function(){function t(){this.Qg=!1,this.Kg=!1,this.Yg=[],this.Zg=[]}var n=t.prototype;return n.jg=function(){if(!this.Qg&&!this.Kg){this.Qg=!0;for(var t,n=_t(this.Yg.slice());!(t=n()).done;){(0,t.value)()}this.Jg()}},n.Jg=function(){if(!this.Kg){this.Kg=!0;for(var t,n=_t(this.Zg.slice());!(t=n()).done;){(0,t.value)()}xt(this.Yg),xt(this.Zg)}},n.$g=function(t){this.Kg||this.Yg.push(t)},n.tp=function(t){this.Kg||Wt(this.Yg,t)},n.ep=function(t){this.Kg||this.Zg.push(t)},n.sp=function(t){this.Kg||Wt(this.Zg,t)},t}(),jt=function(){function t(){this.rp=new Gt}var n=t.prototype;return n.hp=function(){this.rp.jg()},n.Jg=function(){this.rp.Jg()},n.op=function(t){var n=this.rp;if(!n.Qg)if(t.Qg)n.jg();else if(!n.Kg&&!t.Kg){var r=function(){i(),n.jg()},i=function(){t.tp(r),t.sp(i),n.tp(r),n.sp(i)};t.$g(r),t.ep(i),n.$g(r),n.ep(i)}},n.ap=function(){var n=new t,r=new t,i=n.np,e=r.np,u=this.rp,o=function(){i.Qg&&e.Kg||e.Qg&&i.Kg?u.jg():i.Kg&&e.Kg&&u.Jg()};i.$g(o),e.$g(o),i.ep(o),e.ep(o),n.op(u),r.op(u);return u.ep(function(){i.tp(o),e.tp(o),i.sp(o),e.sp(o)}),[n,r]},n[e]=function(){this.hp()},t.cp=function(n){for(var r,i=new t,e=_t(n);!(r=e()).done;){var u=r.value;void 0!==u&&i.op(u)}return i},vt(t,[{key:"np",get:function(){return this.rp}}]),t}(),Kt=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];I.apply(this,n)};(Kt.prototype=g.create(I.prototype)).constructor=Kt;var qt=function(t){function n(n,r){var i;return(i=t.call(this)||this).cause=void 0,i.message=n||"Unknown error",i.cause=r,I.captureStackTrace&&I.captureStackTrace(i,i.constructor),i}return at(n,t),vt(n,[{key:"name",get:function(){return"BaseError"}}]),n}(Kt);nt.resolve();function zt(){return void 0!==h?h.createElement("video"):void 0}var Xt=Lt(zt),Yt=(Lt(function(){return"undefined"!=typeof HTMLVideoElement&&b(Xt(),HTMLVideoElement)}),null);try{Yt=new WebAssembly.Instance(new WebAssembly.Module(new T([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(rt){}function $t(t,n,r){this.low=0|t,this.high=0|n,this.unsigned=!!r}function Zt(t){return!0===(t&&t.lp)}function Jt(t){var n=p.clz32(t&-t);return t?31-n:n}$t.prototype.lp,g.defineProperty($t.prototype,"lp",{value:!0}),$t.isLong=Zt;var Qt={},tn={};function nn(t,n){var r,i,e;return n?(e=0<=(t>>>=0)&&t<256)&&(i=tn[t])?i:(r=en(t,0,!0),e&&(tn[t]=r),r):(e=-128<=(t|=0)&&t<128)&&(i=Qt[t])?i:(r=en(t,t<0?-1:0,!1),e&&(Qt[t]=r),r)}function rn(t,n){if(O(t))return n?ln:vn;if(n){if(t<0)return ln;if(t>=cn)return In}else{if(t<=-an)return En;if(t+1>=an)return wn}return t<0?rn(-t,n).neg():en(t%sn|0,t/sn|0,n)}function en(t,n,r){return new $t(t,n,r)}$t.fromInt=nn,$t.fromNumber=rn,$t.fromBits=en;var un=p.pow;function on(t,n,r){if(0===t.length)throw I("empty string");if("number"==typeof n?(r=n,n=!1):n=!!n,"NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return n?ln:vn;if((r=r||10)<2||36<r)throw RangeError("radix");var i;if((i=t.indexOf("-"))>0)throw I("interior hyphen");if(0===i)return on(t.substring(1),n,r).neg();for(var e=rn(un(r,8)),u=vn,o=0;o<t.length;o+=8){var f=p.min(8,t.length-o),s=R(t.substring(o,o+f),r);if(f<8){var c=rn(un(r,f));u=u.mul(c).add(rn(s))}else u=(u=u.mul(e)).add(rn(s))}return u.unsigned=n,u}function fn(t,n){return"number"==typeof t?rn(t,n):"string"==typeof t?on(t,n):en(t.low,t.high,"boolean"==typeof n?n:t.unsigned)}$t.fromString=on,$t.fromValue=fn;var sn=4294967296,cn=sn*sn,an=cn/2,hn=nn(1<<24),vn=nn(0);$t.ZERO=vn;var ln=nn(0,!0);$t.UZERO=ln;var _n=nn(1);$t.ONE=_n;var dn=nn(1,!0);$t.UONE=dn;var yn=nn(-1);$t.NEG_ONE=yn;var wn=en(-1,2147483647,!1);$t.MAX_VALUE=wn;var In=en(-1,-1,!0);$t.MAX_UNSIGNED_VALUE=In;var En=en(0,-2147483648,!1);$t.MIN_VALUE=En;var gn=$t.prototype;function pn(){return Date.now()||(new Date).getTime()}gn.toInt=function(){return this.unsigned?this.low>>>0:this.low},gn.toNumber=function(){return this.unsigned?(this.high>>>0)*sn+(this.low>>>0):this.high*sn+(this.low>>>0)},gn.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(En)){var n=rn(t),r=this.div(n),i=r.mul(n).sub(this);return r.toString(t)+i.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var e=rn(un(t,6),this.unsigned),u=this,o="";;){var f=u.div(e),s=(u.sub(f.mul(e)).toInt()>>>0).toString(t);if((u=f).isZero())return s+o;for(;s.length<6;)s="0"+s;o=""+s+o}},gn.getHighBits=function(){return this.high},gn.getHighBitsUnsigned=function(){return this.high>>>0},gn.getLowBits=function(){return this.low},gn.getLowBitsUnsigned=function(){return this.low>>>0},gn.getNumBitsAbs=function(){if(this.isNegative())return this.eq(En)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,n=31;n>0&&!(t&1<<n);n--);return 0!=this.high?n+33:n+1},gn.isSafeInteger=function(){var t=this.high>>21;return!t||!this.unsigned&&(-1===t&&!(0===this.low&&-2097152===this.high))},gn.isZero=function(){return 0===this.high&&0===this.low},gn.eqz=gn.isZero,gn.isNegative=function(){return!this.unsigned&&this.high<0},gn.isPositive=function(){return this.unsigned||this.high>=0},gn.isOdd=function(){return!(1&~this.low)},gn.isEven=function(){return!(1&this.low)},gn.equals=function(t){return Zt(t)||(t=fn(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&(this.high===t.high&&this.low===t.low)},gn.eq=gn.equals,gn.notEquals=function(t){return!this.eq(t)},gn.neq=gn.notEquals,gn.ne=gn.notEquals,gn.lessThan=function(t){return this.comp(t)<0},gn.lt=gn.lessThan,gn.lessThanOrEqual=function(t){return this.comp(t)<=0},gn.lte=gn.lessThanOrEqual,gn.le=gn.lessThanOrEqual,gn.greaterThan=function(t){return this.comp(t)>0},gn.gt=gn.greaterThan,gn.greaterThanOrEqual=function(t){return this.comp(t)>=0},gn.gte=gn.greaterThanOrEqual,gn.ge=gn.greaterThanOrEqual,gn.compare=function(t){if(Zt(t)||(t=fn(t)),this.eq(t))return 0;var n=this.isNegative(),r=t.isNegative();return n&&!r?-1:!n&&r?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},gn.comp=gn.compare,gn.negate=function(){return!this.unsigned&&this.eq(En)?En:this.not().add(_n)},gn.neg=gn.negate,gn.add=function(t){Zt(t)||(t=fn(t));var n=this.high>>>16,r=65535&this.high,i=this.low>>>16,e=65535&this.low,u=t.high>>>16,o=65535&t.high,f=t.low>>>16,s=0,c=0,a=0,h=0;return a+=(h+=e+(65535&t.low))>>>16,c+=(a+=i+f)>>>16,s+=(c+=r+o)>>>16,s+=n+u,en((a&=65535)<<16|(h&=65535),(s&=65535)<<16|(c&=65535),this.unsigned)},gn.subtract=function(t){return Zt(t)||(t=fn(t)),this.add(t.neg())},gn.sub=gn.subtract,gn.multiply=function(t){if(this.isZero())return this;if(Zt(t)||(t=fn(t)),Yt)return en(Yt.mul(this.low,this.high,t.low,t.high),Yt.get_high(),this.unsigned);if(t.isZero())return this.unsigned?ln:vn;if(this.eq(En))return t.isOdd()?En:vn;if(t.eq(En))return this.isOdd()?En:vn;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(hn)&&t.lt(hn))return rn(this.toNumber()*t.toNumber(),this.unsigned);var n=this.high>>>16,r=65535&this.high,i=this.low>>>16,e=65535&this.low,u=t.high>>>16,o=65535&t.high,f=t.low>>>16,s=65535&t.low,c=0,a=0,h=0,v=0;return h+=(v+=e*s)>>>16,a+=(h+=i*s)>>>16,h&=65535,a+=(h+=e*f)>>>16,c+=(a+=r*s)>>>16,a&=65535,c+=(a+=i*f)>>>16,a&=65535,c+=(a+=e*o)>>>16,c+=n*s+r*f+i*o+e*u,en((h&=65535)<<16|(v&=65535),(c&=65535)<<16|(a&=65535),this.unsigned)},gn.mul=gn.multiply,gn.divide=function(t){if(Zt(t)||(t=fn(t)),t.isZero())throw I("division by zero");var n,r,i;if(Yt)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?en((this.unsigned?Yt.div_u:Yt.div_s)(this.low,this.high,t.low,t.high),Yt.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?ln:vn;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return ln;if(t.gt(this.shru(1)))return dn;i=ln}else{if(this.eq(En))return t.eq(_n)||t.eq(yn)?En:t.eq(En)?_n:(n=this.shr(1).div(t).shl(1)).eq(vn)?t.isNegative()?_n:yn:(r=this.sub(t.mul(n)),i=n.add(r.div(t)));if(t.eq(En))return this.unsigned?ln:vn;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();i=vn}for(r=this;r.gte(t);){n=p.max(1,p.floor(r.toNumber()/t.toNumber()));for(var e=p.ceil(p.log(n)/p.LN2),u=e<=48?1:un(2,e-48),o=rn(n),f=o.mul(t);f.isNegative()||f.gt(r);)f=(o=rn(n-=u,this.unsigned)).mul(t);o.isZero()&&(o=_n),i=i.add(o),r=r.sub(f)}return i},gn.div=gn.divide,gn.modulo=function(t){return Zt(t)||(t=fn(t)),Yt?en((this.unsigned?Yt.rem_u:Yt.rem_s)(this.low,this.high,t.low,t.high),Yt.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},gn.mod=gn.modulo,gn.rem=gn.modulo,gn.not=function(){return en(~this.low,~this.high,this.unsigned)},gn.countLeadingZeros=function(){return this.high?p.clz32(this.high):p.clz32(this.low)+32},gn.clz=gn.countLeadingZeros,gn.countTrailingZeros=function(){return this.low?Jt(this.low):Jt(this.high)+32},gn.ctz=gn.countTrailingZeros,gn.and=function(t){return Zt(t)||(t=fn(t)),en(this.low&t.low,this.high&t.high,this.unsigned)},gn.or=function(t){return Zt(t)||(t=fn(t)),en(this.low|t.low,this.high|t.high,this.unsigned)},gn.xor=function(t){return Zt(t)||(t=fn(t)),en(this.low^t.low,this.high^t.high,this.unsigned)},gn.shiftLeft=function(t){return Zt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?en(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):en(0,this.low<<t-32,this.unsigned)},gn.shl=gn.shiftLeft,gn.shiftRight=function(t){return Zt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?en(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):en(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},gn.shr=gn.shiftRight,gn.shiftRightUnsigned=function(t){return Zt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?en(this.low>>>t|this.high<<32-t,this.high>>>t,this.unsigned):en(32===t?this.high:this.high>>>t-32,0,this.unsigned)},gn.shru=gn.shiftRightUnsigned,gn.shr_u=gn.shiftRightUnsigned,gn.rotateLeft=function(t){var n;return Zt(t)&&(t=t.toInt()),0==(t&=63)?this:32===t?en(this.high,this.low,this.unsigned):t<32?(n=32-t,en(this.low<<t|this.high>>>n,this.high<<t|this.low>>>n,this.unsigned)):(n=32-(t-=32),en(this.high<<t|this.low>>>n,this.low<<t|this.high>>>n,this.unsigned))},gn.rotl=gn.rotateLeft,gn.rotateRight=function(t){var n;return Zt(t)&&(t=t.toInt()),0==(t&=63)?this:32===t?en(this.high,this.low,this.unsigned):t<32?(n=32-t,en(this.high<<n|this.low>>>t,this.low<<n|this.high>>>t,this.unsigned)):(n=32-(t-=32),en(this.low<<n|this.high>>>t,this.high<<n|this.low>>>t,this.unsigned))},gn.rotr=gn.rotateRight,gn.toSigned=function(){return this.unsigned?en(this.low,this.high,!1):this},gn.toUnsigned=function(){return this.unsigned?this:en(this.low,this.high,!0)},gn.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},gn.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]},gn.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]},$t.fromBytes=function(t,n,r){return r?$t.fromBytesLE(t,n):$t.fromBytesBE(t,n)},$t.fromBytesLE=function(t,n){return new $t(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,n)},$t.fromBytesBE=function(t,n){return new $t(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],n)},"function"==typeof BigInt&&($t.fromBigInt=function(t,n){return en(Number(BigInt.asIntN(32,t)),Number(BigInt.asIntN(32,t>>BigInt(32))),n)},$t.fromValue=function(t,n){return"bigint"===(void 0===t?"undefined":m(t))?$t.fromBigInt(t,n):fn(t,n)},gn.toBigInt=function(){var t=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|t});var Rn=1/6,Sn=($t.fromNumber(9007199254740991),Boolean("ontouchstart"in self||self.DocumentTouch&&b(h,self.DocumentTouch))||Boolean(l&&l.msMaxTouchPoints)),On=Xt(),Tn=Boolean(On&&On.webkitShowPlaybackTargetPicker),kn=function(){function t(){this.vp=void 0,this.Vp=!1,this.Ke=Sn,this.Ks=!1,this.dp=!0}var n=t.prototype;return n._p=function(){return 0},n.Mp=function(t,n){return!0},n.Lp=function(t){return t>=2*Rn},vt(t,[{key:"fp",get:function(){return void 0===this.vp&&(this.vp=this._p()),this.vp}},{key:"gp",get:function(){return Nt.Gv?"android":Nt.Uv?"macos":Nt.ru?"ios":Nt.Hv?"windows":"other"}},{key:"pp",get:function(){return Nt.gg?"tv":Nt.Ks?"mobile":"desktop"}},{key:"mp",get:function(){return!Nt.gg}},{key:"wp",get:function(){if(a.screen)return{width:a.screen.width*this.yp,height:a.screen.height*this.yp}}},{key:"yp",get:function(){return a.devicePixelRatio||1}},{key:"bp",get:function(){return Tn}},{key:"Ap",get:function(){return!1}},{key:"Sp",get:function(){return!0}},{key:"Tp",get:function(){return!!(Nt.eg||Nt.ru||Nt.S_)||!!Nt.U_}},{key:"kp",get:function(){return Nt.U_}},{key:"Ep",get:function(){return!Nt.ru}},{key:"xp",get:function(){return!0}},{key:"Pp",get:function(){return!0}},{key:"Ip",get:function(){return!1}},{key:"Cp",get:function(){}},{key:"Rp",get:function(){return!0}},{key:"Dp",get:function(){return!1}},{key:"Bp",get:function(){return Nt.U_}},{key:"Np",get:function(){return!1}},{key:"Op",get:function(){return!1}},{key:"Fp",get:function(){return!1}},{key:"Up",get:function(){return!0}}]),t}(),bn=function(t){function n(){return t.call(this)||this}return at(n,t),n}(kn),mn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),n.prototype.Mp=function(t,n){if(t&&t.Hp&&n&&n.Hp){var r=Nn(t.Hp,"mp4a.40.2")&&Nn(n.Hp,"mp4a.40.5"),i=Nn(t.Hp,"mp4a.40.5")&&Nn(n.Hp,"mp4a.40.2"),e=Nn(t.Hp,"mp4a.40.2")&&Nn(n.Hp,"mp4a.40.34"),u=Nn(t.Hp,"mp4a.40.34")&&Nn(n.Hp,"mp4a.40.2"),o=Nn(t.Hp,"mp4a.40.5")&&Nn(n.Hp,"mp4a.40.34"),f=Nn(t.Hp,"mp4a.40.34")&&Nn(n.Hp,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},vt(n,[{key:"Cp",get:function(){if(Nt.Uv)return 4096}}]),n}(bn);function Nn(t,n){return t.indexOf(n)>-1}var An,Cn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),n.prototype.Lp=function(t){return t>=2},n}(bn),Dn=function(t){function n(){var n;return(n=t.call(this)||this).Vp=Nt.hg>=11,n.dp=Nt.eg&&!(Nt.ru&&Nt.hg<10),n}return at(n,t),vt(n,[{key:"Np",get:function(){return Nt.hg<17}},{key:"Op",get:function(){return!0}}]),n}(bn),Pn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),vt(n,[{key:"Rp",get:function(){return!(Nt.m_>=133)}}]),n}(bn);var Fn=function(){var t=zt();if(!t)return!1;var n=t.muted;return t.muted=!n,t.muted!==n}();!function(){if(Nt.e_)return!1;var t=zt();if(!t)return!1;var n=t.volume;t.volume=n/2+.1,t.volume}();var Ln=function(t){function n(n){var r;return(r=t.call(this)||this).Wp=void 0,r.Wp=n,r.Vp=r.Wp.Vp,r.Ke=r.Wp.Ke,r.dp=Fn&&r.Wp.dp,r}at(n,t);var r=n.prototype;return r._p=function(){return this.Wp.fp},r.Mp=function(t,n){return this.Wp.Mp(t,n)},r.Lp=function(t){return this.Wp.Lp(t)},vt(n,[{key:"Cp",get:function(){return this.Wp.Cp}},{key:"Rp",get:function(){return this.Wp.Rp}},{key:"Np",get:function(){return this.Wp.Np}}]),n}(kn),Bn=function(t){function n(n){var r;return(r=t.call(this,n)||this).Vp=!0,r.Ks=!0,r}return at(n,t),vt(n,[{key:"Ip",get:function(){return Nt.ru}}]),n}(Ln);var Mn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),n.prototype._p=function(){return function(t){return t&&Pt(a.ManagedMediaSource)?a.ManagedMediaSource:Pt(a.MediaSource)?a.MediaSource:void 0}(!0)?t.prototype._p.call(this):1},vt(n,[{key:"Ip",get:function(){return!0}}]),n}(Bn),Un=function(t){function n(){var n;return(n=t.apply(this,arguments)||this).Xp=void 0,n}return at(n,t),n.prototype.Mp=function(n,r){return t.prototype.Mp.call(this,n,r)},vt(n,[{key:"Ap",get:function(){return Nt.P_<3}},{key:"Sp",get:function(){return Nt.P_>=3}},{key:"wp",get:function(){var t=this;return a.tizen&&!this.Xp&&a.tizen.systeminfo.getPropertyValue("DISPLAY",function(n){var r=n.resolutionWidth,i=n.resolutionHeight;1===r&&1===i||(t.Xp={width:r,height:i})}),this.Xp}},{key:"Dp",get:function(){return Nt.P_<3}}]),n}(Ln),Vn=function(t){function n(){var n;return(n=t.apply(this,arguments)||this).Xp=void 0,n}return at(n,t),vt(n,[{key:"wp",get:function(){var t=this;return a.webOS&&!this.Xp&&a.webOS.deviceInfo(function(n){t.Xp={width:n.screenWidth,height:n.screenHeight}}),this.Xp}},{key:"xp",get:function(){return!1}}]),n}(Ln),Hn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),vt(n,[{key:"Ip",get:function(){return!0}},{key:"Op",get:function(){return this.Wp.Op}}]),n}(Ln),Wn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),vt(n,[{key:"Fp",get:function(){return Nt.IS_FIRETV_AFTMM}}]),n}(Ln);!function(t){An=t}(function(){var t=function(){if(Nt.K_)return new mn;if(Nt.H_||Nt.q_)return new Cn;if(Nt.eg)return new Dn;if(Nt.Fg)return new Pn;return new bn}();return Nt.ru?new Mn(t):Nt.L_?new Wn(t):Nt.Ks?new Bn(t):Nt.E_?new Un(t):Nt.C_?new Vn(t):Nt.Uv?new Hn(t):new Ln(t)}());var xn=!(Nt.q_&&!Nt.G_),Gn=self.console;function jn(t){if(Dt(t))try{return JSON.stringify(t)}catch(t){}return t}function Kn(t){return t.map(jn).join(" ")}function qn(t){var n=Gn&&Gn[t];return n?n.bind&&xn?n.bind(Gn):function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];Gn[t](Kn(r))}:void 0}var zn=qn("log")||Ft,Xn=qn("warn")||zn.bind(void 0,"WARNING:"),Yn=qn("error")||zn.bind(void 0,"ERROR:"),$n=function(){var t=Gn&&Gn.assert;return t?t.bind&&xn?t.bind(Gn):function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];Gn.assert(t,Kn(r))}:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t||Yn.apply(void 0,[].concat(["Assertion failed:"],r))}}();function Zn(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),g.defineProperty(t,i.key,i)}}function Jn(t,n){var r=function(t,n){var r=t.length;if(r<=1)return t;for(var i=new Array(r),e=1;e<r;e*=2){Qn(t,n,e,i);var u=t;t=i,i=u}return t}(t,n);return r!==t&&Qn(r,null,t.length,t),t}function Qn(t,n,r,i){var e,u,o,f,s,c=t.length,a=0,h=2*r;for(e=0;e<c;e+=h)for(o=(u=e+r)+r,u>c&&(u=c),o>c&&(o=c),f=e,s=u;;)if(f<u&&s<o)n(t[f],t[s])<=0?i[a++]=t[f++]:i[a++]=t[s++];else if(f<u)i[a++]=t[f++];else{if(!(s<o))break;i[a++]=t[s++]}}var tr=/[a-zA-Z]/,nr=/[0-9]/,rr=/[0-9a-fA-F]/,ir=/^0x/i,er=/^[0-9]+$/,ur=/^[0-9a-fA-F]+$/,or=/^[0-7]+$/,fr=g.prototype.toString,sr=Array.isArray||function(t){return"[object Array]"===fr.call(t)},cr=void 0!==n&&"symbol"==typeof i;function ar(t){return sr(t)?t:Array.from(t)}function hr(t,n,r){var i=t[n];t[n]=t[r],t[r]=i}function vr(t){return t>=65&&t<=90}function lr(t){return vr(t)||function(t){return t>=97&&t<=122}(t)}function _r(t){return t>=48&&t<=57}function dr(t){return _r(t)||lr(t)}function yr(t){return _r(t)||t>=65&&t<=70||t>=97&&t<=102}function wr(t){return vr(t)?t+32:t}function Ir(t){return _r(t)?t-48:t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:-1}function Er(t,n){return void 0===n&&(n=!1),0<=t&&t<=9?t+48:10<=t&&t<=15?t+(n?87:55):-1}var gr=p.min,pr=String.fromCharCode;function Rr(t){for(var n=t.length,r=[],i=0;i<n;i+=16384){var e=gr(i+16384,n);r.push(pr.apply(null,t.slice(i,e)))}return r.join("")}var Sr=2147483647,Or=/[^\0-\x7E]/,Tr=/[\x2E\u3002\uFF0E\uFF61]/g,kr={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},br=p.floor,mr=String.fromCharCode;function Nr(t){throw new RangeError(kr[t])}function Ar(t){for(var n=[],r=0,i=t.length;r<i;){var e=t.charCodeAt(r++);if(e>=55296&&e<=56319&&r<i){var u=t.charCodeAt(r++);56320==(64512&u)?n.push(((1023&e)<<10)+(1023&u)+65536):(n.push(e),r--)}else n.push(e)}return n}var Cr,Dr,Pr,Fr=function(t,n){return t+22+75*(t<26)-((0!=n)<<5)},Lr=function(t,n,r){var i=0;for(t=r?br(t/700):t>>1,t+=br(t/n);t>455;i+=36)t=br(t/35);return br(i+36*t/(t+38))},Br=function(t){return function(t,n){var r=t.split("@"),i="";r.length>1&&(i=r[0]+"@",t=r[1]);var e=function(t,n){for(var r=[],i=t.length;i--;)r[i]=n(t[i]);return r}((t=t.replace(Tr,".")).split("."),n).join(".");return i+e}(t,function(t){return Or.test(t)?"xn--"+function(t){for(var n=[],r=(t=Ar(t)).length,i=128,e=0,u=72,o=0,f=t;o<f.length;o++){var s=f[o];s<128&&n.push(mr(s))}var c=n.length,a=c;for(c&&n.push("-");a<r;){for(var h=Sr,v=0,l=t;v<l.length;v++){var _=l[v];_>=i&&_<h&&(h=_)}var d=a+1;h-i>br((Sr-e)/d)&&Nr("overflow"),e+=(h-i)*d,i=h;for(var y=0,w=t;y<w.length;y++){var I=w[y];if(I<i&&++e>Sr&&Nr("overflow"),I==i){for(var E=e,g=36;;g+=36){var p=g<=u?1:g>=u+26?26:g-u;if(E<p)break;var R=E-p,S=36-p;n.push(mr(Fr(p+R%S,0))),E=br(R/S)}n.push(mr(Fr(E,0))),u=Lr(e,d,a==c),e=0,++a}}++e,++i}return n.join("")}(t):t})};function Mr(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i)}return Rr(n)}function Ur(t){if(t>=55296&&t<=57343)throw new I("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function Vr(t,n){return t>>n&63|128}function Hr(t,n){4294967168&t?(4294965248&t?4294901760&t?4292870144&t||(n.push(t>>18&7|240),n.push(Vr(t,12)),n.push(Vr(t,6))):(Ur(t),n.push(t>>12&15|224),n.push(Vr(t,6))):n.push(t>>6&31|192),n.push(63&t|128)):n.push(t)}function Wr(t){for(var n=[],r=0;r<t.length;r++){Hr(t[r],n)}return n}function xr(){if(Pr>=Dr)throw new I("Invalid byte index");var t=255&Cr[Pr];if(Pr++,128==(192&t))return 63&t;throw new I("Invalid continuation byte")}function Gr(){var t,n;if(Pr>Dr)throw new I("Invalid byte index");if(Pr===Dr)return!1;if(t=255&Cr[Pr],Pr++,!(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|xr())>=128)return n;throw new I("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|xr()<<6|xr())>=2048)return Ur(n),n;throw new I("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|xr()<<12|xr()<<6|xr())>=65536&&n<=1114111)return n;throw new I("Invalid UTF-8 detected")}function jr(t){return[37,Er(t>>4),Er(15&t)]}function Kr(t){return function(t){return t>=0&&t<=31}(t)||t>126}function qr(t){return Kr(t)||32===t||34===t||60===t||62===t||96===t}function zr(t){return qr(t)||35===t||63===t||123===t||125===t}function Xr(t){return zr(t)||47===t||58===t||59===t||61===t||64===t||t>=91&&t<=94||124===t}function Yr(t){return t<33||t>126||34===t||35===t||60===t||62===t}function $r(t){return Yr(t)||39===t}function Zr(t,n){if(!n(t))return[t];for(var r=Wr([t]),i=[],e=0;e<r.length;e++){var u=r[e];i.push.apply(i,jr(u))}return i}function Jr(t,n){for(var r=[],i=0,e=Ar(t);i<e.length;i++){var u=e[i];r.push.apply(r,Zr(u,n))}return Mr(r)}function Qr(t){return function(t){for(var n=[],r=t.length,i=0;i<r;i++){var e=t[i];if(37===e&&i+2<r&&yr(t[i+1])&&yr(t[i+2])){var u=Ir(t[i+1])<<4|Ir(t[i+2]);n.push(u),i+=2}else n.push(e)}return n}(Wr(t))}function ti(t){return Mr(function(t){Cr=t.slice(),Dr=Cr.length,Pr=0;for(var n,r=[];!1!==(n=Gr());)r.push(n);return r}(Qr(Ar(t))))}function ni(t){var n=t.length,r=[0,0,0,0,0,0,0,0],i=0,e=null,u=0;if(u<n&&":"===t[u]){if(!(u+1<n&&":"===t[u+1]))throw new E;u+=2,e=i+=1}for(;u<n;){if(8===i)throw new E("Too many groups");if(":"!==t[u]){for(var o=0,f=0;f<4&&u<n&&rr.test(t[u]);)o=o<<4|R(t[u],16),u+=1,f+=1;if("."===t[u]){if(0===f)throw new E;if(u-=f,i>6)throw new E;for(var s=0;u<n;){var c=null;if(s>0){if(!("."===t[u]&&s<4))throw new E;u+=1}if(!nr.test(t[u]))throw new E;for(;u<n&&nr.test(t[u]);){var a=R(t[u],10);if(null===c)c=a;else{if(0===c)throw new E;if((c=10*c+a)>255)throw new E}u+=1}r[i]=r[i]<<8|c,2!==(s+=1)&&4!==s||(i+=1)}if(4!==s)throw new E;break}if(":"===t[u]){if((u+=1)===n)throw new E}else if(u<n)throw new E;r[i]=o,i+=1}else{if(null!==e)throw new E("Too many :: groups");u+=1,e=i+=1}}if(null!==e){var h=i-e;for(i=7;0!==i&&h>0;)hr(r,i,e+h-1),i-=1,h-=1}else if(8!==i)throw new E;return r}function ri(t){var n=10,r=er;return ir.test(t)?(t=t.slice(2),n=16,r=ur):t.length>=2&&"0"===t[0]&&(t=t.slice(1),n=8,r=or),""===t?0:r.test(t)?R(t,n):void 0}var ii={jp:4},ei=/[\0\t\n\r #%/:?@\[\\\]]/,ui=/[\0\t\n\r #/:?@\[\\\]]/;function oi(t,n){if("["===t[0]){if("]"!==t[t.length-1])throw new E("Invalid IPv6 address");return{jp:2,Qp:ni(t.slice(1,-1))}}if(!n)return function(t){if(ui.test(t))throw new E("Invalid code point in opaque host");var n=Jr(t,Kr);return""===n?ii:{jp:3,Kp:n}}(t);var r=function(t){var n=function(t){return Br(t.toLowerCase())}(t);return n}(ti(t));if(ei.test(r))throw new E("Invalid code point in host");var i=function(t){var n=t.split(".");if(""===n[n.length-1]&&n.pop(),!(n.length>4)){for(var r=[],i=0;i<n.length;i++){var e=n[i];if(""===e)return;var u=ri(e);if(void 0===u)return;r.push(u)}for(var o=0;o<r.length-1;o++)if(r[o]>255)throw new E;if(r[r.length-1]>=p.pow(256,5-r.length))throw new E;for(var f=r.pop(),s=0;s<r.length;s++)f+=r[s]*p.pow(256,3-s);return f}}(r);return void 0!==i?{jp:1,Qp:i}:""===r?ii:{jp:0,Yp:r}}function fi(t){switch(t.jp){case 0:return t.Yp;case 1:return function(t){for(var n=[],r=t,i=1;i<=4;i++)n.push(""+(255&r)),4!==i&&n.push("."),r>>>=8;return n.reverse().join("")}(t.Qp);case 2:return"["+function(t){for(var n="",r=function(t){for(var n=0,r=0,i=0,e=0,u=0;u<8;u++)0===t[u]?(0===e&&(i=u),e++):(e>r&&(n=i,r=e),e=0);return e>r&&(n=i,r=e),r>1?n:null}(t),i=!1,e=0;e<8;e++){if(i){if(0===t[e])continue;i=!1}r!==e?(n+=t[e].toString(16),7!==e&&(n+=":")):(n+=0===e?"::":":",i=!0)}return n}(t.Qp)+"]";case 3:return t.Kp;case 4:return""}}var si=/\+/g;function ci(t){return 42===t||45===t||46===t||95===t||dr(t)}function ai(t){for(var n=t.split("&"),r=[],i=0;i<n.length;i++){var e=n[i];if(""!==e){var u=e.indexOf("="),o=void 0,f=void 0;-1!==u?(o=e.slice(0,u),f=e.slice(u+1)):(o=e,f=""),o=o.replace(si," "),f=f.replace(si," ");var s=ti(o),c=ti(f);r.push([s,c])}}return r}function hi(t){for(var n="",r=0;r<t.length;r++){var i=t[r];r>0&&(n+="&"),n+=vi(Wr(Ar(i[0])))+"="+vi(Wr(Ar(i[1])))}return n}function vi(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];32===i?n.push(43):ci(i)?n.push(i):n.push.apply(n,jr(i))}return Rr(n)}var li=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function _i(t){var n=""+t,r=li.exec(n);return r?function(t,n){for(var r=t.length,i=[],e=n;e<r;e++){var u=t.charCodeAt(e);if(yi(u))if(wi(u)||e===r-1)i.push(di);else{var o=t.charCodeAt(e+1);wi(o)?(i.push(u,o),e++):i.push(di)}else i.push(u)}return t.slice(0,n)+Rr(i)}(n,r.index):n}var di=65533,yi=function(t){return 55296==(63488&t)},wi=function(t){return!!(1024&t)};function Ii(t,n){var r=t[0],i=n[0];return r===i?0:r<i?-1:1}function Ei(t){t.Jp.length=0}function gi(t,n){!function(t,n){for(var r=0;r<n.length;r++)t[r]=n[r];t.length=n.length}(t.Jp,ai(n))}function pi(t){if(t.rc){var n=hi(t.Jp);""===n&&(n=null),t.rc.rc.Zp=n}}var Ri=function(){function t(t){if(void 0===t&&(t=void 0),this.rc=null,null==t)this.Jp=[];else if("object"==typeof t||"function"==typeof t)if(function(t){return t instanceof Ri&&!!sr(t.Jp)&&(!cr||t[i]===Si)}(t))this.Jp=t.Jp.slice();else if(function(t){return null!=t&&(!!sr(t)||!!cr&&"function"==typeof t[i])}(t)){this.Jp=[];for(var n=0,r=ar(t);n<r.length;n++){var e=ar(r[n]);if(2!==e.length)throw new E("Invalid name-value pair");this.Jp.push([_i(e[0]),_i(e[1])])}}else for(var u in this.Jp=[],t)g.prototype.hasOwnProperty.call(t,u)&&this.Jp.push([_i(u),_i(t[u])]);else(t=_i(t)).length>0&&"?"===t[0]&&(t=t.slice(1)),this.Jp=ai(t)}var n=t.prototype;return n.append=function(t,n){t=_i(t),n=_i(n),this.Jp.push([t,n]),pi(this)},n.delete=function(t){t=_i(t);for(var n=this.Jp,r=0;r<n.length;){n[r][0]===t?n.splice(r,1):r++}pi(this)},n.get=function(t){t=_i(t);for(var n=this.Jp,r=0;r<n.length;r++){var i=n[r];if(i[0]===t)return i[1]}return null},n.getAll=function(t){t=_i(t);for(var n=this.Jp,r=[],i=0;i<n.length;i++){var e=n[i];e[0]===t&&r.push(e[1])}return r},n.has=function(t){t=_i(t);for(var n=this.Jp,r=0;r<n.length;r++){if(n[r][0]===t)return!0}return!1},n.set=function(t,n){t=_i(t),n=_i(n);for(var r=this.Jp,i=!1,e=0;e<r.length;){var u=r[e];u[0]===t?i?r.splice(e,1):(u[1]=n,i=!0,e++):e++}i||r.push([t,n]),pi(this)},n.sort=function(){Jn(this.Jp,Ii),pi(this)},n.toString=function(){return hi(this.Jp)},n.entries=function(){return new bi(this.Jp,Oi)},n.keys=function(){return new bi(this.Jp,Ti)},n.values=function(){return new bi(this.Jp,ki)},n.forEach=function(t){var n=this;this.Jp.forEach(function(r){return t(r[1],r[0],n)})},t}(),Si=Ri.prototype.entries;cr&&(Ri.prototype[i]=Si);var Oi=function(t){return[t[0],t[1]]},Ti=function(t){return t[0]},ki=function(t){return t[1]},bi=function(){function t(t,n){this.$p=0,this.Jp=t,this.im=n}return t.prototype.next=function(){return this.$p<this.Jp.length?{done:!1,value:this.im(this.Jp[this.$p++])}:{done:!0,value:void 0}},t}(),mi="null";var Ni=g.create(null);Ni.ftp=21,Ni.file=0,Ni.gopher=70,Ni.http=80,Ni.https=443,Ni.ws=80,Ni.wss=443;var Ai=/^(?:\.|%2e)$/i,Ci=/^(?:\.|%2e){2}$/i;function Di(t){return Ai.test(t)}function Pi(t){return Ci.test(t)}function Fi(t){return void 0!==Ni[t]}function Li(t){return Fi(t.nm)}function Bi(t){return""!==t.hm||""!==t.um}function Mi(t){var n=t.length;if(!(n>=2))return!1;if(!Vi(t.slice(0,2)))return!1;if(2!==n){var r=t[2];if(47!==r&&92!==r&&63!==r&&35!==r)return!1}return!0}function Ui(t){return 2===t.length&&tr.test(t[0])&&(":"===t[1]||"|"===t[1])}function Vi(t){return 2===t.length&&Ui(Rr(t))}function Hi(t){return Ui(t)&&":"===t[1]}function Wi(t){var n=t.dm;0!==n.length&&("file"===t.nm&&1===n.length&&Hi(n[0])||n.pop())}function xi(t){return null===t.lm||ii===t.lm||t.fm||"file"===t.nm}var Gi=-1,ji=/\t|\n|\r/g,Ki=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function qi(t,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),r||(r=new Xi,t=t.replace(Ki,""));var e=null!==i?i:0;n=n||null;for(var u=[],o=!1,f=!1,s=!1,c=Ar(t=t.replace(ji,"")),a=c.length,h=0;h<=a;){var v=h<a?c[h]:Gi;switch(e){case 0:if(!lr(v)){if(null===i){u.length=0,e=2;continue}throw new E("Invalid scheme")}u.push(wr(v)),e=1;break;case 1:if(dr(v)||43===v||45===v||46===v)u.push(wr(v));else{if(58!==v){if(null===i){u.length=0,e=2,h=0;continue}throw new E("Invalid scheme")}var l=Mr(u);if(null!==i){if(Fi(r.nm)&&!Fi(l))return;if(!Fi(r.nm)&&Fi(l))return;if((Bi(r)||null!==r.vm)&&"file"===l)return;if("file"===r.nm&&(r.lm===ii||null===r.lm))return}if(r.nm=l,null!==i)return void(Li(r)&&r.vm===Ni[r.nm]&&(r.vm=null));u.length=0,"file"===r.nm?e=13:Li(r)&&n&&n.nm===r.nm?e=3:Li(r)?e=7:47===c[h+1]?(e=4,h+=1):(r.fm=!0,r.dm.push(""),e=18)}break;case 2:if(!n||n.fm&&35!==v)throw new E("Invalid scheme");n.fm&&35===v?(r.nm=n.nm,r.dm=n.dm.slice(),r.Zp=n.Zp,r._m="",r.fm=!0,e=20):"file"!==n.nm?(e=5,h-=1):(e=13,h-=1);break;case 3:47===v&&47===c[h+1]?e=8:(e=5,h-=1);break;case 4:47===v?e=9:(e=17,h-=1);break;case 5:r.nm=n.nm,Gi===v?(r.hm=n.hm,r.um=n.um,r.lm=n.lm,r.vm=n.vm,r.dm=n.dm.slice(),r.Zp=n.Zp):47===v?e=6:63===v?(r.hm=n.hm,r.um=n.um,r.lm=n.lm,r.vm=n.vm,r.dm=n.dm.slice(),r.Zp="",e=19):35===v?(r.hm=n.hm,r.um=n.um,r.lm=n.lm,r.vm=n.vm,r.dm=n.dm.slice(),r.Zp=n.Zp,r._m="",e=20):92===v&&Li(r)?e=6:(r.hm=n.hm,r.um=n.um,r.lm=n.lm,r.vm=n.vm,r.dm=n.dm.slice(),r.dm.pop(),e=17,h-=1);break;case 6:!Li(r)||47!==v&&92!==v?47===v?e=9:(r.hm=n.hm,r.um=n.um,r.lm=n.lm,r.vm=n.vm,e=17,h-=1):e=8;break;case 7:if(47!==v||47!==c[h+1]){e=8;continue}e=8,h+=1;break;case 8:47!==v&&92!==v&&(e=9,h-=1);break;case 9:if(64===v){o&&u.unshift(37,52,48),o=!0;for(var _=0;_<u.length;_++){var d=u[_];if(58!==d||s){var y=Mr(Zr(d,Xr));s?r.um+=y:r.hm+=y}else s=!0}u.length=0}else if(Gi===v||47===v||63===v||35===v||Li(r)&&92===v){if(o&&0===u.length)throw new E("Invalid host");h-=u.length+1,u.length=0,e=10}else u.push(v);break;case 10:case 11:if(null!==i&&"file"===r.nm)h-=1,e=15;else if(58!==v||f)if(Gi===v||47===v||63===v||35===v||Li(r)&&92===v){if(h-=1,Li(r)&&0===u.length)throw new E("Invalid host");if(null!==i&&0===u.length&&(Bi(r)||null!==r.vm))return;var w=oi(Mr(u),Li(r));if(r.lm=w,u.length=0,e=16,null!==i)return}else 91===v?f=!0:93===v&&(f=!1),u.push(v);else{if(0===u.length)throw new E("Invalid host");var I=oi(Mr(u),Li(r));if(r.lm=I,u.length=0,e=12,11===i)return}break;case 12:if(_r(v))u.push(v);else{if(!(Gi===v||47===v||63===v||35===v||Li(r)&&92===v||null!==i))throw new E("Invalid port");if(0!==u.length){var g=R(Mr(u),10);if(g>65535)throw new E("Invalid port");r.vm=g===Ni[r.nm]?null:g,u.length=0}if(null!==i)return;e=16,h-=1}break;case 13:r.nm="file",47===v||92===v?e=14:n&&"file"===n.nm?Gi===v?(r.lm=n.lm,r.dm=n.dm.slice(),r.Zp=n.Zp):63===v?(r.lm=n.lm,r.dm=n.dm.slice(),r.Zp="",e=19):35===v?(r.lm=n.lm,r.dm=n.dm.slice(),r.Zp=n.Zp,r._m="",e=20):(Mi(c.slice(h))||(r.lm=n.lm,r.dm=n.dm.slice(),Wi(r)),e=17,h-=1):(e=17,h-=1);break;case 14:47===v||92===v?e=15:(n&&"file"===n.nm&&!Mi(c.slice(h))&&(Hi(n.dm[0])?r.dm.push(n.dm[0]):r.lm=n.lm),e=17,h-=1);break;case 15:if(Gi===v||47===v||92===v||63===v||35===v)if(h-=1,null===i&&Vi(u))e=17;else if(0===u.length){if(r.lm=ii,null!==i)return;e=16}else{var p=oi(Mr(u),Li(r));if(0===p.jp&&"localhost"===p.Yp&&(p=ii),r.lm=p,null!==i)return;u.length=0,e=16}else u.push(v);break;case 16:Li(r)?(e=17,47!==v&&92!==v&&(h-=1)):null===i&&63===v?(r.Zp="",e=19):null===i&&35===v?(r._m="",e=20):Gi!==v&&(e=17,47!==v&&(h-=1));break;case 17:if(Gi===v||47===v||Li(r)&&92===v||null===i&&(63===v||35===v)){var S=Mr(u);if(Pi(S)?(