theoplayer
Version:
THEOplayer is the universal video player solution, enabling you to quickly deliver cross-platform content playback.
30 lines (22 loc) • 415 kB
JavaScript
/*!
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(r){"use strict";var i,e,A,f,n,t,a,b,u,o=r.window,k=r.document,c=(r.location,r.navigator),s=r.setTimeout,h=r.clearTimeout,l=r.setInterval,v=r.clearInterval,d=r.Error,g=r.TypeError,w=(r.SyntaxError,r.Object),y=r.Math,I=r.parseInt,E=r.parseFloat,_=r.isNaN,B=r.Uint8Array;r.Worker,r.WorkerGlobalScope,r.XMLHttpRequest;function N(r,e){return null!=e&&void 0!==i&&e[i.hasInstance]?!!e[i.hasInstance](r):r instanceof e}function C(r){return r&&void 0!==i&&r.constructor===i?"symbol":typeof r}"function"==typeof Symbol&&Symbol.iterator?(i=Symbol,e=null!=(t=Symbol.for)?t:Symbol,A=Symbol.iterator,f=null!=(a=Symbol.dispose)?a:e("Symbol.dispose"),n=null!=(b=Symbol.asyncDispose)?b:e("Symbol.asyncDispose")):(u=0,i=function(r){return"hd"+r+"_"+ ++u},A=(e=function(r){return"hd"+r})("Symbol.iterator"),f=e("Symbol.dispose"),n=e("Symbol.asyncDispose"),i.for=e,i.iterator=A,i.dispose=f,i.asyncDispose=n);var Q=s;function R(r){return Boolean(r&&void 0!==r.length)}function p(){}function m(r){if(!N(this,m))throw new g("Promises must be constructed via new");if("function"!=typeof r)throw new g("not a function");this.Ra=0,this.tki=!1,this.iTt=void 0,this.iki=[],D(r,this)}function G(r,i){for(;3===r.Ra;)r=r.iTt;0!==r.Ra?(r.tki=!0,m.nki(function(){var e=1===r.Ra?i.onFulfilled:i.onRejected;if(null!==e){var A;try{A=e(r.iTt)}catch(r){return void Y(i.promise,r)}S(i.promise,A)}else(1===r.Ra?S:Y)(i.promise,r.iTt)})):r.iki.push(i)}function S(r,i){try{if(i===r)throw new g("A promise cannot be resolved with itself.");if(i&&("object"===(void 0===i?"undefined":C(i))||"function"==typeof i)){var e=i.then;if(N(i,m))return r.Ra=3,r.iTt=i,void W(r);if("function"==typeof e)return void D(function(r,i){return function(){r.apply(i,arguments)}}(e,i),r)}r.Ra=1,r.iTt=i,W(r)}catch(i){Y(r,i)}}function Y(r,i){r.Ra=2,r.iTt=i,W(r)}function W(r){2===r.Ra&&0===r.iki.length&&m.nki(function(){r.tki||m.rki(r.iTt)});for(var i=0,e=r.iki.length;i<e;i++)G(r,r.iki[i]);r.iki=null}function O(r,i,e){this.onFulfilled="function"==typeof r?r:null,this.onRejected="function"==typeof i?i:null,this.promise=e}function D(r,i){var e=!1;try{r(function(r){e||(e=!0,S(i,r))},function(r){e||(e=!0,Y(i,r))})}catch(r){if(e)return;e=!0,Y(i,r)}}m.prototype.catch=function(r){return this.then(null,r)},m.prototype.then=function(r,i){var e=new this.constructor(p);return G(this,new O(r,i,e)),e},m.prototype.finally=function(r){var i=this.constructor;return this.then(function(e){return i.resolve(r()).then(function(){return e})},function(e){return i.resolve(r()).then(function(){return i.reject(e)})})},m.all=function(r){return new m(function(i,e){if(!R(r))return e(new g("Promise.all accepts an array"));var A=Array.prototype.slice.call(r);if(0===A.length)return i([]);var f=A.length;function n(r,t){try{if(t&&("object"===(void 0===t?"undefined":C(t))||"function"==typeof t)){var a=t.then;if("function"==typeof a)return void a.call(t,function(i){n(r,i)},e)}A[r]=t,0===--f&&i(A)}catch(r){e(r)}}for(var t=0;t<A.length;t++)n(t,A[t])})},m.allSettled=function(r){return new this(function(i,e){if(!r||void 0===r.length)return e(new g((void 0===r?"undefined":C(r))+" "+r+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var A=Array.prototype.slice.call(r);if(0===A.length)return i([]);var f=A.length;function n(r,e){if(e&&("object"===(void 0===e?"undefined":C(e))||"function"==typeof e)){var t=e.then;if("function"==typeof t)return void t.call(e,function(i){n(r,i)},function(e){A[r]={status:"rejected",reason:e},0===--f&&i(A)})}A[r]={status:"fulfilled",value:e},0===--f&&i(A)}for(var t=0;t<A.length;t++)n(t,A[t])})},m.resolve=function(r){return r&&"object"===(void 0===r?"undefined":C(r))&&r.constructor===m?r:new m(function(i){i(r)})},m.reject=function(r){return new m(function(i,e){e(r)})},m.race=function(r){return new m(function(i,e){if(!R(r))return e(new g("Promise.race accepts an array"));for(var A=0,f=r.length;A<f;A++)m.resolve(r[A]).then(i,e)})},m.nki="function"==typeof setImmediate&&function(r){setImmediate(r)}||function(r){Q(r,0)},m.rki=function(r){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",r)};var M=function(){var r=self.Promise;if(void 0!==r)try{if(-1!==r.toString().indexOf("[native code]"))return r}catch(r){}}(),T=c?c.userAgent:"",Z=T.match(/Firefox\/([0-9]+)/i),L=null!=Z,F=Z?Number(Z[1]):0,V=T.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),j=null!=V,X=V?Number(V[3]):0,J=function(){function r(r){this.hb=0,this.Ld=0,this.qm=[],this.eki=r}return r.prototype.ski=function(r){var i=this.length();this.uki(i+1);var e=this.Ld+i&this.eki-1;this.qm[e]=r,this.hb=i+1},r.prototype.push=function(r){var i=this.length()+1;if(this.eki<i)this.ski(r);else{var e=this.Ld+i-1,A=this.eki-1;this.qm[e&A]=r,this.hb=i}},r.prototype.shift=function(){var r=this.Ld,i=this.qm[r];return this.qm[r]=void 0,this.Ld=r+1&this.eki-1,this.hb--,i},r.prototype.length=function(){return this.hb},r.prototype.uki=function(r){this.eki<r&&this.oki(this.eki<<1)},r.prototype.oki=function(r){var i=this.eki;this.eki=r;var e=this.Ld+this.hb&i-1;!function(r,i,e,A){for(var f=0;f<A;++f)r[f+e]=r[f+i],r[f+i]=void 0}(this.qm,0,i,e)},r}();var H="unhandledrejection",x=self.PromiseRejectionEvent,U=self.CustomEvent;function z(r){return new x(H,{reason:r,promise:M.reject(r).catch(function(){}),cancelable:!0})}function P(r){var i=new U(H,{detail:{reason:r},cancelable:!0});return w.defineProperty(i,"reason",{value:r}),i}function K(r){var i=k.createEvent("CustomEvent");return i.initCustomEvent(H,!1,!0,{reason:r}),i}var q,$,rr,ir,er,Ar,fr,nr,tr=function(r){return tr=function(){try{var r=M.resolve(),i="error",e=new x(H,{reason:i,promise:r});return H===e.type&&i===e.reason}catch(r){}return!1}()?z:function(){try{var r="error",i=new U(H,{detail:{reason:r}});return H===i.type&&r===i.detail.reason}catch(r){}return!1}()?P:K,tr(r)};function ar(r,i){return ar=w.setPrototypeOf||function(r,i){return r.__proto__=i,r},ar(r,i)}function br(r,i){if("function"!=typeof i&&null!==i)throw new g("Super expression must either be null or a function");r.prototype=w.create(i&&i.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),i&&ar(r,i)}function ur(r,i){for(var e=0;e<i.length;e++){var A=i[e];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),w.defineProperty(r,A.key,A)}}function or(r,i,e){return i&&ur(r.prototype,i),e&&ur(r,e),r}function kr(r,i){(null==i||i>r.length)&&(i=r.length);for(var e=0,A=new Array(i);e<i;e++)A[e]=r[e];return A}function cr(r,e){var f=void 0!==i&&r[A]||r["@@iterator"];if(f)return(f=f.call(r)).next.bind(f);if(Array.isArray(r)||(f=function(r,i){if(r){if("string"==typeof r)return kr(r,i);var e=w.prototype.toString.call(r).slice(8,-1);return"Object"===e&&r.constructor&&(e=r.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?kr(r,i):void 0}}(r))||e&&r&&"number"==typeof r.length){f&&(r=f);var n=0;return function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}}}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&&!(L&&F<60||j&&X<15)?$=M:($=m,fr=null!==(q=function(){var r=self.queueMicrotask;if("function"==typeof r)return function(i){return r(i)};var i=M;if(i&&"function"==typeof i.resolve){var e=i.resolve();return function(r){return e.then(r)}}}())&&void 0!==q?q:m.nki,rr=fr,ir=new J(16),er=!1,(nr={l6:function(r){ir.push(r),er||(er=!0,rr(Ar))},qY:Ar=function(){for(;ir.length()>0;)ir.shift()();er=!1}}).qY,m.nki=nr.l6,m.rki=function(r){try{var i=tr(r);if(!self.dispatchEvent(i)||i.defaultPrevented)return}catch(r){}s(function(){throw new d("Unhandled promise rejection: ".concat(r))},0)});var sr=function(r){return r.Sv="web",r.Tv="android",r.Ev="android-tv",r.Rv="ios",r.Iv="tvos",r.xv="chromecast",r.Cv="theoliveweb",r}({});var hr=c?c.userAgent:"",lr=hr.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),vr=hr.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),dr=hr.match(/Android ([0-9\.]+)/i),gr=hr.match(/Windows NT ([0-9\.]+)/i),wr=hr.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),yr=hr.match(/Firefox\/([0-9\.]+)/i),Ir=hr.match(/OPR\/(\d+\.\d+)/i),Er=hr.match(/Tizen ([0-9\.]+)/i),_r=hr.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),Br=hr.match(/HbbTV\/([0-9.]+)/i),Nr=hr.match(/(AFT.*) Build/i),Cr=function(){function r(){this.Pv=Boolean("ontouchstart"in self||self.DocumentTouch&&N(k,self.DocumentTouch)||c&&c.msMaxTouchPoints),this.Dv=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(hr)||/(macintosh|mac(?=_powerpc)\s)/i.test(hr),this.Lv=/Windows NT/i.test(hr),this.Ov=gr?E(gr[1]):0,this.Vv=/Android/i.test(hr),this.Uv=dr?E(dr[1]):0,this.Xv=/windows phone (8|8\.1)/i.test(hr),this.Hv=/iPhone/i.test(hr),this.Yv=/iPad/i.test(hr),this.qv=this.Dv&&this.Pv&&!this.Yv,this.Jv=/iPod/i.test(hr),this.r_=/Mobile Safari/i.test(hr),this.e_=/EOS\d*STB/i.test(hr),this.n_=/APP\d*STB/i.test(hr),this.$v=(this.Hv||this.Yv||this.qv||this.Jv)&&!this.Xv,this.i_=_r?E(_r[2]):0,this.h_=this.Xv||this.$v||this.Vv||this.r_,this.a_=/CriOS/i.test(hr),this.c_=Boolean(self.chrome&&/google/i.test(c.vendor))||this.a_,this.__=this.c_&&/Edg\//i.test(c.userAgent),this.m_=vr?I(vr[1],10):0,this.Dg=Boolean(/CriOS/i.test(hr)),this.Ng=Boolean(self.chrome||/Chrome/i.test(hr)||this.Dg),this.f_=lr?I(lr[1],10):0,this.y_=/SMART-TV.*Tizen/i.test(hr),this.A_=Er?E(Er[1]):0,this.l_=this.A_>0?function(r){return r>=8?108:r>=7?94:r>=6.5?85:r>=6?76:r>=5.5?69:r>=5?63:r>=4?56:r>=3?47:0}(this.A_):void 0,this.T_=/webos|web0s/i.test(hr),this.E_=/HbbTV/i.test(hr),this.I_=!!Br&&function(r){if(!r)return!1;var i=r.split(".").map(Number);return 3===i.length&&1===i[0]&&2===i[1]}(Br[1]),this.C_=/AFT.* Build/i.test(hr),this.P_=Nr?Nr[1]:void 0,this.D_=/VIZIO/i.test(hr),this.L_=/Edge\/\d+/i.test(hr),this.O_=/Trident/i.test(hr),this.V_=this.O_&&!self.ActiveXObject&&"ActiveXObject"in self,this.U_=/Vivaldi/i.test(hr),this.X_=/Firefox/i.test(hr)&&!/Seamonkey/i.test(hr),this.H_=yr?E(yr[1]):0,this.Y_=/Safari/i.test(hr)&&!/Chrome/i.test(hr)&&!this.Xv&&!this.y_,this.q_=wr?E(wr[2]):0,this.Q_=Boolean(Ir),this.eg=Ir?E(Ir[1]):0,this.hg=/CrKey/.test(hr),this.ag=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(hr),this.fg=/PlayStation 4/i.test(hr),this._g=/PlayStation 5/i.test(hr),this.pg="web"===sr.Ev,this.yg="web"===sr.Tv,this.Sg=this.yg||this.pg,this.Eg="web"===sr.Rv,this.Ig="web"===sr.Iv,this.Cg="web"===sr.xv}return or(r,[{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 r;return null!=(r=this.l_)?r:this.f_}},{key:"v_",get:function(){return this.__}},{key:"g_",get:function(){var r;return(null==(r=o.chrome)?void 0:r.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_&&Qr.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}}]),r}();Cr.Bg=new Cr;var Qr=Cr.Bg,Rr={}.toString;function pr(r){return null!=r}Array.isArray;function mr(r){return"object"===(void 0===r?"undefined":C(r))&&null!==r}function Gr(r){return function(r){return"function"==typeof r}(r)||mr(r)}var Sr=function(){};function Yr(r){var i;return function(){return void 0!==r&&(i=r(),r=void 0),i}}function Wr(r,i,e,A,f,n,t){try{var a=r[n](t),b=a.value}catch(r){return void e(r)}a.done?i(b):$.resolve(b).then(A,f)}function Or(r,e){var f,n,t,a={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]},b=w.create(("function"==typeof Iterator?Iterator:w).prototype);return b.next=u(0),b.throw=u(1),b.return=u(2),"function"==typeof i&&(b[A]=function(){return this}),b;function u(i){return function(A){return function(i){if(f)throw new g("Generator is already executing.");for(;b&&(b=0,i[0]&&(a=0)),a;)try{if(f=1,n&&(t=2&i[0]?n.return:i[0]?n.throw||((t=n.return)&&t.call(n),0):n.next)&&!(t=t.call(n,i[1])).done)return t;switch(n=0,t&&(i=[2&i[0],t.value]),i[0]){case 0:case 1:t=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(t=a.trys,(t=t.length>0&&t[t.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!t||i[1]>t[0]&&i[1]<t[3])){a.label=i[1];break}if(6===i[0]&&a.label<t[1]){a.label=t[1],t=i;break}if(t&&a.label<t[2]){a.label=t[2],a.ops.push(i);break}t[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(r,a)}catch(r){i=[6,r],n=0}finally{f=t=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,A])}}}y.pow(2,-52),Array.prototype.find,Array.prototype.findLast;var Dr="function"==typeof Array.prototype.findIndex?function(r,i){return r.findIndex(i)}:function(r,i){for(var e=0;e<r.length;e+=1){if(i(r[e],e,r))return e}return-1},Mr="function"==typeof Array.prototype.findLastIndex?function(r,i){return r.findLastIndex(i)}:function(r,i){for(var e=r.length-1;e>=0;e-=1){if(i(r[e],e,r))return e}return-1};Array.prototype.at;function Tr(r,i){var e=r.indexOf(i);return-1!==e&&(function(r,i){0===i?r.shift():r.splice(i,1)}(r,e),!0)}function Zr(r){r.length=0}Array.prototype.flat,Array.prototype.flatMap;var Lr=function(){function r(){this.Ug=!1,this.Gg=!1,this.Xg=[],this.Hg=[]}var i=r.prototype;return i.Wg=function(){if(!this.Ug&&!this.Gg){this.Ug=!0;for(var r,i=cr(this.Xg.slice());!(r=i()).done;){(0,r.value)()}this.Zg()}},i.Zg=function(){if(!this.Gg){this.Gg=!0;for(var r,i=cr(this.Hg.slice());!(r=i()).done;){(0,r.value)()}Zr(this.Xg),Zr(this.Hg)}},i.zg=function(r){this.Gg||this.Xg.push(r)},i.Yg=function(r){this.Gg||Tr(this.Xg,r)},i.Kg=function(r){this.Gg||this.Hg.push(r)},i.qg=function(r){this.Gg||Tr(this.Hg,r)},r}(),Fr=function(){function r(){this.Qg=new Lr}var i=r.prototype;return i.Jg=function(){this.Qg.Wg()},i.Zg=function(){this.Qg.Zg()},i.$g=function(r){var i=this.Qg;if(!i.Ug)if(r.Ug)i.Wg();else if(!i.Gg&&!r.Gg){var e=function(){A(),i.Wg()},A=function(){r.Yg(e),r.qg(A),i.Yg(e),i.qg(A)};r.zg(e),r.Kg(A),i.zg(e),i.Kg(A)}},i.im=function(){var i=new r,e=new r,A=i.jg,f=e.jg,n=this.Qg,t=function(){A.Ug&&f.Gg||f.Ug&&A.Gg?n.Wg():A.Gg&&f.Gg&&n.Zg()};A.zg(t),f.zg(t),A.Kg(t),f.Kg(t),i.$g(n),e.$g(n);return n.Kg(function(){A.Yg(t),f.Yg(t),A.qg(t),f.qg(t)}),[i,e]},i[f]=function(){this.Jg()},r.nm=function(i){for(var e,A=new r,f=cr(i);!(e=f()).done;){var n=e.value;void 0!==n&&A.$g(n)}return A},or(r,[{key:"jg",get:function(){return this.Qg}}]),r}(),Vr=function(){for(var r=arguments.length,i=new Array(r),e=0;e<r;e++)i[e]=arguments[e];d.apply(this,i)};(Vr.prototype=w.create(d.prototype)).constructor=Vr;var jr=function(r){function i(i,e){var A;return(A=r.call(this)||this).cause=void 0,A.message=i||"Unknown error",A.cause=e,d.captureStackTrace&&d.captureStackTrace(A,A.constructor),A}return br(i,r),or(i,[{key:"name",get:function(){return"BaseError"}}]),i}(Vr);$.resolve();function Xr(){return void 0!==k?k.createElement("video"):void 0}var Jr=Yr(Xr),Hr=(Yr(function(){return"undefined"!=typeof HTMLVideoElement&&N(Jr(),HTMLVideoElement)}),null);try{Hr=new WebAssembly.Instance(new WebAssembly.Module(new B([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(rr){}function xr(r,i,e){this.low=0|r,this.high=0|i,this.unsigned=!!e}function Ur(r){return!0===(r&&r.um)}function zr(r){var i=y.clz32(r&-r);return r?31-i:i}xr.prototype.um,w.defineProperty(xr.prototype,"um",{value:!0}),xr.isLong=Ur;var Pr={},Kr={};function qr(r,i){var e,A,f;return i?(f=0<=(r>>>=0)&&r<256)&&(A=Kr[r])?A:(e=ri(r,0,!0),f&&(Kr[r]=e),e):(f=-128<=(r|=0)&&r<128)&&(A=Pr[r])?A:(e=ri(r,r<0?-1:0,!1),f&&(Pr[r]=e),e)}function $r(r,i){if(_(r))return i?ui:bi;if(i){if(r<0)return ui;if(r>=ni)return hi}else{if(r<=-ti)return li;if(r+1>=ti)return si}return r<0?$r(-r,i).neg():ri(r%fi|0,r/fi|0,i)}function ri(r,i,e){return new xr(r,i,e)}xr.fromInt=qr,xr.fromNumber=$r,xr.fromBits=ri;var ii=y.pow;function ei(r,i,e){if(0===r.length)throw d("empty string");if("number"==typeof i?(e=i,i=!1):i=!!i,"NaN"===r||"Infinity"===r||"+Infinity"===r||"-Infinity"===r)return i?ui:bi;if((e=e||10)<2||36<e)throw RangeError("radix");var A;if((A=r.indexOf("-"))>0)throw d("interior hyphen");if(0===A)return ei(r.substring(1),i,e).neg();for(var f=$r(ii(e,8)),n=bi,t=0;t<r.length;t+=8){var a=y.min(8,r.length-t),b=I(r.substring(t,t+a),e);if(a<8){var u=$r(ii(e,a));n=n.mul(u).add($r(b))}else n=(n=n.mul(f)).add($r(b))}return n.unsigned=i,n}function Ai(r,i){return"number"==typeof r?$r(r,i):"string"==typeof r?ei(r,i):ri(r.low,r.high,"boolean"==typeof i?i:r.unsigned)}xr.fromString=ei,xr.fromValue=Ai;var fi=4294967296,ni=fi*fi,ti=ni/2,ai=qr(1<<24),bi=qr(0);xr.ZERO=bi;var ui=qr(0,!0);xr.UZERO=ui;var oi=qr(1);xr.ONE=oi;var ki=qr(1,!0);xr.UONE=ki;var ci=qr(-1);xr.NEG_ONE=ci;var si=ri(-1,2147483647,!1);xr.MAX_VALUE=si;var hi=ri(-1,-1,!0);xr.MAX_UNSIGNED_VALUE=hi;var li=ri(0,-2147483648,!1);xr.MIN_VALUE=li;var vi=xr.prototype;function di(){return Date.now()||(new Date).getTime()}vi.toInt=function(){return this.unsigned?this.low>>>0:this.low},vi.toNumber=function(){return this.unsigned?(this.high>>>0)*fi+(this.low>>>0):this.high*fi+(this.low>>>0)},vi.toString=function(r){if((r=r||10)<2||36<r)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(li)){var i=$r(r),e=this.div(i),A=e.mul(i).sub(this);return e.toString(r)+A.toInt().toString(r)}return"-"+this.neg().toString(r)}for(var f=$r(ii(r,6),this.unsigned),n=this,t="";;){var a=n.div(f),b=(n.sub(a.mul(f)).toInt()>>>0).toString(r);if((n=a).isZero())return b+t;for(;b.length<6;)b="0"+b;t=""+b+t}},vi.getHighBits=function(){return this.high},vi.getHighBitsUnsigned=function(){return this.high>>>0},vi.getLowBits=function(){return this.low},vi.getLowBitsUnsigned=function(){return this.low>>>0},vi.getNumBitsAbs=function(){if(this.isNegative())return this.eq(li)?64:this.neg().getNumBitsAbs();for(var r=0!=this.high?this.high:this.low,i=31;i>0&&!(r&1<<i);i--);return 0!=this.high?i+33:i+1},vi.isSafeInteger=function(){var r=this.high>>21;return!r||!this.unsigned&&(-1===r&&!(0===this.low&&-2097152===this.high))},vi.isZero=function(){return 0===this.high&&0===this.low},vi.eqz=vi.isZero,vi.isNegative=function(){return!this.unsigned&&this.high<0},vi.isPositive=function(){return this.unsigned||this.high>=0},vi.isOdd=function(){return!(1&~this.low)},vi.isEven=function(){return!(1&this.low)},vi.equals=function(r){return Ur(r)||(r=Ai(r)),(this.unsigned===r.unsigned||this.high>>>31!=1||r.high>>>31!=1)&&(this.high===r.high&&this.low===r.low)},vi.eq=vi.equals,vi.notEquals=function(r){return!this.eq(r)},vi.neq=vi.notEquals,vi.ne=vi.notEquals,vi.lessThan=function(r){return this.comp(r)<0},vi.lt=vi.lessThan,vi.lessThanOrEqual=function(r){return this.comp(r)<=0},vi.lte=vi.lessThanOrEqual,vi.le=vi.lessThanOrEqual,vi.greaterThan=function(r){return this.comp(r)>0},vi.gt=vi.greaterThan,vi.greaterThanOrEqual=function(r){return this.comp(r)>=0},vi.gte=vi.greaterThanOrEqual,vi.ge=vi.greaterThanOrEqual,vi.compare=function(r){if(Ur(r)||(r=Ai(r)),this.eq(r))return 0;var i=this.isNegative(),e=r.isNegative();return i&&!e?-1:!i&&e?1:this.unsigned?r.high>>>0>this.high>>>0||r.high===this.high&&r.low>>>0>this.low>>>0?-1:1:this.sub(r).isNegative()?-1:1},vi.comp=vi.compare,vi.negate=function(){return!this.unsigned&&this.eq(li)?li:this.not().add(oi)},vi.neg=vi.negate,vi.add=function(r){Ur(r)||(r=Ai(r));var i=this.high>>>16,e=65535&this.high,A=this.low>>>16,f=65535&this.low,n=r.high>>>16,t=65535&r.high,a=r.low>>>16,b=0,u=0,o=0,k=0;return o+=(k+=f+(65535&r.low))>>>16,u+=(o+=A+a)>>>16,b+=(u+=e+t)>>>16,b+=i+n,ri((o&=65535)<<16|(k&=65535),(b&=65535)<<16|(u&=65535),this.unsigned)},vi.subtract=function(r){return Ur(r)||(r=Ai(r)),this.add(r.neg())},vi.sub=vi.subtract,vi.multiply=function(r){if(this.isZero())return this;if(Ur(r)||(r=Ai(r)),Hr)return ri(Hr.mul(this.low,this.high,r.low,r.high),Hr.get_high(),this.unsigned);if(r.isZero())return this.unsigned?ui:bi;if(this.eq(li))return r.isOdd()?li:bi;if(r.eq(li))return this.isOdd()?li:bi;if(this.isNegative())return r.isNegative()?this.neg().mul(r.neg()):this.neg().mul(r).neg();if(r.isNegative())return this.mul(r.neg()).neg();if(this.lt(ai)&&r.lt(ai))return $r(this.toNumber()*r.toNumber(),this.unsigned);var i=this.high>>>16,e=65535&this.high,A=this.low>>>16,f=65535&this.low,n=r.high>>>16,t=65535&r.high,a=r.low>>>16,b=65535&r.low,u=0,o=0,k=0,c=0;return k+=(c+=f*b)>>>16,o+=(k+=A*b)>>>16,k&=65535,o+=(k+=f*a)>>>16,u+=(o+=e*b)>>>16,o&=65535,u+=(o+=A*a)>>>16,o&=65535,u+=(o+=f*t)>>>16,u+=i*b+e*a+A*t+f*n,ri((k&=65535)<<16|(c&=65535),(u&=65535)<<16|(o&=65535),this.unsigned)},vi.mul=vi.multiply,vi.divide=function(r){if(Ur(r)||(r=Ai(r)),r.isZero())throw d("division by zero");var i,e,A;if(Hr)return this.unsigned||-2147483648!==this.high||-1!==r.low||-1!==r.high?ri((this.unsigned?Hr.div_u:Hr.div_s)(this.low,this.high,r.low,r.high),Hr.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?ui:bi;if(this.unsigned){if(r.unsigned||(r=r.toUnsigned()),r.gt(this))return ui;if(r.gt(this.shru(1)))return ki;A=ui}else{if(this.eq(li))return r.eq(oi)||r.eq(ci)?li:r.eq(li)?oi:(i=this.shr(1).div(r).shl(1)).eq(bi)?r.isNegative()?oi:ci:(e=this.sub(r.mul(i)),A=i.add(e.div(r)));if(r.eq(li))return this.unsigned?ui:bi;if(this.isNegative())return r.isNegative()?this.neg().div(r.neg()):this.neg().div(r).neg();if(r.isNegative())return this.div(r.neg()).neg();A=bi}for(e=this;e.gte(r);){i=y.max(1,y.floor(e.toNumber()/r.toNumber()));for(var f=y.ceil(y.log(i)/y.LN2),n=f<=48?1:ii(2,f-48),t=$r(i),a=t.mul(r);a.isNegative()||a.gt(e);)a=(t=$r(i-=n,this.unsigned)).mul(r);t.isZero()&&(t=oi),A=A.add(t),e=e.sub(a)}return A},vi.div=vi.divide,vi.modulo=function(r){return Ur(r)||(r=Ai(r)),Hr?ri((this.unsigned?Hr.rem_u:Hr.rem_s)(this.low,this.high,r.low,r.high),Hr.get_high(),this.unsigned):this.sub(this.div(r).mul(r))},vi.mod=vi.modulo,vi.rem=vi.modulo,vi.not=function(){return ri(~this.low,~this.high,this.unsigned)},vi.countLeadingZeros=function(){return this.high?y.clz32(this.high):y.clz32(this.low)+32},vi.clz=vi.countLeadingZeros,vi.countTrailingZeros=function(){return this.low?zr(this.low):zr(this.high)+32},vi.ctz=vi.countTrailingZeros,vi.and=function(r){return Ur(r)||(r=Ai(r)),ri(this.low&r.low,this.high&r.high,this.unsigned)},vi.or=function(r){return Ur(r)||(r=Ai(r)),ri(this.low|r.low,this.high|r.high,this.unsigned)},vi.xor=function(r){return Ur(r)||(r=Ai(r)),ri(this.low^r.low,this.high^r.high,this.unsigned)},vi.shiftLeft=function(r){return Ur(r)&&(r=r.toInt()),0==(r&=63)?this:r<32?ri(this.low<<r,this.high<<r|this.low>>>32-r,this.unsigned):ri(0,this.low<<r-32,this.unsigned)},vi.shl=vi.shiftLeft,vi.shiftRight=function(r){return Ur(r)&&(r=r.toInt()),0==(r&=63)?this:r<32?ri(this.low>>>r|this.high<<32-r,this.high>>r,this.unsigned):ri(this.high>>r-32,this.high>=0?0:-1,this.unsigned)},vi.shr=vi.shiftRight,vi.shiftRightUnsigned=function(r){return Ur(r)&&(r=r.toInt()),0==(r&=63)?this:r<32?ri(this.low>>>r|this.high<<32-r,this.high>>>r,this.unsigned):ri(32===r?this.high:this.high>>>r-32,0,this.unsigned)},vi.shru=vi.shiftRightUnsigned,vi.shr_u=vi.shiftRightUnsigned,vi.rotateLeft=function(r){var i;return Ur(r)&&(r=r.toInt()),0==(r&=63)?this:32===r?ri(this.high,this.low,this.unsigned):r<32?(i=32-r,ri(this.low<<r|this.high>>>i,this.high<<r|this.low>>>i,this.unsigned)):(i=32-(r-=32),ri(this.high<<r|this.low>>>i,this.low<<r|this.high>>>i,this.unsigned))},vi.rotl=vi.rotateLeft,vi.rotateRight=function(r){var i;return Ur(r)&&(r=r.toInt()),0==(r&=63)?this:32===r?ri(this.high,this.low,this.unsigned):r<32?(i=32-r,ri(this.high<<i|this.low>>>r,this.low<<i|this.high>>>r,this.unsigned)):(i=32-(r-=32),ri(this.low<<i|this.high>>>r,this.high<<i|this.low>>>r,this.unsigned))},vi.rotr=vi.rotateRight,vi.toSigned=function(){return this.unsigned?ri(this.low,this.high,!1):this},vi.toUnsigned=function(){return this.unsigned?this:ri(this.low,this.high,!0)},vi.toBytes=function(r){return r?this.toBytesLE():this.toBytesBE()},vi.toBytesLE=function(){var r=this.high,i=this.low;return[255&i,i>>>8&255,i>>>16&255,i>>>24,255&r,r>>>8&255,r>>>16&255,r>>>24]},vi.toBytesBE=function(){var r=this.high,i=this.low;return[r>>>24,r>>>16&255,r>>>8&255,255&r,i>>>24,i>>>16&255,i>>>8&255,255&i]},xr.fromBytes=function(r,i,e){return e?xr.fromBytesLE(r,i):xr.fromBytesBE(r,i)},xr.fromBytesLE=function(r,i){return new xr(r[0]|r[1]<<8|r[2]<<16|r[3]<<24,r[4]|r[5]<<8|r[6]<<16|r[7]<<24,i)},xr.fromBytesBE=function(r,i){return new xr(r[4]<<24|r[5]<<16|r[6]<<8|r[7],r[0]<<24|r[1]<<16|r[2]<<8|r[3],i)},"function"==typeof BigInt&&(xr.fromBigInt=function(r,i){return ri(Number(BigInt.asIntN(32,r)),Number(BigInt.asIntN(32,r>>BigInt(32))),i)},xr.fromValue=function(r,i){return"bigint"===(void 0===r?"undefined":C(r))?xr.fromBigInt(r,i):Ai(r,i)},vi.toBigInt=function(){var r=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|r});var gi=1/6,wi=(xr.fromNumber(9007199254740991),Boolean("ontouchstart"in self||self.DocumentTouch&&N(k,self.DocumentTouch))||Boolean(c&&c.msMaxTouchPoints)),yi=Jr(),Ii=Boolean(yi&&yi.webkitShowPlaybackTargetPicker),Ei=function(){function r(){this.lm=void 0,this.Wm=!1,this.Ke=wi,this.Ks=!1,this.hm=!0}var i=r.prototype;return i.fm=function(){return 0},i.Mm=function(r,i){return!0},i.Om=function(r){return r>=2*gi},or(r,[{key:"dm",get:function(){return void 0===this.lm&&(this.lm=this.fm()),this.lm}},{key:"vm",get:function(){return Qr.Fv?"android":Qr.Nv?"macos":Qr.ru?"ios":Qr.Bv?"windows":"other"}},{key:"_m",get:function(){return Qr.og?"tv":Qr.Ks?"mobile":"desktop"}},{key:"gm",get:function(){return!Qr.og}},{key:"pm",get:function(){if(o.screen)return{width:o.screen.width,height:o.screen.height}}},{key:"wm",get:function(){return o.devicePixelRatio||1}},{key:"ym",get:function(){return Ii}},{key:"Am",get:function(){return!1}},{key:"Sm",get:function(){return!0}},{key:"Tm",get:function(){return!!(Qr.z_||Qr.ru||Qr.g_)||!!Qr.N_}},{key:"Em",get:function(){return Qr.N_}},{key:"Rm",get:function(){return!Qr.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 Qr.N_}},{key:"Lm",get:function(){return!1}},{key:"Fm",get:function(){return!1}},{key:"Vm",get:function(){return!1}}]),r}(),_i=function(r){function i(){return r.call(this)||this}return br(i,r),i}(Ei),Bi=function(r){function i(){return r.apply(this,arguments)||this}return br(i,r),i.prototype.Mm=function(r,i){if(r&&r.Um&&i&&i.Um){var e=Ni(r.Um,"mp4a.40.2")&&Ni(i.Um,"mp4a.40.5"),A=Ni(r.Um,"mp4a.40.5")&&Ni(i.Um,"mp4a.40.2"),f=Ni(r.Um,"mp4a.40.2")&&Ni(i.Um,"mp4a.40.34"),n=Ni(r.Um,"mp4a.40.34")&&Ni(i.Um,"mp4a.40.2"),t=Ni(r.Um,"mp4a.40.5")&&Ni(i.Um,"mp4a.40.34"),a=Ni(r.Um,"mp4a.40.34")&&Ni(i.Um,"mp4a.40.5");return!(e||A||f||n||t||a)}return!0},or(i,[{key:"Pm",get:function(){if(Qr.Nv)return 4096}}]),i}(_i);function Ni(r,i){return r.indexOf(i)>-1}var Ci,Qi=function(r){function i(){return r.apply(this,arguments)||this}return br(i,r),i.prototype.Om=function(r){return r>=2},i}(_i),Ri=function(r){function i(){var i;return(i=r.call(this)||this).Wm=Qr.K_>=11,i.hm=Qr.z_&&!(Qr.ru&&Qr.K_<10),i}return br(i,r),or(i,[{key:"Lm",get:function(){return Qr.K_<17}},{key:"Fm",get:function(){return!0}}]),i}(_i),pi=function(r){function i(){return r.apply(this,arguments)||this}return br(i,r),or(i,[{key:"Nm",get:function(){return!Qr.Bv||(Qr.v_?92!==Qr.p_:Qr.d_>=100)}}]),i}(_i);var mi=function(){var r=Xr();if(!r)return!1;var i=r.muted;return r.muted=!i,r.muted!==i}();!function(){if(Qr.Kv)return!1;var r=Xr();if(!r)return!1;var i=r.volume;r.volume=i/2+.1,r.volume}();var Gi=function(r){function i(i){var e;return(e=r.call(this)||this).Gm=void 0,e.Gm=i,e.Wm=e.Gm.Wm,e.Ke=e.Gm.Ke,e.hm=mi&&e.Gm.hm,e}br(i,r);var e=i.prototype;return e.fm=function(){return this.Gm.dm},e.Mm=function(r,i){return this.Gm.Mm(r,i)},e.Om=function(r){return this.Gm.Om(r)},or(i,[{key:"Pm",get:function(){return this.Gm.Pm}},{key:"Nm",get:function(){return this.Gm.Nm}},{key:"Lm",get:function(){return this.Gm.Lm}}]),i}(Ei),Si=function(r){function i(i){var e;return(e=r.call(this,i)||this).Wm=!0,e.Ks=!0,e}return br(i,r),or(i,[{key:"Cm",get:function(){return Qr.ru}}]),i}(Gi);var Yi=function(r){function i(){return r.apply(this,arguments)||this}return br(i,r),i.prototype.fm=function(){return function(r){return r&&Gr(o.ManagedMediaSource)?o.ManagedMediaSource:Gr(o.MediaSource)?o.MediaSource:void 0}(!0)?r.prototype.fm.call(this):1},or(i,[{key:"Cm",get:function(){return!0}}]),i}(Si),Wi=function(r){function i(){var i;return(i=r.apply(this,arguments)||this).zm=void 0,i}return br(i,r),i.prototype.Mm=function(i,e){return r.prototype.Mm.call(this,i,e)},or(i,[{key:"Am",get:function(){return Qr.b_<3}},{key:"Sm",get:function(){return Qr.b_>=3}},{key:"pm",get:function(){var r=this;return o.tizen&&!this.zm&&o.tizen.systeminfo.getPropertyValue("DISPLAY",function(i){var e=i.resolutionWidth,A=i.resolutionHeight;1===e&&1===A||(r.zm={width:e,height:A})}),this.zm}},{key:"Dm",get:function(){return Qr.b_<3}}]),i}(Gi),Oi=function(r){function i(){var i;return(i=r.apply(this,arguments)||this).zm=void 0,i}return br(i,r),or(i,[{key:"pm",get:function(){var r=this;return o.webOS&&!this.zm&&o.webOS.deviceInfo(function(i){r.zm={width:i.screenWidth,height:i.screenHeight}}),this.zm}},{key:"Im",get:function(){return!1}}]),i}(Gi),Di=function(r){function i(){return r.apply(this,arguments)||this}return br(i,r),or(i,[{key:"Cm",get:function(){return!0}},{key:"Fm",get:function(){return this.Gm.Fm}}]),i}(Gi),Mi=function(r){function i(){return r.apply(this,arguments)||this}return br(i,r),or(i,[{key:"Vm",get:function(){return Qr.IS_FIRETV_AFTMM}}]),i}(Gi);!function(r){Ci=r}(function(){var r=function(){if(Qr.G_)return new Bi;if(Qr.B_||Qr.M_)return new Qi;if(Qr.z_)return new Ri;if(Qr.u_)return new pi;return new _i}();return Qr.ru?new Yi(r):Qr.x_?new Mi(r):Qr.Ks?new Si(r):Qr.w_?new Wi(r):Qr.S_?new Oi(r):Qr.Nv?new Di(r):new Gi(r)}());var Ti=!(Qr.M_&&!Qr.F_),Zi=self.console;function Li(r){if(mr(r))try{return JSON.stringify(r)}catch(r){}return r}function Fi(r){return r.map(Li).join(" ")}function Vi(r){var i=Zi&&Zi[r];return i?i.bind&&Ti?i.bind(Zi):function(){for(var i=arguments.length,e=new Array(i),A=0;A<i;A++)e[A]=arguments[A];Zi[r](Fi(e))}:void 0}var ji=Vi("log")||Sr,Xi=Vi("warn")||ji.bind(void 0,"WARNING:"),Ji=Vi("error")||ji.bind(void 0,"ERROR:"),Hi=function(){var r=Zi&&Zi.assert;return r?r.bind&&Ti?r.bind(Zi):function(r){for(var i=arguments.length,e=new Array(i>1?i-1:0),A=1;A<i;A++)e[A-1]=arguments[A];Zi.assert(r,Fi(e))}:function(r){for(var i=arguments.length,e=new Array(i>1?i-1:0),A=1;A<i;A++)e[A-1]=arguments[A];r||Ji.apply(void 0,[].concat(["Assertion failed:"],e))}}();function xi(r,i){for(var e=0;e<i.length;e++){var A=i[e];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),w.defineProperty(r,A.key,A)}}function Ui(r,i){var e=function(r,i){var e=r.length;if(e<=1)return r;for(var A=new Array(e),f=1;f<e;f*=2){zi(r,i,f,A);var n=r;r=A,A=n}return r}(r,i);return e!==r&&zi(e,null,r.length,r),r}function zi(r,i,e,A){var f,n,t,a,b,u=r.length,o=0,k=2*e;for(f=0;f<u;f+=k)for(t=(n=f+e)+e,n>u&&(n=u),t>u&&(t=u),a=f,b=n;;)if(a<n&&b<t)i(r[a],r[b])<=0?A[o++]=r[a++]:A[o++]=r[b++];else if(a<n)A[o++]=r[a++];else{if(!(b<t))break;A[o++]=r[b++]}}var Pi=/[a-zA-Z]/,Ki=/[0-9]/,qi=/[0-9a-fA-F]/,$i=/^0x/i,re=/^[0-9]+$/,ie=/^[0-9a-fA-F]+$/,ee=/^[0-7]+$/,Ae=w.prototype.toString,fe=Array.isArray||function(r){return"[object Array]"===Ae.call(r)},ne=void 0!==i&&"symbol"==typeof A;function te(r){return fe(r)?r:Array.from(r)}function ae(r,i,e){var A=r[i];r[i]=r[e],r[e]=A}function be(r){return r>=65&&r<=90}function ue(r){return be(r)||function(r){return r>=97&&r<=122}(r)}function oe(r){return r>=48&&r<=57}function ke(r){return oe(r)||ue(r)}function ce(r){return oe(r)||r>=65&&r<=70||r>=97&&r<=102}function se(r){return be(r)?r+32:r}function he(r){return oe(r)?r-48:r>=65&&r<=70?r-65+10:r>=97&&r<=102?r-97+10:-1}function le(r,i){return void 0===i&&(i=!1),0<=r&&r<=9?r+48:10<=r&&r<=15?r+(i?87:55):-1}var ve=y.min,de=String.fromCharCode;function ge(r){for(var i=r.length,e=[],A=0;A<i;A+=16384){var f=ve(A+16384,i);e.push(de.apply(null,r.slice(A,f)))}return e.join("")}var we=2147483647,ye=/[^\0-\x7E]/,Ie=/[\x2E\u3002\uFF0E\uFF61]/g,Ee={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_e=y.floor,Be=String.fromCharCode;function Ne(r){throw new RangeError(Ee[r])}function Ce(r){for(var i=[],e=0,A=r.length;e<A;){var f=r.charCodeAt(e++);if(f>=55296&&f<=56319&&e<A){var n=r.charCodeAt(e++);56320==(64512&n)?i.push(((1023&f)<<10)+(1023&n)+65536):(i.push(f),e--)}else i.push(f)}return i}var Qe,Re,pe,me=function(r,i){return r+22+75*(r<26)-((0!=i)<<5)},Ge=function(r,i,e){var A=0;for(r=e?_e(r/700):r>>1,r+=_e(r/i);r>455;A+=36)r=_e(r/35);return _e(A+36*r/(r+38))},Se=function(r){return function(r,i){var e=r.split("@"),A="";e.length>1&&(A=e[0]+"@",r=e[1]);var f=function(r,i){for(var e=[],A=r.length;A--;)e[A]=i(r[A]);return e}((r=r.replace(Ie,".")).split("."),i).join(".");return A+f}(r,function(r){return ye.test(r)?"xn--"+function(r){for(var i=[],e=(r=Ce(r)).length,A=128,f=0,n=72,t=0,a=r;t<a.length;t++){var b=a[t];b<128&&i.push(Be(b))}var u=i.length,o=u;for(u&&i.push("-");o<e;){for(var k=we,c=0,s=r;c<s.length;c++){var h=s[c];h>=A&&h<k&&(k=h)}var l=o+1;k-A>_e((we-f)/l)&&Ne("overflow"),f+=(k-A)*l,A=k;for(var v=0,d=r;v<d.length;v++){var g=d[v];if(g<A&&++f>we&&Ne("overflow"),g==A){for(var w=f,y=36;;y+=36){var I=y<=n?1:y>=n+26?26:y-n;if(w<I)break;var E=w-I,_=36-I;i.push(Be(me(I+E%_,0))),w=_e(E/_)}i.push(Be(me(w,0))),n=Ge(f,l,o==u),f=0,++o}}++f,++A}return i.join("")}(r):r})};function Ye(r){for(var i=[],e=0;e<r.length;e++){var A=r[e];A>65535&&(A-=65536,i.push(A>>>10&1023|55296),A=56320|1023&A),i.push(A)}return ge(i)}function We(r){if(r>=55296&&r<=57343)throw new d("Lone surrogate U+"+r.toString(16).toUpperCase()+" is not a scalar value")}function Oe(r,i){return r>>i&63|128}function De(r,i){4294967168&r?(4294965248&r?4294901760&r?4292870144&r||(i.push(r>>18&7|240),i.push(Oe(r,12)),i.push(Oe(r,6))):(We(r),i.push(r>>12&15|224),i.push(Oe(r,6))):i.push(r>>6&31|192),i.push(63&r|128)):i.push(r)}function Me(r){for(var i=[],e=0;e<r.length;e++){De(r[e],i)}return i}function Te(){if(pe>=Re)throw new d("Invalid byte index");var r=255&Qe[pe];if(pe++,128==(192&r))return 63&r;throw new d("Invalid continuation byte")}function Ze(){var r,i;if(pe>Re)throw new d("Invalid byte index");if(pe===Re)return!1;if(r=255&Qe[pe],pe++,!(128&r))return r;if(192==(224&r)){if((i=(31&r)<<6|Te())>=128)return i;throw new d("Invalid continuation byte")}if(224==(240&r)){if((i=(15&r)<<12|Te()<<6|Te())>=2048)return We(i),i;throw new d("Invalid continuation byte")}if(240==(248&r)&&(i=(7&r)<<18|Te()<<12|Te()<<6|Te())>=65536&&i<=1114111)return i;throw new d("Invalid UTF-8 detected")}function Le(r){return[37,le(r>>4),le(15&r)]}function Fe(r){return function(r){return r>=0&&r<=31}(r)||r>126}function Ve(r){return Fe(r)||32===r||34===r||60===r||62===r||96===r}function je(r){return Ve(r)||35===r||63===r||123===r||125===r}function Xe(r){return je(r)||47===r||58===r||59===r||61===r||64===r||r>=91&&r<=94||124===r}function Je(r){return r<33||r>126||34===r||35===r||60===r||62===r}function He(r){return Je(r)||39===r}function xe(r,i){if(!i(r))return[r];for(var e=Me([r]),A=[],f=0;f<e.length;f++){var n=e[f];A.push.apply(A,Le(n))}return A}function Ue(r,i){for(var e=[],A=0,f=Ce(r);A<f.length;A++){var n=f[A];e.push.apply(e,xe(n,i))}return Ye(e)}function ze(r){return function(r){for(var i=[],e=r.length,A=0;A<e;A++){var f=r[A];if(37===f&&A+2<e&&ce(r[A+1])&&ce(r[A+2])){var n=he(r[A+1])<<4|he(r[A+2]);i.push(n),A+=2}else i.push(f)}return i}(Me(r))}function Pe(r){return Ye(function(r){Qe=r.slice(),Re=Qe.length,pe=0;for(var i,e=[];!1!==(i=Ze());)e.push(i);return e}(ze(Ce(r))))}function Ke(r){var i=r.length,e=[0,0,0,0,0,0,0,0],A=0,f=null,n=0;if(n<i&&":"===r[n]){if(!(n+1<i&&":"===r[n+1]))throw new g;n+=2,f=A+=1}for(;n<i;){if(8===A)throw new g("Too many groups");if(":"!==r[n]){for(var t=0,a=0;a<4&&n<i&&qi.test(r[n]);)t=t<<4|I(r[n],16),n+=1,a+=1;if("."===r[n]){if(0===a)throw new g;if(n-=a,A>6)throw new g;for(var b=0;n<i;){var u=null;if(b>0){if(!("."===r[n]&&b<4))throw new g;n+=1}if(!Ki.test(r[n]))throw new g;for(;n<i&&Ki.test(r[n]);){var o=I(r[n],10);if(null===u)u=o;else{if(0===u)throw new g;if((u=10*u+o)>255)throw new g}n+=1}e[A]=e[A]<<8|u,2!==(b+=1)&&4!==b||(A+=1)}if(4!==b)throw new g;break}if(":"===r[n]){if((n+=1)===i)throw new g}else if(n<i)throw new g;e[A]=t,A+=1}else{if(null!==f)throw new g("Too many :: groups");n+=1,f=A+=1}}if(null!==f){var k=A-f;for(A=7;0!==A&&k>0;)ae(e,A,f+k-1),A-=1,k-=1}else if(8!==A)throw new g;return e}function qe(r){var i=10,e=re;return $i.test(r)?(r=r.slice(2),i=16,e=ie):r.length>=2&&"0"===r[0]&&(r=r.slice(1),i=8,e=ee),""===r?0:e.test(r)?I(r,i):void 0}var $e={Ym:4},rA=/[\0\t\n\r #%/:?@\[\\\]]/,iA=/[\0\t\n\r #/:?@\[\\\]]/;function eA(r,i){if("["===r[0]){if("]"!==r[r.length-1])throw new g("Invalid IPv6 address");return{Ym:2,Km:Ke(r.slice(1,-1))}}if(!i)return function(r){if(iA.test(r))throw new g("Invalid code point in opaque host");var i=Ue(r,Fe);return""===i?$e:{Ym:3,qm:i}}(r);var e=function(r){var i=function(r){return Se(r.toLowerCase())}(r);return i}(Pe(r));if(rA.test(e))throw new g("Invalid code point in host");var A=function(r){var i=r.split(".");if(""===i[i.length-1]&&i.pop(),!(i.length>4)){for(var e=[],A=0;A<i.length;A++){var f=i[A];if(""===f)return;var n=qe(f);if(void 0===n)return;e.push(n)}for(var t=0;t<e.length-1;t++)if(e[t]>255)throw new g;if(e[e.length-1]>=y.pow(256,5-e.length))throw new g;for(var a=e.pop(),b=0;b<e.length;b++)a+=e[b]*y.pow(256,3-b);return a}}(e);return void 0!==A?{Ym:1,Km:A}:""===e?$e:{Ym:0,jm:e}}function AA(r){switch(r.Ym){case 0:return r.jm;case 1:return function(r){for(var i=[],e=r,A=1;A<=4;A++)i.push(""+(255&e)),4!==A&&i.push("."),e>>>=8;return i.reverse().join("")}(r.Km);case 2:return"["+function(r){for(var i="",e=function(r){for(var i=0,e=0,A=0,f=0,n=0;n<8;n++)0===r[n]?(0===f&&(A=n),f++):(f>e&&(i=A,e=f),f=0);return f>e&&(i=A,e=f),e>1?i:null}(r),A=!1,f=0;f<8;f++){if(A){if(0===r[f])continue;A=!1}e!==f?(i+=r[f].toString(16),7!==f&&(i+=":")):(i+=0===f?"::":":",A=!0)}return i}(r.Km)+"]";case 3:return r.qm;case 4:return""}}var fA=/\+/g;function nA(r){return 42===r||45===r||46===r||95===r||ke(r)}function tA(r){for(var i=r.split("&"),e=[],A=0;A<i.length;A++){var f=i[A];if(""!==f){var n=f.indexOf("="),t=void 0,a=void 0;-1!==n?(t=f.slice(0,n),a=f.slice(n+1)):(t=f,a=""),t=t.replace(fA," "),a=a.replace(fA," ");var b=Pe(t),u=Pe(a);e.push([b,u])}}return e}function aA(r){for(var i="",e=0;e<r.length;e++){var A=r[e];e>0&&(i+="&"),i+=bA(Me(Ce(A[0])))+"="+bA(Me(Ce(A[1])))}return i}function bA(r){for(var i=[],e=0;e<r.length;e++){var A=r[e];32===A?i.push(43):nA(A)?i.push(A):i.push.apply(i,Le(A))}return ge(i)}var uA=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function oA(r){var i=""+r,e=uA.exec(i);return e?function(r,i){for(var e=r.length,A=[],f=i;f<e;f++){var n=r.charCodeAt(f);if(cA(n))if(sA(n)||f===e-1)A.push(kA);else{var t=r.charCodeAt(f+1);sA(t)?(A.push(n,t),f++):A.push(kA)}else A.push(n)}return r.slice(0,i)+ge(A)}(i,e.index):i}var kA=65533,cA=function(r){return 55296==(63488&r)},sA=function(r){return!!(1024&r)};function hA(r,i){var e=r[0],A=i[0];return e===A?0:e<A?-1:1}function lA(r){r.Qm.length=0}function vA(r,i){!function(r,i){for(var e=0;e<i.length;e++)r[e]=i[e];r.length=i.length}(r.Qm,tA(i))}function dA(r){if(r.rc){var i=aA(r.Qm);""===i&&(i=null),r.rc.rc.Jm=i}}var gA=function(){function r(r){if(void 0===r&&(r=void 0),this.rc=null,null==r)this.Qm=[];else if("object"==typeof r||"function"==typeof r)if(function(r){return r instanceof gA&&!!fe(r.Qm)&&(!ne||r[A]===wA)}(r))this.Qm=r.Qm.slice();else if(function(r){return null!=r&&(!!fe(r)||!!ne&&"function"==typeof r[A])}(r)){this.Qm=[];for(var i=0,e=te(r);i<e.length;i++){var f=te(e[i]);if(2!==f.length)throw new g("Invalid name-value pair");this.Qm.push([oA(f[0]),oA(f[1])])}}else for(var n in this.Qm=[],r)w.prototype.hasOwnProperty.call(r,n)&&this.Qm.push([oA(n),oA(r[n])]);else(r=oA(r)).length>0&&"?"===r[0]&&(r=r.slice(1)),this.Qm=tA(r)}var i=r.prototype;return i.append=function(r,i){r=oA(r),i=oA(i),this.Qm.push([r,i]),dA(this)},i.delete=function(r){r=oA(r);for(var i=this.Qm,e=0;e<i.length;){i[e][0]===r?i.splice(e,1):e++}dA(this)},i.get=function(r){r=oA(r);for(var i=this.Qm,e=0;e<i.length;e++){var A=i[e];if(A[0]===r)return A[1]}return null},i.getAll=function(r){r=oA(r);for(var i=this.Qm,e=[],A=0;A<i.length;A++){var f=i[A];f[0]===r&&e.push(f[1])}return e},i.has=function(r){r=oA(r);for(var i=this.Qm,e=0;e<i.length;e++){if(i[e][0]===r)return!0}return!1},i.set=function(r,i){r=oA(r),i=oA(i);for(var e=this.Qm,A=!1,f=0;f<e.length;){var n=e[f];n[0]===r?A?e.splice(f,1):(n[1]=i,A=!0,f++):f++}A||e.push([r,i]),dA(this)},i.sort=function(){Ui(this.Qm,hA),dA(this)},i.toString=function(){return aA(this.Qm)},i.entries=function(){return new _A(this.Qm,yA)},i.keys=function(){return new _A(this.Qm,IA)},i.values=function(){return new _A(this.Qm,EA)},i.forEach=function(r){var i=this;this.Qm.forEach(function(e){return r(e[1],e[0],i)})},r}(),wA=gA.prototype.entries;ne&&(gA.prototype[A]=wA);var yA=function(r){return[r[0],r[1]]},IA=function(r){return r[0]},EA=function(r){return r[1]},_A=function(){function r(r,i){this.$m=0,this.Qm=r,this.tp=i}return r.prototype.next=function(){return this.$m<this.Qm.length?{done:!1,value:this.tp(this.Qm[this.$m++])}:{done:!0,value:void 0}},r}(),BA="null";var NA=w.create(null);NA.ftp=21,NA.file=0,NA.gopher=70,NA.http=80,NA.https=443,NA.ws=80,NA.wss=443;var CA=/^(?:\.|%2e)$/i,QA=/^(?:\.|%2e){2}$/i;function RA(r){return CA.test(r)}function pA(r){return QA.test(r)}function mA(r){return void 0!==NA[r]}function GA(r){return mA(r.sp)}function SA(r){return""!==r.ep||""!==r.np}function YA(r){var i=r.length;if(!(i>=2))return!1;if(!OA(r.slice(0,2)))return!1;if(2!==i){var e=r[2];if(47!==e&&92!==e&&63!==e&&35!==e)return!1}return!0}function WA(r){return 2===r.length&&Pi.test(r[0])&&(":"===r[1]||"|"===r[1])}function OA(r){return 2===r.length&&WA(ge(r))}function DA(r){return WA(r)&&":"===r[1]}function MA(r){var i=r.rp;0!==i.length&&("file"===r.sp&&1===i.length&&DA(i[0])||i.pop())}function TA(r){return null===r.hp||$e===r.hp||r.op||"file"===r.sp}var ZA=-1,LA=/\t|\n|\r/g,FA=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function VA(r,i,e,A){void 0===e&&(e=null),void 0===A&&(A=null),e||(e=new XA,r=r.replace(FA,""));var f=null!==A?A:0;i=i||null;for(var n=[],t=!1,a=!1,b=!1,u=Ce(r=r.replace(LA,"")),o=u.length,k=0;k<=o;){var c=k<o?u[k]:ZA;switch(f){case 0:if(!ue(c)){if(null===A){n.length=0,f=2;continue}throw new g("Invalid scheme")}n.push(se(c)),f=1;break;case 1:if(ke(c)||43===c||45===c||46===c)n.push(se(c));else{if(58!==c){if(null===A){n.length=0,f=2,k=0;continue}throw new g("Invalid scheme")}var s=Ye(n);if(null!==A){if(mA(e.sp)&&!mA(s))return;if(!mA(e.sp)&&mA(s))return;if((SA(e)||null!==e.ap)&&"file"===s)return;if("file"===e.sp&&(e.hp===$e||null===e.hp))return}if(e.sp=s,null!==A)return void(GA(e)&&e.ap===NA[e.sp]&&(e.ap=null));n.length=0,"file"===e.sp?f=13:GA(e)&&i&&i.sp===e.sp?f=3:GA(e)?f=7:47===u[k+1]?(f=4,k+=1):(e.op=!0,e.rp.push(""),f=18)}break;case 2:if(!i||i.op&&35!==c)throw new g("Invalid scheme");i.op&&35===c?(e.sp=i.sp,e.rp=i.rp.slice(),e.Jm=i.Jm,e.cp="",e.op=!0,f=20):"file"!==i.sp?(f=5,k-=1):(f=13,k-=1);break;case 3:47===c&&47===u[k+1]?f=8:(f=5,k-=1);break;case 4:47===c?f=9:(f=17,k-=1);break;case 5:e.sp=i.sp,ZA===c?(e.ep=i.ep,e.np=i.np,e.hp=i.hp,e.ap=i.ap,e.rp=i.rp.slice(),e.Jm=i.Jm):47===c?f=6:63===c?(e.ep=i.ep,e.np=i.np,e.hp=i.hp,e.ap=i.ap,e.rp=i.rp.slice(),e.Jm="",f=19):35===c?(e.ep=i.ep,e.np=i.np,e.hp=i.hp,e.ap=i.ap,e.rp=i.rp.slice(),e.Jm=i.Jm,e.cp="",f=20):92===c&&GA(e)?f=6:(e.ep=i.ep,e.np=i.np,e.hp=i.hp,e.ap=i.ap,e.rp=i.rp.slice(),e.rp.pop(),f=17,k-=1);break;case 6:!GA(e)||47!==c&&92!==c?47===c?f=9:(e.ep=i.ep,e.np=i.np,e.hp=i.hp,e.ap=i.ap,f=17,k-=1):f=8;break;case 7:if(47!==c||47!==u[k+1]){f=8;continue}f=8,k+=1;break;case 8:47!==c&&92!==c&&(f=9,k-=1);break;case 9:if(64===c){t&&n.unshift(37,52,48),t=!0;for(var h=0;h<n.length;h++){var l=n[h];if(58!==l||b){var v=Ye(xe(l,Xe));b?e.np+=v:e.ep+=v}else b=!0}n.length=0}else if(ZA===c||47===c||63===c||35===c||GA(e)&&92===c){if(t&&0===n.length)throw new g("Invalid host");k-=n.length+1,n.length=0,f=10}else n.push(c);break;case 10:case 11:if(null!==A&&"file"===e.sp)k-=1,f=15;else if(58!==c||a)if(ZA===c||47===c||63===c||35===c||GA(e)&&92===c){if(k-=1,GA(e)&&0===n.length)throw new g("Invalid host");if(null!==A&&0===n.length&&(SA(e)||null!==e.ap))return;var d=eA(Ye(n),GA(e));if(e.hp=d,n.length=0,f=16,null!==A)return}else 91===c?a=!0:93===c&&(a=!1),n.push(c);else{if(0===n.length)throw new g("Invalid host");var w=eA(Ye(n),GA(e));if(e.hp=w,n.length=0,f=12,11===A)return}break;case 12:if(oe(c))n.push(c);else{if(!(ZA===c||47===c||63===c||35===c||GA(e)&&92===c||null!==A))throw new g("Invalid port");if(0!==n.length){var y=I(Ye(n),10);if(y>65535)throw new g("Invalid port");e.ap=y===NA[e.sp]?null:y,n.length=0}if(null!==A)return;f=16,k-=1}break;case 13:e.sp="file",47===c||92===c?f=14:i&&"file"===i.sp?ZA===c?(e.hp=i.hp,e.rp=i.rp.slice(),e.Jm=i.Jm):63===c?(e.hp=i.hp,e.rp=i.rp.slice(),e.Jm="",f=19):35===c?(e.hp=i.hp,e.rp=i.rp.slice(),e.Jm=i.Jm,e.cp="",f=20):(YA(u.slice(k))||(e.hp=i.hp,e.rp=i.rp.slice(),MA(e)),f=17,k-=1):(f=17,k-=1);break;case 14:47===c||92===c?f=15:(i&&"file"===i.sp&&!YA(u.slice(k))&&(DA(i.rp[0])?e.rp.push(i.rp[0]):e.hp=i.hp),f=17,k-=1);break;case 15:if(ZA===c||47===c||92===c||63===c||35===c)if(k-=1,null===A&&OA(n))f=17;else if(0===n.length){if(e.hp=$e,null!==A)return;f=16}else{var E=eA(Ye(n),GA(e));if(0===E.Ym&&"localhost"===E.jm&&(E=$e),e.hp=E,null!==A)return;n.length=0,f=16}else n.push(c);break;case 16:GA(e)?(f=17,47!==c&&92!==c&&(k-=1)):null===A&&63===c?(e.Jm="",f=19):null===A&&35===c?(e.cp="",f=20):ZA!==c&&(f=17,47!==c&&(k-=1));break;case 17:if(ZA===c||47===c||GA(e)&&92===c||null===A&&(63===c||35===c)){var _=Ye(n);if(pA(_)?(MA(e),47===c||GA(e)&&92===c||e.rp.push("")):!RA(_)||47===c||GA(e)&&92===c?RA(_)||("file"===e.sp&&0===e.rp.length&&OA(n)&&($e!==e.hp&&null!==e.hp&&(e.hp=$e),n[1]=58,_=Ye(n)),e.rp.push(_)):e.rp.push(""),n.length=0,"file"===e.sp&&(ZA==