!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserDetect=function(){var e=navigator.userAgent.toLowerCase(),t=navigator.appName,r=null;"Microsoft Internet Explorer"===t||e.indexOf("trident")>-1||e.indexOf("edge/")>-1?(r="ie","Microsoft Internet Explorer"===t?(e=/msie ([0-9]{1,}[\.0-9]{0,})/.exec(e),r+=parseInt(e[1])):e.indexOf("trident")>-1?r+=11:e.indexOf("edge/")>-1&&(r="edge")):e.indexOf("safari")>-1?r=e.indexOf("chrome")>-1?"chrome":"safari":e.indexOf("firefox")>-1&&(r="firefox");return r},t.BrowserDetectDetail=function(){var e=navigator.userAgent.toLowerCase(),t=navigator.platform.toLowerCase(),r=e.match(/(opera|ie|trident|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|rv:(\d.?)|$)/)||[null,"unknown",0],n=("ie"==r[1]||"trident"==r[1])&&document.documentMode,i={name:"version"==r[1]?r[3]:"trident"==r[1]?"ie":r[1],version:n||parseFloat("opera"==r[1]&&r[4]?r[4]:"trident"==r[1]&&r[5]?r[5]:r[2]),Platform:{name:e.match(/ip(?:ad|od|hone)/)?"ios":(e.match(/(?:webos|android)/)||t.match(/mac|win|linux/)||["other"])[0]}};i[i.name]=!0,i[i.name+parseInt(i.version,10)]=!0,i.Platform[i.Platform.name]=!0,i.Platform.ios&&(i.Platform.ipod=!0);i.Engine={};var o=function(e,t){i.Engine.name=e,i.Engine[e+t]=!0,i.Engine.version=t};if(i.ie)switch(i.Engine.trident=!0,i.version){case 6:o("trident",4);break;case 7:o("trident",5);break;case 8:o("trident",6)}i.firefox&&(i.Engine.gecko=!0,i.version>=3?o("gecko",19):o("gecko",18));if(i.safari||i.chrome)switch(i.Engine.webkit=!0,i.version){case 2:o("webkit",419);break;case 3:o("webkit",420);break;case 4:o("webkit",525)}i.opera&&(i.Engine.presto=!0,i.version>=9.6?o("presto",960):i.version>=9.5?o("presto",950):o("presto",925));if("unknown"==i.name)switch((e.match(/(?:webkit|khtml|gecko)/)||[])[0]){case"webkit":case"khtml":i.Engine.webkit=!0;break;case"gecko":i.Engine.gecko=!0}return i},t.CommonAudioUtil=function(){var e=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384],t=function(e,t,r){var n=0,i=0;for(n=0;n0?r:8191&-r,e,15)-6,a=o+(n>>6&15)-13,u=(0===i?32:o>=0?i>>o:i<<-o)*(n&parseInt("077",8))+48>>4,s=a>=0?u<>-a,(r^n)<0?-s:s};this.g726InitState=function(){var e={},t=0;for(e.pp=new Array(2),e.zp=new Array(6),e.pk=new Array(2),e.dq=new Array(6),e.sr=new Array(2),e.yl=34816,e.yu=544,e.dms=0,e.dml=0,e.ppp=0,t=0;t<2;t++)e.pp[t]=0,e.pk[t]=0,e.sr[t]=32;for(t=0;t<6;t++)e.zp[t]=0,e.dq[t]=32;return e.td=0,e},this.predictorZero=function(e){var t=0,n=0;for(n=r(e.zp[0]>>2,e.dq[0]),t=1;t<6;t++)n+=r(e.zp[t]>>2,e.dq[t]);return n},this.predictorPole=function(e){return r(e.pp[1]>>2,e.sr[1])+r(e.pp[0]>>2,e.sr[0])},this.stepSize=function(e){var t=0,r=0,n=0;return e.ppp>=256?e.yu:(t=e.yl>>6,r=e.yu-t,n=e.ppp>>2,r>0?t+=r*n>>6:r<0&&(t+=r*n+63>>6),t)},this.quantize=function(r,n,i,o){var a=0,u=0,s=0;return a=Math.abs(r),u=t(a>>1,e,15),s=t((u<<7)+(a<<7>>u&127)-(n>>2),i,o),r<0?1+(o<<1)-s:0===s?1+(o<<1):s},this.reconstruct=function(e,t,r){var n=0,i=0;return(n=t+(r>>2))<0?e?-32768:0:(i=128+(127&n)<<7>>14-(n>>7&15),e?i-32768:i)},this.update=function(r,n,i,o,a,u,s,f){var p=0,_=0,l=0,c=0,d=0,m=0,h=0,g=0,v=0,y=0,b=0,E=0,x=0,T=0;if(T=s<0?1:0,_=32767&a,v=f.yl>>15,E=f.yl>>10&31,x=32+E<9?31744:x)+(y>>1)>>1,g=0===f.td?0:_<=b?0:1,f.yu=n+(i-n>>5),f.yu<544?f.yu=544:f.yu>5120&&(f.yu=5120),f.yl+=f.yu+(-f.yl>>6),1===g)f.pp[0]=0,f.pp[1]=0,f.zp[0]=0,f.zp[1]=0,f.zp[2]=0,f.zp[3]=0,f.zp[4]=0,f.zp[5]=0,c=0;else for(m=T^f.pk[0],c=f.pp[1]-(f.pp[1]>>7),0!==s&&((h=m?f.pp[0]:-f.pp[0])<-8191?c-=256:c+=h>8191?255:h>>5,T^f.pk[1]?c<=-12160?c=-12288:c>=12416?c=12288:c-=128:c<=-12416?c=-12288:c>=12160?c=12288:c+=128),f.pp[1]=c,f.pp[0]-=f.pp[0]>>8,0!==s&&(0===m?f.pp[0]+=192:f.pp[0]-=192),d=15360-c,f.pp[0]<-d?f.pp[0]=-d:f.pp[0]>d&&(f.pp[0]=d),p=0;p<6;p++)f.zp[p]-=5===r?f.zp[p]>>9:f.zp[p]>>8,32767&a&&((a^f.dq[p])>=0?f.zp[p]+=128:f.zp[p]-=128);for(p=5;p>0;p--)f.dq[p]=f.dq[p-1];return 0===_?f.dq[0]=a>=0?32:64544:(l=t(_,e,15),f.dq[0]=a>=0?(l<<6)+(_<<6>>l):(l<<6)+(_<<6>>l)-1024),f.sr[1]=f.sr[0],0===u?f.sr[0]=32:u>0?(l=t(u,e,15),f.sr[0]=(l<<6)+(u<<6>>l)):u>-32768?(l=t(_=-u,e,15),f.sr[0]=(l<<6)+(_<<6>>l)-1024):f.sr[0]=64544,f.pk[1]=f.pk[0],f.pk[0]=T,f.td=1===g?0:c<-11776?1:0,f.dms+=o-f.dms>>5,f.dml+=(o<<2)-f.dml>>7,1===g?f.ppp=256:n<1536?f.ppp+=512-f.ppp>>4:1===f.td?f.ppp+=512-f.ppp>>4:Math.abs((f.dms<<2)-f.dml)>=f.dml>>3?f.ppp+=512-f.ppp>>4:f.ppp+=-f.ppp>>4,f}},t.Texture=t.Shader=t.Script=t.Queue=t.Program=t.PLAYER_STATE_CODE=void 0,t.VideoBufferList=function(){var e=0,t=0,r=null;function n(){e=360,t=240,r=null,this._length=0,this.head=null,this.tail=null,this.curIdx=0}return n.prototype={push:function(e,n,i,o,a,u){var s=new VideoBufferNode(e,n,i,o,a,u);return this._length>0?(this.tail.next=s,s.previous=this.tail,this.tail=s):(this.head=s,this.tail=s),this._length+=1,null!==r&&this._length>=t&&r(),s},pop:function(){var e=null;return this._length>1&&(e=this.head,this.head=this.head.next,null!==this.head?this.head.previous=null:this.tail=null,this._length-=1),e},setMaxLength:function(t){(e=t)>360?e=360:e<30&&(e=30)},setBUFFERING:function(e){(t=e)>240?t=240:t<6&&(t=6)},setBufferFullCallback:function(e){r=e},searchTimestamp:function(e){var t=this.head,r=this._length,n=1;if(0===r||e<=0||null===t)throw new Error("Failure: non-existent node in this list.");for(;null!==t&&(t.timeStamp.timestamp!==e.timestamp||t.timeStamp.timestamp_usec!==e.timestamp_usec);)t=t.next,n++;return r>>0,f=n.subarray(24+a,n.length-8),p=n.subarray(n.length-8,n.length),_=(p[7],p[6],p[5],p[4],(n[19]<<24)+(n[18]<<16)+(n[17]<<8)+n[16]>>>0),l=[],c=0;c<=f.length;)if(0==f[c])if(0==f[c+1])if(1==f[c+2]){if(l.push(c),5==(31&f[c+=3])||1==(31&f[c]))break}else 0==f[c+2]?c++:c+=3;else c+=2;else c+=1;for(c=0;c>n;return o=_+i&e,r[a]>>t-(o&t)&1}function m(e,t){var r=_>>n,i=8*(r+1)-_;if(i<8)for(var o=0;o<3;o++){var a=e[r+o];a=0==o?a>>i<>8-i|1<=0;a--,o++)i|=d(e,o)<>>0).toString(16);return"00000000".substr(0,8-t.length)+t}function r(e,t,r){return e&t|~e&r}function n(e,t,r){return r&e|~r&t}function o(e,t,r){return e^t^r}function a(e,t,r){return t^(e|~r)}function u(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function s(e){for(var t=[],r=0;r>>32-o),h=a}var i=p.length;p.push(128);var s=p.length%64;if(s>56){for(var f=0;f<64-s;f++)p.push(0);s=p.length%64}for(f=0;f<56-s;f++)p.push(0);p=p.concat(function(e){for(var t=[],r=0;r<8;r++)t.push(255&e),e>>>=8;return t}(8*i));var _=1732584193,c=4023233417,d=2562383102,m=271733878,h=0,g=0,v=0,y=0;for(f=0;f=0;s--)a=255&(u=arguments[s]),a<<=8,a|=255&(u>>>=8),a<<=8,a|=255&(u>>>=8),a<<=8,o+=t(a|=u>>>=8);return o}(m,d,c,_).toUpperCase()}()};t.default=function(e){return o.MD5(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){this.map={}};n.prototype={put:function(e,t){this.map[e]=t},get:function(e){return this.map[e]},containsKey:function(e){return e in this.map},containsValue:function(e){for(var t in this.map)if(this.map[t]===e)return!0;return!1},isEmpty:function(e){return 0===this.size()},clear:function(){for(var e in this.map)delete this.map[e]},remove:function(e){delete this.map[e]},keys:function(){var e=new Array;for(var t in this.map)e.push(t);return e},values:function(){var e=new Array;for(var t in this.map)e.push(this.map[t]);return e},size:function(){var e=0;for(var t in this.map)e++;return e}};t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(2);t.default=function(){var e,t,r,i,o,a,u,s,f,p,_,l,c,d,m,h=!1,g=0;function v(){v.prototype.setIsFirstFrame(!1)}return v.prototype={init:function(){n.debug.log("H264 Decoder init")},setOutputSize:function(e){if(o!==2*e){o=2*e;var t=Module._malloc(1),r=new Uint8Array(Module.HEAPU8.buffer,t,1);Module._DECODE_GetFreePort(r.byteOffset),g=r[0],r=null,Module._free(t),Module._DECODE_Init(g),a=Module._malloc(5242880),u=new Uint8Array(Module.HEAPU8.buffer,a,5242880);var n=2*e;s=Module._malloc(n),f=new Uint8Array(Module.HEAPU8.buffer,s,n),p=Module._malloc(4),_=new Uint8Array(Module.HEAPU8.buffer,p,4),l=Module._malloc(40),c=new Uint8Array(Module.HEAPU8.buffer,l,40)}},decode:function(n,o){var a=n[4],s=n[5];e=Date.now(),u.set(n),Module._DECODE_InputOneFrame(g,u.byteOffset,n.length,f.byteOffset,_.byteOffset,c.byteOffset),i=c[16]+(c[17]<<8),r=c[18]+(c[19]<<8);var p=i*r*3/2;return m=null,d=null,m=new ArrayBuffer(p),(d=new Uint8Array(m)).set(Module.HEAPU8.subarray(f.byteOffset,f.byteOffset+p)),t=Date.now()-e,v.prototype.isFirstFrame()?i>0&&r>0?(e=Date.now(),{data:d,option:{ylen:i,height:r,mediaType:a,subMediaType:s,beforeDecoding:e},width:i,height:r,codecType:"h264",decodingTime:t,frameType:o}):void 0:(v.prototype.setIsFirstFrame(!0),{firstFrame:!0})},setIsFirstFrame:function(e){h=e},isFirstFrame:function(){return h},free:function(){Module._DECODE_Stop(g),u=null,Module._free(a),f=null,Module._free(s),_=null,Module._free(p),c=null,Module._free(l),m=null,d=null}},new v}}]);