14 lines
40 KiB
JavaScript
14 lines
40 KiB
JavaScript
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5343],{76284:e=>{e.exports={pills:"pills-PVWoXu5j",primary:"primary-PVWoXu5j",gray:"gray-PVWoXu5j",selected:"selected-PVWoXu5j",grouped:"grouped-PVWoXu5j",active:"active-PVWoXu5j",disableActiveOnTouch:"disableActiveOnTouch-PVWoXu5j",disableActiveStateStyles:"disableActiveStateStyles-PVWoXu5j",withGrouped:"withGrouped-PVWoXu5j","quiet-primary":"quiet-primary-PVWoXu5j",green:"green-PVWoXu5j",red:"red-PVWoXu5j",blue:"blue-PVWoXu5j",secondary:"secondary-PVWoXu5j",ghost:"ghost-PVWoXu5j"}},71042:e=>{e.exports={lightButton:"lightButton-bYDQcOkp",link:"link-bYDQcOkp",ltr:"ltr-bYDQcOkp",rtl:"rtl-bYDQcOkp","typography-regular16px":"typography-regular16px-bYDQcOkp","typography-medium16px":"typography-medium16px-bYDQcOkp","typography-regular14px":"typography-regular14px-bYDQcOkp","typography-semibold14px":"typography-semibold14px-bYDQcOkp","typography-semibold16px":"typography-semibold16px-bYDQcOkp",content:"content-bYDQcOkp",visuallyHidden:"visuallyHidden-bYDQcOkp",nowrap:"nowrap-bYDQcOkp",ellipsisContainer:"ellipsisContainer-bYDQcOkp",textWrapContainer:"textWrapContainer-bYDQcOkp",textWrapWithEllipsis:"textWrapWithEllipsis-bYDQcOkp",slot:"slot-bYDQcOkp",caret:"caret-bYDQcOkp",activeCaret:"activeCaret-bYDQcOkp",xsmall:"xsmall-bYDQcOkp",withStartSlot:"withStartSlot-bYDQcOkp",withEndSlot:"withEndSlot-bYDQcOkp",noContent:"noContent-bYDQcOkp",wrap:"wrap-bYDQcOkp",small:"small-bYDQcOkp",medium:"medium-bYDQcOkp"}},92318:e=>{e.exports={button:"button-D4RPB3ZC",iconOnly:"iconOnly-D4RPB3ZC",withStartSlot:"withStartSlot-D4RPB3ZC",withEndSlot:"withEndSlot-D4RPB3ZC",startSlotWrap:"startSlotWrap-D4RPB3ZC",endSlotWrap:"endSlotWrap-D4RPB3ZC",xsmall:"xsmall-D4RPB3ZC",small:"small-D4RPB3ZC",medium:"medium-D4RPB3ZC",large:"large-D4RPB3ZC",xlarge:"xlarge-D4RPB3ZC",content:"content-D4RPB3ZC",link:"link-D4RPB3ZC",blue:"blue-D4RPB3ZC",primary:"primary-D4RPB3ZC",secondary:"secondary-D4RPB3ZC",gray:"gray-D4RPB3ZC",green:"green-D4RPB3ZC",red:"red-D4RPB3ZC",black:"black-D4RPB3ZC",slot:"slot-D4RPB3ZC",stretch:"stretch-D4RPB3ZC",grouped:"grouped-D4RPB3ZC",adjustPosition:"adjustPosition-D4RPB3ZC",firstRow:"firstRow-D4RPB3ZC",firstCol:"firstCol-D4RPB3ZC","no-corner-top-left":"no-corner-top-left-D4RPB3ZC","no-corner-top-right":"no-corner-top-right-D4RPB3ZC","no-corner-bottom-right":"no-corner-bottom-right-D4RPB3ZC","no-corner-bottom-left":"no-corner-bottom-left-D4RPB3ZC",textWrap:"textWrap-D4RPB3ZC",multilineContent:"multilineContent-D4RPB3ZC",primaryText:"primaryText-D4RPB3ZC",secondaryText:"secondaryText-D4RPB3ZC"}},21859:e=>{e.exports={scrollContainer:"scrollContainer-vVf9OJ2A"}},82601:e=>{e.exports={flex:"flex-KgzMMF6Z",fixedHeader:"fixedHeader-KgzMMF6Z",fixedFooter:"fixedFooter-KgzMMF6Z",mainScrollWrapper:"mainScrollWrapper-KgzMMF6Z",fixedHeaderContent:"fixedHeaderContent-KgzMMF6Z",fixedFooterContent:"fixedFooterContent-KgzMMF6Z",noScroll:"noScroll-KgzMMF6Z",main:"main-KgzMMF6Z",mainContent:"mainContent-KgzMMF6Z"}},11417:e=>{e.exports={
|
|
contentDefaultAppearanceMobile:"contentDefaultAppearanceMobile-ODkmI6nR",begin:"begin-ODkmI6nR",end:"end-ODkmI6nR",top:"top-ODkmI6nR",bottom:"bottom-ODkmI6nR",contentDefaultAppearance:"contentDefaultAppearance-ODkmI6nR"}},90670:e=>{e.exports={positioner:"positioner-lATuqHRX",noHorizontalShrink:"noHorizontalShrink-lATuqHRX",noHorizontalGrow:"noHorizontalGrow-lATuqHRX",noVerticalShrink:"noVerticalShrink-lATuqHRX",noVerticalGrow:"noVerticalGrow-lATuqHRX",invisible:"invisible-lATuqHRX",portal:"portal-lATuqHRX"}},64605:e=>{e.exports={stub:"stub-IXDPx_Z_"}},54235:e=>{e.exports={content:"content-sCtoIJXr",stretch:"stretch-sCtoIJXr",begin:"begin-sCtoIJXr",end:"end-sCtoIJXr",top:"top-sCtoIJXr",bottom:"bottom-sCtoIJXr",backdrop:"backdrop-sCtoIJXr"}},18104:e=>{e.exports={mobileContext:"mobileContext-bZu5EnXL",anchorContext:"anchorContext-bZu5EnXL"}},68828:e=>{e.exports={scrollTrap:"scrollTrap-cUlsSss_",scrollTrapContent:"scrollTrapContent-cUlsSss_"}},21325:e=>{e.exports={bodyNoScroll:"bodyNoScroll-bUGsvF2L"}},96518:(e,t,n)=>{"use strict";function o(e,t){return t||null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}n.d(t,{isIconOnly:()=>o})},54571:(e,t,n)=>{"use strict";n.d(t,{useLightButtonClasses:()=>u});var o=n(79474),r=n(14487),i=n.n(r),a=n(42391),s=n(96518),l=n(59794);const c=o.createContext({isInButtonGroup:!1,isGroupPrimary:!1}),u=(e,t,n)=>{const r=(0,o.useContext)(a.CustomBehaviourContext),{className:u,isSelected:d,children:p,showCaret:h,forceDirection:m,iconOnly:f,color:x="gray",variant:P="primary",size:C="medium",enableActiveStateStyles:v=r.enableActiveStateStyles,typography:b,isLink:y=!1,textWrap:g,isPills:E,isActive:w,startSlot:O,endSlot:S}=t,T=e[`typography-${((e,t,n)=>{if(n){const e=n.replace(/^\D+/g,"");return t?`semibold${e}`:n}switch(e){case"xsmall":return t?"semibold14px":"regular14px";case"small":case"medium":return t?"semibold16px":"regular16px";default:return""}})(C,d||E,b||void 0)}`],R=(0,o.useContext)(l.ControlGroupContext),{isInButtonGroup:_,isGroupPrimary:A}=(0,o.useContext)(c);return i()(u,e.lightButton,y&&e.link,w&&e.active,d&&e.selected,(0,s.isIconOnly)(p,f)&&e.noContent,!!O&&e.withStartSlot,(h||!!S)&&e.withEndSlot,n&&e.withGrouped,m&&e[m],e[A?"primary":P],e[A?"gray":x],e[C],T,!v&&e.disableActiveStateStyles,R.isGrouped&&e.grouped,g&&e.wrap,_&&e.disableActiveOnTouch,E&&e.pills)}},92531:(e,t,n)=>{"use strict";n.d(t,{LightButtonContent:()=>m});var o=n(79474),r=n(14487),i=n.n(r),a=n(27914),s=n(96518),l=n(66334),c=n(43616),u=n.n(c),d=n(71042),p=n.n(d);const h=e=>o.createElement(l.Icon,{className:i()(p().caret,e&&p().activeCaret),icon:u()});function m(e){const{showCaret:t,iconOnly:n,ellipsis:r=!0,textWrap:l,tooltipText:c,children:u,endSlot:d,startSlot:m,isActiveCaret:f}=e;[d,t].filter((e=>!!e));return o.createElement(o.Fragment,null,m&&o.createElement("span",{className:i()(p().slot,p().startSlot)},m),!(0,s.isIconOnly)(u,n)&&o.createElement("span",{
|
|
className:i()(p().content,!l&&p().nowrap,"apply-overflow-tooltip","apply-overflow-tooltip--check-children-recursively","apply-overflow-tooltip--allow-text"),"data-overflow-tooltip-text":c??(0,a.getTextForTooltip)(u)},l||r?o.createElement(o.Fragment,null,o.createElement("span",{className:i()(!l&&r&&p().ellipsisContainer,l&&p().textWrapContainer,l&&r&&p().textWrapWithEllipsis)},u),o.createElement("span",{className:p().visuallyHidden,"aria-hidden":!0},u)):o.createElement(o.Fragment,null,u,o.createElement("span",{className:p().visuallyHidden,"aria-hidden":!0},u))),d&&o.createElement("span",{className:i()(p().slot,p().endSlot)},d),t&&h(f))}},7859:(e,t,n)=>{"use strict";n.d(t,{LightButton:()=>p});var o=n(79474),r=n(59794),i=n(54571),a=n(92531),s=n(40197),l=n(71042),c=n.n(l),u=n(76284),d=n.n(u);function p(e){const{isGrouped:t}=o.useContext(r.ControlGroupContext),{reference:n,className:l,isSelected:u,children:p,iconOnly:h,ellipsis:m,showCaret:f,forceDirection:x,endSlot:P,startSlot:C,color:v,variant:b,size:y,enableActiveStateStyles:g,typography:E,textWrap:w=!1,maxLines:O,style:S={},isPills:T,isActive:R,tooltipText:_,role:A,dataQaId:D,name:L,onFocus:M,onBlur:N,onMouseEnter:I,onMouseLeave:W,onMouseOver:k,onMouseOut:F,onClick:B,onAnimationEnd:z,onPointerOver:H,onPointerOut:V,onKeyDown:Z,autoFocus:G,isActiveCaret:Q,id:X,disabled:j,tabIndex:Y,value:U,title:q,type:K,...J}=e,$=(0,s.filterDataProps)(J),ee=(0,s.filterAriaProps)(J),te=w?O??2:1,ne=te>0?{...S,"--ui-lib-light-button-content-max-lines":te}:S;return o.createElement("button",{name:L,onFocus:M,onBlur:N,onMouseEnter:I,onMouseLeave:W,onMouseOver:k,onMouseOut:F,onClick:B,onAnimationEnd:z,onPointerOver:H,onPointerOut:V,onKeyDown:Z,autoFocus:G,id:X,disabled:j,tabIndex:Y,value:U,title:q,type:K,"data-qa-id":D,...$,...ee,className:(0,i.useLightButtonClasses)({...d(),...c()},{className:l,isSelected:u,children:p,iconOnly:h,showCaret:f,forceDirection:x,endSlot:P,startSlot:C,color:v,variant:b,size:y,enableActiveStateStyles:g,typography:E,textWrap:w,isPills:T,isActive:R},t),ref:n,style:ne,role:A},o.createElement(a.LightButtonContent,{showCaret:f,isActiveCaret:f&&(T||R||u||Q),iconOnly:h,ellipsis:m,textWrap:w,tooltipText:_,endSlot:P,startSlot:C},p))}},63459:(e,t,n)=>{"use strict";n.d(t,{SquareButton:()=>P});var o=n(79474),r=n(14487),i=n.n(r),a=n(67440),s=n(92318),l=n.n(s);const c="apply-overflow-tooltip apply-overflow-tooltip--check-children-recursively apply-overflow-tooltip--allow-text apply-common-tooltip";function u(e){const{size:t="medium",variant:n="primary",color:o="brand",stretch:r=!1,startSlot:s,endSlot:u,iconOnly:d=!1,className:p,isGrouped:h,cellState:m,disablePositionAdjustment:f=!1,primaryText:x,secondaryText:P,isAnchor:C=!1}=e,v="brand"===o?"black":o,b=function(e){let t="";return 0!==e&&(1&e&&(t=i()(t,l()["no-corner-top-left"])),2&e&&(t=i()(t,l()["no-corner-top-right"])),4&e&&(t=i()(t,l()["no-corner-bottom-right"])),8&e&&(t=i()(t,l()["no-corner-bottom-left"]))),t}((0,a.getGroupCellRemoveRoundBorders)(m)),y=d&&(s||u)
|
|
;return i()(p,l().button,l()[t],l()[v],l()[n],r&&l().stretch,s&&l().withStartIcon,u&&l().withEndIcon,y&&l().iconOnly,b,h&&l().grouped,h&&!f&&l().adjustPosition,h&&m.isTop&&l().firstRow,h&&m.isLeft&&l().firstCol,x&&P&&l().multilineContent,C&&l().link,c)}function d(e){const{startSlot:t,iconOnly:n,children:r,endSlot:a,primaryText:s,secondaryText:u}=e;if(t&&a&&n)return o.createElement("span",{className:i()(l().slot,l().startSlotWrap)},t);const d=n&&(t??a),p=!t&&!a&&!n&&!r&&s&&u;return o.createElement(o.Fragment,null,t&&o.createElement("span",{className:i()(l().slot,l().startSlotWrap)},t),r&&!d&&o.createElement("span",{className:l().content},r),a&&o.createElement("span",{className:i()(l().slot,l().endSlotWrap)},a),p&&!d&&function(e){return e.primaryText&&e.secondaryText&&o.createElement("div",{className:i()(l().textWrap,c)},o.createElement("span",{className:l().primaryText}," ",e.primaryText," "),"string"==typeof e.secondaryText?o.createElement("span",{className:l().secondaryText}," ",e.secondaryText," "):o.createElement("span",{className:l().secondaryText},o.createElement("span",null,e.secondaryText.firstLine),o.createElement("span",null,e.secondaryText.secondLine)))}(e))}var p=n(27914),h=n(59794),m=n(40197);function f(e,t){return n=>{if(t)return n.preventDefault(),void n.stopPropagation();e?.(n)}}function x(e){const{className:t,color:n,variant:o,size:r,stretch:i,iconOnly:a,startSlot:s,endSlot:l,primaryText:c,secondaryText:u,...d}=e;return{...d,...(0,m.filterDataProps)(e),...(0,m.filterAriaProps)(e)}}function P(e){const{reference:t,tooltipText:n,disabled:r,onClick:i,onMouseOver:a,onMouseOut:s,onMouseDown:l,onMouseEnter:c,"aria-disabled":m,...P}=e,{isGrouped:C,cellState:v,disablePositionAdjustment:b}=(0,o.useContext)(h.ControlGroupContext),y=u({...P,isGrouped:C,cellState:v,disablePositionAdjustment:b}),g=n??(e.primaryText?[e.primaryText,e.secondaryText].join(" "):(0,p.getTextForTooltip)(e.children));return o.createElement("button",{...x(P),"aria-disabled":r||m,tabIndex:e.tabIndex??(r?-1:0),className:y,ref:t,onClick:f(i,r),onMouseDown:f(l,r),onMouseOver:f(a,r),onMouseOut:f(s,r),onMouseEnter:f(c,r),"data-overflow-tooltip-text":g},o.createElement(d,{...P}))}n(90741)},59794:(e,t,n)=>{"use strict";n.d(t,{ControlGroupContext:()=>o});const o=n(79474).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},67440:(e,t,n)=>{"use strict";function o(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}n.d(t,{getGroupCellRemoveRoundBorders:()=>o})},69947:(e,t,n)=>{"use strict";n.d(t,{useIsomorphicLayoutEffect:()=>r});var o=n(79474);function r(e,t){("undefined"==typeof window?o.useEffect:o.useLayoutEffect)(e,t)}},50534:(e,t,n)=>{"use strict";function o(e,t,n,o,r){function i(r){if(e>r.timeStamp)return;const i=r.target;void 0!==n&&null!==t&&null!==i&&i.ownerDocument===o&&(t.contains(i)||n(r))}return r.click&&o.addEventListener("click",i,!1),r.mouseDown&&o.addEventListener("mousedown",i,!1),
|
|
r.touchEnd&&o.addEventListener("touchend",i,!1),r.touchStart&&o.addEventListener("touchstart",i,!1),()=>{o.removeEventListener("click",i,!1),o.removeEventListener("mousedown",i,!1),o.removeEventListener("touchend",i,!1),o.removeEventListener("touchstart",i,!1)}}n.d(t,{addOutsideEventListener:()=>o})},4138:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>a});var o=n(79474),r=n(69947),i=n(50534);function a(e){const{click:t,mouseDown:n,touchEnd:a,touchStart:s,handler:l,reference:c}=e,u=(0,o.useRef)(null),d=(0,o.useRef)("undefined"==typeof window?0:new window.CustomEvent("timestamp").timeStamp);return(0,r.useIsomorphicLayoutEffect)((()=>{const e={click:t,mouseDown:n,touchEnd:a,touchStart:s},o=c?c.current:u.current;return(0,i.addOutsideEventListener)(d.current,o,l,document,e)}),[t,n,a,s,l]),c||u}},73457:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>r});var o=n(79474);const r=o.forwardRef(((e,t)=>{const{icon:n="",title:r,ariaLabel:i,ariaLabelledby:a,ariaHidden:s,...l}=e,c=!!(r||i||a);return o.createElement("span",{role:"img",...l,ref:t,"aria-label":i,"aria-labelledby":a,"aria-hidden":s||!c,title:r,dangerouslySetInnerHTML:{__html:n}})}))},66334:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>o.Icon});var o=n(73457)},70373:(e,t,n)=>{"use strict";n.d(t,{POPOVER_DEFAULT_CLOSE_ON_CLICK_AWAY:()=>l,POPOVER_DEFAULT_CLOSE_ON_ESCAPE:()=>s,POPOVER_DEFAULT_CLOSE_ON_RESIZE_WINDOW:()=>u,POPOVER_DEFAULT_CLOSE_ON_SCROLL_OUTSIDE:()=>c,POPOVER_DEFAULT_CLOSE_ON_TAB:()=>d,POPOVER_DEFAULT_HEIGHT:()=>i,POPOVER_DEFAULT_PLACEMENT_RULES:()=>a,POPOVER_DEFAULT_WIDTH:()=>r});var o=n(9870);const r=[{by:"anchor",type:"min"},{by:"content"}],i=[],a=[o.PLACEMENT_BOTTOM_ALIGN_LEFT,o.PLACEMENT_TOP_ALIGN_LEFT,o.PLACEMENT_BOTTOM_ALIGN_RIGHT,o.PLACEMENT_TOP_ALIGN_RIGHT],s=!0,l="pointerdown",c=!0,u=!0,d=!0},47157:(e,t,n)=>{"use strict";n.d(t,{PopoverContentVertical:()=>u});var o=n(79474),r=n(14487),i=n.n(r),a=n(21859),s=n.n(a);var l=n(82601),c=n.n(l);function u(e){const{children:t,fixedHeader:n,fixedFooter:r,onScroll:a,scrollRef:l,dataQaId:u}=e,{scrollCompensation:d,scrollPaddingContainer:p}=function(){const[e,t]=(0,o.useState)(void 0),n=(0,o.useCallback)((e=>{e&&t((t=>t||e.offsetWidth-e.clientWidth))}),[]);return{scrollCompensation:void 0!==e?-e+"px":void 0,scrollPaddingContainer:o.createElement("div",{className:s().scrollContainer,ref:n})}}();return o.createElement(o.Fragment,null,o.createElement("div",{"data-qa-id":u,className:c().flex},o.createElement("div",{className:i()(c().fixedHeader,n&&c().fixedHeaderContent)},n),o.createElement("div",{className:i()(c().mainScrollWrapper,void 0===d&&c().noScroll),onScroll:a,ref:l,style:{"--ui-lib-private-popoverContentVertical-scroll-compensation":d}},o.createElement("div",{className:i()(c().main,t&&c().mainContent)},t)),o.createElement("div",{className:i()(c().fixedFooter,r&&c().fixedFooterContent)},r)),p)}},19976:(e,t,n)=>{"use strict";n.d(t,{PopoverContextProvider:()=>a,usePopoverContext:()=>s});var o=n(79474),r=n(40093);const i=(0,o.createContext)({closePopover:()=>{},isRtl:!1,isInPopover:!1,isAnchorPositioner:!1,
|
|
isMobilePositioner:!1});function a(e){const{positioner:t,onClose:n,isRtl:a,children:s,onPopoverContentResize:l}=e,c=(0,o.useMemo)((()=>({closePopover:n,isRtl:a,isInPopover:!0,onPopoverContentResize:l,isAnchorPositioner:"anchor"===t,isMobilePositioner:"mobile"===t})),[n,a,l,t]);return o.createElement(i.Provider,{value:c},o.createElement(r.PositionerContextProvider,{positioner:t},s))}function s(){return(0,o.useContext)(i)}},87013:(e,t,n)=>{"use strict";n.d(t,{Popover:()=>G});var o=n(79474),r=n(14487),i=n.n(r),a=n(10353),s=n(52885),l=n(18045),c=n(73064),u=n(89315),d=n(9774),p=n(56688),h=n(21325),m=n.n(h);function f(e=!0){const t=window.innerWidth-document.body.clientWidth;var n,o;if(e||!p.isSafari||0===t)return document.body.style.setProperty("--ui-lib-private-scrollTrap-scroll-width",`${t}px`),n=document.body,o=m().bodyNoScroll,n.className=[n.className,o].join(" "),()=>{!function(e,t){const n=e.className.replace(t,""),o=n.split(" ").filter(Boolean).join(" ");e.className=o}(document.body,m().bodyNoScroll),document.body.classList.contains(m().bodyNoScroll)||document.body.style.removeProperty("--ui-lib-private-scrollTrap-scroll-width")}}var x=n(68828),P=n.n(x);const C=e=>{e&&v(e)};function v(e){e.scrollTop=5e3,e.scrollLeft=5e3}const b=(0,u.default)((e=>{v(e.currentTarget)}),100);function y(e){const{reference:t,disableSafariScrollbars:n=!0}=e,r=(0,d.useMergedRefs)([C,t]);return(0,o.useLayoutEffect)((()=>f(n)),[n]),o.createElement("div",{className:P().scrollTrap,ref:r,onScroll:b},e.children,o.createElement("div",{className:P().scrollTrapContent}))}var g=n(29365),E=n(64605),w=n.n(E);function O(){return p.isSafari&&p.isIOS?o.createElement(o.Fragment,null,(0,g.createPortal)(o.createElement("div",{className:w().stub}),document.body)):null}var S,T=n(54235),R=n.n(T);function _(e){const t=(0,o.useRef)(null),{isOpen:n,onClose:r,children:u,cardAppearanceClassname:d,anchoredAt:p,refToContentWrapperElement:h=t,side:m="bottom",idOfContentWrapperElement:f,ariaLabelledby:x,ariaMultiselectable:P,role:C,stretch:v,dataQaId:b}=e,g=(0,c.useFunctionalRefObject)(h);return(0,a.useAnchorPortalPair)(p,g),n?o.createElement(o.Fragment,null,o.createElement(s.Portal,null,o.createElement(y,{reference:g,disableSafariScrollbars:!1},o.createElement("div",{...(0,l.contentProps)(f,x,P,C),"data-qa-id":b,className:i()(R().content,R()[m],d,v&&R().stretch)},u),o.createElement("div",{role:"presentation",className:R().backdrop,onClick:()=>{r(!1)},onPointerDown:e=>{e.stopPropagation()}}))),"bottom"===m&&o.createElement(O,null)):null}!function(e){e.SideBegin="begin",e.SideEnd="end",e.Top="top",e.Bottom="bottom"}(S||(S={}));var A=n(11763),D=n(98676),L=n(28115);function M(e){if(!e)return;const{x:t,y:n,width:o,height:r}=e.getBoundingClientRect();return{x:t,y:n,width:o,height:r}}function N(e,t,n=[],r=[]){const[i,a]=(0,o.useState)();return(0,o.useLayoutEffect)((()=>{if(!t)return;const o=()=>{a(function(e){return M(e.current)}(e))},r=n.map((e=>(e.subscribe(o),()=>e.unsubscribe(o))));return(0,L.forkFn)(...r)}),[e,t,...n]),(0,o.useLayoutEffect)((()=>{t&&a(M(e.current))
|
|
}),[e,t,...r]),i}function I(e){const t=(0,o.useRef)(null),{anchoredAt:n,isOpen:r,refObjectToContentWrapperElement:i=t,width:s,height:l,isRtl:c,placementRules:u,anchorPositionerCardAppearanceClassname:d,children:p,role:h,ariaLabelledby:m,ariaMultiselectable:f,idOfContentWrapperElement:x,onPlacementRuleSelected:P,getRootRect:C,repositionTriggers:v,contentResize:b,repositionDependencies:y,dataQaId:g,scrollContainer:E}=e,w=N(n,r,v,y);return(0,a.useAnchorPortalPair)(n,i),w?o.createElement(D.RectanglePositioner,{width:s,height:l,isRtl:c,isOpen:r,placementRules:u,anchorPositionerCardAppearanceClassname:d,children:p,role:h,ariaLabelledby:m,ariaMultiselectable:f,idOfContentWrapperElement:x,refObjectToContentWrapperElement:i,anchoredAt:w,onPlacementRuleSelected:P,getRootRect:C,contentResize:b,repositionTriggers:v,repositionDependencies:y,dataQaId:g,scrollContainer:E}):null}function W(e){const t=(0,o.useRef)(null),{anchored:n,placementRules:r,width:i,height:a,isOpen:s,isRtl:l,anchorPositionerCardAppearanceClassname:u,refToContentWrapperElement:d=t,idOfContentWrapperElement:p,ariaLabelledby:h,ariaMultiselectable:m,role:f,children:x,getRootRect:P,repositionTriggers:C,repositionDependencies:v,contentResize:b,dataQaId:y,scrollContainer:g}=e,E=(0,c.useFunctionalRefObject)(d);switch(n.type){case"element":return o.createElement(I,{placementRules:r,width:i,height:a,isOpen:s,isRtl:l,anchorPositionerCardAppearanceClassname:u,refObjectToContentWrapperElement:E,idOfContentWrapperElement:p,ariaLabelledby:h,ariaMultiselectable:m,role:f,children:x,anchoredAt:n.at,getRootRect:P,repositionTriggers:C,contentResize:b,repositionDependencies:v,dataQaId:y,scrollContainer:g});case"rectangle":return o.createElement(D.RectanglePositioner,{placementRules:r,width:i,height:a,isOpen:s,isRtl:l,anchorPositionerCardAppearanceClassname:u,refObjectToContentWrapperElement:E,idOfContentWrapperElement:p,ariaLabelledby:h,ariaMultiselectable:m,role:f,children:x,anchoredAt:n.at,getRootRect:P,contentResize:b,repositionDependencies:v,dataQaId:y,scrollContainer:g})}}var k=n(19976),F=n(5944);const B=n(90353)["media-show-drawer"];var z=n(72238),H=n(40093),V=n(11417),Z=n.n(V);const G=(Q=function(e){const{isRtl:t}=(0,k.usePopoverContext)(),{isOpen:n,onClose:r,mobilePositionerSide:a="bottom",mobilePositionerCardAppearanceClassname:s=i()(Z().contentDefaultAppearanceMobile,Z()[a]),refToContentWrapperElement:l,isRtl:c=t,children:u,anchorPositionerCardAppearanceClassname:d=Z().contentDefaultAppearance,role:p,ariaLabelledby:h,ariaMultiselectable:m,idOfContentWrapperElement:f,placementRules:x,width:P,height:C,anchored:v,mobilePositionerStretch:b,repositionTriggers:y=[],repositionDependencies:g,mobileBreakpoint:E,contentResize:w,dataQaId:O,scrollContainer:S}=e,{isInPopover:T}=(0,k.usePopoverContext)(),{isMobilePositioner:R}=(0,H.usePositionerContext)(),D=(0,A.useMatchMedia)(E??B),L=(0,o.useMemo)(z.createSignal,[]);return(void 0===E&&T?R:D)?o.createElement(_,{isOpen:n,onClose:r,cardAppearanceClassname:s,refToContentWrapperElement:l,idOfContentWrapperElement:f,
|
|
anchoredAt:"element"===v.type?v.at:void 0,children:o.createElement(k.PopoverContextProvider,{positioner:"mobile",onClose:r,isRtl:c},u),role:p,ariaLabelledby:h,ariaMultiselectable:m,side:a,stretch:b,dataQaId:O}):o.createElement(W,{anchored:v,isRtl:c,isOpen:n,anchorPositionerCardAppearanceClassname:d,role:p,ariaLabelledby:h,ariaMultiselectable:m,idOfContentWrapperElement:f,refToContentWrapperElement:l,placementRules:x,width:P,height:C,children:o.createElement(k.PopoverContextProvider,{positioner:"anchor",onClose:r,isRtl:c,onPopoverContentResize:L.fire},u),repositionTriggers:[...y,L],repositionDependencies:g,contentResize:w,dataQaId:O,scrollContainer:S})},e=>(0,F.useIsNonFirstRender)()?o.createElement(Q,{...e}):null);var Q},42072:(e,t,n)=>{"use strict";function o(e,t){return t.x<=e.x&&e.x<=t.x+t.width&&t.y<=e.y&&e.y<=t.y+t.height}n.d(t,{isInRect:()=>o})},98676:(e,t,n)=>{"use strict";n.d(t,{RectanglePositioner:()=>A});var o=n(79474),r=n(14487),i=n.n(r),a=n(6616),s=n(52885),l=n(18045);function c(e){return{x:1-e.x,y:e.y}}function u(e){return e.map((e=>function(e){return{...e,name:e.rtlName||e.name,anchorPoint:c(e.anchorPoint),contentPoint:c(e.contentPoint),offset:e.offset?(t=e.offset,{x:-t.x,y:t.y}):void 0};var t}(e)))}function d(e){return{left:e.x,right:e.x+e.width,top:e.y,bottom:e.y+e.height}}function p(e,t,n,o,r,i,a){const s={...o,...d(o)},l=function(e,t){return{x:e.x+t.anchorPoint.x*e.width+(t.offset?.x??0),y:e.y+t.anchorPoint.y*e.height+(t.offset?.y??0)}}(e,r),c=n.width,u=m(r.overflowHorizontal,l.x,s.left,s.right,r.contentPoint.x,c),p=Math.min(c,u??1/0),f=a&&void 0!==u&&p<c;f&&t.style.setProperty(i,`${u}px`);const x=f?t.clientHeight:n.height,P=m(r.overflowVertical,l.y,s.top,s.bottom,r.contentPoint.y,x),C=Math.min(x,P??1/0);f&&t.style.removeProperty(i);const v=l.x-r.contentPoint.x*c,b=l.x+(1-r.contentPoint.x)*c,y=h(r.overflowHorizontal,l.x,s.left,s.right,r.contentPoint.x,v,b),g=l.y-r.contentPoint.y*x,E=l.y+(1-r.contentPoint.y)*x,w=h(r.overflowVertical,l.y,s.top,s.bottom,r.contentPoint.y,g,E);return{anchoredPx:{x:y.anchoredPx,y:w.anchoredPx},contentPointFraction:{x:y.contentPointFraction,y:w.contentPointFraction},rule:r,initialContentSizePx:{width:n.width,height:n.height},contentSizeAfterWidthRestrictionPx:{width:p,height:x},contentSizePx:{width:p,height:C},maxContentSizePx:{width:u,height:P},slide:{x:y.slide,y:w.slide}}}function h(e,t,n,o,r,i,a){const s=n-i,l=a-o;switch(e){case"slide":case"crop":if(a-i>o-n||s>0)return{contentPointFraction:0,anchoredPx:n,slide:Math.max(0,s)};if(l>0)return{contentPointFraction:1,anchoredPx:o,slide:Math.max(0,l)};break;case"cropSlide":{const e=n-t,r=t-o;if(e>0||s>0)return{contentPointFraction:0,anchoredPx:n,slide:Math.max(0,e)};if(r>0||l>0)return{contentPointFraction:1,anchoredPx:o,slide:Math.max(0,r)};break}case"cropOverflow":if(s>0)return{contentPointFraction:0,anchoredPx:Math.min(n,t),slide:0};if(l>0)return{contentPointFraction:1,anchoredPx:Math.max(o,t),slide:0}}return{contentPointFraction:r,anchoredPx:t,slide:0}}function m(e,t,n,o,r,i){switch(e){case"crop":return function(e,t,n,o,r){
|
|
const i=e-t>=0&&n-e>=0;if(i&&(1===o||0===o))return function(e,t,n,o){return 0===o?n-e:e-t}(e,t,n,o);const{availableSpaceStart:a,availableSpaceEnd:s}=x(o,r,e,t,n);return a+s}(t,n,o,r,i);case"cropOverflow":return f(t,n,o,r,i);case"slide":return o-n;case"cropSlide":return Math.min(o-n,f(t,n,o,r,i));case"keepNonFitting":return}}function f(e,t,n,o,r){if(o>=1||o<=0)return function(e,t,n,o){const r=Math.max(0,e-t),i=Math.max(0,n-e),a=o>0?r/o:Number.POSITIVE_INFINITY,s=o<1?i/(1-o):Number.POSITIVE_INFINITY;return Math.min(a,s)}(e,t,n,o);const{availableSpaceStart:i,availableSpaceEnd:a}=x(o,r,e,t,n);return Math.max(0,i)+Math.max(0,a)}function x(e,t,n,o,r){const i=t*Math.max(e,0),a=t*Math.max(1-e,0);return{availableSpaceStart:Math.min(n-o,i),availableSpaceEnd:Math.min(r-n,a)}}function P(e){return e.initialContentSizePx.width-e.contentSizePx.width}function C(e){return e.contentSizeAfterWidthRestrictionPx.height-e.contentSizePx.height}function v(e){return e.slide.x+e.slide.y}function b(e,t){const n=function(e,t){const n=d({x:e.anchoredPx.x-e.contentPointFraction.x*e.contentSizePx.width,y:e.anchoredPx.y-e.contentPointFraction.y*e.contentSizePx.height,width:e.contentSizePx.width,height:e.contentSizePx.height}),o=d(t);return{left:Math.max(0,o.left-n.left),right:Math.max(0,n.right-o.right),top:Math.max(0,o.top-n.top),bottom:Math.max(0,n.bottom-o.bottom)}}(e,t);return(1+n.left+n.right)*(1+n.top+n.bottom)-1}function y(e,t){return{rule:e,overflow:b(e,t),widthDiff:P(e),heightDiff:C(e),slide:v(e)}}function g(e){return 0===e.overflow&&0===e.widthDiff&&0===e.heightDiff&&0===e.slide}function E(){return{x:0,y:0,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}}var w=n(9774),O=n(28115);var S,T=n(7321),R=n(90670),_=n.n(R);function A(e){const{isRtl:t,anchoredAt:n,isOpen:r,placementRules:c,anchorPositionerCardAppearanceClassname:d,refObjectToContentWrapperElement:h,children:m,onPlacementRuleSelected:f,getRootRect:x=E,idOfContentWrapperElement:P,ariaLabelledby:C,ariaMultiselectable:v,role:b,width:S,height:R,repositionTriggers:A=[],repositionDependencies:M=[],contentResize:N=15,dataQaId:I,scrollContainer:W,assumeNoContentWrap:k}=e,F=(0,o.useMemo)((()=>(0,T.isArray)(c)?c:[c]),[c]),B=(0,o.useRef)(null),[z,H]=(0,o.useState)(void 0),V=function(e){const[t,n]=(0,o.useState)((()=>Symbol()));return(0,o.useLayoutEffect)((()=>{const t=e.map((e=>{const t=()=>{n(Symbol())};return e.subscribe(t),()=>e.unsubscribe(t)}));return(0,O.forkFn)(...t)}),[...e]),t}(A);(0,o.useLayoutEffect)((()=>{r&&B.current?H(function(e,t,n,o,r){const{rtl:i,scrollContainer:a,maxWidthCssProperty:s="max-width",maxHeightCssProperty:l="max-height",contentOverflowWrap:c=!0}=r||{},d=i?u(o):o,h=function(e){if(!e)return;const t=e.scrollTop;return()=>{e.scrollTop=t}}(a),m=function(e,t){const n=t.map((t=>[t,e.style.getPropertyValue(t)]));return n.forEach((([t,n])=>{n&&e.style.removeProperty(t)})),()=>{n.forEach((([t,n])=>{e.style.setProperty(t,n)}))}}(t,[s,l]),f=t.getBoundingClientRect(),x=function(){const o=[];for(const r of d){const i=p(e,t,f,n,{...r
|
|
},s,c),a=y(i,n);if(g(a))return i;o.push(a)}return 1===(r=o).length?r[0].rule:r.slice().sort(((e,t)=>e.overflow!==t.overflow?e.overflow-t.overflow:e.widthDiff!==t.widthDiff?e.widthDiff-t.widthDiff:e.heightDiff!==t.heightDiff?e.heightDiff-t.heightDiff:e.slide-t.slide))[0].rule;var r}();return m(),h?.(),x}(n,B.current,x(),F,{rtl:!!t,scrollContainer:W?.current,maxHeightCssProperty:"--ui-lib-private-positioner-screen-restriction-max-height",maxWidthCssProperty:"--ui-lib-private-positioner-screen-restriction-max-width",contentOverflowWrap:!k})):H(void 0)}),[n,B,x,F,r,V,t,W,k,...M]),(0,o.useEffect)((()=>{if(z?.rule&&f)return f(z.rule)}),[z?.rule,f]);const Z=(0,w.useMergedRefs)([h,B]);if(!r)return null;const{classnames:G,style:Q}=function(e,t,n){const o=[],r={},i={width:t,height:n};for(const t of["width","height"]){const n=i[t];(Array.isArray(n)?n:[n]).filter(a.isExistent).forEach((n=>{switch(n.by){case"content":return;case"class":return void o.push(n.className);case"anchor":{const o=n.type??"exact";r[L[t][o]]=D(e[t])}}}))}return{classnames:o,style:r}}(n,S,R),X=[d,_().positioner],j=!(1&N),Y=!(2&N),U=!(4&N),q=!(8&N),K=i()(j&&_().noHorizontalShrink,Y&&_().noHorizontalGrow,U&&_().noVerticalShrink,q&&_().noVerticalGrow),J={...Q,"--ui-lib-positioner-anchor-width":D(n.width),"--ui-lib-positioner-anchor-height":D(n.height),"--ui-lib-positioner-anchor-top":D(n.y),"--ui-lib-positioner-anchor-left":D(n.x)};return o.createElement(s.Portal,{className:_().portal},void 0===z?o.createElement("div",{className:i()(_().invisible,...G,...X,K),style:J,ref:Z,"data-qa-id":I},m):o.createElement("div",{className:i()(...X,...G,K),style:{"--ui-lib-positioner-content-point-x":z.contentPointFraction.x,"--ui-lib-positioner-content-point-y":z.contentPointFraction.y,"--ui-lib-positioner-anchored-x":D(z.anchoredPx.x),"--ui-lib-positioner-anchored-y":D(z.anchoredPx.y),"--ui-lib-private-positioner-screen-restriction-max-width":D(z.maxContentSizePx.width),"--ui-lib-private-positioner-screen-restriction-max-height":D(z.maxContentSizePx.height),"--ui-lib-positioner-content-height-measured":D(z.contentSizePx.height),"--ui-lib-positioner-content-width-measured":D(z.contentSizePx.width),...J},...(0,l.contentProps)(P,C,v,b),ref:Z,"data-qa-id":I},m))}function D(e){return void 0!==e&&isFinite(e)?`${e}px`:void 0}!function(e){e[e.AllowHorizontalShrink=1]="AllowHorizontalShrink",e[e.AllowHorizontalGrow=2]="AllowHorizontalGrow",e[e.AllowVerticalShrink=4]="AllowVerticalShrink",e[e.AllowVerticalGrow=8]="AllowVerticalGrow"}(S||(S={}));const L={height:{exact:"--ui-lib-private-positioner-anchor-exact-height",max:"--ui-lib-private-positioner-anchor-max-height",min:"--ui-lib-private-positioner-anchor-min-height"},width:{exact:"--ui-lib-private-positioner-anchor-exact-width",max:"--ui-lib-private-positioner-anchor-max-width",min:"--ui-lib-private-positioner-anchor-min-width"}}},18045:(e,t,n)=>{"use strict";function o(e,t,n,o){return{role:o,"aria-labelledby":t,"aria-multiselectable":n,id:e}}n.d(t,{contentProps:()=>o})},9870:(e,t,n)=>{"use strict";n.d(t,{
|
|
PLACEMENT_BOTTOM_ALIGN_LEFT:()=>o,PLACEMENT_BOTTOM_ALIGN_RIGHT:()=>r,PLACEMENT_LEFT_ALIGN_CENTER:()=>l,PLACEMENT_RIGHT_ALIGN_CENTER:()=>s,PLACEMENT_TOP_ALIGN_LEFT:()=>i,PLACEMENT_TOP_ALIGN_RIGHT:()=>a});const o={name:"bottom-left",rtlName:"bottom-right",anchorPoint:{x:0,y:1},contentPoint:{x:0,y:0},overflowHorizontal:"slide",overflowVertical:"cropSlide"},r={name:"bottom-right",rtlName:"bottom-left",anchorPoint:{x:1,y:1},contentPoint:{x:1,y:0},overflowHorizontal:"slide",overflowVertical:"cropSlide"},i={name:"top-left",rtlName:"top-right",anchorPoint:{x:0,y:0},contentPoint:{x:0,y:1},overflowHorizontal:"slide",overflowVertical:"cropSlide"},a={name:"top-right",rtlName:"top-left",anchorPoint:{x:1,y:0},contentPoint:{x:1,y:1},overflowHorizontal:"slide",overflowVertical:"cropSlide"},s={name:"right",rtlName:"left",anchorPoint:{x:1,y:.5},contentPoint:{x:0,y:.5},overflowHorizontal:"cropSlide",overflowVertical:"slide"},l={name:"left",rtlName:"right",anchorPoint:{x:0,y:.5},contentPoint:{x:1,y:.5},overflowHorizontal:"cropSlide",overflowVertical:"slide"}},10353:(e,t,n)=>{"use strict";n.d(t,{isElementContainsElementThroughPortals:()=>d,isXYInsideElementThroughPortals:()=>u,useAnchorPortalPair:()=>c});var o=n(79474),r=n(85842),i=n(42072);const a=new Map;let s=0;function l(e){const t=(0,o.useCallback)((()=>{const t=(0,r.ensure)(e);return"current"in t?t.current:t()}),[e]);if(e)return t}function c(e,t){const n=l(e),r=l(t);(0,o.useEffect)((()=>{if(n&&r)return function(e,t){const n=s++;return a.set(n,[e,t]),()=>{a.delete(n)}}(n,r)}),[n,r])}function u(e,t,n){if(function(e,t,n){return(0,i.isInRect)({x:t,y:n},e.getBoundingClientRect())}(e,t,n))return!0;for(const o of a.values()){const r=o[0](),i=o[1]();if(r&&i&&e.contains(r)&&u(i,t,n))return!0}return!1}function d(e,t){if(e.contains(t))return!0;for(const n of a.values()){const o=n[0](),r=n[1]();if(o&&r&&e.contains(o)&&d(r,t))return!0}return!1}},40093:(e,t,n)=>{"use strict";n.d(t,{PositionerContextProvider:()=>l,usePositionerContext:()=>c});var o=n(79474),r=n(18104),i=n.n(r);const a=(0,o.createContext)({isAnchorPositioner:!1,isMobilePositioner:!1});var s;function l(e){const{positioner:t,children:n}=e,r=(0,o.useMemo)((()=>({isAnchorPositioner:"anchor"===t,isMobilePositioner:"mobile"===t})),[t]);return o.createElement(a.Provider,{value:r},o.createElement("div",{className:"mobile"===t?i().mobileContext:i().anchorContext},n))}function c(){return(0,o.useContext)(a)}!function(e){e.Anchor="anchor",e.Mobile="mobile"}(s||(s={}))},7528:(e,t,n)=>{"use strict";n.d(t,{usePopoverCloseBehavior:()=>y});var o=n(79474),r=n(72238);function i(e,t,n){(0,o.useEffect)((()=>{if(e)return t()}),[...n,e])}function a(e,t,n){const a=(0,o.useMemo)((()=>(0,r.createSignal)()),[]);return i(e,(()=>(window.addEventListener(t,a.fire,n),()=>{window.removeEventListener(t,a.fire,n)})),[a]),a}const s=(e=!0)=>a(e,"resize",!0);var l;function c(e){return(t,n)=>(window.addEventListener(e,t,n),()=>{window.removeEventListener(e,t,n)})}!function(e){e[e.None=0]="None",e[e.Horizontal=1]="Horizontal",e[e.Vertical=2]="Vertical",
|
|
e[e.Both=3]="Both"}(l||(l={}));var u=n(10353);const d=c("scroll");function p(e,t,n,a){const s=(0,o.useMemo)((()=>(0,r.createSignal)()),[]),l=(0,o.useCallback)((()=>{n(!1,"currentLevel")}),[n]);return function(e,t,n){i(e,(()=>d((e=>{const o=n.current;if(!o)return;const r=e.target;r&&((0,u.isElementContainsElementThroughPortals)(o,r)||(0,u.isElementContainsElementThroughPortals)(r,o)&&t())}),!0)),[t,n])}(e,t?l:s.fire,a),s}function h(e,t,n){const r=s(!n.closeOnResizeWindow&&e);!function(e,t,n){const r=(0,o.useRef)({clientWidth:void 0,clientHeight:void 0}),a=(0,o.useMemo)((()=>function(e){const t=[];return 1&e&&t.push("clientWidth"),2&e&&t.push("clientHeight"),t}(n)),[n]);i(e&&0!==n,(()=>{const e=()=>{a.forEach((e=>{const n=document.documentElement[e];void 0!==r.current[e]?r.current[e]!==n&&(t(!0,"currentLevel"),r.current[e]=n):r.current[e]=n}))};return e(),window.addEventListener("resize",e,!0),()=>{window.removeEventListener("resize",e,!0),r.current={clientWidth:void 0,clientHeight:void 0}}}),[t,a])}(!!n.closeOnResizeWindow&&e,t,3);return[r,p(e,!!n.closeOnScrollOutside,t,n.ref)]}var m=n(73064),f=n(42072);var x=n(70373);function P(e,t,n,o,r){const a="boolean"==typeof o?x.POPOVER_DEFAULT_CLOSE_ON_CLICK_AWAY:o;i(!!e,(()=>c(a)((e=>{const o={x:e.clientX,y:e.clientY},i=n.current,a=function(e,t){if(!t)return!1;const n="current"in t?t.current?.getBoundingClientRect():t;return!!n&&(0,f.isInRect)(e,n)}(o,r);a||i&&(0,u.isXYInsideElementThroughPortals)(i,o.x,o.y)||t(!1,"currentLevel")}))),[t,r,n,a])}var C=n(9774),v=n(47893);const b=c("keydown");function y(e){const t=(0,o.useRef)(null),{onClose:n,isOpen:r,refToContentWrapperElement:a=t,closeOnClickAway:s=x.POPOVER_DEFAULT_CLOSE_ON_CLICK_AWAY,closeOnEscape:l=x.POPOVER_DEFAULT_CLOSE_ON_ESCAPE,closeOnScrollOutside:c=x.POPOVER_DEFAULT_CLOSE_ON_SCROLL_OUTSIDE,closeOnResizeWindow:u=x.POPOVER_DEFAULT_CLOSE_ON_RESIZE_WINDOW,closeOnTab:d=x.POPOVER_DEFAULT_CLOSE_ON_TAB,excludeArea:p}=e;let f=(0,m.useFunctionalRefObject)(a);const y=h(r,n,{closeOnResizeWindow:u,closeOnScrollOutside:c,ref:f});return f=function(e,t,n){const r=(0,o.useCallback)((o=>{e&&o&&o.addEventListener("keydown",(e=>{if(27!==(0,v.hashFromEvent)(e))return;const o=n.current;if(!o)return;const r=e.target;r instanceof HTMLElement&&o.contains(r)&&(e.preventDefault(),e.stopPropagation(),t(!0,"currentLevel"))}),{capture:!1})}),[e]);return(0,m.useFunctionalRefObject)((0,C.useMergedRefs)([n,r]))}(l&&r,n,f),function(e,t,n){i(!!e,(()=>b((e=>{const n=(0,v.hashFromEvent)(e);9!==n&&n!==9+v.Modifiers.Shift||t(!0,"currentLevel")}),!0)),[t,n])}(d&&r,n,f),P(s&&r,n,f,s,p),{repositionTriggers:y,refToContentWrapperElement:f}}},52885:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>c,PortalContext:()=>u});var o=n(79474),r=n(29365),i=n(56770),a=n(46765),s=n(70014),l=n(99286);class c extends o.PureComponent{constructor(){super(...arguments),this._uuid=(0,i.nanoid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);e.style.top=this.props.top||"",
|
|
e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"";const t=this.props.className;return t&&("string"==typeof t?e.classList.add(t):e.classList.add(...t)),this.props.shouldTrapFocus&&!e.hasAttribute(s.FOCUS_TRAP_DATA_ATTRIBUTE)&&e.setAttribute(s.FOCUS_TRAP_DATA_ATTRIBUTE,"true"),this.props["aria-hidden"]&&e.setAttribute("aria-hidden","true"),r.createPortal(o.createElement(u.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,a.getRootOverlapManager)():this.context}}c.contextType=l.SlotContext;const u=o.createContext(null)},99286:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>r,SlotContext:()=>i});var o=n(79474);class r extends o.Component{shouldComponentUpdate(){return!1}render(){return o.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const i=o.createContext(null)},40197:(e,t,n)=>{"use strict";function o(e){return i(e,a)}function r(e){return i(e,s)}function i(e,t){const n=Object.entries(e).filter(t),o={};for(const[e,t]of n)o[e]=t;return o}function a(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function s(e){return 0===e[0].indexOf("aria-")}function l(e,t){const n=o(e);return t&&(n["data-qa-id"]=t),n}n.d(t,{filterAriaProps:()=>r,filterCheckedDataProps:()=>l,filterDataProps:()=>o,filterProps:()=>i,isAriaAttribute:()=>s,isDataAttribute:()=>a})},28115:(e,t,n)=>{"use strict";function o(...e){return(...t)=>{e.forEach((e=>e?.(...t)))}}n.d(t,{forkFn:()=>o})},46765:(e,t,n)=>{"use strict";n.d(t,{OverlapManager:()=>a,getRootOverlapManager:()=>l});var o=n(85842),r=n(70014);class i{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter((t=>e!==t))}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class a{constructor(e=document){this._storage=new i,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach((e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)}))}(t,n),this._container=n}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);const o=this._document.createElement("div");if(o.style.position=t.position,o.style.zIndex=this._index.toString(),o.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(o);else if(t.index<=0)this._container.insertBefore(o,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(o,e)}}else"reverse"===t.direction?this._container.insertBefore(o,this._container.firstChild):this._container.appendChild(o);return this._windows.set(e,o),++this._index,o}
|
|
unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveLastWindowToTop(){const e=this._storage.getItems(),t=e[e.length-1];t&&this.moveToTop(t)}moveToTop(e){if(this.getZindex(e)!==this._index){const t=this.ensureWindow(e);this._windows.forEach(((e,n)=>{e.hasAttribute(r.FOCUS_TRAP_DATA_ATTRIBUTE)&&e.setAttribute(r.FOCUS_TRAP_DATA_ATTRIBUTE,e===t?"true":"false")})),t.style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const s=new WeakMap;function l(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,o.ensureDefined)(s.get(t));{const t=new a(e),n=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t.dataset.qaId="overlap-manager-root",t}(e);return s.set(n,t),t.setContainer(n),e.body.appendChild(n),t}}var c;!function(e){e[e.BaseZindex=150]="BaseZindex"}(c||(c={}))},72238:(e,t,n)=>{"use strict";function o(){const e=new Set;return{subscribe:t=>{e.add(t)},unsubscribe:t=>{e.delete(t)},fire:()=>{e.forEach((e=>e()))}}}n.d(t,{createSignal:()=>o})}}]); |