| Current Path : /var/www/html/ebookingdbkl/www/admin/angular/ |
| Current File : /var/www/html/ebookingdbkl/www/admin/angular/scripts.25d219ef4d06b639.js |
!function(L,y){"object"==typeof exports&&typeof module<"u"?module.exports=y():"function"==typeof define&&define.amd?define(y):(L=L||self).PerfectScrollbar=y()}(this,function(){"use strict";var L=Math.abs,y=Math.floor;function R(t){return getComputedStyle(t)}function Y(t,e){for(var i in e){var l=e[i];"number"==typeof l&&(l+="px"),t.style[i]=l}return t}function k(t){var e=document.createElement("div");return e.className=t,e}function H(t,e){if(!_)throw new Error("No element matching method supported");return _.call(t,e)}function S(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function B(t,e){return Array.prototype.filter.call(t.children,function(i){return H(i,e)})}function N(t,e){var i=t.element.classList,l=p.state.scrolling(e);i.contains(l)?clearTimeout(j[e]):i.add(l)}function I(t,e){j[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(p.state.scrolling(e))},t.settings.scrollingThreshold)}function D(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function C(t,e,i,l,h){var r;if(void 0===l&&(l=!0),void 0===h&&(h=!1),"top"===e)r=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");r=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function q(t,e,i,l,h){var r=i[0],s=i[1],c=i[2],n=i[3],o=i[4],g=i[5];void 0===l&&(l=!0),void 0===h&&(h=!1);var m=t.element;t.reach[n]=null,1>m[c]&&(t.reach[n]="start"),m[c]>t[r]-t[s]-1&&(t.reach[n]="end"),e&&(m.dispatchEvent(D("ps-scroll-"+n)),0>e?m.dispatchEvent(D("ps-scroll-"+o)):0<e&&m.dispatchEvent(D("ps-scroll-"+g)),l&&function z(t,e){N(t,e),I(t,e)}(t,n)),t.reach[n]&&(e||h)&&m.dispatchEvent(D("ps-"+n+"-reach-"+t.reach[n]))}(t,i,r,l,h)}function f(t){return parseInt(t,10)||0}function T(t){var e=Math.round,i=t.element,l=y(i.scrollTop),h=i.getBoundingClientRect();t.containerWidth=e(h.width),t.containerHeight=e(h.height),t.contentWidth=i.scrollWidth,t.contentHeight=i.scrollHeight,i.contains(t.scrollbarXRail)||(B(i,p.element.rail("x")).forEach(function(r){return S(r)}),i.appendChild(t.scrollbarXRail)),i.contains(t.scrollbarYRail)||(B(i,p.element.rail("y")).forEach(function(r){return S(r)}),i.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=O(t,f(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=f((t.negativeScrollAdjustment+i.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=O(t,f(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=f(l*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function $(t,e){var i={width:e.railXWidth},l=y(t.scrollTop);i.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:t.scrollLeft,e.isScrollbarXUsingBottom?i.bottom=e.scrollbarXBottom-l:i.top=e.scrollbarXTop+l,Y(e.scrollbarXRail,i);var h={top:l,height:e.railYHeight};e.isScrollbarYUsingRight?h.right=e.isRtl?e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:e.scrollbarYRight-t.scrollLeft:h.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:e.scrollbarYLeft+t.scrollLeft,Y(e.scrollbarYRail,h),Y(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),Y(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(i,t),t.scrollbarXActive?i.classList.add(p.state.active("x")):(i.classList.remove(p.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,i.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?i.classList.add(p.state.active("y")):(i.classList.remove(p.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,i.scrollTop=0)}function O(t,e){var i=Math.min,l=Math.max;return t.settings.minScrollbarLength&&(e=l(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=i(e,t.settings.maxScrollbarLength)),e}function K(t,e){function i(u){u.touches&&u.touches[0]&&(u[c]=u.touches[0].pageY),a[m]=v+d*(u[c]-w),N(t,b),T(t),u.stopPropagation(),u.type.startsWith("touch")&&1<u.changedTouches.length&&u.preventDefault()}function l(){I(t,b),t[X].classList.remove(p.state.clicking),t.event.unbind(t.ownerDocument,"mousemove",i)}function h(u,W){v=a[m],W&&u.touches&&(u[c]=u.touches[0].pageY),w=u[c],d=(t[s]-t[r])/(t[n]-t[g]),W?t.event.bind(t.ownerDocument,"touchmove",i):(t.event.bind(t.ownerDocument,"mousemove",i),t.event.once(t.ownerDocument,"mouseup",l),u.preventDefault()),t[X].classList.add(p.state.clicking),u.stopPropagation()}var r=e[0],s=e[1],c=e[2],n=e[3],o=e[4],g=e[5],m=e[6],b=e[7],X=e[8],a=t.element,v=null,w=null,d=null;t.event.bind(t[o],"mousedown",function(u){h(u)}),t.event.bind(t[o],"touchstart",function(u){h(u,!0)})}var _=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector),p={main:"ps",rtl:"ps__rtl",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},j={x:null,y:null},x=function(t){this.element=t,this.handlers={}},U={isEmpty:{configurable:!0}};x.prototype.bind=function(t,e){typeof this.handlers[t]>"u"&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},x.prototype.unbind=function(t,e){var i=this;this.handlers[t]=this.handlers[t].filter(function(l){return!(!e||l===e)||(i.element.removeEventListener(t,l,!1),!1)})},x.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},U.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return 0===t.handlers[e].length})},Object.defineProperties(x.prototype,U);var E=function(){this.eventElements=[]};E.prototype.eventElement=function(t){var e=this.eventElements.filter(function(i){return i.element===t})[0];return e||(e=new x(t),this.eventElements.push(e)),e},E.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},E.prototype.unbind=function(t,e,i){var l=this.eventElement(t);l.unbind(e,i),l.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(l),1)},E.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},E.prototype.once=function(t,e,i){var l=this.eventElement(t),h=function(r){l.unbind(e,h),i(r)};l.bind(e,h)};var A={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&0<window.navigator.maxTouchPoints||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)},Q={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(i>t.scrollbarYTop?1:-1)*t.containerHeight,T(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(i>t.scrollbarXLeft?1:-1)*t.containerWidth,T(t),e.stopPropagation()})},"drag-thumb":function(t){K(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),K(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var i=t.element;t.event.bind(t.ownerDocument,"keydown",function(r){if(!(r.isDefaultPrevented&&r.isDefaultPrevented()||r.defaultPrevented)&&(H(i,":hover")||H(t.scrollbarX,":focus")||H(t.scrollbarY,":focus"))){var s=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(s){if("IFRAME"===s.tagName)s=s.contentDocument.activeElement;else for(;s.shadowRoot;)s=s.shadowRoot.activeElement;if(function F(t){return H(t,"input,[contenteditable]")||H(t,"select,[contenteditable]")||H(t,"textarea,[contenteditable]")||H(t,"button,[contenteditable]")}(s))return}var c=0,n=0;switch(r.which){case 37:c=r.metaKey?-t.contentWidth:r.altKey?-t.containerWidth:-30;break;case 38:n=r.metaKey?t.contentHeight:r.altKey?t.containerHeight:30;break;case 39:c=r.metaKey?t.contentWidth:r.altKey?t.containerWidth:30;break;case 40:n=r.metaKey?-t.contentHeight:r.altKey?-t.containerHeight:-30;break;case 32:n=r.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:n=t.containerHeight;break;case 34:n=-t.containerHeight;break;case 36:n=t.contentHeight;break;case 35:n=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==c||t.settings.suppressScrollY&&0!==n||(i.scrollTop-=n,i.scrollLeft+=c,T(t),function e(r,s){var c=y(i.scrollTop);if(0===r){if(!t.scrollbarYActive)return!1;if(0===c&&0<s||c>=t.contentHeight-t.containerHeight&&0>s)return!t.settings.wheelPropagation}var n=i.scrollLeft;if(0===s){if(!t.scrollbarXActive)return!1;if(0===n&&0>r||n>=t.contentWidth-t.containerWidth&&0<r)return!t.settings.wheelPropagation}return!0}(c,n)&&r.preventDefault())}})},wheel:function(t){function h(s){var c=function i(s){var c=s.deltaX,n=-1*s.deltaY;return(typeof c>"u"||typeof n>"u")&&(c=-1*s.wheelDeltaX/6,n=s.wheelDeltaY/6),s.deltaMode&&1===s.deltaMode&&(c*=10,n*=10),c!=c&&n!=n&&(c=0,n=s.wheelDelta),s.shiftKey?[-n,-c]:[c,n]}(s),n=c[0],o=c[1];if(!function l(s,c,n){if(!A.isWebKit&&r.querySelector("select:focus"))return!0;if(!r.contains(s))return!1;for(var o=s;o&&o!==r;){if(o.classList.contains(p.element.consuming))return!0;var g=R(o);if(n&&g.overflowY.match(/(scroll|auto)/)){var m=o.scrollHeight-o.clientHeight;if(0<m&&(0<o.scrollTop&&0>n||o.scrollTop<m&&0<n))return!0}if(c&&g.overflowX.match(/(scroll|auto)/)){var b=o.scrollWidth-o.clientWidth;if(0<b&&(0<o.scrollLeft&&0>c||o.scrollLeft<b&&0<c))return!0}o=o.parentNode}return!1}(s.target,n,o)){var g=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(o?r.scrollTop-=o*t.settings.wheelSpeed:r.scrollTop+=n*t.settings.wheelSpeed,g=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(n?r.scrollLeft+=n*t.settings.wheelSpeed:r.scrollLeft-=o*t.settings.wheelSpeed,g=!0):(r.scrollTop-=o*t.settings.wheelSpeed,r.scrollLeft+=n*t.settings.wheelSpeed),T(t),g=g||function e(s,c){var o=y(r.scrollTop),g=0===r.scrollTop,m=o+r.offsetHeight===r.scrollHeight,b=0===r.scrollLeft,X=r.scrollLeft+r.offsetWidth===r.scrollWidth;return!(L(c)>L(s)?g||m:b||X)||!t.settings.wheelPropagation}(n,o),g&&!s.ctrlKey&&(s.stopPropagation(),s.preventDefault())}}var r=t.element;typeof window.onwheel>"u"?typeof window.onmousewheel<"u"&&t.event.bind(r,"mousewheel",h):t.event.bind(r,"wheel",h)},touch:function(t){function i(a,v){o.scrollTop-=v,o.scrollLeft-=a,T(t)}function l(a){return a.targetTouches?a.targetTouches[0]:a}function h(a){return!(a.pointerType&&"pen"===a.pointerType&&0===a.buttons||(!a.targetTouches||1!==a.targetTouches.length)&&(!a.pointerType||"mouse"===a.pointerType||a.pointerType===a.MSPOINTER_TYPE_MOUSE))}function r(a){if(h(a)){var v=l(a);g.pageX=v.pageX,g.pageY=v.pageY,m=(new Date).getTime(),null!==X&&clearInterval(X)}}function c(a){if(h(a)){var v=l(a),w={pageX:v.pageX,pageY:v.pageY},d=w.pageX-g.pageX,u=w.pageY-g.pageY;if(function s(a,v,w){if(!o.contains(a))return!1;for(var d=a;d&&d!==o;){if(d.classList.contains(p.element.consuming))return!0;var u=R(d);if(w&&u.overflowY.match(/(scroll|auto)/)){var W=d.scrollHeight-d.clientHeight;if(0<W&&(0<d.scrollTop&&0>w||d.scrollTop<W&&0<w))return!0}if(v&&u.overflowX.match(/(scroll|auto)/)){var P=d.scrollWidth-d.clientWidth;if(0<P&&(0<d.scrollLeft&&0>v||d.scrollLeft<P&&0<v))return!0}d=d.parentNode}return!1}(a.target,d,u))return;i(d,u),g=w;var W=(new Date).getTime(),P=W-m;0<P&&(b.x=d/P,b.y=u/P,m=W),function e(a,v){var w=y(o.scrollTop),d=o.scrollLeft,u=L(a),W=L(v);if(W>u){if(0>v&&w===t.contentHeight-t.containerHeight||0<v&&0===w)return 0===window.scrollY&&0<v&&A.isChrome}else if(u>W&&(0>a&&d===t.contentWidth-t.containerWidth||0<a&&0===d))return!0;return!0}(d,u)&&a.preventDefault()}}function n(){t.settings.swipeEasing&&(clearInterval(X),X=setInterval(function(){return t.isInitialized?void clearInterval(X):b.x||b.y?.01>L(b.x)&&.01>L(b.y)?void clearInterval(X):t.element?(i(30*b.x,30*b.y),b.x*=.8,void(b.y*=.8)):void clearInterval(X):void clearInterval(X)},10))}if(A.supportsTouch||A.supportsIePointer){var o=t.element,g={},m=0,b={},X=null;A.supportsTouch?(t.event.bind(o,"touchstart",r),t.event.bind(o,"touchmove",c),t.event.bind(o,"touchend",n)):A.supportsIePointer&&(window.PointerEvent?(t.event.bind(o,"pointerdown",r),t.event.bind(o,"pointermove",c),t.event.bind(o,"pointerup",n)):window.MSPointerEvent&&(t.event.bind(o,"MSPointerDown",r),t.event.bind(o,"MSPointerMove",c),t.event.bind(o,"MSPointerUp",n)))}}},M=function(t,e){var i=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var l in this.element=t,t.classList.add(p.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[l]=e[l];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var o,n,h=function(){return t.classList.add(p.state.focus)},r=function(){return t.classList.remove(p.state.focus)};this.isRtl="rtl"===R(t).direction,!0===this.isRtl&&t.classList.add(p.rtl),this.isNegativeScroll=(n=t.scrollLeft,t.scrollLeft=-1,o=0>t.scrollLeft,t.scrollLeft=n,o),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new E,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=k(p.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=k(p.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",h),this.event.bind(this.scrollbarX,"blur",r),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var s=R(this.scrollbarXRail);this.scrollbarXBottom=parseInt(s.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=f(s.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=f(s.borderLeftWidth)+f(s.borderRightWidth),Y(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=f(s.marginLeft)+f(s.marginRight),Y(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=k(p.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=k(p.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",h),this.event.bind(this.scrollbarY,"blur",r),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var c=R(this.scrollbarYRail);this.scrollbarYRight=parseInt(c.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=f(c.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function G(t){var e=R(t);return f(e.width)+f(e.paddingLeft)+f(e.paddingRight)+f(e.borderLeftWidth)+f(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=f(c.borderTopWidth)+f(c.borderBottomWidth),Y(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=f(c.marginTop)+f(c.marginBottom),Y(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:0>=t.scrollLeft?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:0>=t.scrollTop?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(n){return Q[n](i)}),this.lastScrollTop=y(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(n){return i.onScroll(n)}),T(this)};return M.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Y(this.scrollbarXRail,{display:"block"}),Y(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=f(R(this.scrollbarXRail).marginLeft)+f(R(this.scrollbarXRail).marginRight),this.railYMarginHeight=f(R(this.scrollbarYRail).marginTop)+f(R(this.scrollbarYRail).marginBottom),Y(this.scrollbarXRail,{display:"none"}),Y(this.scrollbarYRail,{display:"none"}),T(this),C(this,"top",0,!1,!0),C(this,"left",0,!1,!0),Y(this.scrollbarXRail,{display:""}),Y(this.scrollbarYRail,{display:""}))},M.prototype.onScroll=function(){this.isAlive&&(T(this),C(this,"top",this.element.scrollTop-this.lastScrollTop),C(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=y(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},M.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),S(this.scrollbarX),S(this.scrollbarY),S(this.scrollbarXRail),S(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},M.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")},M});