UNPKG

theoplayer

Version:

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

31 lines (22 loc) 87.8 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: 9.10.1 Created: 2025-08-13T16:11:29.716Z */ !function(t){"use strict";var n,i,r,e,u,o,f,s,h,c=t.window,a=t.document,v=(t.location,t.navigator),l=t.setTimeout,d=t.clearTimeout,y=t.setInterval,w=t.clearInterval,_=t.Error,g=t.TypeError,p=(t.SyntaxError,t.Object),k=t.Math,S=t.parseInt,I=t.parseFloat,b=t.isNaN,m=t.Uint8Array;t.Worker,t.WorkerGlobalScope,t.XMLHttpRequest;function A(t,i){return null!=i&&void 0!==n&&i[n.hasInstance]?!!i[n.hasInstance](t):t instanceof i}function E(t){return t&&void 0!==n&&t.constructor===n?"symbol":typeof t}"function"==typeof Symbol&&Symbol.iterator?(n=Symbol,i=null!=(o=Symbol.for)?o:Symbol,r=Symbol.iterator,e=null!=(f=Symbol.dispose)?f:i("Symbol.dispose"),u=null!=(s=Symbol.asyncDispose)?s:i("Symbol.asyncDispose")):(h=0,n=function(t){return"hd"+t+"_"+ ++h},r=(i=function(t){return"hd"+t})("Symbol.iterator"),e=i("Symbol.dispose"),u=i("Symbol.asyncDispose"),n.for=i,n.iterator=r,n.dispose=e,n.asyncDispose=u);var O=l;function R(t){return Boolean(t&&void 0!==t.length)}function D(){}function T(t){if(!A(this,T))throw new g("Promises must be constructed via new");if("function"!=typeof t)throw new g("not a function");this.Ra=0,this.tki=!1,this.iTt=void 0,this.iki=[],W(t,this)}function N(t,n){for(;3===t.Ra;)t=t.iTt;0!==t.Ra?(t.tki=!0,T.nki(function(){var i=1===t.Ra?n.onFulfilled:n.onRejected;if(null!==i){var r;try{r=i(t.iTt)}catch(t){return void B(n.promise,t)}F(n.promise,r)}else(1===t.Ra?F:B)(n.promise,t.iTt)})):t.iki.push(n)}function F(t,n){try{if(n===t)throw new g("A promise cannot be resolved with itself.");if(n&&("object"===(void 0===n?"undefined":E(n))||"function"==typeof n)){var i=n.then;if(A(n,T))return t.Ra=3,t.iTt=n,void P(t);if("function"==typeof i)return void W(function(t,n){return function(){t.apply(n,arguments)}}(i,n),t)}t.Ra=1,t.iTt=n,P(t)}catch(n){B(t,n)}}function B(t,n){t.Ra=2,t.iTt=n,P(t)}function P(t){2===t.Ra&&0===t.iki.length&&T.nki(function(){t.tki||T.rki(t.iTt)});for(var n=0,i=t.iki.length;n<i;n++)N(t,t.iki[n]);t.iki=null}function C(t,n,i){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof n?n:null,this.promise=i}function W(t,n){var i=!1;try{t(function(t){i||(i=!0,F(n,t))},function(t){i||(i=!0,B(n,t))})}catch(t){if(i)return;i=!0,B(n,t)}}T.prototype.catch=function(t){return this.then(null,t)},T.prototype.then=function(t,n){var i=new this.constructor(D);return N(this,new C(t,n,i)),i},T.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)})})},T.all=function(t){return new T(function(n,i){if(!R(t))return i(new g("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"===(void 0===o?"undefined":E(o))||"function"==typeof o)){var f=o.then;if("function"==typeof f)return void f.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])})},T.allSettled=function(t){return new this(function(n,i){if(!t||void 0===t.length)return i(new g((void 0===t?"undefined":E(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"===(void 0===i?"undefined":E(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])})},T.resolve=function(t){return t&&"object"===(void 0===t?"undefined":E(t))&&t.constructor===T?t:new T(function(n){n(t)})},T.reject=function(t){return new T(function(n,i){i(t)})},T.race=function(t){return new T(function(n,i){if(!R(t))return i(new g("Promise.race accepts an array"));for(var r=0,e=t.length;r<e;r++)T.resolve(t[r]).then(n,i)})},T.nki="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){O(t,0)},T.rki=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var M=function(){var t=self.Promise;if(void 0!==t)try{if(-1!==t.toString().indexOf("[native code]"))return t}catch(t){}}(),V=v?v.userAgent:"",j=V.match(/Firefox\/([0-9]+)/i),H=null!=j,L=j?Number(j[1]):0,x=V.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),U=null!=x,z=x?Number(x[3]):0,G=function(){function t(t){this.hb=0,this.Ld=0,this.qm=[],this.eki=t}return t.prototype.ski=function(t){var n=this.length();this.uki(n+1);var i=this.Ld+n&this.eki-1;this.qm[i]=t,this.hb=n+1},t.prototype.push=function(t){var n=this.length()+1;if(this.eki<n)this.ski(t);else{var i=this.Ld+n-1,r=this.eki-1;this.qm[i&r]=t,this.hb=n}},t.prototype.shift=function(){var t=this.Ld,n=this.qm[t];return this.qm[t]=void 0,this.Ld=t+1&this.eki-1,this.hb--,n},t.prototype.length=function(){return this.hb},t.prototype.uki=function(t){this.eki<t&&this.oki(this.eki<<1)},t.prototype.oki=function(t){var n=this.eki;this.eki=t;var i=this.Ld+this.hb&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.qm,0,n,i)},t}();var K="unhandledrejection",X=self.PromiseRejectionEvent,q=self.CustomEvent;function $(t){return new X(K,{reason:t,promise:M.reject(t).catch(function(){}),cancelable:!0})}function Z(t){var n=new q(K,{detail:{reason:t},cancelable:!0});return p.defineProperty(n,"reason",{value:t}),n}function Y(t){var n=a.createEvent("CustomEvent");return n.initCustomEvent(K,!1,!0,{reason:t}),n}var J,Q,tt,nt,it,rt,et,ut,ot=function(t){return ot=function(){try{var t=M.resolve(),n="error",i=new X(K,{reason:n,promise:t});return K===i.type&&n===i.reason}catch(t){}return!1}()?$:function(){try{var t="error",n=new q(K,{detail:{reason:t}});return K===n.type&&t===n.detail.reason}catch(t){}return!1}()?Z:Y,ot(t)};function ft(t,n){return ft=p.setPrototypeOf||function(t,n){return t.__proto__=n,t},ft(t,n)}function st(t,n){if("function"!=typeof n&&null!==n)throw new g("Super expression must either be null or a function");t.prototype=p.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&ft(t,n)}function ht(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),p.defineProperty(t,r.key,r)}}function ct(t,n,i){return n&&ht(t.prototype,n),i&&ht(t,i),t}function at(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,r=new Array(n);i<n;i++)r[i]=t[i];return r}function vt(t,i){var e=void 0!==n&&t[r]||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 at(t,n);var i=p.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?at(t,n):void 0}}(t))||i&&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 g("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}M&&!(H&&L<60||U&&z<15)?Q=M:(Q=T,et=null!==(J=function(){var t=self.queueMicrotask;if("function"==typeof t)return function(n){return t(n)};var n=M;if(n&&"function"==typeof n.resolve){var i=n.resolve();return function(t){return i.then(t)}}}())&&void 0!==J?J:T.nki,tt=et,nt=new G(16),it=!1,(ut={l6:function(t){nt.push(t),it||(it=!0,tt(rt))},qY:rt=function(){for(;nt.length()>0;)nt.shift()();it=!1}}).qY,T.nki=ut.l6,T.rki=function(t){try{var n=ot(t);if(!self.dispatchEvent(n)||n.defaultPrevented)return}catch(t){}l(function(){throw new _("Unhandled promise rejection: ".concat(t))},0)});var lt=function(t){return t.Sv="web",t.Tv="android",t.Ev="android-tv",t.Rv="ios",t.Iv="tvos",t.xv="chromecast",t.Cv="theoliveweb",t}({});var dt=v?v.userAgent:"",yt=dt.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),wt=dt.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),_t=dt.match(/Android ([0-9\.]+)/i),gt=dt.match(/Windows NT ([0-9\.]+)/i),pt=dt.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),kt=dt.match(/Firefox\/([0-9\.]+)/i),St=dt.match(/OPR\/(\d+\.\d+)/i),It=dt.match(/Tizen ([0-9\.]+)/i),bt=dt.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),mt=dt.match(/HbbTV\/([0-9.]+)/i),At=dt.match(/(AFT.*) Build/i),Et=function(){function t(){this.Pv=Boolean("ontouchstart"in self||self.DocumentTouch&&A(a,self.DocumentTouch)||v&&v.msMaxTouchPoints),this.Dv=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(dt)||/(macintosh|mac(?=_powerpc)\s)/i.test(dt),this.Lv=/Windows NT/i.test(dt),this.Ov=gt?I(gt[1]):0,this.Vv=/Android/i.test(dt),this.Uv=_t?I(_t[1]):0,this.Xv=/windows phone (8|8\.1)/i.test(dt),this.Hv=/iPhone/i.test(dt),this.Yv=/iPad/i.test(dt),this.qv=this.Dv&&this.Pv&&!this.Yv,this.Jv=/iPod/i.test(dt),this.r_=/Mobile Safari/i.test(dt),this.e_=/EOS\d*STB/i.test(dt),this.n_=/APP\d*STB/i.test(dt),this.$v=(this.Hv||this.Yv||this.qv||this.Jv)&&!this.Xv,this.i_=bt?I(bt[2]):0,this.h_=this.Xv||this.$v||this.Vv||this.r_,this.a_=/CriOS/i.test(dt),this.c_=Boolean(self.chrome&&/google/i.test(v.vendor))||this.a_,this.__=this.c_&&/Edg\//i.test(v.userAgent),this.m_=wt?S(wt[1],10):0,this.Dg=Boolean(/CriOS/i.test(dt)),this.Ng=Boolean(self.chrome||/Chrome/i.test(dt)||this.Dg),this.f_=yt?S(yt[1],10):0,this.y_=/SMART-TV.*Tizen/i.test(dt),this.A_=It?I(It[1]):0,this.l_=this.A_>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.A_):void 0,this.T_=/webos|web0s/i.test(dt),this.E_=/HbbTV/i.test(dt),this.I_=!!mt&&function(t){if(!t)return!1;var n=t.split(".").map(Number);return 3===n.length&&1===n[0]&&2===n[1]}(mt[1]),this.C_=/AFT.* Build/i.test(dt),this.P_=At?At[1]:void 0,this.D_=/VIZIO/i.test(dt),this.L_=/Edge\/\d+/i.test(dt),this.O_=/Trident/i.test(dt),this.V_=this.O_&&!self.ActiveXObject&&"ActiveXObject"in self,this.U_=/Vivaldi/i.test(dt),this.X_=/Firefox/i.test(dt)&&!/Seamonkey/i.test(dt),this.H_=kt?I(kt[1]):0,this.Y_=/Safari/i.test(dt)&&!/Chrome/i.test(dt)&&!this.Xv&&!this.y_,this.q_=pt?I(pt[2]):0,this.Q_=Boolean(St),this.eg=St?I(St[1]):0,this.hg=/CrKey/.test(dt),this.ag=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(dt),this.fg=/PlayStation 4/i.test(dt),this._g=/PlayStation 5/i.test(dt),this.pg="web"===lt.Ev,this.yg="web"===lt.Tv,this.Sg=this.yg||this.pg,this.Eg="web"===lt.Rv,this.Ig="web"===lt.Iv,this.Cg="web"===lt.xv}return ct(t,[{key:"Ke",get:function(){return this.Pv}},{key:"Nv",get:function(){return this.Dv}},{key:"Bv",get:function(){return this.Lv}},{key:"Mv",get:function(){return this.Ov}},{key:"Fv",get:function(){return this.Vv}},{key:"Wv",get:function(){return this.Uv}},{key:"Gv",get:function(){return this.Xv}},{key:"Zv",get:function(){return this.Hv}},{key:"zv",get:function(){return this.Yv}},{key:"Kv",get:function(){return this.qv}},{key:"Qv",get:function(){return this.Jv}},{key:"ru",get:function(){return this.$v}},{key:"t_",get:function(){return this.i_}},{key:"s_",get:function(){return this.e_||this.n_}},{key:"vd",get:function(){return this.r_}},{key:"Ks",get:function(){return this.h_}},{key:"o_",get:function(){return this.a_}},{key:"u_",get:function(){return this.c_}},{key:"d_",get:function(){var t;return null!=(t=this.l_)?t:this.f_}},{key:"v_",get:function(){return this.__}},{key:"g_",get:function(){var t;return(null==(t=c.chrome)?void 0:t.webview)&&this.m_>0}},{key:"p_",get:function(){return this.m_}},{key:"w_",get:function(){return this.y_}},{key:"b_",get:function(){return this.A_}},{key:"S_",get:function(){return this.T_}},{key:"k_",get:function(){return this.E_}},{key:"R_",get:function(){return this.I_}},{key:"x_",get:function(){return this.C_}},{key:"IS_FIRETV_AFTMM",get:function(){return"AFTMM"===this.P_}},{key:"N_",get:function(){return this.D_}},{key:"B_",get:function(){return this.L_}},{key:"M_",get:function(){return this.O_}},{key:"F_",get:function(){return this.V_}},{key:"W_",get:function(){return this.U_}},{key:"G_",get:function(){return this.X_}},{key:"Z_",get:function(){return this.H_}},{key:"z_",get:function(){return this.Y_}},{key:"K_",get:function(){return 0===this.q_&&Ot.ru?this.i_:this.q_}},{key:"j_",get:function(){return this.Q_}},{key:"J_",get:function(){return this.eg}},{key:"rg",get:function(){return this.hg}},{key:"og",get:function(){return this.ag}},{key:"cg",get:function(){return!(!this.S_&&!this.w_)&&this.d_<=56}},{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.yg}},{key:"Ag",get:function(){return this.Sg}},{key:"Tg",get:function(){return this.Eg}},{key:"Rg",get:function(){return this.Ig}},{key:"xg",get:function(){return this.Cg}},{key:"Pg",get:function(){return this.Ng}},{key:"IS_IOS_CHROME",get:function(){return this.Dg}}]),t}();Et.Bg=new Et;var Ot=Et.Bg,Rt={}.toString;function Dt(t){return null!=t}Array.isArray;function Tt(t){return"object"===(void 0===t?"undefined":E(t))&&null!==t}function Nt(t){return function(t){return"function"==typeof t}(t)||Tt(t)}var Ft=function(){};function Bt(t){var n;return function(){return void 0!==t&&(n=t(),t=void 0),n}}k.pow(2,-52),Array.prototype.find,Array.prototype.findLast;var Pt="function"==typeof Array.prototype.findIndex?function(t,n){return t.findIndex(n)}:function(t,n){for(var i=0;i<t.length;i+=1){if(n(t[i],i,t))return i}return-1},Ct="function"==typeof Array.prototype.findLastIndex?function(t,n){return t.findLastIndex(n)}:function(t,n){for(var i=t.length-1;i>=0;i-=1){if(n(t[i],i,t))return i}return-1};Array.prototype.at;function Wt(t,n){var i=t.indexOf(n);return-1!==i&&(Mt(t,i),!0)}function Mt(t,n){0===n?t.shift():t.splice(n,1)}function Vt(t){t.length=0}Array.prototype.flat,Array.prototype.flatMap;var jt=function(){function t(){this.Ug=!1,this.Gg=!1,this.Xg=[],this.Hg=[]}var n=t.prototype;return n.Wg=function(){if(!this.Ug&&!this.Gg){this.Ug=!0;for(var t,n=vt(this.Xg.slice());!(t=n()).done;){(0,t.value)()}this.Zg()}},n.Zg=function(){if(!this.Gg){this.Gg=!0;for(var t,n=vt(this.Hg.slice());!(t=n()).done;){(0,t.value)()}Vt(this.Xg),Vt(this.Hg)}},n.zg=function(t){this.Gg||this.Xg.push(t)},n.Yg=function(t){this.Gg||Wt(this.Xg,t)},n.Kg=function(t){this.Gg||this.Hg.push(t)},n.qg=function(t){this.Gg||Wt(this.Hg,t)},t}(),Ht=function(){function t(){this.Qg=new jt}var n=t.prototype;return n.Jg=function(){this.Qg.Wg()},n.Zg=function(){this.Qg.Zg()},n.$g=function(t){var n=this.Qg;if(!n.Ug)if(t.Ug)n.Wg();else if(!n.Gg&&!t.Gg){var i=function(){r(),n.Wg()},r=function(){t.Yg(i),t.qg(r),n.Yg(i),n.qg(r)};t.zg(i),t.Kg(r),n.zg(i),n.Kg(r)}},n.im=function(){var n=new t,i=new t,r=n.jg,e=i.jg,u=this.Qg,o=function(){r.Ug&&e.Gg||e.Ug&&r.Gg?u.Wg():r.Gg&&e.Gg&&u.Zg()};r.zg(o),e.zg(o),r.Kg(o),e.Kg(o),n.$g(u),i.$g(u);return u.Kg(function(){r.Yg(o),e.Yg(o),r.qg(o),e.qg(o)}),[n,i]},n[e]=function(){this.Jg()},t.nm=function(n){for(var i,r=new t,e=vt(n);!(i=e()).done;){var u=i.value;void 0!==u&&r.$g(u)}return r},ct(t,[{key:"jg",get:function(){return this.Qg}}]),t}(),Lt=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];_.apply(this,n)};(Lt.prototype=p.create(_.prototype)).constructor=Lt;var xt=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,_.captureStackTrace&&_.captureStackTrace(r,r.constructor),r}return st(n,t),ct(n,[{key:"name",get:function(){return"BaseError"}}]),n}(Lt);Q.resolve();function Ut(){return void 0!==a?a.createElement("video"):void 0}var zt=Bt(Ut),Gt=(Bt(function(){return"undefined"!=typeof HTMLVideoElement&&A(zt(),HTMLVideoElement)}),null);try{Gt=new WebAssembly.Instance(new WebAssembly.Module(new m([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(tt){}function Kt(t,n,i){this.low=0|t,this.high=0|n,this.unsigned=!!i}function Xt(t){return!0===(t&&t.um)}function qt(t){var n=k.clz32(t&-t);return t?31-n:n}Kt.prototype.um,p.defineProperty(Kt.prototype,"um",{value:!0}),Kt.isLong=Xt;var $t={},Zt={};function Yt(t,n){var i,r,e;return n?(e=0<=(t>>>=0)&&t<256)&&(r=Zt[t])?r:(i=Qt(t,0,!0),e&&(Zt[t]=i),i):(e=-128<=(t|=0)&&t<128)&&(r=$t[t])?r:(i=Qt(t,t<0?-1:0,!1),e&&($t[t]=i),i)}function Jt(t,n){if(b(t))return n?hn:sn;if(n){if(t<0)return hn;if(t>=un)return dn}else{if(t<=-on)return yn;if(t+1>=on)return ln}return t<0?Jt(-t,n).neg():Qt(t%en|0,t/en|0,n)}function Qt(t,n,i){return new Kt(t,n,i)}Kt.fromInt=Yt,Kt.fromNumber=Jt,Kt.fromBits=Qt;var tn=k.pow;function nn(t,n,i){if(0===t.length)throw _("empty string");if("number"==typeof n?(i=n,n=!1):n=!!n,"NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return n?hn:sn;if((i=i||10)<2||36<i)throw RangeError("radix");var r;if((r=t.indexOf("-"))>0)throw _("interior hyphen");if(0===r)return nn(t.substring(1),n,i).neg();for(var e=Jt(tn(i,8)),u=sn,o=0;o<t.length;o+=8){var f=k.min(8,t.length-o),s=S(t.substring(o,o+f),i);if(f<8){var h=Jt(tn(i,f));u=u.mul(h).add(Jt(s))}else u=(u=u.mul(e)).add(Jt(s))}return u.unsigned=n,u}function rn(t,n){return"number"==typeof t?Jt(t,n):"string"==typeof t?nn(t,n):Qt(t.low,t.high,"boolean"==typeof n?n:t.unsigned)}Kt.fromString=nn,Kt.fromValue=rn;var en=4294967296,un=en*en,on=un/2,fn=Yt(1<<24),sn=Yt(0);Kt.ZERO=sn;var hn=Yt(0,!0);Kt.UZERO=hn;var cn=Yt(1);Kt.ONE=cn;var an=Yt(1,!0);Kt.UONE=an;var vn=Yt(-1);Kt.NEG_ONE=vn;var ln=Qt(-1,2147483647,!1);Kt.MAX_VALUE=ln;var dn=Qt(-1,-1,!0);Kt.MAX_UNSIGNED_VALUE=dn;var yn=Qt(0,-2147483648,!1);Kt.MIN_VALUE=yn;var wn=Kt.prototype;function _n(){return Date.now()||(new Date).getTime()}wn.toInt=function(){return this.unsigned?this.low>>>0:this.low},wn.toNumber=function(){return this.unsigned?(this.high>>>0)*en+(this.low>>>0):this.high*en+(this.low>>>0)},wn.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(yn)){var n=Jt(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=Jt(tn(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}},wn.getHighBits=function(){return this.high},wn.getHighBitsUnsigned=function(){return this.high>>>0},wn.getLowBits=function(){return this.low},wn.getLowBitsUnsigned=function(){return this.low>>>0},wn.getNumBitsAbs=function(){if(this.isNegative())return this.eq(yn)?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},wn.isSafeInteger=function(){var t=this.high>>21;return!t||!this.unsigned&&(-1===t&&!(0===this.low&&-2097152===this.high))},wn.isZero=function(){return 0===this.high&&0===this.low},wn.eqz=wn.isZero,wn.isNegative=function(){return!this.unsigned&&this.high<0},wn.isPositive=function(){return this.unsigned||this.high>=0},wn.isOdd=function(){return!(1&~this.low)},wn.isEven=function(){return!(1&this.low)},wn.equals=function(t){return Xt(t)||(t=rn(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&(this.high===t.high&&this.low===t.low)},wn.eq=wn.equals,wn.notEquals=function(t){return!this.eq(t)},wn.neq=wn.notEquals,wn.ne=wn.notEquals,wn.lessThan=function(t){return this.comp(t)<0},wn.lt=wn.lessThan,wn.lessThanOrEqual=function(t){return this.comp(t)<=0},wn.lte=wn.lessThanOrEqual,wn.le=wn.lessThanOrEqual,wn.greaterThan=function(t){return this.comp(t)>0},wn.gt=wn.greaterThan,wn.greaterThanOrEqual=function(t){return this.comp(t)>=0},wn.gte=wn.greaterThanOrEqual,wn.ge=wn.greaterThanOrEqual,wn.compare=function(t){if(Xt(t)||(t=rn(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},wn.comp=wn.compare,wn.negate=function(){return!this.unsigned&&this.eq(yn)?yn:this.not().add(cn)},wn.neg=wn.negate,wn.add=function(t){Xt(t)||(t=rn(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,f=t.low>>>16,s=0,h=0,c=0,a=0;return c+=(a+=e+(65535&t.low))>>>16,h+=(c+=r+f)>>>16,s+=(h+=i+o)>>>16,s+=n+u,Qt((c&=65535)<<16|(a&=65535),(s&=65535)<<16|(h&=65535),this.unsigned)},wn.subtract=function(t){return Xt(t)||(t=rn(t)),this.add(t.neg())},wn.sub=wn.subtract,wn.multiply=function(t){if(this.isZero())return this;if(Xt(t)||(t=rn(t)),Gt)return Qt(Gt.mul(this.low,this.high,t.low,t.high),Gt.get_high(),this.unsigned);if(t.isZero())return this.unsigned?hn:sn;if(this.eq(yn))return t.isOdd()?yn:sn;if(t.eq(yn))return this.isOdd()?yn:sn;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(fn)&&t.lt(fn))return Jt(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,f=t.low>>>16,s=65535&t.low,h=0,c=0,a=0,v=0;return a+=(v+=e*s)>>>16,c+=(a+=r*s)>>>16,a&=65535,c+=(a+=e*f)>>>16,h+=(c+=i*s)>>>16,c&=65535,h+=(c+=r*f)>>>16,c&=65535,h+=(c+=e*o)>>>16,h+=n*s+i*f+r*o+e*u,Qt((a&=65535)<<16|(v&=65535),(h&=65535)<<16|(c&=65535),this.unsigned)},wn.mul=wn.multiply,wn.divide=function(t){if(Xt(t)||(t=rn(t)),t.isZero())throw _("division by zero");var n,i,r;if(Gt)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?Qt((this.unsigned?Gt.div_u:Gt.div_s)(this.low,this.high,t.low,t.high),Gt.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?hn:sn;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return hn;if(t.gt(this.shru(1)))return an;r=hn}else{if(this.eq(yn))return t.eq(cn)||t.eq(vn)?yn:t.eq(yn)?cn:(n=this.shr(1).div(t).shl(1)).eq(sn)?t.isNegative()?cn:vn:(i=this.sub(t.mul(n)),r=n.add(i.div(t)));if(t.eq(yn))return this.unsigned?hn:sn;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=sn}for(i=this;i.gte(t);){n=k.max(1,k.floor(i.toNumber()/t.toNumber()));for(var e=k.ceil(k.log(n)/k.LN2),u=e<=48?1:tn(2,e-48),o=Jt(n),f=o.mul(t);f.isNegative()||f.gt(i);)f=(o=Jt(n-=u,this.unsigned)).mul(t);o.isZero()&&(o=cn),r=r.add(o),i=i.sub(f)}return r},wn.div=wn.divide,wn.modulo=function(t){return Xt(t)||(t=rn(t)),Gt?Qt((this.unsigned?Gt.rem_u:Gt.rem_s)(this.low,this.high,t.low,t.high),Gt.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},wn.mod=wn.modulo,wn.rem=wn.modulo,wn.not=function(){return Qt(~this.low,~this.high,this.unsigned)},wn.countLeadingZeros=function(){return this.high?k.clz32(this.high):k.clz32(this.low)+32},wn.clz=wn.countLeadingZeros,wn.countTrailingZeros=function(){return this.low?qt(this.low):qt(this.high)+32},wn.ctz=wn.countTrailingZeros,wn.and=function(t){return Xt(t)||(t=rn(t)),Qt(this.low&t.low,this.high&t.high,this.unsigned)},wn.or=function(t){return Xt(t)||(t=rn(t)),Qt(this.low|t.low,this.high|t.high,this.unsigned)},wn.xor=function(t){return Xt(t)||(t=rn(t)),Qt(this.low^t.low,this.high^t.high,this.unsigned)},wn.shiftLeft=function(t){return Xt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?Qt(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):Qt(0,this.low<<t-32,this.unsigned)},wn.shl=wn.shiftLeft,wn.shiftRight=function(t){return Xt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?Qt(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):Qt(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},wn.shr=wn.shiftRight,wn.shiftRightUnsigned=function(t){return Xt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?Qt(this.low>>>t|this.high<<32-t,this.high>>>t,this.unsigned):Qt(32===t?this.high:this.high>>>t-32,0,this.unsigned)},wn.shru=wn.shiftRightUnsigned,wn.shr_u=wn.shiftRightUnsigned,wn.rotateLeft=function(t){var n;return Xt(t)&&(t=t.toInt()),0==(t&=63)?this:32===t?Qt(this.high,this.low,this.unsigned):t<32?(n=32-t,Qt(this.low<<t|this.high>>>n,this.high<<t|this.low>>>n,this.unsigned)):(n=32-(t-=32),Qt(this.high<<t|this.low>>>n,this.low<<t|this.high>>>n,this.unsigned))},wn.rotl=wn.rotateLeft,wn.rotateRight=function(t){var n;return Xt(t)&&(t=t.toInt()),0==(t&=63)?this:32===t?Qt(this.high,this.low,this.unsigned):t<32?(n=32-t,Qt(this.high<<n|this.low>>>t,this.low<<n|this.high>>>t,this.unsigned)):(n=32-(t-=32),Qt(this.low<<n|this.high>>>t,this.high<<n|this.low>>>t,this.unsigned))},wn.rotr=wn.rotateRight,wn.toSigned=function(){return this.unsigned?Qt(this.low,this.high,!1):this},wn.toUnsigned=function(){return this.unsigned?this:Qt(this.low,this.high,!0)},wn.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},wn.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]},wn.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]},Kt.fromBytes=function(t,n,i){return i?Kt.fromBytesLE(t,n):Kt.fromBytesBE(t,n)},Kt.fromBytesLE=function(t,n){return new Kt(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,n)},Kt.fromBytesBE=function(t,n){return new Kt(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&&(Kt.fromBigInt=function(t,n){return Qt(Number(BigInt.asIntN(32,t)),Number(BigInt.asIntN(32,t>>BigInt(32))),n)},Kt.fromValue=function(t,n){return"bigint"===(void 0===t?"undefined":E(t))?Kt.fromBigInt(t,n):rn(t,n)},wn.toBigInt=function(){var t=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|t});var gn=1/6,pn=(Kt.fromNumber(9007199254740991),Boolean("ontouchstart"in self||self.DocumentTouch&&A(a,self.DocumentTouch))||Boolean(v&&v.msMaxTouchPoints)),kn=zt(),Sn=Boolean(kn&&kn.webkitShowPlaybackTargetPicker),In=function(){function t(){this.lm=void 0,this.Wm=!1,this.Ke=pn,this.Ks=!1,this.hm=!0}var n=t.prototype;return n.fm=function(){return 0},n.Mm=function(t,n){return!0},n.Om=function(t){return t>=2*gn},ct(t,[{key:"dm",get:function(){return void 0===this.lm&&(this.lm=this.fm()),this.lm}},{key:"vm",get:function(){return Ot.Fv?"android":Ot.Nv?"macos":Ot.ru?"ios":Ot.Bv?"windows":"other"}},{key:"_m",get:function(){return Ot.og?"tv":Ot.Ks?"mobile":"desktop"}},{key:"gm",get:function(){return!Ot.og}},{key:"pm",get:function(){if(c.screen)return{width:c.screen.width,height:c.screen.height}}},{key:"wm",get:function(){return c.devicePixelRatio||1}},{key:"ym",get:function(){return Sn}},{key:"Am",get:function(){return!1}},{key:"Sm",get:function(){return!0}},{key:"Tm",get:function(){return!!(Ot.z_||Ot.ru||Ot.g_)||!!Ot.N_}},{key:"Em",get:function(){return Ot.N_}},{key:"Rm",get:function(){return!Ot.ru}},{key:"Im",get:function(){return!0}},{key:"xm",get:function(){return!0}},{key:"Cm",get:function(){return!1}},{key:"Pm",get:function(){}},{key:"Nm",get:function(){return!0}},{key:"Dm",get:function(){return!1}},{key:"Bm",get:function(){return Ot.N_}},{key:"Lm",get:function(){return!1}},{key:"Fm",get:function(){return!1}},{key:"Vm",get:function(){return!1}}]),t}(),bn=function(t){function n(){return t.call(this)||this}return st(n,t),n}(In),mn=function(t){function n(){return t.apply(this,arguments)||this}return st(n,t),n.prototype.Mm=function(t,n){if(t&&t.Um&&n&&n.Um){var i=An(t.Um,"mp4a.40.2")&&An(n.Um,"mp4a.40.5"),r=An(t.Um,"mp4a.40.5")&&An(n.Um,"mp4a.40.2"),e=An(t.Um,"mp4a.40.2")&&An(n.Um,"mp4a.40.34"),u=An(t.Um,"mp4a.40.34")&&An(n.Um,"mp4a.40.2"),o=An(t.Um,"mp4a.40.5")&&An(n.Um,"mp4a.40.34"),f=An(t.Um,"mp4a.40.34")&&An(n.Um,"mp4a.40.5");return!(i||r||e||u||o||f)}return!0},ct(n,[{key:"Pm",get:function(){if(Ot.Nv)return 4096}}]),n}(bn);function An(t,n){return t.indexOf(n)>-1}var En,On=function(t){function n(){return t.apply(this,arguments)||this}return st(n,t),n.prototype.Om=function(t){return t>=2},n}(bn),Rn=function(t){function n(){var n;return(n=t.call(this)||this).Wm=Ot.K_>=11,n.hm=Ot.z_&&!(Ot.ru&&Ot.K_<10),n}return st(n,t),ct(n,[{key:"Lm",get:function(){return Ot.K_<17}},{key:"Fm",get:function(){return!0}}]),n}(bn),Dn=function(t){function n(){return t.apply(this,arguments)||this}return st(n,t),ct(n,[{key:"Nm",get:function(){return!Ot.Bv||(Ot.v_?92!==Ot.p_:Ot.d_>=100)}}]),n}(bn);var Tn=function(){var t=Ut();if(!t)return!1;var n=t.muted;return t.muted=!n,t.muted!==n}();!function(){if(Ot.Kv)return!1;var t=Ut();if(!t)return!1;var n=t.volume;t.volume=n/2+.1,t.volume}();var Nn=function(t){function n(n){var i;return(i=t.call(this)||this).Gm=void 0,i.Gm=n,i.Wm=i.Gm.Wm,i.Ke=i.Gm.Ke,i.hm=Tn&&i.Gm.hm,i}st(n,t);var i=n.prototype;return i.fm=function(){return this.Gm.dm},i.Mm=function(t,n){return this.Gm.Mm(t,n)},i.Om=function(t){return this.Gm.Om(t)},ct(n,[{key:"Pm",get:function(){return this.Gm.Pm}},{key:"Nm",get:function(){return this.Gm.Nm}},{key:"Lm",get:function(){return this.Gm.Lm}}]),n}(In),Fn=function(t){function n(n){var i;return(i=t.call(this,n)||this).Wm=!0,i.Ks=!0,i}return st(n,t),ct(n,[{key:"Cm",get:function(){return Ot.ru}}]),n}(Nn);var Bn=function(t){function n(){return t.apply(this,arguments)||this}return st(n,t),n.prototype.fm=function(){return function(t){return t&&Nt(c.ManagedMediaSource)?c.ManagedMediaSource:Nt(c.MediaSource)?c.MediaSource:void 0}(!0)?t.prototype.fm.call(this):1},ct(n,[{key:"Cm",get:function(){return!0}}]),n}(Fn),Pn=function(t){function n(){var n;return(n=t.apply(this,arguments)||this).zm=void 0,n}return st(n,t),n.prototype.Mm=function(n,i){return t.prototype.Mm.call(this,n,i)},ct(n,[{key:"Am",get:function(){return Ot.b_<3}},{key:"Sm",get:function(){return Ot.b_>=3}},{key:"pm",get:function(){var t=this;return c.tizen&&!this.zm&&c.tizen.systeminfo.getPropertyValue("DISPLAY",function(n){var i=n.resolutionWidth,r=n.resolutionHeight;1===i&&1===r||(t.zm={width:i,height:r})}),this.zm}},{key:"Dm",get:function(){return Ot.b_<3}}]),n}(Nn),Cn=function(t){function n(){var n;return(n=t.apply(this,arguments)||this).zm=void 0,n}return st(n,t),ct(n,[{key:"pm",get:function(){var t=this;return c.webOS&&!this.zm&&c.webOS.deviceInfo(function(n){t.zm={width:n.screenWidth,height:n.screenHeight}}),this.zm}},{key:"Im",get:function(){return!1}}]),n}(Nn),Wn=function(t){function n(){return t.apply(this,arguments)||this}return st(n,t),ct(n,[{key:"Cm",get:function(){return!0}},{key:"Fm",get:function(){return this.Gm.Fm}}]),n}(Nn),Mn=function(t){function n(){return t.apply(this,arguments)||this}return st(n,t),ct(n,[{key:"Vm",get:function(){return Ot.IS_FIRETV_AFTMM}}]),n}(Nn);!function(t){En=t}(function(){var t=function(){if(Ot.G_)return new mn;if(Ot.B_||Ot.M_)return new On;if(Ot.z_)return new Rn;if(Ot.u_)return new Dn;return new bn}();return Ot.ru?new Bn(t):Ot.x_?new Mn(t):Ot.Ks?new Fn(t):Ot.w_?new Pn(t):Ot.S_?new Cn(t):Ot.Nv?new Wn(t):new Nn(t)}());var Vn=!(Ot.M_&&!Ot.F_),jn=self.console;function Hn(t){if(Tt(t))try{return JSON.stringify(t)}catch(t){}return t}function Ln(t){return t.map(Hn).join(" ")}function xn(t){var n=jn&&jn[t];return n?n.bind&&Vn?n.bind(jn):function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];jn[t](Ln(i))}:void 0}var Un=xn("log")||Ft,zn=xn("warn")||Un.bind(void 0,"WARNING:"),Gn=xn("error")||Un.bind(void 0,"ERROR:"),Kn=function(){var t=jn&&jn.assert;return t?t.bind&&Vn?t.bind(jn):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];jn.assert(t,Ln(i))}: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];t||Gn.apply(void 0,[].concat(["Assertion failed:"],i))}}();function Xn(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),p.defineProperty(t,r.key,r)}}function qn(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){$n(t,n,e,r);var u=t;t=r,r=u}return t}(t,n);return i!==t&&$n(i,null,t.length,t),t}function $n(t,n,i,r){var e,u,o,f,s,h=t.length,c=0,a=2*i;for(e=0;e<h;e+=a)for(o=(u=e+i)+i,u>h&&(u=h),o>h&&(o=h),f=e,s=u;;)if(f<u&&s<o)n(t[f],t[s])<=0?r[c++]=t[f++]:r[c++]=t[s++];else if(f<u)r[c++]=t[f++];else{if(!(s<o))break;r[c++]=t[s++]}}var Zn=/[a-zA-Z]/,Yn=/[0-9]/,Jn=/[0-9a-fA-F]/,Qn=/^0x/i,ti=/^[0-9]+$/,ni=/^[0-9a-fA-F]+$/,ii=/^[0-7]+$/,ri=p.prototype.toString,ei=Array.isArray||function(t){return"[object Array]"===ri.call(t)},ui=void 0!==n&&"symbol"==typeof r;function oi(t){return ei(t)?t:Array.from(t)}function fi(t,n,i){var r=t[n];t[n]=t[i],t[i]=r}function si(t){return t>=65&&t<=90}function hi(t){return si(t)||function(t){return t>=97&&t<=122}(t)}function ci(t){return t>=48&&t<=57}function ai(t){return ci(t)||hi(t)}function vi(t){return ci(t)||t>=65&&t<=70||t>=97&&t<=102}function li(t){return si(t)?t+32:t}function di(t){return ci(t)?t-48:t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:-1}function yi(t,n){return void 0===n&&(n=!1),0<=t&&t<=9?t+48:10<=t&&t<=15?t+(n?87:55):-1}var wi=k.min,_i=String.fromCharCode;function gi(t){for(var n=t.length,i=[],r=0;r<n;r+=16384){var e=wi(r+16384,n);i.push(_i.apply(null,t.slice(r,e)))}return i.join("")}var pi=2147483647,ki=/[^\0-\x7E]/,Si=/[\x2E\u3002\uFF0E\uFF61]/g,Ii={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},bi=k.floor,mi=String.fromCharCode;function Ai(t){throw new RangeError(Ii[t])}function Ei(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 Oi,Ri,Di,Ti=function(t,n){return t+22+75*(t<26)-((0!=n)<<5)},Ni=function(t,n,i){var r=0;for(t=i?bi(t/700):t>>1,t+=bi(t/n);t>455;r+=36)t=bi(t/35);return bi(r+36*t/(t+38))},Fi=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(Si,".")).split("."),n).join(".");return r+e}(t,function(t){return ki.test(t)?"xn--"+function(t){for(var n=[],i=(t=Ei(t)).length,r=128,e=0,u=72,o=0,f=t;o<f.length;o++){var s=f[o];s<128&&n.push(mi(s))}var h=n.length,c=h;for(h&&n.push("-");c<i;){for(var a=pi,v=0,l=t;v<l.length;v++){var d=l[v];d>=r&&d<a&&(a=d)}var y=c+1;a-r>bi((pi-e)/y)&&Ai("overflow"),e+=(a-r)*y,r=a;for(var w=0,_=t;w<_.length;w++){var g=_[w];if(g<r&&++e>pi&&Ai("overflow"),g==r){for(var p=e,k=36;;k+=36){var S=k<=u?1:k>=u+26?26:k-u;if(p<S)break;var I=p-S,b=36-S;n.push(mi(Ti(S+I%b,0))),p=bi(I/b)}n.push(mi(Ti(p,0))),u=Ni(e,y,c==h),e=0,++c}}++e,++r}return n.join("")}(t):t})};function Bi(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 gi(n)}function Pi(t){if(t>=55296&&t<=57343)throw new _("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function Ci(t,n){return t>>n&63|128}function Wi(t,n){4294967168&t?(4294965248&t?4294901760&t?4292870144&t||(n.push(t>>18&7|240),n.push(Ci(t,12)),n.push(Ci(t,6))):(Pi(t),n.push(t>>12&15|224),n.push(Ci(t,6))):n.push(t>>6&31|192),n.push(63&t|128)):n.push(t)}function Mi(t){for(var n=[],i=0;i<t.length;i++){Wi(t[i],n)}return n}function Vi(){if(Di>=Ri)throw new _("Invalid byte index");var t=255&Oi[Di];if(Di++,128==(192&t))return 63&t;throw new _("Invalid continuation byte")}function ji(){var t,n;if(Di>Ri)throw new _("Invalid byte index");if(Di===Ri)return!1;if(t=255&Oi[Di],Di++,!(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|Vi())>=128)return n;throw new _("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|Vi()<<6|Vi())>=2048)return Pi(n),n;throw new _("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|Vi()<<12|Vi()<<6|Vi())>=65536&&n<=1114111)return n;throw new _("Invalid UTF-8 detected")}function Hi(t){return[37,yi(t>>4),yi(15&t)]}function Li(t){return function(t){return t>=0&&t<=31}(t)||t>126}function xi(t){return Li(t)||32===t||34===t||60===t||62===t||96===t}function Ui(t){return xi(t)||35===t||63===t||123===t||125===t}function zi(t){return Ui(t)||47===t||58===t||59===t||61===t||64===t||t>=91&&t<=94||124===t}function Gi(t){return t<33||t>126||34===t||35===t||60===t||62===t}function Ki(t){return Gi(t)||39===t}function Xi(t,n){if(!n(t))return[t];for(var i=Mi([t]),r=[],e=0;e<i.length;e++){var u=i[e];r.push.apply(r,Hi(u))}return r}function qi(t,n){for(var i=[],r=0,e=Ei(t);r<e.length;r++){var u=e[r];i.push.apply(i,Xi(u,n))}return Bi(i)}function $i(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&&vi(t[r+1])&&vi(t[r+2])){var u=di(t[r+1])<<4|di(t[r+2]);n.push(u),r+=2}else n.push(e)}return n}(Mi(t))}function Zi(t){return Bi(function(t){Oi=t.slice(),Ri=Oi.length,Di=0;for(var n,i=[];!1!==(n=ji());)i.push(n);return i}($i(Ei(t))))}function Yi(t){var n=t.length,i=[0,0,0,0,0,0,0,0],r=0,e=null,u=0;if(u<n&&":"===t[u]){if(!(u+1<n&&":"===t[u+1]))throw new g;u+=2,e=r+=1}for(;u<n;){if(8===r)throw new g("Too many groups");if(":"!==t[u]){for(var o=0,f=0;f<4&&u<n&&Jn.test(t[u]);)o=o<<4|S(t[u],16),u+=1,f+=1;if("."===t[u]){if(0===f)throw new g;if(u-=f,r>6)throw new g;for(var s=0;u<n;){var h=null;if(s>0){if(!("."===t[u]&&s<4))throw new g;u+=1}if(!Yn.test(t[u]))throw new g;for(;u<n&&Yn.test(t[u]);){var c=S(t[u],10);if(null===h)h=c;else{if(0===h)throw new g;if((h=10*h+c)>255)throw new g}u+=1}i[r]=i[r]<<8|h,2!==(s+=1)&&4!==s||(r+=1)}if(4!==s)throw new g;break}if(":"===t[u]){if((u+=1)===n)throw new g}else if(u<n)throw new g;i[r]=o,r+=1}else{if(null!==e)throw new g("Too many :: groups");u+=1,e=r+=1}}if(null!==e){var a=r-e;for(r=7;0!==r&&a>0;)fi(i,r,e+a-1),r-=1,a-=1}else if(8!==r)throw new g;return i}function Ji(t){var n=10,i=ti;return Qn.test(t)?(t=t.slice(2),n=16,i=ni):t.length>=2&&"0"===t[0]&&(t=t.slice(1),n=8,i=ii),""===t?0:i.test(t)?S(t,n):void 0}var Qi={Ym:4},tr=/[\0\t\n\r #%/:?@\[\\\]]/,nr=/[\0\t\n\r #/:?@\[\\\]]/;function ir(t,n){if("["===t[0]){if("]"!==t[t.length-1])throw new g("Invalid IPv6 address");return{Ym:2,Km:Yi(t.slice(1,-1))}}if(!n)return function(t){if(nr.test(t))throw new g("Invalid code point in opaque host");var n=qi(t,Li);return""===n?Qi:{Ym:3,qm:n}}(t);var i=function(t){var n=function(t){return Fi(t.toLowerCase())}(t);return n}(Zi(t));if(tr.test(i))throw new g("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=Ji(e);if(void 0===u)return;i.push(u)}for(var o=0;o<i.length-1;o++)if(i[o]>255)throw new g;if(i[i.length-1]>=k.pow(256,5-i.length))throw new g;for(var f=i.pop(),s=0;s<i.length;s++)f+=i[s]*k.pow(256,3-s);return f}}(i);return void 0!==r?{Ym:1,Km:r}:""===i?Qi:{Ym:0,jm:i}}function rr(t){switch(t.Ym){case 0:return t.jm;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.Km);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.Km)+"]";case 3:return t.qm;case 4:return""}}var er=/\+/g;function ur(t){return 42===t||45===t||46===t||95===t||ai(t)}function or(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,f=void 0;-1!==u?(o=e.slice(0,u),f=e.slice(u+1)):(o=e,f=""),o=o.replace(er," "),f=f.replace(er," ");var s=Zi(o),h=Zi(f);i.push([s,h])}}return i}function fr(t){for(var n="",i=0;i<t.length;i++){var r=t[i];i>0&&(n+="&"),n+=sr(Mi(Ei(r[0])))+"="+sr(Mi(Ei(r[1])))}return n}function sr(t){for(var n=[],i=0;i<t.length;i++){var r=t[i];32===r?n.push(43):ur(r)?n.push(r):n.push.apply(n,Hi(r))}return gi(n)}var hr=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function cr(t){var n=""+t,i=hr.exec(n);return i?function(t,n){for(var i=t.length,r=[],e=n;e<i;e++){var u=t.charCodeAt(e);if(vr(u))if(lr(u)||e===i-1)r.push(ar);else{var o=t.charCodeAt(e+1);lr(o)?(r.push(u,o),e++):r.push(ar)}else r.push(u)}return t.slice(0,n)+gi(r)}(n,i.index):n}var ar=65533,vr=function(t){return 55296==(63488&t)},lr=function(t){return!!(1024&t)};function dr(t,n){var i=t[0],r=n[0];return i===r?0:i<r?-1:1}function yr(t){t.Qm.length=0}function wr(t,n){!function(t,n){for(var i=0;i<n.length;i++)t[i]=n[i];t.length=n.length}(t.Qm,or(n))}function _r(t){if(t.rc){var n=fr(t.Qm);""===n&&(n=null),t.rc.rc.Jm=n}}var gr=function(){function t(t){if(void 0===t&&(t=void 0),this.rc=null,null==t)this.Qm=[];else if("object"==typeof t||"function"==typeof t)if(function(t){return t instanceof gr&&!!ei(t.Qm)&&(!ui||t[r]===pr)}(t))this.Qm=t.Qm.slice();else if(function(t){return null!=t&&(!!ei(t)||!!ui&&"function"==typeof t[r])}(t)){this.Qm=[];for(var n=0,i=oi(t);n<i.length;n++){var e=oi(i[n]);if(2!==e.length)throw new g("Invalid name-value pair");this.Qm.push([cr(e[0]),cr(e[1])])}}else for(var u in this.Qm=[],t)p.prototype.hasOwnProperty.call(t,u)&&this.Qm.push([cr(u),cr(t[u])]);else(t=cr(t)).length>0&&"?"===t[0]&&(t=t.slice(1)),this.Qm=or(t)}var n=t.prototype;return n.append=function(t,n){t=cr(t),n=cr(n),this.Qm.push([t,n]),_r(this)},n.delete=function(t){t=cr(t);for(var n=this.Qm,i=0;i<n.length;){n[i][0]===t?n.splice(i,1):i++}_r(this)},n.get=function(t){t=cr(t);for(var n=this.Qm,i=0;i<n.length;i++){var r=n[i];if(r[0]===t)return r[1]}return null},n.getAll=function(t){t=cr(t);for(var n=this.Qm,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=cr(t);for(var n=this.Qm,i=0;i<n.length;i++){if(n[i][0]===t)return!0}return!1},n.set=function(t,n){t=cr(t),n=cr(n);for(var i=this.Qm,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]),_r(this)},n.sort=function(){qn(this.Qm,dr),_r(this)},n.toString=function(){return fr(this.Qm)},n.entries=function(){return new br(this.Qm,kr)},n.keys=function(){return new br(this.Qm,Sr)},n.values=function(){return new br(this.Qm,Ir)},n.forEach=function(t){var n=this;this.Qm.forEach(function(i){return t(i[1],i[0],n)})},t}(),pr=gr.prototype.entries;ui&&(gr.prototype[r]=pr);var kr=function(t){return[t[0],t[1]]},Sr=function(t){return t[0]},Ir=function(t){return t[1]},br=function(){function t(t,n){this.$m=0,this.Qm=t,this.tp=n}return t.prototype.next=function(){return this.$m<this.Qm.length?{done:!1,value:this.tp(this.Qm[this.$m++])}:{done:!0,value:void 0}},t}(),mr="null";var Ar=p.create(null);Ar.ftp=21,Ar.file=0,Ar.gopher=70,Ar.http=80,Ar.https=443,Ar.ws=80,Ar.wss=443;var Er=/^(?:\.|%2e)$/i,Or=/^(?:\.|%2e){2}$/i;function Rr(t){return Er.test(t)}function Dr(t){return Or.test(t)}function Tr(t){return void 0!==Ar[t]}function Nr(t){return Tr(t.sp)}function Fr(t){return""!==t.ep||""!==t.np}function Br(t){var n=t.length;if(!(n>=2))return!1;if(!Cr(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 Pr(t){return 2===t.length&&Zn.test(t[0])&&(":"===t[1]||"|"===t[1])}function Cr(t){return 2===t.length&&Pr(gi(t))}function Wr(t){return Pr(t)&&":"===t[1]}function Mr(t){var n=t.rp;0!==n.length&&("file"===t.sp&&1===n.length&&Wr(n[0])||n.pop())}function Vr(t){return null===t.hp||Qi===t.hp||t.op||"file"===t.sp}var jr=-1,Hr=/\t|\n|\r/g,Lr=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function xr(t,n,i,r){void 0===i&&(i=null),void 0===r&&(r=null),i||(i=new zr,t=t.replace(Lr,""));var e=null!==r?r:0;n=n||null;for(var u=[],o=!1,f=!1,s=!1,h=Ei(t=t.replace(Hr,"")),c=h.length,a=0;a<=c;){var v=a<c?h[a]:jr;switch(e){case 0:if(!hi(v)){if(null===r){u.length=0,e=2;continue}throw new g("Invalid scheme")}u.push(li(v)),e=1;break;case 1:if(ai(v)||43===v||45===v||46===v)u.push(li(v));else{if(58!==v){if(null===r){u.length=0,e=2,a=0;continue}throw new g("Invalid scheme")}var l=Bi(u);if(null!==r){if(Tr(i.sp)&&!Tr(l))return;if(!Tr(i.sp)&&Tr(l))return;if((Fr(i)||null!==i.ap)&&"file"===l)return;if("file"===i.sp&&(i.hp===Qi||null===i.hp))return}if(i.sp=l,null!==r)return void(Nr(i)&&i.ap===Ar[i.sp]&&(i.ap=null));u.length=0,"file"===i.sp?e=13:Nr(i)&&n&&n.sp===i.sp?e=3:Nr(i)?e=7:47===h[a+1]?(e=4,a+=1):(i.op=!0,i.rp.push(""),e=18)}break;case 2:if(!n||n.op&&35!==v)throw new g("Invalid scheme");n.op&&35===v?(i.sp=n.sp,i.rp=n.rp.slice(),i.Jm=n.Jm,i.cp="",i.op=!0,e=20):"file"!==n.sp?(e=5,a-=1):(e=13,a-=1);break;case 3:47===v&&47===h[a+1]?e=8:(e=5,a-=1);break;case 4:47===v?e=9:(e=17,a-=1);break;case 5:i.sp=n.sp,jr===v?(i.ep=n.ep,i.np=n.np,i.hp=n.hp,i.ap=n.ap,i.rp=n.rp.slice(),i.Jm=n.Jm):47===v?e=6:63===v?(i.ep=n.ep,i.np=n.np,i.hp=n.hp,i.ap=n.ap,i.rp=n.rp.slice(),i.Jm="",e=19):35===v?(i.ep=n.ep,i.np=n.np,i.hp=n.hp,i.ap=n.ap,i.rp=n.rp.slice(),i.Jm=n.Jm,i.cp="",e=20):92===v&&Nr(i)?e=6:(i.ep=n.ep,i.np=n.np,i.hp=n.hp,i.ap=n.ap,i.rp=n.rp.slice(),i.rp.pop(),e=17,a-=1);break;case 6:!Nr(i)||47!==v&&92!==v?47===v?e=9:(i.ep=n.ep,i.np=n.np,i.hp=n.hp,i.ap=n.ap,e=17,a-=1):e=8;break;case 7:if(47!==v||47!==h[a+1]){e=8;continue}e=8,a+=1;break;case 8:47!==v&&92!==v&&(e=9,a-=1);break;case 9:if(64===v){o&&u.unshift(37,52,48),o=!0;for(var d=0;d<u.length;d++){var y=u[d];if(58!==y||s){var w=Bi(Xi(y,zi));s?i.np+=w:i.ep+=w}else s=!0}u.length=0}else if(jr===v||47===v||63===v||35===v||Nr(i)&&92===v){if(o&&0===u.length)throw new g("Invalid host");a-=u.length+1,u.length=0,e=10}else u.push(v);break;case 10:case 11:if(null!==r&&"file"===i.sp)a-=1,e=15;else if(58!==v||f)if(jr===v||47===v||63===v||35===v||Nr(i)&&92===v){if(a-=1,Nr(i)&&0===u.length)throw new g("Invalid host");if(null!==r&&0===u.length&&(Fr(i)||null!==i.ap))return;var _=ir(Bi(u),Nr(i));if(i.hp=_,u.length=0,e=16,null!==r)return}else 91===v?f=!0:93===v&&(f=!1),u.push(v);else{if(0===u.length)throw new g("Invalid host");var p=ir(Bi(u),Nr(i));if(i.hp=p,u.length=0,e=12,11===r)return}break;case 12:if(ci(v))u.push(v);else{if(!(jr===v||47===v||63===v||35===v||Nr(i)&&92===v||null!==r))throw new g("Invalid port");if(0!==u.length){var k=S(Bi(u),10);if(k>65535)throw new g("Invalid port");i.ap=k===Ar[i.sp]?null:k,u.length=0}if(null!==r)return;e=16,a-=1}break;case 13:i.sp="file",47===v||92===v?e=14:n&&"file"===n.sp?jr===v?(i.hp=n.hp,i.rp=n.rp.slice(),i.Jm=n.Jm):63===v?(i.hp=n.hp,i.rp=n.rp.slice(),i.Jm="",e=19):35===v?(i.hp=n.hp,i.rp=n.rp.slice(),i.Jm=n.Jm,i.cp="",e=20):(Br(h.slice(a))||(i.hp=n.hp,i.rp=n.rp.slice(),Mr(i)),e=17,a-=1):(e=17,a-=1);break;case 14:47===v||92===v?e=15:(n&&"file"===n.sp&&!Br(h.slice(a))&&(Wr(n.rp[0])?i.rp.push(n.rp[0]):i.hp=n.hp),e=17,a-=1);break;case 15:if(jr===v||47===v||92===v||63===v||35===v)if(a-=1,null===r&&Cr(u))e=17;else if(0===u.length){if(i.hp=Qi,null!==r)return;e=16}else{var I=ir(Bi(u),Nr(i));if(0===I.Ym&&"localhost"===I.jm&&(I=Qi),i.hp=I,null!==r)return;u.length=0,e=16}else u.push(v);break;case 16:Nr(i)?(e=17,47!==v&&92!==v&&(a-=1)):null===r&&63===v?(i.Jm="",e=19):null===r&&35===v?(i.cp="",e=20):jr!==v&&(e=17,47!==v&&(a-=1));break;case 17:if(jr===v||47===v||Nr(i)&&92===v||null===r&&(63===v||35===v)){var b=Bi(u);if(Dr(b)?(Mr(i),47===v||Nr(i)&&92===v||i.rp.push("")):!Rr(b)||47===v||Nr(i)&&92===v?Rr(b)||("file"===i.sp&&0===i.rp.length&&Cr(u)&&(Qi!==i.hp&&null!==i.hp&&(i.hp=Qi),u[1]=58,b=Bi(u)),i.rp.push(b)):i.rp.push(""),u.length=0,"file"===i.sp&&(jr===v||63===v||35===v))for(;i.rp.length>1&&""===i.rp[0];)i.rp.shift();63===v?(i.Jm="",e=19):35===v&&(i.cp="",e=20)}else u.push.apply(u,Xi(v,Ui));break;case 18:63===v?(i.Jm="",e=19):35===v?(i.cp="",e=20):jr!==v&&(i.rp[0]+=Bi(Xi(v,Li)));break;case 19:null===r&&35===v?(i.cp="",e=20):jr!==v&&(i.Jm+=Bi(Xi(v,Nr(i)?Ki:Gi)));break;case 20:jr===v||0===v||(i.cp+=Bi(Xi(v,xi)))}a++}return i}function Ur(t,n,i,r){try{xr(t,n,i,r)}catch(t){}}var zr=function(){this.sp="",this.ep="",this.np="",this.hp=null,this.ap=null,this.rp=[],this.Jm=null,this.cp=null,this.op=!1};function Gr(t){switch(t.sp){case"blob":var n;try{n=xr(t.rp[0],null)}catch(t){return mr}return Gr(n);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(t,n,i){return t+"://"+rr(n)+(null===i?"":":"+i)}(t.sp,t.hp,t.ap);default:return mr}}var Kr=function(){function t(t,n){var i,r=null;if(null!=n)if(function(t){return null!=t&&t instanceof Kr&&"object"==typeof t.rc}(n))r=n.rc;else try{r=xr(String(n),null)}catch(t){throw new g("Invalid base URL: "+t.message)}try{i=xr(String(t),r)}catch(t){throw new g("Invalid URL: "+t.message)}var e=i.Jm;this.rc=i,this.Jm=function(t){var n=new gr;return null!==t&&wr(n,t),n}(e),this.Jm.rc=this}var n=t.prototype;r