-
Notifications
You must be signed in to change notification settings - Fork 13
/
477.669061af7c3acb50f5f0.js
1 lines (1 loc) · 21.1 KB
/
477.669061af7c3acb50f5f0.js
1
"use strict";(this.webpackChunkBitShares2_light=this.webpackChunkBitShares2_light||[]).push([[477],{68477:(t,e,o)=>{t.exports=o(71821)},97298:(t,e)=>{e.add=function(t,e){t.classList?t.classList.add(e):function(t,e){var o=t.className.split(" ");o.indexOf(e)<0&&o.push(e),t.className=o.join(" ")}(t,e)},e.remove=function(t,e){t.classList?t.classList.remove(e):function(t,e){var o=t.className.split(" "),r=o.indexOf(e);r>=0&&o.splice(r,1),t.className=o.join(" ")}(t,e)},e.list=function(t){return t.classList?Array.prototype.slice.apply(t.classList):t.className.split(" ")}},7550:t=>{var e={e:function(t,e){var o=document.createElement(t);return o.className=e,o},appendTo:function(t,e){return e.appendChild(t),t},css:function(t,e,o){return"object"==typeof e?function(t,e){for(var o in e){var r=e[o];"number"==typeof r&&(r=r.toString()+"px"),t.style[o]=r}return t}(t,e):void 0===o?function(t,e){return window.getComputedStyle(t)[e]}(t,e):function(t,e,o){return"number"==typeof o&&(o=o.toString()+"px"),t.style[e]=o,t}(t,e,o)},matches:function(t,e){return void 0!==t.matches?t.matches(e):void 0!==t.matchesSelector?t.matchesSelector(e):void 0!==t.webkitMatchesSelector?t.webkitMatchesSelector(e):void 0!==t.mozMatchesSelector?t.mozMatchesSelector(e):void 0!==t.msMatchesSelector?t.msMatchesSelector(e):void 0},remove:function(t){void 0!==t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)},queryChildren:function(t,o){return Array.prototype.filter.call(t.childNodes,(function(t){return e.matches(t,o)}))}};t.exports=e},60348:t=>{var e=function(t){this.element=t,this.events={}};e.prototype.bind=function(t,e){void 0===this.events[t]&&(this.events[t]=[]),this.events[t].push(e),this.element.addEventListener(t,e,!1)},e.prototype.unbind=function(t,e){var o=void 0!==e;this.events[t]=this.events[t].filter((function(r){return!(!o||r===e)||(this.element.removeEventListener(t,r,!1),!1)}),this)},e.prototype.unbindAll=function(){for(var t in this.events)this.unbind(t)};var o=function(){this.eventElements=[]};o.prototype.eventElement=function(t){var o=this.eventElements.filter((function(e){return e.element===t}))[0];return void 0===o&&(o=new e(t),this.eventElements.push(o)),o},o.prototype.bind=function(t,e,o){this.eventElement(t).bind(e,o)},o.prototype.unbind=function(t,e,o){this.eventElement(t).unbind(e,o)},o.prototype.unbindAll=function(){for(var t=0;t<this.eventElements.length;t++)this.eventElements[t].unbindAll()},o.prototype.once=function(t,e,o){var r=this.eventElement(t),n=function(t){r.unbind(e,n),o(t)};r.bind(e,n)},t.exports=o},90909:t=>{t.exports=function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}}()},42256:(t,e,o)=>{var r=o(97298),n=o(7550),l=e.toInt=function(t){return parseInt(t,10)||0},i=e.clone=function(t){if(t){if(t.constructor===Array)return t.map(i);if("object"==typeof t){var e={};for(var o in t)e[o]=i(t[o]);return e}return t}return null};e.extend=function(t,e){var o=i(t);for(var r in e)o[r]=i(e[r]);return o},e.isEditable=function(t){return n.matches(t,"input,[contenteditable]")||n.matches(t,"select,[contenteditable]")||n.matches(t,"textarea,[contenteditable]")||n.matches(t,"button,[contenteditable]")},e.removePsClasses=function(t){for(var e=r.list(t),o=0;o<e.length;o++){var n=e[o];0===n.indexOf("ps-")&&r.remove(t,n)}},e.outerWidth=function(t){return l(n.css(t,"width"))+l(n.css(t,"paddingLeft"))+l(n.css(t,"paddingRight"))+l(n.css(t,"borderLeftWidth"))+l(n.css(t,"borderRightWidth"))},e.startScrolling=function(t,e){r.add(t,"ps-in-scrolling"),void 0!==e?r.add(t,"ps-"+e):(r.add(t,"ps-x"),r.add(t,"ps-y"))},e.stopScrolling=function(t,e){r.remove(t,"ps-in-scrolling"),void 0!==e?r.remove(t,"ps-"+e):(r.remove(t,"ps-x"),r.remove(t,"ps-y"))},e.env={isWebKit:"WebkitAppearance"in document.documentElement.style,supportsTouch:"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,supportsIePointer:null!==window.navigator.msMaxTouchPoints}},71821:(t,e,o)=>{var r=o(56918),n=o(18904),l=o(63827);t.exports={initialize:n,update:l,destroy:r}},2284:t=>{t.exports={handlers:["click-rail","drag-scrollbar","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipePropagation:!0,useBothWheelAxes:!1,wheelPropagation:!1,wheelSpeed:1,theme:"default"}},56918:(t,e,o)=>{var r=o(42256),n=o(7550),l=o(91320);t.exports=function(t){var e=l.get(t);e&&(e.event.unbindAll(),n.remove(e.scrollbarX),n.remove(e.scrollbarY),n.remove(e.scrollbarXRail),n.remove(e.scrollbarYRail),r.removePsClasses(t),l.remove(t))}},54640:(t,e,o)=>{var r=o(91320),n=o(55792),l=o(40453);t.exports=function(t){!function(t,e){function o(t){return t.getBoundingClientRect()}var r=function(t){t.stopPropagation()};e.event.bind(e.scrollbarY,"click",r),e.event.bind(e.scrollbarYRail,"click",(function(r){var i=r.pageY-window.pageYOffset-o(e.scrollbarYRail).top>e.scrollbarYTop?1:-1;l(t,"top",t.scrollTop+i*e.containerHeight),n(t),r.stopPropagation()})),e.event.bind(e.scrollbarX,"click",r),e.event.bind(e.scrollbarXRail,"click",(function(r){var i=r.pageX-window.pageXOffset-o(e.scrollbarXRail).left>e.scrollbarXLeft?1:-1;l(t,"left",t.scrollLeft+i*e.containerWidth),n(t),r.stopPropagation()}))}(t,r.get(t))}},59094:(t,e,o)=>{var r=o(42256),n=o(7550),l=o(91320),i=o(55792),a=o(40453);t.exports=function(t){var e=l.get(t);(function(t,e){var o=null,l=null,s=function(n){!function(n){var l=o+n*e.railXRatio,i=Math.max(0,e.scrollbarXRail.getBoundingClientRect().left)+e.railXRatio*(e.railXWidth-e.scrollbarXWidth);e.scrollbarXLeft=l<0?0:l>i?i:l;var s=r.toInt(e.scrollbarXLeft*(e.contentWidth-e.containerWidth)/(e.containerWidth-e.railXRatio*e.scrollbarXWidth))-e.negativeScrollAdjustment;a(t,"left",s)}(n.pageX-l),i(t),n.stopPropagation(),n.preventDefault()},c=function(){r.stopScrolling(t,"x"),e.event.unbind(e.ownerDocument,"mousemove",s)};e.event.bind(e.scrollbarX,"mousedown",(function(i){l=i.pageX,o=r.toInt(n.css(e.scrollbarX,"left"))*e.railXRatio,r.startScrolling(t,"x"),e.event.bind(e.ownerDocument,"mousemove",s),e.event.once(e.ownerDocument,"mouseup",c),i.stopPropagation(),i.preventDefault()}))})(t,e),function(t,e){var o=null,l=null,s=function(n){!function(n){var l=o+n*e.railYRatio,i=Math.max(0,e.scrollbarYRail.getBoundingClientRect().top)+e.railYRatio*(e.railYHeight-e.scrollbarYHeight);e.scrollbarYTop=l<0?0:l>i?i:l;var s=r.toInt(e.scrollbarYTop*(e.contentHeight-e.containerHeight)/(e.containerHeight-e.railYRatio*e.scrollbarYHeight));a(t,"top",s)}(n.pageY-l),i(t),n.stopPropagation(),n.preventDefault()},c=function(){r.stopScrolling(t,"y"),e.event.unbind(e.ownerDocument,"mousemove",s)};e.event.bind(e.scrollbarY,"mousedown",(function(i){l=i.pageY,o=r.toInt(n.css(e.scrollbarY,"top"))*e.railYRatio,r.startScrolling(t,"y"),e.event.bind(e.ownerDocument,"mousemove",s),e.event.once(e.ownerDocument,"mouseup",c),i.stopPropagation(),i.preventDefault()}))}(t,e)}},54938:(t,e,o)=>{var r=o(42256),n=o(7550),l=o(91320),i=o(55792),a=o(40453);t.exports=function(t){!function(t,e){var o=!1;e.event.bind(t,"mouseenter",(function(){o=!0})),e.event.bind(t,"mouseleave",(function(){o=!1}));var l=!1;e.event.bind(e.ownerDocument,"keydown",(function(s){if(!(s.isDefaultPrevented&&s.isDefaultPrevented()||s.defaultPrevented)){var c=n.matches(e.scrollbarX,":focus")||n.matches(e.scrollbarY,":focus");if(o||c){var u=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(u){if("IFRAME"===u.tagName)u=u.contentDocument.activeElement;else for(;u.shadowRoot;)u=u.shadowRoot.activeElement;if(r.isEditable(u))return}var d=0,p=0;switch(s.which){case 37:d=s.metaKey?-e.contentWidth:s.altKey?-e.containerWidth:-30;break;case 38:p=s.metaKey?e.contentHeight:s.altKey?e.containerHeight:30;break;case 39:d=s.metaKey?e.contentWidth:s.altKey?e.containerWidth:30;break;case 40:p=s.metaKey?-e.contentHeight:s.altKey?-e.containerHeight:-30;break;case 33:p=90;break;case 32:p=s.shiftKey?90:-90;break;case 34:p=-90;break;case 35:p=s.ctrlKey?-e.contentHeight:-e.containerHeight;break;case 36:p=s.ctrlKey?t.scrollTop:e.containerHeight;break;default:return}a(t,"top",t.scrollTop-p),a(t,"left",t.scrollLeft+d),i(t),l=function(o,r){var n=t.scrollTop;if(0===o){if(!e.scrollbarYActive)return!1;if(0===n&&r>0||n>=e.contentHeight-e.containerHeight&&r<0)return!e.settings.wheelPropagation}var l=t.scrollLeft;if(0===r){if(!e.scrollbarXActive)return!1;if(0===l&&o<0||l>=e.contentWidth-e.containerWidth&&o>0)return!e.settings.wheelPropagation}return!0}(d,p),l&&s.preventDefault()}}}))}(t,l.get(t))}},98302:(t,e,o)=>{var r=o(91320),n=o(55792),l=o(40453);t.exports=function(t){!function(t,e){var o=!1;function r(r){var i=function(t){var e=t.deltaX,o=-1*t.deltaY;return void 0!==e&&void 0!==o||(e=-1*t.wheelDeltaX/6,o=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,o*=10),e!=e&&o!=o&&(e=0,o=t.wheelDelta),t.shiftKey?[-o,-e]:[e,o]}(r),a=i[0],s=i[1];(function(e,o){var r=t.querySelector("textarea:hover, select[multiple]:hover, .ps-child:hover");if(r){if(r.className.match(/ps-must-propagate/))return!0;if(!window.getComputedStyle(r).overflow.match(/(scroll|auto)/))return!1;var n=r.scrollHeight-r.clientHeight;if(n>0&&!(0===r.scrollTop&&o>0||r.scrollTop===n&&o<0))return!0;var l=r.scrollLeft-r.clientWidth;if(l>0&&!(0===r.scrollLeft&&e<0||r.scrollLeft===l&&e>0))return!0}return!1})(a,s)||(o=!1,e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(l(t,"top",s?t.scrollTop-s*e.settings.wheelSpeed:t.scrollTop+a*e.settings.wheelSpeed),o=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(l(t,"left",a?t.scrollLeft+a*e.settings.wheelSpeed:t.scrollLeft-s*e.settings.wheelSpeed),o=!0):(l(t,"top",t.scrollTop-s*e.settings.wheelSpeed),l(t,"left",t.scrollLeft+a*e.settings.wheelSpeed)),n(t),o=o||function(o,r){var n=t.scrollTop;if(0===o){if(!e.scrollbarYActive)return!1;if(0===n&&r>0||n>=e.contentHeight-e.containerHeight&&r<0)return!e.settings.wheelPropagation}var l=t.scrollLeft;if(0===r){if(!e.scrollbarXActive)return!1;if(0===l&&o<0||l>=e.contentWidth-e.containerWidth&&o>0)return!e.settings.wheelPropagation}return!0}(a,s),o&&(r.stopPropagation(),r.preventDefault()))}void 0!==window.onwheel?e.event.bind(t,"wheel",r):void 0!==window.onmousewheel&&e.event.bind(t,"mousewheel",r)}(t,r.get(t))}},91308:(t,e,o)=>{var r=o(91320),n=o(55792);t.exports=function(t){!function(t,e){e.event.bind(t,"scroll",(function(){n(t)}))}(t,r.get(t))}},47573:(t,e,o)=>{var r=o(42256),n=o(91320),l=o(55792),i=o(40453);t.exports=function(t){!function(t,e){var o=null,a={top:0,left:0};function s(){o&&(clearInterval(o),o=null),r.stopScrolling(t)}var c=!1;e.event.bind(e.ownerDocument,"selectionchange",(function(){var e;t.contains(0===(e=window.getSelection?window.getSelection():document.getSelection?document.getSelection():"").toString().length?null:e.getRangeAt(0).commonAncestorContainer)?c=!0:(c=!1,s())})),e.event.bind(window,"mouseup",(function(){c&&(c=!1,s())})),e.event.bind(window,"keyup",(function(){c&&(c=!1,s())})),e.event.bind(window,"mousemove",(function(e){if(c){var u={x:e.pageX,y:e.pageY},d={left:t.offsetLeft,right:t.offsetLeft+t.offsetWidth,top:t.offsetTop,bottom:t.offsetTop+t.offsetHeight};u.x<d.left+3?(a.left=-5,r.startScrolling(t,"x")):u.x>d.right-3?(a.left=5,r.startScrolling(t,"x")):a.left=0,u.y<d.top+3?(a.top=d.top+3-u.y<5?-5:-20,r.startScrolling(t,"y")):u.y>d.bottom-3?(a.top=u.y-d.bottom+3<5?5:20,r.startScrolling(t,"y")):a.top=0,0===a.top&&0===a.left?s():o||(o=setInterval((function(){n.get(t)?(i(t,"top",t.scrollTop+a.top),i(t,"left",t.scrollLeft+a.left),l(t)):clearInterval(o)}),50))}}))}(t,n.get(t))}},4832:(t,e,o)=>{var r=o(42256),n=o(91320),l=o(55792),i=o(40453);t.exports=function(t){(r.env.supportsTouch||r.env.supportsIePointer)&&function(t,e,o,r){function a(e,o){i(t,"top",t.scrollTop-o),i(t,"left",t.scrollLeft-e),l(t)}var s={},c=0,u={},d=null,p=!1,h=!1;function f(){p=!0}function v(){p=!1}function b(t){return t.targetTouches?t.targetTouches[0]:t}function g(t){return!(!t.targetTouches||1!==t.targetTouches.length)||!(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE)}function m(t){if(g(t)){h=!0;var e=b(t);s.pageX=e.pageX,s.pageY=e.pageY,c=(new Date).getTime(),null!==d&&clearInterval(d),t.stopPropagation()}}function Y(o){if(!h&&e.settings.swipePropagation&&m(o),!p&&h&&g(o)){var r=b(o),n={pageX:r.pageX,pageY:r.pageY},l=n.pageX-s.pageX,i=n.pageY-s.pageY;a(l,i),s=n;var d=(new Date).getTime(),f=d-c;f>0&&(u.x=l/f,u.y=i/f,c=d),function(o,r){var n=t.scrollTop,l=t.scrollLeft,i=Math.abs(o),a=Math.abs(r);if(a>i){if(r<0&&n===e.contentHeight-e.containerHeight||r>0&&0===n)return!e.settings.swipePropagation}else if(i>a&&(o<0&&l===e.contentWidth-e.containerWidth||o>0&&0===l))return!e.settings.swipePropagation;return!0}(l,i)&&(o.stopPropagation(),o.preventDefault())}}function w(){!p&&h&&(h=!1,clearInterval(d),d=setInterval((function(){n.get(t)&&(u.x||u.y)?Math.abs(u.x)<.01&&Math.abs(u.y)<.01?clearInterval(d):(a(30*u.x,30*u.y),u.x*=.8,u.y*=.8):clearInterval(d)}),10))}o?(e.event.bind(window,"touchstart",f),e.event.bind(window,"touchend",v),e.event.bind(t,"touchstart",m),e.event.bind(t,"touchmove",Y),e.event.bind(t,"touchend",w)):r&&(window.PointerEvent?(e.event.bind(window,"pointerdown",f),e.event.bind(window,"pointerup",v),e.event.bind(t,"pointerdown",m),e.event.bind(t,"pointermove",Y),e.event.bind(t,"pointerup",w)):window.MSPointerEvent&&(e.event.bind(window,"MSPointerDown",f),e.event.bind(window,"MSPointerUp",v),e.event.bind(t,"MSPointerDown",m),e.event.bind(t,"MSPointerMove",Y),e.event.bind(t,"MSPointerUp",w)))}(t,n.get(t),r.env.supportsTouch,r.env.supportsIePointer)}},18904:(t,e,o)=>{var r=o(42256),n=o(97298),l=o(91320),i=o(55792),a={"click-rail":o(54640),"drag-scrollbar":o(59094),keyboard:o(54938),wheel:o(98302),touch:o(4832),selection:o(47573)},s=o(91308);t.exports=function(t,e){e="object"==typeof e?e:{},n.add(t,"ps-container");var o=l.add(t);o.settings=r.extend(o.settings,e),n.add(t,"ps-theme-"+o.settings.theme),o.settings.handlers.forEach((function(e){a[e](t)})),s(t),i(t)}},91320:(t,e,o)=>{var r=o(42256),n=o(97298),l=o(2284),i=o(7550),a=o(60348),s=o(90909),c={};function u(t){var e,o,s=this;function c(){n.add(t,"ps-focus")}function u(){n.remove(t,"ps-focus")}s.settings=r.clone(l),s.containerWidth=null,s.containerHeight=null,s.contentWidth=null,s.contentHeight=null,s.isRtl="rtl"===i.css(t,"direction"),s.isNegativeScroll=(o=t.scrollLeft,t.scrollLeft=-1,e=t.scrollLeft<0,t.scrollLeft=o,e),s.negativeScrollAdjustment=s.isNegativeScroll?t.scrollWidth-t.clientWidth:0,s.event=new a,s.ownerDocument=t.ownerDocument||document,s.scrollbarXRail=i.appendTo(i.e("div","ps-scrollbar-x-rail"),t),s.scrollbarX=i.appendTo(i.e("div","ps-scrollbar-x"),s.scrollbarXRail),s.scrollbarX.setAttribute("tabindex",0),s.event.bind(s.scrollbarX,"focus",c),s.event.bind(s.scrollbarX,"blur",u),s.scrollbarXActive=null,s.scrollbarXWidth=null,s.scrollbarXLeft=null,s.scrollbarXBottom=r.toInt(i.css(s.scrollbarXRail,"bottom")),s.isScrollbarXUsingBottom=s.scrollbarXBottom==s.scrollbarXBottom,s.scrollbarXTop=s.isScrollbarXUsingBottom?null:r.toInt(i.css(s.scrollbarXRail,"top")),s.railBorderXWidth=r.toInt(i.css(s.scrollbarXRail,"borderLeftWidth"))+r.toInt(i.css(s.scrollbarXRail,"borderRightWidth")),i.css(s.scrollbarXRail,"display","block"),s.railXMarginWidth=r.toInt(i.css(s.scrollbarXRail,"marginLeft"))+r.toInt(i.css(s.scrollbarXRail,"marginRight")),i.css(s.scrollbarXRail,"display",""),s.railXWidth=null,s.railXRatio=null,s.scrollbarYRail=i.appendTo(i.e("div","ps-scrollbar-y-rail"),t),s.scrollbarY=i.appendTo(i.e("div","ps-scrollbar-y"),s.scrollbarYRail),s.scrollbarY.setAttribute("tabindex",0),s.event.bind(s.scrollbarY,"focus",c),s.event.bind(s.scrollbarY,"blur",u),s.scrollbarYActive=null,s.scrollbarYHeight=null,s.scrollbarYTop=null,s.scrollbarYRight=r.toInt(i.css(s.scrollbarYRail,"right")),s.isScrollbarYUsingRight=s.scrollbarYRight==s.scrollbarYRight,s.scrollbarYLeft=s.isScrollbarYUsingRight?null:r.toInt(i.css(s.scrollbarYRail,"left")),s.scrollbarYOuterWidth=s.isRtl?r.outerWidth(s.scrollbarY):null,s.railBorderYWidth=r.toInt(i.css(s.scrollbarYRail,"borderTopWidth"))+r.toInt(i.css(s.scrollbarYRail,"borderBottomWidth")),i.css(s.scrollbarYRail,"display","block"),s.railYMarginHeight=r.toInt(i.css(s.scrollbarYRail,"marginTop"))+r.toInt(i.css(s.scrollbarYRail,"marginBottom")),i.css(s.scrollbarYRail,"display",""),s.railYHeight=null,s.railYRatio=null}function d(t){return t.getAttribute("data-ps-id")}e.add=function(t){var e=s();return function(t,e){t.setAttribute("data-ps-id",e)}(t,e),c[e]=new u(t),c[e]},e.remove=function(t){delete c[d(t)],function(t){t.removeAttribute("data-ps-id")}(t)},e.get=function(t){return c[d(t)]}},55792:(t,e,o)=>{var r=o(42256),n=o(97298),l=o(7550),i=o(91320),a=o(40453);function s(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}t.exports=function(t){var e,o=i.get(t);o.containerWidth=t.clientWidth,o.containerHeight=t.clientHeight,o.contentWidth=t.scrollWidth,o.contentHeight=t.scrollHeight,t.contains(o.scrollbarXRail)||((e=l.queryChildren(t,".ps-scrollbar-x-rail")).length>0&&e.forEach((function(t){l.remove(t)})),l.appendTo(o.scrollbarXRail,t)),t.contains(o.scrollbarYRail)||((e=l.queryChildren(t,".ps-scrollbar-y-rail")).length>0&&e.forEach((function(t){l.remove(t)})),l.appendTo(o.scrollbarYRail,t)),!o.settings.suppressScrollX&&o.containerWidth+o.settings.scrollXMarginOffset<o.contentWidth?(o.scrollbarXActive=!0,o.railXWidth=o.containerWidth-o.railXMarginWidth,o.railXRatio=o.containerWidth/o.railXWidth,o.scrollbarXWidth=s(o,r.toInt(o.railXWidth*o.containerWidth/o.contentWidth)),o.scrollbarXLeft=r.toInt((o.negativeScrollAdjustment+t.scrollLeft)*(o.railXWidth-o.scrollbarXWidth)/(o.contentWidth-o.containerWidth))):o.scrollbarXActive=!1,!o.settings.suppressScrollY&&o.containerHeight+o.settings.scrollYMarginOffset<o.contentHeight?(o.scrollbarYActive=!0,o.railYHeight=o.containerHeight-o.railYMarginHeight,o.railYRatio=o.containerHeight/o.railYHeight,o.scrollbarYHeight=s(o,r.toInt(o.railYHeight*o.containerHeight/o.contentHeight)),o.scrollbarYTop=r.toInt(t.scrollTop*(o.railYHeight-o.scrollbarYHeight)/(o.contentHeight-o.containerHeight))):o.scrollbarYActive=!1,o.scrollbarXLeft>=o.railXWidth-o.scrollbarXWidth&&(o.scrollbarXLeft=o.railXWidth-o.scrollbarXWidth),o.scrollbarYTop>=o.railYHeight-o.scrollbarYHeight&&(o.scrollbarYTop=o.railYHeight-o.scrollbarYHeight),function(t,e){var o={width:e.railXWidth};e.isRtl?o.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:o.left=t.scrollLeft,e.isScrollbarXUsingBottom?o.bottom=e.scrollbarXBottom-t.scrollTop:o.top=e.scrollbarXTop+t.scrollTop,l.css(e.scrollbarXRail,o);var r={top:t.scrollTop,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?r.right=e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth:r.right=e.scrollbarYRight-t.scrollLeft:e.isRtl?r.left=e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:r.left=e.scrollbarYLeft+t.scrollLeft,l.css(e.scrollbarYRail,r),l.css(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),l.css(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(t,o),o.scrollbarXActive?n.add(t,"ps-active-x"):(n.remove(t,"ps-active-x"),o.scrollbarXWidth=0,o.scrollbarXLeft=0,a(t,"left",0)),o.scrollbarYActive?n.add(t,"ps-active-y"):(n.remove(t,"ps-active-y"),o.scrollbarYHeight=0,o.scrollbarYTop=0,a(t,"top",0))}},40453:(t,e,o)=>{var r,n,l=o(91320),i=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e};t.exports=function(t,e,o){if(void 0===t)throw"You must provide an element to the update-scroll function";if(void 0===e)throw"You must provide an axis to the update-scroll function";if(void 0===o)throw"You must provide a value to the update-scroll function";"top"===e&&o<=0&&(t.scrollTop=o=0,t.dispatchEvent(i("ps-y-reach-start"))),"left"===e&&o<=0&&(t.scrollLeft=o=0,t.dispatchEvent(i("ps-x-reach-start")));var a=l.get(t);"top"===e&&o>=a.contentHeight-a.containerHeight&&((o=a.contentHeight-a.containerHeight)-t.scrollTop<=1?o=t.scrollTop:t.scrollTop=o,t.dispatchEvent(i("ps-y-reach-end"))),"left"===e&&o>=a.contentWidth-a.containerWidth&&((o=a.contentWidth-a.containerWidth)-t.scrollLeft<=1?o=t.scrollLeft:t.scrollLeft=o,t.dispatchEvent(i("ps-x-reach-end"))),r||(r=t.scrollTop),n||(n=t.scrollLeft),"top"===e&&o<r&&t.dispatchEvent(i("ps-scroll-up")),"top"===e&&o>r&&t.dispatchEvent(i("ps-scroll-down")),"left"===e&&o<n&&t.dispatchEvent(i("ps-scroll-left")),"left"===e&&o>n&&t.dispatchEvent(i("ps-scroll-right")),"top"===e&&(t.scrollTop=r=o,t.dispatchEvent(i("ps-scroll-y"))),"left"===e&&(t.scrollLeft=n=o,t.dispatchEvent(i("ps-scroll-x")))}},63827:(t,e,o)=>{var r=o(42256),n=o(7550),l=o(91320),i=o(55792),a=o(40453);t.exports=function(t){var e=l.get(t);e&&(e.negativeScrollAdjustment=e.isNegativeScroll?t.scrollWidth-t.clientWidth:0,n.css(e.scrollbarXRail,"display","block"),n.css(e.scrollbarYRail,"display","block"),e.railXMarginWidth=r.toInt(n.css(e.scrollbarXRail,"marginLeft"))+r.toInt(n.css(e.scrollbarXRail,"marginRight")),e.railYMarginHeight=r.toInt(n.css(e.scrollbarYRail,"marginTop"))+r.toInt(n.css(e.scrollbarYRail,"marginBottom")),n.css(e.scrollbarXRail,"display","none"),n.css(e.scrollbarYRail,"display","none"),i(t),a(t,"top",t.scrollTop),a(t,"left",t.scrollLeft),n.css(e.scrollbarXRail,"display",""),n.css(e.scrollbarYRail,"display",""))}}}]);