import{a as me,c as ke}from"./chunk-E5AMFSXI.js";import{U as pe}from"./chunk-Q232IBQN.js";import{Ba as fe,w as he,x as de}from"./chunk-E4UUPK46.js";import{Ac as re,Da as Y,Ea as q,Ib as F,Ic as T,Kc as I,Kd as ce,Lc as D,Ma as U,Mc as H,Ob as M,Oc as se,Pb as J,Pc as le,Qc as oe,Vc as $,Wa as W,Wc as V,hc as K,jc as ee,lc as te,md as ne,nd as ae,qc as ie,rc as m,sc as f,ta as Q,tc as b,wb as _,xa as L}from"./chunk-O7RN3KYY.js";import{c as P,l as ue}from"./chunk-MPPP2QUX.js";import{a as w}from"./chunk-ZE2KCNEA.js";w();w();w();var C=function(){return C=Object.assign||function(i){for(var t,e=1,s=arguments.length;e"u")return A=0,A;var r=document.body,i=document.createElement("div");i.classList.add("simplebar-hide-scrollbar"),r.appendChild(i);var t=i.getBoundingClientRect().right;r.removeChild(i),A=t}return A}var g=ge,j=Se,Ne=ye,S=xe,y=Ee,d=Oe,B=(function(){function r(i,t){t===void 0&&(t={});var e=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var s=g(e.el);e.scrollXTicking||(s.requestAnimationFrame(e.scrollX),e.scrollXTicking=!0),e.scrollYTicking||(s.requestAnimationFrame(e.scrollY),e.scrollYTicking=!0),e.isScrolling||(e.isScrolling=!0,S(e.el,e.classNames.scrolling)),e.showScrollbar("x"),e.showScrollbar("y"),e.onStopScrolling()},this.scrollX=function(){e.axis.x.isOverflowing&&e.positionScrollbar("x"),e.scrollXTicking=!1},this.scrollY=function(){e.axis.y.isOverflowing&&e.positionScrollbar("y"),e.scrollYTicking=!1},this._onStopScrolling=function(){y(e.el,e.classNames.scrolling),e.options.autoHide&&(e.hideScrollbar("x"),e.hideScrollbar("y")),e.isScrolling=!1},this.onMouseEnter=function(){e.isMouseEntering||(S(e.el,e.classNames.mouseEntered),e.showScrollbar("x"),e.showScrollbar("y"),e.isMouseEntering=!0),e.onMouseEntered()},this._onMouseEntered=function(){y(e.el,e.classNames.mouseEntered),e.options.autoHide&&(e.hideScrollbar("x"),e.hideScrollbar("y")),e.isMouseEntering=!1},this._onMouseMove=function(s){e.mouseX=s.clientX,e.mouseY=s.clientY,(e.axis.x.isOverflowing||e.axis.x.forceVisible)&&e.onMouseMoveForAxis("x"),(e.axis.y.isOverflowing||e.axis.y.forceVisible)&&e.onMouseMoveForAxis("y")},this.onMouseLeave=function(){e.onMouseMove.cancel(),(e.axis.x.isOverflowing||e.axis.x.forceVisible)&&e.onMouseLeaveForAxis("x"),(e.axis.y.isOverflowing||e.axis.y.forceVisible)&&e.onMouseLeaveForAxis("y"),e.mouseX=-1,e.mouseY=-1},this._onWindowResize=function(){e.scrollbarWidth=e.getScrollbarWidth(),e.hideNativeScrollbar()},this.onPointerEvent=function(s){if(!(!e.axis.x.track.el||!e.axis.y.track.el||!e.axis.x.scrollbar.el||!e.axis.y.scrollbar.el)){var l,o;e.axis.x.track.rect=e.axis.x.track.el.getBoundingClientRect(),e.axis.y.track.rect=e.axis.y.track.el.getBoundingClientRect(),(e.axis.x.isOverflowing||e.axis.x.forceVisible)&&(l=e.isWithinBounds(e.axis.x.track.rect)),(e.axis.y.isOverflowing||e.axis.y.forceVisible)&&(o=e.isWithinBounds(e.axis.y.track.rect)),(l||o)&&(s.stopPropagation(),s.type==="pointerdown"&&s.pointerType!=="touch"&&(l&&(e.axis.x.scrollbar.rect=e.axis.x.scrollbar.el.getBoundingClientRect(),e.isWithinBounds(e.axis.x.scrollbar.rect)?e.onDragStart(s,"x"):e.onTrackClick(s,"x")),o&&(e.axis.y.scrollbar.rect=e.axis.y.scrollbar.el.getBoundingClientRect(),e.isWithinBounds(e.axis.y.scrollbar.rect)?e.onDragStart(s,"y"):e.onTrackClick(s,"y"))))}},this.drag=function(s){var l,o,n,c,a,p,h,v,u,k,x;if(!(!e.draggedAxis||!e.contentWrapperEl)){var E,O=e.axis[e.draggedAxis].track,z=(o=(l=O.rect)===null||l===void 0?void 0:l[e.axis[e.draggedAxis].sizeAttr])!==null&&o!==void 0?o:0,Z=e.axis[e.draggedAxis].scrollbar,_e=(c=(n=e.contentWrapperEl)===null||n===void 0?void 0:n[e.axis[e.draggedAxis].scrollSizeAttr])!==null&&c!==void 0?c:0,Ae=parseInt((p=(a=e.elStyles)===null||a===void 0?void 0:a[e.axis[e.draggedAxis].sizeAttr])!==null&&p!==void 0?p:"0px",10);s.preventDefault(),s.stopPropagation(),e.draggedAxis==="y"?E=s.pageY:E=s.pageX;var N=E-((v=(h=O.rect)===null||h===void 0?void 0:h[e.axis[e.draggedAxis].offsetAttr])!==null&&v!==void 0?v:0)-e.axis[e.draggedAxis].dragOffset;N=e.draggedAxis==="x"&&e.isRtl?((k=(u=O.rect)===null||u===void 0?void 0:u[e.axis[e.draggedAxis].sizeAttr])!==null&&k!==void 0?k:0)-Z.size-N:N;var Ce=N/(z-Z.size),R=Ce*(_e-Ae);e.draggedAxis==="x"&&e.isRtl&&(R=!((x=r.getRtlHelpers())===null||x===void 0)&&x.isScrollingToNegative?-R:R),e.contentWrapperEl[e.axis[e.draggedAxis].scrollOffsetAttr]=R}},this.onEndDrag=function(s){e.isDragging=!1;var l=j(e.el),o=g(e.el);s.preventDefault(),s.stopPropagation(),y(e.el,e.classNames.dragging),e.onStopScrolling(),l.removeEventListener("mousemove",e.drag,!0),l.removeEventListener("mouseup",e.onEndDrag,!0),e.removePreventClickId=o.setTimeout(function(){l.removeEventListener("click",e.preventClick,!0),l.removeEventListener("dblclick",e.preventClick,!0),e.removePreventClickId=null})},this.preventClick=function(s){s.preventDefault(),s.stopPropagation()},this.el=i,this.options=C(C({},r.defaultOptions),t),this.classNames=C(C({},r.defaultOptions.classNames),t.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=ue(this._onMouseMove,64),this.onWindowResize=P(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=P(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=P(this._onMouseEntered,this.stopScrollDelay),this.init()}return r.getRtlHelpers=function(){if(r.rtlHelpers)return r.rtlHelpers;var i=document.createElement("div");i.innerHTML='
';var t=i.firstElementChild,e=t?.firstElementChild;if(!e)return null;document.body.appendChild(t),t.scrollLeft=0;var s=r.getOffset(t),l=r.getOffset(e);t.scrollLeft=-999;var o=r.getOffset(e);return document.body.removeChild(t),r.rtlHelpers={isScrollOriginAtZero:s.left!==l.left,isScrollingToNegative:l.left!==o.left},r.rtlHelpers},r.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:be()}catch(i){return be()}},r.getOffset=function(i){var t=i.getBoundingClientRect(),e=j(i),s=g(i);return{top:t.top+(s.pageYOffset||e.documentElement.scrollTop),left:t.left+(s.pageXOffset||e.documentElement.scrollLeft)}},r.prototype.init=function(){G&&(this.initDOM(),this.rtlHelpers=r.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},r.prototype.initDOM=function(){var i,t;this.wrapperEl=this.el.querySelector(d(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(d(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(d(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(d(this.classNames.offset)),this.maskEl=this.el.querySelector(d(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,d(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(d(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(d(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(d(this.classNames.track)).concat(d(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(d(this.classNames.track)).concat(d(this.classNames.vertical))),this.axis.x.scrollbar.el=((i=this.axis.x.track.el)===null||i===void 0?void 0:i.querySelector(d(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((t=this.axis.y.track.el)===null||t===void 0?void 0:t.querySelector(d(this.classNames.scrollbar)))||null,this.options.autoHide||(S(this.axis.x.scrollbar.el,this.classNames.visible),S(this.axis.y.scrollbar.el,this.classNames.visible))},r.prototype.initListeners=function(){var i=this,t,e=g(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(t=this.contentWrapperEl)===null||t===void 0||t.addEventListener("scroll",this.onScroll),e.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var s=!1,l=e.ResizeObserver||ResizeObserver;this.resizeObserver=new l(function(){s&&e.requestAnimationFrame(function(){i.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),e.requestAnimationFrame(function(){s=!0})}this.mutationObserver=new e.MutationObserver(function(){e.requestAnimationFrame(function(){i.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},r.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var i=g(this.el);this.elStyles=i.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var t=this.contentEl.offsetWidth,e=this.heightAutoObserverEl.offsetHeight<=1,s=this.heightAutoObserverEl.offsetWidth<=1||t>0,l=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,n=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var c=this.contentEl.scrollHeight,a=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=e?"auto":"100%",this.placeholderEl.style.width=s?"".concat(t||a,"px"):"auto",this.placeholderEl.style.height="".concat(c,"px");var p=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=t!==0&&a>t,this.axis.y.isOverflowing=c>p,this.axis.x.isOverflowing=o==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=n==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var h=this.axis.x.isOverflowing?this.scrollbarWidth:0,v=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&a>l-v,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&c>p-h,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},r.prototype.getScrollbarSize=function(i){var t,e;if(i===void 0&&(i="y"),!this.axis[i].isOverflowing||!this.contentEl)return 0;var s=this.contentEl[this.axis[i].scrollSizeAttr],l=(e=(t=this.axis[i].track.el)===null||t===void 0?void 0:t[this.axis[i].offsetSizeAttr])!==null&&e!==void 0?e:0,o=l/s,n;return n=Math.max(~~(o*l),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(n=Math.min(n,this.options.scrollbarMaxSize)),n},r.prototype.positionScrollbar=function(i){var t,e,s;i===void 0&&(i="y");var l=this.axis[i].scrollbar;if(!(!this.axis[i].isOverflowing||!this.contentWrapperEl||!l.el||!this.elStyles)){var o=this.contentWrapperEl[this.axis[i].scrollSizeAttr],n=((t=this.axis[i].track.el)===null||t===void 0?void 0:t[this.axis[i].offsetSizeAttr])||0,c=parseInt(this.elStyles[this.axis[i].sizeAttr],10),a=this.contentWrapperEl[this.axis[i].scrollOffsetAttr];a=i==="x"&&this.isRtl&&(!((e=r.getRtlHelpers())===null||e===void 0)&&e.isScrollOriginAtZero)?-a:a,i==="x"&&this.isRtl&&(a=!((s=r.getRtlHelpers())===null||s===void 0)&&s.isScrollingToNegative?a:-a);var p=a/(o-c),h=~~((n-l.size)*p);h=i==="x"&&this.isRtl?-h+(n-l.size):h,l.el.style.transform=i==="x"?"translate3d(".concat(h,"px, 0, 0)"):"translate3d(0, ".concat(h,"px, 0)")}},r.prototype.toggleTrackVisibility=function(i){i===void 0&&(i="y");var t=this.axis[i].track.el,e=this.axis[i].scrollbar.el;!t||!e||!this.contentWrapperEl||(this.axis[i].isOverflowing||this.axis[i].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[i].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(i))):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[i].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(i))),this.axis[i].isOverflowing?e.style.display="block":e.style.display="none")},r.prototype.showScrollbar=function(i){i===void 0&&(i="y"),this.axis[i].isOverflowing&&!this.axis[i].scrollbar.isVisible&&(S(this.axis[i].scrollbar.el,this.classNames.visible),this.axis[i].scrollbar.isVisible=!0)},r.prototype.hideScrollbar=function(i){i===void 0&&(i="y"),!this.isDragging&&this.axis[i].isOverflowing&&this.axis[i].scrollbar.isVisible&&(y(this.axis[i].scrollbar.el,this.classNames.visible),this.axis[i].scrollbar.isVisible=!1)},r.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},r.prototype.onMouseMoveForAxis=function(i){i===void 0&&(i="y");var t=this.axis[i];!t.track.el||!t.scrollbar.el||(t.track.rect=t.track.el.getBoundingClientRect(),t.scrollbar.rect=t.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(t.track.rect)?(this.showScrollbar(i),S(t.track.el,this.classNames.hover),this.isWithinBounds(t.scrollbar.rect)?S(t.scrollbar.el,this.classNames.hover):y(t.scrollbar.el,this.classNames.hover)):(y(t.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)))},r.prototype.onMouseLeaveForAxis=function(i){i===void 0&&(i="y"),y(this.axis[i].track.el,this.classNames.hover),y(this.axis[i].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)},r.prototype.onDragStart=function(i,t){var e;t===void 0&&(t="y"),this.isDragging=!0;var s=j(this.el),l=g(this.el),o=this.axis[t].scrollbar,n=t==="y"?i.pageY:i.pageX;this.axis[t].dragOffset=n-(((e=o.rect)===null||e===void 0?void 0:e[this.axis[t].offsetAttr])||0),this.draggedAxis=t,S(this.el,this.classNames.dragging),s.addEventListener("mousemove",this.drag,!0),s.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(s.addEventListener("click",this.preventClick,!0),s.addEventListener("dblclick",this.preventClick,!0)):(l.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},r.prototype.onTrackClick=function(i,t){var e=this,s,l,o,n;t===void 0&&(t="y");var c=this.axis[t];if(!(!this.options.clickOnTrack||!c.scrollbar.el||!this.contentWrapperEl)){i.preventDefault();var a=g(this.el);this.axis[t].scrollbar.rect=c.scrollbar.el.getBoundingClientRect();var p=this.axis[t].scrollbar,h=(l=(s=p.rect)===null||s===void 0?void 0:s[this.axis[t].offsetAttr])!==null&&l!==void 0?l:0,v=parseInt((n=(o=this.elStyles)===null||o===void 0?void 0:o[this.axis[t].sizeAttr])!==null&&n!==void 0?n:"0px",10),u=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],k=t==="y"?this.mouseY-h:this.mouseX-h,x=k<0?-1:1,E=x===-1?u-v:u+v,O=40,z=function(){e.contentWrapperEl&&(x===-1?u>E&&(u-=O,e.contentWrapperEl[e.axis[t].scrollOffsetAttr]=u,a.requestAnimationFrame(z)):u=i.left&&this.mouseX<=i.left+i.width&&this.mouseY>=i.top&&this.mouseY<=i.top+i.height},r.prototype.findChild=function(i,t){var e=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector;return Array.prototype.filter.call(i.children,function(s){return e.call(s,t)})[0]},r.rtlHelpers=null,r.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},r.getOptions=Ne,r.helpers=ze,r})();var Le=["*"],X=(()=>{class r{constructor(t,e){this.zone=e,this.options={},this.elRef=t}ngOnInit(){this.ariaLabel=this.options.ariaLabel||B.defaultOptions.ariaLabel,this.tabIndex=(this.options.tabIndex||B.defaultOptions.tabIndex).toString()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{this.SimpleBar=new B(this.elRef.nativeElement,this.options||{})})}ngOnDestroy(){this.SimpleBar?.unMount(),this.SimpleBar=null}static{this.\u0275fac=function(e){return new(e||r)(F(W),F(U))}}static{this.\u0275cmp=M({type:r,selectors:[["ngx-simplebar"]],hostAttrs:["data-simplebar","init"],inputs:{options:"options"},standalone:!1,ngContentSelectors:Le,decls:13,vars:2,consts:[[1,"simplebar-wrapper"],[1,"simplebar-height-auto-observer-wrapper"],[1,"simplebar-height-auto-observer"],[1,"simplebar-mask"],[1,"simplebar-offset"],["role","region",1,"simplebar-content-wrapper"],[1,"simplebar-content"],[1,"simplebar-placeholder"],[1,"simplebar-track","simplebar-horizontal"],[1,"simplebar-scrollbar"],[1,"simplebar-track","simplebar-vertical"]],template:function(e,s){e&1&&(D(),m(0,"div",0)(1,"div",1),b(2,"div",2),f(),m(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6),H(7),f()()()(),b(8,"div",7),f(),m(9,"div",8),b(10,"div",9),f(),m(11,"div",10),b(12,"div",9),f()),e&2&&(_(5),K("tabIndex",s.tabIndex)("aria-label",s.ariaLabel))},styles:[`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;inset:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;inset:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:before,.simplebar-content:after{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{inset:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{inset:0 auto 0 0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none} `,`ngx-simplebar{display:block} `],encapsulation:2})}}return r})(),we=(()=>{class r{static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275mod=J({type:r})}static{this.\u0275inj=Q({})}}return r})();ke();var Me=["*"],Te=r=>({ariaLabel:r}),Ie=()=>({});function De(r,i){if(r&1){let t=re();m(0,"button",2),T("click",function(){Y(t);let s=I();return q(s.scroll("left"))}),b(1,"icon",3),f(),m(2,"button",4),T("click",function(){Y(t);let s=I();return q(s.scroll("right"))}),b(3,"icon",5),f()}if(r&2){let t=I();$("left",t.buttonOffsetX,"px")("top",`calc(50% - ${t.buttonRadius*2-t.buttonOffsetTop}px)`)("width",t.buttonRadius*2,"px")("height",t.buttonRadius*2,"px"),V("inverted",t.buttonInverted)("opacity-1",t.canScrollLeft)("pointer-events-none",!t.canScrollLeft)("hidden-touch",t.showButtonsOn==="desktop"),_(2),$("right",t.buttonOffsetX,"px")("top",`calc(50% - ${t.buttonRadius*2-t.buttonOffsetTop}px)`)("width",t.buttonRadius*2,"px")("height",t.buttonRadius*2,"px"),V("inverted",t.buttonInverted)("opacity-1",t.canScrollRight)("pointer-events-none",!t.canScrollRight)("hidden-touch",t.showButtonsOn==="desktop")}}var it=(()=>{class r{constructor(){this.host=L(W),this.cdr=L(ce),this.configService=L(pe),this.buttonRadius=16,this.buttonOffsetX=16,this.buttonOffsetTop=this.buttonRadius,this.buttonInverted=!1,this.showButtonsOn="both",this.canScrollLeft=!1,this.canScrollRight=!1,this._scrollAmount=null}ngAfterViewInit(){this.scrollHandler=()=>{this.updateScrollState()},setTimeout(()=>{this.setupResizeObserver();let t=this.getScrollElement();if(t&&t.addEventListener("scroll",this.scrollHandler),!this.ariaLabel){let e=this.host.nativeElement.querySelector('[role="region"]');e&&(e.removeAttribute("role"),e.removeAttribute("aria-label"))}}),setTimeout(()=>{this.updateScrollState()},500)}ngOnDestroy(){this.resizeObserver?.disconnect();let t=this.getScrollElement();t&&t.removeEventListener("scroll",this.scrollHandler)}get isButtonsVisible(){return this.showButtonsOn==="both"||this.showButtonsOn==="desktop"&&this.configService.isNonTouchDevice}setupResizeObserver(){this.resizeObserver=new me(()=>{this.updateScrollState()}),this.resizeObserver.observe(this.host.nativeElement)}get scrollAmount(){if(!this._scrollAmount&&this.carouselItemSelector){let t=this.getScrollElement()?.querySelector(this.carouselItemSelector);t&&(this._scrollAmount=t.clientWidth+parseInt(getComputedStyle(t).marginRight))}return this._scrollAmount}updateScrollState(){let t=this.getScrollElement();t&&(this.canScrollLeft=t.scrollLeft>0,this.canScrollRight=Math.ceil(t.scrollLeft){let t;t=$localize`Scroll left`;let e;return e=$localize`Scroll right`,[[1,"fade-out"],[3,"cdkObserveContent","options"],["type","button","tabindex","-1","aria-label",t,1,"scroll-left","btn","md","floating","circle","pos-abs","opacity-0","transition-base","hidden-is-tabbing",3,"click"],["name","internal-chevron-left-ios",1,"size-24"],["type","button","tabindex","-1","aria-label",e,1,"scroll-right","btn","md","floating","circle","pos-abs","opacity-0","transition-base","hidden-is-tabbing",3,"click"],["name","internal-chevron-right-ios",1,"size-24"]]},template:function(e,s){e&1&&(D(),m(0,"div",0)(1,"ngx-simplebar",1),T("cdkObserveContent",function(){return s.updateScrollState()}),H(2),f()(),ee(3,De,4,32)),e&2&&(V("fade-left",s.canScrollLeft)("fade-right",s.canScrollRight)("hide-scrollbar",s.isButtonsVisible),_(),ie("options",s.ariaLabel?ae(8,Te,s.ariaLabel):ne(10,Ie)),_(2),te(s.showButtonsOn!=="none"?3:-1))},dependencies:[we,X,de,he,fe],styles:[`horizontal-scrolling-container .hide-scrollbar ngx-simplebar .simplebar-track{opacity:0}horizontal-scrolling-container .hide-scrollbar ngx-simplebar ngx-simplebar .simplebar-track{opacity:revert} `],encapsulation:2,changeDetection:0})}}return r})();export{X as a,we as b,it as c};