Release v31.0.0 (from 028f81fbf6fef55e9694e5df4bd5106cc04c188a)
This commit is contained in:
5
charting_library/bundles/4592.e736bfae871c23e01528.js
Normal file
5
charting_library/bundles/4592.e736bfae871c23e01528.js
Normal file
@@ -0,0 +1,5 @@
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[4592],{14487:(e,n)=>{var t;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],n=0;n<arguments.length;n++){var t=arguments[n];if(t){var i=typeof t;if("string"===i||"number"===i)e.push(t);else if(Array.isArray(t)&&t.length){var s=r.apply(null,t);s&&e.push(s)}else if("object"===i)for(var l in t)o.call(t,l)&&t[l]&&e.push(l)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(t=function(){return r}.apply(n,[]))||(e.exports=t)}()},36334:(e,n,t)=>{"use strict";var o=t(29365);n.createRoot=o.createRoot,o.hydrateRoot},3599:(e,n,t)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},o.apply(this,arguments)}t.d(n,{useVirtualizer:()=>b});var r=t(79474),i=t(29365);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},s.apply(this,arguments)}var l=t(87178),a=function(e){return e},u=function(e){for(var n=Math.max(e.startIndex-e.overscan,0),t=Math.min(e.endIndex+e.overscan,e.count-1),o=[],r=n;r<=t;r++)o.push(r);return o},c=function(e,n){var t=e.scrollElement;if(t){var o=function(e){var t=e.width,o=e.height;n({width:Math.round(t),height:Math.round(o)})};o(t.getBoundingClientRect());var r=new ResizeObserver((function(e){var n=e[0];if(null!=n&&n.borderBoxSize){var r=n.borderBoxSize[0];if(r)return void o({width:r.inlineSize,height:r.blockSize})}o(t.getBoundingClientRect())}));return r.observe(t,{box:"border-box"}),function(){r.unobserve(t)}}},d=function(e,n){var t=e.scrollElement;if(t){var o=function(){n(t[e.options.horizontal?"scrollLeft":"scrollTop"])};return o(),t.addEventListener("scroll",o,{passive:!0}),function(){t.removeEventListener("scroll",o)}}},f=function(e,n,t){if(null!=n&&n.borderBoxSize){var o=n.borderBoxSize[0];if(o)return Math.round(o[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[t.options.horizontal?"width":"height"])},h=function(e,n,t){var o,r,i=n.adjustments,s=void 0===i?0:i,l=n.behavior,a=e+s;null==(o=t.scrollElement)||null==o.scrollTo||o.scrollTo(((r={})[t.options.horizontal?"left":"top"]=a,r.behavior=l,r))},m=function(e){var n,t,o=this;this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(n=null,t=function(){return n||("undefined"!=typeof ResizeObserver?n=new ResizeObserver((function(e){e.forEach((function(e){o._measureElement(e.target,e)}))})):null)},{disconnect:function(){var e;return null==(e=t())?void 0:e.disconnect()},observe:function(e){var n;return null==(n=t())?void 0:n.observe(e,{
|
||||
box:"border-box"})},unobserve:function(e){var n;return null==(n=t())?void 0:n.unobserve(e)}}),this.range=null,this.setOptions=function(e){Object.entries(e).forEach((function(n){var t=n[0];void 0===n[1]&&delete e[t]})),o.options=s({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:a,rangeExtractor:u,onChange:function(){},measureElement:f,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},e)},this.notify=function(e){null==o.options.onChange||o.options.onChange(o,e)},this.maybeNotify=(0,l.memo)((function(){return o.calculateRange(),[o.isScrolling,o.range?o.range.startIndex:null,o.range?o.range.endIndex:null]}),(function(e){o.notify(e)}),{key:!1,debug:function(){return o.options.debug},initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=function(){o.unsubs.filter(Boolean).forEach((function(e){return e()})),o.unsubs=[],o.scrollElement=null},this._didMount=function(){return o.measureElementCache.forEach(o.observer.observe),function(){o.observer.disconnect(),o.cleanup()}},this._willUpdate=function(){var e=o.options.getScrollElement();o.scrollElement!==e&&(o.cleanup(),o.scrollElement=e,o._scrollToOffset(o.scrollOffset,{adjustments:void 0,behavior:void 0}),o.unsubs.push(o.options.observeElementRect(o,(function(e){o.scrollRect=e,o.maybeNotify()}))),o.unsubs.push(o.options.observeElementOffset(o,(function(e){o.scrollAdjustments=0,o.scrollOffset!==e&&(null!==o.isScrollingTimeoutId&&(clearTimeout(o.isScrollingTimeoutId),o.isScrollingTimeoutId=null),o.isScrolling=!0,o.scrollDirection=o.scrollOffset<e?"forward":"backward",o.scrollOffset=e,o.maybeNotify(),o.isScrollingTimeoutId=setTimeout((function(){o.isScrollingTimeoutId=null,o.isScrolling=!1,o.scrollDirection=null,o.maybeNotify()}),o.options.scrollingDelay))}))))},this.getSize=function(){return o.scrollRect[o.options.horizontal?"width":"height"]},this.memoOptions=(0,l.memo)((function(){return[o.options.count,o.options.paddingStart,o.options.scrollMargin,o.options.getItemKey]}),(function(e,n,t,r){return o.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:n,scrollMargin:t,getItemKey:r}}),{key:!1}),this.getFurthestMeasurement=function(e,n){for(var t=new Map,r=new Map,i=n-1;i>=0;i--){var s=e[i];if(!t.has(s.lane)){var l=r.get(s.lane);if(null==l||s.end>l.end?r.set(s.lane,s):s.end<l.end&&t.set(s.lane,!0),t.size===o.options.lanes)break}}return r.size===o.options.lanes?Array.from(r.values()).sort((function(e,n){return e.end-n.end}))[0]:void 0},this.getMeasurements=(0,l.memo)((function(){return[o.memoOptions(),o.itemSizeCache]}),(function(e,n){var t=e.count,r=e.paddingStart,i=e.scrollMargin,s=e.getItemKey,l=o.pendingMeasuredCacheIndexes.length>0?Math.min.apply(Math,o.pendingMeasuredCacheIndexes):0;o.pendingMeasuredCacheIndexes=[];for(var a=o.measurementsCache.slice(0,l),u=l;u<t;u++){
|
||||
var c=s(u),d=1===o.options.lanes?a[u-1]:o.getFurthestMeasurement(a,u),f=d?d.end:r+i,h=n.get(c),m="number"==typeof h?h:o.options.estimateSize(u),g=f+m,v=d?d.lane:u%o.options.lanes;a[u]={index:u,start:f,size:m,end:g,key:c,lane:v}}return o.measurementsCache=a,a}),{key:!1,debug:function(){return o.options.debug}}),this.calculateRange=(0,l.memo)((function(){return[o.getMeasurements(),o.getSize(),o.scrollOffset]}),(function(e,n,t){return o.range=e.length>0&&n>0?function(e){var n=e.measurements,t=e.outerSize,o=e.scrollOffset,r=n.length-1,i=function(e){return n[e].start},s=g(0,r,i,o),l=s;for(;l<r&&n[l].end<o+t;)l++;return{startIndex:s,endIndex:l}}({measurements:e,outerSize:n,scrollOffset:t}):null}),{key:!1,debug:function(){return o.options.debug}}),this.getIndexes=(0,l.memo)((function(){return[o.options.rangeExtractor,o.calculateRange(),o.options.overscan,o.options.count]}),(function(e,n,t,o){return null===n?[]:e(s({},n,{overscan:t,count:o}))}),{key:!1,debug:function(){return o.options.debug}}),this.indexFromElement=function(e){var n=o.options.indexAttribute,t=e.getAttribute(n);return t?parseInt(t,10):(console.warn("Missing attribute name '"+n+"={index}' on measured element."),-1)},this._measureElement=function(e,n){var t=o.measurementsCache[o.indexFromElement(e)];if(t&&e.isConnected){var r=o.measureElementCache.get(t.key);r!==e&&(r&&o.observer.unobserve(r),o.observer.observe(e),o.measureElementCache.set(t.key,e));var i=o.options.measureElement(e,n,o);o.resizeItem(t,i)}else o.measureElementCache.forEach((function(n,t){n===e&&(o.observer.unobserve(e),o.measureElementCache.delete(t))}))},this.resizeItem=function(e,n){var t,r=n-(null!=(t=o.itemSizeCache.get(e.key))?t:e.size);0!==r&&(e.start<o.scrollOffset&&o._scrollToOffset(o.scrollOffset,{adjustments:o.scrollAdjustments+=r,behavior:void 0}),o.pendingMeasuredCacheIndexes.push(e.index),o.itemSizeCache=new Map(o.itemSizeCache.set(e.key,n)),o.notify(!1))},this.measureElement=function(e){e&&o._measureElement(e,void 0)},this.getVirtualItems=(0,l.memo)((function(){return[o.getIndexes(),o.getMeasurements()]}),(function(e,n){for(var t=[],o=0,r=e.length;o<r;o++){var i=n[e[o]];t.push(i)}return t}),{key:!1,debug:function(){return o.options.debug}}),this.getVirtualItemForOffset=function(e){var n=o.getMeasurements();return(0,l.notUndefined)(n[g(0,n.length-1,(function(e){return(0,l.notUndefined)(n[e]).start}),e)])},this.getOffsetForAlignment=function(e,n){var t=o.getSize();"auto"===n&&(n=e<=o.scrollOffset?"start":e>=o.scrollOffset+t?"end":"start"),"start"===n||("end"===n?e-=t:"center"===n&&(e-=t/2));var r=o.options.horizontal?"scrollWidth":"scrollHeight",i=(o.scrollElement?"document"in o.scrollElement?o.scrollElement.document.documentElement[r]:o.scrollElement[r]:0)-o.getSize();return Math.max(Math.min(i,e),0)},this.getOffsetForIndex=function(e,n){void 0===n&&(n="auto"),e=Math.max(0,Math.min(e,o.options.count-1));var t=(0,l.notUndefined)(o.getMeasurements()[e]);if("auto"===n)if(t.end>=o.scrollOffset+o.getSize()-o.options.scrollPaddingEnd)n="end";else{
|
||||
if(!(t.start<=o.scrollOffset+o.options.scrollPaddingStart))return[o.scrollOffset,n];n="start"}var r="end"===n?t.end+o.options.scrollPaddingEnd:t.start-o.options.scrollPaddingStart;return[o.getOffsetForAlignment(r,n),n]},this.isDynamicMode=function(){return o.measureElementCache.size>0},this.cancelScrollToIndex=function(){null!==o.scrollToIndexTimeoutId&&(clearTimeout(o.scrollToIndexTimeoutId),o.scrollToIndexTimeoutId=null)},this.scrollToOffset=function(e,n){var t=void 0===n?{}:n,r=t.align,i=void 0===r?"start":r,s=t.behavior;o.cancelScrollToIndex(),"smooth"===s&&o.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),o._scrollToOffset(o.getOffsetForAlignment(e,i),{adjustments:void 0,behavior:s})},this.scrollToIndex=function(e,n){var t=void 0===n?{}:n,r=t.align,i=void 0===r?"auto":r,s=t.behavior;e=Math.max(0,Math.min(e,o.options.count-1)),o.cancelScrollToIndex(),"smooth"===s&&o.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");var a=o.getOffsetForIndex(e,i),u=a[0],c=a[1];o._scrollToOffset(u,{adjustments:void 0,behavior:s}),"smooth"!==s&&o.isDynamicMode()&&(o.scrollToIndexTimeoutId=setTimeout((function(){if(o.scrollToIndexTimeoutId=null,o.measureElementCache.has(o.options.getItemKey(e))){var n=o.getOffsetForIndex(e,c)[0];(0,l.approxEqual)(n,o.scrollOffset)||o.scrollToIndex(e,{align:c,behavior:s})}else o.scrollToIndex(e,{align:c,behavior:s})})))},this.scrollBy=function(e,n){var t=(void 0===n?{}:n).behavior;o.cancelScrollToIndex(),"smooth"===t&&o.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),o._scrollToOffset(o.scrollOffset+e,{adjustments:void 0,behavior:t})},this.getTotalSize=function(){var e;return((null==(e=o.getMeasurements()[o.options.count-1])?void 0:e.end)||o.options.paddingStart)-o.options.scrollMargin+o.options.paddingEnd},this._scrollToOffset=function(e,n){var t=n.adjustments,r=n.behavior;o.options.scrollToFn(e,{behavior:r,adjustments:t},o)},this.measure=function(){o.itemSizeCache=new Map,o.notify(!1)},this.setOptions(e),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((function(e){o.itemSizeCache.set(e.key,e.size)})),this.maybeNotify()},g=function(e,n,t,o){for(;e<=n;){var r=(e+n)/2|0,i=t(r);if(i<o)e=r+1;else{if(!(i>o))return r;n=r-1}}return e>0?e-1:0};var v="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function p(e){var n=r.useReducer((function(){return{}}),{})[1],t=o({},e,{onChange:function(t,o){o?(0,i.flushSync)(n):n(),null==e.onChange||e.onChange(t,o)}}),s=r.useState((function(){return new m(t)}))[0];return s.setOptions(t),r.useEffect((function(){return s._didMount()}),[]),v((function(){return s._willUpdate()})),s}function b(e){return p(o({observeElementRect:c,observeElementOffset:d,scrollToFn:h},e))}},87178:(e,n,t)=>{"use strict";function o(e,n,t){var o,r,i=null!=(o=t.initialDeps)?o:[];return function(){var o
|
||||
;t.key&&null!=t.debug&&t.debug()&&(o=Date.now());var s,l=e();if(!(l.length!==i.length||l.some((function(e,n){return i[n]!==e}))))return r;if(i=l,t.key&&null!=t.debug&&t.debug()&&(s=Date.now()),r=n.apply(void 0,l),t.key&&null!=t.debug&&t.debug()){var a=Math.round(100*(Date.now()-o))/100,u=Math.round(100*(Date.now()-s))/100,c=u/16,d=function(e,n){for(e=String(e);e.length<n;)e=" "+e;return e};console.info("%c⏱ "+d(u,5)+" /"+d(a,5)+" ms","\n font-size: .6rem;\n font-weight: bold;\n color: hsl("+Math.max(0,Math.min(120-120*c,120))+"deg 100% 31%);",null==t?void 0:t.key)}return null==t||null==t.onChange||t.onChange(r),r}}function r(e,n){if(void 0===e)throw new Error("Unexpected undefined"+(n?": "+n:""));return e}t.d(n,{approxEqual:()=>i,memo:()=>o,notUndefined:()=>r});var i=function(e,n){return Math.abs(e-n)<1}},69454:(e,n,t)=>{"use strict";t.d(n,{default:()=>o});const o=function(e){for(var n=-1,t=null==e?0:e.length,o={};++n<t;){var r=e[n];o[r[0]]=r[1]}return o}},80141:(e,n,t)=>{"use strict";t.d(n,{default:()=>o});const o=function(e){return e&&e.length?e[0]:void 0}},56770:(e,n,t)=>{"use strict";t.d(n,{nanoid:()=>o});let o=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,n)=>e+=(n&=63)<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n>62?"-":"_"),"")}}]);
|
||||
Reference in New Issue
Block a user