@storybook/components 7.0.0-alpha.1 → 7.0.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{c as o,i as r}from"./chunk-YLDU3KBJ.mjs";r();import i from"react";import{Global as e,keyframes as s}from"@storybook/theming";var l=s`0%{z-index:0}to{z-index:-1}`,n=o(t=>({"html.os-html, html.os-html>.os-host":{display:"block",overflow:"hidden",boxSizing:"border-box",height:"100%!important",width:"100%!important",minWidth:"100%!important",minHeight:"100%!important",margin:"0!important",position:"absolute!important"},"html.os-html>.os-host>.os-padding":{position:"absolute"},"body.os-dragging, body.os-dragging *":{cursor:"default"},".os-host, .os-host-textarea":{position:"relative",overflow:"visible!important",flexDirection:"column",flexWrap:"nowrap",justifyContent:"flex-start",alignContent:"flex-start",alignItems:"flex-start"},".os-host-flexbox":{overflow:"hidden!important",display:"flex"},".os-host-flexbox>.os-size-auto-observer":{height:"inherit!important"},".os-host-flexbox>.os-content-glue":{flexGrow:1,flexShrink:0},".os-host-flexbox>.os-size-auto-observer, .os-host-flexbox>.os-content-glue":{minHeight:0,minWidth:0,flexGrow:0,flexShrink:1,flexBasis:"auto"},"#os-dummy-scrollbar-size":{position:"fixed",opacity:0,visibility:"hidden",overflow:"scroll",height:500,width:500},"#os-dummy-scrollbar-size>div":{width:"200%",height:"200%",margin:10},"#os-dummy-scrollbar-size, .os-viewport":{},".os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size, .os-viewport-native-scrollbars-invisible.os-viewport":{scrollbarWidth:"none!important"},".os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size::-webkit-scrollbar, .os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar, .os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size::-webkit-scrollbar-corner, .os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar-corner":{display:"none!important",width:"0!important",height:"0!important",visibility:"hidden!important",background:"0 0!important"},".os-content-glue":{boxSizing:"inherit",maxHeight:"100%",maxWidth:"100%",width:"100%",pointerEvents:"none"},".os-padding":{boxSizing:"inherit",direction:"inherit",position:"absolute",overflow:"visible",padding:0,margin:0,left:0,top:0,bottom:0,right:0,width:"auto!important",height:"auto!important",zIndex:1},".os-host-overflow>.os-padding":{overflow:"hidden"},".os-viewport":{direction:"inherit!important",boxSizing:"inherit!important",resize:"none!important",outline:"0!important",position:"absolute",overflow:"hidden",top:0,left:0,bottom:0,right:0,padding:0,margin:0},".os-content-arrange":{position:"absolute",zIndex:-1,minHeight:1,minWidth:1,pointerEvents:"none"},".os-content":{direction:"inherit",boxSizing:"border-box!important",position:"relative",display:"block",height:"100%",width:"100%",visibility:"visible"},".os-content:before, .os-content:after":{content:"''",display:"table",width:0,height:0,lineHeight:0,fontSize:0},".os-content>.os-textarea":{boxSizing:"border-box!important",direction:"inherit!important",background:"0 0!important",outline:"0 transparent!important",overflow:"hidden!important",position:"absolute!important",display:"block!important",top:"0!important",left:"0!important",margin:"0!important",borderRadius:"0!important",float:"none!important",filter:"none!important",border:"0!important",resize:"none!important",transform:"none!important",maxWidth:"none!important",maxHeight:"none!important",boxShadow:"none!important",perspective:"none!important",opacity:"1!important",zIndex:"1!important",clip:"auto!important",verticalAlign:"baseline!important",padding:0},".os-host-rtl>.os-padding>.os-viewport>.os-content>.os-textarea":{right:"0!important"},".os-content>.os-textarea-cover":{zIndex:-1,pointerEvents:"none"},".os-content>.os-textarea[wrap=off]":{whiteSpace:"pre!important",margin:"0!important"},".os-text-inherit":{fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",fontStyle:"inherit",fontVariant:"inherit",textTransform:"inherit",textDecoration:"inherit",textIndent:"inherit",textAlign:"inherit",textShadow:"inherit",textOverflow:"inherit",letterSpacing:"inherit",wordSpacing:"inherit",lineHeight:"inherit",unicodeBidi:"inherit",direction:"inherit",color:"inherit",cursor:"text"},".os-resize-observer, .os-resize-observer-host":{boxSizing:"inherit",display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},".os-resize-observer-host":{padding:"inherit",border:"inherit",borderColor:"transparent",borderStyle:"solid",boxSizing:"border-box"},".os-resize-observer-host:after":{content:"''"},".os-resize-observer-host>.os-resize-observer, .os-resize-observer-host:after":{height:"200%",width:"200%",padding:"inherit",border:"inherit",margin:0,display:"block",boxSizing:"content-box"},".os-resize-observer.observed, object.os-resize-observer":{boxSizing:"border-box!important"},".os-size-auto-observer":{boxSizing:"inherit!important",height:"100%",width:"inherit",maxWidth:1,position:"relative",float:"left",maxHeight:1,overflow:"hidden",zIndex:-1,padding:0,margin:0,pointerEvents:"none",flexGrow:"inherit",flexShrink:0,flexBasis:0},".os-size-auto-observer>.os-resize-observer":{width:"1000%",height:"1000%",minHeight:1,minWidth:1},".os-resize-observer-item":{position:"absolute",top:0,right:0,bottom:0,left:0,overflow:"hidden",zIndex:-1,opacity:0,direction:"ltr!important",flex:"none!important"},".os-resize-observer-item-final":{position:"absolute",left:0,top:0,transition:"none!important",flex:"none!important"},".os-resize-observer":{animationDuration:".001s",animationName:`${l}`},".os-host-transition>.os-scrollbar, .os-host-transition>.os-scrollbar-corner":{transition:"opacity .3s,visibility .3s,top .3s,right .3s,bottom .3s,left .3s"},"html.os-html>.os-host>.os-scrollbar":{position:"absolute",zIndex:999999},".os-scrollbar, .os-scrollbar-corner":{position:"absolute",opacity:1,zIndex:1},".os-scrollbar-corner":{bottom:0,right:0,height:10,width:10,backgroundColor:"transparent"},".os-scrollbar":{pointerEvents:"none",padding:2,boxSizing:"border-box",background:0},".os-scrollbar-track":{pointerEvents:"auto",position:"relative",height:"100%",width:"100%",padding:"0!important",border:"0!important"},".os-scrollbar-handle":{pointerEvents:"auto",position:"absolute",width:"100%",height:"100%"},".os-scrollbar-handle-off, .os-scrollbar-track-off":{pointerEvents:"none"},".os-scrollbar.os-scrollbar-unusable, .os-scrollbar.os-scrollbar-unusable *":{pointerEvents:"none!important"},".os-scrollbar.os-scrollbar-unusable .os-scrollbar-handle":{opacity:"0!important"},".os-scrollbar-horizontal":{bottom:0,left:0,right:10,height:10},".os-scrollbar-vertical":{top:0,right:0,bottom:10,width:10},".os-host-rtl>.os-scrollbar-horizontal":{right:0},".os-host-rtl>.os-scrollbar-vertical":{right:"auto",left:0},".os-host-rtl>.os-scrollbar-corner":{right:"auto",left:0},".os-scrollbar-auto-hidden, .os-padding+.os-scrollbar-corner, .os-host-resize-disabled.os-host-scrollbar-horizontal-hidden>.os-scrollbar-corner, .os-host-scrollbar-horizontal-hidden>.os-scrollbar-horizontal, .os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-corner, .os-host-scrollbar-vertical-hidden>.os-scrollbar-vertical, .os-scrollbar-horizontal.os-scrollbar-auto-hidden+.os-scrollbar-vertical+.os-scrollbar-corner, .os-scrollbar-horizontal+.os-scrollbar-vertical.os-scrollbar-auto-hidden+.os-scrollbar-corner, .os-scrollbar-horizontal.os-scrollbar-auto-hidden+.os-scrollbar-vertical.os-scrollbar-auto-hidden+.os-scrollbar-corner":{opacity:0,visibility:"hidden",pointerEvents:"none"},".os-scrollbar-corner-resize-both":{cursor:"nwse-resize"},".os-host-rtl>.os-scrollbar-corner-resize-both":{cursor:"nesw-resize"},".os-scrollbar-corner-resize-horizontal":{cursor:"ew-resize"},".os-scrollbar-corner-resize-vertical":{cursor:"ns-resize"},".os-dragging .os-scrollbar-corner.os-scrollbar-corner-resize":{cursor:"default"},".os-host-resize-disabled.os-host-scrollbar-horizontal-hidden>.os-scrollbar-vertical":{top:0,bottom:0},".os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-horizontal, .os-host-rtl.os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-horizontal":{right:0,left:0},".os-scrollbar:hover, .os-scrollbar-corner.os-scrollbar-corner-resize":{opacity:"1!important",visibility:"visible!important"},".os-scrollbar-corner.os-scrollbar-corner-resize":{backgroundImage:"linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.4) 100%)",backgroundRepeat:"no-repeat",backgroundPosition:"100% 100%",pointerEvents:"auto!important"},".os-host-rtl>.os-scrollbar-corner.os-scrollbar-corner-resize":{transform:"scale(-1,1)"},".os-host-overflow":{overflow:"hidden!important"},".os-theme-dark.os-host-rtl>.os-scrollbar-horizontal":{left:10,right:0},".os-scrollbar.os-scrollbar-unusable":{background:0},".os-scrollbar>.os-scrollbar-track":{background:0},".os-scrollbar-horizontal>.os-scrollbar-track>.os-scrollbar-handle":{minWidth:30},".os-scrollbar-vertical>.os-scrollbar-track>.os-scrollbar-handle":{minHeight:30},".os-theme-dark.os-host-transition>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle":{transition:"background-color .3s"},".os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle, .os-scrollbar>.os-scrollbar-track":{borderRadius:10},".os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle":{background:t.color.mediumdark,opacity:.5},".os-scrollbar:hover>.os-scrollbar-track>.os-scrollbar-handle":{opacity:.6},".os-scrollbar-horizontal .os-scrollbar-handle:before, .os-scrollbar-vertical .os-scrollbar-handle:before":{content:"''",position:"absolute",left:0,right:0,top:0,bottom:0,display:"block"},".os-theme-dark.os-host-scrollbar-horizontal-hidden>.os-scrollbar-horizontal .os-scrollbar-handle:before, .os-theme-dark.os-host-scrollbar-vertical-hidden>.os-scrollbar-vertical .os-scrollbar-handle:before":{display:"none"},".os-scrollbar-horizontal .os-scrollbar-handle:before":{top:-6,bottom:-2},".os-scrollbar-vertical .os-scrollbar-handle:before":{left:-6,right:-2},".os-host-rtl.os-scrollbar-vertical .os-scrollbar-handle:before":{right:-6,left:-2}}),"getScrollAreaStyles"),a=o(()=>i.createElement(e,{styles:n}),"GlobalScrollAreaStyles"),p=a;export{p as default,n as getScrollAreaStyles};
1
+ import{c as o,h as r}from"./chunk-PJYBQ6PQ.mjs";r();import i from"react";import{Global as e,keyframes as s}from"@storybook/theming";var l=s`0%{z-index:0}to{z-index:-1}`,n=o(t=>({"html.os-html, html.os-html>.os-host":{display:"block",overflow:"hidden",boxSizing:"border-box",height:"100%!important",width:"100%!important",minWidth:"100%!important",minHeight:"100%!important",margin:"0!important",position:"absolute!important"},"html.os-html>.os-host>.os-padding":{position:"absolute"},"body.os-dragging, body.os-dragging *":{cursor:"default"},".os-host, .os-host-textarea":{position:"relative",overflow:"visible!important",flexDirection:"column",flexWrap:"nowrap",justifyContent:"flex-start",alignContent:"flex-start",alignItems:"flex-start"},".os-host-flexbox":{overflow:"hidden!important",display:"flex"},".os-host-flexbox>.os-size-auto-observer":{height:"inherit!important"},".os-host-flexbox>.os-content-glue":{flexGrow:1,flexShrink:0},".os-host-flexbox>.os-size-auto-observer, .os-host-flexbox>.os-content-glue":{minHeight:0,minWidth:0,flexGrow:0,flexShrink:1,flexBasis:"auto"},"#os-dummy-scrollbar-size":{position:"fixed",opacity:0,visibility:"hidden",overflow:"scroll",height:500,width:500},"#os-dummy-scrollbar-size>div":{width:"200%",height:"200%",margin:10},"#os-dummy-scrollbar-size, .os-viewport":{},".os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size, .os-viewport-native-scrollbars-invisible.os-viewport":{scrollbarWidth:"none!important"},".os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size::-webkit-scrollbar, .os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar, .os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size::-webkit-scrollbar-corner, .os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar-corner":{display:"none!important",width:"0!important",height:"0!important",visibility:"hidden!important",background:"0 0!important"},".os-content-glue":{boxSizing:"inherit",maxHeight:"100%",maxWidth:"100%",width:"100%",pointerEvents:"none"},".os-padding":{boxSizing:"inherit",direction:"inherit",position:"absolute",overflow:"visible",padding:0,margin:0,left:0,top:0,bottom:0,right:0,width:"auto!important",height:"auto!important",zIndex:1},".os-host-overflow>.os-padding":{overflow:"hidden"},".os-viewport":{direction:"inherit!important",boxSizing:"inherit!important",resize:"none!important",outline:"0!important",position:"absolute",overflow:"hidden",top:0,left:0,bottom:0,right:0,padding:0,margin:0},".os-content-arrange":{position:"absolute",zIndex:-1,minHeight:1,minWidth:1,pointerEvents:"none"},".os-content":{direction:"inherit",boxSizing:"border-box!important",position:"relative",display:"block",height:"100%",width:"100%",visibility:"visible"},".os-content:before, .os-content:after":{content:"''",display:"table",width:0,height:0,lineHeight:0,fontSize:0},".os-content>.os-textarea":{boxSizing:"border-box!important",direction:"inherit!important",background:"0 0!important",outline:"0 transparent!important",overflow:"hidden!important",position:"absolute!important",display:"block!important",top:"0!important",left:"0!important",margin:"0!important",borderRadius:"0!important",float:"none!important",filter:"none!important",border:"0!important",resize:"none!important",transform:"none!important",maxWidth:"none!important",maxHeight:"none!important",boxShadow:"none!important",perspective:"none!important",opacity:"1!important",zIndex:"1!important",clip:"auto!important",verticalAlign:"baseline!important",padding:0},".os-host-rtl>.os-padding>.os-viewport>.os-content>.os-textarea":{right:"0!important"},".os-content>.os-textarea-cover":{zIndex:-1,pointerEvents:"none"},".os-content>.os-textarea[wrap=off]":{whiteSpace:"pre!important",margin:"0!important"},".os-text-inherit":{fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",fontStyle:"inherit",fontVariant:"inherit",textTransform:"inherit",textDecoration:"inherit",textIndent:"inherit",textAlign:"inherit",textShadow:"inherit",textOverflow:"inherit",letterSpacing:"inherit",wordSpacing:"inherit",lineHeight:"inherit",unicodeBidi:"inherit",direction:"inherit",color:"inherit",cursor:"text"},".os-resize-observer, .os-resize-observer-host":{boxSizing:"inherit",display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},".os-resize-observer-host":{padding:"inherit",border:"inherit",borderColor:"transparent",borderStyle:"solid",boxSizing:"border-box"},".os-resize-observer-host:after":{content:"''"},".os-resize-observer-host>.os-resize-observer, .os-resize-observer-host:after":{height:"200%",width:"200%",padding:"inherit",border:"inherit",margin:0,display:"block",boxSizing:"content-box"},".os-resize-observer.observed, object.os-resize-observer":{boxSizing:"border-box!important"},".os-size-auto-observer":{boxSizing:"inherit!important",height:"100%",width:"inherit",maxWidth:1,position:"relative",float:"left",maxHeight:1,overflow:"hidden",zIndex:-1,padding:0,margin:0,pointerEvents:"none",flexGrow:"inherit",flexShrink:0,flexBasis:0},".os-size-auto-observer>.os-resize-observer":{width:"1000%",height:"1000%",minHeight:1,minWidth:1},".os-resize-observer-item":{position:"absolute",top:0,right:0,bottom:0,left:0,overflow:"hidden",zIndex:-1,opacity:0,direction:"ltr!important",flex:"none!important"},".os-resize-observer-item-final":{position:"absolute",left:0,top:0,transition:"none!important",flex:"none!important"},".os-resize-observer":{animationDuration:".001s",animationName:`${l}`},".os-host-transition>.os-scrollbar, .os-host-transition>.os-scrollbar-corner":{transition:"opacity .3s,visibility .3s,top .3s,right .3s,bottom .3s,left .3s"},"html.os-html>.os-host>.os-scrollbar":{position:"absolute",zIndex:999999},".os-scrollbar, .os-scrollbar-corner":{position:"absolute",opacity:1,zIndex:1},".os-scrollbar-corner":{bottom:0,right:0,height:10,width:10,backgroundColor:"transparent"},".os-scrollbar":{pointerEvents:"none",padding:2,boxSizing:"border-box",background:0},".os-scrollbar-track":{pointerEvents:"auto",position:"relative",height:"100%",width:"100%",padding:"0!important",border:"0!important"},".os-scrollbar-handle":{pointerEvents:"auto",position:"absolute",width:"100%",height:"100%"},".os-scrollbar-handle-off, .os-scrollbar-track-off":{pointerEvents:"none"},".os-scrollbar.os-scrollbar-unusable, .os-scrollbar.os-scrollbar-unusable *":{pointerEvents:"none!important"},".os-scrollbar.os-scrollbar-unusable .os-scrollbar-handle":{opacity:"0!important"},".os-scrollbar-horizontal":{bottom:0,left:0,right:10,height:10},".os-scrollbar-vertical":{top:0,right:0,bottom:10,width:10},".os-host-rtl>.os-scrollbar-horizontal":{right:0},".os-host-rtl>.os-scrollbar-vertical":{right:"auto",left:0},".os-host-rtl>.os-scrollbar-corner":{right:"auto",left:0},".os-scrollbar-auto-hidden, .os-padding+.os-scrollbar-corner, .os-host-resize-disabled.os-host-scrollbar-horizontal-hidden>.os-scrollbar-corner, .os-host-scrollbar-horizontal-hidden>.os-scrollbar-horizontal, .os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-corner, .os-host-scrollbar-vertical-hidden>.os-scrollbar-vertical, .os-scrollbar-horizontal.os-scrollbar-auto-hidden+.os-scrollbar-vertical+.os-scrollbar-corner, .os-scrollbar-horizontal+.os-scrollbar-vertical.os-scrollbar-auto-hidden+.os-scrollbar-corner, .os-scrollbar-horizontal.os-scrollbar-auto-hidden+.os-scrollbar-vertical.os-scrollbar-auto-hidden+.os-scrollbar-corner":{opacity:0,visibility:"hidden",pointerEvents:"none"},".os-scrollbar-corner-resize-both":{cursor:"nwse-resize"},".os-host-rtl>.os-scrollbar-corner-resize-both":{cursor:"nesw-resize"},".os-scrollbar-corner-resize-horizontal":{cursor:"ew-resize"},".os-scrollbar-corner-resize-vertical":{cursor:"ns-resize"},".os-dragging .os-scrollbar-corner.os-scrollbar-corner-resize":{cursor:"default"},".os-host-resize-disabled.os-host-scrollbar-horizontal-hidden>.os-scrollbar-vertical":{top:0,bottom:0},".os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-horizontal, .os-host-rtl.os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-horizontal":{right:0,left:0},".os-scrollbar:hover, .os-scrollbar-corner.os-scrollbar-corner-resize":{opacity:"1!important",visibility:"visible!important"},".os-scrollbar-corner.os-scrollbar-corner-resize":{backgroundImage:"linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.4) 100%)",backgroundRepeat:"no-repeat",backgroundPosition:"100% 100%",pointerEvents:"auto!important"},".os-host-rtl>.os-scrollbar-corner.os-scrollbar-corner-resize":{transform:"scale(-1,1)"},".os-host-overflow":{overflow:"hidden!important"},".os-theme-dark.os-host-rtl>.os-scrollbar-horizontal":{left:10,right:0},".os-scrollbar.os-scrollbar-unusable":{background:0},".os-scrollbar>.os-scrollbar-track":{background:0},".os-scrollbar-horizontal>.os-scrollbar-track>.os-scrollbar-handle":{minWidth:30},".os-scrollbar-vertical>.os-scrollbar-track>.os-scrollbar-handle":{minHeight:30},".os-theme-dark.os-host-transition>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle":{transition:"background-color .3s"},".os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle, .os-scrollbar>.os-scrollbar-track":{borderRadius:10},".os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle":{background:t.color.mediumdark,opacity:.5},".os-scrollbar:hover>.os-scrollbar-track>.os-scrollbar-handle":{opacity:.6},".os-scrollbar-horizontal .os-scrollbar-handle:before, .os-scrollbar-vertical .os-scrollbar-handle:before":{content:"''",position:"absolute",left:0,right:0,top:0,bottom:0,display:"block"},".os-theme-dark.os-host-scrollbar-horizontal-hidden>.os-scrollbar-horizontal .os-scrollbar-handle:before, .os-theme-dark.os-host-scrollbar-vertical-hidden>.os-scrollbar-vertical .os-scrollbar-handle:before":{display:"none"},".os-scrollbar-horizontal .os-scrollbar-handle:before":{top:-6,bottom:-2},".os-scrollbar-vertical .os-scrollbar-handle:before":{left:-6,right:-2},".os-host-rtl.os-scrollbar-vertical .os-scrollbar-handle:before":{right:-6,left:-2}}),"getScrollAreaStyles"),a=o(()=>i.createElement(e,{styles:n}),"GlobalScrollAreaStyles"),p=a;export{p as default,n as getScrollAreaStyles};
@@ -1,4 +1,4 @@
1
- import{c,e as Xs,f as Bc,g as Fc,i as Dn}from"./chunk-YLDU3KBJ.mjs";var rc=Bc((Zs,Nn)=>{Dn();(function(Z,mr){typeof define=="function"&&define.amd?define(function(){return mr(Z,Z.document,void 0)}):typeof Nn=="object"&&typeof Nn.exports=="object"?Nn.exports=mr(Z,Z.document,void 0):mr(Z,Z.document,void 0)})(typeof window<"u"?window:Zs,function(Z,mr,P){"use strict";var za="OverlayScrollbars",y={o:"object",f:"function",a:"array",s:"string",b:"boolean",n:"number",u:"undefined",z:"null"},s={c:"class",s:"style",i:"id",l:"length",p:"prototype",ti:"tabindex",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth",hOP:"hasOwnProperty",bCR:"getBoundingClientRect"},ge=function(){var C={},x={},e=["-webkit-","-moz-","-o-","-ms-"],h=["WebKit","Moz","O","MS"];function f(p){return p.charAt(0).toUpperCase()+p.slice(1)}return c(f,"firstLetterToUpper"),{_cssPrefixes:e,_jsPrefixes:h,_cssProperty:function(p){var L=x[p];if(x[s.hOP](p))return L;for(var vr=f(p),ir=mr.createElement("div")[s.s],T,Q=0,xr,q;Q<e.length;Q++)for(q=e[Q].replace(/-/g,""),T=[p,e[Q]+p,q+vr,f(q)+vr],xr=0;xr<T[s.l];xr++)if(ir[T[xr]]!==P){L=T[xr];break}return x[p]=L,L},_cssPropertyValue:function(p,L,vr){var ir=p+" "+L,T=x[ir];if(x[s.hOP](ir))return T;for(var Q=mr.createElement("div")[s.s],xr=L.split(" "),q=vr||"",zr=0,S=-1,K;zr<xr[s.l];zr++)for(;S<ge._cssPrefixes[s.l];S++)if(K=S<0?xr[zr]:ge._cssPrefixes[S]+xr[zr],Q.cssText=p+":"+K+q,Q[s.l]){T=K;break}return x[ir]=T,T},_jsAPI:function(p,L,vr){var ir=0,T=C[p];if(!C[s.hOP](p)){for(T=Z[p];ir<h[s.l];ir++)T=T||Z[(L?h[ir]:h[ir].toLowerCase())+f(p)];C[p]=T}return T||vr}}}(),E=function(){function C(e){return e?Z.innerWidth||mr.documentElement[s.cW]||mr.body[s.cW]:Z.innerHeight||mr.documentElement[s.cH]||mr.body[s.cH]}c(C,"windowSize");function x(e,h){if(typeof e!=y.f)throw"Can't bind function!";var f=s.p,p=Array[f].slice.call(arguments,2),L=c(function(){},"fNOP"),vr=c(function(){return e.apply(this instanceof L?this:h,p.concat(Array[f].slice.call(arguments)))},"fBound");return e[f]&&(L[f]=e[f]),vr[f]=new L,vr}return c(x,"bind"),{wW:x(C,0,!0),wH:x(C,0),mO:x(ge._jsAPI,0,"MutationObserver",!0),rO:x(ge._jsAPI,0,"ResizeObserver",!0),rAF:x(ge._jsAPI,0,"requestAnimationFrame",!1,function(e){return Z.setTimeout(e,1e3/60)}),cAF:x(ge._jsAPI,0,"cancelAnimationFrame",!1,function(e){return Z.clearTimeout(e)}),now:function(){return Date.now&&Date.now()||new Date().getTime()},stpP:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},prvD:function(e){e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1},page:function(e){e=e.originalEvent||e;var h="page",f="client",p="X",L="Y",vr=e.target||e.srcElement||mr,ir=vr.ownerDocument||mr,T=ir.documentElement,Q=ir.body;if(e.touches!==P){var xr=e.touches[0];return{x:xr[h+p],y:xr[h+L]}}return!e[h+p]&&e[f+p]&&e[f+p]!=null?{x:e[f+p]+(T&&T.scrollLeft||Q&&Q.scrollLeft||0)-(T&&T.clientLeft||Q&&Q.clientLeft||0),y:e[f+L]+(T&&T.scrollTop||Q&&Q.scrollTop||0)-(T&&T.clientTop||Q&&Q.clientTop||0)}:{x:e[h+p],y:e[h+L]}},mBtn:function(e){var h=e.button;return!e.which&&h!==P?h&1?1:h&2?3:h&4?2:0:e.which},inA:function(e,h){for(var f=0;f<h[s.l];f++)try{if(h[f]===e)return f}catch{}return-1},isA:function(e){var h=Array.isArray;return h?h(e):this.type(e)==y.a},type:function(e){return e===P||e===null?e+"":Object[s.p].toString.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},bind:x}}(),N=Math,lt=Z.jQuery,tc=function(){var C={p:N.PI,c:N.cos,s:N.sin,w:N.pow,t:N.sqrt,n:N.asin,a:N.abs,o:1.70158};return{swing:function(x,e,h,f,p){return .5-C.c(x*C.p)/2},linear:function(x,e,h,f,p){return x},easeInQuad:function(x,e,h,f,p){return f*(e/=p)*e+h},easeOutQuad:function(x,e,h,f,p){return-f*(e/=p)*(e-2)+h},easeInOutQuad:function(x,e,h,f,p){return(e/=p/2)<1?f/2*e*e+h:-f/2*(--e*(e-2)-1)+h},easeInCubic:function(x,e,h,f,p){return f*(e/=p)*e*e+h},easeOutCubic:function(x,e,h,f,p){return f*((e=e/p-1)*e*e+1)+h},easeInOutCubic:function(x,e,h,f,p){return(e/=p/2)<1?f/2*e*e*e+h:f/2*((e-=2)*e*e+2)+h},easeInQuart:function(x,e,h,f,p){return f*(e/=p)*e*e*e+h},easeOutQuart:function(x,e,h,f,p){return-f*((e=e/p-1)*e*e*e-1)+h},easeInOutQuart:function(x,e,h,f,p){return(e/=p/2)<1?f/2*e*e*e*e+h:-f/2*((e-=2)*e*e*e-2)+h},easeInQuint:function(x,e,h,f,p){return f*(e/=p)*e*e*e*e+h},easeOutQuint:function(x,e,h,f,p){return f*((e=e/p-1)*e*e*e*e+1)+h},easeInOutQuint:function(x,e,h,f,p){return(e/=p/2)<1?f/2*e*e*e*e*e+h:f/2*((e-=2)*e*e*e*e+2)+h},easeInSine:function(x,e,h,f,p){return-f*C.c(e/p*(C.p/2))+f+h},easeOutSine:function(x,e,h,f,p){return f*C.s(e/p*(C.p/2))+h},easeInOutSine:function(x,e,h,f,p){return-f/2*(C.c(C.p*e/p)-1)+h},easeInExpo:function(x,e,h,f,p){return e==0?h:f*C.w(2,10*(e/p-1))+h},easeOutExpo:function(x,e,h,f,p){return e==p?h+f:f*(-C.w(2,-10*e/p)+1)+h},easeInOutExpo:function(x,e,h,f,p){return e==0?h:e==p?h+f:(e/=p/2)<1?f/2*C.w(2,10*(e-1))+h:f/2*(-C.w(2,-10*--e)+2)+h},easeInCirc:function(x,e,h,f,p){return-f*(C.t(1-(e/=p)*e)-1)+h},easeOutCirc:function(x,e,h,f,p){return f*C.t(1-(e=e/p-1)*e)+h},easeInOutCirc:function(x,e,h,f,p){return(e/=p/2)<1?-f/2*(C.t(1-e*e)-1)+h:f/2*(C.t(1-(e-=2)*e)+1)+h},easeInElastic:function(x,e,h,f,p){var L=C.o,vr=0,ir=f;return e==0?h:(e/=p)==1?h+f:(vr||(vr=p*.3),ir<C.a(f)?(ir=f,L=vr/4):L=vr/(2*C.p)*C.n(f/ir),-(ir*C.w(2,10*(e-=1))*C.s((e*p-L)*(2*C.p)/vr))+h)},easeOutElastic:function(x,e,h,f,p){var L=C.o,vr=0,ir=f;return e==0?h:(e/=p)==1?h+f:(vr||(vr=p*.3),ir<C.a(f)?(ir=f,L=vr/4):L=vr/(2*C.p)*C.n(f/ir),ir*C.w(2,-10*e)*C.s((e*p-L)*(2*C.p)/vr)+f+h)},easeInOutElastic:function(x,e,h,f,p){var L=C.o,vr=0,ir=f;return e==0?h:(e/=p/2)==2?h+f:(vr||(vr=p*(.3*1.5)),ir<C.a(f)?(ir=f,L=vr/4):L=vr/(2*C.p)*C.n(f/ir),e<1?-.5*(ir*C.w(2,10*(e-=1))*C.s((e*p-L)*(2*C.p)/vr))+h:ir*C.w(2,-10*(e-=1))*C.s((e*p-L)*(2*C.p)/vr)*.5+f+h)},easeInBack:function(x,e,h,f,p,L){return L=L||C.o,f*(e/=p)*e*((L+1)*e-L)+h},easeOutBack:function(x,e,h,f,p,L){return L=L||C.o,f*((e=e/p-1)*e*((L+1)*e+L)+1)+h},easeInOutBack:function(x,e,h,f,p,L){return L=L||C.o,(e/=p/2)<1?f/2*(e*e*(((L*=1.525)+1)*e-L))+h:f/2*((e-=2)*e*(((L*=1.525)+1)*e+L)+2)+h},easeInBounce:function(x,e,h,f,p){return f-this.easeOutBounce(x,p-e,0,f,p)+h},easeOutBounce:function(x,e,h,f,p){var L=7.5625;return(e/=p)<1/2.75?f*(L*e*e)+h:e<2/2.75?f*(L*(e-=1.5/2.75)*e+.75)+h:e<2.5/2.75?f*(L*(e-=2.25/2.75)*e+.9375)+h:f*(L*(e-=2.625/2.75)*e+.984375)+h},easeInOutBounce:function(x,e,h,f,p){return e<p/2?this.easeInBounce(x,e*2,0,f,p)*.5+h:this.easeOutBounce(x,e*2-p,0,f,p)*.5+f*.5+h}}}(),W=function(){var C=/[^\x20\t\r\n\f]+/g,x=" ",e="",h="scrollLeft",f="scrollTop",p=[],L=E.type,vr={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0};function ir(){var t,o,n,l,b,D,M=arguments[0]||{},_r=1,rr=arguments[s.l],tr=!1;for(L(M)==y.b&&(tr=M,M=arguments[1]||{},_r=2),L(M)!=y.o&&!L(M)==y.f&&(M={}),rr===_r&&(M=$,--_r);_r<rr;_r++)if((b=arguments[_r])!=null)for(l in b)t=M[l],n=b[l],M!==n&&(tr&&n&&(q(n)||(o=E.isA(n)))?(o?(o=!1,D=t&&E.isA(t)?t:[]):D=t&&q(t)?t:{},M[l]=ir(tr,D,n)):n!==P&&(M[l]=n));return M}c(ir,"extend");function T(t,o,n){for(var l=n||0;l<o[s.l];l++)if(o[l]===t)return l;return-1}c(T,"inArray");function Q(t){return L(t)==y.f}c(Q,"isFunction");function xr(t){for(var o in t)return!1;return!0}c(xr,"isEmptyObject");function q(t){if(!t||L(t)!=y.o)return!1;var o,n=s.p,l=Object[n].hasOwnProperty,b=l.call(t,"constructor"),D=t.constructor&&t.constructor[n]&&l.call(t.constructor[n],"isPrototypeOf");if(t.constructor&&!b&&!D)return!1;for(o in t);return L(o)==y.u||l.call(t,o)}c(q,"isPlainObject");function zr(t,o){var n=0;if(S(t))for(;n<t[s.l]&&o.call(t[n],n,t[n])!==!1;n++);else for(n in t)if(o.call(t[n],n,t[n])===!1)break;return t}c(zr,"each");function S(t){var o=!!t&&[s.l]in t&&t[s.l],n=L(t);return Q(n)?!1:n==y.a||o===0||L(o)==y.n&&o>0&&o-1 in t}c(S,"isArrayLike");function K(t){var o=t.match(C)||[];return o.join(x)}c(K,"stripAndCollapse");function G(t,o){for(var n=(t.parentNode||mr).querySelectorAll(o)||[],l=n[s.l];l--;)if(n[l]==t)return!0;return!1}c(G,"matches");function H(t,o,n){if(E.isA(n))for(var l=0;l<n[s.l];l++)H(t,o,n[l]);else L(n)==y.s?t.insertAdjacentHTML(o,n):t.insertAdjacentElement(o,n.nodeType?n:n[0])}c(H,"insertAdjacentElement");function fr(t,o,n){try{t[s.s][o]!==P&&(t[s.s][o]=Pe(o,n))}catch{}}c(fr,"setCSSVal");function Pe(t,o){return!vr[t.toLowerCase()]&&L(o)==y.n&&(o+="px"),o}c(Pe,"parseCSSVal");function Y(t,o){var n,l;o!==!1&&t.q.splice(0,1),t.q[s.l]>0?(l=t.q[0],O(t.el,l.props,l.duration,l.easing,l.complete,!0)):(n=T(t,p),n>-1&&p.splice(n,1))}c(Y,"startNextAnimationInQ");function jr(t,o,n){o===h||o===f?t[o]=n:fr(t,o,n)}c(jr,"setAnimationValue");function O(t,o,n,l,b,D){var M=q(n),_r={},rr={},tr=0,w,gr,ua,Mr,kr,Vr,Ir;for(M?(l=n.easing,ua=n.start,Mr=n.progress,kr=n.step,Vr=n.specialEasing,b=n.complete,Ir=n.duration):Ir=n,Vr=Vr||{},Ir=Ir||400,l=l||"swing",D=D||!1;tr<p[s.l];tr++)if(p[tr].el===t){gr=p[tr];break}gr||(gr={el:t,q:[]},p.push(gr));for(w in o)w===h||w===f?_r[w]=t[w]:_r[w]=$(t).css(w);for(w in _r)_r[w]!==o[w]&&o[w]!==P&&(rr[w]=o[w]);if(xr(rr))D&&Y(gr);else{var Or,ze,pe,Me,fa,dr,Rr,Ie,_e,je=D?0:T(Ar,gr.q),Ar={props:rr,duration:M?n:Ir,easing:l,complete:b};if(je===-1&&(je=gr.q[s.l],gr.q.push(Ar)),je===0)if(Ir>0)Rr=E.now(),Ie=c(function(){Or=E.now(),_e=Or-Rr,ze=Ar.stop||_e>=Ir,pe=1-(N.max(0,Rr+Ir-Or)/Ir||0);for(w in rr)Me=parseFloat(_r[w]),fa=parseFloat(rr[w]),dr=(fa-Me)*tc[Vr[w]||l](pe,pe*Ir,0,1,Ir)+Me,jr(t,w,dr),Q(kr)&&kr(dr,{elem:t,prop:w,start:Me,now:dr,end:fa,pos:pe,options:{easing:l,speacialEasing:Vr,duration:Ir,complete:b,step:kr},startTime:Rr});Q(Mr)&&Mr({},pe,N.max(0,Ir-_e)),ze?(Y(gr),Q(b)&&b()):Ar.frame=E.rAF()(Ie)},"frame"),Ar.frame=E.rAF()(Ie);else{for(w in rr)jr(t,w,rr[w]);Y(gr)}}}c(O,"animate");function hr(t,o,n){for(var l,b,D,M=0;M<p[s.l];M++)if(l=p[M],l.el===t){if(l.q[s.l]>0){if(b=l.q[0],b.stop=!0,E.cAF()(b.frame),l.q.splice(0,1),n)for(D in b.props)jr(t,D,b.props[D]);o?l.q=[]:Y(l,!1)}break}}c(hr,"stop");function pr(t){return!!(t[s.oW]||t[s.oH]||t.getClientRects()[s.l])}c(pr,"elementIsVisible");function $(t){if(arguments[s.l]===0)return this;var o=new $,n=t,l=0,b,D;if(L(t)==y.s)for(n=[],t.charAt(0)==="<"?(D=mr.createElement("div"),D.innerHTML=t,b=D.children):b=mr.querySelectorAll(t);l<b[s.l];l++)n.push(b[l]);if(n){for(L(n)!=y.s&&(!S(n)||n===Z||n===n.self)&&(n=[n]),l=0;l<n[s.l];l++)o[l]=n[l];o[s.l]=n[s.l]}return o}return c($,"FakejQuery"),$[s.p]={on:function(t,o){t=(t||e).match(C)||[e];var n=t[s.l],l=0,b;return this.each(function(){b=this;try{if(b.addEventListener)for(;l<n;l++)b.addEventListener(t[l],o);else if(b.detachEvent)for(;l<n;l++)b.attachEvent("on"+t[l],o)}catch{}})},off:function(t,o){t=(t||e).match(C)||[e];var n=t[s.l],l=0,b;return this.each(function(){b=this;try{if(b.removeEventListener)for(;l<n;l++)b.removeEventListener(t[l],o);else if(b.detachEvent)for(;l<n;l++)b.detachEvent("on"+t[l],o)}catch{}})},one:function(t,o){return t=(t||e).match(C)||[e],this.each(function(){var n=$(this);$.each(t,function(l,b){var D=c(function(M){o.call(this,M),n.off(b,D)},"oneHandler");n.on(b,D)})})},trigger:function(t){var o,n;return this.each(function(){o=this,mr.createEvent?(n=mr.createEvent("HTMLEvents"),n.initEvent(t,!0,!1),o.dispatchEvent(n)):o.fireEvent("on"+t)})},append:function(t){return this.each(function(){H(this,"beforeend",t)})},prepend:function(t){return this.each(function(){H(this,"afterbegin",t)})},before:function(t){return this.each(function(){H(this,"beforebegin",t)})},after:function(t){return this.each(function(){H(this,"afterend",t)})},remove:function(){return this.each(function(){var t=this,o=t.parentNode;o!=null&&o.removeChild(t)})},unwrap:function(){var t=[],o,n,l;for(this.each(function(){l=this.parentNode,T(l,t)===-1&&t.push(l)}),o=0;o<t[s.l];o++){for(n=t[o],l=n.parentNode;n.firstChild;)l.insertBefore(n.firstChild,n);l.removeChild(n)}return this},wrapAll:function(t){for(var o,n=this,l=$(t)[0],b=l,D=n[0].parentNode,M=n[0].previousSibling;b.childNodes[s.l]>0;)b=b.childNodes[0];for(o=0;n[s.l]-o;b.firstChild===n[0]&&o++)b.appendChild(n[o]);var _r=M?M.nextSibling:D.firstChild;return D.insertBefore(l,_r),this},wrapInner:function(t){return this.each(function(){var o=$(this),n=o.contents();n[s.l]?n.wrapAll(t):o.append(t)})},wrap:function(t){return this.each(function(){$(this).wrapAll(t)})},css:function(t,o){var n,l,b,D=Z.getComputedStyle;return L(t)==y.s?o===P?(n=this[0],b=D?D(n,null):n.currentStyle[t],D?b!=null?b.getPropertyValue(t):n[s.s][t]:b):this.each(function(){fr(this,t,o)}):this.each(function(){for(l in t)fr(this,l,t[l])})},hasClass:function(t){for(var o,n=0,l=x+t+x,b;o=this[n++];){if(b=o.classList,b&&b.contains(t))return!0;if(o.nodeType===1&&(x+K(o.className+e)+x).indexOf(l)>-1)return!0}return!1},addClass:function(t){var o,n,l,b,D,M,_r,rr,tr=0,w=0;if(t){for(o=t.match(C)||[];n=this[tr++];)if(rr=n.classList,_r===P&&(_r=rr!==P),_r)for(;D=o[w++];)rr.add(D);else if(b=n.className+e,l=n.nodeType===1&&x+K(b)+x,l){for(;D=o[w++];)l.indexOf(x+D+x)<0&&(l+=D+x);M=K(l),b!==M&&(n.className=M)}}return this},removeClass:function(t){var o,n,l,b,D,M,_r,rr,tr=0,w=0;if(t){for(o=t.match(C)||[];n=this[tr++];)if(rr=n.classList,_r===P&&(_r=rr!==P),_r)for(;D=o[w++];)rr.remove(D);else if(b=n.className+e,l=n.nodeType===1&&x+K(b)+x,l){for(;D=o[w++];)for(;l.indexOf(x+D+x)>-1;)l=l.replace(x+D+x,x);M=K(l),b!==M&&(n.className=M)}}return this},hide:function(){return this.each(function(){this[s.s].display="none"})},show:function(){return this.each(function(){this[s.s].display="block"})},attr:function(t,o){for(var n=0,l;l=this[n++];){if(o===P)return l.getAttribute(t);l.setAttribute(t,o)}return this},removeAttr:function(t){return this.each(function(){this.removeAttribute(t)})},offset:function(){var t=this[0],o=t[s.bCR](),n=Z.pageXOffset||mr.documentElement[h],l=Z.pageYOffset||mr.documentElement[f];return{top:o.top+l,left:o.left+n}},position:function(){var t=this[0];return{top:t.offsetTop,left:t.offsetLeft}},scrollLeft:function(t){for(var o=0,n;n=this[o++];){if(t===P)return n[h];n[h]=t}return this},scrollTop:function(t){for(var o=0,n;n=this[o++];){if(t===P)return n[f];n[f]=t}return this},val:function(t){var o=this[0];return t?(o.value=t,this):o.value},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){return $(this[t>=0?t:this[s.l]+t])},find:function(t){var o=[],n;return this.each(function(){var l=this,b=l.querySelectorAll(t);for(n=0;n<b[s.l];n++)o.push(b[n])}),$(o)},children:function(t){var o=[],n,l,b;return this.each(function(){for(l=this.children,b=0;b<l[s.l];b++)n=l[b],t?(n.matches&&n.matches(t)||G(n,t))&&o.push(n):o.push(n)}),$(o)},parent:function(t){var o=[],n;return this.each(function(){n=this.parentNode,(!t||$(n).is(t))&&o.push(n)}),$(o)},is:function(t){var o,n;for(n=0;n<this[s.l];n++){if(o=this[n],t===":visible")return pr(o);if(t===":hidden")return!pr(o);if(o.matches&&o.matches(t)||G(o,t))return!0}return!1},contents:function(){var t=[],o,n;return this.each(function(){for(o=this.childNodes,n=0;n<o[s.l];n++)t.push(o[n])}),$(t)},each:function(t){return zr(this,t)},animate:function(t,o,n,l){return this.each(function(){O(this,t,o,n,l)})},stop:function(t,o){return this.each(function(){hr(this,t,o)})}},ir($,{extend:ir,inArray:T,isEmptyObject:xr,isPlainObject:q,each:zr}),$}(),Ma=function(){var C=[],x="__overlayScrollbars__";return function(e,h){var f=arguments[s.l];if(f<1)return C;if(h)e[x]=h,C.push(e);else{var p=E.inA(e,C);if(p>-1)if(f>1)delete e[x],C.splice(p,1);else return C[p][x]}}}(),Pn=function(){var C,x,e,h=[],f=function(){var T=E.type,Q=[y.b,y.n,y.s,y.a,y.o,y.f,y.z],xr=" ",q=":",zr=[y.z,y.s],S=y.n,K=[y.z,y.b],G=[!0,y.b],H=[!1,y.b],fr=[null,[y.z,y.f]],Pe=[["img"],[y.s,y.a,y.z]],Y=[["style","class"],[y.s,y.a,y.z]],jr="n:none b:both h:horizontal v:vertical",O="v-h:visible-hidden v-s:visible-scroll s:scroll h:hidden",hr="v:visible h:hidden a:auto",pr="n:never s:scroll l:leave m:move",$={className:["os-theme-dark",zr],resize:["none",jr],sizeAutoCapable:G,clipAlways:G,normalizeRTL:G,paddingAbsolute:H,autoUpdate:[null,K],autoUpdateInterval:[33,S],updateOnLoad:Pe,nativeScrollbarsOverlaid:{showNativeScrollbars:H,initialize:G},overflowBehavior:{x:["scroll",O],y:["scroll",O]},scrollbars:{visibility:["auto",hr],autoHide:["never",pr],autoHideDelay:[800,S],dragScrolling:G,clickScrolling:H,touchSupport:G,snapHandle:H},textarea:{dynWidth:H,dynHeight:H,inheritedAttrs:Y},callbacks:{onInitialized:fr,onInitializationWithdrawn:fr,onDestroyed:fr,onScrollStart:fr,onScroll:fr,onScrollStop:fr,onOverflowChanged:fr,onOverflowAmountChanged:fr,onDirectionChanged:fr,onContentSizeChanged:fr,onHostSizeChanged:fr,onUpdated:fr}},t=c(function(o){var n=c(function(l){var b,D,M;for(b in l)!l[s.hOP](b)||(D=l[b],M=T(D),M==y.a?l[b]=D[o?1:0]:M==y.o&&(l[b]=n(D)));return l},"recursive");return n(W.extend(!0,{},$))},"convert");return{_defaults:t(),_template:t(!0),_validate:function(o,n,l,b){var D={},M={},_r=W.extend(!0,{},o),rr=W.inArray,tr=W.isEmptyObject,w=c(function(gr,ua,Mr,kr,Vr,Ir){for(var Or in ua)if(ua[s.hOP](Or)&&gr[s.hOP](Or)){var ze=!1,pe=!1,Me=ua[Or],fa=T(Me),dr=fa==y.o,Rr=E.isA(Me)?Me:[Me],Ie=Mr[Or],_e=gr[Or],je=T(_e),Ar=Ir?Ir+".":"",Ia='The option "'+Ar+Or+`" wasn't set, because`,ut=[],re=[],be,Re,Qr,Ce,ne,br,Ae,Ra;if(Ie=Ie===P?{}:Ie,dr&&je==y.o)kr[Or]={},Vr[Or]={},w(_e,Me,Ie,kr[Or],Vr[Or],Ar+Or),W.each([gr,kr,Vr],function(J,Tr){tr(Tr[Or])&&delete Tr[Or]});else if(!dr){for(br=0;br<Rr[s.l];br++)if(ne=Rr[br],fa=T(ne),Qr=fa==y.s&&rr(ne,Q)===-1,Qr)for(ut.push(y.s),be=ne.split(xr),re=re.concat(be),Ae=0;Ae<be[s.l];Ae++){for(Re=be[Ae].split(q),Ce=Re[0],Ra=0;Ra<Re[s.l];Ra++)if(_e===Re[Ra]){ze=!0;break}if(ze)break}else if(ut.push(ne),je===ne){ze=!0;break}ze?(pe=_e!==Ie,pe&&(kr[Or]=_e),(Qr?rr(Ie,Re)<0:pe)&&(Vr[Or]=Qr?Ce:_e)):l&&console.warn(Ia+" it doesn't accept the type [ "+je.toUpperCase()+' ] with the value of "'+_e+`".\r
1
+ import{c,d as Xs,e as Bc,f as Fc,h as Dn}from"./chunk-PJYBQ6PQ.mjs";var rc=Bc((Zs,Nn)=>{Dn();(function(Z,mr){typeof define=="function"&&define.amd?define(function(){return mr(Z,Z.document,void 0)}):typeof Nn=="object"&&typeof Nn.exports=="object"?Nn.exports=mr(Z,Z.document,void 0):mr(Z,Z.document,void 0)})(typeof window<"u"?window:Zs,function(Z,mr,P){"use strict";var za="OverlayScrollbars",y={o:"object",f:"function",a:"array",s:"string",b:"boolean",n:"number",u:"undefined",z:"null"},s={c:"class",s:"style",i:"id",l:"length",p:"prototype",ti:"tabindex",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth",hOP:"hasOwnProperty",bCR:"getBoundingClientRect"},ge=function(){var C={},x={},e=["-webkit-","-moz-","-o-","-ms-"],h=["WebKit","Moz","O","MS"];function f(p){return p.charAt(0).toUpperCase()+p.slice(1)}return c(f,"firstLetterToUpper"),{_cssPrefixes:e,_jsPrefixes:h,_cssProperty:function(p){var L=x[p];if(x[s.hOP](p))return L;for(var vr=f(p),ir=mr.createElement("div")[s.s],T,Q=0,xr,q;Q<e.length;Q++)for(q=e[Q].replace(/-/g,""),T=[p,e[Q]+p,q+vr,f(q)+vr],xr=0;xr<T[s.l];xr++)if(ir[T[xr]]!==P){L=T[xr];break}return x[p]=L,L},_cssPropertyValue:function(p,L,vr){var ir=p+" "+L,T=x[ir];if(x[s.hOP](ir))return T;for(var Q=mr.createElement("div")[s.s],xr=L.split(" "),q=vr||"",zr=0,S=-1,K;zr<xr[s.l];zr++)for(;S<ge._cssPrefixes[s.l];S++)if(K=S<0?xr[zr]:ge._cssPrefixes[S]+xr[zr],Q.cssText=p+":"+K+q,Q[s.l]){T=K;break}return x[ir]=T,T},_jsAPI:function(p,L,vr){var ir=0,T=C[p];if(!C[s.hOP](p)){for(T=Z[p];ir<h[s.l];ir++)T=T||Z[(L?h[ir]:h[ir].toLowerCase())+f(p)];C[p]=T}return T||vr}}}(),E=function(){function C(e){return e?Z.innerWidth||mr.documentElement[s.cW]||mr.body[s.cW]:Z.innerHeight||mr.documentElement[s.cH]||mr.body[s.cH]}c(C,"windowSize");function x(e,h){if(typeof e!=y.f)throw"Can't bind function!";var f=s.p,p=Array[f].slice.call(arguments,2),L=c(function(){},"fNOP"),vr=c(function(){return e.apply(this instanceof L?this:h,p.concat(Array[f].slice.call(arguments)))},"fBound");return e[f]&&(L[f]=e[f]),vr[f]=new L,vr}return c(x,"bind"),{wW:x(C,0,!0),wH:x(C,0),mO:x(ge._jsAPI,0,"MutationObserver",!0),rO:x(ge._jsAPI,0,"ResizeObserver",!0),rAF:x(ge._jsAPI,0,"requestAnimationFrame",!1,function(e){return Z.setTimeout(e,1e3/60)}),cAF:x(ge._jsAPI,0,"cancelAnimationFrame",!1,function(e){return Z.clearTimeout(e)}),now:function(){return Date.now&&Date.now()||new Date().getTime()},stpP:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},prvD:function(e){e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1},page:function(e){e=e.originalEvent||e;var h="page",f="client",p="X",L="Y",vr=e.target||e.srcElement||mr,ir=vr.ownerDocument||mr,T=ir.documentElement,Q=ir.body;if(e.touches!==P){var xr=e.touches[0];return{x:xr[h+p],y:xr[h+L]}}return!e[h+p]&&e[f+p]&&e[f+p]!=null?{x:e[f+p]+(T&&T.scrollLeft||Q&&Q.scrollLeft||0)-(T&&T.clientLeft||Q&&Q.clientLeft||0),y:e[f+L]+(T&&T.scrollTop||Q&&Q.scrollTop||0)-(T&&T.clientTop||Q&&Q.clientTop||0)}:{x:e[h+p],y:e[h+L]}},mBtn:function(e){var h=e.button;return!e.which&&h!==P?h&1?1:h&2?3:h&4?2:0:e.which},inA:function(e,h){for(var f=0;f<h[s.l];f++)try{if(h[f]===e)return f}catch{}return-1},isA:function(e){var h=Array.isArray;return h?h(e):this.type(e)==y.a},type:function(e){return e===P||e===null?e+"":Object[s.p].toString.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},bind:x}}(),N=Math,lt=Z.jQuery,tc=function(){var C={p:N.PI,c:N.cos,s:N.sin,w:N.pow,t:N.sqrt,n:N.asin,a:N.abs,o:1.70158};return{swing:function(x,e,h,f,p){return .5-C.c(x*C.p)/2},linear:function(x,e,h,f,p){return x},easeInQuad:function(x,e,h,f,p){return f*(e/=p)*e+h},easeOutQuad:function(x,e,h,f,p){return-f*(e/=p)*(e-2)+h},easeInOutQuad:function(x,e,h,f,p){return(e/=p/2)<1?f/2*e*e+h:-f/2*(--e*(e-2)-1)+h},easeInCubic:function(x,e,h,f,p){return f*(e/=p)*e*e+h},easeOutCubic:function(x,e,h,f,p){return f*((e=e/p-1)*e*e+1)+h},easeInOutCubic:function(x,e,h,f,p){return(e/=p/2)<1?f/2*e*e*e+h:f/2*((e-=2)*e*e+2)+h},easeInQuart:function(x,e,h,f,p){return f*(e/=p)*e*e*e+h},easeOutQuart:function(x,e,h,f,p){return-f*((e=e/p-1)*e*e*e-1)+h},easeInOutQuart:function(x,e,h,f,p){return(e/=p/2)<1?f/2*e*e*e*e+h:-f/2*((e-=2)*e*e*e-2)+h},easeInQuint:function(x,e,h,f,p){return f*(e/=p)*e*e*e*e+h},easeOutQuint:function(x,e,h,f,p){return f*((e=e/p-1)*e*e*e*e+1)+h},easeInOutQuint:function(x,e,h,f,p){return(e/=p/2)<1?f/2*e*e*e*e*e+h:f/2*((e-=2)*e*e*e*e+2)+h},easeInSine:function(x,e,h,f,p){return-f*C.c(e/p*(C.p/2))+f+h},easeOutSine:function(x,e,h,f,p){return f*C.s(e/p*(C.p/2))+h},easeInOutSine:function(x,e,h,f,p){return-f/2*(C.c(C.p*e/p)-1)+h},easeInExpo:function(x,e,h,f,p){return e==0?h:f*C.w(2,10*(e/p-1))+h},easeOutExpo:function(x,e,h,f,p){return e==p?h+f:f*(-C.w(2,-10*e/p)+1)+h},easeInOutExpo:function(x,e,h,f,p){return e==0?h:e==p?h+f:(e/=p/2)<1?f/2*C.w(2,10*(e-1))+h:f/2*(-C.w(2,-10*--e)+2)+h},easeInCirc:function(x,e,h,f,p){return-f*(C.t(1-(e/=p)*e)-1)+h},easeOutCirc:function(x,e,h,f,p){return f*C.t(1-(e=e/p-1)*e)+h},easeInOutCirc:function(x,e,h,f,p){return(e/=p/2)<1?-f/2*(C.t(1-e*e)-1)+h:f/2*(C.t(1-(e-=2)*e)+1)+h},easeInElastic:function(x,e,h,f,p){var L=C.o,vr=0,ir=f;return e==0?h:(e/=p)==1?h+f:(vr||(vr=p*.3),ir<C.a(f)?(ir=f,L=vr/4):L=vr/(2*C.p)*C.n(f/ir),-(ir*C.w(2,10*(e-=1))*C.s((e*p-L)*(2*C.p)/vr))+h)},easeOutElastic:function(x,e,h,f,p){var L=C.o,vr=0,ir=f;return e==0?h:(e/=p)==1?h+f:(vr||(vr=p*.3),ir<C.a(f)?(ir=f,L=vr/4):L=vr/(2*C.p)*C.n(f/ir),ir*C.w(2,-10*e)*C.s((e*p-L)*(2*C.p)/vr)+f+h)},easeInOutElastic:function(x,e,h,f,p){var L=C.o,vr=0,ir=f;return e==0?h:(e/=p/2)==2?h+f:(vr||(vr=p*(.3*1.5)),ir<C.a(f)?(ir=f,L=vr/4):L=vr/(2*C.p)*C.n(f/ir),e<1?-.5*(ir*C.w(2,10*(e-=1))*C.s((e*p-L)*(2*C.p)/vr))+h:ir*C.w(2,-10*(e-=1))*C.s((e*p-L)*(2*C.p)/vr)*.5+f+h)},easeInBack:function(x,e,h,f,p,L){return L=L||C.o,f*(e/=p)*e*((L+1)*e-L)+h},easeOutBack:function(x,e,h,f,p,L){return L=L||C.o,f*((e=e/p-1)*e*((L+1)*e+L)+1)+h},easeInOutBack:function(x,e,h,f,p,L){return L=L||C.o,(e/=p/2)<1?f/2*(e*e*(((L*=1.525)+1)*e-L))+h:f/2*((e-=2)*e*(((L*=1.525)+1)*e+L)+2)+h},easeInBounce:function(x,e,h,f,p){return f-this.easeOutBounce(x,p-e,0,f,p)+h},easeOutBounce:function(x,e,h,f,p){var L=7.5625;return(e/=p)<1/2.75?f*(L*e*e)+h:e<2/2.75?f*(L*(e-=1.5/2.75)*e+.75)+h:e<2.5/2.75?f*(L*(e-=2.25/2.75)*e+.9375)+h:f*(L*(e-=2.625/2.75)*e+.984375)+h},easeInOutBounce:function(x,e,h,f,p){return e<p/2?this.easeInBounce(x,e*2,0,f,p)*.5+h:this.easeOutBounce(x,e*2-p,0,f,p)*.5+f*.5+h}}}(),W=function(){var C=/[^\x20\t\r\n\f]+/g,x=" ",e="",h="scrollLeft",f="scrollTop",p=[],L=E.type,vr={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0};function ir(){var t,o,n,l,b,D,M=arguments[0]||{},_r=1,rr=arguments[s.l],tr=!1;for(L(M)==y.b&&(tr=M,M=arguments[1]||{},_r=2),L(M)!=y.o&&!L(M)==y.f&&(M={}),rr===_r&&(M=$,--_r);_r<rr;_r++)if((b=arguments[_r])!=null)for(l in b)t=M[l],n=b[l],M!==n&&(tr&&n&&(q(n)||(o=E.isA(n)))?(o?(o=!1,D=t&&E.isA(t)?t:[]):D=t&&q(t)?t:{},M[l]=ir(tr,D,n)):n!==P&&(M[l]=n));return M}c(ir,"extend");function T(t,o,n){for(var l=n||0;l<o[s.l];l++)if(o[l]===t)return l;return-1}c(T,"inArray");function Q(t){return L(t)==y.f}c(Q,"isFunction");function xr(t){for(var o in t)return!1;return!0}c(xr,"isEmptyObject");function q(t){if(!t||L(t)!=y.o)return!1;var o,n=s.p,l=Object[n].hasOwnProperty,b=l.call(t,"constructor"),D=t.constructor&&t.constructor[n]&&l.call(t.constructor[n],"isPrototypeOf");if(t.constructor&&!b&&!D)return!1;for(o in t);return L(o)==y.u||l.call(t,o)}c(q,"isPlainObject");function zr(t,o){var n=0;if(S(t))for(;n<t[s.l]&&o.call(t[n],n,t[n])!==!1;n++);else for(n in t)if(o.call(t[n],n,t[n])===!1)break;return t}c(zr,"each");function S(t){var o=!!t&&[s.l]in t&&t[s.l],n=L(t);return Q(n)?!1:n==y.a||o===0||L(o)==y.n&&o>0&&o-1 in t}c(S,"isArrayLike");function K(t){var o=t.match(C)||[];return o.join(x)}c(K,"stripAndCollapse");function G(t,o){for(var n=(t.parentNode||mr).querySelectorAll(o)||[],l=n[s.l];l--;)if(n[l]==t)return!0;return!1}c(G,"matches");function H(t,o,n){if(E.isA(n))for(var l=0;l<n[s.l];l++)H(t,o,n[l]);else L(n)==y.s?t.insertAdjacentHTML(o,n):t.insertAdjacentElement(o,n.nodeType?n:n[0])}c(H,"insertAdjacentElement");function fr(t,o,n){try{t[s.s][o]!==P&&(t[s.s][o]=Pe(o,n))}catch{}}c(fr,"setCSSVal");function Pe(t,o){return!vr[t.toLowerCase()]&&L(o)==y.n&&(o+="px"),o}c(Pe,"parseCSSVal");function Y(t,o){var n,l;o!==!1&&t.q.splice(0,1),t.q[s.l]>0?(l=t.q[0],O(t.el,l.props,l.duration,l.easing,l.complete,!0)):(n=T(t,p),n>-1&&p.splice(n,1))}c(Y,"startNextAnimationInQ");function jr(t,o,n){o===h||o===f?t[o]=n:fr(t,o,n)}c(jr,"setAnimationValue");function O(t,o,n,l,b,D){var M=q(n),_r={},rr={},tr=0,w,gr,ua,Mr,kr,Vr,Ir;for(M?(l=n.easing,ua=n.start,Mr=n.progress,kr=n.step,Vr=n.specialEasing,b=n.complete,Ir=n.duration):Ir=n,Vr=Vr||{},Ir=Ir||400,l=l||"swing",D=D||!1;tr<p[s.l];tr++)if(p[tr].el===t){gr=p[tr];break}gr||(gr={el:t,q:[]},p.push(gr));for(w in o)w===h||w===f?_r[w]=t[w]:_r[w]=$(t).css(w);for(w in _r)_r[w]!==o[w]&&o[w]!==P&&(rr[w]=o[w]);if(xr(rr))D&&Y(gr);else{var Or,ze,pe,Me,fa,dr,Rr,Ie,_e,je=D?0:T(Ar,gr.q),Ar={props:rr,duration:M?n:Ir,easing:l,complete:b};if(je===-1&&(je=gr.q[s.l],gr.q.push(Ar)),je===0)if(Ir>0)Rr=E.now(),Ie=c(function(){Or=E.now(),_e=Or-Rr,ze=Ar.stop||_e>=Ir,pe=1-(N.max(0,Rr+Ir-Or)/Ir||0);for(w in rr)Me=parseFloat(_r[w]),fa=parseFloat(rr[w]),dr=(fa-Me)*tc[Vr[w]||l](pe,pe*Ir,0,1,Ir)+Me,jr(t,w,dr),Q(kr)&&kr(dr,{elem:t,prop:w,start:Me,now:dr,end:fa,pos:pe,options:{easing:l,speacialEasing:Vr,duration:Ir,complete:b,step:kr},startTime:Rr});Q(Mr)&&Mr({},pe,N.max(0,Ir-_e)),ze?(Y(gr),Q(b)&&b()):Ar.frame=E.rAF()(Ie)},"frame"),Ar.frame=E.rAF()(Ie);else{for(w in rr)jr(t,w,rr[w]);Y(gr)}}}c(O,"animate");function hr(t,o,n){for(var l,b,D,M=0;M<p[s.l];M++)if(l=p[M],l.el===t){if(l.q[s.l]>0){if(b=l.q[0],b.stop=!0,E.cAF()(b.frame),l.q.splice(0,1),n)for(D in b.props)jr(t,D,b.props[D]);o?l.q=[]:Y(l,!1)}break}}c(hr,"stop");function pr(t){return!!(t[s.oW]||t[s.oH]||t.getClientRects()[s.l])}c(pr,"elementIsVisible");function $(t){if(arguments[s.l]===0)return this;var o=new $,n=t,l=0,b,D;if(L(t)==y.s)for(n=[],t.charAt(0)==="<"?(D=mr.createElement("div"),D.innerHTML=t,b=D.children):b=mr.querySelectorAll(t);l<b[s.l];l++)n.push(b[l]);if(n){for(L(n)!=y.s&&(!S(n)||n===Z||n===n.self)&&(n=[n]),l=0;l<n[s.l];l++)o[l]=n[l];o[s.l]=n[s.l]}return o}return c($,"FakejQuery"),$[s.p]={on:function(t,o){t=(t||e).match(C)||[e];var n=t[s.l],l=0,b;return this.each(function(){b=this;try{if(b.addEventListener)for(;l<n;l++)b.addEventListener(t[l],o);else if(b.detachEvent)for(;l<n;l++)b.attachEvent("on"+t[l],o)}catch{}})},off:function(t,o){t=(t||e).match(C)||[e];var n=t[s.l],l=0,b;return this.each(function(){b=this;try{if(b.removeEventListener)for(;l<n;l++)b.removeEventListener(t[l],o);else if(b.detachEvent)for(;l<n;l++)b.detachEvent("on"+t[l],o)}catch{}})},one:function(t,o){return t=(t||e).match(C)||[e],this.each(function(){var n=$(this);$.each(t,function(l,b){var D=c(function(M){o.call(this,M),n.off(b,D)},"oneHandler");n.on(b,D)})})},trigger:function(t){var o,n;return this.each(function(){o=this,mr.createEvent?(n=mr.createEvent("HTMLEvents"),n.initEvent(t,!0,!1),o.dispatchEvent(n)):o.fireEvent("on"+t)})},append:function(t){return this.each(function(){H(this,"beforeend",t)})},prepend:function(t){return this.each(function(){H(this,"afterbegin",t)})},before:function(t){return this.each(function(){H(this,"beforebegin",t)})},after:function(t){return this.each(function(){H(this,"afterend",t)})},remove:function(){return this.each(function(){var t=this,o=t.parentNode;o!=null&&o.removeChild(t)})},unwrap:function(){var t=[],o,n,l;for(this.each(function(){l=this.parentNode,T(l,t)===-1&&t.push(l)}),o=0;o<t[s.l];o++){for(n=t[o],l=n.parentNode;n.firstChild;)l.insertBefore(n.firstChild,n);l.removeChild(n)}return this},wrapAll:function(t){for(var o,n=this,l=$(t)[0],b=l,D=n[0].parentNode,M=n[0].previousSibling;b.childNodes[s.l]>0;)b=b.childNodes[0];for(o=0;n[s.l]-o;b.firstChild===n[0]&&o++)b.appendChild(n[o]);var _r=M?M.nextSibling:D.firstChild;return D.insertBefore(l,_r),this},wrapInner:function(t){return this.each(function(){var o=$(this),n=o.contents();n[s.l]?n.wrapAll(t):o.append(t)})},wrap:function(t){return this.each(function(){$(this).wrapAll(t)})},css:function(t,o){var n,l,b,D=Z.getComputedStyle;return L(t)==y.s?o===P?(n=this[0],b=D?D(n,null):n.currentStyle[t],D?b!=null?b.getPropertyValue(t):n[s.s][t]:b):this.each(function(){fr(this,t,o)}):this.each(function(){for(l in t)fr(this,l,t[l])})},hasClass:function(t){for(var o,n=0,l=x+t+x,b;o=this[n++];){if(b=o.classList,b&&b.contains(t))return!0;if(o.nodeType===1&&(x+K(o.className+e)+x).indexOf(l)>-1)return!0}return!1},addClass:function(t){var o,n,l,b,D,M,_r,rr,tr=0,w=0;if(t){for(o=t.match(C)||[];n=this[tr++];)if(rr=n.classList,_r===P&&(_r=rr!==P),_r)for(;D=o[w++];)rr.add(D);else if(b=n.className+e,l=n.nodeType===1&&x+K(b)+x,l){for(;D=o[w++];)l.indexOf(x+D+x)<0&&(l+=D+x);M=K(l),b!==M&&(n.className=M)}}return this},removeClass:function(t){var o,n,l,b,D,M,_r,rr,tr=0,w=0;if(t){for(o=t.match(C)||[];n=this[tr++];)if(rr=n.classList,_r===P&&(_r=rr!==P),_r)for(;D=o[w++];)rr.remove(D);else if(b=n.className+e,l=n.nodeType===1&&x+K(b)+x,l){for(;D=o[w++];)for(;l.indexOf(x+D+x)>-1;)l=l.replace(x+D+x,x);M=K(l),b!==M&&(n.className=M)}}return this},hide:function(){return this.each(function(){this[s.s].display="none"})},show:function(){return this.each(function(){this[s.s].display="block"})},attr:function(t,o){for(var n=0,l;l=this[n++];){if(o===P)return l.getAttribute(t);l.setAttribute(t,o)}return this},removeAttr:function(t){return this.each(function(){this.removeAttribute(t)})},offset:function(){var t=this[0],o=t[s.bCR](),n=Z.pageXOffset||mr.documentElement[h],l=Z.pageYOffset||mr.documentElement[f];return{top:o.top+l,left:o.left+n}},position:function(){var t=this[0];return{top:t.offsetTop,left:t.offsetLeft}},scrollLeft:function(t){for(var o=0,n;n=this[o++];){if(t===P)return n[h];n[h]=t}return this},scrollTop:function(t){for(var o=0,n;n=this[o++];){if(t===P)return n[f];n[f]=t}return this},val:function(t){var o=this[0];return t?(o.value=t,this):o.value},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){return $(this[t>=0?t:this[s.l]+t])},find:function(t){var o=[],n;return this.each(function(){var l=this,b=l.querySelectorAll(t);for(n=0;n<b[s.l];n++)o.push(b[n])}),$(o)},children:function(t){var o=[],n,l,b;return this.each(function(){for(l=this.children,b=0;b<l[s.l];b++)n=l[b],t?(n.matches&&n.matches(t)||G(n,t))&&o.push(n):o.push(n)}),$(o)},parent:function(t){var o=[],n;return this.each(function(){n=this.parentNode,(!t||$(n).is(t))&&o.push(n)}),$(o)},is:function(t){var o,n;for(n=0;n<this[s.l];n++){if(o=this[n],t===":visible")return pr(o);if(t===":hidden")return!pr(o);if(o.matches&&o.matches(t)||G(o,t))return!0}return!1},contents:function(){var t=[],o,n;return this.each(function(){for(o=this.childNodes,n=0;n<o[s.l];n++)t.push(o[n])}),$(t)},each:function(t){return zr(this,t)},animate:function(t,o,n,l){return this.each(function(){O(this,t,o,n,l)})},stop:function(t,o){return this.each(function(){hr(this,t,o)})}},ir($,{extend:ir,inArray:T,isEmptyObject:xr,isPlainObject:q,each:zr}),$}(),Ma=function(){var C=[],x="__overlayScrollbars__";return function(e,h){var f=arguments[s.l];if(f<1)return C;if(h)e[x]=h,C.push(e);else{var p=E.inA(e,C);if(p>-1)if(f>1)delete e[x],C.splice(p,1);else return C[p][x]}}}(),Pn=function(){var C,x,e,h=[],f=function(){var T=E.type,Q=[y.b,y.n,y.s,y.a,y.o,y.f,y.z],xr=" ",q=":",zr=[y.z,y.s],S=y.n,K=[y.z,y.b],G=[!0,y.b],H=[!1,y.b],fr=[null,[y.z,y.f]],Pe=[["img"],[y.s,y.a,y.z]],Y=[["style","class"],[y.s,y.a,y.z]],jr="n:none b:both h:horizontal v:vertical",O="v-h:visible-hidden v-s:visible-scroll s:scroll h:hidden",hr="v:visible h:hidden a:auto",pr="n:never s:scroll l:leave m:move",$={className:["os-theme-dark",zr],resize:["none",jr],sizeAutoCapable:G,clipAlways:G,normalizeRTL:G,paddingAbsolute:H,autoUpdate:[null,K],autoUpdateInterval:[33,S],updateOnLoad:Pe,nativeScrollbarsOverlaid:{showNativeScrollbars:H,initialize:G},overflowBehavior:{x:["scroll",O],y:["scroll",O]},scrollbars:{visibility:["auto",hr],autoHide:["never",pr],autoHideDelay:[800,S],dragScrolling:G,clickScrolling:H,touchSupport:G,snapHandle:H},textarea:{dynWidth:H,dynHeight:H,inheritedAttrs:Y},callbacks:{onInitialized:fr,onInitializationWithdrawn:fr,onDestroyed:fr,onScrollStart:fr,onScroll:fr,onScrollStop:fr,onOverflowChanged:fr,onOverflowAmountChanged:fr,onDirectionChanged:fr,onContentSizeChanged:fr,onHostSizeChanged:fr,onUpdated:fr}},t=c(function(o){var n=c(function(l){var b,D,M;for(b in l)!l[s.hOP](b)||(D=l[b],M=T(D),M==y.a?l[b]=D[o?1:0]:M==y.o&&(l[b]=n(D)));return l},"recursive");return n(W.extend(!0,{},$))},"convert");return{_defaults:t(),_template:t(!0),_validate:function(o,n,l,b){var D={},M={},_r=W.extend(!0,{},o),rr=W.inArray,tr=W.isEmptyObject,w=c(function(gr,ua,Mr,kr,Vr,Ir){for(var Or in ua)if(ua[s.hOP](Or)&&gr[s.hOP](Or)){var ze=!1,pe=!1,Me=ua[Or],fa=T(Me),dr=fa==y.o,Rr=E.isA(Me)?Me:[Me],Ie=Mr[Or],_e=gr[Or],je=T(_e),Ar=Ir?Ir+".":"",Ia='The option "'+Ar+Or+`" wasn't set, because`,ut=[],re=[],be,Re,Qr,Ce,ne,br,Ae,Ra;if(Ie=Ie===P?{}:Ie,dr&&je==y.o)kr[Or]={},Vr[Or]={},w(_e,Me,Ie,kr[Or],Vr[Or],Ar+Or),W.each([gr,kr,Vr],function(J,Tr){tr(Tr[Or])&&delete Tr[Or]});else if(!dr){for(br=0;br<Rr[s.l];br++)if(ne=Rr[br],fa=T(ne),Qr=fa==y.s&&rr(ne,Q)===-1,Qr)for(ut.push(y.s),be=ne.split(xr),re=re.concat(be),Ae=0;Ae<be[s.l];Ae++){for(Re=be[Ae].split(q),Ce=Re[0],Ra=0;Ra<Re[s.l];Ra++)if(_e===Re[Ra]){ze=!0;break}if(ze)break}else if(ut.push(ne),je===ne){ze=!0;break}ze?(pe=_e!==Ie,pe&&(kr[Or]=_e),(Qr?rr(Ie,Re)<0:pe)&&(Vr[Or]=Qr?Ce:_e)):l&&console.warn(Ia+" it doesn't accept the type [ "+je.toUpperCase()+' ] with the value of "'+_e+`".\r
2
2
  Accepted types are: [ `+ut.join(", ").toUpperCase()+" ]."+(re[length]>0?`\r
3
3
  Valid strings are: [ `+re.join(", ").split(q).join(", ")+" ].":"")),delete gr[Or]}}},"checkObjectProps");return w(_r,n,b||{},D,M),!tr(_r)&&l&&console.warn(`The following options are discarded due to invalidity:\r
4
4
  `+Z.JSON.stringify(_r,null,2)),{_default:D,_prepared:M}}}}();function p(){x||(x=new L(f._defaults)),e||(e=new vr(x))}c(p,"initOverlayScrollbarsStatics");function L(T){var Q=this,xr="overflow",q="hidden",zr="scroll",S=W("body"),K=W('<div id="os-dummy-scrollbar-size"><div></div></div>'),G=K[0],H=W(K.children("div").eq(0));S.append(K),K.hide().show();var fr=jr(G),Pe={x:fr.x===0,y:fr.y===0},Y=function(){var O=Z.navigator.userAgent,hr="indexOf",pr="substring",$=O[hr]("MSIE "),t=O[hr]("Trident/"),o=O[hr]("Edge/"),n=O[hr]("rv:"),l,b=parseInt;return $>0?l=b(O[pr]($+5,O[hr](".",$)),10):t>0?l=b(O[pr](n+3,O[hr](".",n)),10):o>0&&(l=b(O[pr](o+5,O[hr](".",o)),10)),l}();W.extend(Q,{defaultOptions:T,msie:Y,autoUpdateLoop:!1,autoUpdateRecommended:!E.mO(),nativeScrollbarSize:fr,nativeScrollbarIsOverlaid:Pe,nativeScrollbarStyling:function(){var O=!1;K.addClass("os-viewport-native-scrollbars-invisible");try{O=K.css("scrollbar-width")==="none"&&(Y>9||!Y)||Z.getComputedStyle(G,"::-webkit-scrollbar").getPropertyValue("display")==="none"}catch{}return O}(),overlayScrollbarDummySize:{x:30,y:30},cssCalc:ge._cssPropertyValue("width","calc","(1px)")||null,restrictedMeasuring:function(){K.css(xr,q);var O={w:G[s.sW],h:G[s.sH]};K.css(xr,"visible");var hr={w:G[s.sW],h:G[s.sH]};return O.w-hr.w!==0||O.h-hr.h!==0}(),rtlScrollBehavior:function(){K.css({"overflow-y":q,"overflow-x":zr,direction:"rtl"}).scrollLeft(0);var O=K.offset(),hr=H.offset();K.scrollLeft(-999);var pr=H.offset();return{i:O.left===hr.left,n:hr.left!==pr.left}}(),supportTransform:!!ge._cssProperty("transform"),supportTransition:!!ge._cssProperty("transition"),supportPassiveEvents:function(){var O=!1;try{Z.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){O=!0}}))}catch{}return O}(),supportResizeObserver:!!E.rO(),supportMutationObserver:!!E.mO()}),K.removeAttr(s.s).remove(),function(){if(Pe.x&&Pe.y)return;var O=N.abs,hr=E.wW(),pr=E.wH(),$=n(),t=c(function(){if(Ma().length>0){var l=E.wW(),b=E.wH(),D=l-hr,M=b-pr;if(D===0&&M===0)return;var _r=N.round(l/(hr/100)),rr=N.round(b/(pr/100)),tr=O(D),w=O(M),gr=O(_r),ua=O(rr),Mr=n(),kr=tr>2&&w>2,Vr=!o(gr,ua),Ir=Mr!==$&&$>0,Or=kr&&Vr&&Ir,ze=Q.nativeScrollbarSize,pe;Or&&(S.append(K),pe=Q.nativeScrollbarSize=jr(K[0]),K.remove(),(ze.x!==pe.x||ze.y!==pe.y)&&W.each(Ma(),function(){Ma(this)&&Ma(this).update("zoom")})),hr=l,pr=b,$=Mr}},"onResize");function o(l,b){var D=O(l),M=O(b);return!(D===M||D+1===M||D-1===M)}c(o,"differenceIsBiggerThanOne");function n(){var l=Z.screen.deviceXDPI||0,b=Z.screen.logicalXDPI||1;return Z.devicePixelRatio||l/b}c(n,"getWindowDPR"),W(Z).on("resize",t)}();function jr(O){return{x:O[s.oH]-O[s.cH],y:O[s.oW]-O[s.cW]}}c(jr,"calcNativeScrollbarSize")}c(L,"OverlayScrollbarsGlobals");function vr(T){var Q=this,xr=W.inArray,q=E.now,zr="autoUpdate",S=zr+"Interval",K=s.l,G=[],H=[],fr=!1,Pe=33,Y=Pe,jr=q(),O,hr=c(function(){if(G[K]>0&&fr){O=E.rAF()(function(){hr()});var pr=q(),$=pr-jr,t,o,n,l,b,D;if($>Y){jr=pr-$%Y,t=Pe;for(var M=0;M<G[K];M++)o=G[M],o!==P&&(n=o.options(),l=n[zr],b=N.max(1,n[S]),D=q(),(l===!0||l===null)&&D-H[M]>b&&(o.update("auto"),H[M]=new Date(D+=b)),t=N.max(1,N.min(t,b)));Y=t}}else Y=Pe},"loop");Q.add=function(pr){xr(pr,G)===-1&&(G.push(pr),H.push(q()),G[K]>0&&!fr&&(fr=!0,T.autoUpdateLoop=fr,hr()))},Q.remove=function(pr){var $=xr(pr,G);$>-1&&(H.splice($,1),G.splice($,1),G[K]===0&&fr&&(fr=!1,T.autoUpdateLoop=fr,O!==P&&(E.cAF()(O),O=-1)))}}c(vr,"OverlayScrollbarsAutoUpdateLoop");function ir(T,Q,xr,q,zr){var S=E.type,K=W.inArray,G=W.each,H=new C,fr=W[s.p];if(!Ws(T))return;if(Ma(T)){var Pe=Ma(T);return Pe.options(Q),Pe}var Y,jr,O,hr,pr,$,t,o,n,l,b,D,M,_r,rr,tr,w,gr,ua,Mr,kr,Vr,Ir,Or,ze,pe,Me,fa,dr,Rr,Ie={},_e={},je={},Ar={},Ia={},ut="-hidden",re="margin-",be="padding-",Re="border-",Qr="top",Ce="right",ne="bottom",br="left",Ae="min-",Ra="max-",J="width",Tr="height",ha="float",F="",ee="auto",zn="sync",Be="scroll",Wa="100%",Mt="x",It="y",Fe=".",ve=" ",Mn="scrollbar",In="-horizontal",Rn="-vertical",oe=Be+"Left",le=Be+"Top",Tt="mousedown touchstart",Rt="mouseup touchend touchcancel",Wt="mousemove touchmove",Ri="mouseenter",Wi="mouseleave",Wn="keydown",Bn="keyup",Bt="selectstart",Fn="transitionend webkitTransitionEnd oTransitionEnd",Un="__overlayScrollbarsRO__",Le="os-",Bi=Le+"html",Oe=Le+"host",cn=Oe+"-foreign",qn=Oe+"-textarea",Fi=Oe+"-"+Mn+In+ut,Ui=Oe+"-"+Mn+Rn+ut,qi=Oe+"-transition",Vi=Oe+"-rtl",Vn=Oe+"-resize-disabled",vn=Oe+"-scrolling",Ft=Oe+"-overflow",Ft=Oe+"-overflow",Qi=Ft+"-x",Ki=Ft+"-y",on=Le+"textarea",nc=on+"-cover",Qn=Le+"padding",ln=Le+"viewport",Kn=ln+"-native-scrollbars-invisible",Yi=ln+"-native-scrollbars-overlaid",Yn=Le+"content",ic=Le+"content-arrange",sc=Le+"content-glue",cc=Le+"size-auto-observer",ft=Le+"resize-observer",un=Le+"resize-observer-item",$i=un+"-final",fn=Le+"text-inherit",Ba=Le+Mn,ji=Ba+"-track",Gi=ji+"-off",Ji=Ba+"-handle",Xi=Ji+"-off",Zi=Ba+"-unusable",Ut=Ba+"-"+ee+ut,$n=Ba+"-corner",qt=$n+"-resize",rs=qt+"-both",es=qt+In,as=qt+Rn,vc=Ba+In,oc=Ba+Rn,ht=Le+"dragging",hn=Le+"theme-none",jn=[Kn,Yi,Gi,Xi,Zi,Ut,qt,rs,es,as,ht].join(ve),Gn=[],Jn=[s.ti],ts,Vt,ae,Fa={},lc="added removed on contract",ns,dt={},is,Xn=42,Zn="load",Qt=[],dn,ga,Lt,pt,sr,U,da,pa,Ge,er,Br,Ua,we,qa,ke,_t,pn,Kt,bt,_n,Yt,$t,kt,Za,Ue,bn,yn,rt,yt,Je,jt,mt,ss,Ca,Gt,Xe,et,cs,ri,vs,os,ls,us,fs,hs,ds,Ht,St,ei,ai,ps,_s,bs,ys,ms,xs,ti,gs,Va,Jt,ni,mn,ii,Cs,As,Os,at,ws={},xn,gn,si,ci,Aa,Es=["wrap","cols","rows"],vi=[s.i,s.c,s.s,"open"].concat(Jn),oi=[],li,Ts,Ls,ui,fi,tt,Ze,xt,hi,nt,Cn,An,di,pi;function We(r,a,i,v,u){var d=E.isA(a)&&E.isA(i),_=v?"removeEventListener":"addEventListener",g=v?"off":"on",m=d?!1:a.split(ve),A=0,B=W.isPlainObject(u),z=b&&(B?u._passive:u)||!1,j=B&&(u._capture||!1),X=b?{passive:z,capture:j}:j;if(d)for(;A<a[s.l];A++)We(r,a[A],i[A],v,u);else for(;A<m[s.l];A++)b?r[0][_](m[A],i,X):r[g](m[A],i)}c(We,"setupResponsiveEventListener");function _a(r,a,i,v){We(r,a,i,!1,v),oi.push(E.bind(We,0,r,a,i,!0,v))}c(_a,"addDestroyEventListener");function On(r,a){if(r){var i=E.rO(),v="animationstart mozAnimationStart webkitAnimationStart MSAnimationStart",u="childNodes",d=3333333,_=c(function(){r[le](d)[oe](dr?O.n?-d:O.i?0:d:d),a()},"callback");if(a){if(D){var g=r.addClass("observed").append(Ve(ft)).contents()[0],m=g[Un]=new i(_);m.observe(g)}else if(pr>9||!hr){r.prepend(Ve(ft,Ve({c:un,dir:"ltr"},Ve(un,Ve($i))+Ve(un,Ve({c:$i,style:"width: 200%; height: 200%"})))));var A=r[0][u][0][u][0],B=W(A[u][1]),z=W(A[u][0]),j=W(z[0][u][0]),X=A[s.oW],cr=A[s.oH],V,or,ar,Hr,me=2,Kr=q.nativeScrollbarSize,Se=c(function(){z[oe](d)[le](d),B[oe](d)[le](d)},"reset"),ie=c(function(){or=0,V&&(X=ar,cr=Hr,_())},"onResized"),Jr=c(function(Cr){return ar=A[s.oW],Hr=A[s.oH],V=ar!=X||Hr!=cr,Cr&&V&&!or?(E.cAF()(or),or=E.rAF()(ie)):Cr||ie(),Se(),Cr&&(E.prvD(Cr),E.stpP(Cr)),!1},"onScroll"),Xr={},Fr={};gt(Fr,F,[-((Kr.y+1)*me),Kr.x*-me,Kr.y*-me,-((Kr.x+1)*me)]),W(A).css(Fr),z.on(Be,Jr),B.on(Be,Jr),r.on(v,function(){Jr(!1)}),Xr[J]=d,Xr[Tr]=d,j.css(Xr),Se()}else{var te=kt.attachEvent,ma=pr!==P;if(te)r.prepend(Ve(ft)),Dt(r,Fe+ft)[0].attachEvent("onresize",_);else{var Ur=kt.createElement(y.o);Ur.setAttribute(s.ti,"-1"),Ur.setAttribute(s.c,ft),Ur.onload=function(){var Cr=this.contentDocument.defaultView;Cr.addEventListener("resize",_),Cr.document.documentElement.style.display="none"},Ur.type="text/html",ma&&r.prepend(Ur),Ur.data="about:blank",ma||r.prepend(Ur),r.on(v,_)}}if(r[0]===yn){var aa=c(function(){var Cr=U.css("direction"),k={},Sr=0,Dr=!1;return Cr!==us&&(Cr==="ltr"?(k[br]=0,k[Ce]=ee,Sr=d):(k[br]=ee,k[Ce]=0,Sr=O.n?-d:O.i?0:d),pa.children().eq(0).css(k),pa[oe](Sr)[le](d),us=Cr,Dr=!0),Dr},"directionChanged");aa(),_a(r,Be,function(Cr){return aa()&&ba(),E.prvD(Cr),E.stpP(Cr),!1})}}else if(D){var g=r.contents()[0],wr=g[Un];wr&&(wr.disconnect(),delete g[Un])}else Ka(r.children(Fe+ft).eq(0))}}c(On,"setupResizeObserver");function uc(){if(M){var r=11,a=E.mO(),i=E.now(),v,u,d,_,g,m,A,B,z,j;si=c(function(X){var cr=!1,V=!1,or,ar=[];return rr&&!Rr&&(G(X,function(){or=this,v=or.target,u=or.attributeName,d=u===s.c,_=or.oldValue,g=v.className,Mr&&d&&!V&&_.indexOf(cn)>-1&&g.indexOf(cn)<0&&(m=Rs(!0),Ue.className=g.split(ve).concat(_.split(ve).filter(function(Hr){return Hr.match(m)})).join(ve),cr=V=!0),cr||(cr=d?Ns(_,g):u===s.s?_!==v[s.s].cssText:!0),ar.push(u)}),mi(ar),cr&&H.update(V||ee)),cr},"_mutationObserverHostCallback"),ci=c(function(X){var cr=!1,V;return rr&&!Rr&&(G(X,function(){return V=this,cr=dc(V),!cr}),cr&&(B=E.now(),z=et||Xe,j=c(function(){tr||(i=B,w&&xi(),z?ba():H.update(ee))},"action"),clearTimeout(A),r<=0||B-i>r||!z?j():A=setTimeout(j,r))),cr},"_mutationObserverContentCallback"),xn=new a(si),gn=new a(ci)}}c(uc,"createMutationObservers");function ks(){M&&!Aa&&(xn.observe(Ue,{attributes:!0,attributeOldValue:!0,attributeFilter:vi}),gn.observe(w?Za:Je,{attributes:!0,attributeOldValue:!0,subtree:!w,childList:!w,characterData:!w,attributeFilter:w?Es:vi}),Aa=!0)}c(ks,"connectMutationObservers");function _i(){M&&Aa&&(xn.disconnect(),gn.disconnect(),Aa=!1)}c(_i,"disconnectMutationObservers");function fc(){if(!Rr){var r,a={w:yn[s.sW],h:yn[s.sH]};r=Ct(a,bs),bs=a,r&&ba({_hostSizeChanged:!0})}}c(fc,"hostOnResized");function Hs(){xt&&Oa(!0)}c(Hs,"hostOnMouseEnter");function Ss(){xt&&!pt.hasClass(ht)&&Oa(!1)}c(Ss,"hostOnMouseLeave");function hc(){Ze&&(Oa(!0),clearTimeout(Ls),Ls=setTimeout(function(){Ze&&!tr&&Oa(!1)},100))}c(hc,"hostOnMouseMove");function Xt(r){return E.prvD(r),!1}c(Xt,"documentOnSelectStart");function bi(r){var a=W(r.target);Fs(function(i,v){a.is(v)&&ba({_contentSizeChanged:!0})})}c(bi,"updateOnLoadCallback");function yi(r){r||yi(!0),We(U,Wt.split(ve)[0],hc,!Ze||r,!0),We(U,[Ri,Wi],[Hs,Ss],!xt||r,!0),!rr&&!r&&U.one("mouseover",Hs)}c(yi,"setupHostMouseTouchEvents");function Ds(){var r={};return gr&&Ua&&(r.w=wa(Ua.css(Ae+J)),r.h=wa(Ua.css(Ae+Tr)),r.c=Ct(r,at),r.f=!0),at=r,!!r.c}c(Ds,"bodyMinSizeChanged");function Ns(r,a){var i=typeof a==y.s?a.split(ve):[],v=typeof r==y.s?r.split(ve):[],u=gc(v,i),d=K(hn,u),_,g;if(d>-1&&u.splice(d,1),u[s.l]>0){for(g=Rs(!0,!0),_=0;_<u.length;_++)if(!u[_].match(g))return!0}return!1}c(Ns,"hostClassNamesChanged");function dc(r){var a=r.attributeName,i=r.target,v=r.type,u="closest";if(i===Je)return a===null;if(v==="attributes"&&(a===s.c||a===s.s)&&!w){if(a===s.c&&W(i).hasClass(Oe))return Ns(r.oldValue,i.className);if(typeof i[u]!=y.f)return!0;if(i[u](Fe+ft)!==null||i[u](Fe+Ba)!==null||i[u](Fe+$n)!==null)return!1}return!0}c(dc,"isUnknownMutation");function pc(){if(Rr)return!1;var r=Bs(),a=w&&Xe&&!mn?sr.val().length:0,i=!Aa&&Xe&&!w,v={},u,d,_,g;return i&&(u=Br.css(ha),v[ha]=dr?Ce:br,v[J]=ee,Br.css(v)),g={w:r[s.sW]+a,h:r[s.sH]+a},i&&(v[ha]=u,v[J]=Wa,Br.css(v)),d=Ds(),_=Ct(g,_s),_s=g,_||d}c(pc,"updateAutoContentSizeChanged");function _c(){if(!(Rr||Aa)){var r,a,i,v=[],u=[{_elem:U,_attrs:vi.concat(":visible")},{_elem:w?sr:P,_attrs:Es}];return G(u,function(d,_){r=_._elem,r&&G(_._attrs,function(g,m){a=m.charAt(0)===":"?r.is(m):r.attr(m),i=ws[m],Ct(a,i)&&v.push(m),ws[m]=a})}),mi(v),v[s.l]>0}}c(_c,"meaningfulAttrsChanged");function bc(r){if(!rr)return!0;var a="flex-grow",i="flex-shrink",v="flex-basis",u=[J,Ae+J,Ra+J,re+br,re+Ce,br,Ce,"font-weight","word-spacing",a,i,v],d=[be+br,be+Ce,Re+br+J,Re+Ce+J],_=[Tr,Ae+Tr,Ra+Tr,re+Qr,re+ne,Qr,ne,"line-height",a,i,v],g=[be+Qr,be+ne,Re+Qr+J,Re+ne+J],m="s",A="v-s",B=Ht.x===m||Ht.x===A,z=Ht.y===m||Ht.y===A,j=!1,X=c(function(cr,V){for(var or=0;or<cr[s.l];or++)if(cr[or]===V)return!0;return!1},"checkPropertyName");return z&&(j=X(_,r),!j&&!kr&&(j=X(g,r))),B&&!j&&(j=X(u,r),!j&&!kr&&(j=X(d,r))),j}c(bc,"isSizeAffectingCSSProperty");function mi(r){r=r||Jn,G(r,function(a,i){if(E.inA(i,Jn)>-1){var v=sr.attr(i);S(v)==y.s?er.attr(i,v):er.removeAttr(i)}})}c(mi,"updateViewportAttrsFromTarget");function xi(){if(!Rr){var r=!mn,a=Ar.w,i=Ar.h,v={},u=Xe||r,d,_,g,m;return v[Ae+J]=F,v[Ae+Tr]=F,v[J]=ee,sr.css(v),d=Za[s.oW],_=u?N.max(d,Za[s.sW]-1):1,v[J]=Xe?ee:Wa,v[Ae+J]=Wa,v[Tr]=ee,sr.css(v),g=Za[s.oH],m=N.max(g,Za[s.sH]-1),v[J]=_,v[Tr]=m,qa.css(v),v[Ae+J]=a,v[Ae+Tr]=i,sr.css(v),{_originalWidth:d,_originalHeight:g,_dynamicWidth:_,_dynamicHeight:m}}}c(xi,"textareaUpdate");function ba(r){clearTimeout(is),r=r||{},dt._hostSizeChanged|=r._hostSizeChanged,dt._contentSizeChanged|=r._contentSizeChanged,dt._force|=r._force;var a=E.now(),i=!!dt._hostSizeChanged,v=!!dt._contentSizeChanged,u=!!dt._force,d=r._changedOptions,_=Xn>0&&rr&&!tr&&!u&&!d&&a-ns<Xn&&!et&&!Xe,g;if(_&&(is=setTimeout(ba,Xn)),!(tr||_||Rr&&!d||rr&&!u&&(g=U.is(":hidden"))||U.css("display")==="inline")){ns=a,dt={},$&&!(Y.x&&Y.y)?(o.x=0,o.y=0):o=He({},q.nativeScrollbarSize),Ia={x:(o.x+(Y.x?0:3))*3,y:(o.y+(Y.y?0:3))*3},d=d||{};var m=c(function(){return Ct.apply(this,[].slice.call(arguments).concat([u]))},"checkCacheAutoForce"),A={x:er[oe](),y:er[le]()},B=ae.scrollbars,z=ae.textarea,j=B.visibility,X=m(j,ys),cr=B.autoHide,V=m(cr,ms),or=B.clickScrolling,ar=m(or,xs),Hr=B.dragScrolling,me=m(Hr,ti),Kr=ae.className,Se=m(Kr,Jt),ie=ae.resize,Jr=m(ie,gs)&&!gr,Xr=ae.paddingAbsolute,Fr=m(Xr,fs),te=ae.clipAlways,ma=m(te,hs),Ur=ae.sizeAutoCapable&&!gr,aa=m(Ur,ps),wr=ae.nativeScrollbarsOverlaid.showNativeScrollbars,Cr=m(wr,ei),k=ae.autoUpdate,Sr=m(k,ai),Dr=ae.overflowBehavior,Qe=m(Dr,Ht,u),Ya=z.dynWidth,At=m(Os,Ya),De=z.dynHeight,Ea=m(As,De);if(fi=cr==="n",tt=cr==="s",Ze=cr==="m",xt=cr==="l",ui=B.autoHideDelay,ni=Jt,Cn=ie==="n",An=ie==="b",di=ie==="h",pi=ie==="v",Va=ae.normalizeRTL,wr=wr&&Y.x&&Y.y,ys=j,ms=cr,xs=or,ti=Hr,Jt=Kr,gs=ie,fs=Xr,hs=te,ps=Ur,ei=wr,ai=k,Ht=He({},Dr),Os=Ya,As=De,Ca=Ca||{x:!1,y:!1},Se&&(ye(U,ni+ve+hn),Gr(U,Kr!==P&&Kr!==null&&Kr.length>0?Kr:hn)),Sr&&(k===!0||k===null&&hr?(_i(),zr.add(H)):(zr.remove(H),ks())),aa)if(Ur)if(we?we.show():(we=W(Ve(sc)),Ge.before(we)),Vr)da.show();else{da=W(Ve(cc)),bn=da[0],we.before(da);var Ta={w:-1,h:-1};On(da,function(){var wt={w:bn[s.oW],h:bn[s.oH]};Ct(wt,Ta)&&(rr&&et&&wt.h>0||Xe&&wt.w>0||rr&&!et&&wt.h===0||!Xe&&wt.w===0)&&ba(),Ta=wt}),Vr=!0,t!==null&&da.css(Tr,t+"(100% + 1px)")}else Vr&&da.hide(),we&&we.hide();u&&(pa.find("*").trigger(Be),Vr&&da.find("*").trigger(Be)),g=g===P?U.is(":hidden"):g;var Ke=w?sr.attr("wrap")!=="off":!1,rn=m(Ke,mn),Ye=U.css("direction"),Ee=m(Ye,ls),$a=U.css("box-sizing"),$e=m($a,cs),Wr=Ei(be),ue;try{ue=Vr?bn[s.bCR]():null}catch{return}dr=Ye==="rtl",kr=$a==="border-box";var fe=dr?br:Ce,lr=dr?Ce:br,ta=!1,it=Vr&&U.css(ha)!=="none"?N.round(ue.right-ue.left)===0&&(Xr?!0:Ue[s.cW]-Ir>0):!1;if(Ur&&!it){var Ot=Ue[s.oW],ja=we.css(J);we.css(J,ee);var La=Ue[s.oW];we.css(J,ja),ta=Ot!==La,ta||(we.css(J,Ot+1),La=Ue[s.oW],we.css(J,ja),ta=Ot!==La)}var nr=(it||ta)&&Ur&&!g,he=m(nr,Xe),Ga=!nr&&Xe,Lr=Vr&&Ur&&!g?N.round(ue.bottom-ue.top)===0:!1,de=m(Lr,et),na=!Lr&&et,en=nr&&kr||!kr,wn=Lr&&kr||!kr,ia=Ei(Re,"-"+J,!en,!wn),ka=Ei(re),I={},R={},Yr=c(function(){return{w:Ue[s.cW],h:Ue[s.cH]}},"getHostSize"),Te=c(function(){return{w:rt[s.oW]+N.max(0,Je[s.cW]-Je[s.sW]),h:rt[s.oH]+N.max(0,Je[s.cH]-Je[s.sH])}},"getViewportSize"),yr=Ir=Wr.l+Wr.r,sa=Or=Wr.t+Wr.b;if(yr*=Xr?1:0,sa*=Xr?1:0,Wr.c=m(Wr,ri),ze=ia.l+ia.r,pe=ia.t+ia.b,ia.c=m(ia,vs),Me=ka.l+ka.r,fa=ka.t+ka.b,ka.c=m(ka,os),mn=Ke,ls=Ye,cs=$a,Xe=nr,et=Lr,ri=Wr,vs=ia,os=ka,Ee&&Vr&&da.css(ha,lr),Wr.c||Ee||Fr||he||de||$e||aa){var Zr={},Ne={},st=[Wr.t,Wr.r,Wr.b,Wr.l];gt(R,re,[-Wr.t,-Wr.r,-Wr.b,-Wr.l]),Xr?(gt(Zr,F,st),gt(w?Ne:I,be)):(gt(Zr,F),gt(w?Ne:I,be,st)),Ge.css(Zr),sr.css(Ne)}Ar=Te();var Nr=w?xi():!1,ca=w&&m(Nr,Cs),Ha=w&&Nr?{w:Ya?Nr._dynamicWidth:Nr._originalWidth,h:De?Nr._dynamicHeight:Nr._originalHeight}:{};if(Cs=Nr,Lr&&(de||Fr||$e||Wr.c||ia.c)?I[Tr]=ee:(de||Fr)&&(I[Tr]=Wa),nr&&(he||Fr||$e||Wr.c||ia.c||Ee)?(I[J]=ee,R[Ra+J]=Wa):(he||Fr)&&(I[J]=Wa,I[ha]=F,R[Ra+J]=F),nr?(R[J]=ee,I[J]=ge._cssPropertyValue(J,"max-content intrinsic")||ee,I[ha]=lr):R[J]=F,Lr?R[Tr]=Ha.h||Je[s.cH]:R[Tr]=F,Ur&&we.css(R),Br.css(I),I={},R={},i||v||ca||Ee||$e||Fr||he||nr||de||Lr||Cr||Qe||ma||Jr||X||V||me||ar||At||Ea||rn){var se="overflow",Ja=se+"-x",Sa=se+"-y",ct="hidden",va="visible";if(!$){var Da={},ki=Ca.y&&Gt.ys&&!wr?Y.y?er.css(fe):-o.y:0,wc=Ca.x&&Gt.xs&&!wr?Y.x?er.css(ne):-o.x:0;gt(Da,F),er.css(Da)}var vt=Bs(),an={w:Ha.w||vt[s.cW],h:Ha.h||vt[s.cH]},Us={w:vt[s.sW],h:vt[s.sH]};$||(Da[ne]=na?F:wc,Da[fe]=Ga?F:ki,er.css(Da)),Ar=Te();var tn=Yr(),Hi={w:tn.w-Me-ze-(kr?0:Ir),h:tn.h-fa-pe-(kr?0:Or)},Nt={w:N.max((nr?an.w:Us.w)+yr,Hi.w),h:N.max((Lr?an.h:Us.h)+sa,Hi.h)};if(Nt.c=m(Nt,ds),ds=Nt,Ur){(Nt.c||Lr||nr)&&(R[J]=Nt.w,R[Tr]=Nt.h,w||(an={w:vt[s.cW],h:vt[s.cH]}));var qs={},Vs=c(function($r){var xe=ra($r),oa=xe._w_h,qr=xe._width_height,ur=$r?nr:Lr,xa=$r?ze:pe,Et=$r?Ir:Or,zi=$r?Me:fa,Sn=Ar[oa]-xa-zi-(kr?0:Et);(!ur||!ur&&ia.c)&&(R[qr]=Hi[oa]-1),ur&&an[oa]<Sn&&($r&&w?!Ke:!0)&&(w&&(qs[qr]=wa(qa.css(qr))-1),R[qr]-=1),an[oa]>0&&(R[qr]=N.max(1,R[qr]))},"setContentGlueElementCSSfunction");Vs(!0),Vs(!1),w&&qa.css(qs),we.css(R)}nr&&(I[J]=Wa),nr&&!kr&&!Aa&&(I[ha]="none"),Br.css(I),I={};var ot={w:vt[s.sW],h:vt[s.sH]};ot.c=v=m(ot,mt),mt=ot,Ar=Te(),tn=Yr(),i=m(tn,jt),jt=tn;var Si=w&&(Ar.w===0||Ar.h===0),En=St,Pt={},nn={},Qs={},Na={},Pr={},Er={},sn={},Ks=rt[s.bCR](),Ys=c(function($r){var xe=ra($r),oa=ra(!$r),qr=oa._x_y,ur=xe._x_y,xa=xe._w_h,Et=xe._width_height,zi=Be+xe._Left_Top+"Max",Sn=Ks[Et]?N.abs(Ks[Et]-Ar[xa]):0,Wc=En&&En[ur]>0&&yt[zi]===0;Pt[ur]=Dr[ur]==="v-s",nn[ur]=Dr[ur]==="v-h",Qs[ur]=Dr[ur]==="s",Na[ur]=N.max(0,N.round((ot[xa]-Ar[xa])*100)/100),Na[ur]*=Si||Wc&&Sn>0&&Sn<1?0:1,Pr[ur]=Na[ur]>0,Er[ur]=Pt[ur]||nn[ur]?Pr[qr]&&!Pt[qr]&&!nn[qr]:Pr[ur],Er[ur+"s"]=Er[ur]?Qs[ur]||Pt[ur]:!1,sn[ur]=Pr[ur]&&Er[ur+"s"]},"setOverflowVariables");if(Ys(!0),Ys(!1),Na.c=m(Na,St),St=Na,Pr.c=m(Pr,Ca),Ca=Pr,Er.c=m(Er,Gt),Gt=Er,Y.x||Y.y){var Ec="px solid transparent",Di={},Xa={},Tn=u,Ni;(Pr.x||Pr.y)&&(Xa.w=Y.y&&Pr.y?ot.w+jr.y:F,Xa.h=Y.x&&Pr.x?ot.h+jr.x:F,Tn=m(Xa,ss),ss=Xa),(Pr.c||Er.c||ot.c||Ee||he||de||nr||Lr||Cr)&&(I[re+lr]=I[Re+lr]=F,Ni=c(function($r){var xe=ra($r),oa=ra(!$r),qr=xe._x_y,ur=$r?ne:fe,xa=$r?Lr:nr;Y[qr]&&Pr[qr]&&Er[qr+"s"]?(I[re+ur]=xa?wr?F:jr[qr]:F,I[Re+ur]=($r?!xa:!0)&&!wr?jr[qr]+Ec:F):(Xa[oa._w_h]=I[re+ur]=I[Re+ur]=F,Tn=!0)},"setContentElementCSS"),$?ea(er,Kn,!wr):(Ni(!0),Ni(!1))),wr&&(Xa.w=Xa.h=F,Tn=!0),Tn&&!$&&(Di[J]=Er.y?Xa.w:F,Di[Tr]=Er.x?Xa.h:F,Ua||(Ua=W(Ve(ic)),er.prepend(Ua)),Ua.css(Di)),Br.css(I)}var ce={},Zr={},Pi;if((i||Pr.c||Er.c||ot.c||Qe||$e||Cr||Ee||ma||de)&&(ce[lr]=F,Pi=c(function($r){var xe=ra($r),oa=ra(!$r),qr=xe._x_y,ur=xe._X_Y,xa=$r?ne:fe,Et=c(function(){ce[xa]=F,Ie[oa._w_h]=0},"reset");Pr[qr]&&Er[qr+"s"]?(ce[se+ur]=Be,wr||$?Et():(ce[xa]=-(Y[qr]?jr[qr]:o[qr]),Ie[oa._w_h]=Y[qr]?jr[oa._x_y]:0)):(ce[se+ur]=F,Et())},"setViewportCSS"),Pi(!0),Pi(!1),!$&&(Ar.h<Ia.x||Ar.w<Ia.y)&&(Pr.x&&Er.x&&!Y.x||Pr.y&&Er.y&&!Y.y)?(ce[be+Qr]=Ia.x,ce[re+Qr]=-Ia.x,ce[be+lr]=Ia.y,ce[re+lr]=-Ia.y):ce[be+Qr]=ce[re+Qr]=ce[be+lr]=ce[re+lr]=F,ce[be+fe]=ce[re+fe]=F,Pr.x&&Er.x||Pr.y&&Er.y||Si?w&&Si&&(Zr[Ja]=Zr[Sa]=ct):(!te||nn.x||Pt.x||nn.y||Pt.y)&&(w&&(Zr[Ja]=Zr[Sa]=F),ce[Ja]=ce[Sa]=va),Ge.css(Zr),er.css(ce),ce={},(Pr.c||$e||he||de)&&!(Y.x&&Y.y))){var Ln=Je[s.s],Tc;Ln.webkitTransform="scale(1)",Ln.display="run-in",Tc=Je[s.oH],Ln.display=F,Ln.webkitTransform=F}if(I={},Ee||he||de)if(dr&&nr){var Lc=Br.css(ha),$s=N.round(Br.css(ha,F).css(br,F).position().left);Br.css(ha,Lc);var kc=N.round(Br.position().left);$s!==kc&&(I[br]=$s)}else I[br]=F;if(Br.css(I),w&&v){var Pa=Cc();if(Pa){var js=ii===P?!0:Pa._rows!==ii._rows,Gs=Pa._cursorRow,Hc=Pa._cursorColumn,Sc=Pa._widestRow,Dc=Pa._rows,Nc=Pa._columns,Pc=Pa._cursorPosition,zc=Pa._cursorMax,Js=Pc>=zc&&li,kn={x:!Ke&&Hc===Nc&&Gs===Sc?St.x:-1,y:(Ke?Js||js&&(En?A.y===En.y:!1):(Js||js)&&Gs===Dc)?St.y:-1};A.x=kn.x>-1?dr&&Va&&O.i?0:kn.x:A.x,A.y=kn.y>-1?kn.y:A.y}ii=Pa}dr&&O.i&&Y.y&&Pr.x&&Va&&(A.x+=Ie.w||0),nr&&U[oe](0),Lr&&U[le](0),er[oe](A.x)[le](A.y);var Mc=j==="v",Ic=j==="h",Rc=j==="a",Hn=c(function($r,xe){xe=xe===P?$r:xe,Ms(!0,$r,sn.x),Ms(!1,xe,sn.y)},"refreshScrollbarsVisibility");ea(U,Ft,Er.x||Er.y),ea(U,Qi,Er.x),ea(U,Ki,Er.y),Ee&&!gr&&ea(U,Vi,dr),gr&&Gr(U,Vn),Jr&&(ea(U,Vn,Cn),ea(ke,qt,!Cn),ea(ke,rs,An),ea(ke,es,di),ea(ke,as,pi)),(X||Qe||Er.c||Pr.c||Cr)&&(wr?Cr&&(ye(U,vn),wr&&Hn(!1)):Rc?Hn(sn.x,sn.y):Mc?Hn(!0):Ic&&Hn(!1)),(V||Cr)&&(yi(!xt&&!Ze),Oa(fi,!fi)),(i||Na.c||de||he||Jr||$e||Fr||Cr||Ee)&&(Oi(!0),ya(!0),Oi(!1),ya(!1)),ar&&Is(!0,or),me&&Is(!1,Hr),qe("onDirectionChanged",{isRTL:dr,dir:Ye},Ee),qe("onHostSizeChanged",{width:jt.w,height:jt.h},i),qe("onContentSizeChanged",{width:mt.w,height:mt.h},v),qe("onOverflowChanged",{x:Pr.x,y:Pr.y,xScrollable:Er.xs,yScrollable:Er.ys,clipped:Er.x||Er.y},Pr.c||Er.c),qe("onOverflowAmountChanged",{x:Na.x,y:Na.y},Na.c)}gr&&at&&(Ca.c||at.c)&&(at.f||Ds(),Y.y&&Ca.x&&Br.css(Ae+J,at.w+jr.y),Y.x&&Ca.y&&Br.css(Ae+Tr,at.h+jr.x),at.c=!1),rr&&d.updateOnLoad&&Ps(),qe("onUpdated",{forced:u})}}c(ba,"update");function Ps(){w||Fs(function(r,a){Br.find(a).each(function(i,v){E.inA(v,Qt)<0&&(Qt.push(v),W(v).off(Zn,bi).on(Zn,bi))})})}c(Ps,"updateElementsOnLoad");function gi(r){var a=f._validate(r,f._template,!0,Vt);return Vt=He({},Vt,a._default),ae=He({},ae,a._prepared),a._prepared}c(gi,"setOptions");function Ci(r){var a="parent",i="os-resize-observer-host",v=on+ve+fn,u=w?ve+fn:F,d=ae.textarea.inheritedAttrs,_={},g=c(function(){var B=r?sr:U;G(_,function(z,j){S(j)==y.s&&(z==s.c?B.addClass(j):B.attr(z,j))})},"applyAdoptedAttrs"),m=[Oe,cn,qn,Vn,Vi,Fi,Ui,qi,vn,Ft,Qi,Ki,hn,on,fn,Jt].join(ve),A={};U=U||(w?Mr?sr[a]()[a]()[a]()[a]():W(Ve(qn)):sr),Br=Br||Qa(Yn+u),er=er||Qa(ln+u),Ge=Ge||Qa(Qn+u),pa=pa||Qa(i),qa=qa||(w?Qa(nc):P),Mr&&Gr(U,cn),r&&ye(U,m),d=S(d)==y.s?d.split(ve):d,E.isA(d)&&w&&G(d,function(B,z){S(z)==y.s&&(_[z]=r?U.attr(z):sr.attr(z))}),r?(Mr&&rr?(pa.children().remove(),G([Ge,er,Br,qa],function(B,z){z&&ye(z.removeAttr(s.s),jn)}),Gr(U,w?qn:Oe)):(Ka(pa),Br.contents().unwrap().unwrap().unwrap(),w&&(sr.unwrap(),Ka(U),Ka(qa),g())),w&&sr.removeAttr(s.s),gr&&ye(Lt,Bi)):(w&&(ae.sizeAutoCapable||(A[J]=sr.css(J),A[Tr]=sr.css(Tr)),Mr||sr.addClass(fn).wrap(U),U=sr[a]().css(A)),Mr||(Gr(sr,w?v:Oe),U.wrapInner(Br).wrapInner(er).wrapInner(Ge).prepend(pa),Br=Dt(U,Fe+Yn),er=Dt(U,Fe+ln),Ge=Dt(U,Fe+Qn),w&&(Br.prepend(qa),g())),$&&Gr(er,Kn),Y.x&&Y.y&&Gr(er,Yi),gr&&Gr(Lt,Bi),yn=pa[0],Ue=U[0],rt=Ge[0],yt=er[0],Je=Br[0],mi())}c(Ci,"setupStructureDOM");function yc(){var r=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],a=[],i,v,u=175,d="focus";function _(V){xi(),H.update(ee),V&&hr&&clearInterval(i)}c(_,"updateTextarea");function g(V){return sr[oe](O.i&&Va?9999999:0),sr[le](0),E.prvD(V),E.stpP(V),!1}c(g,"textareaOnScroll");function m(V){setTimeout(function(){tr||_()},50)}c(m,"textareaOnDrop");function A(){li=!0,Gr(U,d)}c(A,"textareaOnFocus");function B(){li=!1,a=[],ye(U,d),_(!0)}c(B,"textareaOnFocusout");function z(V){var or=V.keyCode;K(or,r)<0&&(a[s.l]||(_(),i=setInterval(_,1e3/60)),K(or,a)<0&&a.push(or))}c(z,"textareaOnKeyDown");function j(V){var or=V.keyCode,ar=K(or,a);K(or,r)<0&&(ar>-1&&a.splice(ar,1),a[s.l]||_(!0))}c(j,"textareaOnKeyUp");function X(V){ai!==!0&&(V=V.originalEvent||V,bc(V.propertyName)&&H.update(ee))}c(X,"contentOnTransitionEnd");function cr(V){Rr||(v!==P?clearTimeout(v):((tt||Ze)&&Oa(!0),Zt()||Gr(U,vn),qe("onScrollStart",V)),nt||(ya(!0),ya(!1)),qe("onScroll",V),v=setTimeout(function(){tr||(clearTimeout(v),v=P,(tt||Ze)&&Oa(!1),Zt()||ye(U,vn),qe("onScrollStop",V))},u))}c(cr,"viewportOnScroll"),w?(pr>9||!hr?_a(sr,"input",_):_a(sr,[Wn,Bn],[z,j]),_a(sr,[Be,"drop",d,d+"out"],[g,m,A,B])):_a(Br,Fn,X),_a(er,Be,cr,!0)}c(yc,"setupStructureEvents");function Ai(r){var a=c(function(d){var _=d?vc:oc,g=Qa(Ba+ve+_,!0),m=Qa(ji,g),A=Qa(Ji,g);return!Mr&&!r&&(g.append(m),m.append(A)),{_scrollbar:g,_track:m,_handle:A}},"selectOrGenerateScrollbarDOM");function i(d){var _=ra(d),g=_._scrollbar,m=_._track,A=_._handle;Mr&&rr?G([g,m,A],function(B,z){ye(z.removeAttr(s.s),jn)}):Ka(g||a(d)._scrollbar)}c(i,"resetScrollbarDOM");var v,u;r?(i(!0),i()):(v=a(!0),u=a(),_t=v._scrollbar,pn=v._track,Kt=v._handle,bt=u._scrollbar,_n=u._track,Yt=u._handle,Mr||(Ge.after(bt),Ge.after(_t)))}c(Ai,"setupScrollbarsDOM");function zs(r){var a=ra(r),i=a._info,v=$t.top!==$t,u=a._x_y,d=a._X_Y,_=Be+a._Left_Top,g="active",m="snapHandle",A="click",B=1,z=[16,17],j,X,cr,V;function or(k){return pr&&v?k["screen"+d]:E.page(k)[u]}c(or,"getPointerPosition");function ar(k){return ae.scrollbars[k]}c(ar,"getPreparedScrollbarsOption");function Hr(){B=.5}c(Hr,"increaseTrackScrollAmount");function me(){B=1}c(me,"decreaseTrackScrollAmount");function Kr(k){E.stpP(k)}c(Kr,"stopClickEventPropagation");function Se(k){K(k.keyCode,z)>-1&&Hr()}c(Se,"documentKeyDown");function ie(k){K(k.keyCode,z)>-1&&me()}c(ie,"documentKeyUp");function Jr(k){var Sr=k.originalEvent||k,Dr=Sr.touches!==P;return Rr||tr||Zt()||!ti||Dr&&!ar("touchSupport")?!1:E.mBtn(k)===1||Dr}c(Jr,"onMouseTouchDownContinue");function Xr(k){if(Jr(k)){var Sr=i._trackLength,Dr=i._handleLength,Qe=i._maxScroll,Ya=(or(k)-cr)*V,At=Ya/(Sr-Dr),De=Qe*At;De=isFinite(De)?De:0,dr&&r&&!O.i&&(De*=-1),er[_](N.round(X+De)),nt&&ya(r,X+De),b||E.prvD(k)}else Fr(k)}c(Xr,"documentDragMove");function Fr(k){if(k=k||k.originalEvent,We(ga,[Wt,Rt,Wn,Bn,Bt],[Xr,Fr,Se,ie,Xt],!0),E.rAF()(function(){We(ga,A,Kr,!0,{_capture:!0})}),nt&&ya(r,!0),nt=!1,ye(pt,ht),ye(a._handle,g),ye(a._track,g),ye(a._scrollbar,g),X=P,cr=P,V=1,me(),j!==P&&(H.scrollStop(),clearTimeout(j),j=P),k){var Sr=Ue[s.bCR](),Dr=k.clientX>=Sr.left&&k.clientX<=Sr.right&&k.clientY>=Sr.top&&k.clientY<=Sr.bottom;Dr||Ss(),(tt||Ze)&&Oa(!1)}}c(Fr,"documentMouseTouchUp");function te(k){Jr(k)&&ma(k)}c(te,"onHandleMouseTouchDown");function ma(k){X=er[_](),X=isNaN(X)?0:X,(dr&&r&&!O.n||!dr)&&(X=X<0?0:X),V=Ti()[u],cr=or(k),nt=!ar(m),Gr(pt,ht),Gr(a._handle,g),Gr(a._scrollbar,g),We(ga,[Wt,Rt,Bt],[Xr,Fr,Xt]),E.rAF()(function(){We(ga,A,Kr,!1,{_capture:!0})}),(pr||!ua)&&E.prvD(k),E.stpP(k)}c(ma,"onHandleMouseTouchDownAction");function Ur(k){if(Jr(k)){var Sr=a._info._handleLength/Math.round(N.min(1,Ar[a._w_h]/mt[a._w_h])*a._info._trackLength),Dr=N.round(Ar[a._w_h]*Sr),Qe=270*Sr,Ya=400*Sr,At=a._track.offset()[a._left_top],De=k.ctrlKey,Ea=k.shiftKey,Ta=Ea&&De,Ke=!0,rn="linear",Ye,Ee,$a=c(function(ue){nt&&ya(r,ue)},"scrollActionFinsished"),$e=c(function(){$a(),ma(k)},"scrollActionInstantFinished"),Wr=c(function(){if(!tr){var ue=(cr-At)*V,fe=i._handleOffset,lr=i._trackLength,ta=i._handleLength,it=i._maxScroll,Ot=i._currentScroll,ja=Qe*B,La=Ke?N.max(Ya,ja):ja,nr=it*((ue-ta/2)/(lr-ta)),he=dr&&r&&(!O.i&&!O.n||Va),Ga=he?fe<ue:fe>ue,Lr={},de={easing:rn,step:function(na){nt&&(er[_](na),ya(r,na))}};nr=isFinite(nr)?nr:0,nr=dr&&r&&!O.i?it-nr:nr,Ea?(er[_](nr),Ta?(nr=er[_](),er[_](Ot),nr=he&&O.i?it-nr:nr,nr=he&&O.n?-nr:nr,Lr[u]=nr,H.scroll(Lr,He(de,{duration:130,complete:$e}))):$e()):(Ye=Ke?Ga:Ye,Ee=he?Ye?fe+ta>=ue:fe<=ue:Ye?fe<=ue:fe+ta>=ue,Ee?(clearTimeout(j),H.scrollStop(),j=P,$a(!0)):(j=setTimeout(Wr,La),Lr[u]=(Ye?"-=":"+=")+Dr,H.scroll(Lr,He(de,{duration:ja}))),Ke=!1)}},"scrollAction");De&&Hr(),V=Ti()[u],cr=E.page(k)[u],nt=!ar(m),Gr(pt,ht),Gr(a._track,g),Gr(a._scrollbar,g),We(ga,[Rt,Wn,Bn,Bt],[Fr,Se,ie,Xt]),Wr(),E.prvD(k),E.stpP(k)}}c(Ur,"onTrackMouseTouchDown");function aa(k){hi=!0,(tt||Ze)&&Oa(!0)}c(aa,"onTrackMouseTouchEnter");function wr(k){hi=!1,(tt||Ze)&&Oa(!1)}c(wr,"onTrackMouseTouchLeave");function Cr(k){E.stpP(k)}c(Cr,"onScrollbarMouseTouchDown"),_a(a._handle,Tt,te),_a(a._track,[Tt,Ri,Wi],[Ur,aa,wr]),_a(a._scrollbar,Tt,Cr),n&&_a(a._scrollbar,Fn,function(k){k.target===a._scrollbar[0]&&(Oi(r),ya(r))})}c(zs,"setupScrollbarEvents");function Ms(r,a,i){var v=r?Fi:Ui,u=r?_t:bt;ea(U,v,!a),ea(u,Zi,!i)}c(Ms,"refreshScrollbarAppearance");function Oa(r,a){if(clearTimeout(Ts),r)ye(_t,Ut),ye(bt,Ut);else{var i,v="active",u=c(function(){!hi&&!tr&&(i=Kt.hasClass(v)||Yt.hasClass(v),!i&&(tt||Ze||xt)&&Gr(_t,Ut),!i&&(tt||Ze||xt)&&Gr(bt,Ut))},"hide");ui>0&&a!==!0?Ts=setTimeout(u,ui):u()}}c(Oa,"refreshScrollbarsAutoHide");function Oi(r){var a={},i=ra(r),v=i._info,u=1e6,d=N.min(1,Ar[i._w_h]/mt[i._w_h]);a[i._width_height]=N.floor(d*100*u)/u+"%",Zt()||i._handle.css(a),v._handleLength=i._handle[0]["offset"+i._Width_Height],v._handleLengthRatio=d}c(Oi,"refreshScrollbarHandleLength");function ya(r,a){var i=S(a)==y.b,v=250,u=dr&&r,d=ra(r),_=d._info,g="translate(",m=ge._cssProperty("transform"),A=ge._cssProperty("transition"),B=r?er[oe]():er[le](),z=a===P||i?B:a,j=_._handleLength,X=d._track[0]["offset"+d._Width_Height],cr=X-j,V={},or,ar,Hr=(yt[Be+d._Width_Height]-yt["client"+d._Width_Height])*(O.n&&u?-1:1),me=c(function(Fr){return isNaN(Fr/Hr)?0:N.max(0,N.min(1,Fr/Hr))},"getScrollRatio"),Kr=c(function(Fr){var te=cr*Fr;return te=isNaN(te)?0:te,te=u&&!O.i?X-j-te:te,te=N.max(0,te),te},"getHandleOffset"),Se=me(B),ie=me(z),Jr=Kr(ie),Xr=Kr(Se);_._maxScroll=Hr,_._currentScroll=B,_._currentScrollRatio=Se,l?(or=u?-(X-j-Jr):Jr,ar=r?g+or+"px, 0)":g+"0, "+or+"px)",V[m]=ar,n&&(V[A]=i&&N.abs(Jr-_._handleOffset)>1?xc(d._handle)+", "+(m+ve+v+"ms"):F)):V[d._left_top]=Jr,Zt()||(d._handle.css(V),l&&n&&i&&d._handle.one(Fn,function(){tr||d._handle.css(A,F)})),_._handleOffset=Jr,_._snappedHandleOffset=Xr,_._trackLength=X}c(ya,"refreshScrollbarHandleOffset");function Is(r,a){var i=a?"removeClass":"addClass",v=r?pn:Kt,u=r?_n:Yt,d=r?Gi:Xi;v[i](d),u[i](d)}c(Is,"refreshScrollbarsInteractive");function ra(r){return{_width_height:r?J:Tr,_Width_Height:r?"Width":"Height",_left_top:r?br:Qr,_Left_Top:r?"Left":"Top",_x_y:r?Mt:It,_X_Y:r?"X":"Y",_w_h:r?"w":"h",_l_t:r?"l":"t",_track:r?pn:_n,_handle:r?Kt:Yt,_scrollbar:r?_t:bt,_info:r?_e:je}}c(ra,"getScrollbarVars");function wi(r){ke=ke||Qa($n,!0),r?Mr&&rr?ye(ke.removeAttr(s.s),jn):Ka(ke):Mr||U.append(ke)}c(wi,"setupScrollbarCornerDOM");function mc(){var r=$t.top!==$t,a={},i={},v={},u;function d(A){if(g(A)){var B=m(A),z={};(di||An)&&(z[J]=i.w+(B.x-a.x)*v.x),(pi||An)&&(z[Tr]=i.h+(B.y-a.y)*v.y),U.css(z),E.stpP(A)}else _(A)}c(d,"documentDragMove");function _(A){var B=A!==P;We(ga,[Bt,Wt,Rt],[Xt,d,_],!0),ye(pt,ht),ke.releaseCapture&&ke.releaseCapture(),B&&(u&&ks(),H.update(ee)),u=!1}c(_,"documentMouseTouchUp");function g(A){var B=A.originalEvent||A,z=B.touches!==P;return Rr||tr?!1:E.mBtn(A)===1||z}c(g,"onMouseTouchDownContinue");function m(A){return pr&&r?{x:A.screenX,y:A.screenY}:E.page(A)}c(m,"getCoordinates"),_a(ke,Tt,function(A){g(A)&&!Cn&&(Aa&&(u=!0,_i()),a=m(A),i.w=Ue[s.oW]-(kr?0:Ir),i.h=Ue[s.oH]-(kr?0:Or),v=Ti(),We(ga,[Bt,Wt,Rt],[Xt,d,_]),Gr(pt,ht),ke.setCapture&&ke.setCapture(),E.prvD(A),E.stpP(A))})}c(mc,"setupScrollbarCornerEvents");function qe(r,a,i){if(i!==!1)if(rr){var v=ae.callbacks[r],u=r,d;u.substr(0,2)==="on"&&(u=u.substr(2,1).toLowerCase()+u.substr(3)),S(v)==y.f&&v.call(H,a),G(Fa,function(){d=this,S(d.on)==y.f&&d.on(u,a)})}else tr||Gn.push({n:r,a})}c(qe,"dispatchCallback");function gt(r,a,i){a=a||F,i=i||[F,F,F,F],r[a+Qr]=i[0],r[a+Ce]=i[1],r[a+ne]=i[2],r[a+br]=i[3]}c(gt,"setTopRightBottomLeft");function Ei(r,a,i,v){return a=a||F,r=r||F,{t:v?0:wa(U.css(r+Qr+a)),r:i?0:wa(U.css(r+Ce+a)),b:v?0:wa(U.css(r+ne+a)),l:i?0:wa(U.css(r+br+a))}}c(Ei,"getTopRightBottomLeftHost");function xc(r){var a=ge._cssProperty("transition"),i=r.css(a);if(i)return i;for(var v="\\s*(([^,(]+(\\(.+?\\))?)+)[\\s,]*",u=new RegExp(v),d=new RegExp("^("+v+")+$"),_="property duration timing-function delay".split(" "),g=[],m,A,B=0,z,j=c(function(X){if(m=[],!X.match(d))return X;for(;X.match(u);)m.push(RegExp.$1),X=X.replace(u,F);return m},"splitCssStyleByComma");B<_[s.l];B++)for(A=j(r.css(a+"-"+_[B])),z=0;z<A[s.l];z++)g[z]=(g[z]?g[z]+ve:F)+A[z];return g.join(", ")}c(xc,"getCSSTransitionString");function Rs(r,a){var i,v,u,d=c(function(_,g){if(u="",g&&typeof _==y.s)for(v=_.split(ve),i=0;i<v[s.l];i++)u+="|"+v[i]+"$";return u},"appendClasses");return new RegExp("(^"+Oe+"([-_].+|)$)"+d(Jt,r)+d(ni,a),"g")}c(Rs,"createHostClassNameRegExp");function Ti(){var r=rt[s.bCR]();return{x:l&&1/(N.round(r.width)/rt[s.oW])||1,y:l&&1/(N.round(r.height)/rt[s.oH])||1}}c(Ti,"getHostElementInvertedScale");function Ws(r){var a="ownerDocument",i="HTMLElement",v=r&&r[a]&&r[a].parentWindow||Z;return typeof v[i]==y.o?r instanceof v[i]:r&&typeof r==y.o&&r!==null&&r.nodeType===1&&typeof r.nodeName==y.s}c(Ws,"isHTMLElement");function gc(r,a){var i=[],v=[],u,d;for(u=0;u<r.length;u++)i[r[u]]=!0;for(u=0;u<a.length;u++)i[a[u]]?delete i[a[u]]:i[a[u]]=!0;for(d in i)v.push(d);return v}c(gc,"getArrayDifferences");function wa(r,a){var i=a?parseFloat(r):parseInt(r,10);return isNaN(i)?0:i}c(wa,"parseToZeroOrNumber");function Cc(){var r=Za.selectionStart;if(r!==P){var a=sr.val(),i=a[s.l],v=a.split(`
@@ -0,0 +1,9 @@
1
+ import{a as C,b as ge,d as me}from"./chunk-IONIU25V.mjs";import{a as $e}from"./chunk-7IK3EOFL.mjs";import{c as s,d as W,e as de,f as Z,h as d}from"./chunk-PJYBQ6PQ.mjs";var ve=de((gt,he)=>{d();var Fe=typeof Element<"u",Ye=typeof Map=="function",Ve=typeof Set=="function",Xe=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function z(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var o,e,n;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(e=o;e--!==0;)if(!z(t[e],r[e]))return!1;return!0}var a;if(Ye&&t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(a=t.entries();!(e=a.next()).done;)if(!r.has(e.value[0]))return!1;for(a=t.entries();!(e=a.next()).done;)if(!z(e.value[1],r.get(e.value[0])))return!1;return!0}if(Ve&&t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(a=t.entries();!(e=a.next()).done;)if(!r.has(e.value[0]))return!1;return!0}if(Xe&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(o=t.length,o!=r.length)return!1;for(e=o;e--!==0;)if(t[e]!==r[e])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(n=Object.keys(t),o=n.length,o!==Object.keys(r).length)return!1;for(e=o;e--!==0;)if(!Object.prototype.hasOwnProperty.call(r,n[e]))return!1;if(Fe&&t instanceof Element)return!1;for(e=o;e--!==0;)if(!((n[e]==="_owner"||n[e]==="__v"||n[e]==="__o")&&t.$$typeof)&&!z(t[n[e]],r[n[e]]))return!1;return!0}return t!==t&&r!==r}s(z,"equal");he.exports=s(function(r,o){try{return z(r,o)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}},"isEqual")});var Ce=de((Tt,be)=>{"use strict";d();var Ke=process.env.NODE_ENV!=="production",Te=s(function(){},"warning");Ke&&(Oe=s(function(r,o){var e=arguments.length;o=new Array(e>1?e-1:0);for(var n=1;n<e;n++)o[n-1]=arguments[n];var a=0,u="Warning: "+r.replace(/%s/g,function(){return o[a++]});typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}},"printWarning"),Te=s(function(t,r,o){var e=arguments.length;o=new Array(e>2?e-2:0);for(var n=2;n<e;n++)o[n-2]=arguments[n];if(r===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");t||Oe.apply(null,[r].concat(o))},"warning"));var Oe;be.exports=Te});d();var Ue=Z($e());import G,{useCallback as nt,useState as it,useEffect as at}from"react";import{styled as Le}from"@storybook/theming";d();d();d();function D(t,r){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():s(function(e,n){return e.__proto__=n,e},"_setPrototypeOf"),D(t,r)}s(D,"_setPrototypeOf");function Y(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,D(t,r)}s(Y,"_inheritsLoose");import B,{Component as Se}from"react";import{createPortal as Qe}from"react-dom";d();d();import*as E from"react";d();import*as v from"react";var _=v.createContext(),ee=v.createContext();function te(t){var r=t.children,o=v.useState(null),e=o[0],n=o[1],a=v.useRef(!1);v.useEffect(function(){return function(){a.current=!0}},[]);var u=v.useCallback(function(i){a.current||n(i)},[]);return v.createElement(_.Provider,{value:e},v.createElement(ee.Provider,{value:u},r))}s(te,"Manager");d();import*as V from"react";var X=s(function(r){return Array.isArray(r)?r[0]:r},"unwrapArray"),re=s(function(r){if(typeof r=="function"){for(var o=arguments.length,e=new Array(o>1?o-1:0),n=1;n<o;n++)e[n-1]=arguments[n];return r.apply(void 0,e)}},"safeInvoke"),N=s(function(r,o){if(typeof r=="function")return re(r,o);r!=null&&(r.current=o)},"setRef"),oe=s(function(r){return r.reduce(function(o,e){var n=e[0],a=e[1];return o[n]=a,o},{})},"fromEntries"),ne=typeof window<"u"&&window.document&&window.document.createElement?V.useLayoutEffect:V.useEffect;d();import*as x from"react";import*as Re from"react-dom";var we=Z(ve());var ze=[],ye=s(function(r,o,e){e===void 0&&(e={});var n=x.useRef(null),a={onFirstUpdate:e.onFirstUpdate,placement:e.placement||"bottom",strategy:e.strategy||"absolute",modifiers:e.modifiers||ze},u=x.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=u[0],c=u[1],l=x.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:s(function(h){var w=h.state,y=Object.keys(w.elements);Re.flushSync(function(){c({styles:oe(y.map(function(R){return[R,w.styles[R]||{}]})),attributes:oe(y.map(function(R){return[R,w.attributes[R]]}))})})},"fn"),requires:["computeStyles"]}},[]),p=x.useMemo(function(){var g={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[l,{name:"applyStyles",enabled:!1}])};return(0,we.default)(n.current,g)?n.current||g:(n.current=g,g)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,l]),f=x.useRef();return ne(function(){f.current&&f.current.setOptions(p)},[p]),ne(function(){if(!(r==null||o==null)){var g=e.createPopper||me,h=g(r,o,p);return f.current=h,function(){h.destroy(),f.current=null}}},[r,o,e.createPopper]),{state:f.current?f.current.state:null,styles:i.styles,attributes:i.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}},"usePopper");var qe=s(function(){},"NOOP"),Ge=s(function(){return Promise.resolve(null)},"NOOP_PROMISE"),Je=[];function ie(t){var r=t.placement,o=r===void 0?"bottom":r,e=t.strategy,n=e===void 0?"absolute":e,a=t.modifiers,u=a===void 0?Je:a,i=t.referenceElement,c=t.onFirstUpdate,l=t.innerRef,p=t.children,f=E.useContext(_),g=E.useState(null),h=g[0],w=g[1],y=E.useState(null),R=y[0],H=y[1];E.useEffect(function(){N(l,h)},[l,h]);var L=E.useMemo(function(){return{placement:o,strategy:n,onFirstUpdate:c,modifiers:[].concat(u,[{name:"arrow",enabled:R!=null,options:{element:R}}])}},[o,n,c,u,R]),k=ye(i||f,h,L),m=k.state,S=k.styles,U=k.forceUpdate,F=k.update,J=E.useMemo(function(){return{ref:w,style:S.popper,placement:m?m.placement:o,hasPopperEscaped:m&&m.modifiersData.hide?m.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:m&&m.modifiersData.hide?m.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:S.arrow,ref:H},forceUpdate:U||qe,update:F||Ge}},[w,H,o,m,S,F,U]);return X(p)(J)}s(ie,"Popper");d();var Ee=Z(Ce());import*as A from"react";function ae(t){var r=t.children,o=t.innerRef,e=A.useContext(ee),n=A.useCallback(function(a){N(o,a),re(e,a)},[o,e]);return A.useEffect(function(){return function(){return N(o,null)}},[]),A.useEffect(function(){(0,Ee.default)(Boolean(e),"`Reference` should not be used outside of a `Manager` component.")},[e]),X(r)({ref:n})}s(ae,"Reference");var xe=B.createContext({}),P=s(function(){for(var r=arguments.length,o=new Array(r),e=0;e<r;e++)o[e]=arguments[e];return function(){for(var n=arguments.length,a=new Array(n),u=0;u<n;u++)a[u]=arguments[u];return o.forEach(function(i){return i&&i.apply(void 0,a)})}},"callAll"),Ze=s(function(){},"noop"),Pe=s(function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)},"canUseDOM"),_e=s(function(r,o){if(typeof r=="function")return r(o);r!=null&&(r.current=o)},"setRef"),Me=function(t){Y(r,t);function r(){for(var e,n=arguments.length,a=new Array(n),u=0;u<n;u++)a[u]=arguments[u];return e=t.call.apply(t,[this].concat(a))||this,e.observer=void 0,e.tooltipRef=void 0,e.handleOutsideClick=function(i){if(e.tooltipRef&&!e.tooltipRef.contains(i.target)){var c=e.context.parentOutsideClickHandler,l=e.props,p=l.hideTooltip,f=l.clearScheduled;f(),p(),c&&c(i)}},e.handleOutsideRightClick=function(i){if(e.tooltipRef&&!e.tooltipRef.contains(i.target)){var c=e.context.parentOutsideRightClickHandler,l=e.props,p=l.hideTooltip,f=l.clearScheduled;f(),p(),c&&c(i)}},e.addOutsideClickHandler=function(){document.body.addEventListener("touchend",e.handleOutsideClick),document.body.addEventListener("click",e.handleOutsideClick)},e.removeOutsideClickHandler=function(){document.body.removeEventListener("touchend",e.handleOutsideClick),document.body.removeEventListener("click",e.handleOutsideClick)},e.addOutsideRightClickHandler=function(){return document.body.addEventListener("contextmenu",e.handleOutsideRightClick)},e.removeOutsideRightClickHandler=function(){return document.body.removeEventListener("contextmenu",e.handleOutsideRightClick)},e.getTooltipRef=function(i){e.tooltipRef=i,_e(e.props.innerRef,i)},e.getArrowProps=function(i){return i===void 0&&(i={}),C({},i,{style:C({},i.style,e.props.arrowProps.style)})},e.getTooltipProps=function(i){return i===void 0&&(i={}),C({},i,e.isTriggeredBy("hover")&&{onMouseEnter:P(e.props.clearScheduled,i.onMouseEnter),onMouseLeave:P(e.props.hideTooltip,i.onMouseLeave)},{style:C({},i.style,e.props.style)})},e.contextValue={isParentNoneTriggered:e.props.trigger==="none",addParentOutsideClickHandler:e.addOutsideClickHandler,addParentOutsideRightClickHandler:e.addOutsideRightClickHandler,parentOutsideClickHandler:e.handleOutsideClick,parentOutsideRightClickHandler:e.handleOutsideRightClick,removeParentOutsideClickHandler:e.removeOutsideClickHandler,removeParentOutsideRightClickHandler:e.removeOutsideRightClickHandler},e}s(r,"Tooltip1");var o=r.prototype;return o.componentDidMount=s(function(){var n=this,a=this.observer=new MutationObserver(function(){n.props.update()});if(a.observe(this.tooltipRef,this.props.mutationObserverOptions),this.isTriggeredBy("hover")||this.isTriggeredBy("click")||this.isTriggeredBy("right-click")){var u=this.context,i=u.removeParentOutsideClickHandler,c=u.removeParentOutsideRightClickHandler;this.addOutsideClickHandler(),this.addOutsideRightClickHandler(),i&&i(),c&&c()}},"componentDidMount"),o.componentDidUpdate=s(function(){this.props.closeOnReferenceHidden&&this.props.isReferenceHidden&&this.props.hideTooltip()},"componentDidUpdate"),o.componentWillUnmount=s(function(){if(this.observer&&this.observer.disconnect(),this.isTriggeredBy("hover")||this.isTriggeredBy("click")||this.isTriggeredBy("right-click")){var n=this.context,a=n.isParentNoneTriggered,u=n.addParentOutsideClickHandler,i=n.addParentOutsideRightClickHandler;this.removeOutsideClickHandler(),this.removeOutsideRightClickHandler(),this.handleOutsideClick=void 0,this.handleOutsideRightClick=void 0,!a&&u&&u(),!a&&i&&i()}},"componentWillUnmount"),o.render=s(function(){var n=this.props,a=n.arrowProps,u=n.placement,i=n.tooltip;return B.createElement(xe.Provider,{value:this.contextValue},i({arrowRef:a.ref,getArrowProps:this.getArrowProps,getTooltipProps:this.getTooltipProps,placement:u,tooltipRef:this.getTooltipRef}))},"render"),o.isTriggeredBy=s(function(n){var a=this.props.trigger;return a===n||Array.isArray(a)&&a.includes(n)},"isTriggeredBy"),r}(Se);Me.contextType=xe;var et={childList:!0,subtree:!0},ke=function(t){Y(r,t);function r(){for(var e,n=arguments.length,a=new Array(n),u=0;u<n;u++)a[u]=arguments[u];return e=t.call.apply(t,[this].concat(a))||this,e.state={tooltipShown:e.props.defaultTooltipShown},e.hideTimeout=void 0,e.showTimeout=void 0,e.popperOffset=void 0,e.setTooltipState=function(i){var c=s(function(){return e.props.onVisibilityChange(i.tooltipShown)},"cb");e.isControlled()?c():e.setState(i,c)},e.clearScheduled=function(){clearTimeout(e.hideTimeout),clearTimeout(e.showTimeout)},e.showTooltip=function(i){var c=i.pageX,l=i.pageY;e.clearScheduled();var p={tooltipShown:!0};e.props.followCursor&&(p=C({},p,{pageX:c,pageY:l})),e.showTimeout=window.setTimeout(function(){return e.setTooltipState(p)},e.props.delayShow)},e.hideTooltip=function(){e.clearScheduled(),e.hideTimeout=window.setTimeout(function(){return e.setTooltipState({tooltipShown:!1})},e.props.delayHide)},e.toggleTooltip=function(i){var c=i.pageX,l=i.pageY,p=e.getState()?"hideTooltip":"showTooltip";e[p]({pageX:c,pageY:l})},e.clickToggle=function(i){i.preventDefault();var c=i.pageX,l=i.pageY,p=e.props.followCursor?"showTooltip":"toggleTooltip";e[p]({pageX:c,pageY:l})},e.contextMenuToggle=function(i){i.preventDefault();var c=i.pageX,l=i.pageY,p=e.props.followCursor?"showTooltip":"toggleTooltip";e[p]({pageX:c,pageY:l})},e.getTriggerProps=function(i){return i===void 0&&(i={}),C({},i,e.isTriggeredBy("click")&&{onClick:P(e.clickToggle,i.onClick),onTouchEnd:P(e.clickToggle,i.onTouchEnd)},e.isTriggeredBy("right-click")&&{onContextMenu:P(e.contextMenuToggle,i.onContextMenu)},e.isTriggeredBy("hover")&&C({onMouseEnter:P(e.showTooltip,i.onMouseEnter),onMouseLeave:P(e.hideTooltip,i.onMouseLeave)},e.props.followCursor&&{onMouseMove:P(e.showTooltip,i.onMouseMove)}),e.isTriggeredBy("focus")&&{onFocus:P(e.showTooltip,i.onFocus),onBlur:P(e.hideTooltip,i.onBlur)})},e}s(r,"TooltipTrigger1");var o=r.prototype;return o.componentWillUnmount=s(function(){this.clearScheduled()},"componentWillUnmount"),o.render=s(function(){var n=this,a=this.props,u=a.children,i=a.tooltip,c=a.placement,l=a.trigger,p=a.getTriggerRef,f=a.modifiers,g=a.closeOnReferenceHidden,h=a.usePortal,w=a.portalContainer,y=a.followCursor,R=a.getTooltipRef,H=a.mutationObserverOptions,L=ge(a,["children","tooltip","placement","trigger","getTriggerRef","modifiers","closeOnReferenceHidden","usePortal","portalContainer","followCursor","getTooltipRef","mutationObserverOptions"]),k=B.createElement(ie,C({innerRef:R,placement:c,modifiers:[{name:"followCursor",enabled:y,phase:"main",fn:s(function(S){n.popperOffset=S.state.rects.popper},"fn")}].concat(f)},L),function(m){var S=m.ref,U=m.style,F=m.placement,J=m.arrowProps,De=m.isReferenceHidden,Ne=m.update;if(y&&n.popperOffset){var ce=n.state,K=ce.pageX,Q=ce.pageY,le=n.popperOffset,pe=le.width,fe=le.height,Ie=K+pe>window.pageXOffset+document.body.offsetWidth?K-pe:K,je=Q+fe>window.pageYOffset+document.body.offsetHeight?Q-fe:Q;U.transform="translate3d("+Ie+"px, "+je+"px, 0"}return B.createElement(Me,C({arrowProps:J,closeOnReferenceHidden:g,isReferenceHidden:De,placement:F,update:Ne,style:U,tooltip:i,trigger:l,mutationObserverOptions:H},{clearScheduled:n.clearScheduled,hideTooltip:n.hideTooltip,innerRef:S}))});return B.createElement(te,null,B.createElement(ae,{innerRef:p},function(m){var S=m.ref;return u({getTriggerProps:n.getTriggerProps,triggerRef:S})}),this.getState()&&(h?Qe(k,w):k))},"render"),o.isControlled=s(function(){return this.props.tooltipShown!==void 0},"isControlled"),o.getState=s(function(){return this.isControlled()?this.props.tooltipShown:this.state.tooltipShown},"getState"),o.isTriggeredBy=s(function(n){var a=this.props.trigger;return a===n||Array.isArray(a)&&a.includes(n)},"isTriggeredBy"),r}(Se);ke.defaultProps={closeOnReferenceHidden:!0,defaultTooltipShown:!1,delayHide:0,delayShow:0,followCursor:!1,onVisibilityChange:Ze,placement:"right",portalContainer:Pe()?document.body:null,trigger:"hover",usePortal:Pe(),mutationObserverOptions:et,modifiers:[]};var Ae=ke;d();import He from"react";import tt from"memoizerific";import{styled as Be,lighten as I,darken as j}from"@storybook/theming";function q(){return q=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])}return t},q.apply(this,arguments)}s(q,"_extends");var b=tt(1e3)((t,r,o,e=0)=>r.split("-")[0]===t?o:e),M=8,rt=Be.div({position:"absolute",borderStyle:"solid"},({placement:t})=>{let r=0,o=0;switch(!0){case(t.startsWith("left")||t.startsWith("right")):{o=8;break}case(t.startsWith("top")||t.startsWith("bottom")):{r=8;break}default:}return{transform:`translate3d(${r}px, ${o}px, 0px)`}},({theme:t,color:r,placement:o})=>({bottom:`${b("top",o,M*-1,"auto")}px`,top:`${b("bottom",o,M*-1,"auto")}px`,right:`${b("left",o,M*-1,"auto")}px`,left:`${b("right",o,M*-1,"auto")}px`,borderBottomWidth:`${b("top",o,"0",M)}px`,borderTopWidth:`${b("bottom",o,"0",M)}px`,borderRightWidth:`${b("left",o,"0",M)}px`,borderLeftWidth:`${b("right",o,"0",M)}px`,borderTopColor:b("top",o,t.color[r]||r||t.base==="light"?I(t.background.app):j(t.background.app),"transparent"),borderBottomColor:b("bottom",o,t.color[r]||r||t.base==="light"?I(t.background.app):j(t.background.app),"transparent"),borderLeftColor:b("left",o,t.color[r]||r||t.base==="light"?I(t.background.app):j(t.background.app),"transparent"),borderRightColor:b("right",o,t.color[r]||r||t.base==="light"?I(t.background.app):j(t.background.app),"transparent")})),ot=Be.div(({hidden:t})=>({display:t?"none":"inline-block",zIndex:2147483647}),({theme:t,color:r,hasChrome:o})=>o?{background:t.color[r]||r||t.base==="light"?I(t.background.app):j(t.background.app),filter:`
2
+ drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
3
+ drop-shadow(0 1px 3px rgba(0,0,0,0.1))
4
+ `,borderRadius:t.appBorderRadius*2,fontSize:t.typography.size.s1}:{}),se=s(c=>{var l=c,{placement:t,hasChrome:r,children:o,arrowProps:e,tooltipRef:n,arrowRef:a,color:u}=l,i=W(l,["placement","hasChrome","children","arrowProps","tooltipRef","arrowRef","color"]);return He.createElement(ot,q({hasChrome:r,placement:t,ref:n},i,{color:u}),r&&He.createElement(rt,q({placement:t,ref:a},e,{color:u})),o)},"Tooltip");se.defaultProps={color:void 0,arrowRef:void 0,tooltipRef:void 0,hasChrome:!0,placement:"top",arrowProps:{}};function $(){return $=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])}return t},$.apply(this,arguments)}s($,"_extends");var{document:ue}=Ue.default,st=Le.div`
5
+ display: inline-block;
6
+ cursor: ${t=>t.mode==="hover"?"default":"pointer"};
7
+ `,ut=Le.g`
8
+ cursor: ${t=>t.mode==="hover"?"default":"pointer"};
9
+ `,We=s(f=>{var g=f,{svg:t,trigger:r,closeOnClick:o,placement:e,modifiers:n,hasChrome:a,tooltip:u,children:i,tooltipShown:c,onVisibilityChange:l}=g,p=W(g,["svg","trigger","closeOnClick","placement","modifiers","hasChrome","tooltip","children","tooltipShown","onVisibilityChange"]);let h=t?ut:st;return G.createElement(Ae,{placement:e,trigger:r,modifiers:n,tooltipShown:c,onVisibilityChange:l,tooltip:({getTooltipProps:w,getArrowProps:y,tooltipRef:R,arrowRef:H,placement:L})=>G.createElement(se,$({hasChrome:a,placement:L,tooltipRef:R,arrowRef:H,arrowProps:y()},w()),typeof u=="function"?u({onHide:()=>l(!1)}):u)},({getTriggerProps:w,triggerRef:y})=>G.createElement(h,$({ref:y},w(),p),i))},"WithTooltipPure");We.defaultProps={svg:!1,trigger:"hover",closeOnClick:!1,placement:"top",modifiers:[{name:"preventOverflow",options:{padding:8}},{name:"offset",options:{offset:[8,8]}},{name:"arrow",options:{padding:8}}],hasChrome:!0,tooltipShown:!1};var Xt=s(e=>{var n=e,{startOpen:t,onVisibilityChange:r}=n,o=W(n,["startOpen","onVisibilityChange"]);let[a,u]=it(t||!1),i=nt(c=>{r&&r(c)===!1||u(c)},[r]);return at(()=>{let c=s(()=>i(!1),"hide");ue.addEventListener("keydown",c,!1);let l=Array.from(ue.getElementsByTagName("iframe")),p=[];return l.forEach(f=>{let g=s(()=>{try{f.contentWindow.document&&(f.contentWindow.document.addEventListener("click",c),p.push(()=>{try{f.contentWindow.document.removeEventListener("click",c)}catch{}}))}catch{}},"bind");g(),f.addEventListener("load",g),p.push(()=>{f.removeEventListener("load",g)})}),()=>{ue.removeEventListener("keydown",c),p.forEach(f=>{f()})}}),G.createElement(We,$({},o,{tooltipShown:a,onVisibilityChange:i}))},"WithToolTipState");export{Xt as WithToolTipState,Xt as WithTooltip,We as WithTooltipPure};