Fixes tradingview/charting_library#60 Fixes tradingview/charting_library#65 Fixes tradingview/charting_library#70 Fixes tradingview/charting_library#71 Fixes tradingview/charting_library#75 Fixes tradingview/charting_library#76 Fixes tradingview/charting_library#78 Fixes tradingview/charting_library#79 Fixes tradingview/charting_library#81 Fixes tradingview/charting_library#82 Fixes tradingview/charting_library#84 Fixes tradingview/charting_library#86 Fixes tradingview/charting_library#89 Fixes tradingview/charting_library#90 Fixes tradingview/charting_library#91 Fixes tradingview/charting_library#92 Fixes tradingview/charting_library#94 Fixes tradingview/charting_library#99 Fixes tradingview/charting_library#100 Fixes tradingview/charting_library#101 Fixes tradingview/charting_library#102 Fixes tradingview/charting_library#103 Fixes tradingview/charting_library#1995 Fixes tradingview/charting_library#5726 Fixes tradingview/charting_library#6025 Fixes tradingview/charting_library#6406 Fixes tradingview/charting_library#6636 Fixes tradingview/charting_library#6767 Fixes tradingview/charting_library#6775 Fixes tradingview/charting_library#6783 Fixes tradingview/charting_library#6864 Fixes tradingview/charting_library#6926 Fixes tradingview/charting_library#7060 Fixes tradingview/charting_library#7169 Fixes tradingview/charting_library#7307
5 lines
14 KiB
JavaScript
5 lines
14 KiB
JavaScript
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[92],{97754:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},6189:e=>{e.exports={"nav-button":"nav-button-iiT1LQPc",link:"link-iiT1LQPc",background:"background-iiT1LQPc",icon:"icon-iiT1LQPc","flip-icon":"flip-icon-iiT1LQPc","size-large":"size-large-iiT1LQPc","preserve-paddings":"preserve-paddings-iiT1LQPc","size-medium":"size-medium-iiT1LQPc","size-small":"size-small-iiT1LQPc","size-xsmall":"size-xsmall-iiT1LQPc","size-xxsmall":"size-xxsmall-iiT1LQPc","visually-hidden":"visually-hidden-iiT1LQPc"}},38802:e=>{e.exports={container:"container-Layw3R3g","container-danger":"container-danger-Layw3R3g",icon:"icon-Layw3R3g",header:"header-Layw3R3g","container-warning":"container-warning-Layw3R3g","container-success":"container-success-Layw3R3g","container-default":"container-default-Layw3R3g","text-wrap":"text-wrap-Layw3R3g","close-button":"close-button-Layw3R3g",informerBody:"informerBody-Layw3R3g",mainProblem:"mainProblem-Layw3R3g","header-inline":"header-inline-Layw3R3g","header-new-line":"header-new-line-Layw3R3g"}},36719:e=>{e.exports={container:"container-yBTUFQ8v",bottomPadding:"bottomPadding-yBTUFQ8v",centerElement:"centerElement-yBTUFQ8v",notice:"notice-yBTUFQ8v","notice-showed":"notice-showed-yBTUFQ8v"}},64388:(e,t,r)=>{"use strict";r.d(t,{NavButton:()=>u});var n=r(50959),o=r(97754),i=r(9745),a=r(6189);function s(e){const{size:t="large",preservePaddings:r,isLink:n,flipIconOnRtl:i,className:s}=e;return o(a["nav-button"],a[`size-${t}`],r&&a["preserve-paddings"],i&&a["flip-icon"],n&&a.link,s)}function c(e){const{children:t,icon:r}=e;return n.createElement(n.Fragment,null,n.createElement("span",{className:a.background}),n.createElement(i.Icon,{icon:r,className:a.icon,"aria-hidden":!0}),t&&n.createElement("span",{className:a["visually-hidden"]},t))}const u=(0,n.forwardRef)(((e,t)=>{const{children:r,icon:o,type:i="button",preservePaddings:a,flipIconOnRtl:u,size:l,...f}=e;return n.createElement("button",{...f,className:s(e),ref:t,type:i},n.createElement(c,{icon:o},r))}));u.displayName="NavButton";var l=r(71687),f=r(53017);(0,n.forwardRef)(((e,t)=>{const{children:r,icon:o,renderComponent:i,...a}=e,u=null!=i?i:l.CustomComponentDefaultLink;return n.createElement(u,{...a,className:s({...e,isLink:!0}),reference:(0,f.isomorphicRef)(t)},n.createElement(c,{icon:o},r))})).displayName="NavAnchorButton"},71687:(e,t,r)=>{"use strict";r.d(t,{CustomComponentDefaultLink:()=>i});var n=r(50959);function o(e){const{reference:t,...r}=e;return{...r,ref:t}}function i(e){return n.createElement("a",{...o(e)})}n.PureComponent},9745:(e,t,r)=>{"use strict";r.d(t,{Icon:()=>o})
|
|
;var n=r(50959);const o=n.forwardRef(((e,t)=>{const{icon:r="",...o}=e;return n.createElement("span",{...o,ref:t,dangerouslySetInnerHTML:{__html:r}})}))},90186:(e,t,r)=>{"use strict";function n(e){return i(e,a)}function o(e){return i(e,s)}function i(e,t){const r=Object.entries(e).filter(t),n={};for(const[e,t]of r)n[e]=t;return n}function a(e){const[t,r]=e;return 0===t.indexOf("data-")&&"string"==typeof r}function s(e){return 0===e[0].indexOf("aria-")}r.d(t,{filterDataProps:()=>n,filterAriaProps:()=>o,filterProps:()=>i,isDataAttribute:()=>a,isAriaAttribute:()=>s})},53017:(e,t,r)=>{"use strict";function n(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function o(e){return n([e])}r.d(t,{mergeRefs:()=>n,isomorphicRef:()=>o})},81573:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ChartScreenshotHintRenderer:()=>R});var n=r(50959),o=r(962),i=r(4889),a=r(97754),s=r(9745),c=r(64388),u=r(17105),l=r(15130),f=r(38822),d=r(63346),p=r(34983);function m(e="large"){switch(e){case"large":return u;case"medium":default:return l;case"small":return f;case"xsmall":return d;case"xxsmall":return p}}const h=n.forwardRef(((e,t)=>n.createElement(c.NavButton,{...e,ref:t,icon:m(e.size)})));var y=r(90186),w=r(30162),v=r(27941),g=r(99084),b=r(38802),_=r.n(b);const x={danger:w,warning:w,success:g,default:v};function E(e){const{informerIntent:t,content:r,className:o,header:i,isIconShown:c=!0,isCloseButtonShown:u,icon:l,onCloseClick:f,closeButtonLabel:d="Close",headerPlacement:p="inline",children:m}=e;return n.createElement("div",{className:a(_().container,_()[`container-${t}`],o),...(0,y.filterDataProps)(e),...(0,y.filterAriaProps)(e)},n.createElement("div",{className:_().informerBody},r&&n.createElement("div",{className:_().mainProblem},c&&n.createElement(s.Icon,{className:_().icon,icon:null!=l?l:x[t]}),n.createElement("div",{className:_()["text-wrap"]},i&&n.createElement("span",{className:a(_().header,_()[`header-${p}`])},i)," ",r)),m),u&&n.createElement(h,{children:d,onClick:f,className:_()["close-button"],size:"xsmall",preservePaddings:!0}))}var k=r(36719);function P(e){const[t,r]=(0,n.useState)(!1);return(0,n.useLayoutEffect)((()=>{const e=setTimeout((()=>r(!0)),50),t=setTimeout((()=>r(!1)),2500);return()=>{clearTimeout(e),clearTimeout(t)}}),[]),n.createElement("div",{className:a(k.container,e.bottomPadding&&k.bottomPadding)},n.createElement("div",{className:k.centerElement},n.createElement(E,{content:e.text,informerIntent:"success",className:a(k.notice,t&&k["notice-showed"])})))}class R{constructor(e,t){this._showed=!1,this._wrap=document.createElement("div"),this._container=e,this._debouncedHide=(0,i.default)((()=>this.hide()),3e3),this._bottomPadding=t.bottomPadding}show(e){this._wrap&&!this._showed&&(this._showed=!0,this._container.append(this._wrap),o.render(n.createElement(P,{text:e,bottomPadding:this._bottomPadding}),this._wrap),this._debouncedHide())}hide(){this._wrap&&(this._showed=!1,o.unmountComponentAtNode(this._wrap),this._wrap.remove())}destroy(){this.hide(),delete this._wrap}}},95257:(e,t)=>{"use strict"
|
|
;var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,y={};function w(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||m}function v(){}function g(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||m}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=w.prototype;var b=g.prototype=new v;b.constructor=g,h(b,w.prototype),b.isPureReactComponent=!0;var _=Array.isArray,x=Object.prototype.hasOwnProperty,E={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function P(e,t,n){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,o)&&!k.hasOwnProperty(o)&&(i[o]=t[o]);var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){for(var u=Array(c),l=0;l<c;l++)u[l]=arguments[l+2];i.children=u}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===i[o]&&(i[o]=c[o]);return{$$typeof:r,type:e,key:a,ref:s,props:i,_owner:E.current}}function R(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var C=/\/+/g;function S(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function L(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var c=!1;if(null===e)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case r:case n:c=!0}}if(c)return a=a(c=e),e=""===i?"."+S(c,0):i,_(a)?(o="",null!=e&&(o=e.replace(C,"$&/")+"/"),L(a,t,o,"",(function(e){return e}))):null!=a&&(R(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e)),t.push(a)),1;if(c=0,i=""===i?".":i+":",_(e))for(var u=0;u<e.length;u++){var l=i+S(s=e[u],u);c+=L(s,t,o,l,a)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),u=0;!(s=e.next()).done;)c+=L(s=s.value,t,o,l=i+S(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")
|
|
;return c}function T(e,t,r){if(null==e)return e;var n=[],o=0;return L(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var $={current:null},B={transition:null},j={ReactCurrentDispatcher:$,ReactCurrentBatchConfig:B,ReactCurrentOwner:E};t.Children={map:T,forEach:function(e,t,r){T(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!R(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=w,t.Fragment=o,t.Profiler=a,t.PureComponent=g,t.StrictMode=i,t.Suspense=l,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=E.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)x.call(t,u)&&!k.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){c=Array(u);for(var l=0;l<u;l++)c[l]=arguments[l+2];o.children=c}return{$$typeof:r,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=P,t.createFactory=function(e){var t=P.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=R,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=B.transition;B.transition={};try{e()}finally{B.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return $.current.useCallback(e,t)},t.useContext=function(e){return $.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return $.current.useDeferredValue(e)},t.useEffect=function(e,t){return $.current.useEffect(e,t)},t.useId=function(){return $.current.useId()},t.useImperativeHandle=function(e,t,r){return $.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return $.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return $.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return $.current.useMemo(e,t)},t.useReducer=function(e,t,r){return $.current.useReducer(e,t,r)},t.useRef=function(e){
|
|
return $.current.useRef(e)},t.useState=function(e){return $.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return $.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return $.current.useTransition()},t.version="18.2.0"},50959:(e,t,r)=>{"use strict";e.exports=r(95257)},99084:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M9 17A8 8 0 1 0 9 1a8 8 0 0 0 0 16Zm3.87-12.15c.36.2.49.66.28 1.02l-4 7a.75.75 0 0 1-1.18.16l-3-3a.75.75 0 1 1 1.06-1.06l2.3 2.3 3.52-6.14a.75.75 0 0 1 1.02-.28Z"/></svg>'},30162:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" fill-rule="evenodd" d="M9 17A8 8 0 1 0 9 1a8 8 0 0 0 0 16ZM9 4c-.79 0-1.38.7-1.25 1.48l.67 4.03a.59.59 0 0 0 1.16 0l.67-4.03A1.27 1.27 0 0 0 9 4Zm0 8a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"/></svg>'},27941:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M9 17A8 8 0 1 0 9 1a8 8 0 0 0 0 16ZM8 6a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm1 2c.49 0 1 .59 1 1v3.01c0 .42-.51.99-1 .99s-1-.57-1-.99V9c0-.41.51-1 1-1Z"/></svg>'},17105:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path stroke="currentColor" stroke-width="1.2" d="m1.5 1.5 21 21m0-21-21 21"/></svg>'},15130:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path stroke="currentColor" stroke-width="1.2" d="m1.5 1.5 15 15m0-15-15 15"/></svg>'},38822:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" width="14" height="14"><path stroke="currentColor" stroke-width="1.2" d="m1.5 1.5 11 11m0-11-11 11"/></svg>'},63346:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" width="12" height="12"><path stroke="currentColor" stroke-width="1.2" d="m1.5 1.5 9 9m0-9-9 9"/></svg>'},34983:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10" width="10" height="10"><path stroke="currentColor" stroke-width="1.2" d="m1.5 1.5 7 7m0-7-7 7"/></svg>'}}]); |