/*! For license information please see 74459.0bab2a28.js.LICENSE.txt */ (self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["74459"],{50855:function(e,t,r){"use strict";r.d(t,{O:function(){return d}});var n=r(320165),i=r(101199),o=r(469935),a=r.n(o),c=r(418312),l=r(959360),s=r(651928),u=r(122061),f=r(51262);function h(e){for(var t=1;t{let{player:t,uiLayout:r,renderMicSeat:o,uiLayoutConfig:d,linkerList:p=[],playerType:v=s.$R.xg,layoutCalculateType:m=s.NT.horizontal,containerClassName:g,contentClassName:y,adjustPlayerPosition:w=!0,children:C,regionClassName:b}=e,_=(0,l.O)(t,v);(0,i.useEffect)(()=>{if(!!w){if(c.w1.includes(m)){let{h:e,y:r}=(0,u.tD)(d);t.position({y:r,h:e})}else t.position({y:0,h:1});return()=>{w&&t.position({y:0,h:1})}}},[t,d,m,w]);let x=(0,i.useMemo)(()=>(0,u.fG)(d,m,_),[m,d,_]);return(0,n.jsx)(n.Fragment,{children:r&&d?(0,n.jsx)("div",{className:a()(f.Z.dynamicLayoutContainer,g),children:(0,n.jsxs)("div",{className:a()(y),style:h({},x),children:[(()=>{if(!d||!(null==p?void 0:p.length))return null;let{regions:e}=d,t=(0,u.B9)(r,e,p);return null==t?void 0:t.map((e,i)=>{let{p:c}=e,l=(0,u.ue)(d,e),f=(0,u.XZ)(r,d,e,t),v=p.find(e=>e.p===c)||{p:c,linkType:s.Zd.PLACEHOLDER};return(0,n.jsx)("div",{style:h({},l,f),className:a()(b),children:o&&o(i,v)},i)})})(),C||null]})}):null})}},51262:function(e,t,r){"use strict";r(910461),t.Z={dynamicLayoutContainer:"dynamicLayoutContainer_77b13"}},418312:function(e,t,r){"use strict";r.d(t,{AO:function(){return a},Fq:function(){return c},Hd:function(){return i},Ro:function(){return s},w1:function(){return l}});var n,i,o=r(651928);let a={CUSTOM_CSS_FULLSCREEN_CHANGE:"PREVIEW_ENTERROOM_CSS_FULL",FULLSCREEN_CHANGE:"fullscreen_change",VIDEO_RESIZE:"video_resize"},c={CUSTOM_CSS_FULLSCREEN_CHANGE:"PREVIEW_ENTERROOM_CSS_FULL",FULLSCREEN_CHANGE:"fullscreenchange",VIDEO_RESIZE:"video_resize"},l=[o.NT.horizontal],s=16/9;(n=i||(i={}))[n.VideoChat_DynamicLayout1V6=7]="VideoChat_DynamicLayout1V6",n[n.LinkMicUiLayout_Live_Partner_Dynamic=25]="LinkMicUiLayout_Live_Partner_Dynamic"},959360:function(e,t,r){"use strict";r.d(t,{O:function(){return a}});var n=r(101199),i=r(418312),o=r(651928);let a=(e,t)=>{let[r,a]=(0,n.useState)(i.Ro),c=n.useRef(),l=(0,n.useCallback)(()=>{var t,r;let n=null==e?void 0:null===(t=e.root)||void 0===t?void 0:t.clientWidth,o=null==e?void 0:null===(r=e.root)||void 0===r?void 0:r.clientHeight;return n&&o?n/o:i.Ro},[]),s=n.useCallback(()=>{clearTimeout(c.current),c.current=setTimeout(()=>{a(l())},50)},[]),u=(0,n.useMemo)(()=>t===o.$R.xg?Object.values(i.AO):Object.values(i.Fq),[t]);(0,n.useEffect)(()=>(u.forEach(t=>{null==e||e.on(t,s)}),()=>{u.forEach(t=>{null==e||e.off(t,s)})}),[e,u,s]);let f=n.useCallback(()=>{s()},[]);return n.useEffect(()=>(window.addEventListener("resize",f),()=>{window.removeEventListener("resize",f)}),[]),n.useEffect(()=>{s()},[]),r}},651928:function(e,t,r){"use strict";var n,i,o,a,c,l;r.d(t,{$R:function(){return i},NT:function(){return o},Zd:function(){return n}}),(a=n||(n={}))[a.PLACEHOLDER=-1]="PLACEHOLDER",a[a.VIDEO=1]="VIDEO",a[a.AUDIO=2]="AUDIO",(c=i||(i={}))[c.xg=1]="xg",c[c.ies=2]="ies",(l=o||(o={}))[l.horizontal=1]="horizontal",l[l.portrait=2]="portrait"},122061:function(e,t,r){"use strict";r.d(t,{B9:function(){return s},XZ:function(){return f},fG:function(){return l},tD:function(){return o},ue:function(){return u}});var n=r(418312),i=r(651928);let o=e=>{let{canvas:t,content:r}=e,n=t.h;return{h:r.h/n,y:r.y/n}},a=(e,t=!0)=>`${(100*e).toFixed(4)}${t?"%":""}`,c=e=>{let{content:t}=e,r=t.h*n.Ro;return t.w/r},l=(e,t,r)=>{if(!e)return{};if(t===i.NT.portrait){let t=a(e.content.w/e.canvas.w),r=a(e.content.h/e.canvas.h),n=a(e.content.y/e.canvas.h);return{position:"absolute",width:t,height:r,top:n,left:a(e.content.x/e.canvas.w)}}if(t===i.NT.horizontal){let t=a(c(e)*(n.Ro/r));return{position:"relative",width:t,height:"100%"}}return{}},s=(e,t,r)=>{if([n.Hd.LinkMicUiLayout_Live_Partner_Dynamic,n.Hd.VideoChat_DynamicLayout1V6].includes(e))return(null==r?void 0:r.length)&&!((null==r?void 0:r.length)<=2)?t.slice(0,r.length):t.slice(0,2);return t},u=(e,t,r=!0)=>{let{content:n}=e,{w:i,h:o}=n,{x:c,y:l,w:s,h:u}=t;return{position:"absolute",left:a(c/i,r),top:a(l/o,r),width:a(s/i,r),height:a(u/o,r),display:"flex",justifyContent:"center",alignItems:"center"}},f=(e,t,r,i)=>{let{p:o}=r,a=[],c="";if(e===n.Hd.VideoChat_DynamicLayout1V6&&0===o){if(null==i||i.forEach(e=>{if(0!==e.p){let{width:r,height:n,left:i,top:o}=u(t,e,!1);a.push(`M${i},${o} h${r} v${n} h-${r} z`)}}),a.length){let e=["M0,0 h100 v100 h-100 z",...a].join(" "),t=document.createElementNS("http://www.w3.org/2000/svg","path");t.setAttribute("fill-rule","evenodd"),t.setAttribute("d",e);let r=`data:image/svg+xml,${t.outerHTML}`;c=`url('${r}')`}}return{maskImage:c}}},147693:function(e,t,r){"use strict";var n=r(954090),i=r(732979),o=r.n(i),a=r(101199),c=r(918956),l=r(475089),s=function(e){if(!e)return 0;var t=o()(e).valueOf()-Date.now();return t<0?0:t};t.Z=function(e){void 0===e&&(e={});var t=e||{},r=t.leftTime,i=t.targetDate,o=t.interval,u=void 0===o?1e3:o,f=t.onEnd,h=(0,a.useMemo)(function(){return(0,l.hj)(r)&&r>0?Date.now()+r:void 0},[r]),d="leftTime"in e?h:i,p=(0,n.CR)((0,a.useState)(function(){return s(d)}),2),v=p[0],m=p[1],g=(0,c.Z)(f);(0,a.useEffect)(function(){if(!d){m(0);return}m(s(d));var e=setInterval(function(){var t,r=s(d);m(r),0===r&&(clearInterval(e),null===(t=g.current)||void 0===t||t.call(g))},u);return function(){return clearInterval(e)}},[d,u]);var y=(0,a.useMemo)(function(){var e;return{days:Math.floor((e=v)/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},[v]);return[v,y]}},73203:function(e,t,r){"use strict";var n=r(954090),i=r(350856),o=r.n(i),a=r(101199),c=r(918956),l=r(287964),s=r(475089),u=r(205859);t.Z=function(e,t){u.Z&&(0,s.mf)(e);var r,i=(0,c.Z)(e),f=null!==(r=null==t?void 0:t.wait)&&void 0!==r?r:1e3,h=(0,a.useMemo)(function(){return o()(function(){for(var e=[],t=0;t>24&255]+e.sbox[1][t>>16&255];return r^=e.sbox[2][t>>8&255],r+=e.sbox[3][255&t]}function c(e,t,r){let n,i=t,o=r;for(let t=0;t<16;++t)i^=e.pbox[t],o=a(e,i)^o,n=i,i=o,o=n;return n=i,i=o,o=n^e.pbox[16],{left:i^=e.pbox[17],right:o}}var l=r.Blowfish=t.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key;!function(e,t,r){for(let t=0;t<4;t++){e.sbox[t]=[];for(let r=0;r<256;r++)e.sbox[t][r]=i[t][r]}let o=0;for(let i=0;i<18;i++)e.pbox[i]=n[i]^t[o],++o>=r&&(o=0);let a=0,l=0,s=0;for(let t=0;t<18;t+=2)a=(s=c(e,a,l)).left,l=s.right,e.pbox[t]=a,e.pbox[t+1]=l;for(let t=0;t<4;t++)for(let r=0;r<256;r+=2)a=(s=c(e,a,l)).left,l=s.right,e.sbox[t][r]=a,e.sbox[t][r+1]=l;}(o,e.words,e.sigBytes/4)}},encryptBlock:function(e,t){var r=c(o,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},decryptBlock:function(e,t){var r=function(e,t,r){let n,i=t,o=r;for(let t=17;t>1;--t)i^=e.pbox[t],o=a(e,i)^o,n=i,i=o,o=n;return n=i,i=o,o=n^e.pbox[1],{left:i^=e.pbox[0],right:o}}(o,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},blockSize:2,keySize:4,ivSize:2});e.Blowfish=t._createHelper(l)}(),e.Blowfish},e.exports=i(r(776340),r(782996),r(785005),r(308980),r(126641))},459236:function(e,t,r){var n,i;n=0,i=function(e){var t;return t=e.lib.WordArray,e.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,n=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(r[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|r[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l>>6*(3-l)&63))}var s=i.charAt(64);if(s)for(;o.length%4;)o.push(s);return o.join("")},parse:function(e,r){void 0===r&&(r=!0);var n=e.length,i=r?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a>>6-a%4*2;i[o>>>2]|=c<<24-o%4*8,o++}return t.create(i,o)}(e,n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},e.enc.Base64url},e.exports=i(r(776340))},101727:function(e,t,r){var n,i;n=0,i=function(e){return!function(){var t=e.lib.WordArray,r=e.enc;function n(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var r=e.length,n=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(n,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],o=0;o>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(e){for(var r=e.length,i=[],o=0;o>>1]|=n(e.charCodeAt(o)<<16-o%2*16);return t.create(i,2*r)}}}(),e.enc.Utf16},e.exports=i(r(776340))},543548:function(e,t,r){var n,i,o;n=0,i=function(e){var t,r,n;return r=e.lib.CipherParams,n=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var t=n.parse(e);return r.create({ciphertext:t})}},e.format.Hex},e.exports=i(r(776340),r(126641))},477502:function(e,t,r){var n,i,o;n=0,i=function(e){return e},e.exports=i(r(776340),r(428270),r(975593),r(101727),r(782996),r(459236),r(785005),r(924447),r(249227),r(447615),r(872968),r(968175),r(596050),r(154271),r(892563),r(411075),r(308980),r(126641),r(664641),r(681235),r(936019),r(306910),r(530920),r(241065),r(527081),r(421142),r(300051),r(570546),r(543548),r(807991),r(714115),r(696053),r(658843),r(361316),r(616624))},664641:function(e,t,r){var n,i,o;n=0,i=function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function r(e,t,r,n){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,n.encryptBlock(i,0);for(var a=0;a>24&255)==255){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0+(t<<16)+(r<<8)+n}else e+=16777216;return e}var n=t.Encryptor=t.extend({processBlock:function(e,t){var n,i=this._cipher,o=i.blockSize,a=this._iv,c=this._counter;a&&(c=this._counter=a.slice(0),this._iv=void 0),0===((n=c)[0]=r(n[0]))&&(n[1]=r(n[1]));var l=c.slice(0);i.encryptBlock(l,0);for(var s=0;s>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923},e.exports=i(r(776340),r(126641))},527081:function(e,t,r){var n,i,o;n=0,i=function(e){return e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126},e.exports=i(r(776340),r(126641))},421142:function(e,t,r){var n,i,o;n=0,i=function(e){return e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971},e.exports=i(r(776340),r(126641))},570546:function(e,t,r){var n,i,o;n=0,i=function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding},e.exports=i(r(776340),r(126641))},300051:function(e,t,r){var n,i,o;n=0,i=function(e){return e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1,r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding},e.exports=i(r(776340),r(126641))},411075:function(e,t,r){var n,i,o;n=0,i=function(e){var t,r,n,i,o,a,c;return r=(t=e.lib).Base,n=t.WordArray,o=(i=e.algo).SHA256,a=i.HMAC,c=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=a.create(r.hasher,e),o=n.create(),c=n.create([1]),l=o.words,s=c.words,u=r.keySize,f=r.iterations;l.length>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(var i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],l=o[1],s=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,u=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360,f=s>>>16|4294901760&u,h=u<<16|65535&s;n[0]^=s,n[1]^=f,n[2]^=u,n[3]^=h,n[4]^=s,n[5]^=f,n[6]^=u,n[7]^=h;for(var i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=(n[i]<<8|n[i]>>>24)&16711935|(n[i]<<24|n[i]>>>8)&4278255360,e[t+i]^=n[i]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(var r=0;r<8;r++){var n=e[r]+t[r],a=65535&n,c=n>>>16,l=((a*a>>>17)+a*c>>>15)+c*c,s=((4294901760&n)*n|0)+((65535&n)*n|0);o[r]=l^s}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.RabbitLegacy=t._createHelper(a)}(),e.RabbitLegacy},e.exports=i(r(776340),r(782996),r(785005),r(308980),r(126641))},658843:function(e,t,r){var n,i,o;n=0,i=function(e){return!function(){var t=e.lib.StreamCipher,r=e.algo,n=[],i=[],o=[],a=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=(e[r]<<8|e[r]>>>24)&16711935|(e[r]<<24|e[r]>>>8)&4278255360;var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var r=0;r<4;r++)c.call(this);for(var r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],l=o[1],s=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,u=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360,f=s>>>16|4294901760&u,h=u<<16|65535&s;i[0]^=s,i[1]^=f,i[2]^=u,i[3]^=h,i[4]^=s,i[5]^=f,i[6]^=u,i[7]^=h;for(var r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=(n[i]<<8|n[i]>>>24)&16711935|(n[i]<<24|n[i]>>>8)&4278255360,e[t+i]^=n[i]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(var r=0;r<8;r++){var n=e[r]+t[r],a=65535&n,c=n>>>16,l=((a*a>>>17)+a*c>>>15)+c*c,s=((4294901760&n)*n|0)+((65535&n)*n|0);o[r]=l^s}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.Rabbit=t._createHelper(a)}(),e.Rabbit},e.exports=i(r(776340),r(782996),r(785005),r(308980),r(126641))},696053:function(e,t,r){var n,i,o;n=0,i=function(e){return!function(){var t=e.lib.StreamCipher,r=e.algo,n=r.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;for(var i=0,o=0;i<256;i++){var a=i%r,c=t[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+c)%256;var l=n[i];n[i]=n[o],n[o]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}e.RC4=t._createHelper(n);var o=r.RC4Drop=n.extend({cfg:n.cfg.extend({drop:192}),_doReset:function(){n._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});e.RC4Drop=t._createHelper(o)}(),e.RC4},e.exports=i(r(776340),r(782996),r(785005),r(308980),r(126641))},154271:function(e,t,r){var n,i;n=0,i=function(e){return!function(t){var r=e.lib,n=r.WordArray,i=r.Hasher,o=e.algo,a=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),s=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),f=n.create([1352829926,1548603684,1836072691,2053994217,0]),h=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r,n,i,o,h,d,p,v,m,g,w,C=0;C<16;C++){var b=t+C,_=e[b];e[b]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}var x=this._hash.words,k=u.words,O=f.words,B=a.words,E=c.words,S=l.words,L=s.words;d=r=x[0],p=n=x[1],v=i=x[2],m=o=x[3],g=h=x[4];for(var C=0;C<80;C+=1)w=r+e[t+B[C]]|0,C<16?w+=function(e,t,r){return e^t^r}(n,i,o)+k[0]:C<32?w+=function(e,t,r){return e&t|~e&r}(n,i,o)+k[1]:C<48?w+=function(e,t,r){return(e|~t)^r}(n,i,o)+k[2]:C<64?w+=function(e,t,r){return e&r|t&~r}(n,i,o)+k[3]:w+=function(e,t,r){return e^(t|~r)}(n,i,o)+k[4],w|=0,w=(w=y(w,S[C]))+h|0,r=h,h=o,o=y(i,10),i=n,n=w,w=d+e[t+E[C]]|0,C<16?w+=function(e,t,r){return e^(t|~r)}(p,v,m)+O[0]:C<32?w+=function(e,t,r){return e&r|t&~r}(p,v,m)+O[1]:C<48?w+=function(e,t,r){return(e|~t)^r}(p,v,m)+O[2]:C<64?w+=function(e,t,r){return e&t|~e&r}(p,v,m)+O[3]:w+=function(e,t,r){return e^t^r}(p,v,m)+O[4],w|=0,w=(w=y(w,L[C]))+g|0,d=g,g=m,m=y(v,10),v=p,p=w;w=x[1]+i+m|0,x[1]=x[2]+o+g|0,x[2]=x[3]+h+d|0,x[3]=x[4]+r+p|0,x[4]=x[0]+n+v|0,x[0]=w},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[(n+64>>>9<<4)+14]=(r<<8|r>>>24)&16711935|(r<<24|r>>>8)&4278255360,e.sigBytes=(t.length+1)*4,this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var c=o[a];o[a]=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function d(e,t,r){return e^t^r}function p(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function m(e,t,r){return e&r|t&~r}function g(e,t,r){return e^(t|~r)}function y(e,t){return e<>>32-t}e.RIPEMD160=i._createHelper(h),e.HmacRIPEMD160=i._createHmacHelper(h)}(Math),e.RIPEMD160},e.exports=i(r(776340))},447615:function(e,t,r){var n,i,o;n=0,i=function(e){var t,r,n,i;return t=e.lib.WordArray,n=(r=e.algo).SHA256,i=r.SHA224=n.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=n._doFinalize.call(this);return e.sigBytes-=4,e}}),e.SHA224=n._createHelper(i),e.HmacSHA224=n._createHmacHelper(i),e.SHA224},e.exports=i(r(776340),r(249227))},249227:function(e,t,r){var n,i;n=0,i=function(e){var t,r,n,i,o,a,c,l,s;return t=Math,n=(r=e.lib).WordArray,i=r.Hasher,o=e.algo,a=[],c=[],function(){function e(e){return(e-(0|e))*4294967296|0}for(var r=2,n=0;n<64;)(function(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0})(r)&&(n<8&&(a[n]=e(t.pow(r,.5))),c[n]=e(t.pow(r,1/3)),n++),r++}(),l=[],s=o.SHA256=i.extend({_doReset:function(){this._hash=new n.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],f=r[6],h=r[7],d=0;d<64;d++){if(d<16)l[d]=0|e[t+d];else{var p=l[d-15],v=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=l[d-2],g=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;l[d]=v+l[d-7]+g+l[d-16]}var y=s&u^~s&f,w=n&i^n&o^i&o,C=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),b=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+y+c[d]+l[d],_=C+w;h=f,f=u,u=s,s=a+b|0,a=o,o=i,i=n,n=b+_|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+u|0,r[6]=r[6]+f|0,r[7]=r[7]+h|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[(i+64>>>9<<4)+14]=t.floor(n/4294967296),r[(i+64>>>9<<4)+15]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA256=i._createHelper(s),e.HmacSHA256=i._createHmacHelper(s),e.SHA256},e.exports=i(r(776340))},596050:function(e,t,r){var n,i,o;n=0,i=function(e){var t,r,n,i,o,a,c,l,s,u,f;return t=Math,n=(r=e.lib).WordArray,i=r.Hasher,o=e.x64.Word,a=e.algo,c=[],l=[],s=[],function(){for(var e=1,t=0,r=0;r<24;r++){c[e+5*t]=(r+1)*(r+2)/2%64;var n=t%5,i=(2*e+3*t)%5;e=n,t=i}for(var e=0;e<5;e++)for(var t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var a=1,u=0;u<24;u++){for(var f=0,h=0,d=0;d<7;d++){if(1&a){var p=(1<>>24)&16711935|(o<<24|o>>>8)&4278255360,a=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360;var f=r[i];f.high^=a,f.low^=o}for(var h=0;h<24;h++){for(var d=0;d<5;d++){for(var p=0,v=0,m=0;m<5;m++){var f=r[d+5*m];p^=f.high,v^=f.low}var g=u[d];g.high=p,g.low=v}for(var d=0;d<5;d++){for(var y=u[(d+4)%5],w=u[(d+1)%5],C=w.high,b=w.low,p=y.high^(C<<1|b>>>31),v=y.low^(b<<1|C>>>31),m=0;m<5;m++){var f=r[d+5*m];f.high^=p,f.low^=v}}for(var _=1;_<25;_++){var p,v,f=r[_],x=f.high,k=f.low,O=c[_];O<32?(p=x<>>32-O,v=k<>>32-O):(p=k<>>64-O,v=x<>>64-O);var B=u[l[_]];B.high=p,B.low=v}var E=u[0],S=r[0];E.high=S.high,E.low=S.low;for(var d=0;d<5;d++)for(var m=0;m<5;m++){var _=d+5*m,f=r[_],L=u[_],P=u[(d+1)%5+5*m],R=u[(d+2)%5+5*m];f.high=L.high^~P.high&R.high,f.low=L.low^~P.low&R.low}var f=r[0],H=s[h];f.high^=H.high,f.low^=H.low}},_doFinalize:function(){var e=this._data,r=e.words;this._nDataBytes;var i=8*e.sigBytes,o=32*this.blockSize;r[i>>>5]|=1<<24-i%32,r[(t.ceil((i+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*r.length,this._process();for(var a=this._state,c=this.cfg.outputLength/8,l=c/8,s=[],u=0;u>>24)&16711935|(h<<24|h>>>8)&4278255360,d=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,s.push(d),s.push(h)}return new n.init(s,c)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}}),e.SHA3=i._createHelper(f),e.HmacSHA3=i._createHmacHelper(f),e.SHA3},e.exports=i(r(776340),r(428270))},968175:function(e,t,r){var n,i,o;n=0,i=function(e){var t,r,n,i,o,a;return r=(t=e.x64).Word,n=t.WordArray,o=(i=e.algo).SHA512,a=i.SHA384=o.extend({_doReset:function(){this._hash=new n.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=16,e}}),e.SHA384=o._createHelper(a),e.HmacSHA384=o._createHmacHelper(a),e.SHA384},e.exports=i(r(776340),r(428270),r(872968))},872968:function(e,t,r){var n,i,o;n=0,i=function(e){return!function(){var t=e.lib.Hasher,r=e.x64,n=r.Word,i=r.WordArray,o=e.algo;function a(){return n.create.apply(n,arguments)}var c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=a()}();var s=o.SHA512=t.extend({_doReset:function(){this._hash=new i.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],f=r[6],h=r[7],d=n.high,p=n.low,v=i.high,m=i.low,g=o.high,y=o.low,w=a.high,C=a.low,b=s.high,_=s.low,x=u.high,k=u.low,O=f.high,B=f.low,E=h.high,S=h.low,L=d,P=p,R=v,H=m,j=g,D=y,A=w,M=C,I=b,T=_,Z=x,z=k,N=O,V=B,F=E,W=S,U=0;U<80;U++){var $,G,X=l[U];if(U<16)G=X.high=0|e[t+2*U],$=X.low=0|e[t+2*U+1];else{var K=l[U-15],q=K.high,J=K.low,Q=(q>>>1|J<<31)^(q>>>8|J<<24)^q>>>7,Y=(J>>>1|q<<31)^(J>>>8|q<<24)^(J>>>7|q<<25),ee=l[U-2],et=ee.high,er=ee.low,en=(et>>>19|er<<13)^(et<<3|er>>>29)^et>>>6,ei=(er>>>19|et<<13)^(er<<3|et>>>29)^(er>>>6|et<<26),eo=l[U-7],ea=eo.high,ec=eo.low,el=l[U-16],es=el.high,eu=el.low;G=Q+ea+(($=Y+ec)>>>0>>0?1:0),$+=ei,G=G+en+($>>>0>>0?1:0),$+=eu,G=G+es+($>>>0>>0?1:0),X.high=G,X.low=$}var ef=I&Z^~I&N,eh=T&z^~T&V,ed=L&R^L&j^R&j,ep=P&H^P&D^H&D,ev=(L>>>28|P<<4)^(L<<30|P>>>2)^(L<<25|P>>>7),em=(P>>>28|L<<4)^(P<<30|L>>>2)^(P<<25|L>>>7),eg=(I>>>14|T<<18)^(I>>>18|T<<14)^(I<<23|T>>>9),ey=(T>>>14|I<<18)^(T>>>18|I<<14)^(T<<23|I>>>9),ew=c[U],eC=ew.high,eb=ew.low,e_=W+ey,ex=F+eg+(e_>>>0>>0?1:0),e_=e_+eh,ex=ex+ef+(e_>>>0>>0?1:0),e_=e_+eb,ex=ex+eC+(e_>>>0>>0?1:0),e_=e_+$,ex=ex+G+(e_>>>0<$>>>0?1:0),ek=em+ep,eO=ev+ed+(ek>>>0>>0?1:0);F=N,W=V,N=Z,V=z,Z=I,z=T,I=A+ex+((T=M+e_|0)>>>0>>0?1:0)|0,A=j,M=D,j=R,D=H,R=L,H=P,L=ex+eO+((P=e_+ek|0)>>>0>>0?1:0)|0}p=n.low=p+P,n.high=d+L+(p>>>0

>>0?1:0),m=i.low=m+H,i.high=v+R+(m>>>0>>0?1:0),y=o.low=y+D,o.high=g+j+(y>>>0>>0?1:0),C=a.low=C+M,a.high=w+A+(C>>>0>>0?1:0),_=s.low=_+T,s.high=b+I+(_>>>0>>0?1:0),k=u.low=k+z,u.high=x+Z+(k>>>0>>0?1:0),B=f.low=B+V,f.high=O+N+(B>>>0>>0?1:0),S=h.low=S+W,h.high=E+F+(S>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[(n+128>>>10<<5)+30]=Math.floor(r/4294967296),t[(n+128>>>10<<5)+31]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(s),e.HmacSHA512=t._createHmacHelper(s)}(),e.SHA512},e.exports=i(r(776340),r(428270))},714115:function(e,t,r){var n,i,o;n=0,i=function(e){return!function(){var t=e.lib,r=t.WordArray,n=t.BlockCipher,i=e.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],s=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=i.DES=n.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=o[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],l=0;l<16;l++){for(var s=i[l]=[],u=c[l],r=0;r<24;r++)s[r/6|0]|=t[(a[r]-1+u)%28]<<31-r%6,s[4+(r/6|0)]|=t[28+(a[r+24]-1+u)%28]<<31-r%6;s[0]=s[0]<<1|s[0]>>>31;for(var r=1;r<7;r++)s[r]=s[r]>>>(r-1)*4+3;s[7]=s[7]<<5|s[7]>>>27}for(var f=this._invSubKeys=[],r=0;r<16;r++)f[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),f.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,c=0,u=0;u<8;u++)c|=l[u][((a^i[u])&s[u])>>>0];this._lBlock=a,this._rBlock=o^c}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,f.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=u.createEncryptor(r.create(t)),this._des2=u.createEncryptor(r.create(n)),this._des3=u.createEncryptor(r.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=n._createHelper(d)}(),e.TripleDES},e.exports=i(r(776340),r(782996),r(785005),r(308980),r(126641))},428270:function(e,t,r){var n,i;n=0,i=function(e){var t,r,n,i,o;return n=(r=e.lib).Base,i=r.WordArray,(o=e.x64={}).Word=n.extend({init:function(e,t){this.high=e,this.low=t}}),o.WordArray=n.extend({init:function(e,t){e=this.words=e||[],void 0!=t?this.sigBytes=t:this.sigBytes=8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n=o&&o>n&&(r=i,n=o)}),r},c=function(e){var t=void 0===e?{}:e,r=t.useBorderBoxSize,c=t.breakpoints,l=t.updateOnBreakpointChange,s=t.shouldUpdate,u=t.onResize,f=t.polyfill,h=(0,n.useState)({currentBreakpoint:"",width:null,height:null}),d=h[0],p=h[1],v=(0,n.useRef)({}),m=(0,n.useRef)(),g=(0,n.useRef)(),y=(0,n.useRef)(!1),w=(0,n.useRef)(),C=o(u),b=o(s),_=(0,n.useCallback)(function(){g.current&&g.current.disconnect()},[]),x=(0,n.useCallback)(function(e){e&&e!==w.current&&(_(),w.current=e,p({currentBreakpoint:"",width:e.clientWidth,height:e.clientHeight})),g.current&&w.current&&g.current.observe(w.current)},[_]);return(0,n.useEffect)(function(){if((!("ResizeObserver"in window)||!("ResizeObserverEntry"in window))&&!f)return function(){return null};var e=null;return g.current=new(f||ResizeObserver)(function(t){var n=t[0];e=requestAnimationFrame(function(){var e=n.contentBoxSize,t=n.borderBoxSize,i=n.contentRect,o=e;r&&(t?o=t:!y.current&&(y.current=!0));var s=(o=Array.isArray(o)?o[0]:o)?o.inlineSize:i.width,u=o?o.blockSize:i.height;if(s!==v.current.width||u!==v.current.height){v.current={width:s,height:u};var f={currentBreakpoint:"",width:s,height:u,entry:n,observe:x,unobserve:_};c?(f.currentBreakpoint=a(c,s),f.currentBreakpoint!==m.current&&(C.current&&C.current(f),m.current=f.currentBreakpoint)):C.current&&C.current(f);var h={currentBreakpoint:f.currentBreakpoint,width:s,height:u,entry:n};if(!b.current||b.current(h)){if(!b.current&&c&&l){p(function(e){return e.currentBreakpoint!==h.currentBreakpoint?h:e});return}p(h)}}})}),x(),function(){_(),e&&cancelAnimationFrame(e)}},[JSON.stringify(c),r,x,_,l]),i({},d,{observe:x,unobserve:_})}},980572:function(e,t,r){"use strict";t.forceCheck=void 0;var n,i=function(){function e(e,t){for(var r=0;r=0&&b-_[0]<=d&&b+y+_[1]>=0},k=function(e){var t=e.ref;if(!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))return!1;var r=void 0,n=void 0;try{var i=t.getBoundingClientRect();r=i.top,n=i.height}catch(e){r=m.top,n=m.height}var o=window.innerHeight||document.documentElement.clientHeight,a=Array.isArray(e.props.offset)?e.props.offset:[e.props.offset,e.props.offset];return r-a[0]<=o&&r+n+a[1]>=0},O=function(e){var t=e.ref;if(t instanceof HTMLElement){var r=(0,s.default)(t);(e.props.overflow&&r!==t.ownerDocument&&r!==document&&r!==document.documentElement?x(e,r):k(e))?!e.visible&&(e.props.once&&w.push(e),e.visible=!0,e.forceUpdate()):!(e.props.once&&e.visible)&&(e.visible=!1,e.props.unmountIfInvisible&&e.forceUpdate())}},B=function(){w.forEach(function(e){var t=y.indexOf(e);-1!==t&&y.splice(t,1)}),w=[]},E=function(){for(var e=0;e=0?n=setTimeout(l,t-s):(n=null,!r&&(c=e.apply(o,i),!n&&(o=null,i=null)))};return function(){o=this,i=arguments,a=+new Date;var s=r&&!n;return!n&&(n=setTimeout(l,t)),s&&(c=e.apply(o,i),o=null,i=null),c}}},886843:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=function(e,t,r,n){n=n||!1,e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on"+t,function(t){r.call(e,t||window.event)})},t.off=function(e,t,r,n){n=n||!1,e.removeEventListener?e.removeEventListener(t,r,n):e.detachEvent&&e.detachEvent("on"+t,r)}},625419:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(e instanceof HTMLElement))return document.documentElement;for(var t="absolute"===e.style.position,r=/(scroll|auto)/,n=e;n;){if(!n.parentNode)return e.ownerDocument||document.documentElement;var i=window.getComputedStyle(n),o=i.position,a=i.overflow,c=i["overflow-x"],l=i["overflow-y"];if("static"===o&&t){n=n.parentNode;continue}if(r.test(a)&&r.test(c)&&r.test(l))return n;n=n.parentNode}return e.ownerDocument||e.documentElement||document.documentElement}},416763:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var n,i;return t||(t=250),function(){var o=r||this,a=+new Date,c=arguments;n&&a0&&(a.textContent=i.ZP.format(n))):(o.innerHTML=u,n!==1/0&&n>0&&(a.innerHTML=i.ZP.format(n)))}}},{key:"onReset",value:function(){var e="flex"===this.mode?this.centerCurDom:this.timeDom,t="flex"===this.mode?this.centerDurDom:this.durationDom;this.config.smartRender?(this.state.currentTime=0,this.state.duration=0,e.textContent=i.ZP.format(0),t.textContent=i.ZP.format(0)):(e.innerHTML=i.ZP.format(0),t.innerHTML=i.ZP.format(0))}},{key:"createCenterTime",value:function(){var e=this.player;if(!!e.controls&&!!e.controls.center){var t=e.controls.center;this.centerCurDom=i.ZP.createDom("xg-icon","00:00",{},"xgplayer-time left"),this.centerDurDom=i.ZP.createDom("xg-icon","00:00",{},"xgplayer-time right"),t.children.length>0?t.insertBefore(this.centerCurDom,t.children[0]):t.appendChild(this.centerCurDom),t.appendChild(this.centerDurDom)}}},{key:"changeLiveState",value:function(e){e?(i.ZP.hide(this.durationDom),i.ZP.hide(this.timeDom),i.ZP.hide(this.find(".time-separator")),i.ZP.show(this.find(".time-live-tag"))):(i.ZP.hide(this.find(".time-live-tag")),i.ZP.show(this.find(".time-separator")),i.ZP.show(this.durationDom),i.ZP.show(this.timeDom))}},{key:"updateTime",value:function(e){if(this.isActiving=!0,(!!e||0===e)&&!(e>this.duration)){var t="flex"===this.mode?this.centerCurDom:this.timeDom;this.config.smartRender?(this.state.currentTime=e,t.textContent=i.ZP.format(e)):t.innerHTML=i.ZP.format(e)}}},{key:"resetActive",value:function(){var e=this,t=this.player,r=function(){e.isActiving=!1};this.off(n.kL,r),t.isSeeking&&t.video.seeking?this.once(n.kL,r):this.isActiving=!1}},{key:"destroy",value:function(){var e=this.player.controls.center;this.centerCurDom&&e.removeChild(this.centerCurDom),this.centerCurDom=null,this.centerDurDom&&e.removeChild(this.centerDurDom),this.centerDurDom=null}},{key:"render",value:function(){if(!this.config.disable)return'\n 00:00\n /\n 00:00\n '.concat(this.i18n.LIVE_TIP,"\n ")}}],d=[{key:"pluginName",get:function(){return"time"}},{key:"defaultConfig",get:function(){return{position:o.kd.CONTROLS_LEFT,index:2,disable:!1,smartRender:!1}}}],h&&c(f.prototype,h),d&&c(f,d),Object.defineProperty(f,"prototype",{writable:!1}),v}(o.ZP);t.Z=f},910849:function(e,t,r){"use strict";r.d(t,{Z:function(){return G}}),r("679308"),r("490629"),r("706056");var n=r("320165"),i=r("101199"),o=r("469935"),a=r.n(o),c={container:"container_b9759",bannerList:"bannerList_b9759",playIcon:"playIcon_b9759",next:"next_b9759",prev:"prev_b9759",closeBtn:"closeBtn_b9759",bannerItemIn:"bannerItemIn_b9759",bannerItemOut:"bannerItemOut_b9759"},l=Object.defineProperty,s=Object.defineProperties,u=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t,r)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,v=(e,t)=>{for(var r in t||(t={}))h.call(t,r)&&p(e,r,t[r]);if(f)for(var r of f(t))d.call(t,r)&&p(e,r,t[r]);return e},m=(e,t)=>s(e,u(t)),g=e=>(0,n.jsx)("svg",m(v({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none",viewBox:"0 0 32 32"},e),{children:(0,n.jsxs)("g",{opacity:.7,children:[(0,n.jsx)("circle",{r:16,fill:"#fff",transform:"matrix(-1 0 0 1 16 16)"}),(0,n.jsx)("path",{fill:"#000",fillRule:"evenodd",d:"M18.66 10.14a1.5 1.5 0 0 0-2.12 0l-4.8 4.8a1.5 1.5 0 0 0 0 2.12l4.8 4.8a1.5 1.5 0 0 0 2.12-2.12L14.922 16l3.74-3.74a1.5 1.5 0 0 0 0-2.12Z",clipRule:"evenodd",opacity:.5})]})})),y=Object.defineProperty,w=Object.defineProperties,C=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,k=(e,t,r)=>t in e?y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O=(e,t)=>{for(var r in t||(t={}))_.call(t,r)&&k(e,r,t[r]);if(b)for(var r of b(t))x.call(t,r)&&k(e,r,t[r]);return e},B=(e,t)=>w(e,C(t)),E=e=>(0,n.jsx)("svg",B(O({xmlns:"http://www.w3.org/2000/svg",width:8,height:9,fill:"none",viewBox:"0 0 8 9"},e),{children:(0,n.jsx)("path",{fill:"#fff",d:"M.455 6.993a.78.78 0 0 0 1.103 1.103L3.993 5.66l2.434 2.435A.78.78 0 0 0 7.53 6.993L5.096 4.558 7.53 2.124a.78.78 0 0 0-1.103-1.103L3.993 3.455 1.558 1.021A.78.78 0 0 0 .455 2.124L2.89 4.558.455 6.993Z"})}));r("117232"),r("362051"),r("414931");var S=r("183652"),L=r.n(S),P=r("121998");r("374954");let R=e=>{let t=[];for(let r of e){let{stuff_detail:e}=r,n=JSON.parse(e),i={id:String(r.id),link:n.link,imgSrc:n.image_url,isAd:n.is_ad,winDownloadSchema:n.win_download_link,isDownloadSchema:n.is_download_link,macDownloadSchema:n.mac_download_link,order:n.order,clientType:n.client_type,region:n.region,isOversea:n.is_oversea,isTriggerAction:n.is_trigger_action};t.push(i)}return t};var H=r("477502"),j=r.n(H),D=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{c(r.next(e))}catch(e){i(e)}},a=e=>{try{c(r.throw(e))}catch(e){i(e)}},c=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,a);c((r=r.apply(e,t)).next())});let A=L().create({baseURL:"https://www.douyin.com",timeout:5e3}),M=(e,t)=>D(void 0,null,function*(){let r=e;if(t){let n=P.stringify(t);r=`${e}?${n}`}let{status:n,data:i}=yield A.get(r);return i}),I=e=>D(void 0,null,function*(){let{resource_list:t}=yield M("/aweme/v1/web/solution/resource/list/",e);t.sort((e,t)=>e.id-t.id);let r=R(t),n=JSON.stringify(r),i=j().MD5(n).toString(j().enc.Hex);return r.sort((e,t)=>t.order-e.order),{bannerList:r,version:i}}),T=e=>D(void 0,null,function*(){let{data:t}=yield M("https://lf3-config.bytetcc.com/obj/tcc-config-web/tcc-v2-data-douyin.pc.web-default");if(e){let r={};try{let n=t[e];r=JSON.parse(n)}catch(e){}return r}return t});var Z={bannerItem:"bannerItem_f2158",hasPointer:"hasPointer_f2158",bannerItemIn:"bannerItemIn_f2158",bannerItemOut:"bannerItemOut_f2158",adTag:"adTag_f2158"};r("228983"),r("759943"),r("527553");let z=(e,t)=>{let r,n,i,o,a;if(10===t||![2,8,16,62].includes(t))return e;let c=[];for(;e.length>0;){for(n=0,i="",r=0;n"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[e]).join("")},N=(e,t)=>t&&-1!==t.indexOf("https://live.douyin.com")?-1===t.indexOf("?")?`${t}?${P.stringify(e)}`:`${t}&${P.stringify(e)}`:t,V={enter_from_merge:"discover",enter_method:"banner",action_type:"click"},F=e=>{let{isActive:t,onClick:r,bannerInfo:o,systemInfo:c,userInfo:l,clickAction:s}=e,{imgSrc:u,link:f,isAd:h=!1,macDownloadSchema:d,winDownloadSchema:p,isDownloadSchema:v,isTriggerAction:m}=o,{wid:g=""}=l,{os:y,clientType:w,isInPWA:C}=c,[b,_]=(0,i.useState)(f||"");(0,i.useEffect)(()=>{_(N(V,f||""))},[f]);let{downloadHref:x,downloadAttr:k}=function(e){let{macUrl:t,winUrl:r,wid:n,os:o}=e||{},[a,c]=(0,i.useState)(""),[l,s]=(0,i.useState)(""),[u,f]=(0,i.useState)(""),[h,d]=(0,i.useState)("");return(0,i.useEffect)(()=>{if("Mac"===o){c(t);return}c(r)},[t,r]),(0,i.useEffect)(()=>{s(z(n||"",62))},[]),(0,i.useEffect)(()=>{let e="Mac"===o?".dmg":".exe",t=`douyin${e}`;a&&(t=a.substring(a.lastIndexOf("/")+1),t=`${t.split(e)[0]}-wid-${l}${e}`),d(t)},[l,a]),(0,i.useEffect)(()=>{f(a)},[a]),{downloadHref:u,downloadAttr:h}}({macUrl:d||"",winUrl:p||"",wid:g,os:y}),O=!b&&!x;return"Client"===w||O?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:a()(Z.bannerItem,{[Z.bannerItemIn]:t,[Z.bannerItemOut]:!t,[Z.hasPointer]:!!b}),style:{backgroundImage:`url(${u})`},onClick:()=>{if(null==r||r(t),m&&s){s();return}b&&window.open(b,C?"_self":"_blank")}}),h?(0,n.jsx)("div",{className:Z.adTag,children:"广告"}):null]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("a",{href:v?x:b,download:v?k:void 0,target:C||v?"_self":"_blank",className:a()(Z.bannerItem,{[Z.bannerItemIn]:t,[Z.bannerItemOut]:!t,[Z.hasPointer]:!!b}),style:{backgroundImage:`url(${u})`},onClick:e=>{if(null==r||r(t),m&&s){e.preventDefault(),s();return}},rel:"noopener noreferrer"}),h?(0,n.jsx)("div",{className:Z.adTag,children:"广告"}):null]})},W="CLOSED_HOME_BANNER_VERSION";var U=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{c(r.next(e))}catch(e){i(e)}},a=e=>{try{c(r.throw(e))}catch(e){i(e)}},c=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,a);c((r=r.apply(e,t)).next())});let $={1:["Web"],2:["Client"],3:["Web","Client"]};function G(e){let{className:t,userInfo:r,systemInfo:o,logConfig:l,country:s,clickAction:u}=e,{clientType:f}=o,{teaInstance:h}=l||{},[d,p]=(0,i.useState)(0),v=(0,i.useRef)(!1),m=(0,i.useRef)(),y=(0,i.useRef)(),[w,C]=(0,i.useState)([]),[b,_]=(0,i.useState)(!1),[x,k]=(0,i.useState)(!0),[O,B]=(0,i.useState)("");(0,i.useEffect)(()=>{U(this,null,function*(){let[e,t]=yield Promise.all([I({spot_keys:"7359502129541449780_douyin_pc_banner",app_id:6383}),T("newHomeConfig")]),{bannerList:r,version:n}=e,{showClose:i=!0}=t;C(r.filter(e=>{let t=!s||"cn"===s,r=$[e.clientType].includes(f);return e.isOversea?e.region?r&&s===e.region:r&&!t:r&&t})),B(n),k(i)})},[]),(0,i.useEffect)(()=>{_(localStorage.getItem(W)!==O&&w.length>0)},[w,O]),(0,i.useEffect)(()=>{var e;b&&(null==h||h.sendLog("activityBannerShow",{enter_from:"discover",activity_id:null==(e=w[d])?void 0:e.id}))},[d,b]);let S=(0,i.useCallback)(()=>{if(!!b&&!(w.length<=1))m.current=setInterval(()=>{null==h||h.sendLog("activityBannerSwitch",{enter_from:"discover",click_method:"auto"}),p(e=>(e+1)%w.length)},3e3)},[w,b]),L=(0,i.useCallback)(()=>{clearInterval(m.current)},[]);return((0,i.useEffect)(()=>(S(),()=>{L(),clearTimeout(y.current)}),[w]),b)?(0,n.jsxs)("div",{className:a()(t,c.container),children:[(0,n.jsx)("ul",{className:c.bannerList,children:w.map((e,t)=>{let{id:i}=e;return(0,n.jsx)("li",{className:a()({[c.bannerItemIn]:d===t,[c.bannerItemOut]:d!==t}),children:(0,n.jsx)(F,{isActive:d===t,onClick:()=>{null==h||h.sendLog("activityBannerClick",{enter_from:"discover",activity_id:i})},bannerInfo:e,userInfo:r,systemInfo:o,clickAction:u})},i)})}),x?(0,n.jsxs)("div",{className:c.closeBtn,onClick:()=>{_(!1),localStorage.setItem(W,O),null==h||h.sendLog("activityBannerClose",{enter_from:"discover"})},children:[(0,n.jsx)(E,{viewBox:"0 0 8 9",width:8,height:9}),(0,n.jsx)("span",{children:"关闭"})]}):null,(null==w?void 0:w.length)>1&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g,{viewBox:"0 0 32 32",width:32,height:32,className:a()(c.playIcon,c.prev),onClick:()=>{if(!v.current)v.current=!0,L(),clearTimeout(y.current),y.current=setTimeout(()=>{S(),v.current=!1},500),null==h||h.sendLog("activityBannerSwitch",{enter_from:"discover",click_method:"click"}),p(e=>0===e?w.length-1:(e-1)%w.length)}}),(0,n.jsx)(g,{viewBox:"0 0 32 32",width:32,height:32,className:a()(c.playIcon,c.next),onClick:()=>{if(!v.current)v.current=!0,L(),clearTimeout(y.current),y.current=setTimeout(()=>{S(),v.current=!1},500),null==h||h.sendLog("activityBannerSwitch",{enter_from:"discover",click_method:"click"}),p(e=>(e+1)%w.length)}})]})]}):null}},577596:function(e,t,r){"use strict";r(932651);var n=r(101199);function i(){return(i=Object.assign||function(e){for(var t=1;t{if("length"===r||"prototype"===r||"arguments"===r||"caller"===r)return;let o=Object.getOwnPropertyDescriptor(e,r),a=Object.getOwnPropertyDescriptor(t,r);if(!!i(o,a)||!n)Object.defineProperty(e,r,a)},i=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},o=(e,t)=>{let r=Object.getPrototypeOf(t);if(r!==Object.getPrototypeOf(e))Object.setPrototypeOf(e,r)},a=(e,t)=>`/* Wrapped ${e}*/ ${t}`,c=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),l=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),s=(e,t,r)=>{let n=""===r?"":`with ${r.trim()}() `,i=a.bind(null,n,t.toString());Object.defineProperty(i,"name",l),Object.defineProperty(e,"toString",{...c,value:i})},u=new WeakMap;function f(e,{cacheKey:t=([e])=>e,cache:r=new Map}={}){let i=new Map,a=function(...n){let o=t(n);if(i.has(o))return i.get(o);let a=(async()=>{try{if(r&&await r.has(o))return await r.get(o);let t=e.apply(this,n),i=await t;try{return i}finally{r&&await r.set(o,i)}}finally{i.delete(o)}})();return i.set(o,a),a};return!function(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:i}=e;for(let i of Reflect.ownKeys(t))n(e,t,i,r);o(e,t),s(e,t,i)}(a,e,{ignoreNonConfigurable:!0}),u.set(a,r),a}}}]);