All Downloads are FREE. Search and download functionalities are using the official Maven repository.

static.kuangkie.hydrogen.bundle.d7e00b3aade590f82f83.js Maven / Gradle / Ivy

The newest version!
/*! For license information please see bundle.d7e00b3aade590f82f83.js.LICENSE.txt */
(self.webpackChunkhydrogen_react=self.webpackChunkhydrogen_react||[]).push([[6136],{98778:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(63123),a=n(36849),i=n(31311),o=n(55043),l=n(8270),u=n(17253),s=n(35466),c=n(46116),d=n(92703),f=n.n(d),h=n(56415),p=s.forwardRef((function(e,t){var n,i=e.height,o=e.offsetY,u=e.offsetX,c=e.children,d=e.prefixCls,p=e.onInnerResize,g=e.innerProps,v=e.rtl,m=e.extra,y={},b={display:"flex",flexDirection:"column"};return void 0!==o&&(y={height:i,position:"relative",overflow:"hidden"},b=(0,a.Z)((0,a.Z)({},b),{},(n={transform:"translateY(".concat(o,"px)")},(0,l.Z)(n,v?"marginRight":"marginLeft",-u),(0,l.Z)(n,"position","absolute"),(0,l.Z)(n,"left",0),(0,l.Z)(n,"right",0),(0,l.Z)(n,"top",0),n))),s.createElement("div",{style:y},s.createElement(h.Z,{onResize:function(e){e.offsetHeight&&p&&p()}},s.createElement("div",(0,r.Z)({style:b,className:f()((0,l.Z)({},"".concat(d,"-holder-inner"),d)),ref:t},g),c,m)))}));p.displayName="Filler";var g=p,v=n(61277);function m(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var y=s.forwardRef((function(e,t){var n,r=e.prefixCls,i=e.rtl,u=e.scrollOffset,c=e.scrollRange,d=e.onStartMove,h=e.onStopMove,p=e.onScroll,g=e.horizontal,y=e.spinSize,b=e.containerSize,w=e.style,S=e.thumbStyle,k=s.useState(!1),E=(0,o.Z)(k,2),T=E[0],D=E[1],C=s.useState(null),x=(0,o.Z)(C,2),N=x[0],P=x[1],M=s.useState(null),L=(0,o.Z)(M,2),O=L[0],z=L[1],I=!i,_=s.useRef(),R=s.useRef(),H=s.useState(!1),F=(0,o.Z)(H,2),V=F[0],U=F[1],A=s.useRef(),W=function(){clearTimeout(A.current),U(!0),A.current=setTimeout((function(){U(!1)}),3e3)},j=c-b||0,B=b-y||0,$=j>0,Z=s.useMemo((function(){return 0===u||0===j?0:u/j*B}),[u,j,B]),Q=s.useRef({top:Z,dragging:T,pageY:N,startTop:O});Q.current={top:Z,dragging:T,pageY:N,startTop:O};var Y=function(e){D(!0),P(m(e,g)),z(Q.current.top),d(),e.stopPropagation(),e.preventDefault()};s.useEffect((function(){var e=function(e){e.preventDefault()},t=_.current,n=R.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",Y),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",Y)}}),[]);var q=s.useRef();q.current=j;var X=s.useRef();X.current=B,s.useEffect((function(){if(T){var e,t=function(t){var n=Q.current,r=n.dragging,a=n.pageY,i=n.startTop;if(v.Z.cancel(e),r){var o=m(t,g)-a,l=i;!I&&g?l-=o:l+=o;var u=q.current,s=X.current,c=s?l/s:0,d=Math.ceil(c*u);d=Math.max(d,0),d=Math.min(d,u),e=(0,v.Z)((function(){p(d,g)}))}},n=function(){D(!1),h()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),v.Z.cancel(e)}}}),[T]),s.useEffect((function(){W()}),[u]),s.useImperativeHandle(t,(function(){return{delayHidden:W}}));var K="".concat(r,"-scrollbar"),G={position:"absolute",visibility:V&&$?null:"hidden"},J={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return g?(G.height=8,G.left=0,G.right=0,G.bottom=0,J.height="100%",J.width=y,I?J.left=Z:J.right=Z):(G.width=8,G.top=0,G.bottom=0,I?G.right=0:G.left=0,J.width="100%",J.height=y,J.top=Z),s.createElement("div",{ref:_,className:f()(K,(n={},(0,l.Z)(n,"".concat(K,"-horizontal"),g),(0,l.Z)(n,"".concat(K,"-vertical"),!g),(0,l.Z)(n,"".concat(K,"-visible"),V),n)),style:(0,a.Z)((0,a.Z)({},G),w),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:W},s.createElement("div",{ref:R,className:f()("".concat(K,"-thumb"),(0,l.Z)({},"".concat(K,"-thumb-moving"),T)),style:(0,a.Z)((0,a.Z)({},J),S),onMouseDown:Y}))}));function b(e){var t=e.children,n=e.setRef,r=s.useCallback((function(e){n(e)}),[]);return s.cloneElement(t,{ref:r})}var w=n(11889),S=n(4913),k=n(64296),E=function(){function e(){(0,S.Z)(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,k.Z)(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),T=n(2610),D=n(76983);var C="object"===("undefined"==typeof navigator?"undefined":(0,i.Z)(navigator))&&/Firefox/i.test(navigator.userAgent),x=function(e,t){var n=(0,s.useRef)(!1),r=(0,s.useRef)(null),a=(0,s.useRef)({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e<0&&a.current.top||e>0&&a.current.bottom;return t&&i?(clearTimeout(r.current),n.current=!1):i&&!n.current||(clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)),!n.current&&i}};var N=20;function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*100;return isNaN(t)&&(t=0),t=Math.max(t,N),t=Math.min(t,e/2),Math.floor(t)}var M=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],L=[],O={overflowY:"auto",overflowAnchor:"none"};function z(e,t){var n=e.prefixCls,d=void 0===n?"rc-virtual-list":n,p=e.className,m=e.height,S=e.itemHeight,k=e.fullHeight,N=void 0===k||k,z=e.style,I=e.data,_=e.children,R=e.itemKey,H=e.virtual,F=e.direction,V=e.scrollWidth,U=e.component,A=void 0===U?"div":U,W=e.onScroll,j=e.onVirtualScroll,B=e.onVisibleChange,$=e.innerProps,Z=e.extraRender,Q=e.styles,Y=(0,u.Z)(e,M),q=!(!1===H||!m||!S),X=q&&I&&(S*I.length>m||!!V),K="rtl"===F,G=f()(d,(0,l.Z)({},"".concat(d,"-rtl"),K),p),J=I||L,ee=(0,s.useRef)(),te=(0,s.useRef)(),ne=(0,s.useState)(0),re=(0,o.Z)(ne,2),ae=re[0],ie=re[1],oe=(0,s.useState)(0),le=(0,o.Z)(oe,2),ue=le[0],se=le[1],ce=(0,s.useState)(!1),de=(0,o.Z)(ce,2),fe=de[0],he=de[1],pe=function(){he(!0)},ge=function(){he(!1)},ve=s.useCallback((function(e){return"function"==typeof R?R(e):null==e?void 0:e[R]}),[R]),me={getKey:ve};function ye(e){ie((function(t){var n=function(e){var t=e;return Number.isNaN(je.current)||(t=Math.min(t,je.current)),t=Math.max(t,0)}("function"==typeof e?e(t):e);return ee.current.scrollTop=n,n}))}var be=(0,s.useRef)({start:0,end:J.length}),we=(0,s.useRef)(),Se=function(e,t,n){var r=s.useState(e),a=(0,o.Z)(r,2),i=a[0],l=a[1],u=s.useState(null),c=(0,o.Z)(u,2),d=c[0],f=c[1];return s.useEffect((function(){var r=function(e,t,n){var r,a,i=e.length,o=t.length;if(0===i&&0===o)return null;i0&&void 0!==arguments[0]&&arguments[0];f();var t=function(){u.current.forEach((function(e,t){if(e&&e.offsetParent){var n=(0,w.Z)(e),r=n.offsetHeight;c.current.get(t)!==r&&c.current.set(t,n.offsetHeight)}})),l((function(e){return e+1}))};e?t():d.current=(0,v.Z)(t)}return(0,s.useEffect)((function(){return f}),[]),[function(t,n){var r=e(t);u.current.get(r);n?(u.current.set(r,n),h()):u.current.delete(r)},h,c.current,i]}(ve),Te=(0,o.Z)(Ee,4),De=Te[0],Ce=Te[1],xe=Te[2],Ne=Te[3],Pe=s.useMemo((function(){if(!q)return{scrollHeight:void 0,start:0,end:J.length-1,offset:void 0};var e;if(!X)return{scrollHeight:(null===(e=te.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:J.length-1,offset:void 0};for(var t,n,r,a=0,i=J.length,o=0;o=ae&&void 0===t&&(t=o,n=a),c>ae+m&&void 0===r&&(r=o),a=c}return void 0===t&&(t=0,n=0,r=Math.ceil(m/S)),void 0===r&&(r=J.length-1),{scrollHeight:a,start:t,end:r=Math.min(r+1,J.length-1),offset:n}}),[X,q,ae,J,Ne,m]),Me=Pe.scrollHeight,Le=Pe.start,Oe=Pe.end,ze=Pe.offset;be.current.start=Le,be.current.end=Oe;var Ie=s.useState({width:0,height:m}),_e=(0,o.Z)(Ie,2),Re=_e[0],He=_e[1],Fe=(0,s.useRef)(),Ve=(0,s.useRef)(),Ue=s.useMemo((function(){return P(Re.width,V)}),[Re.width,V]),Ae=s.useMemo((function(){return P(Re.height,Me)}),[Re.height,Me]),We=Me-m,je=(0,s.useRef)(We);je.current=We;var Be=ae<=0,$e=ae>=We,Ze=x(Be,$e),Qe=function(){return{x:K?-ue:ue,y:ae}},Ye=(0,s.useRef)(Qe()),qe=(0,D.zX)((function(){if(j){var e=Qe();Ye.current.x===e.x&&Ye.current.y===e.y||(j(e),Ye.current=e)}}));function Xe(e,t){var n=e;t?((0,c.flushSync)((function(){se(n)})),qe()):ye(n)}var Ke=function(e){var t=e,n=V-Re.width;return t=Math.max(t,0),Math.min(t,n)},Ge=(0,D.zX)((function(e,t){t?((0,c.flushSync)((function(){se((function(t){return Ke(t+(K?-e:e))}))})),qe()):ye((function(t){return t+e}))})),Je=function(e,t,n,r,a){var i=(0,s.useRef)(0),o=(0,s.useRef)(null),l=(0,s.useRef)(null),u=(0,s.useRef)(!1),c=x(t,n),d=(0,s.useRef)(null),f=(0,s.useRef)(null);return[function(t){if(e){v.Z.cancel(f.current),f.current=(0,v.Z)((function(){d.current=null}),2);var n=t.deltaX,s=t.deltaY,h=t.shiftKey,p=n,g=s;("sx"===d.current||!d.current&&h&&s&&!n)&&(p=s,g=0,d.current="sx");var m=Math.abs(p),y=Math.abs(g);null===d.current&&(d.current=r&&m>y?"x":"y"),"y"===d.current?function(e,t){v.Z.cancel(o.current),i.current+=t,l.current=t,c(t)||(C||e.preventDefault(),o.current=(0,v.Z)((function(){var e=u.current?10:1;a(i.current*e),i.current=0})))}(t,g):function(e,t){a(t,!0),C||e.preventDefault()}(t,p)}},function(t){e&&(u.current=t.detail===l.current)}]}(q,Be,$e,!!V,Ge),et=(0,o.Z)(Je,2),tt=et[0],nt=et[1];!function(e,t,n){var r,a=(0,s.useRef)(!1),i=(0,s.useRef)(0),o=(0,s.useRef)(null),l=(0,s.useRef)(null),u=function(e){if(a.current){var t=Math.ceil(e.touches[0].pageY),r=i.current-t;i.current=t,n(r)&&e.preventDefault(),clearInterval(l.current),l.current=setInterval((function(){(!n(r*=.9333333333333333,!0)||Math.abs(r)<=.1)&&clearInterval(l.current)}),16)}},c=function(){a.current=!1,r()},d=function(e){r(),1!==e.touches.length||a.current||(a.current=!0,i.current=Math.ceil(e.touches[0].pageY),o.current=e.target,o.current.addEventListener("touchmove",u),o.current.addEventListener("touchend",c))};r=function(){o.current&&(o.current.removeEventListener("touchmove",u),o.current.removeEventListener("touchend",c))},(0,T.Z)((function(){return e&&t.current.addEventListener("touchstart",d),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",d),r(),clearInterval(l.current)}}),[e])}(q,ee,(function(e,t){return!Ze(e,t)&&(tt({preventDefault:function(){},deltaY:e}),!0)})),(0,T.Z)((function(){function e(e){q&&e.preventDefault()}var t=ee.current;return t.addEventListener("wheel",tt),t.addEventListener("DOMMouseScroll",nt),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",tt),t.removeEventListener("DOMMouseScroll",nt),t.removeEventListener("MozMousePixelScroll",e)}}),[q]),(0,T.Z)((function(){V&&se((function(e){return Ke(e)}))}),[Re.width,V]);var rt=function(){var e,t;null===(e=Fe.current)||void 0===e||e.delayHidden(),null===(t=Ve.current)||void 0===t||t.delayHidden()},at=function(e,t,n,r,l,u,c,d){var f=s.useRef(),h=s.useState(null),p=(0,o.Z)(h,2),g=p[0],m=p[1];return(0,T.Z)((function(){if(g&&g.times<10){if(!e.current)return void m((function(e){return(0,a.Z)({},e)}));u();var i=g.targetAlign,o=g.originAlign,s=g.index,d=g.offset,f=e.current.clientHeight,h=!1,p=i,v=null;if(f){for(var y=i||o,b=0,w=0,S=0,k=Math.min(t.length-1,s),E=0;E<=k;E+=1){var T=l(t[E]);w=b;var D=n.get(T);b=S=w+(void 0===D?r:D)}for(var C="top"===y?d:f-d,x=k;x>=0;x-=1){var N=l(t[x]),P=n.get(N);if(void 0===P){h=!0;break}if((C-=P)<=0)break}switch(y){case"top":v=w-d;break;case"bottom":v=S-f+d;break;default:var M=e.current.scrollTop;wM+f&&(p="bottom")}null!==v&&c(v),v!==g.lastTop&&(h=!0)}h&&m((0,a.Z)((0,a.Z)({},g),{},{times:g.times+1,targetAlign:p,lastTop:v}))}}),[g,e.current]),function(e){if(null!=e){if(v.Z.cancel(f.current),"number"==typeof e)c(e);else if(e&&"object"===(0,i.Z)(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return l(t)===e.key}));var a=e.offset;m({times:0,index:n,offset:void 0===a?0:a,originAlign:r})}}else d()}}(ee,J,xe,S,ve,(function(){return Ce(!0)}),ye,rt);s.useImperativeHandle(t,(function(){return{getScrollInfo:Qe,scrollTo:function(e){var t;(t=e)&&"object"===(0,i.Z)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&se(Ke(e.left)),at(e.top)):at(e)}}})),(0,T.Z)((function(){if(B){var e=J.slice(Le,Oe+1);B(e,J)}}),[Le,Oe,J]);var it=function(e,t,n,r){var a=s.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),i=(0,o.Z)(a,2),l=i[0],u=i[1];return function(a){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,o=l.get(a),s=l.get(i);if(void 0===o||void 0===s)for(var c=e.length,d=u.length;dm&&s.createElement(y,{ref:Fe,prefixCls:d,scrollOffset:ae,scrollRange:Me,rtl:K,onScroll:Xe,onStartMove:pe,onStopMove:ge,spinSize:Ae,containerSize:Re.height,style:null==Q?void 0:Q.verticalScrollBar,thumbStyle:null==Q?void 0:Q.verticalScrollBarThumb}),X&&V&&s.createElement(y,{ref:Ve,prefixCls:d,scrollOffset:ue,scrollRange:V,rtl:K,onScroll:Xe,onStartMove:pe,onStopMove:ge,spinSize:Ue,containerSize:Re.width,horizontal:!0,style:null==Q?void 0:Q.horizontalScrollBar,thumbStyle:null==Q?void 0:Q.horizontalScrollBarThumb}))}var I=s.forwardRef(z);I.displayName="List";var _=I},45468:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},62526:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t1?r-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,a=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.addEventListener("mouseenter",this.handleTrackMouseEnter),t.addEventListener("mouseleave",this.handleTrackMouseLeave),t.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.addEventListener("mouseenter",this.handleTrackMouseEnter),n.addEventListener("mouseleave",this.handleTrackMouseLeave),n.addEventListener("mousedown",this.handleVerticalTrackMouseDown),r.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),a.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,a=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.removeEventListener("mouseenter",this.handleTrackMouseEnter),t.removeEventListener("mouseleave",this.handleTrackMouseLeave),t.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.removeEventListener("mouseenter",this.handleTrackMouseEnter),n.removeEventListener("mouseleave",this.handleTrackMouseLeave),n.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),r.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),a.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,n=this.props,r=n.onScroll,a=n.onScrollFrame;r&&r(e),this.update((function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,a&&a(e)})),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleScrollStop",value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientX,r=t.getBoundingClientRect().left,a=this.getThumbHorizontalWidth(),i=Math.abs(r-n)-a/2;this.view.scrollLeft=this.getScrollLeftForOffset(i)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect().top,a=this.getThumbVerticalHeight(),i=Math.abs(r-n)-a/2;this.view.scrollTop=this.getScrollTopForOffset(i)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX,r=t.offsetWidth,a=t.getBoundingClientRect().left;this.prevPageX=r-(n-a)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY,r=t.offsetHeight,a=t.getBoundingClientRect().top;this.prevPageY=r-(n-a)}},{key:"setupDragging",value:function(){(0,l.default)(document.body,g.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=f.default}},{key:"teardownDragging",value:function(){(0,l.default)(document.body,g.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(e){if(this.prevPageX){var t=e.clientX,n=-this.trackHorizontal.getBoundingClientRect().left+t-(this.getThumbHorizontalWidth()-this.prevPageX);this.view.scrollLeft=this.getScrollLeftForOffset(n)}if(this.prevPageY){var r=e.clientY,a=-this.trackVertical.getBoundingClientRect().top+r-(this.getThumbVerticalHeight()-this.prevPageY);this.view.scrollTop=this.getScrollTopForOffset(a)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,l.default)(this.trackHorizontal,{opacity:1}),(0,l.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout((function(){(0,l.default)(e.trackHorizontal,{opacity:0}),(0,l.default)(e.trackVertical,{opacity:0})}),t)}}},{key:"detectScrolling",value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval((function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop}),100))}},{key:"raf",value:function(e){var t=this;this.requestFrame&&o.default.cancel(this.requestFrame),this.requestFrame=(0,o.default)((function(){t.requestFrame=void 0,e()}))}},{key:"update",value:function(e){var t=this;this.raf((function(){return t._update(e)}))}},{key:"_update",value:function(e){var t=this.props,n=t.onUpdate,r=t.hideTracksWhenNotNeeded,a=this.getValues();if((0,d.default)()){var i=a.scrollLeft,o=a.clientWidth,u=a.scrollWidth,s=(0,h.default)(this.trackHorizontal),c=this.getThumbHorizontalWidth(),f={width:c,transform:"translateX("+i/(u-o)*(s-c)+"px)"},g=a.scrollTop,v=a.clientHeight,m=a.scrollHeight,y=(0,p.default)(this.trackVertical),b=this.getThumbVerticalHeight(),w={height:b,transform:"translateY("+g/(m-v)*(y-b)+"px)"};if(r){var S={visibility:u>o?"visible":"hidden"},k={visibility:m>v?"visible":"hidden"};(0,l.default)(this.trackHorizontal,S),(0,l.default)(this.trackVertical,k)}(0,l.default)(this.thumbHorizontal,f),(0,l.default)(this.thumbVertical,w)}n&&n(a),"function"==typeof e&&e(a)}},{key:"render",value:function(){var e=this,t=(0,d.default)(),n=this.props,a=(n.onScroll,n.onScrollFrame,n.onScrollStart,n.onScrollStop,n.onUpdate,n.renderView),i=n.renderTrackHorizontal,o=n.renderTrackVertical,l=n.renderThumbHorizontal,s=n.renderThumbVertical,f=n.tagName,h=(n.hideTracksWhenNotNeeded,n.autoHide),p=(n.autoHideTimeout,n.autoHideDuration),v=(n.thumbSize,n.thumbMinSize,n.universal),m=n.autoHeight,y=n.autoHeightMin,b=n.autoHeightMax,w=n.style,S=n.children,k=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),E=this.state.didMountUniversal,T=r({},g.containerStyleDefault,m&&r({},g.containerStyleAutoHeight,{minHeight:y,maxHeight:b}),w),D=r({},g.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},m&&r({},g.viewStyleAutoHeight,{minHeight:(0,c.default)(y)?"calc("+y+" + "+t+"px)":y+t,maxHeight:(0,c.default)(b)?"calc("+b+" + "+t+"px)":b+t}),m&&v&&!E&&{minHeight:y,maxHeight:b},v&&!E&&g.viewStyleUniversalInitial),C={transition:"opacity "+p+"ms",opacity:0},x=r({},g.trackHorizontalStyleDefault,h&&C,(!t||v&&!E)&&{display:"none"}),N=r({},g.trackVerticalStyleDefault,h&&C,(!t||v&&!E)&&{display:"none"});return(0,u.createElement)(f,r({},k,{style:T,ref:function(t){e.container=t}}),[(0,u.cloneElement)(a({style:D}),{key:"view",ref:function(t){e.view=t}},S),(0,u.cloneElement)(i({style:x}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},(0,u.cloneElement)(l({style:g.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,u.cloneElement)(o({style:N}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},(0,u.cloneElement)(s({style:g.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),t}(u.Component);t.default=y,y.propTypes={onScroll:s.default.func,onScrollFrame:s.default.func,onScrollStart:s.default.func,onScrollStop:s.default.func,onUpdate:s.default.func,renderView:s.default.func,renderTrackHorizontal:s.default.func,renderTrackVertical:s.default.func,renderThumbHorizontal:s.default.func,renderThumbVertical:s.default.func,tagName:s.default.string,thumbSize:s.default.number,thumbMinSize:s.default.number,hideTracksWhenNotNeeded:s.default.bool,autoHide:s.default.bool,autoHideTimeout:s.default.number,autoHideDuration:s.default.number,autoHeight:s.default.bool,autoHeightMin:s.default.oneOfType([s.default.number,s.default.string]),autoHeightMax:s.default.oneOfType([s.default.number,s.default.string]),universal:s.default.bool,style:s.default.object,children:s.default.node},y.defaultProps={renderView:v.renderViewDefault,renderTrackHorizontal:v.renderTrackHorizontalDefault,renderTrackVertical:v.renderTrackVerticalDefault,renderThumbHorizontal:v.renderThumbHorizontalDefault,renderThumbVertical:v.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},57307:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},t.containerStyleAutoHeight={height:"auto"},t.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},t.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},t.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},t.trackHorizontalStyleDefault={position:"absolute",height:6},t.trackVerticalStyleDefault={position:"absolute",width:6},t.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},t.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},t.disableSelectStyle={userSelect:"none"},t.disableSelectStyleReset={userSelect:""}},49762:function(e,t,n){"use strict";var r,a=(r=n(62526))&&r.__esModule?r:{default:r};t.ZP=a.default,a.default},58939:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientHeight,n=getComputedStyle(e),r=n.paddingTop,a=n.paddingBottom;return t-parseFloat(r)-parseFloat(a)}},61133:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientWidth,n=getComputedStyle(e),r=n.paddingLeft,a=n.paddingRight;return t-parseFloat(r)-parseFloat(a)}},10058:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!1!==i)return i;if("undefined"!=typeof document){var e=document.createElement("div");(0,a.default)(e,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(e),i=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else i=0;return i||0};var r,a=(r=n(52629))&&r.__esModule?r:{default:r},i=!1},95477:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e}},62044:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!1}},15566:function(e,t,n){for(var r=n(43042),a="undefined"==typeof window?n.g:window,i=["moz","webkit"],o="AnimationFrame",l=a["request"+o],u=a["cancel"+o]||a["cancelRequest"+o],s=0;!l&&s