(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[6265],{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"}},59541:e=>{e.exports={scrollable:"scrollable-vwgPOHG8",tabs:"tabs-vwgPOHG8"}},50029:e=>{e.exports={defaultsButtonText:"defaultsButtonText-aJgjxj2V",defaultsButtonItem:"defaultsButtonItem-aJgjxj2V",defaultsButtonIcon:"defaultsButtonIcon-aJgjxj2V"}},6165:e=>{e.exports={themesButtonText:"themesButtonText-AeBgp7zz",themesButtonIcon:"themesButtonIcon-AeBgp7zz",defaultsButtonText:"defaultsButtonText-AeBgp7zz",defaultsButtonItem:"defaultsButtonItem-AeBgp7zz"}},40359:e=>{e.exports={separator:"separator-QjUlCDId",small:"small-QjUlCDId",normal:"normal-QjUlCDId",large:"large-QjUlCDId"}},55185:e=>{e.exports={"link-item":"link-item-eIA09f0e"}},67033:e=>{e.exports={"arrow-icon":"arrow-icon-NIrWNOPk",dropped:"dropped-NIrWNOPk","size-xsmall":"size-xsmall-NIrWNOPk","size-small":"size-small-NIrWNOPk","size-medium":"size-medium-NIrWNOPk","size-large":"size-large-NIrWNOPk","size-xlarge":"size-xlarge-NIrWNOPk"}},58591:e=>{e.exports={"underline-tab":"underline-tab-cfYYXvwA","disable-focus-outline":"disable-focus-outline-cfYYXvwA","enable-cursor-pointer":"enable-cursor-pointer-cfYYXvwA",disabled:"disabled-cfYYXvwA",selected:"selected-cfYYXvwA","disable-active-state-styles":"disable-active-state-styles-cfYYXvwA","size-xsmall":"size-xsmall-cfYYXvwA","size-small":"size-small-cfYYXvwA","size-medium":"size-medium-cfYYXvwA","size-large":"size-large-cfYYXvwA","size-xlarge":"size-xlarge-cfYYXvwA",fake:"fake-cfYYXvwA","margin-xsmall":"margin-xsmall-cfYYXvwA","margin-small":"margin-small-cfYYXvwA","margin-medium":"margin-medium-cfYYXvwA","margin-large":"margin-large-cfYYXvwA","margin-xlarge":"margin-xlarge-cfYYXvwA",collapse:"collapse-cfYYXvwA","ellipsis-children":"ellipsis-children-cfYYXvwA"}},49682:e=>{e.exports={"scroll-wrap":"scroll-wrap-SmxgjhBJ","size-xlarge":"size-xlarge-SmxgjhBJ","enable-scroll":"enable-scroll-SmxgjhBJ","underline-tabs":"underline-tabs-SmxgjhBJ","size-large":"size-large-SmxgjhBJ","size-medium":"size-medium-SmxgjhBJ","size-small":"size-small-SmxgjhBJ","size-xsmall":"size-xsmall-SmxgjhBJ","make-grid-column":"make-grid-column-SmxgjhBJ","stretch-tabs":"stretch-tabs-SmxgjhBJ","equal-tab-size":"equal-tab-size-SmxgjhBJ"}},15427:e=>{e.exports={underline:"underline-Pun8HxCz",center:"center-Pun8HxCz",corner:"corner-Pun8HxCz",disabled:"disabled-Pun8HxCz"}},38546:(e,t,l)=>{"use strict";l.d(t,{DialogTabs:()=>i});var n=l(50959),r=l(67829);const i=n.forwardRef((function(e,t){const{id:l,tabs:i,activeTab:o,onChange:s,className:a}=e;return n.createElement("div",{className:a,ref:t},n.createElement(r.UnderlineButtonTabs,{id:l,items:i,isActive:function(e){return e.id===o},
onActivate:function(e){s(e.id)},overflowBehaviour:"scroll"}))}))},12981:(e,t,l)=>{"use strict";l.r(t),l.d(t,{EditObjectDialogRenderer:()=>kl});var n=l(50959),r=l(50151),i=l(11542),o=l(95804),s=l(89323),a=l(1765),c=l(37103),d=l(76422),p=l(51768),u=l(50182),h=l(87713),m=l(86656),v=l(2088),y=l(37289),g=l(26610),b=l(48531),f=l(38546),w=l(78890),C=l(59541);class S extends n.PureComponent{constructor(e){super(e),this._handleClose=e=>{const{onClose:t,closeOnOutsideClick:l=!0}=this.props;l&&(e?.target&&(e.target.closest('[data-dialog-name="gopro"]')||e.target.closest("[data-name=support-dialog]"))||t())},this._handleResetToDefaults=()=>{const{source:e,model:t}=this.props;(0,v.isStudy)(e)&&t.restorePropertiesForSource(e)},this._handleSaveAsDefaults=()=>{const{source:e}=this.props;(0,v.isStudy)(e)&&(e.properties().saveDefaults(),d.emit("study_dialog_save_defaults",e.id()))},this._renderFooterLeft=e=>{const{source:t,model:l}=this.props;if((0,g.isLineTool)(t))return n.createElement(b.FooterMenu,{sources:[t],chartUndoModel:l});if((0,v.isStudy)(t))return n.createElement(w.PropertyActions,{saveAsDefaults:this._handleSaveAsDefaults,resetToDefaults:this._handleResetToDefaults,mode:e?"compact":"normal"});throw new TypeError("Unsupported source type.")},this._handleSelect=e=>{this.setState({activeTabId:e},(()=>{this._requestResize&&this._requestResize()})),this.props.onActiveTabChanged&&this.props.onActiveTabChanged(e)},this._handleScroll=()=>{h.globalCloseDelegate.fire()},this._handleSubmit=()=>{this.props.onSubmit(),this.props.onClose()};const{pages:t,initialActiveTab:l}=this.props,r=t.find((e=>e.id===l))??t[0];this.state={activeTabId:r.id}}render(){const{title:e,onCancel:t,onClose:l,shouldReturnFocus:r}=this.props;return n.createElement(u.AdaptiveConfirmDialog,{dataName:"indicator-properties-dialog",title:e,isOpened:!0,onSubmit:this._handleSubmit,onCancel:t,onClickOutside:this._handleClose,onClose:l,footerLeftRenderer:this._renderFooterLeft,render:this._renderChildren(),submitOnEnterKey:!1,shouldReturnFocus:r})}_renderChildren(){return({requestResize:e})=>{this._requestResize=e;const{pages:t,source:l,model:r}=this.props,{activeTabId:i}=this.state,o=t.find((e=>e.id===i))??t[0],s="Component"in o?void 0:o.page,a=t.map((({label:e,id:t})=>({label:e,id:t,dataId:`indicator-properties-dialog-tabs-${t}`})));return n.createElement(n.Fragment,null,n.createElement(f.DialogTabs,{className:C.tabs,id:"indicator-properties-dialog-tabs",activeTab:o.id,onChange:this._handleSelect,tabs:a}),n.createElement(m.TouchScrollContainer,{className:C.scrollable,onScroll:this._handleScroll},"Component"in o?n.createElement(o.Component,{source:l,model:r}):n.createElement(y.PropertiesEditorTab,{page:s,tableKey:o.id})))}}}var P=l(82746),E=l(32823);class _ extends n.PureComponent{constructor(e){super(e),this._getInputs=()=>new E.MetaInfoHelper(this._metaInfoWV?.value()??this._initialMetaInfo).getUserEditableInputs(),this._handleMetaInfoChange=()=>{this.setState({inputs:this._getInputs()})},this._properties=this.props.source.properties(),
this._metaInfoWV=this.props.source.metaInfoWV?.(),this._initialMetaInfo=this.props.source.metaInfo();const t=this._getInputs();this.state={inputs:t}}componentDidMount(){this._metaInfoWV?.subscribe(this._handleMetaInfoChange)}componentWillUnmount(){this._metaInfoWV?.unsubscribe(this._handleMetaInfoChange)}render(){return n.createElement(P.InputsTabContent,{property:this._properties,model:this.props.model,study:this.props.source,studyMetaInfo:this._metaInfoWV?.value()??this._initialMetaInfo,inputs:this.state.inputs})}}var T=l(22064),x=l(4359),k=l(19844),I=l(54706),R=l(46442),L=l(40659),D=l(51613),V=l(74302),N=l(94697),B=l(94152),A=l(18819),M=l(14643),z=l(46464),W=l(96298),F=l(18621),H=l(98450),O=l(91512),U=l(93976),G=l(72914),Y=l(21579);const j={[x.LineStudyPlotStyle.Line]:{type:x.LineStudyPlotStyle.Line,order:0,icon:B,label:i.t(null,void 0,l(3554))},[x.LineStudyPlotStyle.LineWithBreaks]:{type:x.LineStudyPlotStyle.LineWithBreaks,order:1,icon:A,label:i.t(null,void 0,l(34862))},[x.LineStudyPlotStyle.StepLine]:{type:x.LineStudyPlotStyle.StepLine,order:2,icon:M,label:i.t(null,void 0,l(69217))},[x.LineStudyPlotStyle.StepLineWithBreaks]:{type:x.LineStudyPlotStyle.StepLineWithBreaks,order:3,icon:z,label:i.t(null,void 0,l(14788))},[x.LineStudyPlotStyle.StepLineWithDiamonds]:{type:x.LineStudyPlotStyle.StepLineWithDiamonds,order:4,icon:W,label:i.t(null,void 0,l(11877))},[x.LineStudyPlotStyle.Histogram]:{type:x.LineStudyPlotStyle.Histogram,order:5,icon:F,label:i.t(null,void 0,l(78057))},[x.LineStudyPlotStyle.Cross]:{type:x.LineStudyPlotStyle.Cross,order:6,icon:H,label:i.t(null,{context:"chart_type"},l(33857))},[x.LineStudyPlotStyle.Area]:{type:x.LineStudyPlotStyle.Area,order:7,icon:O,label:i.t(null,void 0,l(34456))},[x.LineStudyPlotStyle.AreaWithBreaks]:{type:x.LineStudyPlotStyle.AreaWithBreaks,order:8,icon:U,label:i.t(null,void 0,l(7349))},[x.LineStudyPlotStyle.Columns]:{type:x.LineStudyPlotStyle.Columns,order:9,icon:G,label:i.t(null,void 0,l(55761))},[x.LineStudyPlotStyle.Circles]:{type:x.LineStudyPlotStyle.Circles,order:10,icon:Y,label:i.t(null,void 0,l(5669))}},X=Object.values(j).sort(((e,t)=>e.order-t.order)).map((e=>({value:e.type,selectedContent:n.createElement(N.DisplayItem,{icon:e.icon}),content:n.createElement(N.DropItem,{icon:e.icon,label:e.label})}))),q=i.t(null,void 0,l(72926));class $ extends n.PureComponent{render(){const{id:e,plotType:t,className:l,priceLine:r,plotTypeChange:i,priceLineChange:o,disabled:s}=this.props;if(!(t in j))return null;const a={readonly:!0,content:n.createElement(n.Fragment,null,n.createElement(V.MenuItemSwitcher,{id:"PlotTypePriceLineSwitch",checked:r,label:q,preventLabelHighlight:!0,value:"priceLineSwitcher",onChange:o}),n.createElement(D.PopupMenuSeparator,null))};return n.createElement(N.IconDropdown,{id:e,disabled:s,className:l,hideArrowButton:!0,items:[a,...X],value:t,onChange:i})}}var J=l(17134),K=l(3618),Q=l(76431);const Z=new o.TranslatedString("change plot type",i.t(null,void 0,l(43439))),ee=new o.TranslatedString("change price line visibility",i.t(null,void 0,l(8662)))
;class te extends n.PureComponent{constructor(){super(...arguments),this._onPlotTypeChange=e=>{const{setValue:t}=this.context,{styleProp:{plottype:l}}=this.props;l&&t(l,e,Z)},this._onPriceLineChange=e=>{const{setValue:t}=this.context,{styleProp:{trackPrice:l}}=this.props;l&&t(l,e,ee)}}render(){const{id:e,paletteColor:t,paletteColorProps:l,styleProp:r,isLine:i,hasPlotTypeSelect:o,grouped:s,offset:a,showLineStyle:c}=this.props,d=l.childs();return n.createElement(L.InputRow,{grouped:s,label:n.createElement("div",{className:Q.childRowContainer},(0,K.getTranslatedInputTitle)(t.name)),offset:a},n.createElement(J.ColorWithLinePropertySelect,{disabled:!r.visible.value(),color:d.color,transparency:r.transparency,thickness:i?d.width:void 0,isPaletteColor:!0,lineStyle:c?d.style:void 0}),i&&o&&r.plottype&&r.trackPrice?n.createElement($,{id:(0,T.createDomId)(e,"plot-type-select"),disabled:!r.visible.value(),className:Q.smallStyleControl,plotType:r.plottype.value(),priceLine:r.trackPrice.value(),plotTypeChange:this._onPlotTypeChange,priceLineChange:this._onPriceLineChange}):null)}}te.contextType=I.StylePropertyContext;var le=l(33066);function ne(e,t,l,i,o,s,a,c){const d=t.colors,p=l.colors;return Object.keys(d).map(((t,l)=>n.createElement(te,{key:a?`${t}-secondary`:t,id:e,grouped:!0,paletteColor:(0,r.ensureDefined)(d[t]),paletteColorProps:(0,r.ensureDefined)(p[t]),styleProp:i,isLine:o,hasPlotTypeSelect:0===l,offset:s,showLineStyle:c})))}class re extends n.PureComponent{render(){const{plot:e,area:t,palette:l,paletteProps:i,hideVisibilitySwitch:o,styleProp:s,showOnlyTitle:a,showSeparator:c=!0,showLineStyle:d=!1,offset:p,secondaryPalette:u,secondaryPaletteProps:h,title:m}=this.props,v=e?e.id:(0,r.ensureDefined)(t).id,y=!v.startsWith("fill")&&e&&(0,x.isLinePlot)(e);return n.createElement(n.Fragment,null,!o&&n.createElement(le.PropertyTable.Row,null,n.createElement(le.PropertyTable.Cell,{placement:"first",colSpan:2,offset:p},a?n.createElement("div",null,m):n.createElement(R.VisibilitySwitch,{id:v,title:m,visible:s.visible}))),ne(v,l,i,s,y,p,!1,d),u&&h&&ne(v,u,h,s,y,p,!0,d),c&&n.createElement(le.PropertyTable.GroupSeparator,null))}}re.contextType=I.StylePropertyContext;var ie=l(9343),oe=l(57058);class se extends n.PureComponent{constructor(e){super(e),this._visible=new oe.StudyPlotVisibleProperty(e.styleProp.display)}render(){const{title:e,plot:t,area:l,palette:r,paletteProps:i,hideVisibilitySwitch:o,styleProp:s,showOnlyTitle:a,showSeparator:c=!0,offset:d}=this.props,p=!!this.props.styleProp.plottype&&(0,x.doesLinePlotStyleSupportLineStyle)(this.props.styleProp.plottype.value());return n.createElement(re,{plot:t,area:l,title:e,palette:r,paletteProps:i,styleProp:{...s,visible:this._visible},showSeparator:c,showLineStyle:p,hideVisibilitySwitch:o,showOnlyTitle:a,offset:d})}componentWillUnmount(){this._visible.destroy()}}se.contextType=I.StylePropertyContext;var ae=l(32732);class ce extends n.PureComponent{constructor(e){super(e),this._visible=new oe.StudyPlotVisibleProperty(e.display)}render(){const{id:e,title:t,disabled:l}=this.props
;return n.createElement(R.VisibilitySwitch,{id:e,title:t,disabled:l,visible:this._visible})}componentWillUnmount(){this._visible.destroy()}}ce.contextType=I.StylePropertyContext;var de=l(50890);const pe=new o.TranslatedString("change plot type",i.t(null,void 0,l(43439))),ue=new o.TranslatedString("change price line visibility",i.t(null,void 0,l(8662)));class he extends n.PureComponent{constructor(e){super(e),this._onPlotTypeChange=e=>{const{setValue:t}=this.context,{property:{plottype:l}}=this.props;l&&(t(l,e,pe),this.setState({showLineStyle:(0,x.doesLinePlotStyleSupportLineStyle)(e)}))},this._onPriceLineChange=e=>{const{setValue:t}=this.context,{property:{trackPrice:l}}=this.props;l&&t(l,e,ue)},this.state={showLineStyle:(0,x.doesLinePlotStyleSupportLineStyle)(e.property.plottype.value())}}render(){const{id:e,title:t,isRGB:l,isFundamental:r,property:{color:i,plottype:o,linewidth:s,transparency:a,trackPrice:c,display:d,linestyle:p}}=this.props;return n.createElement(L.InputRow,{label:n.createElement(ce,{id:e,title:t,display:d})},l&&!r?this._getInputForRgb():n.createElement(J.ColorWithLinePropertySelect,{disabled:0===d.value(),color:i,transparency:a,thickness:s,lineStyle:this.state.showLineStyle?p:void 0}),n.createElement($,{id:(0,T.createDomId)(e,"plot-type-select"),disabled:0===d.value(),className:Q.smallStyleControl,plotType:o.value(),priceLine:c.value(),plotTypeChange:this._onPlotTypeChange,priceLineChange:this._onPriceLineChange}))}_getInputForRgb(){const{id:e,showLineWidth:t,property:l}=this.props,{linewidth:r,linestyle:i,display:o}=l;return n.createElement(n.Fragment,null,r&&t&&n.createElement(de.LineWidthSelect,{id:(0,T.createDomId)(e,"line-width-select"),property:r,disabled:0===o.value()}),i&&this.state.showLineStyle&&n.createElement(ae.LineStyleSelect,{id:(0,T.createDomId)(e,"line-style-select"),property:i,disabled:0===o.value(),className:Q.smallStyleControl}))}}he.contextType=I.StylePropertyContext;const me=n.createContext(null);var ve=l(53598),ye=l(86741);const ge=new o.TranslatedString("change line style",i.t(null,void 0,l(28818)));class be extends n.PureComponent{constructor(){super(...arguments),this._onLineStyleChange=e=>{const{setValue:t}=this.context,{lineStyle:l}=this.props;t(l,e,ge)}}render(){const{lineStyle:e,...t}=this.props;return n.createElement(ve.LineStyleSelect,{...t,lineStyle:(0,ye.getPropertyValue)(e),lineStyleChange:this._onLineStyleChange})}}be.contextType=I.StylePropertyContext;class fe extends n.PureComponent{render(){const{id:e,isRGB:t,title:l,visible:r,color:i,transparency:o,thickness:s,children:a,switchable:c=!0,offset:d,grouped:p,disabled:u,lineStyle:h}=this.props,m=u||r&&!(Array.isArray(r)?r[0].value():r.value());return n.createElement(L.InputRow,{label:c?n.createElement(R.VisibilitySwitch,{id:e,title:l,visible:r,disabled:u}):l,offset:d,grouped:p},t?h?n.createElement(be,{id:(0,T.createDomId)(e,"line-style-select"),disabled:m,className:Q.smallStyleControl,lineStyle:h}):null:n.createElement(J.ColorWithLinePropertySelect,{disabled:m,color:i,transparency:o,thickness:s,lineStyle:h}),a)}
}fe.contextType=I.StylePropertyContext;class we extends n.PureComponent{constructor(e){super(e),this._visible=new oe.StudyPlotVisibleProperty(e.display)}render(){const{id:e,isRGB:t,title:l,color:r,transparency:i,thickness:o,children:s,switchable:a=!0,offset:c,grouped:d}=this.props;return n.createElement(fe,{id:e,isRGB:t,title:l,color:r,transparency:i,thickness:o,children:s,switchable:a,offset:c,grouped:d,visible:this._visible})}componentWillUnmount(){this._visible.destroy()}}we.contextType=I.StylePropertyContext;class Ce extends n.PureComponent{render(){const{id:e,isRGB:t,property:{colorup:l,colordown:i,transparency:o,display:s}}=this.props;return n.createElement(me.Consumer,null,(a=>n.createElement(n.Fragment,null,n.createElement(le.PropertyTable.Row,null,n.createElement(le.PropertyTable.Cell,{placement:"first",colSpan:2,grouped:!0},n.createElement(ce,{id:e,title:dt((0,r.ensureNotNull)(a),e),display:s}))),!t&&n.createElement(n.Fragment,null,n.createElement(we,{id:e,title:rt,color:l,transparency:o,display:s,switchable:!1,offset:!0,grouped:!0}),n.createElement(we,{id:e,title:it,color:i,transparency:o,display:s,switchable:!1,offset:!0,grouped:!0})),n.createElement(le.PropertyTable.GroupSeparator,null))))}}Ce.contextType=I.StylePropertyContext;var Se=l(87795),Pe=l.n(Se),Ee=l(97754),_e=l.n(Ee),Te=l(31261),xe=l(6375),ke=l(90405),Ie=l(18330);const Re={[Ie.MarkLocation.AboveBar]:{value:Ie.MarkLocation.AboveBar,content:i.t(null,void 0,l(8305)),order:0},[Ie.MarkLocation.BelowBar]:{value:Ie.MarkLocation.BelowBar,content:i.t(null,void 0,l(9417)),order:1},[Ie.MarkLocation.Top]:{value:Ie.MarkLocation.Top,content:i.t(null,void 0,l(97118)),order:2},[Ie.MarkLocation.Bottom]:{value:Ie.MarkLocation.Bottom,content:i.t(null,void 0,l(27567)),order:3},[Ie.MarkLocation.Absolute]:{value:Ie.MarkLocation.Absolute,content:i.t(null,void 0,l(69758)),order:4}},Le=Object.values(Re).sort(((e,t)=>e.order-t.order));class De extends n.PureComponent{render(){const{id:e,shapeLocation:t,className:l,menuItemClassName:r,shapeLocationChange:i,disabled:o}=this.props;return n.createElement(ke.Select,{id:e,disabled:o,className:l,menuItemClassName:r,items:Le,value:t,onChange:i})}}const Ve=new o.TranslatedString("change char",i.t(null,void 0,l(86955))),Ne=new o.TranslatedString("change location",i.t(null,void 0,l(6834)));class Be extends n.PureComponent{constructor(){super(...arguments),this._onCharChange=e=>{const{setValue:t}=this.context,l=e.currentTarget.value.trim(),n=Pe()(l),i=0===n.length?"":n[n.length-1];t((0,r.ensureDefined)(this.props.property.childs().char),i,Ve)},this._onLocationChange=e=>{const{setValue:t}=this.context;t(this.props.property.childs().location,e,Ne)}}render(){const{id:e,title:t,char:l,isRGB:i,property:o,hasPalette:s}=this.props,{color:a,transparency:c,char:d,location:p,display:u}=o.childs();return n.createElement(L.InputRow,{grouped:s,label:n.createElement(ce,{id:e,title:t,display:u})},!s&&!i&&n.createElement(xe.BasicColorSelect,{disabled:0===u.value(),color:a,transparency:c}),n.createElement(Te.InputControl,{
disabled:void 0===d||0===u.value(),className:Q.smallStyleControl,value:(0,r.ensureDefined)(d?.value()??l),onChange:this._onCharChange}),n.createElement(De,{id:(0,T.createDomId)(e,"shape-style-select"),disabled:0===u.value(),className:Ee(Q.defaultSelect,Q.additionalSelect),menuItemClassName:Q.defaultSelectItem,shapeLocation:p.value(),shapeLocationChange:this._onLocationChange}))}}Be.contextType=I.StylePropertyContext;var Ae,Me=l(51752),ze=l(69151),We=l(67211),Fe=l(83786),He=l(50858),Oe=l(13201),Ue=l(59058),Ge=l(8537),Ye=l(2309),je=l(78240),Xe=l(41683),qe=l(63798),$e=l(23223);!function(e){e.ArrowDown="arrow_down",e.ArrowUp="arrow_up",e.Circle="circle",e.Cross="cross",e.Diamond="diamond",e.Flag="flag",e.LabelDown="label_down",e.LabelUp="label_up",e.Square="square",e.TriangleDown="triangle_down",e.TriangleUp="triangle_up",e.XCross="x_cross"}(Ae||(Ae={}));const Je={arrow_down:ze,arrow_up:We,circle:Fe,cross:He,diamond:Oe,flag:Ue,label_down:Ge,label_up:Ye,square:je,triangle_down:Xe,triangle_up:qe,x_cross:$e};function Ke(e){return Je[e]}const Qe=[];Object.keys(Me.plotShapesData).forEach((e=>{const t=Me.plotShapesData[e];Qe.push({id:t.id,value:t.id,selectedContent:n.createElement(N.DisplayItem,{icon:Ke(t.icon)}),content:n.createElement(N.DropItem,{icon:Ke(t.icon),label:t.guiName})})}));class Ze extends n.PureComponent{render(){const{id:e,shapeStyleId:t,className:l,shapeStyleChange:r,disabled:i}=this.props;return n.createElement(N.IconDropdown,{id:e,disabled:i,className:l,hideArrowButton:!0,items:Qe,value:t,onChange:r})}}const et=new o.TranslatedString("change shape",i.t(null,void 0,l(83468))),tt=new o.TranslatedString("change location",i.t(null,void 0,l(6834)));class lt extends n.PureComponent{constructor(){super(...arguments),this._onPlotTypeChange=e=>{const{setValue:t}=this.context;t(this.props.property.childs().plottype,e,et)},this._onLocationChange=e=>{const{setValue:t}=this.context;t(this.props.property.childs().location,e,tt)}}render(){const{id:e,title:t,isRGB:l,hasPalette:r,property:i}=this.props,{color:o,transparency:s,plottype:a,location:c,display:d}=i.childs();return n.createElement(L.InputRow,{grouped:r,label:n.createElement(ce,{id:e,title:t,display:d})},!r&&!l&&n.createElement(xe.BasicColorSelect,{disabled:0===d.value(),color:o,transparency:s}),n.createElement(Ze,{id:(0,T.createDomId)(e,"shape-style-select"),disabled:0===d.value(),className:Q.smallStyleControl,shapeStyleId:a.value(),shapeStyleChange:this._onPlotTypeChange}),n.createElement(De,{id:(0,T.createDomId)(e,"shape-location-select"),disabled:0===d.value(),className:Ee(Q.defaultSelect,Q.additionalSelect),menuItemClassName:Q.defaultSelectItem,shapeLocation:c.value(),shapeLocationChange:this._onLocationChange}))}}lt.contextType=I.StylePropertyContext;const nt=(0,ie.getLogger)("Chart.Study.PropertyPage"),rt=i.t(null,void 0,l(22691)),it=i.t(null,void 0,l(71776)),ot=i.t(null,void 0,l(74406)),st=i.t(null,void 0,l(32163)),at=i.t(null,void 0,l(38408));class ct extends n.PureComponent{render(){
const{plot:e,palettes:t,study:l}=this.props,i=e.id,o=l.properties().styles,s=l.metaInfo().styles,a=o[i],c=e.type,d=t.main,p=!!l.metaInfo().isRGB;if("line"===c||"bar_colorer"===c||"bg_colorer"===c)return d&&d.palette&&d.paletteProps?n.createElement(se,{title:s?.[i]?.title??i,plot:e,palette:d.palette,paletteProps:d.paletteProps,styleProp:a}):n.createElement(he,{id:i,title:(0,r.ensureDefined)(s?.[i]?.title),property:a,isRGB:p,isFundamental:false,showLineWidth:"line"===c});if("arrows"===c){const r=this._getPlotSwitch(i,dt(l,i),a.display);if(p)return r;const o=t.up,s=t.down;return o||s?n.createElement(n.Fragment,null,r,o&&o.palette&&o.paletteProps?n.createElement(se,{title:rt,plot:e,palette:o.palette,paletteProps:o.paletteProps,styleProp:a,showSeparator:!1,showOnlyTitle:!0,offset:!0}):n.createElement(we,{id:i,isRGB:p,title:rt,color:a.colorup,display:a.display,transparency:a.transparency,switchable:!1,grouped:!0,offset:!0}),s&&s.palette&&s.paletteProps?n.createElement(se,{title:it,plot:e,palette:s.palette,paletteProps:s.paletteProps,styleProp:a,showSeparator:!1,showOnlyTitle:!0,offset:!0}):n.createElement(we,{id:i,isRGB:p,title:it,color:a.colordown,display:a.display,transparency:a.transparency,switchable:!1,grouped:!0,offset:!0}),n.createElement(le.PropertyTable.GroupSeparator,null)):n.createElement(Ce,{id:i,property:a,isRGB:p,plot:e,palettes:t,styleProp:a})}if("chars"===c||"shapes"===c){const t=(0,r.ensureDefined)(s?.[i]),l=t.title;return n.createElement(n.Fragment,null,"chars"===c?n.createElement(Be,{id:i,title:l,char:t.char,property:a,hasPalette:Boolean(d&&d.palette),isRGB:p}):n.createElement(lt,{id:i,title:l,property:a,hasPalette:Boolean(d&&d.palette),isRGB:p}),d&&d.palette&&d.paletteProps&&n.createElement(se,{title:l,plot:e,palette:d.palette,paletteProps:d.paletteProps,hideVisibilitySwitch:!0,styleProp:a}))}if((0,x.isOhlcPlot)(e)){const o=e.target,s=l.properties().ohlcPlots[o],a=(0,r.ensureDefined)((0,r.ensureDefined)(l.metaInfo().ohlcPlots)[o]),c=this._getPlotSwitch(i,a.title,s.display);if(p)return c;const u=t.wick&&t.wick.palette&&t.wick.paletteProps,h=t.border&&t.border.palette&&t.border.paletteProps;return n.createElement(n.Fragment,null,c,d&&d.palette&&d.paletteProps?n.createElement(se,{title:ot,plot:e,palette:d.palette,paletteProps:d.paletteProps,styleProp:s,showSeparator:!1,showOnlyTitle:!0,offset:!0}):n.createElement(we,{id:i,isRGB:p,title:ot,display:s.display,color:s.color,transparency:s.transparency,switchable:!1,grouped:!0,offset:!0}),t.wick&&t.wick.palette&&t.wick.paletteProps&&n.createElement(se,{title:st,plot:e,palette:t.wick.palette,paletteProps:t.wick.paletteProps,styleProp:s,showSeparator:!1,showOnlyTitle:!0,offset:!0}),Boolean(!u&&s.wickColor)&&n.createElement(we,{id:i,isRGB:p,title:st,display:s.display,color:s.wickColor,transparency:s.transparency,switchable:!1,grouped:!0,offset:!0}),t.border&&t.border.palette&&t.border.paletteProps&&n.createElement(se,{title:at,plot:e,palette:t.border.palette,paletteProps:t.border.paletteProps,styleProp:s,showSeparator:!1,showOnlyTitle:!0,offset:!0
}),Boolean(!h&&s.borderColor)&&n.createElement(we,{id:i,isRGB:p,title:at,display:s.display,color:s.borderColor,transparency:s.transparency,switchable:!1,grouped:!0,offset:!0}),n.createElement(le.PropertyTable.GroupSeparator,null))}return nt.logError("Unknown plot type: "+c),null}_getPlotSwitch(e,t,l){return n.createElement(le.PropertyTable.Row,null,n.createElement(le.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(ce,{id:e,title:t,display:l})))}}function dt(e,t){const l=(0,r.ensureDefined)(e.metaInfo().styles),{title:n}=(0,r.ensureDefined)(l[t]);return(0,r.ensureDefined)(n)}var pt=l(97569);const ut=new o.TranslatedString("change value",i.t(null,void 0,l(21333)));class ht extends n.PureComponent{constructor(){super(...arguments),this._onValueChange=e=>{const{setValue:t}=this.context,{value:l}=this.props.property;t(l,e,ut)}}render(){const{id:e,name:t,property:{color:l,linestyle:r,linewidth:i,transparency:o,value:s,visible:a}}=this.props;return n.createElement(L.InputRow,{labelAlign:"adaptive",label:n.createElement(R.VisibilitySwitch,{id:e,title:t,visible:a})},n.createElement("div",{className:Q.block},n.createElement("div",{className:Q.group},n.createElement(J.ColorWithLinePropertySelect,{disabled:!a.value(),color:l,transparency:o,thickness:i,lineStyle:r})),n.createElement("div",{className:Ee(Q.wrapGroup,Q.defaultSelect,Q.additionalSelect)},n.createElement(pt.FloatInputComponent,{input:{id:"",name:"",type:"float",defval:0},value:s.value(),disabled:!a.value(),onChange:this._onValueChange}))))}}ht.contextType=I.StylePropertyContext;class mt extends n.PureComponent{render(){const{orders:{visible:e,showLabels:t,showQty:r}}=this.props;return n.createElement(n.Fragment,null,n.createElement(le.PropertyTable.Row,null,n.createElement(le.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(R.VisibilitySwitch,{id:"chart-orders-switch",title:i.t(null,void 0,l(6532)),visible:e}))),n.createElement(le.PropertyTable.Row,null,n.createElement(le.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(R.VisibilitySwitch,{id:"chart-orders-labels-switch",title:i.t(null,void 0,l(38712)),visible:t}))),n.createElement(le.PropertyTable.Row,null,n.createElement(le.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(R.VisibilitySwitch,{id:"chart-orders-qty-switch",title:i.t(null,void 0,l(98721)),visible:r}))))}}mt.contextType=I.StylePropertyContext;var vt=l(99481),yt=l(87438),gt=l(38527);const bt=new o.TranslatedString("change percent width",i.t(null,void 0,l(62294))),ft=new o.TranslatedString("change placement",i.t(null,void 0,l(81891))),wt=new o.TranslatedString("change values visibility",i.t(null,void 0,l(9344))),Ct=[{value:vt.HHistDirection.LeftToRight,content:i.t(null,void 0,l(11626))},{value:vt.HHistDirection.RightToLeft,content:i.t(null,void 0,l(50421))}],St=i.t(null,void 0,l(93710)),Pt=i.t(null,void 0,l(10783)),Et=i.t(null,void 0,l(60092)),_t=i.t(null,void 0,l(77753));class Tt extends n.PureComponent{constructor(){super(...arguments),this._onPercentWidthChange=e=>{
const{setValue:t}=this.context,{percentWidth:l}=this.props.property.childs();t(l,e,bt)},this._onPlacementChange=e=>{const{setValue:t}=this.context,{direction:l}=this.props.property.childs();t(l,e,ft)},this._onShowValuesChange=e=>{const{setValue:t}=this.context,{showValues:l}=this.props.property.childs();t(l,e,wt)}}render(){const{hHistInfo:e,property:t}=this.props,{percentWidth:l,direction:r,showValues:i,valuesColor:o,visible:s}=t.childs(),{title:a}=e;return n.createElement(n.Fragment,null,n.createElement(le.PropertyTable.Row,null,n.createElement(le.PropertyTable.Cell,{placement:"first",colSpan:2,grouped:!0},n.createElement(R.VisibilitySwitch,{id:a,title:a,visible:s}))),n.createElement(L.InputRow,{label:n.createElement("div",{className:Q.childRowContainer},St),grouped:!0},n.createElement(yt.IntegerInputComponent,{input:{id:"",name:"",type:"integer",defval:0},value:l.value(),disabled:!s.value(),onChange:this._onPercentWidthChange})),n.createElement(L.InputRow,{label:n.createElement("div",{className:Q.childRowContainer},Pt),grouped:!0},n.createElement(ke.Select,{id:"hhist-graphic-placement-select",disabled:!s.value(),className:Q.defaultSelect,menuItemClassName:Q.defaultSelectItem,items:Ct,value:r.value(),onChange:this._onPlacementChange})),n.createElement(le.PropertyTable.Row,null,n.createElement(le.PropertyTable.Cell,{className:Q.childRowContainer,placement:"first",colSpan:2,grouped:!0},n.createElement(gt.BoolInputComponent,{label:Et,input:{id:a+"_showValues",type:"bool",defval:!0,name:"visible"},value:!i||i.value(),disabled:!s.value(),onChange:this._onShowValuesChange}))),n.createElement(L.InputRow,{label:n.createElement("div",{className:Q.childRowContainer},_t),grouped:!0},n.createElement(xe.BasicColorSelect,{disabled:s&&!s.value(),color:o})),this._renderColors(),n.createElement(le.PropertyTable.GroupSeparator,null))}_renderColors(){const{property:e,hHistInfo:t}=this.props,{colors:l,transparencies:r,visible:i}=e.childs(),{titles:o}=t;return l.childNames().map((e=>n.createElement(L.InputRow,{key:e,grouped:!0,label:n.createElement("div",{className:Q.childRowContainer},o[+e])},n.createElement(xe.BasicColorSelect,{disabled:!i.value(),color:l[+e],transparency:r[+e]}))))}}Tt.contextType=I.StylePropertyContext;class xt extends n.PureComponent{render(){const{title:e,property:t}=this.props,{color:l,width:r,style:i,visible:o}=t.childs();return n.createElement(L.InputRow,{label:n.createElement(R.VisibilitySwitch,{id:e,title:e,visible:o})},n.createElement(J.ColorWithLinePropertySelect,{disabled:!o.value(),color:l,transparency:t.child("transparency"),thickness:r,lineStyle:i}))}}var kt,It;xt.contextType=I.StylePropertyContext,function(e){e.Triangle="triangle",e.Rectangle="rectangle"}(kt||(kt={})),function(e){e.Verdana="Verdana",e.CourierNew="Courier New",e.TimesNewRoman="Times New Roman",e.Arial="Arial"}(It||(It={}));class Rt extends n.PureComponent{render(){const{graphicType:e,study:t}=this.props,l=t.metaInfo(),i=l.graphics,o=t.properties().graphics.childs(),s=(0,r.ensureDefined)(i[e]);return Object.keys(s).map(((t,i)=>{
const s=(0,r.ensureDefined)(o[e]?.childs()[t]);return"horizlines"===e||"vertlines"===e?n.createElement(xt,{key:t,title:(0,r.ensureDefined)(l.graphics[e]?.[t]).name,property:s}):"lines"===e?n.createElement(xt,{key:t,title:(0,r.ensureDefined)(l.graphics.lines?.[t]).title,property:s}):"hhists"===e?n.createElement(Tt,{key:t,hHistInfo:(0,r.ensureDefined)(l.graphics.hhists?.[t]),property:s}):null}))}}var Lt=l(73146),Dt=l(66045);const Vt=new o.TranslatedString("change font size",i.t(null,void 0,l(27745))),Nt=[10,11,12,14,16,20,24,28,32,40].map((e=>({value:e,title:e.toString()})));class Bt extends n.PureComponent{constructor(){super(...arguments),this._onFontSizeChange=e=>{const{setValue:t}=this.context,{fontSize:l}=this.props;t(l,e,Vt)}}render(){const{fontSize:e,...t}=this.props;return n.createElement(Dt.FontSizeSelect,{...t,fontSizes:Nt,fontSize:e.value(),fontSizeChange:this._onFontSizeChange})}}Bt.contextType=I.StylePropertyContext;const At=new o.TranslatedString("change visibility",i.t(null,void 0,l(1924))),Mt=i.t(null,void 0,l(62791)),zt=i.t(null,void 0,l(5119)),Wt={Traditional:new Set(["S5/R5","S4/R4","S3/R3","S2/R2","S1/R1","P"]),Fibonacci:new Set(["S3/R3","S2/R2","S1/R1","P"]),Woodie:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"]),Classic:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"]),DM:new Set(["S1/R1","P"]),DeMark:new Set(["S1/R1","P"]),Camarilla:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"]),Floor:new Set(["S3/R3","S2/R2","S1/R1","P"])};class Ft extends n.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{setValue:t}=this.context,{levelsStyle:l}=this.props.property.childs(),{showLabels:n}=l.childs();t(n,e,At)}}render(){const{fontsize:e,levelsStyle:t}=this.props.property.childs();return n.createElement(n.Fragment,null,n.createElement(L.InputRow,{labelAlign:"adaptive",label:n.createElement("span",null,Mt)},n.createElement("div",{className:Q.block},n.createElement("div",{className:Ee(Q.wrapGroup,Q.additionalSelect)},n.createElement(Bt,{id:"pivot-points-standard-font-size-select",fontSize:e})))),n.createElement(le.PropertyTable.Row,null,n.createElement(le.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(gt.BoolInputComponent,{label:zt,input:{id:"ShowLabels",type:"bool",defval:!0,name:"visible"},value:t.childs().showLabels.value(),onChange:this._onChange}))),this._renderColors())}_renderColors(){const{levelsStyle:e,inputs:t}=this.props.property.childs(),{colors:l,widths:i,visibility:o}=e.childs(),{kind:s}=t.childs(),a=(0,r.ensureDefined)(Wt[s.value()]);return l.childNames().filter((e=>a.has(e))).map((e=>n.createElement(fe,{key:e,id:e,title:e,color:l.childs()[e],visible:o.childs()[e],thickness:i.childs()[e]})))}}Ft.contextType=I.StylePropertyContext;const Ht=i.t(null,void 0,l(10783)),Ot=[{value:vt.HHistDirection.RightToLeft,content:i.t(null,void 0,l(50421))},{value:vt.HHistDirection.LeftToRight,content:i.t(null,void 0,l(11626))}],Ut=new o.TranslatedString("change visibility",i.t(null,void 0,l(1924))),Gt=(new o.TranslatedString("change expand blocks",i.t(null,void 0,l(85889))),
i.t(null,void 0,l(81363))),Yt=i.t(null,void 0,l(60092)),jt=i.t(null,void 0,l(93710)),Xt=i.t(null,void 0,l(73033)),qt=i.t(null,{context:"input"},l(49191)),$t=i.t(null,{context:"input"},l(76542));class Jt extends n.PureComponent{constructor(){super(...arguments),this._onChange=e=>{this._setHhistsProperty("visible",e)},this._onShowValuesChange=e=>{this._setHhistsProperty("showValues",e)},this._onValueChange=e=>{this._setHhistsProperty("percentWidth",e)},this._onDirectionChange=e=>{this._setHhistsProperty("direction",e)}}render(){const{metaInfo:e}=this.props,{graphics:t,styles:l,showLabelsOnPriceScale:i,showLegendValues:o}=this.props.property.childs(),{hhists:s,horizlines:a,polygons:c}=t.childs(),d=(0,r.ensureDefined)(e.graphics.hhists),p=Object.keys(d),u=s.childs()[p[0]],h=u.childs().visible,m=p.map((e=>s.childs()[e].childs().showValues)),v=u.childs().percentWidth,y=u.childs().direction,g=p.map((e=>s.childs()[e].childs().valuesColor)),b=a.childs()?.vahLines,f=e.graphics.horizlines?.vahLines,w=a.childs()?.valLines,C=e.graphics.horizlines?.valLines,S=a.childs().pocLines,P=(0,r.ensureDefined)(e.graphics.horizlines?.pocLines),E=l.childs().developingPoc,_=new oe.StudyPlotVisibleProperty(E.childs().display),T=(0,r.ensureDefined)(e.styles?.developingPoc),x=l.childs().developingVAHigh,k=new oe.StudyPlotVisibleProperty(x.childs().display),I=l.childs().developingVALow,D=new oe.StudyPlotVisibleProperty(I.childs().display),V=e.graphics.polygons&&e.graphics.polygons.histBoxBg;return n.createElement(n.Fragment,null,n.createElement(le.PropertyTable.Row,null,n.createElement(le.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(gt.BoolInputComponent,{label:Gt,input:{id:"VolumeProfile",type:"bool",defval:!0,name:"visible"},value:h.value(),onChange:this._onChange}))),n.createElement(le.PropertyTable.Row,null,n.createElement(le.PropertyTable.Cell,{placement:"first"},n.createElement("div",{className:Q.childRowContainer},n.createElement(gt.BoolInputComponent,{disabled:!h.value(),label:Yt,input:{id:"ShowValues",type:"bool",defval:!0,name:"visible"},value:m[0].value(),onChange:this._onShowValuesChange}))),n.createElement(le.PropertyTable.Cell,{placement:"last"},n.createElement(xe.BasicColorSelect,{disabled:!h.value()||!m[0].value(),color:g}))),n.createElement(le.PropertyTable.Row,null,n.createElement(le.PropertyTable.Cell,{placement:"first"},n.createElement("div",{className:Q.childRowContainer},jt)),n.createElement(le.PropertyTable.Cell,{placement:"last"},n.createElement(yt.IntegerInputComponent,{disabled:!h.value(),input:{id:"",name:"",type:"integer",defval:0},value:v.value(),onChange:this._onValueChange}))),n.createElement(le.PropertyTable.Row,null,n.createElement(le.PropertyTable.Cell,{placement:"first"},n.createElement("div",{className:Q.childRowContainer},Ht)),n.createElement(le.PropertyTable.Cell,{placement:"last"},n.createElement(ke.Select,{id:"hhist-direction-select",disabled:!h.value(),className:Q.defaultSelect,menuItemClassName:Q.defaultSelectItem,items:Ot,value:y.value(),onChange:this._onDirectionChange
}))),p.map((e=>n.createElement(n.Fragment,{key:e},s.childs()[e].childs().colors.childNames().map(((t,l)=>{const r=d[e];return n.createElement(L.InputRow,{key:l,label:n.createElement("div",{className:Q.childRowContainer},r&&(0,K.getTranslatedInputTitle)(r.titles[l])||"")},n.createElement(xe.BasicColorSelect,{disabled:!h.value(),color:s.childs()[e].childs().colors.childs()[l],transparency:s.childs()[e].childs().transparencies.childs()[l]}))}))))),f&&b&&n.createElement(fe,{id:"vahLines",title:f.name,color:b.childs().color,visible:b.childs().visible,thickness:b.childs().width,lineStyle:b.childs().style}),C&&w&&n.createElement(fe,{id:"valLines",title:C.name,color:w.childs().color,visible:w.childs().visible,thickness:w.childs().width,lineStyle:w.childs().style}),n.createElement(fe,{id:"pocLines",title:P.name,color:S.childs().color,visible:S.childs().visible,thickness:S.childs().width,lineStyle:S.childs().style}),E&&n.createElement(fe,{id:"developingPoc",title:T.title&&(0,K.getTranslatedInputTitle)(T.title)||"",color:E.childs().color,visible:_,thickness:E.childs().linewidth,lineStyle:E.childs().linestyle}),x&&I&&n.createElement(fe,{id:"developingPoc",title:Xt,color:[x.childs().color,I.childs().color],visible:[k,D],thickness:[x.childs().linewidth,I.childs().linewidth],lineStyle:[x.childs().linestyle,I.childs().linestyle]}),c&&n.createElement(L.InputRow,{label:n.createElement("div",null,V&&(0,K.getTranslatedInputTitle)(V.name)||"")},n.createElement(xe.BasicColorSelect,{color:c.childs().histBoxBg.childs().color,transparency:c.childs().histBoxBg.childs().transparency})),(i||o)&&"VbPFixed"!==e.shortId&&n.createElement(n.Fragment,null,i&&n.createElement(le.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(R.VisibilitySwitch,{id:"showLabelsOnPriceScale",title:$t,visible:i})),o&&n.createElement(le.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(R.VisibilitySwitch,{id:"showLegendValues",title:qt,visible:o}))))}_setHhistsProperty(e,t){const{setValue:l}=this.context,{metaInfo:n,property:i}=this.props,o=i.childs().graphics.childs().hhists,s=Object.keys((0,r.ensureDefined)(n.graphics.hhists)),a=o.childs();l(s.map((t=>(0,r.ensureDefined)(a[t].child(e)))),t,Ut)}}function Kt(){const e=(0,r.ensureNotNull)((0,n.useContext)(me)),t=e.metaInfo(),l=e.properties();return n.createElement(Jt,{metaInfo:t,property:l})}Jt.contextType=I.StylePropertyContext;var Qt=l(12760);const Zt={VbPFixed:Kt,PivotPointsStandard:function(){const e=(0,r.ensureNotNull)((0,n.useContext)(me)).properties();return n.createElement(Ft,{property:e})},VbPVisible:Kt,VbPAnchored:Kt};class el extends n.PureComponent{render(){const e=(0,r.ensureNotNull)(this.context);return n.createElement(me.Consumer,null,(t=>n.createElement(I.StylePropertyContainer,{property:(0,r.ensureNotNull)(t).properties(),affectSave:(0,Lt.doesStudyLikeAffectSave)((0,r.ensureNotNull)(t)),model:e},n.createElement(le.PropertyTable,null,this._renderCustomContent((0,r.ensureNotNull)(t).metaInfo().shortId)))))}_renderCustomContent(e){if(e in Zt){const t=Zt[e]
;return n.createElement(t,null)}return null}}el.contextType=Qt.ModelContext;var tl=l(48282);const ll=new o.TranslatedString("change precision",i.t(null,void 0,l(61863))),nl=i.t(null,void 0,l(16564)),rl=i.t(null,void 0,l(59766)),il=[{value:"default",content:nl}];for(let e=0;e<=8;e++)il.push({value:e,content:e.toString()});class ol extends n.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{setValue:t}=this.context,{precision:l}=this.props;t(l,e,ll)}}render(){const{id:e,precision:t}=this.props;return n.createElement(L.InputRow,{label:rl},n.createElement(ke.Select,{id:e,className:Q.defaultSelect,menuItemClassName:Q.defaultSelectItem,items:il,value:t.value(),onChange:this._onChange}))}}ol.contextType=I.StylePropertyContext;const sl=new o.TranslatedString("change min tick",i.t(null,void 0,l(26476))),al=i.t(null,void 0,l(16564)),cl=i.t(null,void 0,l(64075)),dl=[{priceScale:1,minMove:1,frac:!1},{priceScale:10,minMove:1,frac:!1},{priceScale:100,minMove:1,frac:!1},{priceScale:1e3,minMove:1,frac:!1},{priceScale:1e4,minMove:1,frac:!1},{priceScale:1e5,minMove:1,frac:!1},{priceScale:1e6,minMove:1,frac:!1},{priceScale:1e7,minMove:1,frac:!1},{priceScale:1e8,minMove:1,frac:!1},{priceScale:2,minMove:1,frac:!0},{priceScale:4,minMove:1,frac:!0},{priceScale:8,minMove:1,frac:!0},{priceScale:16,minMove:1,frac:!0},{priceScale:32,minMove:1,frac:!0},{priceScale:64,minMove:1,frac:!0},{priceScale:128,minMove:1,frac:!0},{priceScale:320,minMove:1,frac:!0}],pl=[{id:"tick-default",value:"default",content:al}];for(let e=0;e<dl.length;e++){const t=dl[e];pl.push({value:t.priceScale+","+t.minMove+","+t.frac,content:t.minMove+"/"+t.priceScale})}class ul extends n.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{setValue:t}=this.context,{minTick:l}=this.props;t(l,e,sl)}}render(){const{id:e,minTick:t}=this.props;return n.createElement(L.InputRow,{label:cl},n.createElement(ke.Select,{id:e,className:Q.defaultSelect,menuItemClassName:Q.defaultSelectItem,items:pl,value:t.value(),onChange:this._onChange}))}}ul.contextType=I.StylePropertyContext;var hl=l(86067);class ml extends n.PureComponent{render(){const{id:e,isRGB:t,title:l,visible:r,bottomColor:i,topColor:o,transparency:s,children:a,switchable:c=!0,offset:d,grouped:p}=this.props;return n.createElement(L.InputRow,{label:c?n.createElement(R.VisibilitySwitch,{id:e,title:l,visible:r}):l,offset:d,grouped:p},t?null:n.createElement(n.Fragment,null,o&&n.createElement(xe.BasicColorSelect,{disabled:r&&!(Array.isArray(r)?r[0].value():r.value()),color:o,transparency:s}),i&&n.createElement("div",{className:_e()(i&&o&&Q.additionalSelect)},n.createElement(xe.BasicColorSelect,{disabled:r&&!(Array.isArray(r)?r[0].value():r.value()),color:i,transparency:s}))),a)}}ml.contextType=I.StylePropertyContext;const vl=i.t(null,void 0,l(79468)),yl=i.t(null,{context:"input"},l(49191)),gl=i.t(null,{context:"input"},l(76542)),bl=i.t(null,void 0,l(60051)),fl=i.t(null,void 0,l(50382));class wl extends n.PureComponent{constructor(){super(...arguments),this._findPlotPalettes=e=>{
const{study:t}=this.props,l=t.metaInfo(),n=(0,r.ensureDefined)(l.palettes);return(0,x.isBarColorerPlot)(e)||(0,x.isBgColorerPlot)(e)?{main:{palette:n[e.palette],paletteProps:t.properties().palettes[e.palette]}}:this._findPalettesByTargetId(e.id)}}render(){const{study:e}=this.props,t=e.metaInfo();if((0,tl.isCustomStudy)(t.shortId))return n.createElement(el,null);const l=e.properties(),{precision:r,strategy:i,minTick:o,showLabelsOnPriceScale:s,showLegendValues:a}=l,c=t.plots.length>0,d=t.plots.some((e=>!(0,x.isPlotWithTechnicalValues)(e))),p=c||t.inputs.some((e=>"price"===e.type)),u=(0,Lt.createAdapter)(e).canOverrideMinTick();return n.createElement(le.PropertyTable,null,this._plotsElement(),this._bandsElement(),this._bandsBackgroundsElement(),this._areasBackgroundsElement(),this._filledAreasElement(),this._graphicsElement(),u&&n.createElement(ul,{id:(0,T.createDomId)(t.id,"min-tick-select"),minTick:o}),k.StudyMetaInfo.isScriptStrategy(t)&&n.createElement(mt,{orders:i.orders}),(p||d)&&n.createElement(le.PropertyTable.Row,null,n.createElement(le.PropertyTable.GroupSeparator,{size:1}),n.createElement(hl.GroupTitleSection,{title:bl,name:bl}),p&&n.createElement(ol,{id:(0,T.createDomId)(t.id,"precision-select"),precision:r}),d&&n.createElement(n.Fragment,null,n.createElement(le.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(R.VisibilitySwitch,{id:"showLabelsOnPriceScale",title:gl,visible:s})),n.createElement(le.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(R.VisibilitySwitch,{id:"showLegendValues",title:yl,visible:a})))))}_plotsElement(){const{study:e}=this.props,t=e.metaInfo();return new E.MetaInfoHelper(t).getUserEditablePlots().filter((e=>!((0,x.isUpColorerPlot)(e)||(0,x.isDownColorerPlot)(e)||(0,x.isCandleBorderColorerPlot)(e)||(0,x.isCandleWickColorerPlot)(e)))).map((t=>{const l=(0,x.isOhlcPlot)(t)?{...t,id:t.target}:t,r=this._findPlotPalettes(l);return n.createElement(ct,{key:t.id,plot:t,palettes:r,study:e})}))}_bandsElement(){const{study:e}=this.props,t=e.metaInfo().bands,l=e.properties().childs().bands;return t&&l&&t.map(((e,t)=>{if(!e.isHidden)return n.createElement(ht,{key:t,id:e.name,name:e.name,property:l[t]})}))}_bandsBackgroundsElement(){const{study:e}=this.props,t=e.properties(),{bandsBackground:l}=t;return l&&n.createElement(fe,{id:"bandsBackground",title:vl,visible:l.fillBackground,color:l.backgroundColor,transparency:l.transparency})}_areasBackgroundsElement(){const{study:e}=this.props,t=e.metaInfo(),l=e.properties(),{areaBackground:r}=l;return t.isRGB?null:r&&n.createElement(fe,{id:"areaBackground",title:vl,visible:r.fillBackground,color:r.backgroundColor,transparency:r.transparency})}_filledAreasElement(){const{study:e}=this.props,t=e.metaInfo(),l=t.filledAreas;return!l||t.isRGB?[]:l.map((l=>{const i=t.filledAreasStyle?.[l.id];if(i){if(i.isHidden)return null}else if(l.isHidden)return null;const o=e.properties().filledAreasStyle[l.id],s=l.title||vl;if(o.hasChild("fillType")&&"gradient"===o.childs().fillType.value()){
if(o.topColor||o.bottomColor)return n.createElement(ml,{key:l.id,id:l.id,title:s,bottomColor:o.bottomColor,topColor:o.topColor,visible:o.visible,transparency:o.transparency});if(l.palette){const e=this._findPalettesByTargetId(l.id),t=(0,r.ensureDefined)(e.main),i=e.secondary;return n.createElement(re,{key:l.id,title:l.title,area:l,palette:(0,r.ensureDefined)(t.palette),paletteProps:(0,r.ensureDefined)(t.paletteProps),secondaryPalette:i?.palette,secondaryPaletteProps:i?.paletteProps,styleProp:o})}return null}if(l.palette){const e=this._findPalettesByTargetId(l.id),t=(0,r.ensureDefined)(e.main);return n.createElement(re,{key:l.id,title:l.title,area:l,palette:(0,r.ensureDefined)(t.palette),paletteProps:(0,r.ensureDefined)(t.paletteProps),styleProp:o})}return n.createElement(fe,{key:l.id,id:l.id,title:s,color:o.color,visible:o.visible,transparency:o.transparency})}))}_graphicsElement(){const{study:e}=this.props,t=e.metaInfo().graphics,l=Object.keys(t);return l.length?n.createElement(n.Fragment,null,n.createElement(le.PropertyTable.GroupSeparator,{className:Q.groupSeparator,size:1}),n.createElement(le.PropertyTable.Row,null,n.createElement(hl.GroupTitleSection,{title:fl,name:fl}),l.map((t=>n.createElement(Rt,{key:t,graphicType:t,study:e}))))):null}_findPalettesByTargetId(e){const{study:t}=this.props,l=t.metaInfo(),n=l.plots,i=(0,r.ensureDefined)(l.palettes),o={};for(const l of n){if(((0,x.isPaletteColorerPlot)(l)||(0,x.isOhlcColorerPlot)(l))&&l.target===e){if(o.main){o.secondary={palette:i[l.palette],paletteProps:t.properties().palettes[l.palette]};continue}o.main={palette:i[l.palette],paletteProps:t.properties().palettes[l.palette]}}(0,x.isUpColorerPlot)(l)&&l.target===e&&(o.up={palette:i[l.palette],paletteProps:t.properties().palettes[l.palette]}),(0,x.isDownColorerPlot)(l)&&l.target===e&&(o.down={palette:i[l.palette],paletteProps:t.properties().palettes[l.palette]}),(0,x.isCandleWickColorerPlot)(l)&&l.target===e&&(o.wick={palette:i[l.palette],paletteProps:t.properties().palettes[l.palette]}),(0,x.isCandleBorderColorerPlot)(l)&&l.target===e&&(o.border={palette:i[l.palette],paletteProps:t.properties().palettes[l.palette]})}return o}}function Cl(e){return(0,I.bindPropertyContext)(wl,{...e,property:e.study.properties()},(0,Lt.doesStudyLikeAffectSave)(e.study))}class Sl extends n.PureComponent{render(){return n.createElement(Qt.ModelContext.Provider,{value:this.props.model},n.createElement(me.Provider,{value:this.props.source},n.createElement(Cl,{study:this.props.source})))}}var Pl=l(60567),El=l(38414),_l=l(73863),Tl=l(36313),xl=l(87896);class kl extends El.DialogRenderer{constructor(e,t,l,n){super(),this._timeout=null,this._onDestroy=null,this._handleClose=()=>{this._rootInstance?.unmount(),this._onDestroy?.(),this._setVisibility(!1),this._subscription.unsubscribe(this,this._handleCollectionChanged)},this._handleCancel=()=>{this._model.undoToCheckpoint(this._checkpoint)},this._handleSubmit=()=>{},this._handleActiveTabChanged=e=>{a.setValue(this._activeTabSettingsName(),e)},this._source=e,this._model=t,
this._propertyPages=n,this._checkpoint=this._ensureCheckpoint(l),this._subscription=this._model.model().dataSourceCollectionChanged(),this._subscription.subscribe(this,this._handleCollectionChanged)}hide(e){e?this._handleCancel():this._handleSubmit(),this._handleClose()}isVisible(){return this.visible().value()}show(e={}){if(!c.enabled("property_pages")||this.isVisible())return;const t=this._source.metaInfo();if((0,g.isLineTool)(this._source)&&(0,p.trackEvent)("GUI","Drawing Properties",this._source.name()),(0,v.isStudy)(this._source)){const e=!this._source.isPine()||this._source.isStandardPine()?t.description:"Custom Pine";(0,p.trackEvent)("GUI","Study Properties",e)}let r=[];const o=new E.MetaInfoHelper(t);o.hasUserEditableInputs()&&r.push({id:"inputs",label:i.t(null,void 0,l(21429)),Component:_}),o.hasUserEditableProperties(),o.hasUserEditableStyles()&&r.push({id:"style",label:i.t(null,void 0,l(92516)),Component:Sl}),this._propertyPages||r.push({id:"visibilities",label:i.t(null,void 0,l(40091)),page:this._createVisibilitiesPropertyPage()}),r=this._getPagesForStudyLineTool(r);const u=e.initialTab||a.getValue(this._activeTabSettingsName())||"inputs";let h=(0,s.clean)(t.shortDescription,!0);const m=r.find((e=>e.id===u))??r[0];this._rootInstance=(0,xl.createReactRoot)(n.createElement(S,{title:h,model:this._model,source:this._source,initialActiveTab:m.id,pages:r,shouldReturnFocus:e.shouldReturnFocus,onSubmit:this._handleSubmit,onCancel:this._handleCancel,onClose:this._handleClose,onActiveTabChanged:this._handleActiveTabChanged,closeOnOutsideClick:e.closeOnOutsideClick}),this._container),e.onDestroy&&(this._onDestroy=e.onDestroy),this._setVisibility(!0),d.emit("edit_object_dialog",{objectType:"study",scriptTitle:this._source.title(Tl.TitleDisplayTarget.StatusLine)})}_createVisibilitiesPropertyPage(){const e=this._source.properties().childs().intervalsVisibilities.childs();return(0,Pl.createPropertyPage)((0,_l.getIntervalsVisibilitiesPropertiesDefinitions)(this._model,e,new o.TranslatedString(this._source.name(!0),this._source.title(Tl.TitleDisplayTarget.StatusLine,!0))),"visibility",i.t(null,void 0,l(40091)))}_activeTabSettingsName(){return"properties_dialog.active_tab.study"}_ensureCheckpoint(e){return void 0===e&&(e=this._model.createUndoCheckpoint()),e}_getPagesForStudyLineTool(e){if(this._propertyPages){const t=this._propertyPages.filter((e=>"coordinates"===e.id||"visibility"===e.id));return[...e,...t.map((e=>({id:e.id,label:e.title,page:e})))]}return e}_handleCollectionChanged(){null===this._timeout&&(this._timeout=setTimeout((()=>{this._closeDialogIfSourceIsDeleted(),this._timeout=null})))}_closeDialogIfSourceIsDeleted(){const e=this._model.model().dataSourceForId(this._source.id());null!==e?e.instanceId()!==this._source.instanceId()&&this._handleClose():this._handleClose()}}},78890:(e,t,l)=>{"use strict";l.d(t,{PropertyActions:()=>m});var n=l(50959),r=l(97754),i=l.n(r),o=l(9745),s=l(11542),a=l(95276),c=l(16396),d=l(44996),p=l(50029);const u={reset:s.t(null,void 0,l(33533)),saveAsDefault:s.t(null,void 0,l(99687)),
defaults:s.t(null,void 0,l(48572))};var h;!function(e){e.Normal="normal",e.Compact="compact"}(h||(h={}));class m extends n.PureComponent{render(){const{mode:e,saveAsDefaults:t,resetToDefaults:l}=this.props;return n.createElement(a.ControlDisclosure,{id:"property-actions",className:i()("normal"===e&&p.defaultsButtonText),hideArrowButton:"compact"===e,buttonChildren:this._getPlaceHolderItem("compact"===e)},n.createElement(c.PopupMenuItem,{className:p.defaultsButtonItem,isActive:!1,label:u.reset,onClick:l}),n.createElement(c.PopupMenuItem,{className:p.defaultsButtonItem,isActive:!1,label:u.saveAsDefault,onClick:t}))}_getPlaceHolderItem(e){return e?n.createElement(o.Icon,{className:p.defaultsButtonIcon,icon:d}):u.defaults}}},48531:(e,t,l)=>{"use strict";l.d(t,{FooterMenu:()=>f});var n=l(50959),r=l(11542),i=l(9745),o=l(95276),s=l(90692),a=l(6165),c=l(44996);function d(e){return e.isTabletWidth?n.createElement(i.Icon,{className:a.themesButtonIcon,icon:c}):n.createElement(n.Fragment,null,r.t(null,void 0,l(93553)))}function p(e){return n.createElement(s.MatchMedia,{rule:"(max-width: 768px)"},(t=>n.createElement(o.ControlDisclosure,{className:!t&&a.themesButtonText,hideArrowButton:t,buttonChildren:n.createElement(d,{isTabletWidth:t})},e.children)))}var u=l(16396),h=l(96040),m=l(70412),v=l(32563),y=l(60925);function g(e){const{name:t,onRemove:l,onClick:r}=e,[i,o]=(0,m.useHoverDeprecated)(),s=n.useCallback((()=>r(t)),[r,t]),c=n.useCallback((()=>{l&&l(t)}),[l,t]);return n.createElement("div",{...o},n.createElement(u.PopupMenuItem,{className:a.defaultsButtonItem,isActive:!1,label:t,onClick:s,toolbox:l&&n.createElement(h.RemoveButton,{hidden:!v.mobiletouch&&!i,onClick:c,icon:y})}))}function b(e){return n.createElement(p,null,n.createElement(g,{onClick:function(){const{sources:t,chartUndoModel:l}=e;l.restoreLineToolsFactoryDefaults(t)},name:r.t(null,void 0,l(62511))}))}function f(e){return n.createElement(b,{...e})}},37289:(e,t,l)=>{"use strict";l.d(t,{PropertiesEditorTab:()=>c});var n=l(50959),r=l(66849);const i={"Elliott Impulse Wave (12345)Degree":"normal","Elliott Triangle Wave (ABCDE)Degree":"normal","Elliott Triple Combo Wave (WXYXZ)Degree":"normal","Elliott Correction Wave (ABC)Degree":"normal","Elliott Double Combo Wave (WXY)Degree":"normal",BarsPatternMode:"normal",StudyInputSource:"normal",trendLineToolCheckableListGroup:"big",trendLineToolStatsPosition:"big",lineExtend:"big",datePriceRangeCheckableListGroup:"big"},o={TextText:"big",AnchoredTextText:"big",NoteText:"big",AnchoredNoteText:"big",CalloutText:"big",BalloonText:"big"};var s=l(33066),a=l(72852);function c(e){const{page:t,pageRef:l,tableKey:c}=e;return n.createElement(r.ControlCustomHeightContext.Provider,{value:o},n.createElement(r.ControlCustomWidthContext.Provider,{value:i},t&&n.createElement(s.PropertyTable,{reference:l,key:c},t.definitions.value().map((e=>n.createElement(a.Section,{key:e.id,definition:e}))))))}},51613:(e,t,l)=>{"use strict";l.d(t,{PopupMenuSeparator:()=>a});var n,r=l(50959),i=l(97754),o=l.n(i),s=l(40359);function a(e){
const{size:t="normal",className:l,ariaHidden:n=!1}=e;return r.createElement("div",{className:o()(s.separator,"small"===t&&s.small,"normal"===t&&s.normal,"large"===t&&s.large,l),role:"separator","aria-hidden":n})}!function(e){e.Small="small",e.Large="large",e.Normal="normal"}(n||(n={}))},67829:(e,t,l)=>{"use strict";l.d(t,{UnderlineButtonTabs:()=>$});var n,r=l(50959),i=l(97754),o=l.n(i),s=l(11542),a=l(95854),c=l(38528),d=l(47201),p=l(7953),u=l(36966),h=l(26597);!function(e){e.XSmall="xsmall",e.Small="small",e.Medium="medium",e.Large="large",e.XLarge="xlarge"}(n||(n={}));const m=(0,r.createContext)({size:"small",overflowBehaviour:void 0});var v=l(17946),y=l(58591);function g(e){const{size:t="xsmall",active:l,fake:n,enableActiveStateStyles:r,anchor:i=!1,hideFocusOutline:s=!1,equalTabSize:a,className:c,overflowBehaviour:d,disabled:p}=e;return o()(y["underline-tab"],y[`size-${t}`],l&&y.selected,!r&&y["disable-active-state-styles"],s&&y["disable-focus-outline"],n&&y.fake,i&&y["enable-cursor-pointer"],a&&y[`margin-${t}`],"collapse"===d&&y.collapse,p&&y.disabled,c)}const b=(0,r.forwardRef)(((e,t)=>{const{size:l,overflowBehaviour:n}=(0,r.useContext)(m),i=(0,r.useContext)(v.CustomBehaviourContext),{active:s,fake:a,className:c,enableActiveStateStyles:d=i.enableActiveStateStyles,hideFocusOutline:p=!1,equalTabSize:u,children:h,disabled:b,...f}=e;return r.createElement("button",{...f,ref:t,className:g({size:l,active:s,fake:a,enableActiveStateStyles:d,hideFocusOutline:p,equalTabSize:u,className:c,overflowBehaviour:n,disabled:b})},u&&"string"==typeof h?r.createElement("span",{className:o()(y["ellipsis-children"],"apply-overflow-tooltip")},h):h)}));b.displayName="UnderlineTabsBaseButton";const f=(0,r.forwardRef)(((e,t)=>{const{item:l,highlighted:n,handleItemRef:i,onClick:o,...s}=e,a=(0,r.useCallback)((()=>{o&&o(l)}),[o,l]),c=(0,r.useCallback)((e=>{i&&i(l,e),t&&"object"==typeof t?t.current=e:"function"==typeof t&&t(e)}),[l,i,t]);return r.createElement(b,{...s,id:l.id,onClick:a,ref:c},l.label)}));f.displayName="UnderlineButtonTab";var w=l(50151),C=l(16396),S=l(4523),P=l(9745),E=l(47531),_=l(2948),T=l(63509),x=l(68874),k=l(67033);function I(e){switch(e){case"xsmall":return E;case"small":return _;case"medium":case"large":return T;case"xlarge":return x}}function R(e){const{size:t,isDropped:l=!1}=e;return r.createElement(P.Icon,{icon:I(t),className:i(k["arrow-icon"],k[`size-${t}`],l&&k.dropped)})}var L=l(55185);const D=4,V=4;function N(e){const{size:t,disabled:l,isOpened:n,enableActiveStateStyles:i,hideFocusOutline:o,fake:s,items:a,buttonContent:d,buttonRef:p,isAnchorTabs:u,isHighlighted:h,onButtonClick:m,onItemClick:v,onClose:y}=e,g=(0,r.useRef)(null),f=(0,c.useMergedRefs)([p,g]),P=function(e,t){const l=(0,r.useRef)(A);return(0,r.useEffect)((()=>{const e=getComputedStyle((0,w.ensureNotNull)(t.current));l.current={xsmall:B(e,"xsmall"),small:B(e,"small"),medium:B(e,"medium"),large:B(e,"large"),xlarge:B(e,"xlarge")}}),[t]),(0,r.useCallback)((()=>{const n=(0,w.ensureNotNull)(t.current).getBoundingClientRect(),r=l.current[e];return{x:n.left,
y:n.top+n.height+r+D,indentFromWindow:{top:V,bottom:V,left:V,right:V}}}),[t,e])}(t,g);return r.createElement(S.PopupMenuDisclosureView,{buttonRef:g,listboxTabIndex:-1,isOpened:n,onClose:y,listboxAria:{"aria-hidden":!0},popupPosition:P,button:r.createElement(b,{"aria-hidden":!0,disabled:l,active:n,onClick:m,ref:f,tabIndex:-1,enableActiveStateStyles:i,hideFocusOutline:o,fake:s},d,r.createElement(R,{size:t,isDropped:n})),popupChildren:a.map((e=>r.createElement(C.PopupMenuItem,{key:e.id,className:u?L["link-item"]:void 0,onClick:v,onClickArg:e,isActive:h(e),label:e.label,isDisabled:e.disabled,link:"href"in e?e.href:void 0,rel:"rel"in e?e.rel:void 0,target:"target"in e?e.target:void 0,renderComponent:"renderComponent"in e?e.renderComponent:void 0,dontClosePopup:!0})))})}function B(e,t){return parseInt(e.getPropertyValue(`--ui-lib-underline-tabs-tab-margin-bottom-${t}`),10)}const A={xsmall:0,small:0,medium:0,large:0,xlarge:0};var M=l(75774),z=l(42707),W=l(86240),F=l(49682);function H(e){const{size:t,overflowBehaviour:l,className:n}=e;return o()(F["scroll-wrap"],F[`size-${t}`],"scroll"===l&&F["enable-scroll"],n)}function O(){const[e,t]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{t(M.mobiletouch)}),[]),e}var U=l(90484),G=l(24640),Y=l(15427),j=l.n(Y);const X=100;function q(e){const{disabled:t,translateX:l,transitionDuration:n}=e,o=e.scale/100;return r.createElement("div",{className:i(j().underline,t&&j().disabled),style:{transform:`translateX(${l}px) scaleX(${o})`,transitionDuration:`${n}ms`}},r.createElement("div",{className:j().corner,style:{transform:`scaleX(${1/o})`}}),r.createElement("div",{className:j().center,style:{transform:`scaleX(${1-30/e.scale})`}}),r.createElement("div",{className:j().corner,style:{transform:`scaleX(${1/o})`}}))}function $(e){const{id:t,items:n,activationType:i,disabled:v,moreButtonContent:y=s.t(null,void 0,l(37117)),size:g="small",onActivate:b,isActive:w,className:C,style:S,overflowBehaviour:P,enableActiveStateStyles:E,tablistLabelId:_,tablistLabel:T,"data-name":x="underline-tabs-buttons",stretchTabs:k,equalTabSize:I,defaultKeyboardFocus:R,stopPropagationIfKeyboardActionHandled:L,keyboardNavigationLoop:D,focusableItemAttributes:V,dataQaId:B="underline-tabs-buttons"}=e,A=O(),M=function(e){const t=(0,z.useSafeMatchMedia)(W["media-mf-phone-landscape"],!0),l=O();return e??(l||!t?"scroll":"collapse")}(P),Y=(0,r.useRef)(!1),j=(0,r.useCallback)((e=>e.id),[]),$="none"===M&&k,J="none"===M&&I,K=E??!A,{visibleItems:Q,hiddenItems:Z,containerRefCallback:ee,innerContainerRefCallback:te,moreButtonRef:le,setItemRef:ne}=(0,a.useCollapsible)(n,j,w),re="collapse"===M?Q:n,ie="collapse"===M?Z:[],oe=(0,r.useCallback)((e=>ie.includes(e)),[ie]),se=(0,r.useRef)(new Map),{isOpened:ae,open:ce,close:de,onButtonClick:pe}=(0,p.useDisclosure)({id:t,disabled:v}),ue=function(e="xsmall"){switch(e){case"xsmall":case"small":return 12;case"medium":return 16;case"large":case"xlarge":return 20}}(g),{tabsBindings:he,tablistBinding:me,scrollWrapBinding:ve,onActivate:ye,onHighlight:ge,isHighlighted:be}=(0,u.useTabs)({id:t,
items:[...re,...ie],activationType:i,disabled:v,tablistLabelId:_,tablistLabel:T,onActivate:b,isActive:w,isCollapsed:oe,isRtl:G.isRtl,itemsRefs:se,isDisclosureOpened:ae,defaultKeyboardFocus:R,stopPropagationIfKeyboardActionHandled:L,keyboardNavigationLoop:D,focusableItemAttributes:V,scrollIntoViewOptions:{additionalScroll:ue}}),fe=n.find(w),we=ie.find(be),Ce=(0,r.useCallback)((()=>{fe&&ge(fe)}),[ge,fe]),Se=(0,r.useCallback)((e=>he.find((t=>t.id===e.id))??{}),[he]),Pe=(0,r.useCallback)((()=>{de(),Ce(),Y.current=!0}),[de,Ce]),Ee=(0,r.useCallback)((()=>{we&&(ye(we),ge(we,200))}),[ye,ge,we]);ve.ref=(0,c.useMergedRefs)([ve.ref,ee]),me.ref=(0,c.useMergedRefs)([me.ref,te]),me.onKeyDown=(0,d.createSafeMulticastEventHandler)((0,h.useKeyboardEventHandler)([(0,h.useKeyboardClose)(ae,Pe),(0,h.useKeyboardActionHandler)([13,32],Ee,(0,r.useCallback)((()=>Boolean(we)),[we]))]),me.onKeyDown);const _e=(0,r.useCallback)((e=>{Y.current=!0,pe(e)}),[Y,pe]),Te=(0,r.useCallback)((e=>{e&&ye(e)}),[ye]);(0,r.useEffect)((()=>{Y.current?Y.current=!1:(we&&!ae&&ce(),!we&&ae&&de())}),[we,ae,ce,de]);const xe=function(e,t,l=[]){const[n,i]=(0,r.useState)(),o=(0,r.useRef)(),s=(0,r.useRef)(),a=e=>{const t=e.parentElement??void 0;if(void 0===t)return;const l=void 0===s.current||s.current===e?0:X;s.current=e;const{left:n,right:r,width:o}=e.getBoundingClientRect(),{left:a,right:c}=t.getBoundingClientRect(),d=(0,G.isRtl)()?r-c:n-a;i({translateX:d,scale:o,transitionDuration:l})};return(0,r.useEffect)((()=>{const e=(0,U.default)((e=>{const t=e[0].target;void 0!==t&&a(t)}),50);o.current=new ResizeObserver(e)}),[]),(0,r.useEffect)((()=>{if(void 0===t)return;const l=e.get(t);return void 0!==l?(a(l),o.current?.observe(l),()=>o.current?.disconnect()):void 0}),l),n}(se.current,fe??we,[fe??we,re,g,$,M]);return r.createElement(m.Provider,{value:{size:g,overflowBehaviour:M}},r.createElement("div",{...ve,className:H({size:g,overflowBehaviour:M,className:C}),style:S,"data-name":x,"data-qa-id":B},r.createElement("div",{...me,className:o()(F["underline-tabs"],{[F["make-grid-column"]]:$||J,[F["stretch-tabs"]]:$,[F["equal-tab-size"]]:J})},re.map((e=>r.createElement(f,{...Se(e),key:e.id,item:e,onClick:ye,enableActiveStateStyles:K,hideFocusOutline:A,ref:ne(j(e)),...e.dataId&&{"data-id":e.dataId},"data-qa-id":e.dataId,equalTabSize:J}))),ie.map((e=>r.createElement(f,{...Se(e),ref:ne(j(e)),key:e.id,item:e,fake:!0}))),"collapse"===M&&r.createElement(N,{size:g,disabled:v,isOpened:ae,items:ie,buttonContent:y,buttonRef:le,isHighlighted:be,onButtonClick:_e,onItemClick:Te,onClose:de,enableActiveStateStyles:K,hideFocusOutline:A,fake:0===ie.length}),xe?r.createElement(q,{...xe,disabled:v}):r.createElement("div",null))))}var J=l(38952);function K(e){return r.createElement("a",{...(0,J.renameRef)(e)})}(0,r.forwardRef)(((e,t)=>{const{size:l,overflowBehaviour:n}=(0,r.useContext)(m),i=(0,
r.useContext)(v.CustomBehaviourContext),{item:o,highlighted:s,handleItemRef:a,onClick:c,active:d,fake:p,className:u,enableActiveStateStyles:h=i.enableActiveStateStyles,hideFocusOutline:y=!1,disabled:b,"aria-disabled":f,...w}=e,C=(0,r.useCallback)((e=>{f?e.preventDefault():c&&c(o)}),[c,f,o]),S=(0,r.useCallback)((e=>{a&&a(o,e),t&&"object"==typeof t?t.current=e:"function"==typeof t&&t(e)}),[o,a,t]),P=o.renderComponent??K;return r.createElement(P,{...w,id:o.id,"aria-disabled":f,onClick:C,reference:S,href:o.href,rel:o.rel,target:o.target,className:g({size:l,active:d,fake:p,enableActiveStateStyles:h,anchor:!0,hideFocusOutline:y,className:u,overflowBehaviour:n})},o.label)})).displayName="UnderlineAnchorTab"},87795:e=>{"use strict";const t=55296,l=127995,n=127999,r=[776,2359,2359,2367,2367,2984,3007,3021,3633,3635,3648,3657,4352,4449,4520];function i(e){if("string"!=typeof e)throw new Error("string cannot be undefined or null");const t=[];let l=0,n=0;for(;l<e.length;)n+=o(l+n,e),d(e[l+n])&&n++,a(e[l+n])&&n++,c(e[l+n])&&n++,p(e[l+n])?n++:(t.push(e.substring(l,l+n)),l+=n,n=0);return t}function o(e,r){const i=r[e];if(!function(e){return e&&h(e[0].charCodeAt(0),t,56319)}(i)||e===r.length-1)return 1;const o=i+r[e+1];let a=r.substring(e+2,e+5);return s(o)&&s(a)||function(e){return h(u(e),l,n)}(a)?4:2}function s(e){return h(u(e),127462,127487)}function a(e){return"string"==typeof e&&h(e.charCodeAt(0),65024,65039)}function c(e){return"string"==typeof e&&h(e.charCodeAt(0),8400,8447)}function d(e){return"string"==typeof e&&-1!==r.indexOf(e.charCodeAt(0))}function p(e){return"string"==typeof e&&8205===e.charCodeAt(0)}function u(e){return(e.charCodeAt(0)-t<<10)+(e.charCodeAt(1)-56320)+65536}function h(e,t,l){return e>=t&&e<=l}e.exports=i,e.exports.substr=function(e,t,l){const n=i(e);if(void 0===t)return e;if(t>=n.length)return"";const r=n.length-t;let o=t+(void 0===l?r:l);return o>t+r&&(o=void 0),n.slice(t,o).join("")}},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"}},76431:e=>{e.exports={smallStyleControl:"smallStyleControl-l5f4IL9k",additionalSelect:"additionalSelect-l5f4IL9k",childRowContainer:"childRowContainer-l5f4IL9k",defaultSelect:"defaultSelect-l5f4IL9k",defaultSelectItem:"defaultSelectItem-l5f4IL9k",block:"block-l5f4IL9k",group:"group-l5f4IL9k",wrapGroup:"wrapGroup-l5f4IL9k",textMarkGraphicBlock:"textMarkGraphicBlock-l5f4IL9k",textMarkGraphicWrapGroup:"textMarkGraphicWrapGroup-l5f4IL9k",transparency:"transparency-l5f4IL9k",color:"color-l5f4IL9k",groupSeparator:"groupSeparator-l5f4IL9k"}},74302:(e,t,l)=>{"use strict";l.d(t,{DEFAULT_MENU_ITEM_SWITCHER_THEME:()=>w,MenuItemSwitcher:()=>C});var n,r=l(50959),i=l(97754),o=l.n(i),s=l(17946),a=l(47282),c=l.n(a);function d(e){const{size:t="small",checked:l,disabled:n}=e
;return r.createElement("span",{className:o()(c().switchView,c()[t],n&&c().disabled,l&&c().checked)},r.createElement("span",{className:c().track}),r.createElement("span",{className:c().thumb}))}!function(e){e.Small="small",e.Medium="medium",e.Large="large"}(n||(n={}));var p,u=l(3343),h=l(70330),m=l.n(h);function v(e){const t=(0,r.useContext)(s.CustomBehaviourContext),{size:l,intent:n="default",checked:i,className:a,enableActiveStateStyles:c=t.enableActiveStateStyles,disabled:p,onChange:h,title:v,id:y,name:g,value:b,tabIndex:f,role:w="switch",ariaDisabled:C,reference:S,ariaLabelledBy:P,ariaLabel:E,..._}=e;return r.createElement("span",{className:o()(a,m().switcher)},r.createElement("input",{..._,type:"checkbox",className:o()(m().input,c&&m().activeStylesEnabled,i&&m().checked,p&&m().disabled),role:w,"aria-checked":i,checked:i,onKeyDown:e=>{13===(0,u.hashFromEvent)(e)&&e.currentTarget?.click()},onChange:h,disabled:p,"aria-disabled":C,tabIndex:f,title:v,id:y,name:g,value:b,ref:S,"aria-label":E,"aria-labelledby":P}),r.createElement("span",{className:o()(m().thumbWrapper,m()[n])},r.createElement(d,{checked:i,size:l,disabled:p})))}!function(e){e.Default="default",e.Select="select"}(p||(p={}));var y=l(9745),g=l(50238),b=l(90186),f=l(57213);const w=f;function C(e){const{role:t,checked:l,onChange:n,className:i,id:s,label:a,labelDescription:c,preventLabelHighlight:d,value:p,reference:h,switchReference:m,theme:w=f,disabled:C,switchRole:S,icon:P}=e,[E,_]=(0,g.useRovingTabindexElement)(null),T=o()(w.label,l&&!d&&w.labelOn,C&&f.label_disabled),x=o()(i,w.wrapper,l&&w.wrapperWithOnLabel,c&&w.wrapperWithDescription);return r.createElement("label",{role:t,className:o()(x,P&&w.withIcon,f.accessible),htmlFor:s,ref:h,onKeyDown:function(e){if(e.target!==e.currentTarget)return;const t=(0,u.hashFromEvent)(e);13!==t&&32!==t||(e.preventDefault(),E.current instanceof HTMLElement&&E.current.click())},tabIndex:_,"data-role":"menuitem","aria-disabled":C||void 0,"aria-selected":l},void 0!==P&&r.createElement(y.Icon,{className:w.icon,icon:P}),r.createElement("div",{className:w.labelRow},r.createElement("div",{className:T},a),c&&r.createElement("div",{className:w.labelHint},c)),r.createElement("div",{className:f.switchWrap},r.createElement(v,{disabled:C,className:w.switch,reference:function(e){E(e),m?.(e)},checked:l,onChange:function(e){const t=e.target.checked;void 0!==n&&n(t)},value:p,tabIndex:-1,id:s,role:S,ariaDisabled:!0,...(0,b.filterDataProps)(e)})))}},60567:(e,t,l)=>{"use strict";l.r(t),l.d(t,{createPropertyPage:()=>r});var n=l(22613);function r(e,t,l,r=null){const i={id:t,title:l,definitions:new n.WatchedValue(e.definitions),visible:e.visible??new n.WatchedValue(!0).readonly()};return null!==r&&(i.icon=r),i}},73863:(e,t,l)=>{"use strict";l.r(t),l.d(t,{getIntervalsVisibilitiesPropertiesDefinitions:()=>ae,getSelectionIntervalsVisibilitiesPropertiesDefinition:()=>ce});var n=l(11542),r=l(95804),i=l(95338),o=l(22613),s=l(87296),a=l(15574),c=l(65045),d=l(66567)
;const p=new r.TranslatedString("change {title} visibility on ticks",n.t(null,void 0,l(98596))),u=new r.TranslatedString("change {title} visibility on seconds",n.t(null,void 0,l(41315))),h=new r.TranslatedString("change {title} seconds from",n.t(null,void 0,l(86780))),m=new r.TranslatedString("change {title} seconds to",n.t(null,void 0,l(6573))),v=new r.TranslatedString("change {title} visibility on minutes",n.t(null,void 0,l(78219))),y=new r.TranslatedString("change {title} minutes from",n.t(null,void 0,l(59820))),g=new r.TranslatedString("change {title} minutes to",n.t(null,void 0,l(38011))),b=new r.TranslatedString("change {title} visibility on hours",n.t(null,void 0,l(68715))),f=new r.TranslatedString("change {title} hours from",n.t(null,void 0,l(8306))),w=new r.TranslatedString("change {title} hours to",n.t(null,void 0,l(67233))),C=new r.TranslatedString("change {title} visibility on days",n.t(null,void 0,l(56402))),S=new r.TranslatedString("change {title} days from",n.t(null,void 0,l(91201))),P=new r.TranslatedString("change {title} days to",n.t(null,void 0,l(96135))),E=new r.TranslatedString("change {title} visibility on weeks",n.t(null,void 0,l(71084))),_=new r.TranslatedString("change {title} weeks from",n.t(null,void 0,l(32481))),T=new r.TranslatedString("change {title} weeks to",n.t(null,void 0,l(18678))),x=new r.TranslatedString("change {title} visibility on months",n.t(null,void 0,l(67583))),k=new r.TranslatedString("change {title} months from",n.t(null,void 0,l(99122))),I=new r.TranslatedString("change {title} months to",n.t(null,void 0,l(10518))),R=(new r.TranslatedString("change {title} visibility on ranges",n.t(null,{replace:{ranges:"ranges"}},l(55616))),
n.t(null,void 0,l(24821))),L=n.t(null,void 0,l(65188)),D=n.t(null,void 0,l(42562)),V=n.t(null,void 0,l(56796)),N=n.t(null,void 0,l(72942)),B=n.t(null,void 0,l(835)),A=n.t(null,void 0,l(43154)),M=new r.TranslatedString("ticks",n.t(null,void 0,l(3539))),z=new r.TranslatedString("seconds",n.t(null,void 0,l(751))),W=new r.TranslatedString("seconds from",n.t(null,void 0,l(35801))),F=new r.TranslatedString("seconds to",n.t(null,void 0,l(73419))),H=new r.TranslatedString("minutes",n.t(null,void 0,l(18726))),O=new r.TranslatedString("minutes from",n.t(null,void 0,l(22476))),U=new r.TranslatedString("minutes to",n.t(null,void 0,l(67649))),G=new r.TranslatedString("hours",n.t(null,void 0,l(2359))),Y=new r.TranslatedString("hours from",n.t(null,void 0,l(82267))),j=new r.TranslatedString("hours to",n.t(null,void 0,l(15600))),X=new r.TranslatedString("days",n.t(null,void 0,l(35813))),q=new r.TranslatedString("days from",n.t(null,void 0,l(59215))),$=new r.TranslatedString("days to",n.t(null,void 0,l(89919))),J=new r.TranslatedString("weeks",n.t(null,void 0,l(45537))),K=new r.TranslatedString("weeks from",n.t(null,void 0,l(92859))),Q=new r.TranslatedString("weeks to",n.t(null,void 0,l(44127))),Z=new r.TranslatedString("months",n.t(null,void 0,l(95300))),ee=new r.TranslatedString("months from",n.t(null,void 0,l(17250))),te=new r.TranslatedString("months to",n.t(null,void 0,l(2828))),le=(new r.TranslatedString("ranges","ranges"),[1,59]),ne=[1,59],re=[1,24],ie=[1,366],oe=[1,52],se=[1,12];function ae(e,t,l){const n=[];if((0,a.isTicksEnabled)()){const r=(0,i.createCheckablePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.ticks,p.format({title:l}))},{id:"IntervalsVisibilitiesTicks",title:R});n.push(r)}if((0,s.isSecondsEnabled)()){const r=(0,i.createRangePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.seconds,u.format({title:l})),from:(0,i.convertToDefinitionProperty)(e,t.secondsFrom,h.format({title:l})),to:(0,i.convertToDefinitionProperty)(e,t.secondsTo,m.format({title:l}))},{id:"IntervalsVisibilitiesSecond",title:L,min:new o.WatchedValue(le[0]),max:new o.WatchedValue(le[1])});n.push(r)}const r=(0,i.createRangePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.minutes,v.format({title:l})),from:(0,i.convertToDefinitionProperty)(e,t.minutesFrom,y.format({title:l})),to:(0,i.convertToDefinitionProperty)(e,t.minutesTo,g.format({title:l}))},{id:"IntervalsVisibilitiesMinutes",title:D,min:new o.WatchedValue(ne[0]),max:new o.WatchedValue(ne[1])}),c=(0,i.createRangePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.hours,b.format({title:l})),from:(0,i.convertToDefinitionProperty)(e,t.hoursFrom,f.format({title:l})),to:(0,i.convertToDefinitionProperty)(e,t.hoursTo,w.format({title:l}))},{id:"IntervalsVisibilitiesHours",title:V,min:new o.WatchedValue(re[0]),max:new o.WatchedValue(re[1])}),d=(0,i.createRangePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.days,C.format({title:l})),from:(0,i.convertToDefinitionProperty)(e,t.daysFrom,S.format({title:l})),to:(0,
i.convertToDefinitionProperty)(e,t.daysTo,P.format({title:l}))},{id:"IntervalsVisibilitiesDays",title:N,min:new o.WatchedValue(ie[0]),max:new o.WatchedValue(ie[1])});n.push(r,c,d);const M=(0,i.createRangePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.weeks,E.format({title:l})),from:(0,i.convertToDefinitionProperty)(e,t.weeksFrom,_.format({title:l})),to:(0,i.convertToDefinitionProperty)(e,t.weeksTo,T.format({title:l}))},{id:"IntervalsVisibilitiesWeeks",title:B,min:new o.WatchedValue(oe[0]),max:new o.WatchedValue(oe[1])}),z=(0,i.createRangePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.months,x.format({title:l})),from:(0,i.convertToDefinitionProperty)(e,t.monthsFrom,k.format({title:l})),to:(0,i.convertToDefinitionProperty)(e,t.monthsTo,I.format({title:l}))},{id:"IntervalsVisibilitiesMonths",title:A,min:new o.WatchedValue(se[0]),max:new o.WatchedValue(se[1])});return n.push(M,z),{definitions:n}}function ce(e,t){const l=[];if((0,a.isTicksEnabled)()){const n=(0,i.createCheckablePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.ticks),M,t)},{id:"IntervalsVisibilitiesTicks",title:R});l.push(n)}if((0,s.isSecondsEnabled)()){const n=(0,i.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.seconds),z,t),from:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.secondsFrom),W,t),to:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.secondsTo),F,t)},{id:"IntervalsVisibilitiesSecond",title:L,min:new o.WatchedValue(le[0]),max:new o.WatchedValue(le[1])});l.push(n)}const n=(0,i.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.minutes),H,t),from:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.minutesFrom),O,t),to:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.minutesTo),U,t)},{id:"IntervalsVisibilitiesMinutes",title:D,min:new o.WatchedValue(ne[0]),max:new o.WatchedValue(ne[1])}),r=(0,i.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.hours),G,t),from:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.hoursFrom),Y,t),to:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.hoursTo),j,t)},{id:"IntervalsVisibilitiesHours",title:V,min:new o.WatchedValue(re[0]),max:new o.WatchedValue(re[1])}),p=(0,i.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.days),X,t),from:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.daysFrom),q,t),to:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.daysTo),$,t)},{id:"IntervalsVisibilitiesDays",title:N,min:new o.WatchedValue(ie[0]),max:new o.WatchedValue(ie[1])});l.push(n,r,p);const u=(0,i.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.weeks),J,t),
from:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.weeksFrom),K,t),to:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.weeksTo),Q,t)},{id:"IntervalsVisibilitiesWeeks",title:B,min:new o.WatchedValue(oe[0]),max:new o.WatchedValue(oe[1])}),h=(0,i.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.months),Z,t),from:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.monthsFrom),ee,t),to:new d.CollectiblePropertyUndoWrapper(new c.LineToolCollectedProperty(e.monthsTo),te,t)},{id:"IntervalsVisibilitiesMonths",title:A,min:new o.WatchedValue(se[0]),max:new o.WatchedValue(se[1])});return l.push(u,h),{definitions:l}}},48282:(e,t,l)=>{"use strict";l.d(t,{isCustomStudy:()=>r});const n={VbPFixed:!0,PivotPointsStandard:!0,VbPVisible:!0,VbPAnchored:!0};function r(e){return e in n}},32823:(e,t,l)=>{"use strict";l.d(t,{MetaInfoHelper:()=>u});var n=l(50151),r=l(9343),i=l(19844),o=l(4359),s=l(87465),a=l(69422);function c(e){return!e.groupId&&!e.isHidden&&e.id!==a.RangeDependentStudyInputNames.FirstBar&&e.id!==a.RangeDependentStudyInputNames.LastBar}var d=l(48282);const p=(0,r.getLogger)("Platform.GUI.PropertyDialog.Indicators.MetaInfo");class u{constructor(e){this._metaInfo=e}hasUserEditableInputs(){return this._metaInfo.inputs.some(c)}getUserEditableInputs(){return this._metaInfo.inputs.filter(c)}hasUserEditableProperties(){return i.StudyMetaInfo.isScriptStrategy(this._metaInfo)}hasUserEditableStyles(){const e=this._metaInfo;return e.plots.length>0||void 0!==e.bands||void 0!==e.filledAreas||(0,d.isCustomStudy)(e.shortId)||i.StudyMetaInfo.isScriptStrategy(this._metaInfo)||Object.values(e.graphics).some((e=>void 0!==e))}getUserEditablePlots(){const e=new Set,t=this._metaInfo;return t.plots.filter((l=>{if((0,o.isColorerPlot)(l)||(0,o.isTextColorerPlot)(l)||(0,o.isDataOffsetPlot)(l)||(0,o.isOhlcColorerPlot)(l)||(0,o.isAlertConditionPlot)(l)||(0,o.isDataPlot)(l))return!1;if((0,o.isOhlcPlot)(l)){const r=l.target;if(e.has(r))return!1;e.add(r);const i=(0,n.ensureDefined)(t.ohlcPlots);return!(0,n.ensureDefined)(i[r]).isHidden}{const e=t.styles?t.styles[l.id]:void 0;return void 0===e||!e.isHidden}}))}hasUserEditableOptions(){return this.hasUserEditableInputs()||this.hasUserEditableProperties()||this.hasUserEditableStyles()}getStrategyProperties(){const e=this._metaInfo,t=e.inputs.filter(m),l={...h};for(const n of t){const t=n.internalID;l[t]=n,h.hasOwnProperty(t)||p.logWarn(`Unknown strategy input internal id ${t} in ${e.fullId}`)}return(0,s.clone)(l)}}const h={currency:void 0,backtest_fill_limits_assumption:void 0,calc_on_every_tick:void 0,calc_on_order_fills:void 0,commission_value:void 0,commission_type:void 0,initial_capital:void 0,pyramiding:void 0,slippage:void 0,default_qty_type:void 0,default_qty_value:void 0,margin_long:void 0,margin_short:void 0,use_bar_magnifier:void 0,process_orders_on_close:void 0,fill_orders_on_standard_ohlc:void 0};function m(e){return"strategy_props"===e.groupId}},66567:(e,t,l)=>{
"use strict";l.d(t,{CollectiblePropertyUndoWrapper:()=>a});var n=l(50151),r=l(11542),i=l(95804),o=l(43337);const s=new i.TranslatedString("change {propertyName} property",r.t(null,void 0,l(25167)));class a extends o.Property{constructor(e,t,l){super(),this._isProcess=!1,this._listenersMappers=[],this._valueApplier={applyValue:(e,t)=>{this._propertyApplier.setProperty(e,t,s)}},this._baseProperty=e,this._propertyApplier=l,this._propertyName=t}destroy(){this._baseProperty.destroy(),super.destroy()}value(){return this._baseProperty.value()}setValue(e,t){this._propertyApplier.beginUndoMacro(s.format({propertyName:this._propertyName})),this._isProcess=!0,this._baseProperty.setValue(e,void 0,this._valueApplier),this._isProcess=!1,this._propertyApplier.endUndoMacro(),this._listenersMappers.forEach((e=>{e.method.call(e.obj,this,"")}))}subscribe(e,t){const l=()=>{this._isProcess||t.call(e,this,"")};this._listenersMappers.push({obj:e,method:t,callback:l}),this._baseProperty.subscribe(e,l)}unsubscribe(e,t){const l=(0,n.ensureDefined)(this._listenersMappers.find((l=>l.obj===e&&l.method===t))?.callback);this._baseProperty.unsubscribe(e,l)}unsubscribeAll(e){this._baseProperty.unsubscribeAll(e)}}},57058:(e,t,l)=>{"use strict";l.d(t,{StudyPlotVisibleProperty:()=>i});var n=l(38486),r=l(79603);class i extends r.PropertyBase{constructor(e){super(),this._displayProperty=e,this._displayProperty.subscribe(this,this._displayPropertyValueChanged)}destroy(){this._displayProperty.unsubscribe(this,this._displayPropertyValueChanged),this._listeners.destroy()}value(){return 0!==this._displayProperty.value()}setValue(e,t){this._displayProperty.setValue(e?15:0)}setValueSilently(e){this._displayProperty.setValueSilently(e?15:0)}storeStateIfUndefined(){return!1}weakReference(){return(0,n.weakReference)(this)}ownership(){return(0,n.ownership)(this)}_displayPropertyValueChanged(){this.fireChanged()}}},51752:(e,t,l)=>{"use strict";l.d(t,{plotShapesData:()=>r});var n=l(11542);const r={shape_arrow_down:{guiName:n.t(null,void 0,l(34247)),id:"shape_arrow_down",paneRendererClass:"PaneRendererArrowDown",pineName:"shape.arrowdown",icon:"arrow_down"},shape_arrow_up:{guiName:n.t(null,void 0,l(45523)),id:"shape_arrow_up",paneRendererClass:"PaneRendererArrowUp",pineName:"shape.arrowup",icon:"arrow_up"},shape_circle:{guiName:n.t(null,void 0,l(91944)),id:"shape_circle",paneRendererClass:"PaneRendererCircleShape",pineName:"shape.circle",icon:"circle"},shape_cross:{guiName:n.t(null,void 0,l(6969)),id:"shape_cross",paneRendererClass:"PaneRendererCrossShape",pineName:"shape.cross",icon:"cross"},shape_diamond:{guiName:n.t(null,void 0,l(15179)),id:"shape_diamond",paneRendererClass:"PaneRendererDiamond",pineName:"shape.diamond",icon:"diamond"},shape_flag:{guiName:n.t(null,void 0,l(33885)),id:"shape_flag",paneRendererClass:"PaneRendererFlagShape",pineName:"shape.flag",icon:"flag"},shape_label_down:{guiName:n.t(null,void 0,l(85924)),id:"shape_label_down",paneRendererClass:"PaneRendererLabelDown",pineName:"shape.labeldown",icon:"label_down"},shape_label_up:{
guiName:n.t(null,void 0,l(49857)),id:"shape_label_up",paneRendererClass:"PaneRendererLabelUp",pineName:"shape.labelup",icon:"label_up"},shape_square:{guiName:n.t(null,void 0,l(66205)),id:"shape_square",paneRendererClass:"PaneRendererSquare",pineName:"shape.square",icon:"square"},shape_triangle_down:{guiName:n.t(null,void 0,l(76152)),id:"shape_triangle_down",paneRendererClass:"PaneRendererTriangleApexDown",pineName:"shape.triangledown",icon:"triangle_down"},shape_triangle_up:{guiName:n.t(null,void 0,l(21236)),id:"shape_triangle_up",paneRendererClass:"PaneRendererTriangleApexUp",pineName:"shape.triangleup",icon:"triangle_up"},shape_xcross:{guiName:n.t(null,void 0,l(11316)),id:"shape_xcross",paneRendererClass:"PaneRendererXCross",pineName:"shape.xcross",icon:"x_cross"}}},47531:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="m4.67 7.38.66-.76L9 9.84l3.67-3.22.66.76L9 11.16 4.67 7.38Z"/></svg>'},63509:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M3.57 7.85 9 12.62l5.43-4.77-1.32-1.5L9 9.95l-4.11-3.6-1.32 1.5Z"/></svg>'},68874: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 18.41-6.7-6.7 1.4-1.42 5.3 5.3 5.3-5.3 1.4 1.41-6.7 6.71Z"/></svg>'},69151:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M14 21l7.424-6.114a.5.5 0 0 0-.318-.886H18.5V7h-9v7H6.894a.5.5 0 0 0-.318.886L14 21z"/></svg>'},67211:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M14 7l7.424 6.114a.5.5 0 0 1-.318.886H18.5v7h-9v-7H6.894a.5.5 0 0 1-.318-.886L14 7z"/></svg>'},83786:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><circle stroke="currentColor" cx="14" cy="14" r="6.5"/></svg>'},50858:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path stroke="currentColor" d="M9 14.5h11M14.5 20V9"/></svg>'},13201:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M14.354 6.646L14 6.293l-.354.353-7 7-.353.354.353.354 7 7 .354.353.354-.353 7-7 .353-.354-.353-.354-7-7z"/></svg>'},59058:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M8.5 22v-5.5m0 0v-8L12 7l4 2.5 3.5-1v8l-3.5 1-4-2.5-3.5 1.5z"/></svg>'},8537:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M11 8.5h-.5v9.707l.146.147 3 3 .354.353.354-.353 3-3 .146-.147V8.5H11z"/></svg>'},2309:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M11 18.5h-.5V8.793l.146-.147 3-3L14 5.293l.354.353 3 3 .146.147V18.5H11z"/></svg>'},78240:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M7.5 7.5h13v13h-13z"/></svg>'},41683:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M19.424 11.265l.478-.765H8.098l.478.765 5 8 .424.678.424-.678 5-8z"/></svg>'},63798:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M19.424 16.735l.478.765H8.098l.478-.765 5-8L14 8.057l.424.678 5 8z"/></svg>'},23223:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path stroke="currentColor" d="M9 9l11 11M9 20L20 9"/></svg>'},93976:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M13 11.5l-1.915-1.532a1 1 0 0 0-1.198-.039l-3.96 2.772a1 1 0 0 0-.427.82V18.5a1 1 0 0 0 1 1H13m3.5-7l4.293-4.293c.63-.63 1.707-.184 1.707.707V18.5a1 1 0 0 1-1 1H16"/><path fill="currentColor" d="M14 6h1v2h-1zM14 11h1v2h-1zM14 16h1v2h-1zM14 21h1v2h-1z"/></svg>'},91512:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M5.5 13.52v4.98a1 1 0 0 0 1 1h15a1 1 0 0 0 1-1V8.914c0-.89-1.077-1.337-1.707-.707l-4.66 4.66a1 1 0 0 1-1.332.074l-3.716-2.973a1 1 0 0 0-1.198-.039l-3.96 2.772a1 1 0 0 0-.427.82z"/></svg>'},21579:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M10.5 13a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0zM16.5 19a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0zM22.5 8a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0z"/></svg>'},72914:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M6.5 12.5v8h3v-8h-3zM12.5 7.5v13h3v-13h-3zM18.5 15.5v5h3v-5h-3z"/></svg>'},98450:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path stroke="currentColor" d="M17 8.5h7M20.5 12V5M10 19.5h7M13.5 23v-7M3 12.5h7M6.5 16V9"/></svg>'},18621:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path stroke="currentColor" d="M4.5 20v-7m3 7V10m3 10V8m3 12V10m3 10v-8m3 8V10m3 10V8"/></svg>'},18819:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M5.5 16.5l5-5a1.414 1.414 0 0 1 2 0m11-1l-5 5a1.414 1.414 0 0 1-2 0"/><path fill="currentColor" d="M14 5h1v2h-1zM14 10h1v2h-1zM14 15h1v2h-1zM14 20h1v2h-1z"/></svg>'},94152:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M5.5 16.5l4.586-4.586a2 2 0 0 1 2.828 0l3.172 3.172a2 2 0 0 0 2.828 0L23.5 10.5"/></svg>'},46464: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 3h1v2h-1V3Zm1 5h-1v2h1V8Zm-1 5h1v2h-1v-2Zm0 5h1v2h-1v-2Zm0 5h1v2h-1v-2ZM10 5h2V4H9v18H6v-5H5v6h5V5Zm11 16h1V7h-5v10h1V8h3v13Z"/></svg>'},96298:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path fill="currentColor" fill-rule="evenodd" d="M9.8 2.7l.7-.7.7.7 2.1 2.1.2.2H18v9.5l.2.2 2.1 2.1.2.2H24v1h-3.5l-.2.2-2.1 2.1-.7.7-.7-.7-2.1-2.1-.7-.7.7-.7 2.1-2.1.2-.2V6h-3.5l-.2.2-2.1 2.1-.2.2V24H5.5v-1H10V8.5l-.2-.2-2.1-2.1-.7-.7.7-.7 2.1-2.1zM8.4 5.5l2.09 2.09 2.09-2.09-2.09-2.09L8.41 5.5zm9.09 14.09l-2.09-2.09 2.09-2.09 2.09 2.09-2.09 2.09z"/></svg>'},14643:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M5.5 17v5.5h4v-18h4v12h4v-9h4V21"/></svg>'}}]);