(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2878],{57554:e=>{e.exports={logo:"logo-PsAlMQQF",hidden:"hidden-PsAlMQQF",xxceptionallysmalldonotusebrv1023:"xxceptionallysmalldonotusebrv1023-PsAlMQQF",xxxsmall:"xxxsmall-PsAlMQQF",xxsmall:"xxsmall-PsAlMQQF",xsmall:"xsmall-PsAlMQQF",small:"small-PsAlMQQF",medium:"medium-PsAlMQQF",large:"large-PsAlMQQF",xlarge:"xlarge-PsAlMQQF",xxlarge:"xxlarge-PsAlMQQF",xxxlarge:"xxxlarge-PsAlMQQF",skeleton:"skeleton-PsAlMQQF",letter:"letter-PsAlMQQF"}},16313:e=>{e.exports={wrapper:"wrapper-TJ9ObuLF",animated:"animated-TJ9ObuLF",pulsation:"pulsation-TJ9ObuLF"}},47282:e=>{e.exports={small:"small-CtnpmPzP",medium:"medium-CtnpmPzP",large:"large-CtnpmPzP",switchView:"switchView-CtnpmPzP",checked:"checked-CtnpmPzP",disabled:"disabled-CtnpmPzP",track:"track-CtnpmPzP",thumb:"thumb-CtnpmPzP"}},70330:e=>{e.exports={switcher:"switcher-fwE97QDf",input:"input-fwE97QDf",thumbWrapper:"thumbWrapper-fwE97QDf",disabled:"disabled-fwE97QDf",checked:"checked-fwE97QDf"}},51284:e=>{e.exports={"tablet-normal-breakpoint":"(max-width: 768px)","small-height-breakpoint":"(max-height: 360px)","tablet-small-breakpoint":"(max-width: 440px)"}},98754:e=>{e.exports={"default-drawer-min-top-distance":"100px"}},9959:e=>{e.exports={item:"item-zwyEh4hn",label:"label-zwyEh4hn",labelRow:"labelRow-zwyEh4hn",toolbox:"toolbox-zwyEh4hn"}},17888:e=>{e.exports={"tablet-small-breakpoint":"(max-width: 440px)",item:"item-jFqVJoPk",hovered:"hovered-jFqVJoPk",isDisabled:"isDisabled-jFqVJoPk",isActive:"isActive-jFqVJoPk",shortcut:"shortcut-jFqVJoPk",toolbox:"toolbox-jFqVJoPk",withIcon:"withIcon-jFqVJoPk","round-icon":"round-icon-jFqVJoPk",icon:"icon-jFqVJoPk",startSlot:"startSlot-jFqVJoPk",labelRow:"labelRow-jFqVJoPk",label:"label-jFqVJoPk",showOnHover:"showOnHover-jFqVJoPk","disclosure-item-circle-logo":"disclosure-item-circle-logo-jFqVJoPk",showOnFocus:"showOnFocus-jFqVJoPk"}},40359:e=>{e.exports={separator:"separator-QjUlCDId",small:"small-QjUlCDId",normal:"normal-QjUlCDId",large:"large-QjUlCDId"}},53885:(e,t,o)=>{"use strict";o.d(t,{getStyleClasses:()=>r,isCircleLogoWithUrlProps:()=>c});var n=o(97754),i=o.n(n),a=o(52292),l=o(57554),s=o.n(l);function r(e,t=2,o){return i()(s().logo,s()[e],o,0===t||1===t?i()(a.skeletonTheme.wrapper,s().skeleton):s().letter,1===t&&a.skeletonTheme.animated)}function c(e){return"logoUrl"in e&&null!==e.logoUrl&&void 0!==e.logoUrl&&0!==e.logoUrl.length}},17946:(e,t,o)=>{"use strict";o.d(t,{CustomBehaviourContext:()=>n});const n=(0,o(50959).createContext)({enableActiveStateStyles:!0});n.displayName="CustomBehaviourContext"},39416:(e,t,o)=>{"use strict";o.d(t,{useFunctionalRefObject:()=>a});var n=o(50959),i=o(43010);function a(e){const t=(0,n.useMemo)((()=>function(e){const t=o=>{e(o),t.current=o};return t.current=null,t}((e=>{s.current(e)}))),[]),o=(0,n.useRef)(null),a=t=>{if(null===t)return l(o.current,t),void(o.current=null);o.current!==e&&(o.current=e,l(o.current,t))},s=(0,n.useRef)(a);return s.current=a,(0,i.useIsomorphicLayoutEffect)((()=>{
if(null!==t.current)return s.current(t.current),()=>s.current(null)}),[e]),t}function l(e,t){null!==e&&("function"==typeof e?e(t):e.current=t)}},67842:(e,t,o)=>{"use strict";o.d(t,{useResizeObserver:()=>l});var n=o(50959),i=o(43010),a=o(39416);function l(e,t=[]){const{callback:o,ref:l=null}=function(e){return"function"==typeof e?{callback:e}:e}(e),s=(0,n.useRef)(null),r=(0,n.useRef)(o);r.current=o;const c=(0,a.useFunctionalRefObject)(l),u=(0,n.useCallback)((e=>{c(e),null!==s.current&&(s.current.disconnect(),null!==e&&s.current.observe(e))}),[c,s]);return(0,i.useIsomorphicLayoutEffect)((()=>(s.current=new ResizeObserver(((e,t)=>{r.current(e,t)})),c.current&&u(c.current),()=>{s.current?.disconnect()})),[c,...t]),u}},52292:(e,t,o)=>{"use strict";o.d(t,{skeletonTheme:()=>i});var n=o(16313);const i=o.n(n)()},90186:(e,t,o)=>{"use strict";function n(e){return a(e,l)}function i(e){return a(e,s)}function a(e,t){const o=Object.entries(e).filter(t),n={};for(const[e,t]of o)n[e]=t;return n}function l(e){const[t,o]=e;return 0===t.indexOf("data-")&&"string"==typeof o}function s(e){return 0===e[0].indexOf("aria-")}o.d(t,{filterAriaProps:()=>i,filterDataProps:()=>n,filterProps:()=>a,isAriaAttribute:()=>s,isDataAttribute:()=>l})},47201:(e,t,o)=>{"use strict";function n(...e){return t=>{for(const o of e)void 0!==o&&o(t)}}o.d(t,{createSafeMulticastEventHandler:()=>n})},73986:(e,t,o)=>{"use strict";o.d(t,{DialogBreakpoints:()=>i});var n=o(51284);const i={SmallHeight:n["small-height-breakpoint"],TabletSmall:n["tablet-small-breakpoint"],TabletNormal:n["tablet-normal-breakpoint"]}},45601:(e,t,o)=>{"use strict";o.d(t,{Measure:()=>i});var n=o(67842);function i(e){const{children:t,onResize:o}=e;return t((0,n.useResizeObserver)(o||(()=>{}),[null===o]))}},59695:(e,t,o)=>{"use strict";o.d(t,{CircleLogo:()=>s,hiddenCircleLogoClass:()=>l});var n=o(50959),i=o(53885),a=o(57554);const l=o.n(a)().hidden;function s(e){const t=(0,i.isCircleLogoWithUrlProps)(e),[o,a]=(0,n.useState)(0),l=(0,n.useRef)(null),s=(0,i.getStyleClasses)(e.size,o,e.className),r=e.alt??e.title??"",c=t?r[0]:e.placeholderLetter;return(0,n.useEffect)((()=>a(l.current?.complete??!t?2:1)),[t]),t&&3!==o?n.createElement("img",{ref:l,className:s,crossOrigin:"",src:e.logoUrl,alt:r,title:e.title,loading:e.loading,onLoad:()=>a(2),onError:()=>a(3),"aria-label":e["aria-label"],"aria-hidden":e["aria-hidden"]}):n.createElement("span",{className:s,title:e.title,"aria-label":e["aria-label"],"aria-hidden":e["aria-hidden"]},c)}},78036:(e,t,o)=>{"use strict";o.d(t,{useEnsuredContext:()=>a});var n=o(50959),i=o(50151);function a(e){return(0,i.ensureNotNull)((0,n.useContext)(e))}},70412:(e,t,o)=>{"use strict";o.d(t,{hoverMouseEventFilter:()=>l,useAccurateHover:()=>s,useHover:()=>i,useHoverDeprecated:()=>a});var n=o(50959);function i(){const[e,t]=(0,n.useState)(!1);return[e,{onMouseEnter:function(e){t(!0)},onMouseLeave:function(e){t(!1)}}]}function a(){const[e,t]=(0,n.useState)(!1);return[e,{onMouseOver:function(e){l(e)&&t(!0)},onMouseOut:function(e){l(e)&&t(!1)}}]}function l(e){
return!e.currentTarget.contains(e.relatedTarget)}function s(e){const[t,o]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{const t=t=>{if(null===e.current)return;const n=e.current.contains(t.target);o(n)};return document.addEventListener("mouseover",t),()=>document.removeEventListener("mouseover",t)}),[]),t}},29006:(e,t,o)=>{"use strict";o.d(t,{useResizeObserver:()=>n.useResizeObserver});var n=o(67842)},77975:(e,t,o)=>{"use strict";o.d(t,{useWatchedValueReadonly:()=>i});var n=o(50959);const i=(e,t=!1,o=[])=>{const i="watchedValue"in e?e.watchedValue:void 0,a="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[l,s]=(0,n.useState)(i?i.value():a);return(t?n.useLayoutEffect:n.useEffect)((()=>{if(i){s(i.value());const e=e=>s(e);return i.subscribe(e),()=>i.unsubscribe(e)}return()=>{}}),[i,...o]),l}},29185:(e,t,o)=>{"use strict";o.d(t,{useWatchedValue:()=>i});var n=o(50959);const i=(e,t=[])=>{const[o,i]=(0,n.useState)(e.value());return(0,n.useEffect)((()=>{const t=e=>i(e);return e.subscribe(t),()=>e.unsubscribe(t)}),[e,...t]),[o,t=>e.setValue(t)]}},16396:(e,t,o)=>{"use strict";o.d(t,{DEFAULT_POPUP_MENU_ITEM_THEME:()=>u,PopupMenuItem:()=>h});var n=o(50959),i=o(97754),a=o(51768),l=o(87713),s=o(59695),r=o(76460),c=o(17888);const u=c;function d(e){e.stopPropagation()}function h(e){const{id:t,role:o,className:u,title:h,labelRowClassName:m,labelClassName:p,toolboxClassName:b,shortcut:v,forceShowShortcuts:g,icon:f,iconClassname:w,isActive:C,isDisabled:x,isHovered:T,appearAsDisabled:_,label:E,link:k,showToolboxOnHover:S,showToolboxOnFocus:F,target:y,rel:M,toolbox:A,toolboxRole:I,reference:N,onMouseOut:D,onMouseOver:W,onKeyDown:L,suppressToolboxClick:R=!0,theme:B=c,tabIndex:O,tagName:P,renderComponent:V,roundedIcon:H,iconAriaProps:j,circleLogo:z,dontClosePopup:U,onClick:G,onClickArg:Q,trackEventObject:q,trackMouseWheelClick:Z,trackRightClick:J,startSlot:K,...$}=e,X=(0,n.useRef)(null),Y=(0,n.useMemo)((()=>function(e){function t(t){const{reference:o,...i}=t,a=e??(i.href?"a":"div"),l="a"===a?i:function(e){const{download:t,href:o,hrefLang:n,media:i,ping:a,rel:l,target:s,type:r,referrerPolicy:c,...u}=e;return u}(i);return n.createElement(a,{...l,ref:o})}return t.displayName=`DefaultComponent(${e})`,t}(P)),[P]),ee=V??Y;return n.createElement(ee,{...$,id:t,role:o,className:i(u,B.item,f&&B.withIcon,{[B.isActive]:C,[B.isDisabled]:x||_,[B.hovered]:T}),title:h,href:k,target:y,rel:M,reference:function(e){X.current=e,"function"==typeof N&&N(e);"object"==typeof N&&(N.current=e)},onClick:function(e){if(x)return;q&&(0,a.trackEvent)(q.category,q.event,q.label);G&&G(Q,e);U||(e.currentTarget.dispatchEvent(new CustomEvent("popup-menu-close-event",{bubbles:!0,detail:{clickType:(0,r.isKeyboardClick)(e)?"keyboard":"mouse"}})),(0,l.globalCloseMenu)())},onContextMenu:function(e){q&&J&&(0,a.trackEvent)(q.category,q.event,`${q.label}_rightClick`)},onMouseUp:function(e){if(1===e.button&&k&&q){let e=q.label;Z&&(e+="_mouseWheelClick"),(0,a.trackEvent)(q.category,q.event,e)}},onMouseOver:W,onMouseOut:D,onKeyDown:L,tabIndex:O},z&&n.createElement(s.CircleLogo,{
...j,className:c["disclosure-item-circle-logo"],size:"xxxsmall",logoUrl:z.logoUrl,placeholderLetter:"placeholderLetter"in z?z.placeholderLetter:void 0}),K&&n.createElement("span",{className:B.startSlot},K),f&&n.createElement("span",{"aria-label":j&&j["aria-label"],"aria-hidden":j&&Boolean(j["aria-hidden"]),className:i(B.icon,H&&c["round-icon"],w),dangerouslySetInnerHTML:{__html:f}}),n.createElement("span",{className:i(B.labelRow,m)},n.createElement("span",{className:i(B.label,p)},E)),(void 0!==v||g)&&n.createElement("span",{className:B.shortcut},(te=v)&&te.split("+").join(" + ")),void 0!==A&&n.createElement("span",{role:I,onClick:R?d:void 0,className:i(b,B.toolbox,{[B.showOnHover]:S,[B.showOnFocus]:F})},A));var te}},81332:(e,t,o)=>{"use strict";o.d(t,{multilineLabelWithIconAndToolboxTheme:()=>l});var n=o(40173),i=o(17888),a=o(9959);const l=(0,n.mergeThemes)(i,a)},51613:(e,t,o)=>{"use strict";o.d(t,{PopupMenuSeparator:()=>r});var n,i=o(50959),a=o(97754),l=o.n(a),s=o(40359);function r(e){const{size:t="normal",className:o,ariaHidden:n=!1}=e;return i.createElement("div",{className:l()(s.separator,"small"===t&&s.small,"normal"===t&&s.normal,"large"===t&&s.large,o),role:"separator","aria-hidden":n})}!function(e){e.Small="small",e.Large="large",e.Normal="normal"}(n||(n={}))},20520:(e,t,o)=>{"use strict";o.d(t,{PopupMenu:()=>h});var n=o(50959),i=o(32227),a=o(88987),l=o(65718),s=o(27317),r=o(29197);const c=n.createContext(void 0);var u=o(36383);const d=n.createContext({setMenuMaxWidth:!1});function h(e){const{controller:t,children:o,isOpened:h,closeOnClickOutside:m=!0,doNotCloseOn:p,onClickOutside:b,onClose:v,onKeyboardClose:g,"data-name":f="popup-menu-container",closeOnScrollOutsideOffset:w,...C}=e,x=(0,n.useContext)(r.CloseDelegateContext),T=n.useContext(d),_=(0,n.useContext)(c),E=(0,u.useOutsideEvent)({handler:function(e){b&&b(e);if(!m)return;const t=(0,a.default)(p)?p():null==p?[]:[p];if(t.length>0&&e.target instanceof Node)for(const o of t){const t=i.findDOMNode(o);if(t instanceof Node&&t.contains(e.target))return}v()},mouseDown:!0,touchStart:!0});return h?n.createElement(l.Portal,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},n.createElement("span",{ref:E,style:{pointerEvents:"auto"}},n.createElement(s.Menu,{...C,onClose:v,onKeyboardClose:g,onScroll:function(t){const{onScroll:o}=e;o&&o(t)},customCloseDelegate:x,customRemeasureDelegate:_,ref:t,"data-name":f,limitMaxWidth:T.setMenuMaxWidth,"data-tooltip-show-on-focus":"true",closeOnScrollOutsideOffset:w},o))):null}},6132:(e,t,o)=>{"use strict";var n=o(22134);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,o,i,a,l){if(l!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var o={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,
objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return o.PropTypes=o,o}},19036:(e,t,o)=>{e.exports=o(6132)()},22134:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},11098:e=>{e.exports={accessible:"accessible-NQERJsv9",active:"active-NQERJsv9"}},59703:e=>{e.exports={button:"button-LkmyTVRc",active:"active-LkmyTVRc"}},16284:e=>{e.exports={wrapper:"wrapper-psOC5oyI",labelRow:"labelRow-psOC5oyI",label:"label-psOC5oyI",labelHint:"labelHint-psOC5oyI",labelOn:"labelOn-psOC5oyI"}},57213:e=>{e.exports={wrapper:"wrapper-bl9AR3Gv",hovered:"hovered-bl9AR3Gv",switchWrap:"switchWrap-bl9AR3Gv",withIcon:"withIcon-bl9AR3Gv",labelRow:"labelRow-bl9AR3Gv",label:"label-bl9AR3Gv",icon:"icon-bl9AR3Gv",label_disabled:"label_disabled-bl9AR3Gv",labelHint:"labelHint-bl9AR3Gv",labelOn:"labelOn-bl9AR3Gv",accessible:"accessible-bl9AR3Gv"}},19836:e=>{e.exports={button:"button-KTgbfaP5"}},78299:e=>{e.exports={dropdown:"dropdown-pbhJWNrt",buttonWrap:"buttonWrap-pbhJWNrt",control:"control-pbhJWNrt",arrow:"arrow-pbhJWNrt",arrowIcon:"arrowIcon-pbhJWNrt",isOpened:"isOpened-pbhJWNrt",hover:"hover-pbhJWNrt",isGrayed:"isGrayed-pbhJWNrt",accessible:"accessible-pbhJWNrt"}},99343:e=>{e.exports={button:"button-GwQQdU8S",pressed:"pressed-GwQQdU8S",hover:"hover-GwQQdU8S",clicked:"clicked-GwQQdU8S",isInteractive:"isInteractive-GwQQdU8S",accessible:"accessible-GwQQdU8S",isGrouped:"isGrouped-GwQQdU8S",isActive:"isActive-GwQQdU8S",isOpened:"isOpened-GwQQdU8S",isDisabled:"isDisabled-GwQQdU8S",text:"text-GwQQdU8S",icon:"icon-GwQQdU8S",endIcon:"endIcon-GwQQdU8S"}},79619:e=>{e.exports={title:"title-u3QJgF_p"}},3939:e=>{e.exports={container:"container-Wp9adlfh",mirror:"mirror-Wp9adlfh",background:"background-Wp9adlfh",arrow:"arrow-Wp9adlfh"}},17850:e=>{e.exports={item:"item-uxNfqe_g",label:"label-uxNfqe_g"}},60873:e=>{e.exports={drawingToolbar:"drawingToolbar-BfVZxb4b",isHidden:"isHidden-BfVZxb4b",inner:"inner-BfVZxb4b",group:"group-BfVZxb4b",lastGroup:"lastGroup-BfVZxb4b",fill:"fill-BfVZxb4b"}},74623:e=>{e.exports={toggleButton:"toggleButton-OhcB9eH7",collapsed:"collapsed-OhcB9eH7",background:"background-OhcB9eH7",arrow:"arrow-OhcB9eH7",accessible:"accessible-OhcB9eH7"}},67574:e=>{e.exports={item:"item-yfwdxbRo",hovered:"hovered-yfwdxbRo"}},17040:e=>{e.exports={desktopSize:"desktopSize-l1SzP6TV",smallSize:"smallSize-l1SzP6TV",tabs:"tabs-l1SzP6TV",categories:"categories-l1SzP6TV"}},20217:e=>{e.exports={sticker:"sticker-aZclaNCs"}},41224:e=>{e.exports={"tablet-small-breakpoint":"(max-width: 440px)",stickerRow:"stickerRow-KUOIljqV"}},93038:e=>{e.exports={wrapper:"wrapper-FNeSdxed"}},93285:e=>{e.exports={drawer:"drawer-PzCssz1z",menuBox:"menuBox-PzCssz1z"}},48814:e=>{e.exports={toolButtonMagnet:"toolButtonMagnet-wg76fIbD",toolButtonMagnet__menuItem:"toolButtonMagnet__menuItem-wg76fIbD",toolButtonMagnet__hintPlaceholder:"toolButtonMagnet__hintPlaceholder-wg76fIbD",switcherLabel:"switcherLabel-wg76fIbD"}},859:e=>{e.exports={switcherLabel:"switcherLabel-ilIXB4Li"}},86443:e=>{e.exports={
sectionTitle:"sectionTitle-Srvnqigs",newBadge:"newBadge-Srvnqigs",label:"label-Srvnqigs"}},94293:e=>{e.exports={wrapper:"wrapper-_XJBqWvq"}},65380:e=>{e.exports={wrap:"wrap-Z4M3tWHb",scrollWrap:"scrollWrap-Z4M3tWHb",noScrollBar:"noScrollBar-Z4M3tWHb",content:"content-Z4M3tWHb",icon:"icon-Z4M3tWHb",scrollBot:"scrollBot-Z4M3tWHb",scrollTop:"scrollTop-Z4M3tWHb",isVisible:"isVisible-Z4M3tWHb",iconWrap:"iconWrap-Z4M3tWHb",fadeBot:"fadeBot-Z4M3tWHb",fadeTop:"fadeTop-Z4M3tWHb"}},29230:e=>{e.exports={iconContainer:"iconContainer-dmpvVypS"}},90397:(e,t,o)=>{"use strict";o.d(t,{AccessibleMenuItem:()=>u});var n=o(50959),i=o(97754),a=o.n(i),l=o(3343),s=o(50238),r=o(16396),c=o(11098);function u(e){const{className:t,reference:o,...i}=e,[u,d]=(0,s.useRovingTabindexElement)(o??null);return n.createElement(r.PopupMenuItem,{...i,className:a()(c.accessible,e.isActive&&c.active,t),reference:u,tabIndex:d,onKeyDown:function(e){if(e.target!==e.currentTarget)return;const t=(0,l.hashFromEvent)(e);13!==t&&32!==t||(e.preventDefault(),u.current instanceof HTMLElement&&u.current.click())},"data-role":"menuitem","aria-disabled":e.isDisabled||void 0,toolboxRole:"toolbar"})}},23484:(e,t,o)=>{"use strict";o.d(t,{MenuFavoriteButton:()=>u});var n=o(50959),i=o(97754),a=o.n(i),l=o(50238),s=o(36189),r=o(71402),c=o(59703);function u(e){const{onClick:t,isFilled:o,isActive:i,...u}=e,[d,h]=(0,l.useRovingTabindexElement)(null),m=o?r.removeTitlesMap[r.RemoveTitleType.Remove]:r.removeTitlesMap[r.RemoveTitleType.Add];return(0,n.useLayoutEffect)((()=>{const e=d.current;e instanceof HTMLElement&&e.dispatchEvent(new CustomEvent("common-tooltip-update"))}),[m,d]),n.createElement("button",{ref:d,tabIndex:h,onClick:t,className:a()(c.button,i&&c.active,"apply-common-tooltip"),type:"button","aria-label":m,"data-tooltip":m},n.createElement(s.FavoriteButton,{...u,isFilled:o,isActive:i,title:""}))}},74302:(e,t,o)=>{"use strict";o.d(t,{DEFAULT_MENU_ITEM_SWITCHER_THEME:()=>C,MenuItemSwitcher:()=>x});var n,i=o(50959),a=o(97754),l=o.n(a),s=o(17946),r=o(47282),c=o.n(r);function u(e){const{size:t="small",checked:o,disabled:n}=e;return i.createElement("span",{className:l()(c().switchView,c()[t],n&&c().disabled,o&&c().checked)},i.createElement("span",{className:c().track}),i.createElement("span",{className:c().thumb}))}!function(e){e.Small="small",e.Medium="medium",e.Large="large"}(n||(n={}));var d,h=o(3343),m=o(70330),p=o.n(m);function b(e){const t=(0,i.useContext)(s.CustomBehaviourContext),{size:o,intent:n="default",checked:a,className:r,enableActiveStateStyles:c=t.enableActiveStateStyles,disabled:d,onChange:m,title:b,id:v,name:g,value:f,tabIndex:w,role:C="switch",ariaDisabled:x,reference:T,ariaLabelledBy:_,ariaLabel:E,...k}=e;return i.createElement("span",{className:l()(r,p().switcher)},i.createElement("input",{...k,type:"checkbox",className:l()(p().input,c&&p().activeStylesEnabled,a&&p().checked,d&&p().disabled),role:C,"aria-checked":a,checked:a,onKeyDown:e=>{13===(0,h.hashFromEvent)(e)&&e.currentTarget?.click()},onChange:m,disabled:d,"aria-disabled":x,tabIndex:w,title:b,id:v,
name:g,value:f,ref:T,"aria-label":E,"aria-labelledby":_}),i.createElement("span",{className:l()(p().thumbWrapper,p()[n])},i.createElement(u,{checked:a,size:o,disabled:d})))}!function(e){e.Default="default",e.Select="select"}(d||(d={}));var v=o(9745),g=o(50238),f=o(90186),w=o(57213);const C=w;function x(e){const{role:t,checked:o,onChange:n,className:a,id:s,label:r,labelDescription:c,preventLabelHighlight:u,value:d,reference:m,switchReference:p,theme:C=w,disabled:x,switchRole:T,icon:_}=e,[E,k]=(0,g.useRovingTabindexElement)(null),S=l()(C.label,o&&!u&&C.labelOn,x&&w.label_disabled),F=l()(a,C.wrapper,o&&C.wrapperWithOnLabel,c&&C.wrapperWithDescription);return i.createElement("label",{role:t,className:l()(F,_&&C.withIcon,w.accessible),htmlFor:s,ref:m,onKeyDown:function(e){if(e.target!==e.currentTarget)return;const t=(0,h.hashFromEvent)(e);13!==t&&32!==t||(e.preventDefault(),E.current instanceof HTMLElement&&E.current.click())},tabIndex:k,"data-role":"menuitem","aria-disabled":x||void 0,"aria-selected":o},void 0!==_&&i.createElement(v.Icon,{className:C.icon,icon:_}),i.createElement("div",{className:C.labelRow},i.createElement("div",{className:S},r),c&&i.createElement("div",{className:C.labelHint},c)),i.createElement("div",{className:w.switchWrap},i.createElement(b,{disabled:x,className:C.switch,reference:function(e){E(e),p?.(e)},checked:o,onChange:function(e){const t=e.target.checked;void 0!==n&&n(t)},value:d,tabIndex:-1,id:s,role:T,ariaDisabled:!0,...(0,f.filterDataProps)(e)})))}},31398:(e,t,o)=>{"use strict";o.d(t,{menuItemSwitcherMobileTheme:()=>l});var n=o(40173),i=o(74302),a=o(16284);const l=(0,n.mergeThemes)(i.DEFAULT_MENU_ITEM_SWITCHER_THEME,a)},32473:(e,t,o)=>{"use strict";o.d(t,{ToolButton:()=>c});var n=o(50959),i=o(97754),a=o.n(i),l=o(46003);const s=n.forwardRef(((e,t)=>{const{className:o,...i}=e;return n.createElement(l.ToolWidgetButton,{ref:t,className:o,"aria-pressed":i.isActive,isPressed:i.isActive,...i})}));var r=o(19836);const c=(0,n.forwardRef)(((e,t)=>{const{id:o,className:i,icon:c,isActive:u,isGrayed:d,isTransparent:h,onClick:m,buttonHotKey:p,tooltipPosition:b="vertical",tag:v,tabIndex:g,tooltip:f,...w}=e,C="button"===v,x=h?l.ToolWidgetButton:s;return n.createElement(x,{"aria-label":C?f:void 0,...w,id:o,ref:t,className:a()(r.button,i),tag:v,isActive:u,isDisabledAppearance:d,icon:c,onClick:m,forceInteractive:!0,tabIndex:g,"data-tooltip":f,tooltipPosition:b,"data-tooltip-hotkey":p})}))},46003:(e,t,o)=>{"use strict";o.d(t,{DEFAULT_TOOL_WIDGET_BUTTON_THEME:()=>s,ToolWidgetButton:()=>r});var n=o(50959),i=o(97754),a=o(9745),l=o(99343);const s=l,r=n.forwardRef(((e,t)=>{const{tag:o="div",icon:s,endIcon:r,isActive:c,isOpened:u,isDisabled:d,isDisabledAppearance:h,isGrouped:m,isHovered:p,isClicked:b,onClick:v,text:g,textBeforeIcon:f,title:w,theme:C=l,className:x,forceInteractive:T,"data-name":_,"data-tooltip":E,tooltipPosition:k,children:S,isPressed:F,...y}=e,M=i(x,C.button,{"apply-common-tooltip":Boolean(w||E),"common-tooltip-vertical":Boolean(E)&&"vertical"===k,[C.isActive]:c,[C.isOpened]:u,
[C.isInteractive]:(T||Boolean(v))&&!d&&!h,[C.isDisabled]:Boolean(d||h),[C.isGrouped]:m,[C.hover]:p,[C.clicked]:b,[C.pressed]:F}),A=s&&("string"==typeof s?n.createElement(a.Icon,{className:C.icon,icon:s}):n.cloneElement(s,{className:i(C.icon,s.props.className)}));return"button"===o?n.createElement("button",{...y,ref:t,type:"button",className:i(M,C.accessible),disabled:d&&!h,onClick:v,title:w,"data-name":_,"data-tooltip":E},f&&g&&n.createElement("div",{className:i("js-button-text",C.text)},g),A,!f&&g&&n.createElement("div",{className:i("js-button-text",C.text)},g),S):n.createElement("div",{...y,ref:t,"data-role":"button",className:M,onClick:d?void 0:v,title:w,"data-name":_,"data-tooltip":E},f&&g&&n.createElement("div",{className:i("js-button-text",C.text)},g),A,!f&&g&&n.createElement("div",{className:i("js-button-text",C.text)},g),r&&n.createElement(a.Icon,{icon:r,className:l.endIcon}),S)}))},43845:(e,t,o)=>{"use strict";o.d(t,{ToolWidgetMenuSummary:()=>l});var n=o(50959),i=o(97754),a=o(79619);function l(e){return n.createElement("div",{className:i(e.className,a.title)},e.children)}},7314:(e,t,o)=>{"use strict";o.r(t),o.d(t,{DrawingToolbarRenderer:()=>No});var n=o(50959),i=o(32227),a=o(50151),l=o(97754),s=o.n(l),r=o(32563),c=o(1765),u=o(37103),d=o(78861),h=o(76422),m=o(48096),p=o(49483),b=o(84015),v=o(18117);class g{constructor(e){this._drawingsAccess=e||{tools:[],type:"black"}}isToolEnabled(e){const t=this._findTool(e);return!(!t||!t.grayed)||("black"===this._drawingsAccess.type?!t:!!t)}isToolGrayed(e){const t=this._findTool(e);return Boolean(t&&t.grayed)}_findTool(e){return this._drawingsAccess.tools.find((t=>t.name===e))}}var f=o(84902),w=o(55308),C=o(9745),x=o(22961),T=o(76662),_=o(45601),E=o(65380),k=o(61380);class S extends n.PureComponent{constructor(e){super(e),this._scroll=null,this._handleScrollTop=()=>{this.animateTo(Math.max(0,this.currentPosition()-(this.state.heightWrap-50)))},this._handleScrollBot=()=>{this.animateTo(Math.min((this.state.heightContent||0)-(this.state.heightWrap||0),this.currentPosition()+(this.state.heightWrap-50)))},this._handleResizeWrap=([e])=>{this.setState({heightWrap:e.contentRect.height})},this._handleResizeContent=([e])=>{this.setState({heightContent:e.contentRect.height})},this._handleScroll=()=>{const{onScroll:e}=this.props;e&&e(this.currentPosition(),this.isAtTop(),this.isAtBot()),this._checkButtonsVisibility()},this._checkButtonsVisibility=()=>{const{isVisibleTopButton:e,isVisibleBotButton:t}=this.state,o=this.isAtTop(),n=this.isAtBot();o||e?o&&e&&this.setState({isVisibleTopButton:!1}):this.setState({isVisibleTopButton:!0}),n||t?n&&t&&this.setState({isVisibleBotButton:!1}):this.setState({isVisibleBotButton:!0})},this.state={heightContent:0,heightWrap:0,isVisibleBotButton:!1,isVisibleTopButton:!1}}componentDidMount(){this._checkButtonsVisibility()}componentDidUpdate(e,t){t.heightWrap===this.state.heightWrap&&t.heightContent===this.state.heightContent||this._handleScroll()}currentPosition(){return this._scroll?this._scroll.scrollTop:0}isAtTop(){return this.currentPosition()<=1}
isAtBot(){return this.currentPosition()+this.state.heightWrap>=this.state.heightContent-1}animateTo(e,t=T.dur){const o=this._scroll;o&&(0,x.doAnimate)({onStep(e,t){o.scrollTop=t},from:o.scrollTop,to:Math.round(e),easing:T.easingFunc.easeInOutCubic,duration:t})}render(){const{children:e,isVisibleScrollbar:t,isVisibleFade:o,isVisibleButtons:i,onMouseOver:a,onMouseOut:l}=this.props,{heightContent:r,heightWrap:c,isVisibleBotButton:u,isVisibleTopButton:d}=this.state;return n.createElement(_.Measure,{onResize:this._handleResizeWrap},(h=>n.createElement("div",{className:E.wrap,onMouseOver:a,onMouseOut:l,ref:h},n.createElement("div",{className:s()(E.scrollWrap,{[E.noScrollBar]:!t}),onScroll:this._handleScroll,ref:e=>this._scroll=e},n.createElement(_.Measure,{onResize:this._handleResizeContent},(t=>n.createElement("div",{className:E.content,ref:t},e)))),o&&n.createElement("div",{className:s()(E.fadeTop,{[E.isVisible]:d&&r>c})}),o&&n.createElement("div",{className:s()(E.fadeBot,{[E.isVisible]:u&&r>c})}),i&&n.createElement("div",{className:s()(E.scrollTop,{[E.isVisible]:d&&r>c}),onClick:this._handleScrollTop},n.createElement("div",{className:E.iconWrap},n.createElement(C.Icon,{icon:k,className:E.icon}))),i&&n.createElement("div",{className:s()(E.scrollBot,{[E.isVisible]:u&&r>c}),onClick:this._handleScrollBot},n.createElement("div",{className:E.iconWrap},n.createElement(C.Icon,{icon:k,className:E.icon}))))))}}S.defaultProps={isVisibleScrollbar:!0};var F=o(26709),y=o(87713),M=o(32473),A=o(50238);function I(e){const[t,o]=(0,A.useRovingTabindexElement)(null);return n.createElement(M.ToolButton,{...e,ref:t,tag:"button",tabIndex:o})}function N(e){const{id:t,action:o,isTransparent:i,toolName:a}=e;return n.createElement(I,{id:t,icon:v.lineToolsInfo[a].icon,isTransparent:i,onClick:o,tooltip:v.lineToolsInfo[a].localizedName,"data-name":a})}var D,W=o(11542),L=o(90186),R=o(29185),B=o(22613);!function(e){e.Icons="icons",e.Emojis="emojis",e.Stickers="stickers"}(D||(D={}));const O=c.getValue("ToolButtonIcons.LastCategory",D.Emojis),P=new B.WatchedValue(O);function V(){const[e,t]=(0,R.useWatchedValue)(P);return[e,(0,n.useCallback)((e=>{t(e),function(e){c.setValue("ToolButtonIcons.LastCategory",e)}(e)}),[t])]}var H=o(99616),j=o(93038);function z(e){return n.createElement("div",{className:j.wrapper},e.text)}var U=o(70173),G=o(51609),Q=o(22976),q=o(70616),Z=o(18042),J=o(44986),K=o(83778),$=o(48748)
;const X=["0xF087","0xF088","0xF164","0xF165","0xF0A4","0xF0A5","0xF007","0xF0A6","0xF0A7","0xF118","0xF11A","0xF119","0xF183"],Y=["0xF153","0xF154","0xF155","0xF156","0xF157","0xF158","0xF159","0xF195","0xF15A"],ee=["0xF060","0xF061","0xF062","0xF063","0xF053","0xF054","0xF077","0xF078","0xF07D","0xF07E","0xF0A9","0xF0AA","0xF0AB","0xF0D9","0xF0DA","0xF0D7","0xF0D8","0xF102","0xF103","0xF104","0xF105","0xF106","0xF107","0xF137","0xF139","0xF13A","0xF112","0xF064","0xF148","0xF149","0xF177","0xF178","0xF175","0xF176","0xF01A","0xF01B","0xF065","0xF066"],te=["0xF11D","0xF11E","0xF024","0xF004","0xF005","0xF006","0xF046","0xF00C","0xF00D","0xF011","0xF012","0xF021","0xF01E","0xF192","0xF041","0xF14A","0xF055","0xF056","0xF057","0xF059","0xF058","0xF05A","0xF05B","0xF05C","0xF05D","0xF05E","0xF067","0xF068","0xF069","0xF06A","0xF071","0xF06E","0xF070","0xF075","0xF08A","0xF0A3","0xF0E5","0xF110","0xF111","0xF123","0xF124","0xF10C","0xF128","0xF129","0xF12A","0xF140","0xF113","0xF17C","0xF179"],oe=["0xF06C","0xF185","0xF186","0xF188","0xF0E7"],ne=["0xF000","0xF002","0xF00E","0xF015","0xF017","0xF030","0xF013","0xF043","0xF06B","0xF072","0xF076","0xF080","0xF084","0xF040","0xF0A1","0xF0A2","0xF0D6","0xF0E3","0xF0EB","0xF0F3","0xF135","0xF13D","0xF2FE"],ie=[...X,...Y,...ee,...te,...oe,...ne].map((e=>+e)),ae=new Set(ie);const le=[{title:W.t(null,{context:"emoji_group"},o(88906)),emojis:[],content:n.createElement(H.IconItem,{icon:J})},{title:W.t(null,{context:"emoji_group"},o(51853)),emojis:X,content:n.createElement(H.IconItem,{icon:K})},{title:W.t(null,{context:"emoji_group"},o(33282)),emojis:te,content:n.createElement(H.IconItem,{icon:q})},{title:W.t(null,{context:"emoji_group"},o(31054)),emojis:oe,content:n.createElement(H.IconItem,{icon:$})},{title:W.t(null,{context:"emoji_group"},o(14143)),emojis:Y,content:n.createElement(H.IconItem,{icon:Q})},{title:W.t(null,{context:"emoji_group"},o(98355)),emojis:ne,content:n.createElement(H.IconItem,{icon:Z})},{title:W.t(null,{context:"emoji_group"},o(74245)),emojis:ee,content:n.createElement(H.IconItem,{icon:G})}],se={[D.Icons]:U.drawingToolsIcons.heart,[D.Emojis]:U.drawingToolsIcons.smile,[D.Stickers]:U.drawingToolsIcons.sticker},re=[{title:D.Emojis,content:n.createElement(z,{text:W.t(null,void 0,o(16290))})},{title:D.Stickers,content:n.createElement(z,{text:W.t(null,void 0,o(50428))})},{title:D.Icons,content:n.createElement(z,{text:W.t(null,void 0,o(73829))})}];var ce=o(3343),ue=o(20520),de=o(27317),he=o(76460),me=o(41590),pe=o(40173),be=o(73607),ve=o(14665);const ge=o(78299),fe=(0,n.forwardRef)(((e,t)=>{const{buttonIcon:o,buttonTitle:i,buttonHotKey:a,dropdownTooltip:s,children:c,isActive:u,isGrayed:d,onClickWhenGrayed:h,checkable:m,isSmallTablet:p,theme:b=ge,onClickButton:v,onArrowClick:g,openDropdownByClick:f,onMenuFocus:w=be.handleAccessibleMenuFocus,onMenuKeyDown:x=be.handleAccessibleMenuKeyDown,dataMenuQaId:T,..._}=e,E=(0,pe.mergeThemes)(de.DEFAULT_MENU_THEME,{menuBox:b.menuBox}),[k,S]=(0,n.useState)(!1),[F,y]=(0,n.useState)(!1),I=(0,n.useRef)(null),N=(0,
n.useRef)(null),D=(0,n.useRef)(null),W=(0,n.useRef)(0),L=(0,n.useRef)(0),[R,B]=(0,A.useRovingTabindexElement)(null),[O,P]=(0,A.useRovingTabindexElement)(null);return(0,n.useImperativeHandle)(t,(()=>({open:()=>S(!0)})),[]),n.createElement("div",{..._,className:l(b.dropdown,{[b.isGrayed]:d,[b.isActive]:u,[b.isOpened]:k}),onClick:d?h:void 0,onKeyDown:function(e){if(e.defaultPrevented||!(e.target instanceof Node))return;const t=(0,ce.hashFromEvent)(e);if(e.currentTarget.contains(e.target)||27!==t)return;e.preventDefault(),V(!1),F&&O?.current?.focus()},ref:I},n.createElement("div",{ref:N,className:b.control},n.createElement("div",{...function(){if(!d)return r.mobiletouch?m?{onTouchStart:z,onTouchEnd:G,onTouchMove:U}:{onClick:j}:{onMouseDown:z,onMouseUp:Q};return{}}(),className:l(b.buttonWrap,b.accessible)},n.createElement(M.ToolButton,{icon:o,isActive:u,isGrayed:d,isTransparent:!m,ref:R,tag:"button",tabIndex:B,onClick:function(e){if(!(0,he.isKeyboardClick)(e))return;f?V(!0,!0):v?.()},tooltip:i,buttonHotKey:a,"data-tooltip-delay":1500,tooltipPosition:"vertical"})),!d&&!r.mobiletouch&&n.createElement("button",{className:l(b.arrow,s&&"apply-common-tooltip common-tooltip-vertical",b.accessible),onClick:function(e){g?.(),V(void 0,(0,he.isKeyboardClick)(e))},onKeyDown:function(e){if(e.defaultPrevented||!(e.target instanceof Node))return;const t=(0,ce.hashFromEvent)(e);if(e.currentTarget.contains(e.target))switch(t){case 39:if(k)return;e.preventDefault(),V(!0,!0);break;case 27:if(!k)return;e.preventDefault(),V(!1)}},type:"button",ref:O,tabIndex:P,"aria-pressed":u,"aria-label":s,"data-tooltip":s},n.createElement(C.Icon,{className:b.arrowIcon,icon:ve}))),!d&&(p?k&&n.createElement(me.Drawer,{className:b.drawer,onClose:H,position:"Bottom","data-qa-id":T},c):n.createElement(ue.PopupMenu,{theme:E,doNotCloseOn:function(){if(null===I.current)return[];return[I.current]},isOpened:k,onClose:H,position:function(){if(!N||!N.current)return{x:0,y:0};const e=N.current.getBoundingClientRect();return{x:e.left+e.width+1,y:e.top-6}},onKeyDown:x,onFocus:e=>w(e,O),controller:D,onOpen:function(){D.current?.focus()},tabIndex:-1,dataQaId:T},c)));function V(e,t=!1){const o=void 0!==e?e:!k;S(o),y(!!o&&t)}function H(){V(!1)}function j(){v&&v(),V()}function z(){if(r.mobiletouch&&!m)!L.current&&v&&v();else{if(W.current)return clearTimeout(W.current),W.current=0,void V(!0);W.current=setTimeout((()=>{W.current=0,!L.current&&v&&v()}),175)}L.current=setTimeout((()=>{L.current=0,V(!0)}),300)}function U(){clearTimeout(L.current),L.current=0,clearTimeout(W.current),W.current=0}function G(e){e.cancelable&&e.preventDefault(),Q()}function Q(){L.current&&(clearTimeout(L.current),L.current=0,k?V(!1):m||k||r.mobiletouch||!u&&!f?!W.current&&v&&v():V(!0))}}));var we=o(38297),Ce=o(85034),xe=o(97995),Te=o(67763),_e=o(21097);class Ee extends Te.CommonJsonStoreService{constructor(e,t,o,n,i=18){super(_e.TVXWindowEvents,c,e,t,[]),this._onChangeDrawingState=()=>{const e=d[this._drawingType].value();this._promote(e)},this._sanitizer=o,this._drawingType=n,this._maxRecentCount=i,
d[this._drawingType].subscribe(this._onChangeDrawingState)}destroy(){d[this._drawingType].unsubscribe(this._onChangeDrawingState),super.destroy()}_deserialize(e){const t=this._sanitizer(e);return this._removeUnavailableRecents(e,t)}_removeUnavailableRecents(e,t){return Array.isArray(e)?e.length>this._maxRecentCount&&(t=e.slice(0,this._maxRecentCount)):t=[],t}_promote(e){let t=[...this.get()];const o=t.indexOf(e);-1!==o&&t.splice(o,1),t=[e,...t.slice(0,this._maxRecentCount-1)],this.set(t)}}const ke=new Ee("RECENT_ICONS_CHANGED","linetoolicon.recenticons",(function(e){return e.filter((e=>ae.has(e)))}),"iconTool");var Se=o(29230);function Fe(e){const{fallback:t,...o}=e;return n.createElement(n.Suspense,{fallback:t??null},n.createElement(ye,{...o}))}const ye=n.lazy((async()=>{const{getSvgContentForCharCode:e}=await o.e(7987).then(o.bind(o,40606));return{default:t=>{const{charCode:o}=t,i=e(o)??void 0;return n.createElement(C.Icon,{icon:i,className:Se.iconContainer})}}}));var Me=o(67574);var Ae=o(173);const Ie=new Ee("RECENT_EMOJIS_CHANGED","linetoolemoji.recents",Ae.removeUnavailableEmoji,"emojiTool");var Ne;!function(e){e.Elon="elon",e.Saylor="saylor",e.Doge="doge",e.Dislike="dislike",e.Yolo="yolo",e.Whale="whale",e.Wagmi="wagmi",e.Tendies="tendies",e.Short="short",e.Rugged="rugged",e.Shill="shill",e.Rekt="rekt",e.Sell="sell",e.PaperHands="paper-hands",e.Og="og",e.Fud="fud",e.Gm="gm",e.Ngmi="ngmi",e.Moon="moon",e.Love="love",e.Lambo="lambo",e.Ethereum="ethereum",e.Look="look",e.DiamondHand="diamond-hand",e.Leap="leap",e.Like="like",e.Few="few",e.Bitcoin="bitcoin",e.BagHolder="bag-holder",e.BuyTheDip="buy-the-dip",e.Buy="buy",e.Hodl="hodl"}(Ne||(Ne={}));const De=["elon","saylor","doge","dislike","yolo","whale","wagmi","tendies","short","rugged","shill","rekt","sell","paper-hands","og","fud","gm","ngmi","moon","love","lambo","ethereum","look","diamond-hand","leap","like","few","bitcoin","bag-holder","buy-the-dip","buy","hodl"];var We=o(37603),Le=o(90624);const Re=new Set(De);const Be=[{title:W.t(null,{context:"emoji_group"},o(88906)),emojis:[],content:n.createElement(H.IconItem,{icon:We})},{title:"TradingView",emojis:De,content:n.createElement(H.IconItem,{icon:Le})}],Oe=new Ee("RECENT_STICKERS_CHANGED","linetoolsticker.recents",(function(e){return e.filter((e=>Re.has(e)))}),"stickerTool",3);var Pe=o(78036),Ve=o(47291),He=o(20217);var je,ze=o(26601),Ue=o(41224);!function(e){e.Icon="LineToolIcon",e.Emoji="LineToolEmoji",e.Sticker="LineToolSticker"}(je||(je={}));const Ge={[D.Icons]:{service:ke,toolName:"LineToolIcon",ItemComponent:function(e){const{emoji:t,className:o}=e;return n.createElement("div",{className:s()(Me.item,o)},n.createElement(Fe,{charCode:Number(t)}))},icons:le,onEmojiSelect:e=>{d.iconTool.setValue(Number(e)),d.tool.setValue("LineToolIcon"),(0,xe.trackDrawingToolSelected)("LineToolIcon","Left panel")}},[D.Emojis]:{service:Ie,toolName:"LineToolEmoji",icons:(0,Ae.emojiGroups)(),onEmojiSelect:e=>{d.emojiTool.setValue(e),d.tool.setValue("LineToolEmoji"),(0,xe.trackDrawingToolSelected)("LineToolEmoji","Left panel")
}},[D.Stickers]:{service:Oe,toolName:"LineToolSticker",ItemComponent:function(e){const{emoji:t}=e,{size:i}=(0,Pe.useEnsuredContext)(Ve.EmojiListContentContext),[a,l]=(0,n.useState)();return(0,n.useEffect)((()=>{o.e(5598).then(o.bind(o,51871)).then((({getSvgContentForSticker:e})=>{const o=e(t);o&&l(o)}))}),[]),n.createElement(C.Icon,{className:He.sticker,icon:null!==a?a:void 0,style:{width:`${i}px`,height:`${i}px`}})},RowComponent:function(e){return n.createElement(ze.EmojisRow,{...e,className:Ue.stickerRow})},icons:Be,onEmojiSelect:e=>{d.stickerTool.setValue(e),d.tool.setValue("LineToolSticker"),(0,xe.trackDrawingToolSelected)("LineToolSticker","Left panel")},getEmojiSize:e=>e?78:112}};var Qe=o(17040);function qe(e){const{isSmallTablet:t,maxHeight:o,activeTab:i,setActiveTab:a}=e,s=Ge[i],{service:r,ItemComponent:c,RowComponent:u,onEmojiSelect:d,getEmojiSize:h}=s,m=h&&h(t),[p,b]=(0,n.useState)(Ze(s));return(0,n.useLayoutEffect)((()=>{const e={},t=()=>{const e=Ze(s);b(e)};return t(),r.getOnChange().subscribe(e,t),()=>{r.getOnChange().unsubscribeAll(e)}}),[s]),n.createElement("div",{style:{maxHeight:o}},n.createElement(we.EmojiList,{className:l(Qe.desktopSize,t&&Qe.smallSize),emojis:p,onSelect:function(e){d(e),(0,y.globalCloseMenu)()},ItemComponent:c,RowComponent:u,height:o,category:i,emojiSize:m}),n.createElement(Ce.GroupTabs,{className:Qe.tabs,tabClassName:Qe.categories,tabs:re,activeTab:i,onTabClick:function(e){a(e)}}))}function Ze(e){const{icons:t,service:o}=e,n=[...t],i=o.get();return n[0].emojis=i.map((e=>String(e))),n.filter((e=>e.emojis.length))}var Je=o(22692),Ke=o(68335),$e=o(98754),Xe=o(93285);const Ye={icon:W.t(null,void 0,o(37913)),dropdownTooltip:W.t(null,void 0,o(73829))},et=(0,pe.mergeThemes)(ge,{menuBox:Xe.menuBox,drawer:Xe.drawer}),tt=parseInt($e["default-drawer-min-top-distance"]);function ot(e){const{isGrayed:t,isSmallTablet:o}=e,i=(0,L.filterDataProps)(e),[a,l]=V(),[s]=(0,R.useWatchedValue)(d.tool),{toolName:r}=Ge[a];return n.createElement(fe,{theme:et,buttonIcon:se[a],buttonTitle:Ye.icon,dropdownTooltip:Ye.dropdownTooltip,isActive:s===r,isGrayed:t,isSmallTablet:o,onClickButton:function(){c()},onClickWhenGrayed:()=>(0,h.emit)("onGrayedObjectClicked",{type:"drawing",name:v.lineToolsInfo[r].localizedName}),onArrowClick:function(){c("menu")},openDropdownByClick:!0,onMenuFocus:nt,onMenuKeyDown:function(e){if(e.defaultPrevented)return;const t=(0,Ke.hashFromEvent)(e);9!==t&&t!==Ke.Modifiers.Shift+9||(0,Je.updateTabIndexes)()},dataMenuQaId:"emojipicker-menu",...i},n.createElement(qe,{isSmallTablet:o,maxHeight:o?Math.min(679,window.innerHeight-tt):679,activeTab:a,setActiveTab:l}));function c(e){0}}function nt(e){if(!e.target)return;const t=e.currentTarget;e.target===t&&((0,Je.updateTabIndexes)(),setTimeout((()=>{if(document.activeElement!==t)return;const[e]=(0,Je.queryTabbableElements)(t).sort(Je.navigationOrderComparator);e&&e.focus()})))}var it=o(78176);class at extends n.PureComponent{constructor(e){super(e),this._handleClick=()=>{this.props.saveDefaultOnChange&&(0,it.allowSavingDefaults)(!0)
;const e=!this.props.property.value();this.props.property.setValue(e),this.props.saveDefaultOnChange&&(0,it.allowSavingDefaults)(!1),this.props.onClick&&this.props.onClick(e)},this.state={isActive:this.props.property.value()}}componentDidMount(){this.props.property.subscribe(this,this._onChange)}componentWillUnmount(){this.props.property.unsubscribe(this,this._onChange)}render(){const{toolName:e}=this.props,{isActive:t}=this.state,o=v.lineToolsInfo[e];return n.createElement(I,{icon:t&&o.iconActive?o.iconActive:o.icon,isActive:t,onClick:this._handleClick,tooltip:o.localizedName,buttonHotKey:o.hotKey,"data-name":e})}_onChange(e){this.setState({isActive:e.value()})}}class lt extends n.PureComponent{constructor(e){super(e),this._handleClick=()=>{d.tool.setValue(this.props.toolName),(0,xe.trackDrawingToolSelected)(this.props.toolName,"Left panel"),this.props.onClick?.()},this._onChange=()=>{this.setState({isActive:d.tool.value()===this.props.toolName})},this.state={isActive:d.tool.value()===this.props.toolName}}componentDidMount(){d.tool.subscribe(this._onChange)}componentWillUnmount(){d.tool.unsubscribe(this._onChange)}render(){const{toolName:e}=this.props,{isActive:t}=this.state,o=v.lineToolsInfo[e];return n.createElement(I,{icon:v.lineToolsInfo[e].icon,isActive:t,isTransparent:!0,onClick:this._handleClick,tooltip:o.localizedName,buttonHotKey:o.hotKey,"data-name":e})}}class st extends n.PureComponent{constructor(e){super(e),this._boundUndoModel=null,this._handleClick=()=>{const e=this._activeChartWidget();e.hasModel()&&e.model().zoomFromViewport()},this._syncUnzoomButton=()=>{const e=this._activeChartWidget();let t=!1;if(e.hasModel()){const o=e.model();this._boundUndoModel!==o&&(this._boundUndoModel&&this._boundUndoModel.zoomStack().onChange().unsubscribe(null,this._syncUnzoomButton),o.zoomStack().onChange().subscribe(null,this._syncUnzoomButton),this._boundUndoModel=o),t=!o.zoomStack().isEmpty()}else e.withModel(null,this._syncUnzoomButton);this.setState({isVisible:t})},this.state={isVisible:!1}}componentDidMount(){this.props.chartWidgetCollection.activeChartWidget.subscribe(this._syncUnzoomButton,{callWithLast:!0})}componentWillUnmount(){this.props.chartWidgetCollection.activeChartWidget.unsubscribe(this._syncUnzoomButton)}render(){return this.state.isVisible?n.createElement(N,{action:this._handleClick,isTransparent:!0,toolName:"zoom-out"}):n.createElement("div",null)}_activeChartWidget(){return this.props.chartWidgetCollection.activeChartWidget.value()}}var rt=o(51613),ct=o(6519),ut=o(43845),dt=o(23484),ht=o(90397),mt=o(81332),pt=o(26610),bt=o(74302),vt=o(31398),gt=o(77975),ft=o(859);const wt=(0,pe.mergeThemes)(vt.menuItemSwitcherMobileTheme,{label:ft.switcherLabel}),Ct=(0,pe.mergeThemes)(bt.DEFAULT_MENU_ITEM_SWITCHER_THEME,{label:ft.switcherLabel});function xt(e){const{watchedValue:t,reactKey:o,label:i,value:a,isSmallTablet:l}=e,s=(0,gt.useWatchedValueReadonly)({watchedValue:t});return n.createElement(bt.MenuItemSwitcher,{key:o,checked:s,onChange:function(e){t.setValue(e)},label:i,value:a,theme:l?wt:Ct})}
var Tt=o(86443);new Set([]);class _t extends n.PureComponent{constructor(e){super(e),this._onChangeDrawingState=()=>{const e=this._getActiveToolName();this.setState({current:e||this.state.current,isActive:!!e})},this._handleClickButton=()=>{this._trackClick();const{current:e}=this.state;!p.CheckMobile.any()&&e&&this._selectTool(e)},this._handleClickItem=e=>{this._selectTool(e)},this._handleGrayedClick=e=>{(0,h.emit)("onGrayedObjectClicked",{type:"drawing",name:v.lineToolsInfo[e].localizedName})},this._handleClickFavorite=e=>{this.state.favState&&this.state.favState[e]?ct.LinetoolsFavoritesStore.removeFavorite(e):ct.LinetoolsFavoritesStore.addFavorite(e)},this._onAddFavorite=e=>{this.setState({favState:{...this.state.favState,[e]:!0}})},this._onRemoveFavorite=e=>{this.setState({favState:{...this.state.favState,[e]:!1}})},this._onSyncFavorites=()=>{this.setState({favState:this._composeFavState()})},this._handleArrowClick=()=>{this._trackClick("menu")},this._trackClick=e=>{const{trackLabel:t}=this.props};const t=this._getActiveToolName();this.state={current:t||this._firstNonGrayedTool(),favState:this._composeFavState(),isActive:!!t}}componentDidMount(){d.tool.subscribe(this._onChangeDrawingState),ct.LinetoolsFavoritesStore.favoriteAdded.subscribe(null,this._onAddFavorite),ct.LinetoolsFavoritesStore.favoriteRemoved.subscribe(null,this._onRemoveFavorite),ct.LinetoolsFavoritesStore.favoritesSynced.subscribe(null,this._onSyncFavorites)}componentWillUnmount(){d.tool.unsubscribe(this._onChangeDrawingState),ct.LinetoolsFavoritesStore.favoriteAdded.unsubscribe(null,this._onAddFavorite),ct.LinetoolsFavoritesStore.favoriteRemoved.unsubscribe(null,this._onRemoveFavorite),ct.LinetoolsFavoritesStore.favoritesSynced.unsubscribe(null,this._onSyncFavorites)}componentDidUpdate(e,t){e.lineTools!==this.props.lineTools&&this.setState({favState:this._composeFavState()})}render(){const{current:e,favState:t,isActive:o}=this.state;if(!e)return n.createElement(n.Fragment,null);const{favoriting:i,grayedTools:a,lineTools:l,dropdownTooltip:s,isSmallTablet:r}=this.props,c=this._showShortcuts(),u=v.lineToolsInfo[e],d=(0,L.filterDataProps)(this.props);return n.createElement("span",null,n.createElement(fe,{buttonIcon:u.icon,buttonTitle:u.localizedName,buttonHotKey:u.hotKey,dropdownTooltip:s,isActive:o,onClickButton:this._handleClickButton,onArrowClick:this._handleArrowClick,isSmallTablet:r,...d},l.map(((l,s)=>{if("title"in l)return n.createElement(n.Fragment,{key:l.title??`separator${s}`},s>0?n.createElement(rt.PopupMenuSeparator,null):null,l.title&&n.createElement(ut.ToolWidgetMenuSummary,{className:Tt.sectionTitle},l.title));if((0,f.isLineToolOption)(l))return this._getLineToolOption(l);const{name:u}=l,d=v.lineToolsInfo[u]?.selectHotkey?.hash,h=v.lineToolsInfo[u],m=a[u];return n.createElement(ht.AccessibleMenuItem,{key:u,"data-name":u,theme:r?mt.multilineLabelWithIconAndToolboxTheme:void 0,dontClosePopup:m,forceShowShortcuts:c,shortcut:!r&&d?(0,Ke.humanReadableHash)(d):void 0,icon:h.icon,isActive:o&&e===u,appearAsDisabled:m,
label:n.createElement("div",{className:Tt.label},h.localizedName,!1),showToolboxOnFocus:!0,onClick:m?this._handleGrayedClick:this._handleClickItem,onClickArg:u,showToolboxOnHover:!t[u],toolbox:i&&!m?n.createElement(dt.MenuFavoriteButton,{isActive:o&&e===u,isFilled:t[u],onClick:()=>this._handleClickFavorite(u)}):void 0})}))))}_firstNonGrayedTool(){const{grayedTools:e,lineTools:t}=this.props;return t.find((t=>(0,f.isLineTool)(t)&&!e[t.name]))?.name}_showShortcuts(){return this.props.lineTools.some((e=>"hotkeyHash"in e))}_getLineToolOption(e){return(0,f.isLineToolSwitcherOption)(e)?n.createElement(n.Fragment,{key:`${e.value}-${e.type}`},n.createElement(rt.PopupMenuSeparator,null),n.createElement(xt,{...e,isSmallTablet:this.props.isSmallTablet})):null}_getActiveToolName(){return this.props.lineTools.find((e=>(0,f.isLineTool)(e)&&e.name===d.tool.value()))?.name}async _selectTool(e){await(0,pt.initLineTool)(e),d.tool.setValue(e),(0,xe.trackDrawingToolSelected)(e,"Left panel")}_composeFavState(){const e={};return this.props.lineTools.forEach((t=>{(0,f.isLineTool)(t)&&(e[t.name]=ct.LinetoolsFavoritesStore.isFavorite(t.name))})),e}}var Et=o(51768),kt=o(16396),St=o(17850);const Ft=(0,pe.mergeThemes)(kt.DEFAULT_POPUP_MENU_ITEM_THEME,St);var yt=o(89947),Mt=o(5734),At=o(94293);const It=!1;class Nt extends n.PureComponent{constructor(e){super(e),this._handleRemoveToolClick=()=>{r.mobiletouch||this._handleRemoveDrawings(),Wt()},this._handleRemoveDrawings=()=>{Dt("remove drawing"),this.props.chartWidgetCollection.activeChartWidget.value().actions().paneRemoveAllDrawingTools.execute()},this._handleRemoveStudies=()=>{Dt("remove indicator"),this.props.chartWidgetCollection.activeChartWidget.value().actions().paneRemoveAllStudies.execute()},this._handleRemoveAll=()=>{Dt("remove all"),this.props.chartWidgetCollection.activeChartWidget.value().actions().paneRemoveAllStudiesDrawingTools.execute()},this._handleAlwaysRemoveLockedDrawings=()=>{const e=!yt.deleteLockedLineToolsProperty.value();yt.deleteLockedLineToolsProperty.setValue(e),e&&Mt.doNotShowDeleteLockedLineConfirmProperty.setValue(!0),this.setState(this._getActualState())},this._handleChartWidgetInitialized=()=>{this._activeChartWidget&&(this._unsubscribeToModelChanges(this._activeChartWidget),this._subscribeToModelChanges(this._activeChartWidget))},this._handleActiveChartWidgetChanged=e=>{this._activeChartWidget&&(this._unsubscribeToModelChanges(this._activeChartWidget),this._activeChartWidget.chartWidgetInitialized().unsubscribe(null,this._handleChartWidgetInitialized)),e&&(this._subscribeToModelChanges(e),e.chartWidgetInitialized().subscribe(null,this._handleChartWidgetInitialized)),this._activeChartWidget=e,this._handleCollectionChanged()},this._handleCollectionChanged=()=>{this.setState(this._getActualState())},this._getActualState=()=>{if(!this._activeChartWidget||!this._activeChartWidget.hasModel())return{removeAllDrawingsLabel:W.t(null,void 0,o(96374)),removeAllStudiesLabel:W.t(null,void 0,o(99984)),removeAllLabel:W.t(null,void 0,o(53981)),
alwaysRemoveLockedDrawings:yt.deleteLockedLineToolsProperty.value()};const e=this._activeChartWidget.actions();return{removeAllDrawingsLabel:e.paneRemoveAllDrawingTools.getState().label,removeAllStudiesLabel:e.paneRemoveAllStudies.getState().label,removeAllLabel:e.paneRemoveAllStudiesDrawingTools.getState().label,alwaysRemoveLockedDrawings:yt.deleteLockedLineToolsProperty.value()}},this._activeChartWidget=this.props.chartWidgetCollection.activeChartWidget.value(),this.state=this._getActualState()}componentDidMount(){this.props.chartWidgetCollection.activeChartWidget.subscribe(this._handleActiveChartWidgetChanged,{callWithLast:!0})}componentWillUnmount(){this._activeChartWidget&&this._unsubscribeToModelChanges(this._activeChartWidget),this.props.chartWidgetCollection.activeChartWidget.unsubscribe(this._handleActiveChartWidgetChanged)}render(){const e=this.props.isSmallTablet?Ft:void 0,t=this.props.isSmallTablet?vt.menuItemSwitcherMobileTheme:bt.DEFAULT_MENU_ITEM_SWITCHER_THEME,i=this.props.isSmallTablet?At.wrapper:void 0,{removeAllDrawingsLabel:a,removeAllStudiesLabel:l,removeAllLabel:s,alwaysRemoveLockedDrawings:r}=this.state;return n.createElement(fe,{buttonIcon:v.lineToolsInfo[this.props.toolName].icon,buttonTitle:a,onClickButton:this._handleRemoveToolClick,dropdownTooltip:W.t(null,void 0,o(2671)),isSmallTablet:this.props.isSmallTablet,"data-name":this.props.toolName,onArrowClick:this._handleArrowClick,openDropdownByClick:It},n.createElement(ht.AccessibleMenuItem,{"data-name":"remove-drawing-tools",label:a,onClick:this._handleRemoveDrawings,theme:e}),n.createElement(ht.AccessibleMenuItem,{"data-name":"remove-studies",label:l,onClick:this._handleRemoveStudies,theme:e}),n.createElement(ht.AccessibleMenuItem,{"data-name":"remove-all",label:s,onClick:this._handleRemoveAll,theme:e}),n.createElement(n.Fragment,null,n.createElement(rt.PopupMenuSeparator,null),n.createElement(bt.MenuItemSwitcher,{checked:r,onChange:this._handleAlwaysRemoveLockedDrawings,label:W.t(null,void 0,o(94340)),value:"alwaysRemoveLockedDrawingsSwitcher",theme:t,className:i})))}_handleArrowClick(){Wt("menu")}_subscribeToModelChanges(e){e.withModel(this,(()=>{this._handleCollectionChanged(),e.model().model().dataSourceCollectionChanged().subscribe(this,this._handleCollectionChanged)}))}_unsubscribeToModelChanges(e){e.hasModel()&&e.model().model().dataSourceCollectionChanged().unsubscribe(this,this._handleCollectionChanged),e.modelCreated().unsubscribeAll(this)}}function Dt(e){(0,Et.trackEvent)("GUI","Chart Left Toolbar",e)}function Wt(e){0}var Lt=o(89880),Rt=o(90995),Bt=o(14881);const Ot=n.createContext({hideMode:"drawings",isActive:!1});function Pt(e){const{hideMode:t,option:{label:o,dataName:i,getBoxedValue:a},isSmallTablet:l,onClick:s}=e,{hideMode:r,isActive:c}=(0,n.useContext)(Ot),u=a?.();return"all"===t||u?n.createElement(ht.AccessibleMenuItem,{label:o,isActive:r===t&&c,onClick:function(){s(t,(0,Rt.toggleHideMode)(t))},"data-name":i,theme:l?Ft:void 0}):n.createElement(n.Fragment,null)}const Vt={drawings:{
active:U.drawingToolsIcons.hideAllDrawingToolsActive,inactive:U.drawingToolsIcons.hideAllDrawingTools},indicators:{active:U.drawingToolsIcons.hideAllIndicatorsActive,inactive:U.drawingToolsIcons.hideAllIndicators},positions:{active:U.drawingToolsIcons.hideAllPositionsToolsActive,inactive:U.drawingToolsIcons.hideAllPositionsTools},all:{active:U.drawingToolsIcons.hideAllDrawingsActive,inactive:U.drawingToolsIcons.hideAllDrawings}};function Ht(e){const{isSmallTablet:t}=e,[{isActive:i,hideMode:l},s]=(0,n.useState)((()=>({isActive:!1,hideMode:(0,Rt.getSavedHideMode)()})));(0,n.useEffect)((()=>(Bt.hideStateChange.subscribe(null,s),()=>{Bt.hideStateChange.unsubscribe(null,s)})),[]);const r=v.lineToolsInfo.hideAllDrawings,{trackLabel:c,tooltip:u,dataName:d}=(0,a.ensureDefined)((0,Rt.getHideOptions)().get(l)),h=Vt[l][i?"active":"inactive"],m=i?u.active:u.inactive;return n.createElement(fe,{buttonIcon:h,buttonTitle:m,buttonHotKey:r.hotKey,dropdownTooltip:Lt.t(null,void 0,o(95343)),onClickButton:function(){(0,Rt.toggleHideMode)(l),jt(c,!i),zt(i?"on":"off")},isSmallTablet:t,isActive:i,checkable:!0,"data-name":"hide-all","data-type":d,onArrowClick:function(){zt("menu")}},n.createElement(Ot.Provider,{value:{isActive:i,hideMode:l}},Array.from((0,Rt.getHideOptions)()).map((([e,o])=>n.createElement(Pt,{key:e,hideMode:e,option:o,isSmallTablet:t,onClick:p})))));function p(e,t){jt((0,a.ensureDefined)((0,Rt.getHideOptions)().get(e)).trackLabel,t)}}function jt(e,t){(0,Et.trackEvent)("GUI","Chart Left Toolbar",`${e} ${t?"on":"off"}`)}function zt(e){0}var Ut=o(69455),Gt=o(53573);const Qt=W.t(null,void 0,o(51465));class qt extends n.PureComponent{constructor(){super(...arguments),this._instance=null,this._promise=null,this._bindedForceUpdate=()=>this.forceUpdate(),this._handleClick=()=>{null!==this._instance&&(this._instance.isVisible()?(this._instance.hideAndSaveSettingsValue(),this._trackClick(!1)):(this._instance.showAndSaveSettingsValue(),this._trackClick(!0)))}}componentDidMount(){const e=this._promise=(0,a.ensureNotNull)((0,Ut.getFavoriteDrawingToolbarPromise)());e.then((t=>{this._promise===e&&(this._instance=t,this._instance.canBeShown().subscribe(this._bindedForceUpdate),this._instance.visibility().subscribe(this._bindedForceUpdate),this.forceUpdate())}))}componentWillUnmount(){this._promise=null,null!==this._instance&&(this._instance.canBeShown().unsubscribe(this._bindedForceUpdate),this._instance.visibility().unsubscribe(this._bindedForceUpdate),this._instance=null)}render(){return null!==this._instance&&this._instance.canBeShown().value()?n.createElement(I,{id:this.props.id,icon:Gt,isActive:this._instance.isVisible(),onClick:this._handleClick,tooltip:Qt}):null}_trackClick(e){0}}var Zt=o(7024),Jt=o(94322),Kt=o(48814);const $t={[Zt.MagnetMode.WeakMagnet]:{id:Zt.MagnetMode.WeakMagnet,name:"weakMagnet",icon:U.drawingToolsIcons.magnet,localizedName:W.t(null,void 0,o(3519))},[Zt.MagnetMode.StrongMagnet]:{id:Zt.MagnetMode.StrongMagnet,name:"strongMagnet",icon:U.drawingToolsIcons.strongMagnet,localizedName:W.t(null,void 0,o(94593))}
},Xt=(0,pe.mergeThemes)(vt.menuItemSwitcherMobileTheme,{label:Kt.switcherLabel}),Yt=(0,pe.mergeThemes)(bt.DEFAULT_MENU_ITEM_SWITCHER_THEME,{label:Kt.switcherLabel});function eo(e){const{isSmallTablet:t}=e,i=(0,gt.useWatchedValueReadonly)({watchedValue:(0,Jt.magnetEnabled)()}),a=(0,gt.useWatchedValueReadonly)({watchedValue:(0,Jt.magnetMode)()}),l=(0,gt.useWatchedValueReadonly)({watchedValue:(0,Jt.magnetSnapsToIndicators)()});return n.createElement("div",{className:Kt.toolButtonMagnet},n.createElement(fe,{"data-name":"magnet-button",buttonIcon:$t[a].icon,buttonTitle:v.lineToolsInfo.magnet.localizedName,dropdownTooltip:W.t(null,void 0,o(41964)),isActive:i,onClickButton:function(){const e=!i;(0,Et.trackEvent)("GUI","Chart Left Toolbar","magnet mode "+(e?"on":"off")),!1;(0,Jt.setIsMagnetEnabled)(e)},buttonHotKey:v.lineToolsInfo.magnet.hotKey,checkable:!0,isSmallTablet:t,onArrowClick:function(){0}},Object.values($t).map((({id:e,name:o,localizedName:l,icon:r})=>n.createElement(ht.AccessibleMenuItem,{key:e,className:t?Kt.toolButtonMagnet__menuItem:void 0,"data-name":o,icon:r,isActive:i&&a===e,label:l,onClick:s,onClickArg:e}))),n.createElement(n.Fragment,null,n.createElement(rt.PopupMenuSeparator,null),n.createElement(bt.MenuItemSwitcher,{key:"snap-to-indicators",checked:l,onChange:function(e){(0,Et.trackEvent)("GUI","Chart Left Toolbar","magnet snaps "+(e?"on":"off")),!1;(0,Jt.setMagnetSnapsToIndicators)(e)},label:W.t(null,void 0,o(6545)),value:"snapToIndicatorsSwitcher",theme:t?Xt:Yt,disabled:!i}))),!1);function s(e){void 0!==e&&((0,Et.trackEvent)("GUI","Magnet mode",e===Zt.MagnetMode.WeakMagnet?"Weak":"Strong"),(0,Jt.setMagnetMode)(e))}}var to;!function(e){e.Screenshot="drawing-toolbar-screenshot",e.FavoriteDrawings="drawing-toolbar-favorite-drawings",e.ObjectTree="drawing-toolbar-object-tree"}(to||(to={}));var oo=o(70412),no=o(26867),io=o(66593),ao=o(29197),lo=o(26981),so=o(3939);const ro=so,co="http://www.w3.org/2000/svg";function uo(e){const{direction:t,theme:o=so}=e;return n.createElement("svg",{xmlns:co,width:"9",height:"27",viewBox:"0 0 9 27",className:l(o.container,"right"===t?o.mirror:null),onContextMenu:no.preventDefault},n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("path",{className:o.background,d:"M4.5.5a4 4 0 0 1 4 4v18a4 4 0 1 1-8 0v-18a4 4 0 0 1 4-4z"}),n.createElement("path",{className:o.arrow,d:"M5.5 10l-2 3.5 2 3.5"})))}var ho=o(39416),mo=o(99247),po=o(74623);const bo=(0,pe.mergeThemes)(ro,po),vo={hide:W.t(null,void 0,o(99838)),show:W.t(null,void 0,o(32579))},go=(0,n.forwardRef)(((e,t)=>{const{toolbarVisible:o,"data-name":i}=e,a=(0,ho.useFunctionalRefObject)(t);return n.createElement("button",{"data-tooltip-show-on-focus":"true",...mo.MouseClickAutoBlurHandler.attributes(),ref:a,type:"button","aria-label":o?vo.hide:vo.show,"data-tooltip":o?vo.hide:vo.show,className:l(bo.toggleButton,"apply-common-tooltip common-tooltip-vertical",!o&&bo.collapsed,bo.accessible),onClick:function(){w.isDrawingToolbarVisible.setValue(!w.isDrawingToolbarVisible.value())},"data-name":i,
"data-value":o?"visible":"collapsed"},n.createElement(uo,{direction:o?"left":"right",theme:o?void 0:bo}))}));var fo=o(37558),wo=o(73986),Co=o(90692);const xo={chartWidgetCollection:o(19036).any.isRequired};var To=o(68976),_o=o(60873);const Eo=u.enabled("right_toolbar"),ko=u.enabled("keep_object_tree_widget_in_right_toolbar"),So=(u.enabled("saveload_separate_drawings_storage"),(0,p.onWidget)()),Fo=new m.Delegate,yo=Et.trackEvent.bind(null,"GUI","Chart Left Toolbar"),Mo=(e,t)=>yo(`${e} ${t?"on":"off"}`);class Ao extends n.PureComponent{constructor(e){super(e),this._grayedTools={},this._handleMeasureClick=()=>{Io("measure")},this._handleZoomInClick=()=>{Io("zoom in")},this._handleDrawingClick=e=>{Mo("drawing mode",e),Io("drawing mode",e?"on":"off")},this._handleLockClick=e=>{Mo("lock all drawing",e),Io("lock",e?"on":"off")},this._handleSyncClick=e=>{Mo("sync",e),Io("sync",e?"on":"off")},this._handleObjectsTreeClick=()=>{this._activeChartWidget().showObjectsTreeDialog(),Io("object tree")},this._handleMouseOver=e=>{(0,oo.hoverMouseEventFilter)(e)&&this.setState({isHovered:!0})},this._handleMouseOut=e=>{(0,oo.hoverMouseEventFilter)(e)&&this.setState({isHovered:!1})},this._handleChangeVisibility=e=>{this.setState({isVisible:e})},this._handleEsc=()=>{d.resetToCursor(!0)},this._handleWidgetbarSettled=e=>{this.setState({isWidgetbarVisible:Boolean(window.widgetbar?.visible().value()),widgetbarSettled:e})},this._handleWidgetbarVisible=e=>{this.setState({isWidgetbarVisible:e})},d.init(),this._toolsFilter=new g(this.props.drawingsAccess),this._filteredLineTools=f.lineTools.reduce(((e,t)=>{const{id:o,title:n,trackLabel:i}=t,a=e=>(0,f.isLineToolOption)(e)||this._toolsFilter.isToolEnabled(v.lineToolsInfo[e.name].localizedName),l=[];return(0,f.isLineToolsGroupWithSections)(t)?t.sections.forEach((e=>{const t=e.items.filter(a);t.length&&l.push({title:e.title},...t)})):l.push(...t.items.filter(a)),l.length&&e.push({id:o,title:n,trackLabel:i,items:l}),e}),[]),this._filteredLineTools.forEach((e=>{e.items.forEach((e=>{"name"in e&&(this._grayedTools[e.name]=this._toolsFilter.isToolGrayed(v.lineToolsInfo[e.name].localizedName))}))})),this.state={isHovered:!1,isVisible:w.isDrawingToolbarVisible.value(),isWidgetbarVisible:Boolean(window.widgetbar?.visible().value()),widgetbarSettled:void 0!==window.widgetbar},this._features={favoriting:!this.props.readOnly&&!So&&u.enabled("items_favoriting"),multicharts:u.enabled("support_multicharts"),tools:!So||!0},this._registry={chartWidgetCollection:this.props.chartWidgetCollection},this._negotiateResizer()}componentDidMount(){w.isDrawingToolbarVisible.subscribe(this._handleChangeVisibility),y.globalCloseDelegate.subscribe(this,this._handleGlobalClose),this._tool=d.tool.spawn(),this._tool.subscribe(this._updateHotkeys.bind(this)),this._initHotkeys(),this.props.widgetbarSettled&&(this.props.widgetbarSettled.subscribe(this,this._handleWidgetbarSettled),p.CheckMobile.any()&&window.widgetbar?.visible().subscribe(this._handleWidgetbarVisible))}componentWillUnmount(){
window.widgetbar?.visible().unsubscribe(this._handleWidgetbarVisible),w.isDrawingToolbarVisible.unsubscribe(this._handleChangeVisibility),y.globalCloseDelegate.unsubscribe(this,this._handleGlobalClose),this._tool.destroy(),this._hotkeys.destroy()}componentDidUpdate(e,t){const{isVisible:o,widgetbarSettled:n}=this.state;o!==t.isVisible&&(h.emit("toggle_sidebar",!o),c.setValue("ChartDrawingToolbarWidget.visible",o),this._negotiateResizer()),t.widgetbarSettled!==n&&n&&p.CheckMobile.any()&&window.widgetbar?.visible().subscribe(this._handleWidgetbarVisible)}render(){const{bgColor:e,chartWidgetCollection:t,readOnly:o}=this.props,{isHovered:i,isVisible:a}=this.state,s={backgroundColor:e&&`#${e}`};let c;c=n.createElement(go,{toolbarVisible:a,"data-name":"toolbar-drawing-toggle-button"});const h=()=>!!this._features.tools&&!(!u.enabled("show_object_tree")||ko&&!Eo);return n.createElement(To.RegistryProvider,{validation:xo,value:this._registry},n.createElement(ao.CloseDelegateContext.Provider,{value:Fo},n.createElement(fo.DrawerManager,null,n.createElement(Co.MatchMedia,{rule:wo.DialogBreakpoints.TabletSmall},(e=>n.createElement(lo.Toolbar,{id:"drawing-toolbar",className:l(_o.drawingToolbar,{[_o.isHidden]:!a}),style:s,onClick:this.props.onClick,onContextMenu:no.preventDefaultForContextMenu,orientation:"vertical"},n.createElement(S,{onScroll:this._handleGlobalClose,isVisibleFade:r.mobiletouch,isVisibleButtons:!r.mobiletouch&&i,isVisibleScrollbar:!1,onMouseOver:this._handleMouseOver,onMouseOut:this._handleMouseOut},n.createElement("div",{className:_o.inner},!o&&n.createElement("div",{className:_o.group,style:s},this._filteredLineTools.map((o=>n.createElement(_t,{key:o.id,"data-name":o.id,chartWidgetCollection:t,favoriting:this._features.favoriting&&!("linetool-group-cursors"===o.id&&(0,b.isOnMobileAppPage)("any")),grayedTools:this._grayedTools,dropdownTooltip:o.title,lineTools:o.items,isSmallTablet:e,trackLabel:o.trackLabel}))),this._toolsFilter.isToolEnabled("Font Icons")&&n.createElement(ot,{"data-name":"linetool-group-font-icons",isGrayed:this._grayedTools["Font Icons"],isSmallTablet:e})),!o&&n.createElement("div",{className:_o.group,style:s},n.createElement(lt,{toolName:"measure",onClick:this._handleMeasureClick}),n.createElement(lt,{toolName:"zoom",onClick:this._handleZoomInClick}),n.createElement(st,{chartWidgetCollection:t})),!o&&n.createElement("div",{className:_o.group,style:s},n.createElement(eo,{isSmallTablet:e}),this._features.tools&&n.createElement(at,{property:d.properties().childs().stayInDrawingMode,saveDefaultOnChange:!0,toolName:"drawginmode",onClick:this._handleDrawingClick}),this._features.tools&&n.createElement(at,{property:d.lockDrawings(),toolName:"lockAllDrawings",onClick:this._handleLockClick}),this._features.tools&&n.createElement(Ht,{isSmallTablet:e}),!1),!o&&this._features.tools&&n.createElement("div",{className:_o.group,style:s},n.createElement(Nt,{chartWidgetCollection:t,isSmallTablet:e,toolName:"removeAllDrawingTools"})),n.createElement("div",{className:_o.fill,style:s
}),!o&&(this._features.tools||!1)&&n.createElement("div",{className:l(_o.group,_o.lastGroup),style:s},!1,this._features.tools&&this._features.favoriting&&n.createElement(qt,{id:to.FavoriteDrawings}),h()&&n.createElement(N,{id:to.ObjectTree,action:this._handleObjectsTreeClick,toolName:"showObjectsTree"}))))))),c)))}_activeChartWidget(){return this.props.chartWidgetCollection.activeChartWidget.value()}_negotiateResizer(){const e=io.TOOLBAR_WIDTH_COLLAPSED;this.props.resizerBridge.negotiateWidth(this.state.isVisible?io.TOOLBAR_WIDTH_EXPANDED:e)}_handleGlobalClose(){Fo.fire()}_updateHotkeys(){this._hotkeys.promote()}_initHotkeys(){this._hotkeys=F.createGroup({desc:"Drawing Toolbar"}),this._hotkeys.add({desc:"Reset",hotkey:27,handler:()=>this._handleEsc(),isDisabled:()=>d.toolIsCursor(d.tool.value())})}}function Io(e,t){0}class No{constructor(e,t){this._component=null,this._handleRef=e=>{this._component=e},this._container=e,i.render(n.createElement(Ao,{...t,ref:this._handleRef}),this._container)}destroy(){i.unmountComponentAtNode(this._container)}getComponent(){return(0,a.ensureNotNull)(this._component)}}},68976:(e,t,o)=>{"use strict";o.d(t,{RegistryProvider:()=>r,registryContextType:()=>c,validateRegistry:()=>s});var n=o(50959),i=o(19036),a=o.n(i);const l=n.createContext({});function s(e,t){a().checkPropTypes(t,e,"context","RegistryContext")}function r(e){const{validation:t,value:o}=e;return s(o,t),n.createElement(l.Provider,{value:o},e.children)}function c(){return l}},61380:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 10" width="20" height="10"><path fill="none" stroke="currentColor" stroke-width="1.5" d="M2 1l8 8 8-8"/></svg>'},51609:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M4.31 14.5a1.07 1.07 0 0 1 0-1.5L13 4.3c.42-.41 1.1-.41 1.52 0l.99 1c.42.42.41 1.11-.02 1.53l-5.38 5.12h12.83c.6 0 1.07.48 1.07 1.07v1.43c0 .6-.48 1.07-1.07 1.07H10.1l5.38 5.13c.44.41.45 1.1.02 1.53l-1 .99c-.41.42-1.1.42-1.5 0L4.3 14.5Zm7.97 9.38-8.67-8.67c-.81-.8-.82-2.12 0-2.93l8.68-8.67c.8-.81 2.12-.82 2.92 0l1 .99c.82.82.8 2.16-.04 2.96l-3.57 3.4h10.33c1.14 0 2.07.93 2.07 2.07v1.43c0 1.15-.93 2.07-2.07 2.07H12.6l3.57 3.4c.84.8.86 2.14.03 2.97l-.99.99c-.8.8-2.12.8-2.93 0Z"/></svg>'},22976:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M4.87 4.52a.5.5 0 0 1 .61.35L6.91 10h5.47l1.03-4.67c.14-.63 1.04-.63 1.18 0L15.62 10h5.47l1.43-5.13a.5.5 0 0 1 .96.26L22.13 10H25a.5.5 0 0 1 0 1h-3.15l-.83 3H25a.5.5 0 0 1 0 1h-4.26l-2.15 7.75c-.17.6-1.03.58-1.16-.03L15.7 15h-3.42l-1.72 7.72c-.13.6-1 .63-1.16.03L7.26 15H3a.5.5 0 1 1 0-1h3.98l-.83-3H3a.5.5 0 1 1 0-1h2.87L4.52 5.13a.5.5 0 0 1 .35-.61ZM7.19 11l.83 3h3.47l.66-3H7.2Zm5.99 0-.67 3h2.98l-.67-3h-1.64Zm1.42-1L14 7.3l-.6 2.7h1.2Zm1.25 1 .66 3h3.47l.83-3h-4.96Zm3.85 4h-2.97l1.32 5.94L19.7 15Zm-8.43 0H8.3l1.65 5.94L11.27 15Z"/></svg>'},70616:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path stroke="currentColor" d="M7.5 24v-5.5m0 0s2.7-1.1 4.5-1c2.1.12 2.9 1.88 5 2 1.8.1 4.5-1 4.5-1v-6m-14 6v-6m0 0v-6s2.7-1.1 4.5-1c2.1.12 2.9 1.88 5 2 1.8.1 4.5-1 4.5-1v6m-14 0s2.7-1.1 4.5-1c2.1.12 2.9 1.88 5 2 1.8.1 4.5-1 4.5-1"/></svg>'},48748:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M14.08 3.73c.1.16.1.37 0 .54a9.4 9.4 0 0 0 3.35 13.26 9.9 9.9 0 0 0 6.49 1.18.5.5 0 0 1 .5.76 10.67 10.67 0 0 1-3.83 3.64 10.91 10.91 0 0 1-14.28-3.3A10.44 10.44 0 0 1 8.69 5.56a10.86 10.86 0 0 1 4.9-2.06.5.5 0 0 1 .49.22Zm8.3 15.61v.5c-1.91 0-3.8-.5-5.45-1.44a10.64 10.64 0 0 1-3.95-3.97 10.4 10.4 0 0 1-.3-9.72 9.6 9.6 0 0 0-6.37 5.39 9.39 9.39 0 0 0 .83 9.14 9.7 9.7 0 0 0 3.6 3.17 9.92 9.92 0 0 0 12.21-2.59c-.19.02-.38.02-.57.02v-.5Z"/></svg>'},18042:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M6 11.69C6 7.46 9.56 4 14 4c4.44 0 8 3.46 8 7.69 0 2.63-1.2 4.93-3.25 6.31H14.5v-5H18v-1h-8v1h3.5v5H9.14A8.06 8.06 0 0 1 6 11.69Zm2 6.67a9.1 9.1 0 0 1-3-6.67C5 6.87 9.05 3 14 3s9 3.87 9 8.69a8.51 8.51 0 0 1-3 6.62V22h-2v3h-8v-3H8v-3.64ZM11 22v2h6v-2h-6Zm-2-1v-2h10v2H9Z"/></svg>'},44986:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M6 14.5C6 9.78 9.78 6 14.5 6c4.72 0 8.5 3.78 8.5 8.5 0 4.72-3.78 8.5-8.5 8.5A8.46 8.46 0 0 1 6 14.5ZM14.5 5A9.46 9.46 0 0 0 5 14.5c0 5.28 4.22 9.5 9.5 9.5s9.5-4.22 9.5-9.5S19.78 5 14.5 5ZM14 16V9h1v6h4v1h-5Z"/></svg>'},83778:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M6 14.5C6 9.78 9.78 6 14.5 6c4.72 0 8.5 3.78 8.5 8.5 0 4.72-3.78 8.5-8.5 8.5A8.46 8.46 0 0 1 6 14.5ZM14.5 5A9.46 9.46 0 0 0 5 14.5c0 5.28 4.22 9.5 9.5 9.5s9.5-4.22 9.5-9.5S19.78 5 14.5 5ZM12 12a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm4 1a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm-6 4-.43.26v.01l.03.03a3.55 3.55 0 0 0 .3.4 5.7 5.7 0 0 0 9.22 0 5.42 5.42 0 0 0 .28-.4l.02-.03v-.01L19 17l-.43-.26v.02a2.45 2.45 0 0 1-.24.32c-.17.21-.43.5-.78.79a4.71 4.71 0 0 1-6.88-.8 4.32 4.32 0 0 1-.23-.31l-.01-.02L10 17Z"/></svg>'},90624:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72" width="28" height="28"><path fill="#fff" d="M58.66 60.95a30 30 0 0 1-43.58-11.71q-1.3-.66-2.55-1.43a41 41 0 0 1-4.65-3.38 60 60 0 0 1-4.96-4.41A22 22 0 0 1 .2 36.37c-.46-.7-.04-1.27.47-1.72l.95-.8q.9-.78 1.8-1.58c.4-.37.62-.6.9-.92l.4-.45c.4-.43.34-.83-.06-1.24-.52-.53-.82-.9-1.13-1.25-.3-.36-.61-.72-1.14-1.26-.48-.48-.6-.9-.05-1.46.59-.63 1.34-1.39 2.11-2.16.97-.96 1.96-1.95 2.68-2.75.64-.7.72-.67 1.36.1.6.72 1 1.3 1.4 1.85a25 25 0 0 0 1.81 2.32c.58.67.87 1.02 1.82.64l.36-.15q.34-.9.73-1.78-.11-.34-.24-.81a30 30 0 0 0-.76-2.47c-.18-.52-.38-1.07-.62-1.88l-.19-.61c-.26-.99-.23-1.09.65-1.39.86-.3 2.03-.66 3.19-1.03 1.07-.34 2.13-.67 2.92-.94.51-.17.8.02.98.4a30 30 0 1 1 38.12 45.92M12.02 34.93l-.4.22-.53.3q-.8.47-.13 1.14.51.52 1.08.96a30 30 0 0 1-.02-2.62"/><path fill="#2962FF" d="M42 64c5.53 0 10.95-1.61 15.55-4.63s8.2-7.32 10.32-12.34a27 27 0 0 0 1.6-15.9 27.4 27.4 0 0 0-7.67-14.07 28 28 0 0 0-14.34-7.53 28.5 28.5 0 0 0-16.18 1.56 28 28 0 0 0-12.56 10.13 27.15 27.15 0 0 0 3.48 34.72A28.3 28.3 0 0 0 42 64"/><path fill="#FF5200" d="M27.83 30.91c-.54.03-1.47 0-2.38.14-1.76.28-3.54.58-5.27 1.03-1.25.32-2.46.85-3.64 1.37-1.42.61-2.8 1.31-4.19 2q-.74.38-.12.94.6.54 1.28.98c1.81 1.1 3.67 2.14 5.47 3.3 2.07 1.32 4.38 2.05 6.7 2.73 2.61.78 5.35.58 8.03.26 3.03-.37 6.06-.88 8.91-2.01 1.62-.65 3.15-1.51 4.69-2.34.66-.34.65-.58.06-1.01-1.19-.88-2.37-1.78-3.6-2.58-2.8-1.8-5.74-3.3-9.04-4.07-2.15-.5-4.3-.85-6.9-.73zM32.73 16v5.98l-.01 2.22c0 .58.24.94.85 1q.44.03.87.08c2.09.23 2.35.08 2.99-1.95q.84-2.77 1.66-5.53c.23-.77.37-.81 1.13-.54q2.21.8 4.44 1.57c.57.2.77.41.52 1.06-.73 2-1.39 4.03-2.07 6.04l-.16.59c-.3 1.37-.27 1.43 1.03 1.9q.29.1.56.23c.38.2.68.18 1.03-.13 1.75-1.5 3.55-2.95 5.28-4.48.55-.5 1.17-.42 1.61-.03q1.4 1.25 2.72 2.6.7.76-.03 1.57a192 192 0 0 1-3.52 3.81c-.34.37-.33.67 0 .98q1.62 1.58 3.3 3.15 1.22 1.15 2.46 2.28c.78.74.83 1.14.04 1.89-1.08 1.01-2.14 2.09-3.38 2.87a67 67 0 0 1-7.48 4.27 26 26 0 0 1-9.2 2.39c-3.4.23-6.8.28-10.17-.11a48 48 0 0 1-7.25-1.41 30 30 0 0 1-6.26-2.6 39 39 0 0 1-4.34-2.81 54 54 0 0 1-4.63-3.65c-.97-.88-1.75-1.98-2.53-3.03-.44-.58-.04-1.06.44-1.43.85-.66 1.73-1.29 2.56-1.97.54-.44 1.02-.94 1.53-1.43.37-.36.31-.69-.06-1.03l-2.93-2.67c-.44-.4-.55-.74-.05-1.21 1.24-1.17 2.44-2.4 3.65-3.59.6-.58.68-.55 1.27.09q1.79 1.96 3.64 3.86c.65.67 1.4.87 2.38.52 1.78-.64 1.85-.6 1.31-2.39-.48-1.6-1.06-3.18-1.6-4.78q-.1-.25-.18-.5c-.24-.82-.22-.9.6-1.15q2.32-.69 4.64-1.36c.61-.18.87.12 1.05.63q.8 2.6 1.64 5.2.22.74.63 1.4c.53.8 1.39.78 2.24.75 1.48-.05 1.68-.2 1.68-1.66q0-3.17-.1-6.33c-.03-1.04-.06-1.1 1-1.13 1.73-.05 3.46-.01 5.21-.01"/><path fill="#FDD600" d="m34.25 33.43.13-.26c-.4-.39-.74-.92-1.22-1.15a8 8 0 0 0-5.53-.64c-1.58.4-2.61 1.54-3.34 2.85-.8 1.44-1.08 3.05-.08 4.53.44.64 1.11 1.15 1.74 1.63a5.67 5.67 0 0 0 8.59-2.14c.32-.7.21-.95-.54-1.19q-1.2-.36-2.39-.73c-.52-.17-1.06-.34-1.06-1.04 0-.65.43-.92 1-1.07zm-6.31-3.4a24 24 0 0 1 6.94.73c3.3.77 6.25 2.24 9.06 4.05 1.25.8 2.43 1.7 3.62 2.56.59.43.6.67-.06 1.02-1.55.82-3.08 1.68-4.7 2.32a36 36 0 0 1-8.95 2c-2.7.33-5.44.52-8.07-.25-2.32-.68-4.64-1.4-6.73-2.73-1.8-1.14-3.66-2.17-5.48-3.28a10 10 0 0 1-1.29-.97c-.41-.36-.37-.7.13-.94q2.09-1.06 4.2-2a26 26 0 0 1 3.66-1.36c1.74-.44 3.51-.74 5.29-1.02.9-.15 1.84-.11 2.38-.14"/><path fill="#1D1D1B" d="M33.55 34.2q-1.33.39-2.66.75c-.57.15-1 .4-1 1.04 0 .66.54.84 1.05 1q1.19.34 2.36.7c.74.23.85.46.53 1.13a5.65 5.65 0 0 1-6.21 3.06c-.82-.16-1.6-.5-2.26-1a7 7 0 0 1-1.72-1.56c-1-1.43-.72-2.97.07-4.35a5.3 5.3 0 0 1 3.3-2.75 8 8 0 0 1 5.45.62c.48.22.82.73 1.2 1.11z"/></svg>'
}}]);