(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[6456],{43948:e=>{e.exports={button:"button-xRobF0EE",content:"content-xRobF0EE","icon-only":"icon-only-xRobF0EE","color-brand":"color-brand-xRobF0EE","variant-primary":"variant-primary-xRobF0EE","variant-secondary":"variant-secondary-xRobF0EE","color-gray":"color-gray-xRobF0EE","color-green":"color-green-xRobF0EE","color-red":"color-red-xRobF0EE","size-xsmall":"size-xsmall-xRobF0EE","size-small":"size-small-xRobF0EE","size-medium":"size-medium-xRobF0EE","size-large":"size-large-xRobF0EE","size-xlarge":"size-xlarge-xRobF0EE","with-start-icon":"with-start-icon-xRobF0EE","with-end-icon":"with-end-icon-xRobF0EE","start-icon-wrap":"start-icon-wrap-xRobF0EE","end-icon-wrap":"end-icon-wrap-xRobF0EE",animated:"animated-xRobF0EE",stretch:"stretch-xRobF0EE",grouped:"grouped-xRobF0EE","adjust-position":"adjust-position-xRobF0EE","first-row":"first-row-xRobF0EE","first-col":"first-col-xRobF0EE","no-corner-top-left":"no-corner-top-left-xRobF0EE","no-corner-top-right":"no-corner-top-right-xRobF0EE","no-corner-bottom-right":"no-corner-bottom-right-xRobF0EE","no-corner-bottom-left":"no-corner-bottom-left-xRobF0EE"}},32455:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},6960:e=>{e.exports={container:"container-3n5_2-hI",inputContainer:"inputContainer-3n5_2-hI",withCancel:"withCancel-3n5_2-hI",input:"input-3n5_2-hI",icon:"icon-3n5_2-hI",cancel:"cancel-3n5_2-hI"}},93484:e=>{e.exports={wrapper:"wrapper-DggvOZTm",container:"container-DggvOZTm",tab:"tab-DggvOZTm",active:"active-DggvOZTm",title:"title-DggvOZTm",icon:"icon-DggvOZTm",titleText:"titleText-DggvOZTm",nested:"nested-DggvOZTm",isTablet:"isTablet-DggvOZTm",isMobile:"isMobile-DggvOZTm"}},38602:e=>{e.exports={title:"title-hq9up-8e",small:"small-hq9up-8e",normal:"normal-hq9up-8e",large:"large-hq9up-8e"}},89182:e=>{e.exports={container:"container-gb0TB1FN"}},77850:e=>{e.exports={title:"title-1gYObTuJ",disabled:"disabled-1gYObTuJ",icon:"icon-1gYObTuJ",locked:"locked-1gYObTuJ",open:"open-1gYObTuJ",actionIcon:"actionIcon-1gYObTuJ",selected:"selected-1gYObTuJ",codeIcon:"codeIcon-1gYObTuJ"}},53234:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",container:"container-3Ywm3-oo",selected:"selected-3Ywm3-oo",disabled:"disabled-3Ywm3-oo",favorite:"favorite-3Ywm3-oo",actions:"actions-3Ywm3-oo",highlighted:"highlighted-3Ywm3-oo",light:"light-3Ywm3-oo","highlight-animation-theme-light":"highlight-animation-theme-light-3Ywm3-oo",dark:"dark-3Ywm3-oo","highlight-animation-theme-dark":"highlight-animation-theme-dark-3Ywm3-oo",badge:"badge-3Ywm3-oo",main:"main-3Ywm3-oo",paddingLeft:"paddingLeft-3Ywm3-oo",isActive:"isActive-3Ywm3-oo",author:"author-3Ywm3-oo",likes:"likes-3Ywm3-oo"}},88160:e=>{e.exports={container:"container-12vIMEmh"}},44809:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",dialog:"dialog-3kc5LZDR",
dialogLibrary:"dialogLibrary-3kc5LZDR",contentContainer:"contentContainer-3kc5LZDR",listContainer:"listContainer-3kc5LZDR",scroll:"scroll-3kc5LZDR",sidebarContainer:"sidebarContainer-3kc5LZDR",noContentBlock:"noContentBlock-3kc5LZDR",tabWithHint:"tabWithHint-3kc5LZDR",solution:"solution-3kc5LZDR"}},1386:e=>{e.exports={container:"container-39xfFXyr",image:"image-39xfFXyr",title:"title-39xfFXyr",description:"description-39xfFXyr",button:"button-39xfFXyr"}},69560:e=>{e.exports={favorite:"favorite-I_fAY9V2",disabled:"disabled-I_fAY9V2",active:"active-I_fAY9V2",checked:"checked-I_fAY9V2"}},75695:e=>{e.exports={highlighted:"highlighted-1Qud56dI"}},80511:(e,t,n)=>{"use strict";n.d(t,{Button:()=>E});var i=n(67294),r=n(94184),o=n(48413),a=n(49775),s=n(43948),l=n.n(s);function c(e){const{color:t="brand",size:n="medium",variant:i="primary",stretch:a=!1,icon:s,startIcon:c,endIcon:d,iconOnly:u=!1,className:h,isGrouped:m,cellState:p,disablePositionAdjustment:g=!1}=e,v=function(e){let t="";return 0!==e&&(1&e&&(t=r(t,l()["no-corner-top-left"])),2&e&&(t=r(t,l()["no-corner-top-right"])),4&e&&(t=r(t,l()["no-corner-bottom-right"])),8&e&&(t=r(t,l()["no-corner-bottom-left"]))),t}((0,o.getGroupCellRemoveRoundBorders)(p));return r(h,l().button,l()["size-"+n],l()["color-"+t],l()["variant-"+i],a&&l().stretch,(s||c)&&l()["with-start-icon"],d&&l()["with-end-icon"],u&&l()["icon-only"],v,m&&l().grouped,m&&!g&&l()["adjust-position"],m&&p.isTop&&l()["first-row"],m&&p.isLeft&&l()["first-col"])}function d(e){const{size:t,startIcon:n,icon:r,iconOnly:o,children:s,endIcon:c}=e,d=null!=n?n:r;return i.createElement(i.Fragment,null,d&&"xsmall"!==t&&i.createElement(a.Icon,{icon:d,className:l()["start-icon-wrap"]}),s&&i.createElement("span",{className:l().content},s),c&&!o&&"xsmall"!==t&&i.createElement(a.Icon,{icon:c,className:l()["end-icon-wrap"]}))}var u=n(94618),h=n(74818);function m(e){const{className:t,color:n,variant:i,size:r,stretch:o,animated:a,icon:s,iconOnly:l,startIcon:c,endIcon:d,...u}=e;return{...u,...(0,h.filterDataProps)(e),...(0,h.filterAriaProps)(e)}}function p(e){const{reference:t,...n}=e,{isGrouped:r,cellState:o,disablePositionAdjustment:a}=(0,i.useContext)(u.ControlGroupContext),s=c({...n,isGrouped:r,cellState:o,disablePositionAdjustment:a});return i.createElement("button",{...m(n),className:s,ref:t},i.createElement(d,{...n}))}function g(e="default"){switch(e){case"default":return"primary";case"stroke":return"secondary"}}function v(e="primary"){switch(e){case"primary":return"brand";case"success":return"green";case"default":return"gray";case"danger":return"red"}}function f(e="m"){switch(e){case"s":return"xsmall";case"m":return"small";case"l":return"large"}}function b(e){const{intent:t,size:n,appearance:i,useFullWidth:r,icon:o,...a}=e;return{...a,color:v(t),size:f(n),variant:g(i),stretch:r,startIcon:o}}function E(e){return i.createElement(p,{...b(e)})}},94618:(e,t,n)=>{"use strict";n.d(t,{ControlGroupContext:()=>i});const i=n(67294).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},48413:(e,t,n)=>{
"use strict";function i(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}n.d(t,{getGroupCellRemoveRoundBorders:()=>i})},74818:(e,t,n)=>{"use strict";function i(e){return o(e,a)}function r(e){return o(e,s)}function o(e,t){const n=Object.entries(e).filter(t),i={};for(const[e,t]of n)i[e]=t;return i}function a(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function s(e){return 0===e[0].indexOf("aria-")}n.d(t,{filterDataProps:()=>i,filterAriaProps:()=>r,filterProps:()=>o,isDataAttribute:()=>a,isAriaAttribute:()=>s})},59726:(e,t,n)=>{"use strict";function i(e,t,n,i,r){function o(r){if(e>r.timeStamp)return;const o=r.target;void 0!==n&&null!==t&&null!==o&&o.ownerDocument===i&&(t.contains(o)||n(r))}return r.click&&i.addEventListener("click",o,!1),r.mouseDown&&i.addEventListener("mousedown",o,!1),r.touchEnd&&i.addEventListener("touchend",o,!1),r.touchStart&&i.addEventListener("touchstart",o,!1),()=>{i.removeEventListener("click",o,!1),i.removeEventListener("mousedown",o,!1),i.removeEventListener("touchend",o,!1),i.removeEventListener("touchstart",o,!1)}}n.d(t,{addOutsideEventListener:()=>i})},72923:(e,t,n)=>{"use strict";n.d(t,{DialogBreakpoints:()=>r});var i=n(32455);const r={SmallHeight:i["small-height-breakpoint"],TabletSmall:i["tablet-small-breakpoint"],TabletNormal:i["tablet-normal-breakpoint"]}},40834:(e,t,n)=>{"use strict";n.d(t,{DialogSearch:()=>d});var i=n(67294),r=n(94184),o=n.n(r),a=n(79881),s=n(49775),l=n(2796),c=n(6960);function d(e){const{children:t,renderInput:n,onCancel:r,...d}=e;return i.createElement("div",{className:c.container},i.createElement("div",{className:o()(c.inputContainer,r&&c.withCancel)},n||i.createElement(u,{...d})),t,i.createElement(s.Icon,{className:c.icon,icon:l}),r&&i.createElement("div",{className:c.cancel,onClick:r},(0,a.t)("Cancel")))}function u(e){const{className:t,reference:n,value:r,onChange:a,onFocus:s,onBlur:l,onKeyDown:d,onSelect:u,placeholder:h,...m}=e;return i.createElement("input",{...m,ref:n,type:"text",className:o()(t,c.input),autoComplete:"off","data-role":"search",placeholder:h,value:r,onChange:a,onFocus:s,onBlur:l,onSelect:u,onKeyDown:d})}},45745:(e,t,n)=>{"use strict";n.d(t,{DialogSidebarContainer:()=>d,DialogSidebarWrapper:()=>u,DialogSidebarItem:()=>h});var i=n(67294),r=n(94184),o=n.n(r),a=n(49775),s=n(5186),l=n(93484);function c(e){return{isMobile:"mobile"===e,isTablet:"tablet"===e}}function d(e){const{mode:t,className:n,...r}=e,{isMobile:a,isTablet:s}=c(t),d=o()(l.container,s&&l.isTablet,a&&l.isMobile,n);return i.createElement("div",{...r,className:d,"data-role":"dialog-sidebar"})}function u(e){return i.createElement("div",{className:l.wrapper,...e})}function h(e){const{mode:t,title:n,icon:r,isActive:d,onClick:u,...h}=e,{isMobile:m,isTablet:p}=c(t);return i.createElement("div",{...h,className:o()(l.tab,p&&l.isTablet,m&&l.isMobile,d&&l.active),onClick:u},i.createElement(a.Icon,{className:l.icon,icon:r}),!p&&i.createElement("span",{className:l.title
},i.createElement("span",{className:l.titleText},n),m&&i.createElement(a.Icon,{className:l.nested,icon:s})))}},36108:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IndicatorsLibraryContainer:()=>U});var i=n(67294),r=n(73935),o=n(79881),a=n(15521),s=n(85062),l=n.n(s),c=n(27490),d=n(67945);function u(e,t){const n=e.title.toLowerCase(),i=t.title.toLowerCase();return n<i?-1:n>i?1:0}const h={earning:new RegExp("EPS"),earnings:new RegExp("EPS"),"trailing twelve months":new RegExp("TTM")};function m(e){var t;const{id:n,description:i,shortDescription:r,description_localized:a,is_hidden_study:s,version:d,extra:u}=e,h=c.enabled("graying_disabled_tools_enabled")&&(null===(t=window.ChartApiInstance)||void 0===t?void 0:t.studiesAccessController.isToolGrayed(i)),m=(null==u?void 0:u.isChartPattern)||n.includes("CP@tv-basicstudies")?"chart-patterns":l().getPackageName(n);return{id:n,title:a||(0,o.t)(i,{context:"study"}),shortDescription:r,shortTitle:r,isStrategy:l().isScriptStrategy(e),isHidden:s,isNew:null==u?void 0:u.isNew,isUpdated:null==u?void 0:u.isUpdated,isBeta:null==u?void 0:u.isBeta,isFundamental:!1,studyData:{id:n,version:d,descriptor:{type:"java",studyId:e.id},packageName:m},isGrayed:h}}var p=n(94184),g=n.n(p),v=n(25659),f=n(93590),b=n(43367),E=n(40834),y=n(45745),x=n(88160);function _(e){const{reference:t,className:n,...r}=e;return i.createElement("div",{ref:t,className:g()(x.container,n),...r,"data-role":"dialog-content"})}var w=n(77850);function C(e){const{children:t,className:n,disabled:r}=e;return i.createElement("span",{className:g()(w.title,r&&w.disabled,n)},t)}const R=i.createContext(null);var k=n(11945),S=n(27278),N=n(14829),I=n(71577),F=n(65043),D=n(42998),T=n(53234);function L(e){const t=(0,i.useContext)(R),{style:n,layoutMode:r,item:a,query:s,regExpRules:l,isBeta:c,isNew:d,isUpdated:u,isSelected:h,isHighlighted:m,reference:p,onClick:v,renderActions:f}=e,{isFavorite:b,isLocked:E,public:y,editorsPick:x}=a,_=void 0!==b,w=P(v,a),D=(0,i.useCallback)(e=>e.stopPropagation(),[]),L=(null==t?void 0:t.toggleFavorite)?P(t.toggleFavorite,a):void 0,O=(0,S.useWatchedValueReadonly)({watchedValue:N.watchedTheme})===I.StdTheme.Dark?T.dark:T.light,B=g()(T.container,a.isGrayed&&T.disabled,h&&T.selected,m&&T.highlighted,m&&O);return i.createElement("div",{ref:p,className:B,onClick:w,style:n,"data-role":"list-item","data-disabled":a.isGrayed,"data-title":a.title,"data-id":a.id},i.createElement("div",{className:g()(T.main,!_&&T.paddingLeft)},_&&i.createElement(F.FavoriteButton,{className:g()(T.favorite,b&&T.isActive),isFilled:b,onClick:L}),i.createElement(C,{disabled:a.isGrayed},i.createElement(k.HighlightedText,{queryString:s,rules:l,text:a.title})),!1,c&&i.createElement(BadgeIndicator,{type:"beta",className:T.badge}),d&&i.createElement(BadgeIndicator,{type:"new",className:T.badge}),u&&i.createElement(BadgeIndicator,{type:"updated",className:T.badge}),x&&i.createElement(BadgeIndicator,{type:"ep",className:T.badge,tooltip:(0,o.t)("Editors' picks")})),y&&i.createElement("a",{href:y.authorLink,className:T.author,target:"_blank",onClick:D
},y.authorName),"mobile"!==r&&y&&i.createElement("span",{className:T.likes},y.likesCount),!1)}function P(e,t){return n=>{const i=0===(0,D.modifiersFromEvent)(n)&&0===n.button;!n.defaultPrevented&&e&&i&&(n.preventDefault(),e(t))}}var O=n(38602);function B(e){const{title:t,type:n,className:r}=e;return i.createElement("h3",{className:g()(O.title,"Small"===n&&O.small,"Normal"===n&&O.normal,"Large"===n&&O.large,r)},t)}var z=n(89182);function M(e){const{style:t,children:n}=e;return i.createElement("div",{style:t,className:z.container},n)}var Y=n(49775),A=n(80511),q=n(1386);function Z(e){const{className:t,icon:n,title:r,description:o,buttonText:a,buttonAction:s}=e;return i.createElement("div",{className:g()(q.container,t)},n&&i.createElement(Y.Icon,{icon:n,className:q.image}),r&&i.createElement("h3",{className:q.title},r),o&&i.createElement("p",{className:q.description},o),a&&s&&i.createElement(A.Button,{onClick:s,className:q.button},a))}function H(e){const[t,n]=(0,i.useState)(null);function r(e){return e.findIndex(e=>(null==t?void 0:t.id)===e.id)}return[t,n,function(){n(function(){var n;const i=r(e),o=i===e.length-1;return null===t||-1===i?null!==(n=e[0])&&void 0!==n?n:null:o?e[i]:e[i+1]}())},function(){n(function(){var n;const i=r(e);return null===t||0===i||-1===i?null!==(n=e[0])&&void 0!==n?n:null:e[i-1]}())}]}var W=n(65802),V=n(44809);function G(e){const{reference:t,data:n,isOpened:r,onClose:a,applyStudy:s}=e,[l,c]=(0,i.useState)(""),d=(0,i.useMemo)(()=>(0,W.createRegExpList)(l,h),[l]),u=(0,i.useMemo)(()=>l?(0,W.rankedSearch)({data:n,rules:d,queryString:l,primaryKey:"shortDescription",secondaryKey:"title",optionalPrimaryKey:"shortTitle"}):n,[l,d,n]),{highlightedItem:m,selectedItem:p,selectedNodeReference:x,scrollContainerRef:w,searchInputRef:C,onClickStudy:R,handleKeyDown:k}=function(e,t,n,r){let o=0;const[a,s]=(0,i.useState)(null),l=(0,i.useRef)(null),c=(0,i.useRef)(null),[d,u,h,m]=H(t),p=(0,i.useRef)(null);return(0,i.useEffect)(()=>{e?g(0):u(null)},[e]),(0,i.useEffect)(()=>{void 0!==r&&(g(0),u(null))},[r]),(0,i.useEffect)(()=>(a&&(o=setTimeout(()=>{s(null)},1500)),()=>{clearInterval(o)}),[a]),{highlightedItem:a,scrollContainerRef:l,selectedNodeReference:c,selectedItem:d,searchInputRef:p,onClickStudy:function(e){if(!n)return;n(e),u(e),s(e)},handleKeyDown:function(e){const[t,i]=function(e,t){if(null===e.current||null===t.current)return[0,0];const n=e.current.getBoundingClientRect(),i=t.current.getBoundingClientRect(),{height:r}=n,o=n.top-i.top,a=n.bottom-i.bottom+r<0?0:r,s=o-r>0?0:r,{scrollTop:l}=t.current;return[l-s,l+a]}(c,l);40===(0,D.hashFromEvent)(e)&&(e.preventDefault(),h(),g(i));38===(0,D.hashFromEvent)(e)&&(e.preventDefault(),m(),g(t));if(13===(0,D.hashFromEvent)(e)&&d){if(!n)return;n(d),s(d)}}};function g(e){null!==l.current&&l.current.scrollTo&&l.current.scrollTo(0,e)}}(r,u,s),S=""===l&&!u.length;return(0,i.useEffect)(()=>{var e;r||c(""),b.CheckMobile.any()||null===(e=C.current)||void 0===e||e.focus()},[r]),i.createElement(f.AdaptivePopupDialog,{isOpened:r,onClose:a,onClickOutside:a,
className:g()(V.dialogLibrary),render:function(){return i.createElement(i.Fragment,null,i.createElement(E.DialogSearch,{reference:C,placeholder:(0,o.t)("Search"),onChange:N,onFocus:I}),i.createElement(y.DialogSidebarWrapper,null,i.createElement(_,{reference:w,className:V.scroll},S?i.createElement(v.Spinner,null):u.length?i.createElement(i.Fragment,null,i.createElement(M,null,i.createElement(B,{title:(0,o.t)("Script name")})),u.map(e=>{const t=(null==p?void 0:p.id)===e.id;return i.createElement(L,{key:e.id,item:e,onClick:()=>R(e),query:l,regExpRules:d,reference:t?x:void 0,isSelected:(null==p?void 0:p.id)===e.id,isHighlighted:(null==m?void 0:m.id)===e.id})})):i.createElement(Z,{className:V.noContentBlock,description:(0,o.t)("No indicators matched your criteria.")}))))},title:(0,o.t)("Indicators"),dataName:"indicators-dialog",onKeyDown:k,ref:t});function N(e){c(e.target.value)}function I(){var e;l.length>0&&(null===(e=C.current)||void 0===e||e.select())}}var j=n(18437),J=n(32856),K=n.n(J);class U extends class{constructor(e){this._searchInputRef=i.createRef(),this._dialog=i.createRef(),this._visibility=new(K())(!1),this._container=document.createElement("div"),this._isForceRender=!1,this._parentSource=null,this._isDestroyed=!1,this._symbolInfo=null,this._deepFundamentalsHistoryNotificationHasBeenShown=!1,this._showDeepFundamentalsHistoryNotification=()=>{},this._chartWidgetCollection=e}isDestroyed(){return this._isDestroyed}visible(){return this._visibility.readonly()}resetAllStudies(){}updateFavorites(){}open(e){this._parentSource=null!=e?e:null,this._updateSymbolInfo(),this._setProps({isOpened:!0}),this._visibility.setValue(!0),j.emit("indicators_dialog")}show(){this.open()}hide(){this._parentSource=null,this._setProps({isOpened:!1}),this._visibility.setValue(!1)}destroy(){this._isDestroyed=!0,r.unmountComponentAtNode(this._container)}getSymbolInfo(){return this._symbolInfo}_shouldPreventRender(){return this._isDestroyed||!this._isForceRender&&!this._getProps().value().isOpened}_getRenderData(){return{props:this._getProps().value(),container:this._getContainer()}}_applyStudy(e,t){var n,i;e.isGrayed?j.emit("onGrayedObjectClicked",{type:"study",name:e.shortDescription}):(b.CheckMobile.any()||null===(n=this._searchInputRef.current)||void 0===n||n.select(),async function(e,t,n,i,r){const o=e.activeChartWidget.value();if(!o)return null;const{studyData:s}=t;if(!s)return Promise.resolve(null);const l=s.descriptor;if("java"===l.type){const e=(0,d.tryFindStudyLineToolNameByStudyId)(l.studyId);if(null!==e)return a.tool.setValue(e),null}return o.insertStudy(s.descriptor,n,t.shortDescription)}(this._chartWidgetCollection,e,null!==(i=this._parentSource)&&void 0!==i?i:void 0,0,this._symbol).then(()=>{var e;b.CheckMobile.any()||(null===document.activeElement||document.activeElement===document.body||null!==this._dialog.current&&this._dialog.current.contains(document.activeElement))&&(null===(e=this._searchInputRef.current)||void 0===e||e.focus())}))}_setProps(e){const t=this._getProps().value(),{isOpened:n}=t
;this._isForceRender=n&&"isOpened"in e&&!e.isOpened;const i={...t,...e};this._getProps().setValue(i)}_requestBuiltInJavaStudies(){return this._chartWidgetCollection.activeChartWidget.value().metaInfoRepository().findAllJavaStudies()}_focus(){var e;this._getProps().value().isOpened&&(null===(e=this._dialog.current)||void 0===e||e.focus())}_getContainer(){return this._container}_getDialog(){return this._dialog}_updateSymbolInfo(){}}{constructor(e,t){super(e),this._studies={},this._options={onWidget:!1},this._getStudies=e=>this._studies[e]||[],t&&(this._options=t),this._props=new(K())({data:[],applyStudy:this._applyStudy.bind(this),isOpened:!1,reference:this._getDialog(),onClose:this.hide.bind(this)}),this._getProps().subscribe(this._render.bind(this)),this._init()}_getProps(){return this._props}async _init(){const e=await this._requestBuiltInJavaStudies();this._studies=function(e){const t={};return e.forEach(e=>{const{studyData:n}=e;if(!n)return;const{packageName:i}=n;i in t?t[i].push(e):t[i]=[e]}),t}(function(e,t=!0){return e.filter(e=>{const n=!!t||!function(e){return e.isStrategy}(e);return!e.isHidden&&n})}(e.map(m)));const t=[...this._getStudies("tv-basicstudies"),...this._getStudies("Script$STD"),...this._getStudies("tv-volumebyprice")].filter(e=>!e.isStrategy).sort(u);this._setProps({data:t})}_render(){if(this._shouldPreventRender())return;const{props:e,container:t}=this._getRenderData();r.render(i.createElement(G,{...e}),t)}}},65043:(e,t,n)=>{"use strict";n.d(t,{FavoriteButton:()=>u});var i=n(79881),r=n(67294),o=n(94184),a=n(49775),s=n(72579),l=n(23204),c=n(69560);const d={add:(0,i.t)("Add to favorites"),remove:(0,i.t)("Remove from favorites")};function u(e){const{className:t,isFilled:n,isActive:i,onClick:u,...h}=e;return r.createElement(a.Icon,{...h,className:o(c.favorite,"apply-common-tooltip",n&&c.checked,i&&c.active,t),icon:n?s:l,onClick:u,title:n?d.remove:d.add})}},65802:(e,t,n)=>{"use strict";n.d(t,{rankedSearch:()=>r,createRegExpList:()=>o,getHighlightedChars:()=>a});var i=n(47903);function r(e){const{data:t,rules:n,queryString:r,isPreventedFromFiltering:o,primaryKey:a,secondaryKey:s=a,optionalPrimaryKey:l}=e;return t.map(e=>{const t=l&&e[l]?e[l]:e[a],o=e[s];let c,d=0;return n.forEach(e=>{var n,a,s,l;const{re:u,fullMatch:h}=e;return u.lastIndex=0,t&&t.toLowerCase()===r.toLowerCase()?(d=3,void(c=null===(n=t.match(h))||void 0===n?void 0:n.index)):(0,i.isString)(t)&&h.test(t)?(d=2,void(c=null===(a=t.match(h))||void 0===a?void 0:a.index)):(0,i.isString)(o)&&h.test(o)?(d=1,void(c=null===(s=o.match(h))||void 0===s?void 0:s.index)):void((0,i.isString)(o)&&u.test(o)&&(d=1,c=null===(l=o.match(u))||void 0===l?void 0:l.index))}),{matchPriority:d,matchIndex:c,item:e}}).filter(e=>o||e.matchPriority).sort((e,t)=>{if(e.matchPriority<t.matchPriority)return 1;if(e.matchPriority>t.matchPriority)return-1;if(e.matchPriority===t.matchPriority){if(void 0===e.matchIndex||void 0===t.matchIndex)return 0;if(e.matchIndex>t.matchIndex)return 1;if(e.matchIndex<t.matchIndex)return-1}return 0}).map(({item:e})=>e)}function o(e,t){
const n=[],i=e.toLowerCase(),r=e.split("").map((e,t)=>`(${0!==t?"[/\\s-]"+s(e):s(e)})`).join("(.*?)")+"(.*)";return n.push({fullMatch:new RegExp(`(${s(e)})`,"i"),re:new RegExp("^"+r,"i"),reserveRe:new RegExp(r,"i"),fuzzyHighlight:!0}),t&&t.hasOwnProperty(i)&&n.push({fullMatch:t[i],re:t[i],fuzzyHighlight:!1}),n}function a(e,t,n){const i=[];return e&&n?(n.forEach(e=>{const{fullMatch:n,re:r,reserveRe:o}=e;n.lastIndex=0,r.lastIndex=0;const a=n.exec(t),s=a||r.exec(t)||o&&o.exec(t);if(e.fuzzyHighlight=!a,s)if(e.fuzzyHighlight){let e=s.index;for(let t=1;t<s.length;t++){const n=s[t],r=s[t].length;if(t%2){const t=n.startsWith(" ")||n.startsWith("/")||n.startsWith("-");i[t?e+1:e]=!0}e+=r}}else for(let e=0;e<s[0].length;e++)i[s.index+e]=!0}),i):i}function s(e){return e.replace(/[!-/[-^{-}]/g,"\\$&")}},11945:(e,t,n)=>{"use strict";n.d(t,{HighlightedText:()=>s});var i=n(67294),r=n(94184),o=n(65802),a=n(75695);function s(e){const{queryString:t,rules:n,text:s,className:l}=e,c=(0,i.useMemo)(()=>(0,o.getHighlightedChars)(t,s,n),[t,n,s]);return i.createElement(i.Fragment,null,c.length?s.split("").map((e,t)=>i.createElement(i.Fragment,{key:t},c[t]?i.createElement("span",{className:r(a.highlighted,l)},e):i.createElement("span",null,e))):s)}},27278:(e,t,n)=>{"use strict";n.d(t,{useWatchedValueReadonly:()=>r});var i=n(67294);const r=(e,t=!1)=>{const n="watchedValue"in e?e.watchedValue:void 0,r="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[o,a]=(0,i.useState)(n?n.value():r);return(t?i.useLayoutEffect:i.useEffect)(()=>{if(n){a(n.value());const e=e=>a(e);return n.subscribe(e),()=>n.unsubscribe(e)}return()=>{}},[n]),o}},68521:(e,t,n)=>{"use strict";n.d(t,{MatchMedia:()=>r});var i=n(67294);class r extends i.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},25659:(e,t,n)=>{"use strict";n.d(t,{Spinner:()=>a});var i=n(67294),r=n(94184),o=n(98852);n(11739);function a(e){const t=r(e.className,"tv-spinner","tv-spinner--shown","tv-spinner--size_"+o.spinnerSizeMap[e.size||o.DEFAULT_SIZE]);return i.createElement("div",{className:t,style:e.style,role:"progressbar"},i.createElement("div",{className:"tv-spinner__spinner-layer"},i.createElement("div",{className:"tv-spinner__background tv-spinner__width_element"}),i.createElement("div",{className:"tv-spinner__circle-clipper tv-spinner__width_element tv-spinner__circle-clipper--left"}),i.createElement("div",{className:"tv-spinner__circle-clipper tv-spinner__width_element tv-spinner__circle-clipper--right"})))}},5186: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" strokeWidth="1.3" d="M12 9l5 5-5 5"/></svg>'},2796:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none"><path stroke="currentColor" d="M12.4 12.5a7 7 0 1 0-4.9 2 7 7 0 0 0 4.9-2zm0 0l5.101 5"/></svg>'},72579:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path fill="currentColor" d="M9 1l2.35 4.76 5.26.77-3.8 3.7.9 5.24L9 13l-4.7 2.47.9-5.23-3.8-3.71 5.25-.77L9 1z"/></svg>'},23204:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M9 2.13l1.903 3.855.116.236.26.038 4.255.618-3.079 3.001-.188.184.044.259.727 4.237-3.805-2L9 12.434l-.233.122-3.805 2.001.727-4.237.044-.26-.188-.183-3.079-3.001 4.255-.618.26-.038.116-.236L9 2.13z"/></svg>'}}]);