diff --git a/changelog.md b/changelog.md index e67b0e0f..ee93ae47 100644 --- a/changelog.md +++ b/changelog.md @@ -5,6 +5,22 @@ +## Version 30.3.0 + +*Date: Wed Jan 21 2026* + +**New Features** + +- **Added the `legend_bar_change_colors_based_on_value` featureset.** When enabled, bar change values in the legend are colored based on their value (positive, negative, or zero). Applies only to non-OHLC chart types. +- **Added the `applyOverrides` method to the `IChartWidgetApi` interface.** Unlike [`IChartingLibraryWidget.applyOverrides`](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#applyoverrides), which applies overrides to **all charts**, this new method allows applying overrides to **specific chart instances**. +Refer to [Apply overrides](https:/www.tradingview.com/charting-library-docs/latest/ui_elements/Chart#apply-overrides) for usage example. + +**Bug Fixes** + +- **Fixed an issue where orders and positions were no longer displayed after a network reconnection.** (Trading Platform only) + +--- + ## Version 30.2.0 *Date: Mon Dec 22 2025* diff --git a/charting_library/bundles/ar.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/ar.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index 132d66cc..00000000 --- a/charting_library/bundles/ar.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,7 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:e=>{e.exports={en:["bars"],ar:["الأعمدة البيانية"]}},31882:e=>{e.exports={en:["12-hours"],ar:["‎ ‎ 12 ساعة"]}},5797:e=>{e.exports={en:["24-hours"],ar:["24 ساعة"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],ar:["تلوين الأعمدة طبقًا للإغلاق السابق"]}},23739:e=>{e.exports={en:["Canvas"],ar:["لوحة"]}},24197:e=>{e.exports={en:["Center"],ar:["مركز"]}},15153:e=>{e.exports={en:["Chart basic styles"],ar:["أنماط الرسم البياني الأساسية"]}},45639:e=>{e.exports={en:["Chart values"],ar:["قيم الرسم البياني"]}},84831:e=>{e.exports={en:["Close line"],ar:["خط الإغلاق"]}},74622:e=>{e.exports={en:["Crosshair"],ar:["مؤشر التقاطع"]}},81849:e=>{e.exports={en:["Currency"],ar:["عملة"]}},3015:e=>{e.exports={en:["Currency and Unit"],ar:["العملة والوحدة"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],ar:["تعديل البيانات لأرباح الأسهم"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],ar:["ضبط لتغييرات العقود"]}},36620:e=>{e.exports={en:["Alerts"],ar:["تنبيهات"]}},68650:e=>{e.exports={en:["Average close"],ar:["متوسط الإغلاق"]}},27567:e=>{e.exports={en:["Bottom"],ar:["الأسفل"]}},3159:e=>{e.exports={en:["Bottom line"],ar:["الخط السفلي"]}},74406:e=>{e.exports={en:["Body"],ar:["الجزء الرئيسي"]}},333:e=>{e.exports={en:["Borders"],ar:["إطارات"]}},79468:e=>{e.exports={en:["Background"],ar:["الخلفية"]}},10842:e=>{e.exports={en:["Bar change values"],ar:["قيمة التغير للعمود"]}},28975:e=>{e.exports={en:["Base level"],ar:["مستوى الأساس"]}},76473:e=>{e.exports={en:["Bid and ask"],ar:["سعر البيع والشراء"]}},32744:e=>{e.exports={en:["Buttons"],ar:["أزرار"]}},68662:e=>{e.exports={en:["Grid lines"],ar:["خطوط الشبكة"]}},17611:e=>{e.exports={en:["Down bars"],ar:["الشموع الهابطة"]}},23743:e=>{e.exports={en:["Down color"],ar:["لون الإنخفاض"]}},48225:e=>{e.exports={en:["Data modification"],ar:["تعديل البيانات"]}},84838:e=>{e.exports={en:["Date format"],ar:["تنسيق التاريخ"]}},42357:e=>{e.exports={en:["Day of week on labels"],ar:["يوم الأسبوع على الملصقات"]}},16564:e=>{e.exports={en:["Default"],ar:["افتراضي"]}},78734:e=>{e.exports={en:["Description"],ar:["الوصف"]}},67036:e=>{e.exports={en:["Display inactivity gaps"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],ar:["خلفية ساعات التداول الإلكترونية"]}},69808:e=>{e.exports={en:["Events"],ar:["أحداث"]}},41129:e=>{e.exports={en:["Fill"],ar:["ملئ"]}},61112:e=>{e.exports={en:["Fill top area"],ar:["إملئ المنطقة العلوية"]}},73185:e=>{e.exports={en:["Fill bottom area"],ar:["ملء المنطقة السفلية"]}},3160:e=>{e.exports={en:["Horizontal"],ar:["أفقي"]}},61900:e=>{e.exports={en:["Horz only"],ar:["أفقي فقط"]}},14180:e=>{e.exports={en:["High and low"],ar:["أعلى وأدنى"]}},56359:e=>{e.exports={en:["High line"],ar:["خط أعلى مستوى"]}},47326:e=>{e.exports={en:["Integer"],ar:["عدد صحيح"]}},17854:e=>{e.exports={en:["Interval"],ar:["الفاصل الزمني"]}},84549:e=>{e.exports={en:["Indicators"],ar:["مؤشرات"]}},78082:e=>{e.exports={en:["Indicators and financials"],ar:["المؤشرات والبيانات المالية"]}}, -21429:e=>{e.exports={en:["Inputs"],ar:["مدخلات"]}},25765:e=>{e.exports={en:["Open market status"],ar:["حالة الأسواق المفتوحة"]}},34579:e=>{e.exports={en:["Low line"],ar:["خط أدنى مستوى"]}},14876:e=>{e.exports={en:["Logo"],ar:["الشعار"]}},89315:e=>{e.exports={en:["Long Description"],ar:["وصف مطوّل"]}},72423:e=>{e.exports={en:["Last day change values"],ar:["قيم تغيير اليوم الأخير"]}},11626:e=>{e.exports={en:["Left"],ar:["يسار"]}},56982:e=>{e.exports={en:["Lines"],ar:["الخطوط"]}},8249:e=>{e.exports={en:["Money"],ar:["أموال"]}},70937:e=>{e.exports={en:["Margins"],ar:["هوامش"]}},68833:e=>{e.exports={en:["Middle"],ar:["وسط"]}},58589:e=>{e.exports={en:["No overlapping labels"],ar:["بدون ملصقات متداخلة"]}},60798:e=>{e.exports={en:["None"],ar:["لا شيء"]}},51019:e=>{e.exports={en:["Navigation"],ar:["تنقل"]}},99709:e=>{e.exports={en:["Name"],ar:["الاسم"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],ar:["احفظ موضع الحافة اليسرى للمخطط عند تغيير الفاصل الزمني"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],ar:["أوضاع المقياس (A و L)"]}},93968:e=>{e.exports={en:["Scales"],ar:["المقاييس"]}},90275:e=>{e.exports={en:["Scales and lines"],ar:["المقاييس والخطوط"]}},30042:e=>{e.exports={en:["Scales placement"],ar:["وضع المقاييس"]}},28715:e=>{e.exports={en:["Status line"],ar:["خط الحالة"]}},95481:e=>{e.exports={en:["Symbol"],ar:["رمز"]}},53263:e=>{e.exports={en:["Pane"],ar:["جزء"]}},82894:e=>{e.exports={en:["Pane separators"],ar:["فواصل الأجزاء"]}},86235:e=>{e.exports={en:["Percentage"],ar:["نسبة مئوية"]}},94408:e=>{e.exports={en:["Pips"],ar:["نقاط"]}},60904:e=>{e.exports={en:["Pre/post market"],ar:["ما قبل/بعد الجلسة"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],ar:["خلفية ما قبل/بعد الجلسة"]}},59766:e=>{e.exports={en:["Precision"],ar:["الدقة"]}},83811:e=>{e.exports={en:["Previous day close"],ar:["إغلاق اليوم السابق"]}},35082:e=>{e.exports={en:["Price Scale"],ar:["مقياس الأسعار"]}},27632:e=>{e.exports={en:["Price and percentage value"],ar:["السعر وقيمة النسبة المئوية"]}},62142:e=>{e.exports={en:["Price labels & lines"],ar:["ملصقات وخطوط الأسعار"]}},84684:e=>{e.exports={en:["Price source"],ar:["مصدر السعر"]}},73466:e=>{e.exports={en:["Projection up bars"],ar:["إسقاط الأعمدة الصاعدة"]}},77430:e=>{e.exports={en:["Projection candles"],ar:["شموع الإسقاط"]}},88367:e=>{e.exports={en:["Projection down bars"],ar:["إسقاط الأعمدة الهابطة"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],ar:["عرض الأسعار الحقيقية على مقياس السعر (بدلًا من سعر هيكن آشي)"]}},50421:e=>{e.exports={en:["Right"],ar:["يمين"]}},62532:e=>{e.exports={en:["Right Margin"],ar:["الهامش الأيمن"]}},41571:e=>{e.exports={en:["Watermark"],ar:["علامة مائية"]}},32163:e=>{e.exports={en:["Wick"],ar:["ظل الشمعة"]}},97118:e=>{e.exports={en:["Top"],ar:["الأعلى"]}},89349:e=>{e.exports={en:["Top line"],ar:["الخط العلوي"]}},70320:e=>{e.exports={en:["Text"],ar:["النص"]}},25485:e=>{e.exports={en:["Text alignment"],ar:["محاذاة النص"]}},67781:e=>{e.exports={en:["Text orientation"],ar:["اتجاه النص"]} -},20215:e=>{e.exports={en:["Thin bars"],ar:["أعمدة نحيفة"]}},70198:e=>{e.exports={en:["Title"],ar:["عنوان"]}},29854:e=>{e.exports={en:["Titles"],ar:["العناوين"]}},5791:e=>{e.exports={en:["Ticker"],ar:["الرمز"]}},16816:e=>{e.exports={en:["Ticker and description"],ar:["الرمز والوصف"]}},24821:e=>{e.exports={en:["Ticks"],ar:["تيكات السعر"]}},93965:e=>{e.exports={en:["Time Scale"],ar:["مقياس الوقت"]}},5591:e=>{e.exports={en:["Time hours format"],ar:["تنسيق الساعات"]}},77073:e=>{e.exports={en:["Timezone"],ar:["توقيت"]}},76495:e=>{e.exports={en:["Trading"],ar:["تداول"]}},33564:e=>{e.exports={en:["Unit"],ar:["وحدة"]}},23091:e=>{e.exports={en:["Up color"],ar:["لون الإرتفاع"]}},36957:e=>{e.exports={en:["Up bars"],ar:["الشموع الصاعدة"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],ar:["استخدم التسوية في أقرب وقت على الفاصل الزمني اليومي"]}},37644:e=>{e.exports={en:["Volume"],ar:["حجم التداول"]}},51514:e=>{e.exports={en:["Value"],ar:["قيمة"]}},31218:e=>{e.exports={en:["Value according to scale"],ar:["القيمة حسب المقياس"]}},60092:e=>{e.exports={en:["Values"],ar:["القِيم"]}},83594:e=>{e.exports={en:["Vert and horz"],ar:["عمودي وأفقي"]}},8402:e=>{e.exports={en:["Vert only"],ar:["عمودي فقط"]}},69526:e=>{e.exports={en:["Vertical"],ar:["عمودي"]}},21105:e=>{e.exports={en:["candle"],ar:["شمعة"]}},27068:e=>{e.exports={en:["change HLC bars"],ar:["تغيير أعمدة HLC"]}},21201:e=>{e.exports={en:["change HLC bars color"],ar:["تغيير لون أعمدة HLC"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],ar:["تغيير وضوح أزرار التنقل"]}},96227:e=>{e.exports={en:["change open market status visibility"],ar:["تغيير وضوح حالة السوق المفتوحة"]}},43231:e=>{e.exports={en:["change average close price line width"],ar:["تغيير عرض خط متوسط سعر الإغلاق"]}},47026:e=>{e.exports={en:["change average close price line color"],ar:["تغيير لون خط متوسط سعر الإغلاق"]}},29281:e=>{e.exports={en:["change area fill color"],ar:["تغيير لون المنطقة"]}},27059:e=>{e.exports={en:["change area line visibility"],ar:["تغيير رؤية خط المنطقة"]}},89346:e=>{e.exports={en:["change area line width"],ar:["تغيير عرض خط المنطقة"]}},29605:e=>{e.exports={en:["change area line color"],ar:["تغيير لون خطوط المنطقة"]}},56864:e=>{e.exports={en:["change area line style"],ar:["تغيير نمط خط المنطقة"]}},4640:e=>{e.exports={en:["change area price source"],ar:["تغيير مصدر سعر المنطقة"]}},98407:e=>{e.exports={en:["change ask line color"],ar:["تغيير لون خط سعر الشراء"]}},42190:e=>{e.exports={en:["change base level"],ar:["تغيير مستوى الأساس"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],ar:["تغيير لون قاع خط الأساس"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],ar:["تغيير نمط الخط السفلي الأساسي"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],ar:["تغيير لون قاع خط الأساس"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],ar:["تغيير لون المنطقة السفلية لخط الأساس"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],ar:["تغيير لون المنطقة العليا لخط الأساس"]}},68609:e=>{e.exports={ -en:["change baseline price source"],ar:["تغيير مصدر السعر الأساسي"]}},69044:e=>{e.exports={en:["change baseline top line color"],ar:["تغيير لون خطوط خط الأساس"]}},4425:e=>{e.exports={en:["change baseline top line style"],ar:["تغيير نمط الخط العلوي الأساسي"]}},68197:e=>{e.exports={en:["change baseline top line width"],ar:["تغيير عرض أعلى الخط الأساسي"]}},33464:e=>{e.exports={en:["change bar up color"],ar:["تغيير لون العمود الصاعد"]}},27426:e=>{e.exports={en:["change bar change visibility"],ar:["تغيير وضوح تغييرات الأعمدة"]}},59622:e=>{e.exports={en:["change bar down color"],ar:["تغيير لون العمود الهابط"]}},17919:e=>{e.exports={en:["change bid line color"],ar:["تغيير لون خط سعر البيع"]}},32094:e=>{e.exports={en:["change bottom margin"],ar:["تغيير الهامش السفلي"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],ar:["تغيير وضوح وحدات الملصقات والعملة"]}},64003:e=>{e.exports={en:["change currency label visibility"],ar:["تغيير وضوح ملصقات العملة"]}},42803:e=>{e.exports={en:["change chart background color"],ar:["تغيير لون خلفية الرسم البياني"]}},41382:e=>{e.exports={en:["change chart background type"],ar:["تغيير نوع خلفية الرسم البياني"]}},79637:e=>{e.exports={en:["change chart values visibility"],ar:["تغيير رؤية قيم الرسم"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],ar:["تغيير لون الأعمدة بناءً على الإغلاق السابق"]}},88324:e=>{e.exports={en:["change column up color"],ar:["تغيير لون الأعمدة الصاعد"]}},93890:e=>{e.exports={en:["change column down color"],ar:["تغيير لون الأعمدة الهابطة"]}},4727:e=>{e.exports={en:["change column price source"],ar:["تغيير مصدر سعر العمود"]}},50544:e=>{e.exports={en:["change crosshair width"],ar:["تغيير عرض التقاطع"]}},92885:e=>{e.exports={en:["change crosshair color"],ar:["تغيير لون التقاطع"]}},68418:e=>{e.exports={en:["change crosshair style"],ar:["تغيير نمط التقاطع"]}},43109:e=>{e.exports={en:["change date format"],ar:["تغيير تنسيق التاريخ"]}},30418:e=>{e.exports={en:["change day of week on labels"],ar:["يوم التغير من الأسبوع على الملصقات"]}},82063:e=>{e.exports={en:["change decimal places"],ar:["تغيير المنازل العشرية"]}},45397:e=>{e.exports={en:["change extended hours color"],ar:["تغيير لون الساعات الممددة"]}},47393:e=>{e.exports={en:["change electronic trading hours"],ar:["تغيير ساعات التداول الإلكترونية"]}},73844:e=>{e.exports={en:["change grid lines visibility"],ar:["تغيير وضوح خطوط الشبكة"]}},61407:e=>{e.exports={en:["change high and low price line color"],ar:["تغيير لون خط أعلى وأدنى سعر"]}},39581:e=>{e.exports={en:["change high and low price line width"],ar:["تغيير عرض خط أعلى وأدنى سعر"]}},6026:e=>{e.exports={en:["change high-low body color"],ar:["تغيير لون جسم أعلى-أدنى"]}},73021:e=>{e.exports={en:["change high-low body visibility"],ar:["تغيير وضوح جسم أعلى-أدنى"]}},46844:e=>{e.exports={en:["change high-low border color"],ar:["تغيير لون حدود أعلى-أدنى"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],ar:["تغيير وضوح حدود أعلى-أدنى"]}},72399:e=>{e.exports={en:["change high-low labels visibility"], -ar:["تغيير وضوح ملصقات أعلى-أدنى"]}},56961:e=>{e.exports={en:["change high-low labels color"],ar:["تغيير لون ملصقات أعلى-أدنى"]}},21133:e=>{e.exports={en:["change horz grid lines color"],ar:["تغيير لون خطوط الشبكة الأفقية"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],ar:["تغيير وضوح عناوين المؤشر"]}},49583:e=>{e.exports={en:["change indicator values visibility"],ar:["تغيير وضوح قيم المؤشر"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],ar:["تغيير رؤية مدخلات المؤشر"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],ar:["وضوح ملصقات تغير المؤشرات وأسماء البيانات المالية"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],ar:["وضوح ملصقات تغير المؤشرات والبيانات المالية"]}},451:e=>{e.exports={en:["change interval watermark visibility"],ar:["تغيير رؤية العلامة المائية للفاصل الزمني"]}},66307:e=>{e.exports={en:["change last day change visibility"],ar:["تغيير الرؤية في اليوم الأخير"]}},91873:e=>{e.exports={en:["change legend background transparency"],ar:["تغيير شفافية خلفية المفتاح التوضيحي"]}},14246:e=>{e.exports={en:["change legend background visibility"],ar:["تغيير وضوح خلفية المفتاح التوضيحي"]}},88640:e=>{e.exports={en:["change line color"],ar:["تغيير لون الخط"]}},28818:e=>{e.exports={en:["change line style"],ar:["تغير نمط الخط"]}},41837:e=>{e.exports={en:["change line price source"],ar:["تغيير مصدر سعر الخط"]}},48339:e=>{e.exports={en:["change line width"],ar:["تغيير عرض الخط"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],ar:["تغيير وضوح أزرار الجزء"]}},52203:e=>{e.exports={en:["change pane separators color"],ar:["تغيير لون فواصل الجزء"]}},38730:e=>{e.exports={en:["change post market color"],ar:["تغيير لون ما بعد الجلسة"]}},28075:e=>{e.exports={en:["change post market line color"],ar:["تغيير لون خط ما بعد الجلسة"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],ar:["تغيير وضوح خط أسعار ما قبل/بعد الجلسة"]}},44371:e=>{e.exports={en:["change pre market color"],ar:["تغيير لون ما قبل الجلسة"]}},96114:e=>{e.exports={en:["change pre market line color"],ar:["تغيير لون خط ما قبل الجلسة"]}},69814:e=>{e.exports={en:["change previous close price line color"],ar:["تغيير لون خط سعر الإغلاق السابق"]}},13660:e=>{e.exports={en:["change previous close price line width"],ar:["تغيير عرض خط سعر الإغلاق السابق"]}},87861:e=>{e.exports={en:["change price line color"],ar:["تغيير لون خطوط السعر"]}},29353:e=>{e.exports={en:["change price line width"],ar:["تغيير عرض خط السعر"]}},16241:e=>{e.exports={en:["change range bars style"],ar:["تغيير نمط أعمدة النطاق"]}},65821:e=>{e.exports={en:["change range thin bars"],ar:["تغيير نطاق الأعمدة الرقيقة"]}},75487:e=>{e.exports={en:["change renko wick down color"],ar:["تغيير لون ذيل رينكو الهابط"]}},92277:e=>{e.exports={en:["change renko wick up color"],ar:["تغيير لون ذيل الرينكو الصاعد"]}},79604:e=>{e.exports={en:["change renko wick visibility"],ar:["تغيير وضوح ذيل الرينكو"]}},66021:e=>{e.exports={en:["change replay watermark visibility"], -ar:["تغيير رؤية العلامة المائية لإعادة التشغيل"]}},82946:e=>{e.exports={en:["change right margin"],ar:["تغيير الهامش الأيمن"]}},79545:e=>{e.exports={en:["change right margin percentage"],ar:["تغيير نسبة الهامش الأيمن"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],ar:["تغيير رؤية العلامة المائية للرمز"]}},78995:e=>{e.exports={en:["change symbol watermark color"],ar:["تغيير لون علامة الرمز"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],ar:["تغيير وضوح علامة الرمز"]}},88167:e=>{e.exports={en:["change symbol description visibility"],ar:["تغيير وضوح وصف رمز"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],ar:["تغيير الرمز والوصف ورؤية العلامة المائية"]}},12050:e=>{e.exports={en:["change symbol field visibility"],ar:["تغيير وضوح حقل الرمز"]}},46066:e=>{e.exports={en:["change symbol last value mode"],ar:["تغيير وضع آخر قيمة للرمز"]}},902:e=>{e.exports={en:["change symbol legend format"],ar:["تغيير تنسيق مفتاح التوضيح الرمز"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],ar:["تغيير موضع الحافة اليسرى لمخطط الحفظ عند تغيير الفاصل الزمني"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],ar:["تغيير وضوح أزرار أوضاع المقياس"]}},76131:e=>{e.exports={en:["change scales text color"],ar:["تغيير لون نص المقاييس"]}},27792:e=>{e.exports={en:["change scales font size"],ar:["تغيير حجم خط المقاييس"]}},94997:e=>{e.exports={en:["change scales lines color"],ar:["تغيير لون خطوط المقاييس"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],ar:["تغيير وضوح فواصل الجلسات"]}},28175:e=>{e.exports={en:["change sessions breaks width"],ar:["تغيير عرض فواصل الجلسات"]}},33895:e=>{e.exports={en:["change sessions breaks color"],ar:["تغيير وضوح لون فواصل الجلسات"]}},21641:e=>{e.exports={en:["change sessions breaks style"],ar:["تغيير نمط فواصل الجلسات"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],ar:["تغيير عرض الأسعار الحقيقية على مقياس السعر (بدلًا من سعر هيكن آشي)"]}},60834:e=>{e.exports={en:["change thin bars"],ar:["تغيير الأعمدة الرقيقة"]}},39754:e=>{e.exports={en:["change time hours format"],ar:["تغيير تنسيق الساعات"]}},74883:e=>{e.exports={en:["change top margin"],ar:["تغيير الهامش العلوي"]}},51250:e=>{e.exports={en:["change unit label visibility"],ar:["تغيير وضوح ملصقات الوحدة"]}},71805:e=>{e.exports={en:["change vert grid lines color"],ar:["تغيير لون خطوط الشبكة العمودية"]}},96201:e=>{e.exports={en:["change volume values visibility"],ar:["تغيير وضوح قيم الحجم"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],ar:["تغيير لون حدود {candleType} الصاعد"]}},36697:e=>{e.exports={en:["change {candleType} up color"],ar:["تغيير لون {candleType} الصاعد"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],ar:["تغيير لون ذيل {candleType} الهابط"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],ar:["تغيير لون ذيل {candleType} الصاعد"]}},94750:e=>{e.exports={ -en:["change {candleType} wick visibility"],ar:["تغيير وضوح ذيل {candleType}"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],ar:["تغيير وضوح الجسم {candleType}"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],ar:["تغيير وضوح حدود {candleType}"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],ar:["تغيير لون حدود {candleType} الهابط"]}},64571:e=>{e.exports={en:["change {candleType} down color"],ar:["تغيير لون {candleType} الهابط"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],ar:["تغيير لون حدود عمود {chartType} الهابط"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],ar:["تغيير لون حدود عمود {chartType} الصاعد"]}},5012:e=>{e.exports={en:["change {chartType} down color"],ar:["تغيير لون {chartType} الهابط"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],ar:["تغيير لون الإسقاط لحدود عمود {chartType} الصاعد"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],ar:["تغيير لون عمود الإسقاط {chartType} الهابط"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],ar:["تغيير لون عمود الإسقاط {chartType} الصاعد"]}},6970:e=>{e.exports={en:["change {chartType} up color"],ar:["تغيير لون {chartType} الصاعد"]}},66110:e=>{e.exports={en:["change {inputName} property"],ar:["تغيير خاصية {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],ar:["ضبط لبيانات توزيعات الأرباح"]}},1433:e=>{e.exports={en:["adjust for contract changes"],ar:["ضبط لتغييرات العقد"]}},92598:e=>{e.exports={en:["hollow candles"],ar:["شموع مفرغة"]}},57243:e=>{e.exports={en:["range","ranges"],ar:["نطاق","نطاق","نطاق","نطاقات","نطاق","نطاق"]}},70282:e=>{e.exports={en:["renko"],ar:["رينكو"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],ar:["استخدام التسوية عند الإغلاق على الفاصل الزمني اليومي"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],ar:["{value} عشرية","{value} عشرية","{value} عشرية","{value} عشرية","{value} عشرية","{value} عشرية"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/ar.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/ar.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..8457b848 --- /dev/null +++ b/charting_library/bundles/ar.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,7 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:e=>{e.exports={en:["bars"],ar:["الأعمدة البيانية"]}},31882:e=>{e.exports={en:["12-hours"],ar:["‎ ‎ 12 ساعة"]}},5797:e=>{e.exports={en:["24-hours"],ar:["24 ساعة"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],ar:["تلوين الأعمدة طبقًا للإغلاق السابق"]}},23739:e=>{e.exports={en:["Canvas"],ar:["لوحة"]}},24197:e=>{e.exports={en:["Center"],ar:["مركز"]}},15153:e=>{e.exports={en:["Chart basic styles"],ar:["أنماط الرسم البياني الأساسية"]}},45639:e=>{e.exports={en:["Chart values"],ar:["قيم الرسم البياني"]}},84831:e=>{e.exports={en:["Close line"],ar:["خط الإغلاق"]}},74622:e=>{e.exports={en:["Crosshair"],ar:["مؤشر التقاطع"]}},81849:e=>{e.exports={en:["Currency"],ar:["عملة"]}},3015:e=>{e.exports={en:["Currency and Unit"],ar:["العملة والوحدة"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],ar:["تعديل البيانات لأرباح الأسهم"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],ar:["ضبط لتغييرات العقود"]}},36620:e=>{e.exports={en:["Alerts"],ar:["تنبيهات"]}},68650:e=>{e.exports={en:["Average close"],ar:["متوسط الإغلاق"]}},27567:e=>{e.exports={en:["Bottom"],ar:["الأسفل"]}},3159:e=>{e.exports={en:["Bottom line"],ar:["الخط السفلي"]}},74406:e=>{e.exports={en:["Body"],ar:["الجزء الرئيسي"]}},333:e=>{e.exports={en:["Borders"],ar:["إطارات"]}},79468:e=>{e.exports={en:["Background"],ar:["الخلفية"]}},10842:e=>{e.exports={en:["Bar change values"],ar:["قيمة التغير للعمود"]}},70817:e=>{e.exports={en:["Bar change color based on value"]}},28975:e=>{e.exports={en:["Base level"],ar:["مستوى الأساس"]}},76473:e=>{e.exports={en:["Bid and ask"],ar:["سعر البيع والشراء"]}},32744:e=>{e.exports={en:["Buttons"],ar:["أزرار"]}},68662:e=>{e.exports={en:["Grid lines"],ar:["خطوط الشبكة"]}},17611:e=>{e.exports={en:["Down bars"],ar:["الشموع الهابطة"]}},23743:e=>{e.exports={en:["Down color"],ar:["لون الإنخفاض"]}},48225:e=>{e.exports={en:["Data modification"],ar:["تعديل البيانات"]}},84838:e=>{e.exports={en:["Date format"],ar:["تنسيق التاريخ"]}},42357:e=>{e.exports={en:["Day of week on labels"],ar:["يوم الأسبوع على الملصقات"]}},16564:e=>{e.exports={en:["Default"],ar:["افتراضي"]}},78734:e=>{e.exports={en:["Description"],ar:["الوصف"]}},67036:e=>{e.exports={en:["Display inactivity gaps"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],ar:["خلفية ساعات التداول الإلكترونية"]}},69808:e=>{e.exports={en:["Events"],ar:["أحداث"]}},41129:e=>{e.exports={en:["Fill"],ar:["ملئ"]}},61112:e=>{e.exports={en:["Fill top area"],ar:["إملئ المنطقة العلوية"]}},73185:e=>{e.exports={en:["Fill bottom area"],ar:["ملء المنطقة السفلية"]}},3160:e=>{e.exports={en:["Horizontal"],ar:["أفقي"]}},61900:e=>{e.exports={en:["Horz only"],ar:["أفقي فقط"]}},14180:e=>{e.exports={en:["High and low"],ar:["أعلى وأدنى"]}},56359:e=>{e.exports={en:["High line"],ar:["خط أعلى مستوى"]}},47326:e=>{e.exports={en:["Integer"],ar:["عدد صحيح"]}},17854:e=>{e.exports={en:["Interval"],ar:["الفاصل الزمني"]}},84549:e=>{e.exports={en:["Indicators"],ar:["مؤشرات"]}},78082:e=>{e.exports={ +en:["Indicators and financials"],ar:["المؤشرات والبيانات المالية"]}},21429:e=>{e.exports={en:["Inputs"],ar:["مدخلات"]}},25765:e=>{e.exports={en:["Open market status"],ar:["حالة الأسواق المفتوحة"]}},34579:e=>{e.exports={en:["Low line"],ar:["خط أدنى مستوى"]}},14876:e=>{e.exports={en:["Logo"],ar:["الشعار"]}},89315:e=>{e.exports={en:["Long Description"],ar:["وصف مطوّل"]}},72423:e=>{e.exports={en:["Last day change values"],ar:["قيم تغيير اليوم الأخير"]}},11626:e=>{e.exports={en:["Left"],ar:["يسار"]}},56982:e=>{e.exports={en:["Lines"],ar:["الخطوط"]}},8249:e=>{e.exports={en:["Money"],ar:["أموال"]}},70937:e=>{e.exports={en:["Margins"],ar:["هوامش"]}},68833:e=>{e.exports={en:["Middle"],ar:["وسط"]}},58589:e=>{e.exports={en:["No overlapping labels"],ar:["بدون ملصقات متداخلة"]}},60798:e=>{e.exports={en:["None"],ar:["لا شيء"]}},51019:e=>{e.exports={en:["Navigation"],ar:["تنقل"]}},99709:e=>{e.exports={en:["Name"],ar:["الاسم"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],ar:["احفظ موضع الحافة اليسرى للمخطط عند تغيير الفاصل الزمني"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],ar:["أوضاع المقياس (A و L)"]}},93968:e=>{e.exports={en:["Scales"],ar:["المقاييس"]}},90275:e=>{e.exports={en:["Scales and lines"],ar:["المقاييس والخطوط"]}},30042:e=>{e.exports={en:["Scales placement"],ar:["وضع المقاييس"]}},28715:e=>{e.exports={en:["Status line"],ar:["خط الحالة"]}},95481:e=>{e.exports={en:["Symbol"],ar:["رمز"]}},53263:e=>{e.exports={en:["Pane"],ar:["جزء"]}},82894:e=>{e.exports={en:["Pane separators"],ar:["فواصل الأجزاء"]}},86235:e=>{e.exports={en:["Percentage"],ar:["نسبة مئوية"]}},94408:e=>{e.exports={en:["Pips"],ar:["نقاط"]}},60904:e=>{e.exports={en:["Pre/post market"],ar:["ما قبل/بعد الجلسة"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],ar:["خلفية ما قبل/بعد الجلسة"]}},59766:e=>{e.exports={en:["Precision"],ar:["الدقة"]}},83811:e=>{e.exports={en:["Previous day close"],ar:["إغلاق اليوم السابق"]}},35082:e=>{e.exports={en:["Price Scale"],ar:["مقياس الأسعار"]}},27632:e=>{e.exports={en:["Price and percentage value"],ar:["السعر وقيمة النسبة المئوية"]}},62142:e=>{e.exports={en:["Price labels & lines"],ar:["ملصقات وخطوط الأسعار"]}},84684:e=>{e.exports={en:["Price source"],ar:["مصدر السعر"]}},73466:e=>{e.exports={en:["Projection up bars"],ar:["إسقاط الأعمدة الصاعدة"]}},77430:e=>{e.exports={en:["Projection candles"],ar:["شموع الإسقاط"]}},88367:e=>{e.exports={en:["Projection down bars"],ar:["إسقاط الأعمدة الهابطة"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],ar:["عرض الأسعار الحقيقية على مقياس السعر (بدلًا من سعر هيكن آشي)"]}},50421:e=>{e.exports={en:["Right"],ar:["يمين"]}},62532:e=>{e.exports={en:["Right Margin"],ar:["الهامش الأيمن"]}},41571:e=>{e.exports={en:["Watermark"],ar:["علامة مائية"]}},32163:e=>{e.exports={en:["Wick"],ar:["ظل الشمعة"]}},97118:e=>{e.exports={en:["Top"],ar:["الأعلى"]}},89349:e=>{e.exports={en:["Top line"],ar:["الخط العلوي"]}},70320:e=>{e.exports={en:["Text"],ar:["النص"]}},25485:e=>{e.exports={en:["Text alignment"], +ar:["محاذاة النص"]}},67781:e=>{e.exports={en:["Text orientation"],ar:["اتجاه النص"]}},20215:e=>{e.exports={en:["Thin bars"],ar:["أعمدة نحيفة"]}},70198:e=>{e.exports={en:["Title"],ar:["عنوان"]}},29854:e=>{e.exports={en:["Titles"],ar:["العناوين"]}},5791:e=>{e.exports={en:["Ticker"],ar:["الرمز"]}},16816:e=>{e.exports={en:["Ticker and description"],ar:["الرمز والوصف"]}},24821:e=>{e.exports={en:["Ticks"],ar:["تيكات السعر"]}},93965:e=>{e.exports={en:["Time Scale"],ar:["مقياس الوقت"]}},5591:e=>{e.exports={en:["Time hours format"],ar:["تنسيق الساعات"]}},77073:e=>{e.exports={en:["Timezone"],ar:["توقيت"]}},76495:e=>{e.exports={en:["Trading"],ar:["تداول"]}},33564:e=>{e.exports={en:["Unit"],ar:["وحدة"]}},23091:e=>{e.exports={en:["Up color"],ar:["لون الإرتفاع"]}},36957:e=>{e.exports={en:["Up bars"],ar:["الشموع الصاعدة"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],ar:["استخدم التسوية في أقرب وقت على الفاصل الزمني اليومي"]}},37644:e=>{e.exports={en:["Volume"],ar:["حجم التداول"]}},51514:e=>{e.exports={en:["Value"],ar:["قيمة"]}},31218:e=>{e.exports={en:["Value according to scale"],ar:["القيمة حسب المقياس"]}},60092:e=>{e.exports={en:["Values"],ar:["القِيم"]}},83594:e=>{e.exports={en:["Vert and horz"],ar:["عمودي وأفقي"]}},8402:e=>{e.exports={en:["Vert only"],ar:["عمودي فقط"]}},69526:e=>{e.exports={en:["Vertical"],ar:["عمودي"]}},21105:e=>{e.exports={en:["candle"],ar:["شمعة"]}},27068:e=>{e.exports={en:["change HLC bars"],ar:["تغيير أعمدة HLC"]}},21201:e=>{e.exports={en:["change HLC bars color"],ar:["تغيير لون أعمدة HLC"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],ar:["تغيير وضوح أزرار التنقل"]}},96227:e=>{e.exports={en:["change open market status visibility"],ar:["تغيير وضوح حالة السوق المفتوحة"]}},43231:e=>{e.exports={en:["change average close price line width"],ar:["تغيير عرض خط متوسط سعر الإغلاق"]}},47026:e=>{e.exports={en:["change average close price line color"],ar:["تغيير لون خط متوسط سعر الإغلاق"]}},29281:e=>{e.exports={en:["change area fill color"],ar:["تغيير لون المنطقة"]}},27059:e=>{e.exports={en:["change area line visibility"],ar:["تغيير رؤية خط المنطقة"]}},89346:e=>{e.exports={en:["change area line width"],ar:["تغيير عرض خط المنطقة"]}},29605:e=>{e.exports={en:["change area line color"],ar:["تغيير لون خطوط المنطقة"]}},56864:e=>{e.exports={en:["change area line style"],ar:["تغيير نمط خط المنطقة"]}},4640:e=>{e.exports={en:["change area price source"],ar:["تغيير مصدر سعر المنطقة"]}},98407:e=>{e.exports={en:["change ask line color"],ar:["تغيير لون خط سعر الشراء"]}},42190:e=>{e.exports={en:["change base level"],ar:["تغيير مستوى الأساس"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],ar:["تغيير لون قاع خط الأساس"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],ar:["تغيير نمط الخط السفلي الأساسي"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],ar:["تغيير لون قاع خط الأساس"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],ar:["تغيير لون المنطقة السفلية لخط الأساس"]}},92873:e=>{e.exports={ +en:["change baseline fill top area color"],ar:["تغيير لون المنطقة العليا لخط الأساس"]}},68609:e=>{e.exports={en:["change baseline price source"],ar:["تغيير مصدر السعر الأساسي"]}},69044:e=>{e.exports={en:["change baseline top line color"],ar:["تغيير لون خطوط خط الأساس"]}},4425:e=>{e.exports={en:["change baseline top line style"],ar:["تغيير نمط الخط العلوي الأساسي"]}},68197:e=>{e.exports={en:["change baseline top line width"],ar:["تغيير عرض أعلى الخط الأساسي"]}},33464:e=>{e.exports={en:["change bar up color"],ar:["تغيير لون العمود الصاعد"]}},14201:e=>{e.exports={en:["change bar change down color"]}},30196:e=>{e.exports={en:["change bar change up color"]}},27426:e=>{e.exports={en:["change bar change visibility"],ar:["تغيير وضوح تغييرات الأعمدة"]}},59622:e=>{e.exports={en:["change bar down color"],ar:["تغيير لون العمود الهابط"]}},17919:e=>{e.exports={en:["change bid line color"],ar:["تغيير لون خط سعر البيع"]}},32094:e=>{e.exports={en:["change bottom margin"],ar:["تغيير الهامش السفلي"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],ar:["تغيير وضوح وحدات الملصقات والعملة"]}},64003:e=>{e.exports={en:["change currency label visibility"],ar:["تغيير وضوح ملصقات العملة"]}},42803:e=>{e.exports={en:["change chart background color"],ar:["تغيير لون خلفية الرسم البياني"]}},41382:e=>{e.exports={en:["change chart background type"],ar:["تغيير نوع خلفية الرسم البياني"]}},79637:e=>{e.exports={en:["change chart values visibility"],ar:["تغيير رؤية قيم الرسم"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],ar:["تغيير لون الأعمدة بناءً على الإغلاق السابق"]}},88324:e=>{e.exports={en:["change column up color"],ar:["تغيير لون الأعمدة الصاعد"]}},93890:e=>{e.exports={en:["change column down color"],ar:["تغيير لون الأعمدة الهابطة"]}},4727:e=>{e.exports={en:["change column price source"],ar:["تغيير مصدر سعر العمود"]}},50544:e=>{e.exports={en:["change crosshair width"],ar:["تغيير عرض التقاطع"]}},92885:e=>{e.exports={en:["change crosshair color"],ar:["تغيير لون التقاطع"]}},68418:e=>{e.exports={en:["change crosshair style"],ar:["تغيير نمط التقاطع"]}},43109:e=>{e.exports={en:["change date format"],ar:["تغيير تنسيق التاريخ"]}},30418:e=>{e.exports={en:["change day of week on labels"],ar:["يوم التغير من الأسبوع على الملصقات"]}},82063:e=>{e.exports={en:["change decimal places"],ar:["تغيير المنازل العشرية"]}},45397:e=>{e.exports={en:["change extended hours color"],ar:["تغيير لون الساعات الممددة"]}},47393:e=>{e.exports={en:["change electronic trading hours"],ar:["تغيير ساعات التداول الإلكترونية"]}},73844:e=>{e.exports={en:["change grid lines visibility"],ar:["تغيير وضوح خطوط الشبكة"]}},61407:e=>{e.exports={en:["change high and low price line color"],ar:["تغيير لون خط أعلى وأدنى سعر"]}},39581:e=>{e.exports={en:["change high and low price line width"],ar:["تغيير عرض خط أعلى وأدنى سعر"]}},6026:e=>{e.exports={en:["change high-low body color"],ar:["تغيير لون جسم أعلى-أدنى"]}},73021:e=>{e.exports={en:["change high-low body visibility"],ar:["تغيير وضوح جسم أعلى-أدنى"]}},46844:e=>{e.exports={ +en:["change high-low border color"],ar:["تغيير لون حدود أعلى-أدنى"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],ar:["تغيير وضوح حدود أعلى-أدنى"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],ar:["تغيير وضوح ملصقات أعلى-أدنى"]}},56961:e=>{e.exports={en:["change high-low labels color"],ar:["تغيير لون ملصقات أعلى-أدنى"]}},21133:e=>{e.exports={en:["change horz grid lines color"],ar:["تغيير لون خطوط الشبكة الأفقية"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],ar:["تغيير وضوح عناوين المؤشر"]}},49583:e=>{e.exports={en:["change indicator values visibility"],ar:["تغيير وضوح قيم المؤشر"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],ar:["تغيير رؤية مدخلات المؤشر"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],ar:["وضوح ملصقات تغير المؤشرات وأسماء البيانات المالية"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],ar:["وضوح ملصقات تغير المؤشرات والبيانات المالية"]}},451:e=>{e.exports={en:["change interval watermark visibility"],ar:["تغيير رؤية العلامة المائية للفاصل الزمني"]}},66307:e=>{e.exports={en:["change last day change visibility"],ar:["تغيير الرؤية في اليوم الأخير"]}},91873:e=>{e.exports={en:["change legend background transparency"],ar:["تغيير شفافية خلفية المفتاح التوضيحي"]}},14246:e=>{e.exports={en:["change legend background visibility"],ar:["تغيير وضوح خلفية المفتاح التوضيحي"]}},88640:e=>{e.exports={en:["change line color"],ar:["تغيير لون الخط"]}},28818:e=>{e.exports={en:["change line style"],ar:["تغير نمط الخط"]}},41837:e=>{e.exports={en:["change line price source"],ar:["تغيير مصدر سعر الخط"]}},48339:e=>{e.exports={en:["change line width"],ar:["تغيير عرض الخط"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],ar:["تغيير وضوح أزرار الجزء"]}},52203:e=>{e.exports={en:["change pane separators color"],ar:["تغيير لون فواصل الجزء"]}},38730:e=>{e.exports={en:["change post market color"],ar:["تغيير لون ما بعد الجلسة"]}},28075:e=>{e.exports={en:["change post market line color"],ar:["تغيير لون خط ما بعد الجلسة"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],ar:["تغيير وضوح خط أسعار ما قبل/بعد الجلسة"]}},44371:e=>{e.exports={en:["change pre market color"],ar:["تغيير لون ما قبل الجلسة"]}},96114:e=>{e.exports={en:["change pre market line color"],ar:["تغيير لون خط ما قبل الجلسة"]}},69814:e=>{e.exports={en:["change previous close price line color"],ar:["تغيير لون خط سعر الإغلاق السابق"]}},13660:e=>{e.exports={en:["change previous close price line width"],ar:["تغيير عرض خط سعر الإغلاق السابق"]}},87861:e=>{e.exports={en:["change price line color"],ar:["تغيير لون خطوط السعر"]}},29353:e=>{e.exports={en:["change price line width"],ar:["تغيير عرض خط السعر"]}},16241:e=>{e.exports={en:["change range bars style"],ar:["تغيير نمط أعمدة النطاق"]}},65821:e=>{e.exports={en:["change range thin bars"],ar:["تغيير نطاق الأعمدة الرقيقة"]}},75487:e=>{e.exports={en:["change renko wick down color"],ar:["تغيير لون ذيل رينكو الهابط"]}},92277:e=>{e.exports={ +en:["change renko wick up color"],ar:["تغيير لون ذيل الرينكو الصاعد"]}},79604:e=>{e.exports={en:["change renko wick visibility"],ar:["تغيير وضوح ذيل الرينكو"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],ar:["تغيير رؤية العلامة المائية لإعادة التشغيل"]}},82946:e=>{e.exports={en:["change right margin"],ar:["تغيير الهامش الأيمن"]}},79545:e=>{e.exports={en:["change right margin percentage"],ar:["تغيير نسبة الهامش الأيمن"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],ar:["تغيير رؤية العلامة المائية للرمز"]}},78995:e=>{e.exports={en:["change symbol watermark color"],ar:["تغيير لون علامة الرمز"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],ar:["تغيير وضوح علامة الرمز"]}},88167:e=>{e.exports={en:["change symbol description visibility"],ar:["تغيير وضوح وصف رمز"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],ar:["تغيير الرمز والوصف ورؤية العلامة المائية"]}},12050:e=>{e.exports={en:["change symbol field visibility"],ar:["تغيير وضوح حقل الرمز"]}},46066:e=>{e.exports={en:["change symbol last value mode"],ar:["تغيير وضع آخر قيمة للرمز"]}},902:e=>{e.exports={en:["change symbol legend format"],ar:["تغيير تنسيق مفتاح التوضيح الرمز"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],ar:["تغيير موضع الحافة اليسرى لمخطط الحفظ عند تغيير الفاصل الزمني"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],ar:["تغيير وضوح أزرار أوضاع المقياس"]}},76131:e=>{e.exports={en:["change scales text color"],ar:["تغيير لون نص المقاييس"]}},27792:e=>{e.exports={en:["change scales font size"],ar:["تغيير حجم خط المقاييس"]}},94997:e=>{e.exports={en:["change scales lines color"],ar:["تغيير لون خطوط المقاييس"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],ar:["تغيير وضوح فواصل الجلسات"]}},28175:e=>{e.exports={en:["change sessions breaks width"],ar:["تغيير عرض فواصل الجلسات"]}},33895:e=>{e.exports={en:["change sessions breaks color"],ar:["تغيير وضوح لون فواصل الجلسات"]}},21641:e=>{e.exports={en:["change sessions breaks style"],ar:["تغيير نمط فواصل الجلسات"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],ar:["تغيير عرض الأسعار الحقيقية على مقياس السعر (بدلًا من سعر هيكن آشي)"]}},60834:e=>{e.exports={en:["change thin bars"],ar:["تغيير الأعمدة الرقيقة"]}},39754:e=>{e.exports={en:["change time hours format"],ar:["تغيير تنسيق الساعات"]}},74883:e=>{e.exports={en:["change top margin"],ar:["تغيير الهامش العلوي"]}},51250:e=>{e.exports={en:["change unit label visibility"],ar:["تغيير وضوح ملصقات الوحدة"]}},28142:e=>{e.exports={en:["change use custom bar change colors"]}},71805:e=>{e.exports={en:["change vert grid lines color"],ar:["تغيير لون خطوط الشبكة العمودية"]}},96201:e=>{e.exports={en:["change volume values visibility"],ar:["تغيير وضوح قيم الحجم"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],ar:["تغيير لون حدود {candleType} الصاعد"]}},36697:e=>{e.exports={en:["change {candleType} up color"], +ar:["تغيير لون {candleType} الصاعد"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],ar:["تغيير لون ذيل {candleType} الهابط"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],ar:["تغيير لون ذيل {candleType} الصاعد"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],ar:["تغيير وضوح ذيل {candleType}"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],ar:["تغيير وضوح الجسم {candleType}"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],ar:["تغيير وضوح حدود {candleType}"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],ar:["تغيير لون حدود {candleType} الهابط"]}},64571:e=>{e.exports={en:["change {candleType} down color"],ar:["تغيير لون {candleType} الهابط"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],ar:["تغيير لون حدود عمود {chartType} الهابط"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],ar:["تغيير لون حدود عمود {chartType} الصاعد"]}},5012:e=>{e.exports={en:["change {chartType} down color"],ar:["تغيير لون {chartType} الهابط"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],ar:["تغيير لون الإسقاط لحدود عمود {chartType} الصاعد"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],ar:["تغيير لون عمود الإسقاط {chartType} الهابط"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],ar:["تغيير لون عمود الإسقاط {chartType} الصاعد"]}},6970:e=>{e.exports={en:["change {chartType} up color"],ar:["تغيير لون {chartType} الصاعد"]}},66110:e=>{e.exports={en:["change {inputName} property"],ar:["تغيير خاصية {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],ar:["ضبط لبيانات توزيعات الأرباح"]}},1433:e=>{e.exports={en:["adjust for contract changes"],ar:["ضبط لتغييرات العقد"]}},92598:e=>{e.exports={en:["hollow candles"],ar:["شموع مفرغة"]}},57243:e=>{e.exports={en:["range","ranges"],ar:["نطاق","نطاق","نطاق","نطاقات","نطاق","نطاق"]}},70282:e=>{e.exports={en:["renko"],ar:["رينكو"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],ar:["استخدام التسوية عند الإغلاق على الفاصل الزمني اليومي"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],ar:["{value} عشرية","{value} عشرية","{value} عشرية","{value} عشرية","{value} عشرية","{value} عشرية"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/ca_ES.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/ca_ES.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index 3d04c1b2..00000000 --- a/charting_library/bundles/ca_ES.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,8 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:e=>{e.exports={en:["bars"],ca_ES:["barres"]}},31882:e=>{e.exports={en:["12-hours"],ca_ES:["12 hores"]}},5797:e=>{e.exports={en:["24-hours"],ca_ES:["24 hores"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],ca_ES:["Color de barres en funció del tancament anterior"]}},23739:e=>{e.exports={en:["Canvas"]}},24197:e=>{e.exports={en:["Center"],ca_ES:["Centre"]}},15153:e=>{e.exports={en:["Chart basic styles"],ca_ES:["Estils bàsics del gràfic"]}},45639:e=>{e.exports={en:["Chart values"]}},84831:e=>{e.exports={en:["Close line"]}},74622:e=>{e.exports={en:["Crosshair"],ca_ES:["Retícula"]}},81849:e=>{e.exports={en:["Currency"],ca_ES:["Divisa"]}},3015:e=>{e.exports={en:["Currency and Unit"],ca_ES:["Divisa i unitat"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],ca_ES:["Ajusta dades dels dividends"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],ca_ES:["Ajusta els canvis dels contractes"]}},36620:e=>{e.exports={en:["Alerts"],ca_ES:["Alertes"]}},68650:e=>{e.exports={en:["Average close"],ca_ES:["Tancament mitjà"]}},27567:e=>{e.exports={en:["Bottom"],ca_ES:["Part inferior"]}},3159:e=>{e.exports={en:["Bottom line"],ca_ES:["Línia inferior"]}},74406:e=>{e.exports={en:["Body"],ca_ES:["Cos"]}},333:e=>{e.exports={en:["Borders"],ca_ES:["Vores"]}},79468:e=>{e.exports={en:["Background"],ca_ES:["Fons"]}},10842:e=>{e.exports={en:["Bar change values"],ca_ES:["Valors dels canvis a la barra"]}},28975:e=>{e.exports={en:["Base level"],ca_ES:["Nivell de la base"]}},76473:e=>{e.exports={en:["Bid and ask"],ca_ES:["Compra i venda (bid/ask)"]}},32744:e=>{e.exports={en:["Buttons"],ca_ES:["Botons"]}},68662:e=>{e.exports={en:["Grid lines"]}},17611:e=>{e.exports={en:["Down bars"],ca_ES:["Barres descendents"]}},23743:e=>{e.exports={en:["Down color"],ca_ES:["Color inferior"]}},48225:e=>{e.exports={en:["Data modification"],ca_ES:["Modificació de dades"]}},84838:e=>{e.exports={en:["Date format"],ca_ES:["Format de data"]}},42357:e=>{e.exports={en:["Day of week on labels"],ca_ES:["Dia de la setmana a les etiquetes"]}},16564:e=>{e.exports={en:["Default"],ca_ES:["Predeterminat"]}},78734:e=>{e.exports={en:["Description"],ca_ES:["Descripció"]}},67036:e=>{e.exports={en:["Display inactivity gaps"]}},59777:e=>{e.exports={en:["Electronic trading hours background"]}},69808:e=>{e.exports={en:["Events"],ca_ES:["Esdeveniments"]}},41129:e=>{e.exports={en:["Fill"],ca_ES:["Omplir"]}},61112:e=>{e.exports={en:["Fill top area"],ca_ES:["Reomple l'àrea superior"]}},73185:e=>{e.exports={en:["Fill bottom area"],ca_ES:["Omple l'àrea inferior"]}},3160:e=>{e.exports={en:["Horizontal"],ca_ES:["Horitzontal"]}},61900:e=>{e.exports={en:["Horz only"]}},14180:e=>{e.exports={en:["High and low"],ca_ES:["Màxim i mínim"]}},56359:e=>{e.exports={en:["High line"]}},47326:e=>{e.exports={en:["Integer"]}},17854:e=>{e.exports={en:["Interval"]}},84549:e=>{e.exports={en:["Indicators"],ca_ES:["Indicadors"]}},78082:e=>{e.exports={en:["Indicators and financials"]}},21429:e=>{e.exports={ -en:["Inputs"],ca_ES:["Entrades de dades"]}},25765:e=>{e.exports={en:["Open market status"],ca_ES:["Estat del mercat obert"]}},34579:e=>{e.exports={en:["Low line"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"]}},72423:e=>{e.exports={en:["Last day change values"]}},11626:e=>{e.exports={en:["Left"],ca_ES:["Esquerra"]}},56982:e=>{e.exports={en:["Lines"],ca_ES:["Línies"]}},8249:e=>{e.exports={en:["Money"]}},70937:e=>{e.exports={en:["Margins"],ca_ES:["Marges"]}},68833:e=>{e.exports={en:["Middle"],ca_ES:["Al mig"]}},58589:e=>{e.exports={en:["No overlapping labels"]}},60798:e=>{e.exports={en:["None"]}},51019:e=>{e.exports={en:["Navigation"],ca_ES:["Navegació"]}},99709:e=>{e.exports={en:["Name"],ca_ES:["Nom"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"]}},93968:e=>{e.exports={en:["Scales"],ca_ES:["Escales"]}},90275:e=>{e.exports={en:["Scales and lines"]}},30042:e=>{e.exports={en:["Scales placement"],ca_ES:["Col·locació d'escales"]}},28715:e=>{e.exports={en:["Status line"],ca_ES:["Línia d'estat"]}},95481:e=>{e.exports={en:["Symbol"],ca_ES:["Símbol"]}},53263:e=>{e.exports={en:["Pane"],ca_ES:["Quadre"]}},82894:e=>{e.exports={en:["Pane separators"],ca_ES:["Separadors del quadre"]}},86235:e=>{e.exports={en:["Percentage"],ca_ES:["Percentatge"]}},94408:e=>{e.exports={en:["Pips"]}},60904:e=>{e.exports={en:["Pre/post market"],ca_ES:["Pre/post mercat"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],ca_ES:["Informació horària pre/post mercat"]}},59766:e=>{e.exports={en:["Precision"],ca_ES:["Precisió"]}},83811:e=>{e.exports={en:["Previous day close"],ca_ES:["Tancament del dia anterior"]}},35082:e=>{e.exports={en:["Price Scale"],ca_ES:["Escala de preus"]}},27632:e=>{e.exports={en:["Price and percentage value"],ca_ES:["Preu i valor percentual"]}},62142:e=>{e.exports={en:["Price labels & lines"]}},84684:e=>{e.exports={en:["Price source"],ca_ES:["Font dels preus"]}},73466:e=>{e.exports={en:["Projection up bars"],ca_ES:["Barres superiors de projecció"]}},77430:e=>{e.exports={en:["Projection candles"]}},88367:e=>{e.exports={en:["Projection down bars"],ca_ES:["Barres de projecció descendents"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],ca_ES:["Preus reals a l'escala (en lloc del preu Heikin Ashi)"]}},50421:e=>{e.exports={en:["Right"],ca_ES:["Dreta"]}},62532:e=>{e.exports={en:["Right Margin"]}},41571:e=>{e.exports={en:["Watermark"],ca_ES:["Marca d'aigua"]}},32163:e=>{e.exports={en:["Wick"],ca_ES:["Metxa"]}},97118:e=>{e.exports={en:["Top"],ca_ES:["Part superior"]}},89349:e=>{e.exports={en:["Top line"],ca_ES:["Línia superior"]}},70320:e=>{e.exports={en:["Text"]}},25485:e=>{e.exports={en:["Text alignment"],ca_ES:["Alineació del text"]}},67781:e=>{e.exports={en:["Text orientation"],ca_ES:["Orientació del text"]}},20215:e=>{e.exports={en:["Thin bars"],ca_ES:["Barres fines"]}},70198:e=>{e.exports={en:["Title"],ca_ES:["Títol"]}},29854:e=>{e.exports={en:["Titles"], -ca_ES:["Títols"]}},5791:e=>{e.exports={en:["Ticker"],ca_ES:["Tíquer"]}},16816:e=>{e.exports={en:["Ticker and description"],ca_ES:["Tíquer i descripció"]}},24821:e=>{e.exports={en:["Ticks"]}},93965:e=>{e.exports={en:["Time Scale"],ca_ES:["Escala de temps"]}},5591:e=>{e.exports={en:["Time hours format"],ca_ES:["Format de les hores"]}},77073:e=>{e.exports={en:["Timezone"],ca_ES:["Zona horària"]}},76495:e=>{e.exports={en:["Trading"]}},33564:e=>{e.exports={en:["Unit"],ca_ES:["Unitat"]}},23091:e=>{e.exports={en:["Up color"],ca_ES:["Color superior"]}},36957:e=>{e.exports={en:["Up bars"],ca_ES:["Barres superiors"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],ca_ES:["Fer servir la liquidació com a tancament en intervals diaris"]}},37644:e=>{e.exports={en:["Volume"],ca_ES:["Volum"]}},51514:e=>{e.exports={en:["Value"],ca_ES:["Valor"]}},31218:e=>{e.exports={en:["Value according to scale"],ca_ES:["Valor conforme a l'escala"]}},60092:e=>{e.exports={en:["Values"],ca_ES:["Valors"]}},83594:e=>{e.exports={en:["Vert and horz"]}},8402:e=>{e.exports={en:["Vert only"]}},69526:e=>{e.exports={en:["Vertical"]}},21105:e=>{e.exports={en:["candle"],ca_ES:["espelma"]}},27068:e=>{e.exports={en:["change HLC bars"],ca_ES:["canvia les barres HLC"]}},21201:e=>{e.exports={en:["change HLC bars color"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],ca_ES:["canvia la visibilitat dels botons de navegació"]}},96227:e=>{e.exports={en:["change open market status visibility"],ca_ES:["canvia la visibilitat de l'estat de mercat obert"]}},43231:e=>{e.exports={en:["change average close price line width"],ca_ES:["canvia ample de la línia del preu mitjà de tancament"]}},47026:e=>{e.exports={en:["change average close price line color"],ca_ES:["canvia color de la línia del preu mitjà de tancament"]}},29281:e=>{e.exports={en:["change area fill color"],ca_ES:["canvia el color de fons de l'àrea"]}},27059:e=>{e.exports={en:["change area line visibility"]}},89346:e=>{e.exports={en:["change area line width"],ca_ES:["canvia l'ample de la línia de l'àrea"]}},29605:e=>{e.exports={en:["change area line color"],ca_ES:["canvia el color de la línia de l'àrea"]}},56864:e=>{e.exports={en:["change area line style"]}},4640:e=>{e.exports={en:["change area price source"],ca_ES:["canvia la font dels preus de l'àrea"]}},98407:e=>{e.exports={en:["change ask line color"],ca_ES:["canvia el color de la línia de venda (ask)"]}},42190:e=>{e.exports={en:["change base level"],ca_ES:["canvia el nivell de referència"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],ca_ES:["canvia el color de la línia inferior de la línia de referència"]}},85684:e=>{e.exports={en:["change baseline bottom line style"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],ca_ES:["canvia l'ample de la línia inferior de la línia de referència"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],ca_ES:["canvia el color de fons de l'àrea inferior de la línia de referència"]}},92873:e=>{e.exports={ -en:["change baseline fill top area color"],ca_ES:["canvia el color de fons de l'àrea superior de la línia de referència"]}},68609:e=>{e.exports={en:["change baseline price source"],ca_ES:["canvia la font de preus de referència"]}},69044:e=>{e.exports={en:["change baseline top line color"],ca_ES:["canvia el color de la línia superior de la línia de referència"]}},4425:e=>{e.exports={en:["change baseline top line style"]}},68197:e=>{e.exports={en:["change baseline top line width"],ca_ES:["canvia l'ample de la línia superior de la línia de referència"]}},33464:e=>{e.exports={en:["change bar up color"],ca_ES:["canvia el color superior de la barra"]}},27426:e=>{e.exports={en:["change bar change visibility"],ca_ES:["canvia la visibilitat del canvi de barra"]}},59622:e=>{e.exports={en:["change bar down color"],ca_ES:["canvia el color inferior de la barra"]}},17919:e=>{e.exports={en:["change bid line color"],ca_ES:["canvia el color de la línia de compra (bid)"]}},32094:e=>{e.exports={en:["change bottom margin"],ca_ES:["canvia el marge inferior"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],ca_ES:["canvia la visibilitat de les etiquetes de divises i unitats"]}},64003:e=>{e.exports={en:["change currency label visibility"],ca_ES:["canvia la visibilitat de l'etiqueta de divises"]}},42803:e=>{e.exports={en:["change chart background color"],ca_ES:["canvia el color de fons del gràfic"]}},41382:e=>{e.exports={en:["change chart background type"],ca_ES:["canvia el tipus de fons del gràfic"]}},79637:e=>{e.exports={en:["change chart values visibility"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],ca_ES:["canvia el color de les barres en funció del valor de tancament anterior"]}},88324:e=>{e.exports={en:["change column up color"],ca_ES:["canvia color superior de la columna"]}},93890:e=>{e.exports={en:["change column down color"],ca_ES:["canvia color inferior de la columna"]}},4727:e=>{e.exports={en:["change column price source"],ca_ES:["canvia la font del preu de la columna"]}},50544:e=>{e.exports={en:["change crosshair width"],ca_ES:["canvia l'ample de la retícula"]}},92885:e=>{e.exports={en:["change crosshair color"],ca_ES:["canvia el color de la retícula"]}},68418:e=>{e.exports={en:["change crosshair style"],ca_ES:["canvia l'estil de la retícula"]}},43109:e=>{e.exports={en:["change date format"],ca_ES:["canviar el format de data"]}},30418:e=>{e.exports={en:["change day of week on labels"],ca_ES:["canvia dia de la setmana a les etiquetes"]}},82063:e=>{e.exports={en:["change decimal places"],ca_ES:["canvia les posicions decimals"]}},45397:e=>{e.exports={en:["change extended hours color"],ca_ES:["canvia el color de l'horari amplicat"]}},47393:e=>{e.exports={en:["change electronic trading hours"]}},73844:e=>{e.exports={en:["change grid lines visibility"]}},61407:e=>{e.exports={en:["change high and low price line color"],ca_ES:["canvia color de la línia de preu màxim i mínim"]}},39581:e=>{e.exports={en:["change high and low price line width"], -ca_ES:["canvia ample de la línia de preus màxims i mínims"]}},6026:e=>{e.exports={en:["change high-low body color"],ca_ES:["canvia el color del cos de màxims i mínims"]}},73021:e=>{e.exports={en:["change high-low body visibility"],ca_ES:["canvia la visibilitat del cos de màxims i mínims"]}},46844:e=>{e.exports={en:["change high-low border color"],ca_ES:["canviar el color de la vora de màxims i mínims"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],ca_ES:["canvia la visibilitat de les vores de màxims i mínims"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],ca_ES:["canvia la visibilitat de les etiquetes de màxims i mínims"]}},56961:e=>{e.exports={en:["change high-low labels color"],ca_ES:["canvia el color de les etiquetes de màxims i mínims"]}},21133:e=>{e.exports={en:["change horz grid lines color"],ca_ES:["canvia el color de les línies de la quadrícula horitzontal"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],ca_ES:["canvia la visibilitat dels títols dels indicadors"]}},49583:e=>{e.exports={en:["change indicator values visibility"],ca_ES:["canvia la visibilitat dels valors dels indicadors"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],ca_ES:["canvia la visibilitat de les etiquetes amb el nom dels indicadors i de la informació financera"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],ca_ES:["canvia la visibilitat de les etiquetes amb el valor dels indicadors i la informació financera"]}},451:e=>{e.exports={en:["change interval watermark visibility"]}},66307:e=>{e.exports={en:["change last day change visibility"]}},91873:e=>{e.exports={en:["change legend background transparency"],ca_ES:["canvia la transparència del fons de la llegenda"]}},14246:e=>{e.exports={en:["change legend background visibility"],ca_ES:["canvia la visibilitat del fons de la llegenda"]}},88640:e=>{e.exports={en:["change line color"],ca_ES:["canvia el color de línia"]}},28818:e=>{e.exports={en:["change line style"],ca_ES:["canvia l'estil de la línia"]}},41837:e=>{e.exports={en:["change line price source"],ca_ES:["canvia la font de preus de la línia"]}},48339:e=>{e.exports={en:["change line width"],ca_ES:["canvia l'ample de línia"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],ca_ES:["canvia la visibilitat dels botons del quadre"]}},52203:e=>{e.exports={en:["change pane separators color"],ca_ES:["Canvia el color dels separadors de quadres"]}},38730:e=>{e.exports={en:["change post market color"],ca_ES:["canvia el color postmercat"]}},28075:e=>{e.exports={en:["change post market line color"],ca_ES:["canvia el color de la línia postmercat"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],ca_ES:["canvia la visibilitat de les línies de preus pre/post mercat"]}},44371:e=>{e.exports={en:["change pre market color"],ca_ES:["canvia el color de la sessió premercat"]}},96114:e=>{e.exports={ -en:["change pre market line color"],ca_ES:["canvia el color de la línia de la sessió premercat"]}},69814:e=>{e.exports={en:["change previous close price line color"],ca_ES:["canvia el color de la línia amb el preu de tancament anterior"]}},13660:e=>{e.exports={en:["change previous close price line width"],ca_ES:["canvia l'ample de la línia amb el preu de tancament anterior"]}},87861:e=>{e.exports={en:["change price line color"],ca_ES:["canvia el color de la línia de preus"]}},29353:e=>{e.exports={en:["change price line width"],ca_ES:["canvia l'ample de la línia de preus"]}},16241:e=>{e.exports={en:["change range bars style"]}},65821:e=>{e.exports={en:["change range thin bars"],ca_ES:["canvia el rang de les barres fines"]}},75487:e=>{e.exports={en:["change renko wick down color"],ca_ES:["canvia el color inferior de la metxa renko"]}},92277:e=>{e.exports={en:["change renko wick up color"],ca_ES:["canvia el color inferior de la metxa renko"]}},79604:e=>{e.exports={en:["change renko wick visibility"],ca_ES:["canvia la visibilitat de les metxes renko"]}},66021:e=>{e.exports={en:["change replay watermark visibility"]}},82946:e=>{e.exports={en:["change right margin"],ca_ES:["canvia el marge dret"]}},79545:e=>{e.exports={en:["change right margin percentage"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"]}},78995:e=>{e.exports={en:["change symbol watermark color"],ca_ES:["canvia el color de la marca d'aigua del símbol"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],ca_ES:["canvia la visibilitat de la marca d'aigua del símbol"]}},88167:e=>{e.exports={en:["change symbol description visibility"],ca_ES:["canvia la visibilitat de la descripció del símbol"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"]}},12050:e=>{e.exports={en:["change symbol field visibility"]}},46066:e=>{e.exports={en:["change symbol last value mode"],ca_ES:["canvia el mode de l'últim valor del símbol"]}},902:e=>{e.exports={en:["change symbol legend format"],ca_ES:["canvia el format de la llegenda del símbol"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"]}},76131:e=>{e.exports={en:["change scales text color"],ca_ES:["canvia el color del text de l'escala"]}},27792:e=>{e.exports={en:["change scales font size"],ca_ES:["canvia la mida de la font de l'escala"]}},94997:e=>{e.exports={en:["change scales lines color"],ca_ES:["canvia el color de la línia de l'escala"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],ca_ES:["canvia la visibilitat dels trencaments de les sessions"]}},28175:e=>{e.exports={en:["change sessions breaks width"],ca_ES:["canvia l'ample dels trencaments de les sessions"]}},33895:e=>{e.exports={en:["change sessions breaks color"],ca_ES:["canvia el color del trencament de les sessions"]}},21641:e=>{e.exports={en:["change sessions breaks style"],ca_ES:["canvia l'estil dels trencaments de les sessions"]}},16660:e=>{e.exports={ -en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],ca_ES:["canvia la visualització dels preus reals en l'escala de preus (en lloc del preu Heiken-Ashi)"]}},60834:e=>{e.exports={en:["change thin bars"],ca_ES:["canvia les barres fines"]}},39754:e=>{e.exports={en:["change time hours format"],ca_ES:["canvia el format de les hores"]}},74883:e=>{e.exports={en:["change top margin"],ca_ES:["canvia el marge superior"]}},51250:e=>{e.exports={en:["change unit label visibility"],ca_ES:["canvia la visibilitat de l'etiqueta d'unitats"]}},71805:e=>{e.exports={en:["change vert grid lines color"],ca_ES:["canvia el color de les línies de la quadrícula vertical"]}},96201:e=>{e.exports={en:["change volume values visibility"],ca_ES:["canvia la visibilitat dels valors de volum"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],ca_ES:["canvia el color de la vora superior de {candleType}"]}},36697:e=>{e.exports={en:["change {candleType} up color"],ca_ES:["canvia el color superior de {candleType}"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],ca_ES:["canvia el color inferior de la metxa de {candleType}"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],ca_ES:["canvia el color superior de la metxa de {candleType}"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],ca_ES:["canvia la visibilitat de la metxa {candleType}"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],ca_ES:["canvia la visibilitat del cos de {candleType}"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],ca_ES:["canvia la visibilitat de la vora de {candleType}"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],ca_ES:["canvia el color de la vora inferior de {candleType}"]}},64571:e=>{e.exports={en:["change {candleType} down color"],ca_ES:["canvia el color inferior de {candleType}"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],ca_ES:["canvia el color inferior de la vora de la barra de {chartType}"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],ca_ES:["canvia el color superior de la vora de la barra de {chartType}"]}},5012:e=>{e.exports={en:["change {chartType} down color"],ca_ES:["canvia el color inferior de {chartType}"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],ca_ES:["canvia el color superior de la vora de la barra de projecció de {chartType}"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],ca_ES:["canvia el color inferior de la barra de projecció de {chartType}"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],ca_ES:["canvia el color superior de la barra de projecció de {chartType}"]}},6970:e=>{e.exports={en:["change {chartType} up color"],ca_ES:["canvia el color superior de {chartType}"]}},66110:e=>{e.exports={en:["change {inputName} property"],ca_ES:["canvia propietat de {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],ca_ES:["ajusta dades dels dividends"]} -},1433:e=>{e.exports={en:["adjust for contract changes"],ca_ES:["ajusta per a canvis de contractes"]}},92598:e=>{e.exports={en:["hollow candles"],ca_ES:["espelmes buides"]}},57243:e=>{e.exports={en:["range","ranges"],ca_ES:["rang","rangs"]}},70282:e=>{e.exports={en:["renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],ca_ES:["fes servir la liquidació com a tancament en intervals diaris"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/ca_ES.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/ca_ES.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..d84b3a75 --- /dev/null +++ b/charting_library/bundles/ca_ES.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,8 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:e=>{e.exports={en:["bars"],ca_ES:["barres"]}},31882:e=>{e.exports={en:["12-hours"],ca_ES:["12 hores"]}},5797:e=>{e.exports={en:["24-hours"],ca_ES:["24 hores"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],ca_ES:["Color de barres en funció del tancament anterior"]}},23739:e=>{e.exports={en:["Canvas"]}},24197:e=>{e.exports={en:["Center"],ca_ES:["Centre"]}},15153:e=>{e.exports={en:["Chart basic styles"],ca_ES:["Estils bàsics del gràfic"]}},45639:e=>{e.exports={en:["Chart values"]}},84831:e=>{e.exports={en:["Close line"]}},74622:e=>{e.exports={en:["Crosshair"],ca_ES:["Retícula"]}},81849:e=>{e.exports={en:["Currency"],ca_ES:["Divisa"]}},3015:e=>{e.exports={en:["Currency and Unit"],ca_ES:["Divisa i unitat"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],ca_ES:["Ajusta dades dels dividends"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],ca_ES:["Ajusta els canvis dels contractes"]}},36620:e=>{e.exports={en:["Alerts"],ca_ES:["Alertes"]}},68650:e=>{e.exports={en:["Average close"],ca_ES:["Tancament mitjà"]}},27567:e=>{e.exports={en:["Bottom"],ca_ES:["Part inferior"]}},3159:e=>{e.exports={en:["Bottom line"],ca_ES:["Línia inferior"]}},74406:e=>{e.exports={en:["Body"],ca_ES:["Cos"]}},333:e=>{e.exports={en:["Borders"],ca_ES:["Vores"]}},79468:e=>{e.exports={en:["Background"],ca_ES:["Fons"]}},10842:e=>{e.exports={en:["Bar change values"],ca_ES:["Valors dels canvis a la barra"]}},70817:e=>{e.exports={en:["Bar change color based on value"]}},28975:e=>{e.exports={en:["Base level"],ca_ES:["Nivell de la base"]}},76473:e=>{e.exports={en:["Bid and ask"],ca_ES:["Compra i venda (bid/ask)"]}},32744:e=>{e.exports={en:["Buttons"],ca_ES:["Botons"]}},68662:e=>{e.exports={en:["Grid lines"]}},17611:e=>{e.exports={en:["Down bars"],ca_ES:["Barres descendents"]}},23743:e=>{e.exports={en:["Down color"],ca_ES:["Color inferior"]}},48225:e=>{e.exports={en:["Data modification"],ca_ES:["Modificació de dades"]}},84838:e=>{e.exports={en:["Date format"],ca_ES:["Format de data"]}},42357:e=>{e.exports={en:["Day of week on labels"],ca_ES:["Dia de la setmana a les etiquetes"]}},16564:e=>{e.exports={en:["Default"],ca_ES:["Predeterminat"]}},78734:e=>{e.exports={en:["Description"],ca_ES:["Descripció"]}},67036:e=>{e.exports={en:["Display inactivity gaps"]}},59777:e=>{e.exports={en:["Electronic trading hours background"]}},69808:e=>{e.exports={en:["Events"],ca_ES:["Esdeveniments"]}},41129:e=>{e.exports={en:["Fill"],ca_ES:["Omplir"]}},61112:e=>{e.exports={en:["Fill top area"],ca_ES:["Reomple l'àrea superior"]}},73185:e=>{e.exports={en:["Fill bottom area"],ca_ES:["Omple l'àrea inferior"]}},3160:e=>{e.exports={en:["Horizontal"],ca_ES:["Horitzontal"]}},61900:e=>{e.exports={en:["Horz only"]}},14180:e=>{e.exports={en:["High and low"],ca_ES:["Màxim i mínim"]}},56359:e=>{e.exports={en:["High line"]}},47326:e=>{e.exports={en:["Integer"]}},17854:e=>{e.exports={en:["Interval"]}},84549:e=>{e.exports={en:["Indicators"],ca_ES:["Indicadors"]}},78082:e=>{ +e.exports={en:["Indicators and financials"]}},21429:e=>{e.exports={en:["Inputs"],ca_ES:["Entrades de dades"]}},25765:e=>{e.exports={en:["Open market status"],ca_ES:["Estat del mercat obert"]}},34579:e=>{e.exports={en:["Low line"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"]}},72423:e=>{e.exports={en:["Last day change values"]}},11626:e=>{e.exports={en:["Left"],ca_ES:["Esquerra"]}},56982:e=>{e.exports={en:["Lines"],ca_ES:["Línies"]}},8249:e=>{e.exports={en:["Money"]}},70937:e=>{e.exports={en:["Margins"],ca_ES:["Marges"]}},68833:e=>{e.exports={en:["Middle"],ca_ES:["Al mig"]}},58589:e=>{e.exports={en:["No overlapping labels"]}},60798:e=>{e.exports={en:["None"]}},51019:e=>{e.exports={en:["Navigation"],ca_ES:["Navegació"]}},99709:e=>{e.exports={en:["Name"],ca_ES:["Nom"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"]}},93968:e=>{e.exports={en:["Scales"],ca_ES:["Escales"]}},90275:e=>{e.exports={en:["Scales and lines"]}},30042:e=>{e.exports={en:["Scales placement"],ca_ES:["Col·locació d'escales"]}},28715:e=>{e.exports={en:["Status line"],ca_ES:["Línia d'estat"]}},95481:e=>{e.exports={en:["Symbol"],ca_ES:["Símbol"]}},53263:e=>{e.exports={en:["Pane"],ca_ES:["Quadre"]}},82894:e=>{e.exports={en:["Pane separators"],ca_ES:["Separadors del quadre"]}},86235:e=>{e.exports={en:["Percentage"],ca_ES:["Percentatge"]}},94408:e=>{e.exports={en:["Pips"]}},60904:e=>{e.exports={en:["Pre/post market"],ca_ES:["Pre/post mercat"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],ca_ES:["Informació horària pre/post mercat"]}},59766:e=>{e.exports={en:["Precision"],ca_ES:["Precisió"]}},83811:e=>{e.exports={en:["Previous day close"],ca_ES:["Tancament del dia anterior"]}},35082:e=>{e.exports={en:["Price Scale"],ca_ES:["Escala de preus"]}},27632:e=>{e.exports={en:["Price and percentage value"],ca_ES:["Preu i valor percentual"]}},62142:e=>{e.exports={en:["Price labels & lines"]}},84684:e=>{e.exports={en:["Price source"],ca_ES:["Font dels preus"]}},73466:e=>{e.exports={en:["Projection up bars"],ca_ES:["Barres superiors de projecció"]}},77430:e=>{e.exports={en:["Projection candles"]}},88367:e=>{e.exports={en:["Projection down bars"],ca_ES:["Barres de projecció descendents"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],ca_ES:["Preus reals a l'escala (en lloc del preu Heikin Ashi)"]}},50421:e=>{e.exports={en:["Right"],ca_ES:["Dreta"]}},62532:e=>{e.exports={en:["Right Margin"]}},41571:e=>{e.exports={en:["Watermark"],ca_ES:["Marca d'aigua"]}},32163:e=>{e.exports={en:["Wick"],ca_ES:["Metxa"]}},97118:e=>{e.exports={en:["Top"],ca_ES:["Part superior"]}},89349:e=>{e.exports={en:["Top line"],ca_ES:["Línia superior"]}},70320:e=>{e.exports={en:["Text"]}},25485:e=>{e.exports={en:["Text alignment"],ca_ES:["Alineació del text"]}},67781:e=>{e.exports={en:["Text orientation"],ca_ES:["Orientació del text"]}},20215:e=>{e.exports={en:["Thin bars"],ca_ES:["Barres fines"]}},70198:e=>{e.exports={ +en:["Title"],ca_ES:["Títol"]}},29854:e=>{e.exports={en:["Titles"],ca_ES:["Títols"]}},5791:e=>{e.exports={en:["Ticker"],ca_ES:["Tíquer"]}},16816:e=>{e.exports={en:["Ticker and description"],ca_ES:["Tíquer i descripció"]}},24821:e=>{e.exports={en:["Ticks"]}},93965:e=>{e.exports={en:["Time Scale"],ca_ES:["Escala de temps"]}},5591:e=>{e.exports={en:["Time hours format"],ca_ES:["Format de les hores"]}},77073:e=>{e.exports={en:["Timezone"],ca_ES:["Zona horària"]}},76495:e=>{e.exports={en:["Trading"]}},33564:e=>{e.exports={en:["Unit"],ca_ES:["Unitat"]}},23091:e=>{e.exports={en:["Up color"],ca_ES:["Color superior"]}},36957:e=>{e.exports={en:["Up bars"],ca_ES:["Barres superiors"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],ca_ES:["Fer servir la liquidació com a tancament en intervals diaris"]}},37644:e=>{e.exports={en:["Volume"],ca_ES:["Volum"]}},51514:e=>{e.exports={en:["Value"],ca_ES:["Valor"]}},31218:e=>{e.exports={en:["Value according to scale"],ca_ES:["Valor conforme a l'escala"]}},60092:e=>{e.exports={en:["Values"],ca_ES:["Valors"]}},83594:e=>{e.exports={en:["Vert and horz"]}},8402:e=>{e.exports={en:["Vert only"]}},69526:e=>{e.exports={en:["Vertical"]}},21105:e=>{e.exports={en:["candle"],ca_ES:["espelma"]}},27068:e=>{e.exports={en:["change HLC bars"],ca_ES:["canvia les barres HLC"]}},21201:e=>{e.exports={en:["change HLC bars color"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],ca_ES:["canvia la visibilitat dels botons de navegació"]}},96227:e=>{e.exports={en:["change open market status visibility"],ca_ES:["canvia la visibilitat de l'estat de mercat obert"]}},43231:e=>{e.exports={en:["change average close price line width"],ca_ES:["canvia ample de la línia del preu mitjà de tancament"]}},47026:e=>{e.exports={en:["change average close price line color"],ca_ES:["canvia color de la línia del preu mitjà de tancament"]}},29281:e=>{e.exports={en:["change area fill color"],ca_ES:["canvia el color de fons de l'àrea"]}},27059:e=>{e.exports={en:["change area line visibility"]}},89346:e=>{e.exports={en:["change area line width"],ca_ES:["canvia l'ample de la línia de l'àrea"]}},29605:e=>{e.exports={en:["change area line color"],ca_ES:["canvia el color de la línia de l'àrea"]}},56864:e=>{e.exports={en:["change area line style"]}},4640:e=>{e.exports={en:["change area price source"],ca_ES:["canvia la font dels preus de l'àrea"]}},98407:e=>{e.exports={en:["change ask line color"],ca_ES:["canvia el color de la línia de venda (ask)"]}},42190:e=>{e.exports={en:["change base level"],ca_ES:["canvia el nivell de referència"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],ca_ES:["canvia el color de la línia inferior de la línia de referència"]}},85684:e=>{e.exports={en:["change baseline bottom line style"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],ca_ES:["canvia l'ample de la línia inferior de la línia de referència"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"], +ca_ES:["canvia el color de fons de l'àrea inferior de la línia de referència"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],ca_ES:["canvia el color de fons de l'àrea superior de la línia de referència"]}},68609:e=>{e.exports={en:["change baseline price source"],ca_ES:["canvia la font de preus de referència"]}},69044:e=>{e.exports={en:["change baseline top line color"],ca_ES:["canvia el color de la línia superior de la línia de referència"]}},4425:e=>{e.exports={en:["change baseline top line style"]}},68197:e=>{e.exports={en:["change baseline top line width"],ca_ES:["canvia l'ample de la línia superior de la línia de referència"]}},33464:e=>{e.exports={en:["change bar up color"],ca_ES:["canvia el color superior de la barra"]}},14201:e=>{e.exports={en:["change bar change down color"]}},30196:e=>{e.exports={en:["change bar change up color"]}},27426:e=>{e.exports={en:["change bar change visibility"],ca_ES:["canvia la visibilitat del canvi de barra"]}},59622:e=>{e.exports={en:["change bar down color"],ca_ES:["canvia el color inferior de la barra"]}},17919:e=>{e.exports={en:["change bid line color"],ca_ES:["canvia el color de la línia de compra (bid)"]}},32094:e=>{e.exports={en:["change bottom margin"],ca_ES:["canvia el marge inferior"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],ca_ES:["canvia la visibilitat de les etiquetes de divises i unitats"]}},64003:e=>{e.exports={en:["change currency label visibility"],ca_ES:["canvia la visibilitat de l'etiqueta de divises"]}},42803:e=>{e.exports={en:["change chart background color"],ca_ES:["canvia el color de fons del gràfic"]}},41382:e=>{e.exports={en:["change chart background type"],ca_ES:["canvia el tipus de fons del gràfic"]}},79637:e=>{e.exports={en:["change chart values visibility"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],ca_ES:["canvia el color de les barres en funció del valor de tancament anterior"]}},88324:e=>{e.exports={en:["change column up color"],ca_ES:["canvia color superior de la columna"]}},93890:e=>{e.exports={en:["change column down color"],ca_ES:["canvia color inferior de la columna"]}},4727:e=>{e.exports={en:["change column price source"],ca_ES:["canvia la font del preu de la columna"]}},50544:e=>{e.exports={en:["change crosshair width"],ca_ES:["canvia l'ample de la retícula"]}},92885:e=>{e.exports={en:["change crosshair color"],ca_ES:["canvia el color de la retícula"]}},68418:e=>{e.exports={en:["change crosshair style"],ca_ES:["canvia l'estil de la retícula"]}},43109:e=>{e.exports={en:["change date format"],ca_ES:["canviar el format de data"]}},30418:e=>{e.exports={en:["change day of week on labels"],ca_ES:["canvia dia de la setmana a les etiquetes"]}},82063:e=>{e.exports={en:["change decimal places"],ca_ES:["canvia les posicions decimals"]}},45397:e=>{e.exports={en:["change extended hours color"],ca_ES:["canvia el color de l'horari amplicat"]}},47393:e=>{e.exports={en:["change electronic trading hours"]}},73844:e=>{e.exports={en:["change grid lines visibility"]}},61407:e=>{ +e.exports={en:["change high and low price line color"],ca_ES:["canvia color de la línia de preu màxim i mínim"]}},39581:e=>{e.exports={en:["change high and low price line width"],ca_ES:["canvia ample de la línia de preus màxims i mínims"]}},6026:e=>{e.exports={en:["change high-low body color"],ca_ES:["canvia el color del cos de màxims i mínims"]}},73021:e=>{e.exports={en:["change high-low body visibility"],ca_ES:["canvia la visibilitat del cos de màxims i mínims"]}},46844:e=>{e.exports={en:["change high-low border color"],ca_ES:["canviar el color de la vora de màxims i mínims"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],ca_ES:["canvia la visibilitat de les vores de màxims i mínims"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],ca_ES:["canvia la visibilitat de les etiquetes de màxims i mínims"]}},56961:e=>{e.exports={en:["change high-low labels color"],ca_ES:["canvia el color de les etiquetes de màxims i mínims"]}},21133:e=>{e.exports={en:["change horz grid lines color"],ca_ES:["canvia el color de les línies de la quadrícula horitzontal"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],ca_ES:["canvia la visibilitat dels títols dels indicadors"]}},49583:e=>{e.exports={en:["change indicator values visibility"],ca_ES:["canvia la visibilitat dels valors dels indicadors"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],ca_ES:["canvia la visibilitat de les etiquetes amb el nom dels indicadors i de la informació financera"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],ca_ES:["canvia la visibilitat de les etiquetes amb el valor dels indicadors i la informació financera"]}},451:e=>{e.exports={en:["change interval watermark visibility"]}},66307:e=>{e.exports={en:["change last day change visibility"]}},91873:e=>{e.exports={en:["change legend background transparency"],ca_ES:["canvia la transparència del fons de la llegenda"]}},14246:e=>{e.exports={en:["change legend background visibility"],ca_ES:["canvia la visibilitat del fons de la llegenda"]}},88640:e=>{e.exports={en:["change line color"],ca_ES:["canvia el color de línia"]}},28818:e=>{e.exports={en:["change line style"],ca_ES:["canvia l'estil de la línia"]}},41837:e=>{e.exports={en:["change line price source"],ca_ES:["canvia la font de preus de la línia"]}},48339:e=>{e.exports={en:["change line width"],ca_ES:["canvia l'ample de línia"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],ca_ES:["canvia la visibilitat dels botons del quadre"]}},52203:e=>{e.exports={en:["change pane separators color"],ca_ES:["Canvia el color dels separadors de quadres"]}},38730:e=>{e.exports={en:["change post market color"],ca_ES:["canvia el color postmercat"]}},28075:e=>{e.exports={en:["change post market line color"],ca_ES:["canvia el color de la línia postmercat"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"], +ca_ES:["canvia la visibilitat de les línies de preus pre/post mercat"]}},44371:e=>{e.exports={en:["change pre market color"],ca_ES:["canvia el color de la sessió premercat"]}},96114:e=>{e.exports={en:["change pre market line color"],ca_ES:["canvia el color de la línia de la sessió premercat"]}},69814:e=>{e.exports={en:["change previous close price line color"],ca_ES:["canvia el color de la línia amb el preu de tancament anterior"]}},13660:e=>{e.exports={en:["change previous close price line width"],ca_ES:["canvia l'ample de la línia amb el preu de tancament anterior"]}},87861:e=>{e.exports={en:["change price line color"],ca_ES:["canvia el color de la línia de preus"]}},29353:e=>{e.exports={en:["change price line width"],ca_ES:["canvia l'ample de la línia de preus"]}},16241:e=>{e.exports={en:["change range bars style"]}},65821:e=>{e.exports={en:["change range thin bars"],ca_ES:["canvia el rang de les barres fines"]}},75487:e=>{e.exports={en:["change renko wick down color"],ca_ES:["canvia el color inferior de la metxa renko"]}},92277:e=>{e.exports={en:["change renko wick up color"],ca_ES:["canvia el color inferior de la metxa renko"]}},79604:e=>{e.exports={en:["change renko wick visibility"],ca_ES:["canvia la visibilitat de les metxes renko"]}},66021:e=>{e.exports={en:["change replay watermark visibility"]}},82946:e=>{e.exports={en:["change right margin"],ca_ES:["canvia el marge dret"]}},79545:e=>{e.exports={en:["change right margin percentage"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"]}},78995:e=>{e.exports={en:["change symbol watermark color"],ca_ES:["canvia el color de la marca d'aigua del símbol"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],ca_ES:["canvia la visibilitat de la marca d'aigua del símbol"]}},88167:e=>{e.exports={en:["change symbol description visibility"],ca_ES:["canvia la visibilitat de la descripció del símbol"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"]}},12050:e=>{e.exports={en:["change symbol field visibility"]}},46066:e=>{e.exports={en:["change symbol last value mode"],ca_ES:["canvia el mode de l'últim valor del símbol"]}},902:e=>{e.exports={en:["change symbol legend format"],ca_ES:["canvia el format de la llegenda del símbol"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"]}},76131:e=>{e.exports={en:["change scales text color"],ca_ES:["canvia el color del text de l'escala"]}},27792:e=>{e.exports={en:["change scales font size"],ca_ES:["canvia la mida de la font de l'escala"]}},94997:e=>{e.exports={en:["change scales lines color"],ca_ES:["canvia el color de la línia de l'escala"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],ca_ES:["canvia la visibilitat dels trencaments de les sessions"]}},28175:e=>{e.exports={en:["change sessions breaks width"],ca_ES:["canvia l'ample dels trencaments de les sessions"]}},33895:e=>{e.exports={en:["change sessions breaks color"], +ca_ES:["canvia el color del trencament de les sessions"]}},21641:e=>{e.exports={en:["change sessions breaks style"],ca_ES:["canvia l'estil dels trencaments de les sessions"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],ca_ES:["canvia la visualització dels preus reals en l'escala de preus (en lloc del preu Heiken-Ashi)"]}},60834:e=>{e.exports={en:["change thin bars"],ca_ES:["canvia les barres fines"]}},39754:e=>{e.exports={en:["change time hours format"],ca_ES:["canvia el format de les hores"]}},74883:e=>{e.exports={en:["change top margin"],ca_ES:["canvia el marge superior"]}},51250:e=>{e.exports={en:["change unit label visibility"],ca_ES:["canvia la visibilitat de l'etiqueta d'unitats"]}},28142:e=>{e.exports={en:["change use custom bar change colors"]}},71805:e=>{e.exports={en:["change vert grid lines color"],ca_ES:["canvia el color de les línies de la quadrícula vertical"]}},96201:e=>{e.exports={en:["change volume values visibility"],ca_ES:["canvia la visibilitat dels valors de volum"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],ca_ES:["canvia el color de la vora superior de {candleType}"]}},36697:e=>{e.exports={en:["change {candleType} up color"],ca_ES:["canvia el color superior de {candleType}"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],ca_ES:["canvia el color inferior de la metxa de {candleType}"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],ca_ES:["canvia el color superior de la metxa de {candleType}"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],ca_ES:["canvia la visibilitat de la metxa {candleType}"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],ca_ES:["canvia la visibilitat del cos de {candleType}"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],ca_ES:["canvia la visibilitat de la vora de {candleType}"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],ca_ES:["canvia el color de la vora inferior de {candleType}"]}},64571:e=>{e.exports={en:["change {candleType} down color"],ca_ES:["canvia el color inferior de {candleType}"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],ca_ES:["canvia el color inferior de la vora de la barra de {chartType}"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],ca_ES:["canvia el color superior de la vora de la barra de {chartType}"]}},5012:e=>{e.exports={en:["change {chartType} down color"],ca_ES:["canvia el color inferior de {chartType}"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],ca_ES:["canvia el color superior de la vora de la barra de projecció de {chartType}"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],ca_ES:["canvia el color inferior de la barra de projecció de {chartType}"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],ca_ES:["canvia el color superior de la barra de projecció de {chartType}"]}},6970:e=>{e.exports={ +en:["change {chartType} up color"],ca_ES:["canvia el color superior de {chartType}"]}},66110:e=>{e.exports={en:["change {inputName} property"],ca_ES:["canvia propietat de {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],ca_ES:["ajusta dades dels dividends"]}},1433:e=>{e.exports={en:["adjust for contract changes"],ca_ES:["ajusta per a canvis de contractes"]}},92598:e=>{e.exports={en:["hollow candles"],ca_ES:["espelmes buides"]}},57243:e=>{e.exports={en:["range","ranges"],ca_ES:["rang","rangs"]}},70282:e=>{e.exports={en:["renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],ca_ES:["fes servir la liquidació com a tancament en intervals diaris"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/de.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/de.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index a604de55..00000000 --- a/charting_library/bundles/de.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,8 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:e=>{e.exports={en:["bars"],de:["Balken"]}},31882:e=>{e.exports={en:["12-hours"],de:["12-Stunden"]}},5797:e=>{e.exports={en:["24-hours"],de:["24-Stunden"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],de:["Balken gemäß des vorherigen Schlusskurs färben"]}},23739:e=>{e.exports={en:["Canvas"]}},24197:e=>{e.exports={en:["Center"],de:["Zentrieren"]}},15153:e=>{e.exports={en:["Chart basic styles"],de:["Grundtypen von Charts"]}},45639:e=>{e.exports={en:["Chart values"],de:["Chartwerte"]}},84831:e=>{e.exports={en:["Close line"],de:["Schlusskurslinie"]}},74622:e=>{e.exports={en:["Crosshair"],de:["Fadenkreuz"]}},81849:e=>{e.exports={en:["Currency"],de:["Währung"]}},3015:e=>{e.exports={en:["Currency and Unit"],de:["Währung und Einheit"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],de:["Daten für Dividenden anpassen"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],de:["Veränderungen der Kontraktgrößen und Verfalltage"]}},36620:e=>{e.exports={en:["Alerts"],de:["Alarme"]}},68650:e=>{e.exports={en:["Average close"],de:["Durchschnittlicher Schlusskurs"]}},27567:e=>{e.exports={en:["Bottom"],de:["Unten"]}},3159:e=>{e.exports={en:["Bottom line"],de:["Unterste Linie"]}},74406:e=>{e.exports={en:["Body"],de:["Körper"]}},333:e=>{e.exports={en:["Borders"],de:["Rahmen"]}},79468:e=>{e.exports={en:["Background"],de:["Hintergrund"]}},10842:e=>{e.exports={en:["Bar change values"],de:["Balken Änderungswerte"]}},28975:e=>{e.exports={en:["Base level"],de:["Grundwert"]}},76473:e=>{e.exports={en:["Bid and ask"],de:["Bid und Ask"]}},32744:e=>{e.exports={en:["Buttons"]}},68662:e=>{e.exports={en:["Grid lines"],de:["Rasterlinien"]}},17611:e=>{e.exports={en:["Down bars"]}},23743:e=>{e.exports={en:["Down color"],de:["Abwärts-Farbe"]}},48225:e=>{e.exports={en:["Data modification"],de:["Modifizierung der Daten"]}},84838:e=>{e.exports={en:["Date format"],de:["Datumsformat"]}},42357:e=>{e.exports={en:["Day of week on labels"],de:["Wochentag auf den Labels"]}},16564:e=>{e.exports={en:["Default"],de:["Standard"]}},78734:e=>{e.exports={en:["Description"],de:["Beschreibung"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],de:["Inaktivitätslücken anzeigen"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],de:["Hintergrund der elektronischen Handelszeiten"]}},69808:e=>{e.exports={en:["Events"],de:["Ereignisse"]}},41129:e=>{e.exports={en:["Fill"],de:["Füllen"]}},61112:e=>{e.exports={en:["Fill top area"],de:["Füllung oberer Bereich"]}},73185:e=>{e.exports={en:["Fill bottom area"],de:["Füllung unterer Bereich"]}},3160:e=>{e.exports={en:["Horizontal"]}},61900:e=>{e.exports={en:["Horz only"],de:["Nur horiz."]}},14180:e=>{e.exports={en:["High and low"],de:["Hoch und Tief"]}},56359:e=>{e.exports={en:["High line"],de:["Höchstkurslinie"]}},47326:e=>{e.exports={en:["Integer"]}},17854:e=>{e.exports={en:["Interval"],de:["Intervall"]}},84549:e=>{e.exports={en:["Indicators"],de:["Indikatoren"]}},78082:e=>{e.exports={ -en:["Indicators and financials"],de:["Indikatoren und Finanzdaten"]}},21429:e=>{e.exports={en:["Inputs"],de:["Eingaben"]}},25765:e=>{e.exports={en:["Open market status"],de:["Markt-Öffnungs-Status anzeigen"]}},34579:e=>{e.exports={en:["Low line"],de:["Tiefstkurslinie"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"],de:["Ausführliche Beschreibung"]}},72423:e=>{e.exports={en:["Last day change values"],de:["Werte von Veränderungen am letzten Handelstag"]}},11626:e=>{e.exports={en:["Left"],de:["Links"]}},56982:e=>{e.exports={en:["Lines"],de:["Linien"]}},8249:e=>{e.exports={en:["Money"],de:["Kapital"]}},70937:e=>{e.exports={en:["Margins"]}},68833:e=>{e.exports={en:["Middle"],de:["Mitte"]}},58589:e=>{e.exports={en:["No overlapping labels"],de:["Keine überlappenden Label"]}},60798:e=>{e.exports={en:["None"],de:["Keine"]}},51019:e=>{e.exports={en:["Navigation"]}},99709:e=>{e.exports={en:["Name"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],de:["Position des linken Chartrands bei einer Intervalländerung speichern"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],de:["Skalierungsmodus (A und L)"]}},93968:e=>{e.exports={en:["Scales"],de:["Skalierungen"]}},90275:e=>{e.exports={en:["Scales and lines"],de:["Skala und Linien"]}},30042:e=>{e.exports={en:["Scales placement"],de:["Skalen Platzierung"]}},28715:e=>{e.exports={en:["Status line"],de:["Status Zeile"]}},95481:e=>{e.exports={en:["Symbol"]}},53263:e=>{e.exports={en:["Pane"],de:["Bereich"]}},82894:e=>{e.exports={en:["Pane separators"],de:["Trennstreifen zwischen den Fenstern"]}},86235:e=>{e.exports={en:["Percentage"],de:["Prozentsatz"]}},94408:e=>{e.exports={en:["Pips"]}},60904:e=>{e.exports={en:["Pre/post market"],de:["Vor/nach der Hauptsitzung"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],de:["Hintergrund Vor-/Nachbörslich"]}},59766:e=>{e.exports={en:["Precision"],de:["Präzision"]}},83811:e=>{e.exports={en:["Previous day close"],de:["Schlusskurs Vortag"]}},35082:e=>{e.exports={en:["Price Scale"],de:["Preis-Skala"]}},27632:e=>{e.exports={en:["Price and percentage value"],de:["Preis und Prozentwert"]}},62142:e=>{e.exports={en:["Price labels & lines"],de:["Preis-Label & Linien"]}},84684:e=>{e.exports={en:["Price source"],de:["Preisquelle"]}},73466:e=>{e.exports={en:["Projection up bars"]}},77430:e=>{e.exports={en:["Projection candles"],de:["Projektionsbalken"]}},88367:e=>{e.exports={en:["Projection down bars"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],de:["Reale Preise auf der Preisskala (anstelle des Heikin-Ashi-Preises)"]}},50421:e=>{e.exports={en:["Right"],de:["Rechts"]}},62532:e=>{e.exports={en:["Right Margin"],de:["Rechter Seitenrand"]}},41571:e=>{e.exports={en:["Watermark"],de:["Wasserzeichen"]}},32163:e=>{e.exports={en:["Wick"],de:["Docht"]}},97118:e=>{e.exports={en:["Top"],de:["Oben"]}},89349:e=>{e.exports={en:["Top line"],de:["Oberste Linie"]}},70320:e=>{e.exports={en:["Text"]}},25485:e=>{e.exports={en:["Text alignment"], -de:["Textausrichtung"]}},67781:e=>{e.exports={en:["Text orientation"],de:["Text Ausrichtung"]}},20215:e=>{e.exports={en:["Thin bars"],de:["Dünne Balken verwenden"]}},70198:e=>{e.exports={en:["Title"],de:["Titel"]}},29854:e=>{e.exports={en:["Titles"],de:["Titel"]}},5791:e=>{e.exports={en:["Ticker"],de:["Ticker, Name"]}},16816:e=>{e.exports={en:["Ticker and description"],de:["Ticker und Beschreibung"]}},24821:e=>{e.exports={en:["Ticks"]}},93965:e=>{e.exports={en:["Time Scale"],de:["Zeit-Skala"]}},5591:e=>{e.exports={en:["Time hours format"],de:["Format der Uhrzeit"]}},77073:e=>{e.exports={en:["Timezone"],de:["Zeitzone"]}},76495:e=>{e.exports={en:["Trading"]}},33564:e=>{e.exports={en:["Unit"],de:["Einheit"]}},23091:e=>{e.exports={en:["Up color"],de:["Aufwärts-Farbe"]}},36957:e=>{e.exports={en:["Up bars"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],de:["Settlement als Schlusskurs im Tagesintervall verwenden"]}},37644:e=>{e.exports={en:["Volume"],de:["Volumen"]}},51514:e=>{e.exports={en:["Value"],de:["Wert"]}},31218:e=>{e.exports={en:["Value according to scale"],de:["Wert laut Skala"]}},60092:e=>{e.exports={en:["Values"],de:["Werte"]}},83594:e=>{e.exports={en:["Vert and horz"],de:["Vert. und horiz."]}},8402:e=>{e.exports={en:["Vert only"],de:["Nur vert."]}},69526:e=>{e.exports={en:["Vertical"],de:["Vertikal"]}},21105:e=>{e.exports={en:["candle"],de:["Kerze"]}},27068:e=>{e.exports={en:["change HLC bars"],de:["HLC-Balken ändern"]}},21201:e=>{e.exports={en:["change HLC bars color"],de:["Farbe der HLC-Balken ändern"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],de:["Sichtbarkeit der Navigationsschaltflächen ändern"]}},96227:e=>{e.exports={en:["change open market status visibility"],de:["Sichtbarkeit des Marktstatus ändern"]}},43231:e=>{e.exports={en:["change average close price line width"],de:["Breite der durchschnittlichen Schlusskurslinie ändern"]}},47026:e=>{e.exports={en:["change average close price line color"],de:["Farbe der durchschnittlichen Schlusskurslinie ändern"]}},29281:e=>{e.exports={en:["change area fill color"],de:["Farbe der Flächenfüllung ändern"]}},27059:e=>{e.exports={en:["change area line visibility"],de:["Sichtbarkeit der Bereichslinie ändern"]}},89346:e=>{e.exports={en:["change area line width"],de:["Breite der Bereichslinie ändern"]}},29605:e=>{e.exports={en:["change area line color"],de:["Farbe der Bereichslinie ändern"]}},56864:e=>{e.exports={en:["change area line style"],de:["Linienstil für Bereich ändern"]}},4640:e=>{e.exports={en:["change area price source"],de:["Bereich der Preisquelle ändern"]}},98407:e=>{e.exports={en:["change ask line color"],de:["Farbe der Ask-Linie ändern"]}},42190:e=>{e.exports={en:["change base level"],de:["Basiswert ändern"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],de:["Farbe der unteren Grundlinie ändern"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],de:["Stil der Baseline-Unterlinie ändern"]}},56175:e=>{e.exports={en:["change baseline bottom line width"], -de:["Grundlinienbreite der unteren Linie ändern"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],de:["Farbe der Basislinienfüllung im unteren Bereich ändern"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],de:["Farbe der Basislinienfüllung im oberen Bereich ändern"]}},68609:e=>{e.exports={en:["change baseline price source"],de:["Preisquelle der Grundlinie ändern"]}},69044:e=>{e.exports={en:["change baseline top line color"],de:["Farbe der oberen Zeile der Grundlinie ändern"]}},4425:e=>{e.exports={en:["change baseline top line style"],de:["Stil der Baseline-Oberlinie ändern"]}},68197:e=>{e.exports={en:["change baseline top line width"],de:["Grundlinienbreite der oberen Linie ändern"]}},33464:e=>{e.exports={en:["change bar up color"],de:["Farbe der Bull-Candle ändern"]}},27426:e=>{e.exports={en:["change bar change visibility"],de:["Sichtbarkeit des Countdowns bei Balkenschluss ändern"]}},59622:e=>{e.exports={en:["change bar down color"],de:["Farbe der Bear-Candle ändern"]}},17919:e=>{e.exports={en:["change bid line color"],de:["Farbe der Bid-Linie ändern"]}},32094:e=>{e.exports={en:["change bottom margin"],de:["unteren Rand ändern"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],de:["Sichtbarkeit von Währungs- und Einheitenbeschriftungen ändern"]}},64003:e=>{e.exports={en:["change currency label visibility"],de:["Sichtbarkeit des Währungslabels ändern"]}},42803:e=>{e.exports={en:["change chart background color"],de:["Hintergrundfarbe der Chart ändern"]}},41382:e=>{e.exports={en:["change chart background type"],de:["Chart-Hintergrundtyp ändern"]}},79637:e=>{e.exports={en:["change chart values visibility"],de:["Sichtbarkeit der Chartwerte ändern"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],de:["Balken gemäß vorherigem Schlusskurs färben."]}},88324:e=>{e.exports={en:["change column up color"],de:["Farbe der Spalte oben ändern"]}},93890:e=>{e.exports={en:["change column down color"],de:["Farbe der Spalte unten ändern"]}},4727:e=>{e.exports={en:["change column price source"],de:["Spalte Preisquelle ändern"]}},50544:e=>{e.exports={en:["change crosshair width"],de:["Fadenkreuzbreite ändern"]}},92885:e=>{e.exports={en:["change crosshair color"],de:["Farbe des Fadenkreuzes ändern"]}},68418:e=>{e.exports={en:["change crosshair style"],de:["Fadenkreuzstil ändern"]}},43109:e=>{e.exports={en:["change date format"],de:["Datumsformat ändern"]}},30418:e=>{e.exports={en:["change day of week on labels"],de:["Wochentag auf den Labels ändern"]}},82063:e=>{e.exports={en:["change decimal places"],de:["Dezimalstellen ändern"]}},45397:e=>{e.exports={en:["change extended hours color"],de:["Farbe der erweiterten Handelszeiten ändern"]}},47393:e=>{e.exports={en:["change electronic trading hours"],de:["Elektronische Handelszeiten ändern"]}},73844:e=>{e.exports={en:["change grid lines visibility"],de:["Sichtbarkeit der Rasterlinien ändern"]}},61407:e=>{e.exports={en:["change high and low price line color"], -de:["Farbe der Hoch- und Tiefstpreislinien ändern"]}},39581:e=>{e.exports={en:["change high and low price line width"],de:["Breite der Hoch- und Tiefstpreislinien ändern"]}},6026:e=>{e.exports={en:["change high-low body color"],de:["Farbe der Körper von Hochs/Tiefs ändern"]}},73021:e=>{e.exports={en:["change high-low body visibility"],de:["Sichtbarkeit der Körper von Hochs/Tiefs"]}},46844:e=>{e.exports={en:["change high-low border color"],de:["Randfarbe der Hochs/Tiefs ändern"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],de:["Sichtbarkeit des Rands von Hochs/Tiefs ändern"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],de:["Sichtbarkeit der Hoch/Tief-Labels ändern"]}},56961:e=>{e.exports={en:["change high-low labels color"],de:["Farbe der Hoch-Tief-Labels ändern"]}},21133:e=>{e.exports={en:["change horz grid lines color"],de:["Farbe der horizontalen Gitterlinien ändern"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],de:["Sichtbarkeit der Indikatortitel ändern"]}},49583:e=>{e.exports={en:["change indicator values visibility"],de:["Sichtbarkeit der Indikatorwerte ändern"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],de:["Sichtbarkeit der Indikatoreingaben ändern"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],de:["Sichtbarkeit von Indikatoren- und Finanzdaten-Labels ändern"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],de:["Ändert die Sichtbarkeit des Labels für Werte der Indikatoren und Finanzkennzahlen"]}},451:e=>{e.exports={en:["change interval watermark visibility"],de:["Sichtbarkeit des Intervallwasserzeichens ändern"]}},66307:e=>{e.exports={en:["change last day change visibility"],de:["Sichtbarkeit von Veränderung am letzten Handelstag ändern"]}},91873:e=>{e.exports={en:["change legend background transparency"],de:["Hintergrundtransparenz der Legende ändern"]}},14246:e=>{e.exports={en:["change legend background visibility"],de:["Hintergrundsichtbarkeit der Legende ändern"]}},88640:e=>{e.exports={en:["change line color"],de:["Linienfarbe ändern"]}},28818:e=>{e.exports={en:["change line style"],de:["Linienart ändern"]}},41837:e=>{e.exports={en:["change line price source"],de:["Ausgangspunkt der Preisline ändern"]}},48339:e=>{e.exports={en:["change line width"],de:["Linienbreite ändern"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],de:["Sichtbarkeit der Schaltflächen des Fensters ändern"]}},52203:e=>{e.exports={en:["change pane separators color"],de:["Farbe der Trennstreifen im Fenster ändern"]}},38730:e=>{e.exports={en:["change post market color"],de:["Farbe des Post-Marktes ändern"]}},28075:e=>{e.exports={en:["change post market line color"],de:["Farbe der Post-Market-Linie ändern"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],de:["Sichtbarkeit der Preislinie vorbörslich/nachbörslich ändern"]}},44371:e=>{e.exports={en:["change pre market color"],de:["Farbe des Pre-Markets ändern"]}},96114:e=>{e.exports={ -en:["change pre market line color"],de:["Farbe der Pre-Market-Linie ändern"]}},69814:e=>{e.exports={en:["change previous close price line color"],de:["Farbe der Linie des vorherigen Schlusskurses ändern"]}},13660:e=>{e.exports={en:["change previous close price line width"],de:["Linienbreite des vorherigen Schlusskurses ändern"]}},87861:e=>{e.exports={en:["change price line color"],de:["Farbe der Preislinie ändern"]}},29353:e=>{e.exports={en:["change price line width"],de:["Preislinienbreite ändern"]}},16241:e=>{e.exports={en:["change range bars style"],de:["Stil der Reichweitenbalken ändern"]}},65821:e=>{e.exports={en:["change range thin bars"],de:["Bereich ändern auf dünne Balken"]}},75487:e=>{e.exports={en:["change renko wick down color"],de:["Farbe des Bear-Renko-Dochts ändern"]}},92277:e=>{e.exports={en:["change renko wick up color"],de:["Farbe des Bull-Renko-Dochts ändern"]}},79604:e=>{e.exports={en:["change renko wick visibility"],de:["Sichtbarkeit des Renko-Dochts ändern"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],de:["Sichtbarkeit des Wiedergabewasserzeichens ändern"]}},82946:e=>{e.exports={en:["change right margin"],de:["unteren Rand ändern"]}},79545:e=>{e.exports={en:["change right margin percentage"],de:["Prozentsatz des rechten Seitenrands ändern"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],de:["Sichtbarkeit des Wasserzeichens für den Symbol-Ticker ändern"]}},78995:e=>{e.exports={en:["change symbol watermark color"],de:["Farbe des Symbol-Wasserzeichens ändern"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],de:["Sichtbarkeit des Symbolwasserzeichens ändern"]}},88167:e=>{e.exports={en:["change symbol description visibility"],de:["Sichtbarkeit der Symbolbeschreibung ändern"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],de:["Sichtbarkeit des Wasserzeichens für die Symbolbeschreibung ändern"]}},12050:e=>{e.exports={en:["change symbol field visibility"],de:["Die Sichtbarkeit des Symbolfelds verändern"]}},46066:e=>{e.exports={en:["change symbol last value mode"],de:["Anzeigemodus des letzten Wertes ändern"]}},902:e=>{e.exports={en:["change symbol legend format"],de:["Format der Symbollegende ändern"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],de:["Ändern: Position des linken Chartrands bei einer Intervalländerung speichern"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],de:["die Sichtbarkeit der Buttons für Skalierungsmodus ändern"]}},76131:e=>{e.exports={en:["change scales text color"],de:["Textfarbe der Skalen ändern"]}},27792:e=>{e.exports={en:["change scales font size"],de:["Schriftgröße der Skalen ändern"]}},94997:e=>{e.exports={en:["change scales lines color"],de:["Farbe der Skalenlinien ändern"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],de:["Sichtbarkeit der Session-Übergänge ändern"]}},28175:e=>{e.exports={en:["change sessions breaks width"],de:["Linienbreite der Sitzungs-Übergänge ändern"]}},33895:e=>{e.exports={ -en:["change sessions breaks color"],de:["Farbe der Sitzungs-Übergänge ändern"]}},21641:e=>{e.exports={en:["change sessions breaks style"],de:["Stil der Session-Übergänge ändern"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],de:["die Anzeige der realen Preise auf der Preisskala ändern (anstelle des Heiken-Ashi-Preises)"]}},60834:e=>{e.exports={en:["change thin bars"],de:["auf dünne Balken wechseln"]}},39754:e=>{e.exports={en:["change time hours format"],de:["Format der Uhrzeit ändern"]}},74883:e=>{e.exports={en:["change top margin"],de:["oberen Rand ändern"]}},51250:e=>{e.exports={en:["change unit label visibility"],de:["Sichtbarkeit des Einheitenlabels ändern"]}},71805:e=>{e.exports={en:["change vert grid lines color"],de:["Farbe der vertikalen Gitterlinien ändern"]}},96201:e=>{e.exports={en:["change volume values visibility"],de:["Sichtbarkeit der Volumenwerte ändern"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],de:["{candleType} obere Randfarbe ändern"]}},36697:e=>{e.exports={en:["change {candleType} up color"],de:["{candleType} Farbe für aufwärts ändern"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],de:["{candleType} Farbe des Abwärtsdochts ändern"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],de:["{candleType} Farbe des Aufwärtsdochts ändern"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],de:["{candleType} Sichtbarkeit der Dochte ändern"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],de:["Sichtbarkeit des {candleType} Körpers ändern"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],de:["{candleType} Sichtbarkeit des Rand ändern"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],de:["{candleType} untere Randfarbe ändern"]}},64571:e=>{e.exports={en:["change {candleType} down color"],de:["{candleType} Farbe für abwärts ändern"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],de:["{chartType} Farbe der Projektion des Abwärtsbalkens ändern"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],de:["{chartType} Farbe des Rand des Aufwärtsbalkens ändern"]}},5012:e=>{e.exports={en:["change {chartType} down color"],de:["{chartType} Farbe für Abwärts ändern"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],de:["{chartType} Farbe des Rands der Projektion des Abwärtsbalkens ändern"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],de:["{chartType} Farbe der Projektion des Abwärtsbalkens ändern"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],de:["{chartType} Farbe der Projektion des Aufwärtsbalkens ändern"]}},6970:e=>{e.exports={en:["change {chartType} up color"],de:["{chartType} Farbe für Aufwärts ändern"]}},66110:e=>{e.exports={en:["change {inputName} property"],de:["Eigenschaft von {inputName} ändern"]}},18077:e=>{e.exports={en:["adjust data for dividends"],de:["Daten für Dividenden anpassen"]}}, -1433:e=>{e.exports={en:["adjust for contract changes"],de:["Veränderungen der Kontraktgrößen und Verfalltage"]}},92598:e=>{e.exports={en:["hollow candles"],de:["Hohlkerzen"]}},57243:e=>{e.exports={en:["range","ranges"],de:["Bereich","Bereiche"]}},70282:e=>{e.exports={en:["renko"],de:["Renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],de:["Inaktivitätslücken umschalten"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],de:["Settlement als Schlusskurs im Tagesintervall verwenden"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],de:["{value} Dezimale","{value} Dezimalen"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/de.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/de.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..67248d03 --- /dev/null +++ b/charting_library/bundles/de.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,8 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:e=>{e.exports={en:["bars"],de:["Balken"]}},31882:e=>{e.exports={en:["12-hours"],de:["12-Stunden"]}},5797:e=>{e.exports={en:["24-hours"],de:["24-Stunden"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],de:["Balken gemäß des vorherigen Schlusskurs färben"]}},23739:e=>{e.exports={en:["Canvas"]}},24197:e=>{e.exports={en:["Center"],de:["Zentrieren"]}},15153:e=>{e.exports={en:["Chart basic styles"],de:["Grundtypen von Charts"]}},45639:e=>{e.exports={en:["Chart values"],de:["Chartwerte"]}},84831:e=>{e.exports={en:["Close line"],de:["Schlusskurslinie"]}},74622:e=>{e.exports={en:["Crosshair"],de:["Fadenkreuz"]}},81849:e=>{e.exports={en:["Currency"],de:["Währung"]}},3015:e=>{e.exports={en:["Currency and Unit"],de:["Währung und Einheit"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],de:["Daten für Dividenden anpassen"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],de:["Veränderungen der Kontraktgrößen und Verfalltage"]}},36620:e=>{e.exports={en:["Alerts"],de:["Alarme"]}},68650:e=>{e.exports={en:["Average close"],de:["Durchschnittlicher Schlusskurs"]}},27567:e=>{e.exports={en:["Bottom"],de:["Unten"]}},3159:e=>{e.exports={en:["Bottom line"],de:["Unterste Linie"]}},74406:e=>{e.exports={en:["Body"],de:["Körper"]}},333:e=>{e.exports={en:["Borders"],de:["Rahmen"]}},79468:e=>{e.exports={en:["Background"],de:["Hintergrund"]}},10842:e=>{e.exports={en:["Bar change values"],de:["Balken Änderungswerte"]}},70817:e=>{e.exports={en:["Bar change color based on value"]}},28975:e=>{e.exports={en:["Base level"],de:["Grundwert"]}},76473:e=>{e.exports={en:["Bid and ask"],de:["Bid und Ask"]}},32744:e=>{e.exports={en:["Buttons"]}},68662:e=>{e.exports={en:["Grid lines"],de:["Rasterlinien"]}},17611:e=>{e.exports={en:["Down bars"]}},23743:e=>{e.exports={en:["Down color"],de:["Abwärts-Farbe"]}},48225:e=>{e.exports={en:["Data modification"],de:["Modifizierung der Daten"]}},84838:e=>{e.exports={en:["Date format"],de:["Datumsformat"]}},42357:e=>{e.exports={en:["Day of week on labels"],de:["Wochentag auf den Labels"]}},16564:e=>{e.exports={en:["Default"],de:["Standard"]}},78734:e=>{e.exports={en:["Description"],de:["Beschreibung"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],de:["Inaktivitätslücken anzeigen"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],de:["Hintergrund der elektronischen Handelszeiten"]}},69808:e=>{e.exports={en:["Events"],de:["Ereignisse"]}},41129:e=>{e.exports={en:["Fill"],de:["Füllen"]}},61112:e=>{e.exports={en:["Fill top area"],de:["Füllung oberer Bereich"]}},73185:e=>{e.exports={en:["Fill bottom area"],de:["Füllung unterer Bereich"]}},3160:e=>{e.exports={en:["Horizontal"]}},61900:e=>{e.exports={en:["Horz only"],de:["Nur horiz."]}},14180:e=>{e.exports={en:["High and low"],de:["Hoch und Tief"]}},56359:e=>{e.exports={en:["High line"],de:["Höchstkurslinie"]}},47326:e=>{e.exports={en:["Integer"]}},17854:e=>{e.exports={en:["Interval"],de:["Intervall"]}},84549:e=>{e.exports={ +en:["Indicators"],de:["Indikatoren"]}},78082:e=>{e.exports={en:["Indicators and financials"],de:["Indikatoren und Finanzdaten"]}},21429:e=>{e.exports={en:["Inputs"],de:["Eingaben"]}},25765:e=>{e.exports={en:["Open market status"],de:["Markt-Öffnungs-Status anzeigen"]}},34579:e=>{e.exports={en:["Low line"],de:["Tiefstkurslinie"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"],de:["Ausführliche Beschreibung"]}},72423:e=>{e.exports={en:["Last day change values"],de:["Werte von Veränderungen am letzten Handelstag"]}},11626:e=>{e.exports={en:["Left"],de:["Links"]}},56982:e=>{e.exports={en:["Lines"],de:["Linien"]}},8249:e=>{e.exports={en:["Money"],de:["Kapital"]}},70937:e=>{e.exports={en:["Margins"]}},68833:e=>{e.exports={en:["Middle"],de:["Mitte"]}},58589:e=>{e.exports={en:["No overlapping labels"],de:["Keine überlappenden Label"]}},60798:e=>{e.exports={en:["None"],de:["Keine"]}},51019:e=>{e.exports={en:["Navigation"]}},99709:e=>{e.exports={en:["Name"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],de:["Position des linken Chartrands bei einer Intervalländerung speichern"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],de:["Skalierungsmodus (A und L)"]}},93968:e=>{e.exports={en:["Scales"],de:["Skalierungen"]}},90275:e=>{e.exports={en:["Scales and lines"],de:["Skala und Linien"]}},30042:e=>{e.exports={en:["Scales placement"],de:["Skalen Platzierung"]}},28715:e=>{e.exports={en:["Status line"],de:["Status Zeile"]}},95481:e=>{e.exports={en:["Symbol"]}},53263:e=>{e.exports={en:["Pane"],de:["Bereich"]}},82894:e=>{e.exports={en:["Pane separators"],de:["Trennstreifen zwischen den Fenstern"]}},86235:e=>{e.exports={en:["Percentage"],de:["Prozentsatz"]}},94408:e=>{e.exports={en:["Pips"]}},60904:e=>{e.exports={en:["Pre/post market"],de:["Vor/nach der Hauptsitzung"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],de:["Hintergrund Vor-/Nachbörslich"]}},59766:e=>{e.exports={en:["Precision"],de:["Präzision"]}},83811:e=>{e.exports={en:["Previous day close"],de:["Schlusskurs Vortag"]}},35082:e=>{e.exports={en:["Price Scale"],de:["Preis-Skala"]}},27632:e=>{e.exports={en:["Price and percentage value"],de:["Preis und Prozentwert"]}},62142:e=>{e.exports={en:["Price labels & lines"],de:["Preis-Label & Linien"]}},84684:e=>{e.exports={en:["Price source"],de:["Preisquelle"]}},73466:e=>{e.exports={en:["Projection up bars"]}},77430:e=>{e.exports={en:["Projection candles"],de:["Projektionsbalken"]}},88367:e=>{e.exports={en:["Projection down bars"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],de:["Reale Preise auf der Preisskala (anstelle des Heikin-Ashi-Preises)"]}},50421:e=>{e.exports={en:["Right"],de:["Rechts"]}},62532:e=>{e.exports={en:["Right Margin"],de:["Rechter Seitenrand"]}},41571:e=>{e.exports={en:["Watermark"],de:["Wasserzeichen"]}},32163:e=>{e.exports={en:["Wick"],de:["Docht"]}},97118:e=>{e.exports={en:["Top"],de:["Oben"]}},89349:e=>{e.exports={en:["Top line"],de:["Oberste Linie"]}},70320:e=>{e.exports={ +en:["Text"]}},25485:e=>{e.exports={en:["Text alignment"],de:["Textausrichtung"]}},67781:e=>{e.exports={en:["Text orientation"],de:["Text Ausrichtung"]}},20215:e=>{e.exports={en:["Thin bars"],de:["Dünne Balken verwenden"]}},70198:e=>{e.exports={en:["Title"],de:["Titel"]}},29854:e=>{e.exports={en:["Titles"],de:["Titel"]}},5791:e=>{e.exports={en:["Ticker"],de:["Ticker, Name"]}},16816:e=>{e.exports={en:["Ticker and description"],de:["Ticker und Beschreibung"]}},24821:e=>{e.exports={en:["Ticks"]}},93965:e=>{e.exports={en:["Time Scale"],de:["Zeit-Skala"]}},5591:e=>{e.exports={en:["Time hours format"],de:["Format der Uhrzeit"]}},77073:e=>{e.exports={en:["Timezone"],de:["Zeitzone"]}},76495:e=>{e.exports={en:["Trading"]}},33564:e=>{e.exports={en:["Unit"],de:["Einheit"]}},23091:e=>{e.exports={en:["Up color"],de:["Aufwärts-Farbe"]}},36957:e=>{e.exports={en:["Up bars"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],de:["Settlement als Schlusskurs im Tagesintervall verwenden"]}},37644:e=>{e.exports={en:["Volume"],de:["Volumen"]}},51514:e=>{e.exports={en:["Value"],de:["Wert"]}},31218:e=>{e.exports={en:["Value according to scale"],de:["Wert laut Skala"]}},60092:e=>{e.exports={en:["Values"],de:["Werte"]}},83594:e=>{e.exports={en:["Vert and horz"],de:["Vert. und horiz."]}},8402:e=>{e.exports={en:["Vert only"],de:["Nur vert."]}},69526:e=>{e.exports={en:["Vertical"],de:["Vertikal"]}},21105:e=>{e.exports={en:["candle"],de:["Kerze"]}},27068:e=>{e.exports={en:["change HLC bars"],de:["HLC-Balken ändern"]}},21201:e=>{e.exports={en:["change HLC bars color"],de:["Farbe der HLC-Balken ändern"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],de:["Sichtbarkeit der Navigationsschaltflächen ändern"]}},96227:e=>{e.exports={en:["change open market status visibility"],de:["Sichtbarkeit des Marktstatus ändern"]}},43231:e=>{e.exports={en:["change average close price line width"],de:["Breite der durchschnittlichen Schlusskurslinie ändern"]}},47026:e=>{e.exports={en:["change average close price line color"],de:["Farbe der durchschnittlichen Schlusskurslinie ändern"]}},29281:e=>{e.exports={en:["change area fill color"],de:["Farbe der Flächenfüllung ändern"]}},27059:e=>{e.exports={en:["change area line visibility"],de:["Sichtbarkeit der Bereichslinie ändern"]}},89346:e=>{e.exports={en:["change area line width"],de:["Breite der Bereichslinie ändern"]}},29605:e=>{e.exports={en:["change area line color"],de:["Farbe der Bereichslinie ändern"]}},56864:e=>{e.exports={en:["change area line style"],de:["Linienstil für Bereich ändern"]}},4640:e=>{e.exports={en:["change area price source"],de:["Bereich der Preisquelle ändern"]}},98407:e=>{e.exports={en:["change ask line color"],de:["Farbe der Ask-Linie ändern"]}},42190:e=>{e.exports={en:["change base level"],de:["Basiswert ändern"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],de:["Farbe der unteren Grundlinie ändern"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],de:["Stil der Baseline-Unterlinie ändern"]}},56175:e=>{e.exports={ +en:["change baseline bottom line width"],de:["Grundlinienbreite der unteren Linie ändern"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],de:["Farbe der Basislinienfüllung im unteren Bereich ändern"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],de:["Farbe der Basislinienfüllung im oberen Bereich ändern"]}},68609:e=>{e.exports={en:["change baseline price source"],de:["Preisquelle der Grundlinie ändern"]}},69044:e=>{e.exports={en:["change baseline top line color"],de:["Farbe der oberen Zeile der Grundlinie ändern"]}},4425:e=>{e.exports={en:["change baseline top line style"],de:["Stil der Baseline-Oberlinie ändern"]}},68197:e=>{e.exports={en:["change baseline top line width"],de:["Grundlinienbreite der oberen Linie ändern"]}},33464:e=>{e.exports={en:["change bar up color"],de:["Farbe der Bull-Candle ändern"]}},14201:e=>{e.exports={en:["change bar change down color"]}},30196:e=>{e.exports={en:["change bar change up color"]}},27426:e=>{e.exports={en:["change bar change visibility"],de:["Sichtbarkeit des Countdowns bei Balkenschluss ändern"]}},59622:e=>{e.exports={en:["change bar down color"],de:["Farbe der Bear-Candle ändern"]}},17919:e=>{e.exports={en:["change bid line color"],de:["Farbe der Bid-Linie ändern"]}},32094:e=>{e.exports={en:["change bottom margin"],de:["unteren Rand ändern"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],de:["Sichtbarkeit von Währungs- und Einheitenbeschriftungen ändern"]}},64003:e=>{e.exports={en:["change currency label visibility"],de:["Sichtbarkeit des Währungslabels ändern"]}},42803:e=>{e.exports={en:["change chart background color"],de:["Hintergrundfarbe der Chart ändern"]}},41382:e=>{e.exports={en:["change chart background type"],de:["Chart-Hintergrundtyp ändern"]}},79637:e=>{e.exports={en:["change chart values visibility"],de:["Sichtbarkeit der Chartwerte ändern"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],de:["Balken gemäß vorherigem Schlusskurs färben."]}},88324:e=>{e.exports={en:["change column up color"],de:["Farbe der Spalte oben ändern"]}},93890:e=>{e.exports={en:["change column down color"],de:["Farbe der Spalte unten ändern"]}},4727:e=>{e.exports={en:["change column price source"],de:["Spalte Preisquelle ändern"]}},50544:e=>{e.exports={en:["change crosshair width"],de:["Fadenkreuzbreite ändern"]}},92885:e=>{e.exports={en:["change crosshair color"],de:["Farbe des Fadenkreuzes ändern"]}},68418:e=>{e.exports={en:["change crosshair style"],de:["Fadenkreuzstil ändern"]}},43109:e=>{e.exports={en:["change date format"],de:["Datumsformat ändern"]}},30418:e=>{e.exports={en:["change day of week on labels"],de:["Wochentag auf den Labels ändern"]}},82063:e=>{e.exports={en:["change decimal places"],de:["Dezimalstellen ändern"]}},45397:e=>{e.exports={en:["change extended hours color"],de:["Farbe der erweiterten Handelszeiten ändern"]}},47393:e=>{e.exports={en:["change electronic trading hours"],de:["Elektronische Handelszeiten ändern"]}},73844:e=>{e.exports={en:["change grid lines visibility"], +de:["Sichtbarkeit der Rasterlinien ändern"]}},61407:e=>{e.exports={en:["change high and low price line color"],de:["Farbe der Hoch- und Tiefstpreislinien ändern"]}},39581:e=>{e.exports={en:["change high and low price line width"],de:["Breite der Hoch- und Tiefstpreislinien ändern"]}},6026:e=>{e.exports={en:["change high-low body color"],de:["Farbe der Körper von Hochs/Tiefs ändern"]}},73021:e=>{e.exports={en:["change high-low body visibility"],de:["Sichtbarkeit der Körper von Hochs/Tiefs"]}},46844:e=>{e.exports={en:["change high-low border color"],de:["Randfarbe der Hochs/Tiefs ändern"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],de:["Sichtbarkeit des Rands von Hochs/Tiefs ändern"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],de:["Sichtbarkeit der Hoch/Tief-Labels ändern"]}},56961:e=>{e.exports={en:["change high-low labels color"],de:["Farbe der Hoch-Tief-Labels ändern"]}},21133:e=>{e.exports={en:["change horz grid lines color"],de:["Farbe der horizontalen Gitterlinien ändern"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],de:["Sichtbarkeit der Indikatortitel ändern"]}},49583:e=>{e.exports={en:["change indicator values visibility"],de:["Sichtbarkeit der Indikatorwerte ändern"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],de:["Sichtbarkeit der Indikatoreingaben ändern"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],de:["Sichtbarkeit von Indikatoren- und Finanzdaten-Labels ändern"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],de:["Ändert die Sichtbarkeit des Labels für Werte der Indikatoren und Finanzkennzahlen"]}},451:e=>{e.exports={en:["change interval watermark visibility"],de:["Sichtbarkeit des Intervallwasserzeichens ändern"]}},66307:e=>{e.exports={en:["change last day change visibility"],de:["Sichtbarkeit von Veränderung am letzten Handelstag ändern"]}},91873:e=>{e.exports={en:["change legend background transparency"],de:["Hintergrundtransparenz der Legende ändern"]}},14246:e=>{e.exports={en:["change legend background visibility"],de:["Hintergrundsichtbarkeit der Legende ändern"]}},88640:e=>{e.exports={en:["change line color"],de:["Linienfarbe ändern"]}},28818:e=>{e.exports={en:["change line style"],de:["Linienart ändern"]}},41837:e=>{e.exports={en:["change line price source"],de:["Ausgangspunkt der Preisline ändern"]}},48339:e=>{e.exports={en:["change line width"],de:["Linienbreite ändern"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],de:["Sichtbarkeit der Schaltflächen des Fensters ändern"]}},52203:e=>{e.exports={en:["change pane separators color"],de:["Farbe der Trennstreifen im Fenster ändern"]}},38730:e=>{e.exports={en:["change post market color"],de:["Farbe des Post-Marktes ändern"]}},28075:e=>{e.exports={en:["change post market line color"],de:["Farbe der Post-Market-Linie ändern"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],de:["Sichtbarkeit der Preislinie vorbörslich/nachbörslich ändern"]}}, +44371:e=>{e.exports={en:["change pre market color"],de:["Farbe des Pre-Markets ändern"]}},96114:e=>{e.exports={en:["change pre market line color"],de:["Farbe der Pre-Market-Linie ändern"]}},69814:e=>{e.exports={en:["change previous close price line color"],de:["Farbe der Linie des vorherigen Schlusskurses ändern"]}},13660:e=>{e.exports={en:["change previous close price line width"],de:["Linienbreite des vorherigen Schlusskurses ändern"]}},87861:e=>{e.exports={en:["change price line color"],de:["Farbe der Preislinie ändern"]}},29353:e=>{e.exports={en:["change price line width"],de:["Preislinienbreite ändern"]}},16241:e=>{e.exports={en:["change range bars style"],de:["Stil der Reichweitenbalken ändern"]}},65821:e=>{e.exports={en:["change range thin bars"],de:["Bereich ändern auf dünne Balken"]}},75487:e=>{e.exports={en:["change renko wick down color"],de:["Farbe des Bear-Renko-Dochts ändern"]}},92277:e=>{e.exports={en:["change renko wick up color"],de:["Farbe des Bull-Renko-Dochts ändern"]}},79604:e=>{e.exports={en:["change renko wick visibility"],de:["Sichtbarkeit des Renko-Dochts ändern"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],de:["Sichtbarkeit des Wiedergabewasserzeichens ändern"]}},82946:e=>{e.exports={en:["change right margin"],de:["unteren Rand ändern"]}},79545:e=>{e.exports={en:["change right margin percentage"],de:["Prozentsatz des rechten Seitenrands ändern"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],de:["Sichtbarkeit des Wasserzeichens für den Symbol-Ticker ändern"]}},78995:e=>{e.exports={en:["change symbol watermark color"],de:["Farbe des Symbol-Wasserzeichens ändern"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],de:["Sichtbarkeit des Symbolwasserzeichens ändern"]}},88167:e=>{e.exports={en:["change symbol description visibility"],de:["Sichtbarkeit der Symbolbeschreibung ändern"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],de:["Sichtbarkeit des Wasserzeichens für die Symbolbeschreibung ändern"]}},12050:e=>{e.exports={en:["change symbol field visibility"],de:["Die Sichtbarkeit des Symbolfelds verändern"]}},46066:e=>{e.exports={en:["change symbol last value mode"],de:["Anzeigemodus des letzten Wertes ändern"]}},902:e=>{e.exports={en:["change symbol legend format"],de:["Format der Symbollegende ändern"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],de:["Ändern: Position des linken Chartrands bei einer Intervalländerung speichern"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],de:["die Sichtbarkeit der Buttons für Skalierungsmodus ändern"]}},76131:e=>{e.exports={en:["change scales text color"],de:["Textfarbe der Skalen ändern"]}},27792:e=>{e.exports={en:["change scales font size"],de:["Schriftgröße der Skalen ändern"]}},94997:e=>{e.exports={en:["change scales lines color"],de:["Farbe der Skalenlinien ändern"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],de:["Sichtbarkeit der Session-Übergänge ändern"]}},28175:e=>{ +e.exports={en:["change sessions breaks width"],de:["Linienbreite der Sitzungs-Übergänge ändern"]}},33895:e=>{e.exports={en:["change sessions breaks color"],de:["Farbe der Sitzungs-Übergänge ändern"]}},21641:e=>{e.exports={en:["change sessions breaks style"],de:["Stil der Session-Übergänge ändern"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],de:["die Anzeige der realen Preise auf der Preisskala ändern (anstelle des Heiken-Ashi-Preises)"]}},60834:e=>{e.exports={en:["change thin bars"],de:["auf dünne Balken wechseln"]}},39754:e=>{e.exports={en:["change time hours format"],de:["Format der Uhrzeit ändern"]}},74883:e=>{e.exports={en:["change top margin"],de:["oberen Rand ändern"]}},51250:e=>{e.exports={en:["change unit label visibility"],de:["Sichtbarkeit des Einheitenlabels ändern"]}},28142:e=>{e.exports={en:["change use custom bar change colors"]}},71805:e=>{e.exports={en:["change vert grid lines color"],de:["Farbe der vertikalen Gitterlinien ändern"]}},96201:e=>{e.exports={en:["change volume values visibility"],de:["Sichtbarkeit der Volumenwerte ändern"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],de:["{candleType} obere Randfarbe ändern"]}},36697:e=>{e.exports={en:["change {candleType} up color"],de:["{candleType} Farbe für aufwärts ändern"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],de:["{candleType} Farbe des Abwärtsdochts ändern"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],de:["{candleType} Farbe des Aufwärtsdochts ändern"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],de:["{candleType} Sichtbarkeit der Dochte ändern"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],de:["Sichtbarkeit des {candleType} Körpers ändern"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],de:["{candleType} Sichtbarkeit des Rand ändern"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],de:["{candleType} untere Randfarbe ändern"]}},64571:e=>{e.exports={en:["change {candleType} down color"],de:["{candleType} Farbe für abwärts ändern"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],de:["{chartType} Farbe der Projektion des Abwärtsbalkens ändern"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],de:["{chartType} Farbe des Rand des Aufwärtsbalkens ändern"]}},5012:e=>{e.exports={en:["change {chartType} down color"],de:["{chartType} Farbe für Abwärts ändern"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],de:["{chartType} Farbe des Rands der Projektion des Abwärtsbalkens ändern"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],de:["{chartType} Farbe der Projektion des Abwärtsbalkens ändern"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],de:["{chartType} Farbe der Projektion des Aufwärtsbalkens ändern"]}},6970:e=>{e.exports={en:["change {chartType} up color"],de:["{chartType} Farbe für Aufwärts ändern"]}},66110:e=>{ +e.exports={en:["change {inputName} property"],de:["Eigenschaft von {inputName} ändern"]}},18077:e=>{e.exports={en:["adjust data for dividends"],de:["Daten für Dividenden anpassen"]}},1433:e=>{e.exports={en:["adjust for contract changes"],de:["Veränderungen der Kontraktgrößen und Verfalltage"]}},92598:e=>{e.exports={en:["hollow candles"],de:["Hohlkerzen"]}},57243:e=>{e.exports={en:["range","ranges"],de:["Bereich","Bereiche"]}},70282:e=>{e.exports={en:["renko"],de:["Renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],de:["Inaktivitätslücken umschalten"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],de:["Settlement als Schlusskurs im Tagesintervall verwenden"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],de:["{value} Dezimale","{value} Dezimalen"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/en.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/en.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index e4ee5639..00000000 --- a/charting_library/bundles/en.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,5 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:e=>{e.exports={en:["bars"]}},31882:e=>{e.exports={en:["12-hours"]}},5797:e=>{e.exports={en:["24-hours"]}},23111:e=>{e.exports={en:["Color bars based on previous close"]}},23739:e=>{e.exports={en:["Canvas"]}},24197:e=>{e.exports={en:["Center"]}},15153:e=>{e.exports={en:["Chart basic styles"]}},45639:e=>{e.exports={en:["Chart values"]}},84831:e=>{e.exports={en:["Close line"]}},74622:e=>{e.exports={en:["Crosshair"]}},81849:e=>{e.exports={en:["Currency"]}},3015:e=>{e.exports={en:["Currency and Unit"]}},93020:e=>{e.exports={en:["Adjust data for dividends"]}},68921:e=>{e.exports={en:["Adjust for contract changes"]}},36620:e=>{e.exports={en:["Alerts"]}},68650:e=>{e.exports={en:["Average close"]}},27567:e=>{e.exports={en:["Bottom"]}},3159:e=>{e.exports={en:["Bottom line"]}},74406:e=>{e.exports={en:["Body"]}},333:e=>{e.exports={en:["Borders"]}},79468:e=>{e.exports={en:["Background"]}},10842:e=>{e.exports={en:["Bar change values"]}},28975:e=>{e.exports={en:["Base level"]}},76473:e=>{e.exports={en:["Bid and ask"]}},32744:e=>{e.exports={en:["Buttons"]}},68662:e=>{e.exports={en:["Grid lines"]}},17611:e=>{e.exports={en:["Down bars"]}},23743:e=>{e.exports={en:["Down color"]}},48225:e=>{e.exports={en:["Data modification"]}},84838:e=>{e.exports={en:["Date format"]}},42357:e=>{e.exports={en:["Day of week on labels"]}},16564:e=>{e.exports={en:["Default"]}},78734:e=>{e.exports={en:["Description"]}},67036:e=>{e.exports={en:["Display inactivity gaps"]}},59777:e=>{e.exports={en:["Electronic trading hours background"]}},69808:e=>{e.exports={en:["Events"]}},41129:e=>{e.exports={en:["Fill"]}},61112:e=>{e.exports={en:["Fill top area"]}},73185:e=>{e.exports={en:["Fill bottom area"]}},3160:e=>{e.exports={en:["Horizontal"]}},61900:e=>{e.exports={en:["Horz only"]}},14180:e=>{e.exports={en:["High and low"]}},56359:e=>{e.exports={en:["High line"]}},47326:e=>{e.exports={en:["Integer"]}},17854:e=>{e.exports={en:["Interval"]}},84549:e=>{e.exports={en:["Indicators"]}},78082:e=>{e.exports={en:["Indicators and financials"]}},21429:e=>{e.exports={en:["Inputs"]}},25765:e=>{e.exports={en:["Open market status"]}},34579:e=>{e.exports={en:["Low line"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"]}},72423:e=>{e.exports={en:["Last day change values"]}},11626:e=>{e.exports={en:["Left"]}},56982:e=>{e.exports={en:["Lines"]}},8249:e=>{e.exports={en:["Money"]}},70937:e=>{e.exports={en:["Margins"]}},68833:e=>{e.exports={en:["Middle"]}},58589:e=>{e.exports={en:["No overlapping labels"]}},60798:e=>{e.exports={en:["None"]}},51019:e=>{e.exports={en:["Navigation"]}},99709:e=>{e.exports={en:["Name"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"]}},93968:e=>{e.exports={en:["Scales"]}},90275:e=>{e.exports={en:["Scales and lines"]}},30042:e=>{e.exports={en:["Scales placement"]}},28715:e=>{e.exports={en:["Status line"]}},95481:e=>{e.exports={en:["Symbol"]}},53263:e=>{ -e.exports={en:["Pane"]}},82894:e=>{e.exports={en:["Pane separators"]}},86235:e=>{e.exports={en:["Percentage"]}},94408:e=>{e.exports={en:["Pips"]}},60904:e=>{e.exports={en:["Pre/post market"]}},88327:e=>{e.exports={en:["Pre/post market hours background"]}},59766:e=>{e.exports={en:["Precision"]}},83811:e=>{e.exports={en:["Previous day close"]}},35082:e=>{e.exports={en:["Price Scale"]}},27632:e=>{e.exports={en:["Price and percentage value"]}},62142:e=>{e.exports={en:["Price labels & lines"]}},84684:e=>{e.exports={en:["Price source"]}},73466:e=>{e.exports={en:["Projection up bars"]}},77430:e=>{e.exports={en:["Projection candles"]}},88367:e=>{e.exports={en:["Projection down bars"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"]}},50421:e=>{e.exports={en:["Right"]}},62532:e=>{e.exports={en:["Right Margin"]}},41571:e=>{e.exports={en:["Watermark"]}},32163:e=>{e.exports={en:["Wick"]}},97118:e=>{e.exports={en:["Top"]}},89349:e=>{e.exports={en:["Top line"]}},70320:e=>{e.exports={en:["Text"]}},25485:e=>{e.exports={en:["Text alignment"]}},67781:e=>{e.exports={en:["Text orientation"]}},20215:e=>{e.exports={en:["Thin bars"]}},70198:e=>{e.exports={en:["Title"]}},29854:e=>{e.exports={en:["Titles"]}},5791:e=>{e.exports={en:["Ticker"]}},16816:e=>{e.exports={en:["Ticker and description"]}},24821:e=>{e.exports={en:["Ticks"]}},93965:e=>{e.exports={en:["Time Scale"]}},5591:e=>{e.exports={en:["Time hours format"]}},77073:e=>{e.exports={en:["Timezone"]}},76495:e=>{e.exports={en:["Trading"]}},33564:e=>{e.exports={en:["Unit"]}},23091:e=>{e.exports={en:["Up color"]}},36957:e=>{e.exports={en:["Up bars"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"]}},37644:e=>{e.exports={en:["Volume"]}},51514:e=>{e.exports={en:["Value"]}},31218:e=>{e.exports={en:["Value according to scale"]}},60092:e=>{e.exports={en:["Values"]}},83594:e=>{e.exports={en:["Vert and horz"]}},8402:e=>{e.exports={en:["Vert only"]}},69526:e=>{e.exports={en:["Vertical"]}},21105:e=>{e.exports={en:["candle"]}},27068:e=>{e.exports={en:["change HLC bars"]}},21201:e=>{e.exports={en:["change HLC bars color"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"]}},96227:e=>{e.exports={en:["change open market status visibility"]}},43231:e=>{e.exports={en:["change average close price line width"]}},47026:e=>{e.exports={en:["change average close price line color"]}},29281:e=>{e.exports={en:["change area fill color"]}},27059:e=>{e.exports={en:["change area line visibility"]}},89346:e=>{e.exports={en:["change area line width"]}},29605:e=>{e.exports={en:["change area line color"]}},56864:e=>{e.exports={en:["change area line style"]}},4640:e=>{e.exports={en:["change area price source"]}},98407:e=>{e.exports={en:["change ask line color"]}},42190:e=>{e.exports={en:["change base level"]}},71785:e=>{e.exports={en:["change baseline bottom line color"]}},85684:e=>{e.exports={en:["change baseline bottom line style"]}},56175:e=>{e.exports={en:["change baseline bottom line width"]}},97216:e=>{e.exports={ -en:["change baseline fill bottom area color"]}},92873:e=>{e.exports={en:["change baseline fill top area color"]}},68609:e=>{e.exports={en:["change baseline price source"]}},69044:e=>{e.exports={en:["change baseline top line color"]}},4425:e=>{e.exports={en:["change baseline top line style"]}},68197:e=>{e.exports={en:["change baseline top line width"]}},33464:e=>{e.exports={en:["change bar up color"]}},27426:e=>{e.exports={en:["change bar change visibility"]}},59622:e=>{e.exports={en:["change bar down color"]}},17919:e=>{e.exports={en:["change bid line color"]}},32094:e=>{e.exports={en:["change bottom margin"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"]}},64003:e=>{e.exports={en:["change currency label visibility"]}},42803:e=>{e.exports={en:["change chart background color"]}},41382:e=>{e.exports={en:["change chart background type"]}},79637:e=>{e.exports={en:["change chart values visibility"]}},43090:e=>{e.exports={en:["change color bars based on previous close"]}},88324:e=>{e.exports={en:["change column up color"]}},93890:e=>{e.exports={en:["change column down color"]}},4727:e=>{e.exports={en:["change column price source"]}},50544:e=>{e.exports={en:["change crosshair width"]}},92885:e=>{e.exports={en:["change crosshair color"]}},68418:e=>{e.exports={en:["change crosshair style"]}},43109:e=>{e.exports={en:["change date format"]}},30418:e=>{e.exports={en:["change day of week on labels"]}},82063:e=>{e.exports={en:["change decimal places"]}},45397:e=>{e.exports={en:["change extended hours color"]}},47393:e=>{e.exports={en:["change electronic trading hours"]}},73844:e=>{e.exports={en:["change grid lines visibility"]}},61407:e=>{e.exports={en:["change high and low price line color"]}},39581:e=>{e.exports={en:["change high and low price line width"]}},6026:e=>{e.exports={en:["change high-low body color"]}},73021:e=>{e.exports={en:["change high-low body visibility"]}},46844:e=>{e.exports={en:["change high-low border color"]}},15801:e=>{e.exports={en:["change high-low borders visibility"]}},72399:e=>{e.exports={en:["change high-low labels visibility"]}},56961:e=>{e.exports={en:["change high-low labels color"]}},21133:e=>{e.exports={en:["change horz grid lines color"]}},63050:e=>{e.exports={en:["change indicator titles visibility"]}},49583:e=>{e.exports={en:["change indicator values visibility"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"]}},451:e=>{e.exports={en:["change interval watermark visibility"]}},66307:e=>{e.exports={en:["change last day change visibility"]}},91873:e=>{e.exports={en:["change legend background transparency"]}},14246:e=>{e.exports={en:["change legend background visibility"]}},88640:e=>{e.exports={en:["change line color"]}},28818:e=>{e.exports={en:["change line style"]}},41837:e=>{e.exports={en:["change line price source"]}},48339:e=>{e.exports={en:["change line width"]}},18378:e=>{ -e.exports={en:["change pane buttons visibility"]}},52203:e=>{e.exports={en:["change pane separators color"]}},38730:e=>{e.exports={en:["change post market color"]}},28075:e=>{e.exports={en:["change post market line color"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"]}},44371:e=>{e.exports={en:["change pre market color"]}},96114:e=>{e.exports={en:["change pre market line color"]}},69814:e=>{e.exports={en:["change previous close price line color"]}},13660:e=>{e.exports={en:["change previous close price line width"]}},87861:e=>{e.exports={en:["change price line color"]}},29353:e=>{e.exports={en:["change price line width"]}},16241:e=>{e.exports={en:["change range bars style"]}},65821:e=>{e.exports={en:["change range thin bars"]}},75487:e=>{e.exports={en:["change renko wick down color"]}},92277:e=>{e.exports={en:["change renko wick up color"]}},79604:e=>{e.exports={en:["change renko wick visibility"]}},66021:e=>{e.exports={en:["change replay watermark visibility"]}},82946:e=>{e.exports={en:["change right margin"]}},79545:e=>{e.exports={en:["change right margin percentage"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"]}},78995:e=>{e.exports={en:["change symbol watermark color"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"]}},88167:e=>{e.exports={en:["change symbol description visibility"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"]}},12050:e=>{e.exports={en:["change symbol field visibility"]}},46066:e=>{e.exports={en:["change symbol last value mode"]}},902:e=>{e.exports={en:["change symbol legend format"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"]}},76131:e=>{e.exports={en:["change scales text color"]}},27792:e=>{e.exports={en:["change scales font size"]}},94997:e=>{e.exports={en:["change scales lines color"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"]}},28175:e=>{e.exports={en:["change sessions breaks width"]}},33895:e=>{e.exports={en:["change sessions breaks color"]}},21641:e=>{e.exports={en:["change sessions breaks style"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"]}},60834:e=>{e.exports={en:["change thin bars"]}},39754:e=>{e.exports={en:["change time hours format"]}},74883:e=>{e.exports={en:["change top margin"]}},51250:e=>{e.exports={en:["change unit label visibility"]}},71805:e=>{e.exports={en:["change vert grid lines color"]}},96201:e=>{e.exports={en:["change volume values visibility"]}},17214:e=>{e.exports={en:["change {candleType} up border color"]}},36697:e=>{e.exports={en:["change {candleType} up color"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"]}},11114:e=>{e.exports={ -en:["change {candleType} border visibility"]}},20291:e=>{e.exports={en:["change {candleType} down border color"]}},64571:e=>{e.exports={en:["change {candleType} down color"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"]}},5012:e=>{e.exports={en:["change {chartType} down color"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"]}},6970:e=>{e.exports={en:["change {chartType} up color"]}},66110:e=>{e.exports={en:["change {inputName} property"]}},18077:e=>{e.exports={en:["adjust data for dividends"]}},1433:e=>{e.exports={en:["adjust for contract changes"]}},92598:e=>{e.exports={en:["hollow candles"]}},57243:e=>{e.exports={en:["range","ranges"]}},70282:e=>{e.exports={en:["renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/en.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/en.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..1053727c --- /dev/null +++ b/charting_library/bundles/en.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,5 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:e=>{e.exports={en:["bars"]}},31882:e=>{e.exports={en:["12-hours"]}},5797:e=>{e.exports={en:["24-hours"]}},23111:e=>{e.exports={en:["Color bars based on previous close"]}},23739:e=>{e.exports={en:["Canvas"]}},24197:e=>{e.exports={en:["Center"]}},15153:e=>{e.exports={en:["Chart basic styles"]}},45639:e=>{e.exports={en:["Chart values"]}},84831:e=>{e.exports={en:["Close line"]}},74622:e=>{e.exports={en:["Crosshair"]}},81849:e=>{e.exports={en:["Currency"]}},3015:e=>{e.exports={en:["Currency and Unit"]}},93020:e=>{e.exports={en:["Adjust data for dividends"]}},68921:e=>{e.exports={en:["Adjust for contract changes"]}},36620:e=>{e.exports={en:["Alerts"]}},68650:e=>{e.exports={en:["Average close"]}},27567:e=>{e.exports={en:["Bottom"]}},3159:e=>{e.exports={en:["Bottom line"]}},74406:e=>{e.exports={en:["Body"]}},333:e=>{e.exports={en:["Borders"]}},79468:e=>{e.exports={en:["Background"]}},10842:e=>{e.exports={en:["Bar change values"]}},70817:e=>{e.exports={en:["Bar change color based on value"]}},28975:e=>{e.exports={en:["Base level"]}},76473:e=>{e.exports={en:["Bid and ask"]}},32744:e=>{e.exports={en:["Buttons"]}},68662:e=>{e.exports={en:["Grid lines"]}},17611:e=>{e.exports={en:["Down bars"]}},23743:e=>{e.exports={en:["Down color"]}},48225:e=>{e.exports={en:["Data modification"]}},84838:e=>{e.exports={en:["Date format"]}},42357:e=>{e.exports={en:["Day of week on labels"]}},16564:e=>{e.exports={en:["Default"]}},78734:e=>{e.exports={en:["Description"]}},67036:e=>{e.exports={en:["Display inactivity gaps"]}},59777:e=>{e.exports={en:["Electronic trading hours background"]}},69808:e=>{e.exports={en:["Events"]}},41129:e=>{e.exports={en:["Fill"]}},61112:e=>{e.exports={en:["Fill top area"]}},73185:e=>{e.exports={en:["Fill bottom area"]}},3160:e=>{e.exports={en:["Horizontal"]}},61900:e=>{e.exports={en:["Horz only"]}},14180:e=>{e.exports={en:["High and low"]}},56359:e=>{e.exports={en:["High line"]}},47326:e=>{e.exports={en:["Integer"]}},17854:e=>{e.exports={en:["Interval"]}},84549:e=>{e.exports={en:["Indicators"]}},78082:e=>{e.exports={en:["Indicators and financials"]}},21429:e=>{e.exports={en:["Inputs"]}},25765:e=>{e.exports={en:["Open market status"]}},34579:e=>{e.exports={en:["Low line"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"]}},72423:e=>{e.exports={en:["Last day change values"]}},11626:e=>{e.exports={en:["Left"]}},56982:e=>{e.exports={en:["Lines"]}},8249:e=>{e.exports={en:["Money"]}},70937:e=>{e.exports={en:["Margins"]}},68833:e=>{e.exports={en:["Middle"]}},58589:e=>{e.exports={en:["No overlapping labels"]}},60798:e=>{e.exports={en:["None"]}},51019:e=>{e.exports={en:["Navigation"]}},99709:e=>{e.exports={en:["Name"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"]}},93968:e=>{e.exports={en:["Scales"]}},90275:e=>{e.exports={en:["Scales and lines"]}},30042:e=>{e.exports={en:["Scales placement"]}},28715:e=>{e.exports={ +en:["Status line"]}},95481:e=>{e.exports={en:["Symbol"]}},53263:e=>{e.exports={en:["Pane"]}},82894:e=>{e.exports={en:["Pane separators"]}},86235:e=>{e.exports={en:["Percentage"]}},94408:e=>{e.exports={en:["Pips"]}},60904:e=>{e.exports={en:["Pre/post market"]}},88327:e=>{e.exports={en:["Pre/post market hours background"]}},59766:e=>{e.exports={en:["Precision"]}},83811:e=>{e.exports={en:["Previous day close"]}},35082:e=>{e.exports={en:["Price Scale"]}},27632:e=>{e.exports={en:["Price and percentage value"]}},62142:e=>{e.exports={en:["Price labels & lines"]}},84684:e=>{e.exports={en:["Price source"]}},73466:e=>{e.exports={en:["Projection up bars"]}},77430:e=>{e.exports={en:["Projection candles"]}},88367:e=>{e.exports={en:["Projection down bars"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"]}},50421:e=>{e.exports={en:["Right"]}},62532:e=>{e.exports={en:["Right Margin"]}},41571:e=>{e.exports={en:["Watermark"]}},32163:e=>{e.exports={en:["Wick"]}},97118:e=>{e.exports={en:["Top"]}},89349:e=>{e.exports={en:["Top line"]}},70320:e=>{e.exports={en:["Text"]}},25485:e=>{e.exports={en:["Text alignment"]}},67781:e=>{e.exports={en:["Text orientation"]}},20215:e=>{e.exports={en:["Thin bars"]}},70198:e=>{e.exports={en:["Title"]}},29854:e=>{e.exports={en:["Titles"]}},5791:e=>{e.exports={en:["Ticker"]}},16816:e=>{e.exports={en:["Ticker and description"]}},24821:e=>{e.exports={en:["Ticks"]}},93965:e=>{e.exports={en:["Time Scale"]}},5591:e=>{e.exports={en:["Time hours format"]}},77073:e=>{e.exports={en:["Timezone"]}},76495:e=>{e.exports={en:["Trading"]}},33564:e=>{e.exports={en:["Unit"]}},23091:e=>{e.exports={en:["Up color"]}},36957:e=>{e.exports={en:["Up bars"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"]}},37644:e=>{e.exports={en:["Volume"]}},51514:e=>{e.exports={en:["Value"]}},31218:e=>{e.exports={en:["Value according to scale"]}},60092:e=>{e.exports={en:["Values"]}},83594:e=>{e.exports={en:["Vert and horz"]}},8402:e=>{e.exports={en:["Vert only"]}},69526:e=>{e.exports={en:["Vertical"]}},21105:e=>{e.exports={en:["candle"]}},27068:e=>{e.exports={en:["change HLC bars"]}},21201:e=>{e.exports={en:["change HLC bars color"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"]}},96227:e=>{e.exports={en:["change open market status visibility"]}},43231:e=>{e.exports={en:["change average close price line width"]}},47026:e=>{e.exports={en:["change average close price line color"]}},29281:e=>{e.exports={en:["change area fill color"]}},27059:e=>{e.exports={en:["change area line visibility"]}},89346:e=>{e.exports={en:["change area line width"]}},29605:e=>{e.exports={en:["change area line color"]}},56864:e=>{e.exports={en:["change area line style"]}},4640:e=>{e.exports={en:["change area price source"]}},98407:e=>{e.exports={en:["change ask line color"]}},42190:e=>{e.exports={en:["change base level"]}},71785:e=>{e.exports={en:["change baseline bottom line color"]}},85684:e=>{e.exports={en:["change baseline bottom line style"]}},56175:e=>{e.exports={ +en:["change baseline bottom line width"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"]}},92873:e=>{e.exports={en:["change baseline fill top area color"]}},68609:e=>{e.exports={en:["change baseline price source"]}},69044:e=>{e.exports={en:["change baseline top line color"]}},4425:e=>{e.exports={en:["change baseline top line style"]}},68197:e=>{e.exports={en:["change baseline top line width"]}},33464:e=>{e.exports={en:["change bar up color"]}},14201:e=>{e.exports={en:["change bar change down color"]}},30196:e=>{e.exports={en:["change bar change up color"]}},27426:e=>{e.exports={en:["change bar change visibility"]}},59622:e=>{e.exports={en:["change bar down color"]}},17919:e=>{e.exports={en:["change bid line color"]}},32094:e=>{e.exports={en:["change bottom margin"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"]}},64003:e=>{e.exports={en:["change currency label visibility"]}},42803:e=>{e.exports={en:["change chart background color"]}},41382:e=>{e.exports={en:["change chart background type"]}},79637:e=>{e.exports={en:["change chart values visibility"]}},43090:e=>{e.exports={en:["change color bars based on previous close"]}},88324:e=>{e.exports={en:["change column up color"]}},93890:e=>{e.exports={en:["change column down color"]}},4727:e=>{e.exports={en:["change column price source"]}},50544:e=>{e.exports={en:["change crosshair width"]}},92885:e=>{e.exports={en:["change crosshair color"]}},68418:e=>{e.exports={en:["change crosshair style"]}},43109:e=>{e.exports={en:["change date format"]}},30418:e=>{e.exports={en:["change day of week on labels"]}},82063:e=>{e.exports={en:["change decimal places"]}},45397:e=>{e.exports={en:["change extended hours color"]}},47393:e=>{e.exports={en:["change electronic trading hours"]}},73844:e=>{e.exports={en:["change grid lines visibility"]}},61407:e=>{e.exports={en:["change high and low price line color"]}},39581:e=>{e.exports={en:["change high and low price line width"]}},6026:e=>{e.exports={en:["change high-low body color"]}},73021:e=>{e.exports={en:["change high-low body visibility"]}},46844:e=>{e.exports={en:["change high-low border color"]}},15801:e=>{e.exports={en:["change high-low borders visibility"]}},72399:e=>{e.exports={en:["change high-low labels visibility"]}},56961:e=>{e.exports={en:["change high-low labels color"]}},21133:e=>{e.exports={en:["change horz grid lines color"]}},63050:e=>{e.exports={en:["change indicator titles visibility"]}},49583:e=>{e.exports={en:["change indicator values visibility"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"]}},451:e=>{e.exports={en:["change interval watermark visibility"]}},66307:e=>{e.exports={en:["change last day change visibility"]}},91873:e=>{e.exports={en:["change legend background transparency"]}},14246:e=>{e.exports={en:["change legend background visibility"]}},88640:e=>{e.exports={ +en:["change line color"]}},28818:e=>{e.exports={en:["change line style"]}},41837:e=>{e.exports={en:["change line price source"]}},48339:e=>{e.exports={en:["change line width"]}},18378:e=>{e.exports={en:["change pane buttons visibility"]}},52203:e=>{e.exports={en:["change pane separators color"]}},38730:e=>{e.exports={en:["change post market color"]}},28075:e=>{e.exports={en:["change post market line color"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"]}},44371:e=>{e.exports={en:["change pre market color"]}},96114:e=>{e.exports={en:["change pre market line color"]}},69814:e=>{e.exports={en:["change previous close price line color"]}},13660:e=>{e.exports={en:["change previous close price line width"]}},87861:e=>{e.exports={en:["change price line color"]}},29353:e=>{e.exports={en:["change price line width"]}},16241:e=>{e.exports={en:["change range bars style"]}},65821:e=>{e.exports={en:["change range thin bars"]}},75487:e=>{e.exports={en:["change renko wick down color"]}},92277:e=>{e.exports={en:["change renko wick up color"]}},79604:e=>{e.exports={en:["change renko wick visibility"]}},66021:e=>{e.exports={en:["change replay watermark visibility"]}},82946:e=>{e.exports={en:["change right margin"]}},79545:e=>{e.exports={en:["change right margin percentage"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"]}},78995:e=>{e.exports={en:["change symbol watermark color"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"]}},88167:e=>{e.exports={en:["change symbol description visibility"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"]}},12050:e=>{e.exports={en:["change symbol field visibility"]}},46066:e=>{e.exports={en:["change symbol last value mode"]}},902:e=>{e.exports={en:["change symbol legend format"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"]}},76131:e=>{e.exports={en:["change scales text color"]}},27792:e=>{e.exports={en:["change scales font size"]}},94997:e=>{e.exports={en:["change scales lines color"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"]}},28175:e=>{e.exports={en:["change sessions breaks width"]}},33895:e=>{e.exports={en:["change sessions breaks color"]}},21641:e=>{e.exports={en:["change sessions breaks style"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"]}},60834:e=>{e.exports={en:["change thin bars"]}},39754:e=>{e.exports={en:["change time hours format"]}},74883:e=>{e.exports={en:["change top margin"]}},51250:e=>{e.exports={en:["change unit label visibility"]}},28142:e=>{e.exports={en:["change use custom bar change colors"]}},71805:e=>{e.exports={en:["change vert grid lines color"]}},96201:e=>{e.exports={en:["change volume values visibility"]}},17214:e=>{e.exports={en:["change {candleType} up border color"]}},36697:e=>{e.exports={en:["change {candleType} up color"]}},48091:e=>{e.exports={ +en:["change {candleType} wick down color"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"]}},20291:e=>{e.exports={en:["change {candleType} down border color"]}},64571:e=>{e.exports={en:["change {candleType} down color"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"]}},5012:e=>{e.exports={en:["change {chartType} down color"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"]}},6970:e=>{e.exports={en:["change {chartType} up color"]}},66110:e=>{e.exports={en:["change {inputName} property"]}},18077:e=>{e.exports={en:["adjust data for dividends"]}},1433:e=>{e.exports={en:["adjust for contract changes"]}},92598:e=>{e.exports={en:["hollow candles"]}},57243:e=>{e.exports={en:["range","ranges"]}},70282:e=>{e.exports={en:["renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/es.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/es.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index 8f289de0..00000000 --- a/charting_library/bundles/es.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,8 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:e=>{e.exports={en:["bars"],es:["barras"]}},31882:e=>{e.exports={en:["12-hours"],es:["12 horas"]}},5797:e=>{e.exports={en:["24-hours"],es:["24 horas"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],es:["Color de barras en función del cierre anterior"]}},23739:e=>{e.exports={en:["Canvas"],es:["Lienzo"]}},24197:e=>{e.exports={en:["Center"],es:["Centro"]}},15153:e=>{e.exports={en:["Chart basic styles"],es:["Estilos básicos del gráfico"]}},45639:e=>{e.exports={en:["Chart values"],es:["Valores del gráfico"]}},84831:e=>{e.exports={en:["Close line"],es:["Línea de cierre"]}},74622:e=>{e.exports={en:["Crosshair"],es:["Retícula"]}},81849:e=>{e.exports={en:["Currency"],es:["Divisa"]}},3015:e=>{e.exports={en:["Currency and Unit"],es:["Divisa y unidad"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],es:["Ajustar datos de los dividendos"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],es:["Ajustar para cambios de contrato"]}},36620:e=>{e.exports={en:["Alerts"],es:["Alertas"]}},68650:e=>{e.exports={en:["Average close"],es:["Cierre medio"]}},27567:e=>{e.exports={en:["Bottom"],es:["Parte inferior"]}},3159:e=>{e.exports={en:["Bottom line"],es:["Resultado final"]}},74406:e=>{e.exports={en:["Body"],es:["Cuerpo"]}},333:e=>{e.exports={en:["Borders"],es:["Bordes"]}},79468:e=>{e.exports={en:["Background"],es:["Fondo"]}},10842:e=>{e.exports={en:["Bar change values"],es:["Valores de los cambios en la barra"]}},28975:e=>{e.exports={en:["Base level"],es:["Nivel de la base"]}},76473:e=>{e.exports={en:["Bid and ask"],es:["Compra y venta (bid/ask)"]}},32744:e=>{e.exports={en:["Buttons"],es:["Botones"]}},68662:e=>{e.exports={en:["Grid lines"],es:["Líneas cuadrícula"]}},17611:e=>{e.exports={en:["Down bars"],es:["Barras descendentes"]}},23743:e=>{e.exports={en:["Down color"],es:["Color inferior"]}},48225:e=>{e.exports={en:["Data modification"],es:["Modificación de datos"]}},84838:e=>{e.exports={en:["Date format"],es:["Formato de fecha"]}},42357:e=>{e.exports={en:["Day of week on labels"],es:["Día de la semana en las etiquetas"]}},16564:e=>{e.exports={en:["Default"],es:["Por defecto"]}},78734:e=>{e.exports={en:["Description"],es:["Descripción"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],es:["Mostrar gaps de inactividad"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],es:["Información general sobre el horario de negociación electrónica"]}},69808:e=>{e.exports={en:["Events"],es:["Eventos"]}},41129:e=>{e.exports={en:["Fill"],es:["Rellenar"]}},61112:e=>{e.exports={en:["Fill top area"],es:["Rellenar el área superior"]}},73185:e=>{e.exports={en:["Fill bottom area"],es:["Rellenar el área inferior"]}},3160:e=>{e.exports={en:["Horizontal"]}},61900:e=>{e.exports={en:["Horz only"],es:["Solo horiz"]}},14180:e=>{e.exports={en:["High and low"],es:["Máximo y mínimo"]}},56359:e=>{e.exports={en:["High line"],es:["Línea de máximos"]}},47326:e=>{e.exports={en:["Integer"],es:["Número entero"]}},17854:e=>{e.exports={ -en:["Interval"],es:["Intervalo"]}},84549:e=>{e.exports={en:["Indicators"],es:["Indicadores"]}},78082:e=>{e.exports={en:["Indicators and financials"],es:["Indicadores y datos financieros"]}},21429:e=>{e.exports={en:["Inputs"],es:["Entradas de datos"]}},25765:e=>{e.exports={en:["Open market status"],es:["Situación de la apertura del mercado"]}},34579:e=>{e.exports={en:["Low line"],es:["Línea de mínimos"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"],es:["Descripción larga"]}},72423:e=>{e.exports={en:["Last day change values"],es:["Valores del cambio del último día"]}},11626:e=>{e.exports={en:["Left"],es:["Izquierda"]}},56982:e=>{e.exports={en:["Lines"],es:["Líneas"]}},8249:e=>{e.exports={en:["Money"],es:["Dinero"]}},70937:e=>{e.exports={en:["Margins"],es:["Márgenes"]}},68833:e=>{e.exports={en:["Middle"],es:["En el medio"]}},58589:e=>{e.exports={en:["No overlapping labels"],es:["Sin etiquetas superpuestas"]}},60798:e=>{e.exports={en:["None"],es:["Ninguno"]}},51019:e=>{e.exports={en:["Navigation"],es:["Navegación"]}},99709:e=>{e.exports={en:["Name"],es:["Nombre"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],es:["Guardar la posición del borde izquierdo del gráfico al cambiar el intervalo"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],es:["Modos de escala (A y L)"]}},93968:e=>{e.exports={en:["Scales"],es:["Escalas"]}},90275:e=>{e.exports={en:["Scales and lines"],es:["Escalas y líneas"]}},30042:e=>{e.exports={en:["Scales placement"],es:["Colocación de escalas"]}},28715:e=>{e.exports={en:["Status line"],es:["Linea de estado"]}},95481:e=>{e.exports={en:["Symbol"],es:["Símbolo"]}},53263:e=>{e.exports={en:["Pane"],es:["Panel"]}},82894:e=>{e.exports={en:["Pane separators"],es:["Separadores del panel"]}},86235:e=>{e.exports={en:["Percentage"],es:["Porcentaje"]}},94408:e=>{e.exports={en:["Pips"]}},60904:e=>{e.exports={en:["Pre/post market"],es:["Pre/pos mercado"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],es:["Información horaria pre/pos mercado"]}},59766:e=>{e.exports={en:["Precision"],es:["Precisión"]}},83811:e=>{e.exports={en:["Previous day close"],es:["Cierre del día anterior"]}},35082:e=>{e.exports={en:["Price Scale"],es:["Escala de precios"]}},27632:e=>{e.exports={en:["Price and percentage value"],es:["Precio y valor porcentual"]}},62142:e=>{e.exports={en:["Price labels & lines"],es:["Etiquetas y líneas de precios"]}},84684:e=>{e.exports={en:["Price source"],es:["Fuente de los precios"]}},73466:e=>{e.exports={en:["Projection up bars"],es:["Barras superiores de proyección"]}},77430:e=>{e.exports={en:["Projection candles"],es:["Velas de proyección"]}},88367:e=>{e.exports={en:["Projection down bars"],es:["Barras de proyección descendentes"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],es:["Precios reales en la escala (en lugar del precio Heikin Ashi)"]}},50421:e=>{e.exports={en:["Right"],es:["Derecha"]}},62532:e=>{e.exports={en:["Right Margin"],es:["Margen derecho"]}},41571:e=>{ -e.exports={en:["Watermark"],es:["Marca de agua"]}},32163:e=>{e.exports={en:["Wick"],es:["Mecha"]}},97118:e=>{e.exports={en:["Top"],es:["Parte superior"]}},89349:e=>{e.exports={en:["Top line"],es:["Línea superior"]}},70320:e=>{e.exports={en:["Text"],es:["Тexto"]}},25485:e=>{e.exports={en:["Text alignment"],es:["Alineación del texto"]}},67781:e=>{e.exports={en:["Text orientation"],es:["Orientación del texto"]}},20215:e=>{e.exports={en:["Thin bars"],es:["Barras finas"]}},70198:e=>{e.exports={en:["Title"],es:["Título"]}},29854:e=>{e.exports={en:["Titles"],es:["Títulos"]}},5791:e=>{e.exports={en:["Ticker"]}},16816:e=>{e.exports={en:["Ticker and description"],es:["Ticker y descripción"]}},24821:e=>{e.exports={en:["Ticks"],es:["Tics"]}},93965:e=>{e.exports={en:["Time Scale"],es:["Escala de tiempo"]}},5591:e=>{e.exports={en:["Time hours format"],es:["Formato de las horas"]}},77073:e=>{e.exports={en:["Timezone"],es:["Zona horaria"]}},76495:e=>{e.exports={en:["Trading"]}},33564:e=>{e.exports={en:["Unit"],es:["Unidad"]}},23091:e=>{e.exports={en:["Up color"],es:["Color superior"]}},36957:e=>{e.exports={en:["Up bars"],es:["Barras superiores"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],es:["Utilizar la liquidación como cierre en intervalos diarios"]}},37644:e=>{e.exports={en:["Volume"],es:["Volumen"]}},51514:e=>{e.exports={en:["Value"],es:["Valor"]}},31218:e=>{e.exports={en:["Value according to scale"],es:["Valor conforme a la escala"]}},60092:e=>{e.exports={en:["Values"],es:["Valores"]}},83594:e=>{e.exports={en:["Vert and horz"],es:["Vert y horiz"]}},8402:e=>{e.exports={en:["Vert only"],es:["Solo vert"]}},69526:e=>{e.exports={en:["Vertical"]}},21105:e=>{e.exports={en:["candle"],es:["vela"]}},27068:e=>{e.exports={en:["change HLC bars"],es:["cambiar las barras HLC"]}},21201:e=>{e.exports={en:["change HLC bars color"],es:["cambiar el color de las barras HLC"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],es:["cambiar la visibilidad de los botones de navegación"]}},96227:e=>{e.exports={en:["change open market status visibility"],es:["cambiar visibilidad de la situación de la apertura del mercado"]}},43231:e=>{e.exports={en:["change average close price line width"],es:["cambiar anchura de la línea del precio medio de cierre"]}},47026:e=>{e.exports={en:["change average close price line color"],es:["cambiar color de la línea del precio medio de cierre"]}},29281:e=>{e.exports={en:["change area fill color"],es:["cambiar el color de relleno del área"]}},27059:e=>{e.exports={en:["change area line visibility"],es:["cambiar la visibilidad de la línea de área"]}},89346:e=>{e.exports={en:["change area line width"],es:["cambiar el ancho de la línea del área"]}},29605:e=>{e.exports={en:["change area line color"],es:["cambiar el color de la línea del área"]}},56864:e=>{e.exports={en:["change area line style"],es:["cambiar estilo de línea del área"]}},4640:e=>{e.exports={en:["change area price source"],es:["cambiar la fuente de los precios del área"]}},98407:e=>{e.exports={ -en:["change ask line color"],es:["cambiar el color de la línea de venta (ask)"]}},42190:e=>{e.exports={en:["change base level"],es:["cambiar el nivel de referencia"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],es:["cambiar el color de la línea inferior de la línea de referencia"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],es:["cambiar estilo de línea de referencia inferior"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],es:["cambiar el ancho de la línea inferior de la línea de referencia"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],es:["cambiar el color de relleno del área inferior de la línea de referencia"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],es:["cambiar el color de relleno del área superior de la línea de referencia"]}},68609:e=>{e.exports={en:["change baseline price source"],es:["cambiar la fuente de precios de referencia"]}},69044:e=>{e.exports={en:["change baseline top line color"],es:["cambiar el color de la línea superior de la línea de referencia"]}},4425:e=>{e.exports={en:["change baseline top line style"],es:["cambiar estilo de línea de referencia superior"]}},68197:e=>{e.exports={en:["change baseline top line width"],es:["cambiar el ancho de la línea superior de la línea de referencia"]}},33464:e=>{e.exports={en:["change bar up color"],es:["cambiar el color superior de la barra"]}},27426:e=>{e.exports={en:["change bar change visibility"],es:["cambiar la visibilidad del cambio de barra"]}},59622:e=>{e.exports={en:["change bar down color"],es:["cambiar el color inferior de la barra"]}},17919:e=>{e.exports={en:["change bid line color"],es:["cambiar el color de la línea de compra (bid)"]}},32094:e=>{e.exports={en:["change bottom margin"],es:["cambiar el margen inferior"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],es:["cambiar la visibilidad de las etiquetas de divisas y unidades"]}},64003:e=>{e.exports={en:["change currency label visibility"],es:["cambiar la visibilidad de la etiqueta de divisas"]}},42803:e=>{e.exports={en:["change chart background color"],es:["cambiar el color de fondo del gráfico"]}},41382:e=>{e.exports={en:["change chart background type"],es:["cambiar el tipo de fondo del gráfico"]}},79637:e=>{e.exports={en:["change chart values visibility"],es:["cambiar la visibilidad de los valores del gráfico"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],es:["cambiar el color de las barras en función del valor de cierre anterior"]}},88324:e=>{e.exports={en:["change column up color"],es:["cambiar color superior de la columna"]}},93890:e=>{e.exports={en:["change column down color"],es:["cambiar color inferior de la columna"]}},4727:e=>{e.exports={en:["change column price source"],es:["cambiar la fuente del precio de la columna"]}},50544:e=>{e.exports={en:["change crosshair width"],es:["cambiar el ancho de la retícula"]}},92885:e=>{e.exports={en:["change crosshair color"],es:["cambiar el color de la retícula"]}},68418:e=>{e.exports={ -en:["change crosshair style"],es:["cambiar el estilo de la retícula"]}},43109:e=>{e.exports={en:["change date format"],es:["cambiar el formato de fecha"]}},30418:e=>{e.exports={en:["change day of week on labels"],es:["cambiar día de la semana en las etiquetas"]}},82063:e=>{e.exports={en:["change decimal places"],es:["cambiar las posiciones decimales"]}},45397:e=>{e.exports={en:["change extended hours color"],es:["cambiar el color del horario ampliado"]}},47393:e=>{e.exports={en:["change electronic trading hours"],es:["modificar el horario de negociación electrónica"]}},73844:e=>{e.exports={en:["change grid lines visibility"],es:["cambiar visibilidad de las líneas de cuadrículas"]}},61407:e=>{e.exports={en:["change high and low price line color"],es:["cambiar color de la línea de precio máximo y mínimo"]}},39581:e=>{e.exports={en:["change high and low price line width"],es:["cambiar ancho de la línea de precios máximos y mínimos"]}},6026:e=>{e.exports={en:["change high-low body color"],es:["cambiar el color del cuerpo de máximos y mínimos"]}},73021:e=>{e.exports={en:["change high-low body visibility"],es:["cambiar la visibilidad del cuerpo de máximos y mínimos"]}},46844:e=>{e.exports={en:["change high-low border color"],es:["cambiar el color del borde del máximos y mínimos"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],es:["cambiar la visibilidad de los bordes de máximos y mínimos"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],es:["cambiar la visibilidad de las etiquetas de máximos y mínimos"]}},56961:e=>{e.exports={en:["change high-low labels color"],es:["cambiar el color de las etiquetas de máximos y mínimos"]}},21133:e=>{e.exports={en:["change horz grid lines color"],es:["cambiar el color de las líneas de la cuadrícula horizontal"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],es:["cambiar la visibilidad de los títulos de los indicadores"]}},49583:e=>{e.exports={en:["change indicator values visibility"],es:["cambiar la visibilidad de los valores de los indicadores"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],es:["cambiar visibilidad de entradas de indicador"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],es:["cambiar la visibilidad de las etiquetas con el nombre de los indicadores y de la información financiera"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],es:["cambiar la visibilidad de las etiquetas con el valor de los indicadores y la información financiera"]}},451:e=>{e.exports={en:["change interval watermark visibility"],es:["cambiar visibilidad de la marca de agua del intervalo"]}},66307:e=>{e.exports={en:["change last day change visibility"],es:["modificar la visibilidad del cambio del último día"]}},91873:e=>{e.exports={en:["change legend background transparency"],es:["cambiar la transparencia del fondo de la leyenda"]}},14246:e=>{e.exports={en:["change legend background visibility"],es:["cambiar la visibilidad del fondo de la leyenda"]}}, -88640:e=>{e.exports={en:["change line color"],es:["cambiar el color de línea"]}},28818:e=>{e.exports={en:["change line style"],es:["cambiar el estilo de la línea"]}},41837:e=>{e.exports={en:["change line price source"],es:["cambiar la fuente de precios de la línea"]}},48339:e=>{e.exports={en:["change line width"],es:["cambiar el ancho de línea"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],es:["cambiar la visibilidad de los botones del panel"]}},52203:e=>{e.exports={en:["change pane separators color"],es:["Cambiar el color de los separadores de paneles"]}},38730:e=>{e.exports={en:["change post market color"],es:["cambiar el color posmercado"]}},28075:e=>{e.exports={en:["change post market line color"],es:["cambiar el color de la línea posmercado"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],es:["cambiar la visibilidad de las líneas de precios pre/pos mercado"]}},44371:e=>{e.exports={en:["change pre market color"],es:["cambiar el color de la sesión premercado"]}},96114:e=>{e.exports={en:["change pre market line color"],es:["cambiar el color de la línea de la sesión premercado"]}},69814:e=>{e.exports={en:["change previous close price line color"],es:["cambiar el color de la línea con el precio de cierre anterior"]}},13660:e=>{e.exports={en:["change previous close price line width"],es:["cambiar el ancho de la línea con el precio de cierre anterior"]}},87861:e=>{e.exports={en:["change price line color"],es:["cambiar el color de la línea de precios"]}},29353:e=>{e.exports={en:["change price line width"],es:["cambiar el ancho de la línea de precios"]}},16241:e=>{e.exports={en:["change range bars style"],es:["cambiar estilo de las barras de rango"]}},65821:e=>{e.exports={en:["change range thin bars"],es:["cambiar el rango de las barras finas"]}},75487:e=>{e.exports={en:["change renko wick down color"],es:["cambiar el color inferior de la mecha renko"]}},92277:e=>{e.exports={en:["change renko wick up color"],es:["cambiar el color inferior de la mecha renko"]}},79604:e=>{e.exports={en:["change renko wick visibility"],es:["cambiar la visibilidad de las mechas renko"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],es:["cambiar visibilidad de la marca de agua de reproducción"]}},82946:e=>{e.exports={en:["change right margin"],es:["cambiar el margen derecho"]}},79545:e=>{e.exports={en:["change right margin percentage"],es:["cambiar porcentaje del margen derecho"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],es:["cambiar visibilidad de la marca de agua del ticker del símbolo"]}},78995:e=>{e.exports={en:["change symbol watermark color"],es:["cambiar el color de la marca de agua del símbolo"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],es:["cambiar la visibilidad de la marca de agua del símbolo"]}},88167:e=>{e.exports={en:["change symbol description visibility"],es:["cambiar la visibilidad de la descripción del símbolo"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"], -es:["cambiar visibilidad de la marca de agua de descripción del símbolo"]}},12050:e=>{e.exports={en:["change symbol field visibility"],es:["cambiar la visibilidad del campo del símbolo"]}},46066:e=>{e.exports={en:["change symbol last value mode"],es:["cambiar el modo del último valor del símbolo"]}},902:e=>{e.exports={en:["change symbol legend format"],es:["cambiar el formato de la leyenda del símbolo"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],es:["cambiar guardar la posición del borde izquierdo del gráfico al cambiar el intervalo"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],es:["cambiar visibilidad de los botones de modos de escala"]}},76131:e=>{e.exports={en:["change scales text color"],es:["cambiar el color del texto de la escala"]}},27792:e=>{e.exports={en:["change scales font size"],es:["cambiar tamaño de la fuente de la escala"]}},94997:e=>{e.exports={en:["change scales lines color"],es:["cambiar el color de la línea de la escala"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],es:["cambiar la visibilidad de las rupturas de las sesiones"]}},28175:e=>{e.exports={en:["change sessions breaks width"],es:["cambiar el ancho de las rupturas de las sesiones"]}},33895:e=>{e.exports={en:["change sessions breaks color"],es:["cambiar el color de las rupturas de las sesiones"]}},21641:e=>{e.exports={en:["change sessions breaks style"],es:["cambiar el estilo de las rupturas de las sesiones"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],es:["cambiar la visualización de los precios reales en la escala de precios (en lugar del precio Heiken-Ashi)"]}},60834:e=>{e.exports={en:["change thin bars"],es:["cambiar las barras finas"]}},39754:e=>{e.exports={en:["change time hours format"],es:["cambiar el formato de las horas"]}},74883:e=>{e.exports={en:["change top margin"],es:["cambiar el margen superior"]}},51250:e=>{e.exports={en:["change unit label visibility"],es:["cambiar la visibilidad de la etiqueta de unidades"]}},71805:e=>{e.exports={en:["change vert grid lines color"],es:["cambiar el color de las líneas de la cuadrícula vertical"]}},96201:e=>{e.exports={en:["change volume values visibility"],es:["cambiar la visibilidad de los valores de volumen"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],es:["cambiar el color del borde superior de {candleType}"]}},36697:e=>{e.exports={en:["change {candleType} up color"],es:["cambiar el color superior de {candleType}"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],es:["cambiar el color inferior de la mecha de {candleType}"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],es:["cambiar el color superior de la mecha de {candleType}"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],es:["cambiar la visibilidad de la mecha {candleType}"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],es:["cambiar la visibilidad del cuerpo de {candleType}"]}}, -11114:e=>{e.exports={en:["change {candleType} border visibility"],es:["cambiar la visibilidad del borde de {candleType}"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],es:["cambiar el color del borde inferior de {candleType}"]}},64571:e=>{e.exports={en:["change {candleType} down color"],es:["cambiar el color inferior de {candleType}"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],es:["cambiar el color inferior del borde de la barra de {chartType}"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],es:["cambiar el color superior del borde de la barra de {chartType}"]}},5012:e=>{e.exports={en:["change {chartType} down color"],es:["cambiar el color inferior de {chartType}"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],es:["cambiar el color superior del borde de la barra de proyección de {chartType}"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],es:["cambiar el color inferior de la barra de proyección de {chartType}"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],es:["cambiar el color superior de la barra de proyección de {chartType}"]}},6970:e=>{e.exports={en:["change {chartType} up color"],es:["cambiar el color superior de {chartType}"]}},66110:e=>{e.exports={en:["change {inputName} property"],es:["cambiar propiedad de {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],es:["ajustar datos de los dividendos"]}},1433:e=>{e.exports={en:["adjust for contract changes"],es:["ajustar para cambios de contrato"]}},92598:e=>{e.exports={en:["hollow candles"],es:["velas huecas"]}},57243:e=>{e.exports={en:["range","ranges"],es:["rango","rangos"]}},70282:e=>{e.exports={en:["renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],es:["alternar gaps de inactividad"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],es:["utilizar la liquidación como cierre en intervalos diarios"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],es:["{value} decimal","{value} decimales"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/es.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/es.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..be00fe91 --- /dev/null +++ b/charting_library/bundles/es.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,8 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:e=>{e.exports={en:["bars"],es:["barras"]}},31882:e=>{e.exports={en:["12-hours"],es:["12 horas"]}},5797:e=>{e.exports={en:["24-hours"],es:["24 horas"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],es:["Color de barras en función del cierre anterior"]}},23739:e=>{e.exports={en:["Canvas"],es:["Lienzo"]}},24197:e=>{e.exports={en:["Center"],es:["Centro"]}},15153:e=>{e.exports={en:["Chart basic styles"],es:["Estilos básicos del gráfico"]}},45639:e=>{e.exports={en:["Chart values"],es:["Valores del gráfico"]}},84831:e=>{e.exports={en:["Close line"],es:["Línea de cierre"]}},74622:e=>{e.exports={en:["Crosshair"],es:["Retícula"]}},81849:e=>{e.exports={en:["Currency"],es:["Divisa"]}},3015:e=>{e.exports={en:["Currency and Unit"],es:["Divisa y unidad"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],es:["Ajustar datos de los dividendos"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],es:["Ajustar para cambios de contrato"]}},36620:e=>{e.exports={en:["Alerts"],es:["Alertas"]}},68650:e=>{e.exports={en:["Average close"],es:["Cierre medio"]}},27567:e=>{e.exports={en:["Bottom"],es:["Parte inferior"]}},3159:e=>{e.exports={en:["Bottom line"],es:["Resultado final"]}},74406:e=>{e.exports={en:["Body"],es:["Cuerpo"]}},333:e=>{e.exports={en:["Borders"],es:["Bordes"]}},79468:e=>{e.exports={en:["Background"],es:["Fondo"]}},10842:e=>{e.exports={en:["Bar change values"],es:["Valores de los cambios en la barra"]}},70817:e=>{e.exports={en:["Bar change color based on value"]}},28975:e=>{e.exports={en:["Base level"],es:["Nivel de la base"]}},76473:e=>{e.exports={en:["Bid and ask"],es:["Compra y venta (bid/ask)"]}},32744:e=>{e.exports={en:["Buttons"],es:["Botones"]}},68662:e=>{e.exports={en:["Grid lines"],es:["Líneas cuadrícula"]}},17611:e=>{e.exports={en:["Down bars"],es:["Barras descendentes"]}},23743:e=>{e.exports={en:["Down color"],es:["Color inferior"]}},48225:e=>{e.exports={en:["Data modification"],es:["Modificación de datos"]}},84838:e=>{e.exports={en:["Date format"],es:["Formato de fecha"]}},42357:e=>{e.exports={en:["Day of week on labels"],es:["Día de la semana en las etiquetas"]}},16564:e=>{e.exports={en:["Default"],es:["Por defecto"]}},78734:e=>{e.exports={en:["Description"],es:["Descripción"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],es:["Mostrar gaps de inactividad"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],es:["Información general sobre el horario de negociación electrónica"]}},69808:e=>{e.exports={en:["Events"],es:["Eventos"]}},41129:e=>{e.exports={en:["Fill"],es:["Rellenar"]}},61112:e=>{e.exports={en:["Fill top area"],es:["Rellenar el área superior"]}},73185:e=>{e.exports={en:["Fill bottom area"],es:["Rellenar el área inferior"]}},3160:e=>{e.exports={en:["Horizontal"]}},61900:e=>{e.exports={en:["Horz only"],es:["Solo horiz"]}},14180:e=>{e.exports={en:["High and low"],es:["Máximo y mínimo"]}},56359:e=>{e.exports={en:["High line"],es:["Línea de máximos"]}},47326:e=>{e.exports={ +en:["Integer"],es:["Número entero"]}},17854:e=>{e.exports={en:["Interval"],es:["Intervalo"]}},84549:e=>{e.exports={en:["Indicators"],es:["Indicadores"]}},78082:e=>{e.exports={en:["Indicators and financials"],es:["Indicadores y datos financieros"]}},21429:e=>{e.exports={en:["Inputs"],es:["Entradas de datos"]}},25765:e=>{e.exports={en:["Open market status"],es:["Situación de la apertura del mercado"]}},34579:e=>{e.exports={en:["Low line"],es:["Línea de mínimos"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"],es:["Descripción larga"]}},72423:e=>{e.exports={en:["Last day change values"],es:["Valores del cambio del último día"]}},11626:e=>{e.exports={en:["Left"],es:["Izquierda"]}},56982:e=>{e.exports={en:["Lines"],es:["Líneas"]}},8249:e=>{e.exports={en:["Money"],es:["Dinero"]}},70937:e=>{e.exports={en:["Margins"],es:["Márgenes"]}},68833:e=>{e.exports={en:["Middle"],es:["En el medio"]}},58589:e=>{e.exports={en:["No overlapping labels"],es:["Sin etiquetas superpuestas"]}},60798:e=>{e.exports={en:["None"],es:["Ninguno"]}},51019:e=>{e.exports={en:["Navigation"],es:["Navegación"]}},99709:e=>{e.exports={en:["Name"],es:["Nombre"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],es:["Guardar la posición del borde izquierdo del gráfico al cambiar el intervalo"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],es:["Modos de escala (A y L)"]}},93968:e=>{e.exports={en:["Scales"],es:["Escalas"]}},90275:e=>{e.exports={en:["Scales and lines"],es:["Escalas y líneas"]}},30042:e=>{e.exports={en:["Scales placement"],es:["Colocación de escalas"]}},28715:e=>{e.exports={en:["Status line"],es:["Linea de estado"]}},95481:e=>{e.exports={en:["Symbol"],es:["Símbolo"]}},53263:e=>{e.exports={en:["Pane"],es:["Panel"]}},82894:e=>{e.exports={en:["Pane separators"],es:["Separadores del panel"]}},86235:e=>{e.exports={en:["Percentage"],es:["Porcentaje"]}},94408:e=>{e.exports={en:["Pips"]}},60904:e=>{e.exports={en:["Pre/post market"],es:["Pre/pos mercado"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],es:["Información horaria pre/pos mercado"]}},59766:e=>{e.exports={en:["Precision"],es:["Precisión"]}},83811:e=>{e.exports={en:["Previous day close"],es:["Cierre del día anterior"]}},35082:e=>{e.exports={en:["Price Scale"],es:["Escala de precios"]}},27632:e=>{e.exports={en:["Price and percentage value"],es:["Precio y valor porcentual"]}},62142:e=>{e.exports={en:["Price labels & lines"],es:["Etiquetas y líneas de precios"]}},84684:e=>{e.exports={en:["Price source"],es:["Fuente de los precios"]}},73466:e=>{e.exports={en:["Projection up bars"],es:["Barras superiores de proyección"]}},77430:e=>{e.exports={en:["Projection candles"],es:["Velas de proyección"]}},88367:e=>{e.exports={en:["Projection down bars"],es:["Barras de proyección descendentes"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],es:["Precios reales en la escala (en lugar del precio Heikin Ashi)"]}},50421:e=>{e.exports={en:["Right"],es:["Derecha"]}},62532:e=>{e.exports={ +en:["Right Margin"],es:["Margen derecho"]}},41571:e=>{e.exports={en:["Watermark"],es:["Marca de agua"]}},32163:e=>{e.exports={en:["Wick"],es:["Mecha"]}},97118:e=>{e.exports={en:["Top"],es:["Parte superior"]}},89349:e=>{e.exports={en:["Top line"],es:["Línea superior"]}},70320:e=>{e.exports={en:["Text"],es:["Тexto"]}},25485:e=>{e.exports={en:["Text alignment"],es:["Alineación del texto"]}},67781:e=>{e.exports={en:["Text orientation"],es:["Orientación del texto"]}},20215:e=>{e.exports={en:["Thin bars"],es:["Barras finas"]}},70198:e=>{e.exports={en:["Title"],es:["Título"]}},29854:e=>{e.exports={en:["Titles"],es:["Títulos"]}},5791:e=>{e.exports={en:["Ticker"]}},16816:e=>{e.exports={en:["Ticker and description"],es:["Ticker y descripción"]}},24821:e=>{e.exports={en:["Ticks"],es:["Tics"]}},93965:e=>{e.exports={en:["Time Scale"],es:["Escala de tiempo"]}},5591:e=>{e.exports={en:["Time hours format"],es:["Formato de las horas"]}},77073:e=>{e.exports={en:["Timezone"],es:["Zona horaria"]}},76495:e=>{e.exports={en:["Trading"]}},33564:e=>{e.exports={en:["Unit"],es:["Unidad"]}},23091:e=>{e.exports={en:["Up color"],es:["Color superior"]}},36957:e=>{e.exports={en:["Up bars"],es:["Barras superiores"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],es:["Utilizar la liquidación como cierre en intervalos diarios"]}},37644:e=>{e.exports={en:["Volume"],es:["Volumen"]}},51514:e=>{e.exports={en:["Value"],es:["Valor"]}},31218:e=>{e.exports={en:["Value according to scale"],es:["Valor conforme a la escala"]}},60092:e=>{e.exports={en:["Values"],es:["Valores"]}},83594:e=>{e.exports={en:["Vert and horz"],es:["Vert y horiz"]}},8402:e=>{e.exports={en:["Vert only"],es:["Solo vert"]}},69526:e=>{e.exports={en:["Vertical"]}},21105:e=>{e.exports={en:["candle"],es:["vela"]}},27068:e=>{e.exports={en:["change HLC bars"],es:["cambiar las barras HLC"]}},21201:e=>{e.exports={en:["change HLC bars color"],es:["cambiar el color de las barras HLC"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],es:["cambiar la visibilidad de los botones de navegación"]}},96227:e=>{e.exports={en:["change open market status visibility"],es:["cambiar visibilidad de la situación de la apertura del mercado"]}},43231:e=>{e.exports={en:["change average close price line width"],es:["cambiar anchura de la línea del precio medio de cierre"]}},47026:e=>{e.exports={en:["change average close price line color"],es:["cambiar color de la línea del precio medio de cierre"]}},29281:e=>{e.exports={en:["change area fill color"],es:["cambiar el color de relleno del área"]}},27059:e=>{e.exports={en:["change area line visibility"],es:["cambiar la visibilidad de la línea de área"]}},89346:e=>{e.exports={en:["change area line width"],es:["cambiar el ancho de la línea del área"]}},29605:e=>{e.exports={en:["change area line color"],es:["cambiar el color de la línea del área"]}},56864:e=>{e.exports={en:["change area line style"],es:["cambiar estilo de línea del área"]}},4640:e=>{e.exports={en:["change area price source"], +es:["cambiar la fuente de los precios del área"]}},98407:e=>{e.exports={en:["change ask line color"],es:["cambiar el color de la línea de venta (ask)"]}},42190:e=>{e.exports={en:["change base level"],es:["cambiar el nivel de referencia"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],es:["cambiar el color de la línea inferior de la línea de referencia"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],es:["cambiar estilo de línea de referencia inferior"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],es:["cambiar el ancho de la línea inferior de la línea de referencia"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],es:["cambiar el color de relleno del área inferior de la línea de referencia"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],es:["cambiar el color de relleno del área superior de la línea de referencia"]}},68609:e=>{e.exports={en:["change baseline price source"],es:["cambiar la fuente de precios de referencia"]}},69044:e=>{e.exports={en:["change baseline top line color"],es:["cambiar el color de la línea superior de la línea de referencia"]}},4425:e=>{e.exports={en:["change baseline top line style"],es:["cambiar estilo de línea de referencia superior"]}},68197:e=>{e.exports={en:["change baseline top line width"],es:["cambiar el ancho de la línea superior de la línea de referencia"]}},33464:e=>{e.exports={en:["change bar up color"],es:["cambiar el color superior de la barra"]}},14201:e=>{e.exports={en:["change bar change down color"]}},30196:e=>{e.exports={en:["change bar change up color"]}},27426:e=>{e.exports={en:["change bar change visibility"],es:["cambiar la visibilidad del cambio de barra"]}},59622:e=>{e.exports={en:["change bar down color"],es:["cambiar el color inferior de la barra"]}},17919:e=>{e.exports={en:["change bid line color"],es:["cambiar el color de la línea de compra (bid)"]}},32094:e=>{e.exports={en:["change bottom margin"],es:["cambiar el margen inferior"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],es:["cambiar la visibilidad de las etiquetas de divisas y unidades"]}},64003:e=>{e.exports={en:["change currency label visibility"],es:["cambiar la visibilidad de la etiqueta de divisas"]}},42803:e=>{e.exports={en:["change chart background color"],es:["cambiar el color de fondo del gráfico"]}},41382:e=>{e.exports={en:["change chart background type"],es:["cambiar el tipo de fondo del gráfico"]}},79637:e=>{e.exports={en:["change chart values visibility"],es:["cambiar la visibilidad de los valores del gráfico"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],es:["cambiar el color de las barras en función del valor de cierre anterior"]}},88324:e=>{e.exports={en:["change column up color"],es:["cambiar color superior de la columna"]}},93890:e=>{e.exports={en:["change column down color"],es:["cambiar color inferior de la columna"]}},4727:e=>{e.exports={en:["change column price source"],es:["cambiar la fuente del precio de la columna"]}},50544:e=>{ +e.exports={en:["change crosshair width"],es:["cambiar el ancho de la retícula"]}},92885:e=>{e.exports={en:["change crosshair color"],es:["cambiar el color de la retícula"]}},68418:e=>{e.exports={en:["change crosshair style"],es:["cambiar el estilo de la retícula"]}},43109:e=>{e.exports={en:["change date format"],es:["cambiar el formato de fecha"]}},30418:e=>{e.exports={en:["change day of week on labels"],es:["cambiar día de la semana en las etiquetas"]}},82063:e=>{e.exports={en:["change decimal places"],es:["cambiar las posiciones decimales"]}},45397:e=>{e.exports={en:["change extended hours color"],es:["cambiar el color del horario ampliado"]}},47393:e=>{e.exports={en:["change electronic trading hours"],es:["modificar el horario de negociación electrónica"]}},73844:e=>{e.exports={en:["change grid lines visibility"],es:["cambiar visibilidad de las líneas de cuadrículas"]}},61407:e=>{e.exports={en:["change high and low price line color"],es:["cambiar color de la línea de precio máximo y mínimo"]}},39581:e=>{e.exports={en:["change high and low price line width"],es:["cambiar ancho de la línea de precios máximos y mínimos"]}},6026:e=>{e.exports={en:["change high-low body color"],es:["cambiar el color del cuerpo de máximos y mínimos"]}},73021:e=>{e.exports={en:["change high-low body visibility"],es:["cambiar la visibilidad del cuerpo de máximos y mínimos"]}},46844:e=>{e.exports={en:["change high-low border color"],es:["cambiar el color del borde del máximos y mínimos"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],es:["cambiar la visibilidad de los bordes de máximos y mínimos"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],es:["cambiar la visibilidad de las etiquetas de máximos y mínimos"]}},56961:e=>{e.exports={en:["change high-low labels color"],es:["cambiar el color de las etiquetas de máximos y mínimos"]}},21133:e=>{e.exports={en:["change horz grid lines color"],es:["cambiar el color de las líneas de la cuadrícula horizontal"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],es:["cambiar la visibilidad de los títulos de los indicadores"]}},49583:e=>{e.exports={en:["change indicator values visibility"],es:["cambiar la visibilidad de los valores de los indicadores"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],es:["cambiar visibilidad de entradas de indicador"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],es:["cambiar la visibilidad de las etiquetas con el nombre de los indicadores y de la información financiera"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],es:["cambiar la visibilidad de las etiquetas con el valor de los indicadores y la información financiera"]}},451:e=>{e.exports={en:["change interval watermark visibility"],es:["cambiar visibilidad de la marca de agua del intervalo"]}},66307:e=>{e.exports={en:["change last day change visibility"],es:["modificar la visibilidad del cambio del último día"]}},91873:e=>{e.exports={ +en:["change legend background transparency"],es:["cambiar la transparencia del fondo de la leyenda"]}},14246:e=>{e.exports={en:["change legend background visibility"],es:["cambiar la visibilidad del fondo de la leyenda"]}},88640:e=>{e.exports={en:["change line color"],es:["cambiar el color de línea"]}},28818:e=>{e.exports={en:["change line style"],es:["cambiar el estilo de la línea"]}},41837:e=>{e.exports={en:["change line price source"],es:["cambiar la fuente de precios de la línea"]}},48339:e=>{e.exports={en:["change line width"],es:["cambiar el ancho de línea"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],es:["cambiar la visibilidad de los botones del panel"]}},52203:e=>{e.exports={en:["change pane separators color"],es:["Cambiar el color de los separadores de paneles"]}},38730:e=>{e.exports={en:["change post market color"],es:["cambiar el color posmercado"]}},28075:e=>{e.exports={en:["change post market line color"],es:["cambiar el color de la línea posmercado"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],es:["cambiar la visibilidad de las líneas de precios pre/pos mercado"]}},44371:e=>{e.exports={en:["change pre market color"],es:["cambiar el color de la sesión premercado"]}},96114:e=>{e.exports={en:["change pre market line color"],es:["cambiar el color de la línea de la sesión premercado"]}},69814:e=>{e.exports={en:["change previous close price line color"],es:["cambiar el color de la línea con el precio de cierre anterior"]}},13660:e=>{e.exports={en:["change previous close price line width"],es:["cambiar el ancho de la línea con el precio de cierre anterior"]}},87861:e=>{e.exports={en:["change price line color"],es:["cambiar el color de la línea de precios"]}},29353:e=>{e.exports={en:["change price line width"],es:["cambiar el ancho de la línea de precios"]}},16241:e=>{e.exports={en:["change range bars style"],es:["cambiar estilo de las barras de rango"]}},65821:e=>{e.exports={en:["change range thin bars"],es:["cambiar el rango de las barras finas"]}},75487:e=>{e.exports={en:["change renko wick down color"],es:["cambiar el color inferior de la mecha renko"]}},92277:e=>{e.exports={en:["change renko wick up color"],es:["cambiar el color inferior de la mecha renko"]}},79604:e=>{e.exports={en:["change renko wick visibility"],es:["cambiar la visibilidad de las mechas renko"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],es:["cambiar visibilidad de la marca de agua de reproducción"]}},82946:e=>{e.exports={en:["change right margin"],es:["cambiar el margen derecho"]}},79545:e=>{e.exports={en:["change right margin percentage"],es:["cambiar porcentaje del margen derecho"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],es:["cambiar visibilidad de la marca de agua del ticker del símbolo"]}},78995:e=>{e.exports={en:["change symbol watermark color"],es:["cambiar el color de la marca de agua del símbolo"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],es:["cambiar la visibilidad de la marca de agua del símbolo"]}}, +88167:e=>{e.exports={en:["change symbol description visibility"],es:["cambiar la visibilidad de la descripción del símbolo"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],es:["cambiar visibilidad de la marca de agua de descripción del símbolo"]}},12050:e=>{e.exports={en:["change symbol field visibility"],es:["cambiar la visibilidad del campo del símbolo"]}},46066:e=>{e.exports={en:["change symbol last value mode"],es:["cambiar el modo del último valor del símbolo"]}},902:e=>{e.exports={en:["change symbol legend format"],es:["cambiar el formato de la leyenda del símbolo"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],es:["cambiar guardar la posición del borde izquierdo del gráfico al cambiar el intervalo"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],es:["cambiar visibilidad de los botones de modos de escala"]}},76131:e=>{e.exports={en:["change scales text color"],es:["cambiar el color del texto de la escala"]}},27792:e=>{e.exports={en:["change scales font size"],es:["cambiar tamaño de la fuente de la escala"]}},94997:e=>{e.exports={en:["change scales lines color"],es:["cambiar el color de la línea de la escala"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],es:["cambiar la visibilidad de las rupturas de las sesiones"]}},28175:e=>{e.exports={en:["change sessions breaks width"],es:["cambiar el ancho de las rupturas de las sesiones"]}},33895:e=>{e.exports={en:["change sessions breaks color"],es:["cambiar el color de las rupturas de las sesiones"]}},21641:e=>{e.exports={en:["change sessions breaks style"],es:["cambiar el estilo de las rupturas de las sesiones"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],es:["cambiar la visualización de los precios reales en la escala de precios (en lugar del precio Heiken-Ashi)"]}},60834:e=>{e.exports={en:["change thin bars"],es:["cambiar las barras finas"]}},39754:e=>{e.exports={en:["change time hours format"],es:["cambiar el formato de las horas"]}},74883:e=>{e.exports={en:["change top margin"],es:["cambiar el margen superior"]}},51250:e=>{e.exports={en:["change unit label visibility"],es:["cambiar la visibilidad de la etiqueta de unidades"]}},28142:e=>{e.exports={en:["change use custom bar change colors"]}},71805:e=>{e.exports={en:["change vert grid lines color"],es:["cambiar el color de las líneas de la cuadrícula vertical"]}},96201:e=>{e.exports={en:["change volume values visibility"],es:["cambiar la visibilidad de los valores de volumen"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],es:["cambiar el color del borde superior de {candleType}"]}},36697:e=>{e.exports={en:["change {candleType} up color"],es:["cambiar el color superior de {candleType}"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],es:["cambiar el color inferior de la mecha de {candleType}"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"], +es:["cambiar el color superior de la mecha de {candleType}"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],es:["cambiar la visibilidad de la mecha {candleType}"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],es:["cambiar la visibilidad del cuerpo de {candleType}"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],es:["cambiar la visibilidad del borde de {candleType}"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],es:["cambiar el color del borde inferior de {candleType}"]}},64571:e=>{e.exports={en:["change {candleType} down color"],es:["cambiar el color inferior de {candleType}"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],es:["cambiar el color inferior del borde de la barra de {chartType}"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],es:["cambiar el color superior del borde de la barra de {chartType}"]}},5012:e=>{e.exports={en:["change {chartType} down color"],es:["cambiar el color inferior de {chartType}"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],es:["cambiar el color superior del borde de la barra de proyección de {chartType}"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],es:["cambiar el color inferior de la barra de proyección de {chartType}"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],es:["cambiar el color superior de la barra de proyección de {chartType}"]}},6970:e=>{e.exports={en:["change {chartType} up color"],es:["cambiar el color superior de {chartType}"]}},66110:e=>{e.exports={en:["change {inputName} property"],es:["cambiar propiedad de {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],es:["ajustar datos de los dividendos"]}},1433:e=>{e.exports={en:["adjust for contract changes"],es:["ajustar para cambios de contrato"]}},92598:e=>{e.exports={en:["hollow candles"],es:["velas huecas"]}},57243:e=>{e.exports={en:["range","ranges"],es:["rango","rangos"]}},70282:e=>{e.exports={en:["renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],es:["alternar gaps de inactividad"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],es:["utilizar la liquidación como cierre en intervalos diarios"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],es:["{value} decimal","{value} decimales"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/fr.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/fr.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index 86afc419..00000000 --- a/charting_library/bundles/fr.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,8 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:e=>{e.exports={en:["bars"],fr:["barres"]}},31882:e=>{e.exports={en:["12-hours"],fr:["12 heures"]}},5797:e=>{e.exports={en:["24-hours"],fr:["24 heures"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],fr:["Coloriser les Barres selon la Clôture Précédente"]}},23739:e=>{e.exports={en:["Canvas"],fr:["Toile"]}},24197:e=>{e.exports={en:["Center"],fr:["Centre"]}},15153:e=>{e.exports={en:["Chart basic styles"],fr:["Styles de base des graphiques"]}},45639:e=>{e.exports={en:["Chart values"],fr:["Valeurs du graphique"]}},84831:e=>{e.exports={en:["Close line"],fr:["Ligne de fermeture"]}},74622:e=>{e.exports={en:["Crosshair"],fr:["Mire"]}},81849:e=>{e.exports={en:["Currency"],fr:["Devise"]}},3015:e=>{e.exports={en:["Currency and Unit"],fr:["Devise et unité"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],fr:["Ajuster les données pour les dividendes"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],fr:["Ajustement pour les changements de contrat"]}},36620:e=>{e.exports={en:["Alerts"],fr:["Alertes"]}},68650:e=>{e.exports={en:["Average close"],fr:["Clôture moyenne"]}},27567:e=>{e.exports={en:["Bottom"],fr:["Bas"]}},3159:e=>{e.exports={en:["Bottom line"],fr:["Ligne du bas"]}},74406:e=>{e.exports={en:["Body"],fr:["Corps"]}},333:e=>{e.exports={en:["Borders"],fr:["Bordures"]}},79468:e=>{e.exports={en:["Background"],fr:["Arrière-Plan"]}},10842:e=>{e.exports={en:["Bar change values"],fr:["Valeurs du changement de barre"]}},28975:e=>{e.exports={en:["Base level"],fr:["Niveau de base"]}},76473:e=>{e.exports={en:["Bid and ask"],fr:["Bid & Ask"]}},32744:e=>{e.exports={en:["Buttons"],fr:["Boutons"]}},68662:e=>{e.exports={en:["Grid lines"],fr:["Lignes de la grille"]}},17611:e=>{e.exports={en:["Down bars"],fr:["Barres inférieures"]}},23743:e=>{e.exports={en:["Down color"],fr:["Couleur du bas"]}},48225:e=>{e.exports={en:["Data modification"],fr:["Modification des données"]}},84838:e=>{e.exports={en:["Date format"],fr:["Format de la date"]}},42357:e=>{e.exports={en:["Day of week on labels"],fr:["Jour de la semaine sur les étiquettes"]}},16564:e=>{e.exports={en:["Default"],fr:["Par Défaut"]}},78734:e=>{e.exports={en:["Description"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],fr:["Afficher les gaps d'inactivité"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],fr:["Fond des heures de trading électronique"]}},69808:e=>{e.exports={en:["Events"],fr:["Événements"]}},41129:e=>{e.exports={en:["Fill"],fr:["Remplir"]}},61112:e=>{e.exports={en:["Fill top area"],fr:["Remplir la zone supérieure"]}},73185:e=>{e.exports={en:["Fill bottom area"],fr:["Remplir la zone inférieure"]}},3160:e=>{e.exports={en:["Horizontal"]}},61900:e=>{e.exports={en:["Horz only"],fr:["Horz uniquement"]}},14180:e=>{e.exports={en:["High and low"],fr:["Haut et bas"]}},56359:e=>{e.exports={en:["High line"],fr:["Ligne haute"]}},47326:e=>{e.exports={en:["Integer"],fr:["Entier"]}},17854:e=>{e.exports={en:["Interval"],fr:["Intervalle"]}},84549:e=>{ -e.exports={en:["Indicators"],fr:["Indicateurs"]}},78082:e=>{e.exports={en:["Indicators and financials"],fr:["Indicateurs et données financières"]}},21429:e=>{e.exports={en:["Inputs"],fr:["Paramètres en Entrée"]}},25765:e=>{e.exports={en:["Open market status"],fr:["Statut de marché ouvert"]}},34579:e=>{e.exports={en:["Low line"],fr:["Ligne basse"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"],fr:["Description longue"]}},72423:e=>{e.exports={en:["Last day change values"],fr:["Valeurs de changement du dernier jour"]}},11626:e=>{e.exports={en:["Left"],fr:["Gauche"]}},56982:e=>{e.exports={en:["Lines"],fr:["Lignes"]}},8249:e=>{e.exports={en:["Money"],fr:["Argent"]}},70937:e=>{e.exports={en:["Margins"],fr:["Marges"]}},68833:e=>{e.exports={en:["Middle"],fr:["Milieu"]}},58589:e=>{e.exports={en:["No overlapping labels"],fr:["Pas d'étiquettes superposées"]}},60798:e=>{e.exports={en:["None"],fr:["Aucun"]}},51019:e=>{e.exports={en:["Navigation"]}},99709:e=>{e.exports={en:["Name"],fr:["Nom"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],fr:["Sauvegarder la position du bord gauche du graphique lors du changement d'intervalle"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],fr:["Modes d'échelle (A et L)"]}},93968:e=>{e.exports={en:["Scales"],fr:["Échelles"]}},90275:e=>{e.exports={en:["Scales and lines"],fr:["Échelles et lignes"]}},30042:e=>{e.exports={en:["Scales placement"],fr:["Placement des échelles"]}},28715:e=>{e.exports={en:["Status line"],fr:["Ligne d'état"]}},95481:e=>{e.exports={en:["Symbol"],fr:["Symbole"]}},53263:e=>{e.exports={en:["Pane"],fr:["Volet"]}},82894:e=>{e.exports={en:["Pane separators"],fr:["Séparateurs de volets"]}},86235:e=>{e.exports={en:["Percentage"],fr:["Pourcentage"]}},94408:e=>{e.exports={en:["Pips"]}},60904:e=>{e.exports={en:["Pre/post market"],fr:["Pré/post marché"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],fr:["Background des heures pré/post marché"]}},59766:e=>{e.exports={en:["Precision"],fr:["Précision"]}},83811:e=>{e.exports={en:["Previous day close"],fr:["Clôture du jour précédent"]}},35082:e=>{e.exports={en:["Price Scale"],fr:["Echelle de prix"]}},27632:e=>{e.exports={en:["Price and percentage value"],fr:["Prix et valeur de pourcentage"]}},62142:e=>{e.exports={en:["Price labels & lines"],fr:["Etiquettes de prix & lignes"]}},84684:e=>{e.exports={en:["Price source"],fr:["Source de prix"]}},73466:e=>{e.exports={en:["Projection up bars"],fr:["Barres de projection supérieures"]}},77430:e=>{e.exports={en:["Projection candles"],fr:["Barres de projection"]}},88367:e=>{e.exports={en:["Projection down bars"],fr:["Barres de projection inférieures"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],fr:["Prix réels sur l'échelle de prix (au lieu du prix Heikin-Ashi)"]}},50421:e=>{e.exports={en:["Right"],fr:["Droite"]}},62532:e=>{e.exports={en:["Right Margin"],fr:["Marge de droite"]}},41571:e=>{e.exports={en:["Watermark"],fr:["Filigrane"]}},32163:e=>{e.exports={en:["Wick"], -fr:["Mèche"]}},97118:e=>{e.exports={en:["Top"],fr:["Haut"]}},89349:e=>{e.exports={en:["Top line"],fr:["Ligne du haut"]}},70320:e=>{e.exports={en:["Text"],fr:["Texte"]}},25485:e=>{e.exports={en:["Text alignment"],fr:["Alignement du texte"]}},67781:e=>{e.exports={en:["Text orientation"],fr:["Orientation du texte"]}},20215:e=>{e.exports={en:["Thin bars"],fr:["Barres fines"]}},70198:e=>{e.exports={en:["Title"],fr:["Titre"]}},29854:e=>{e.exports={en:["Titles"],fr:["Titres"]}},5791:e=>{e.exports={en:["Ticker"]}},16816:e=>{e.exports={en:["Ticker and description"],fr:["Ticker et description"]}},24821:e=>{e.exports={en:["Ticks"]}},93965:e=>{e.exports={en:["Time Scale"],fr:["Echelle de temps"]}},5591:e=>{e.exports={en:["Time hours format"],fr:["Format de l'heure"]}},77073:e=>{e.exports={en:["Timezone"],fr:["Fuseau horaire"]}},76495:e=>{e.exports={en:["Trading"]}},33564:e=>{e.exports={en:["Unit"],fr:["Unité"]}},23091:e=>{e.exports={en:["Up color"],fr:["Couleur du haut"]}},36957:e=>{e.exports={en:["Up bars"],fr:["Barres supérieures"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],fr:["Utiliser le règlement comme proche de l'intervalle quotidien"]}},37644:e=>{e.exports={en:["Volume"]}},51514:e=>{e.exports={en:["Value"],fr:["Valeur"]}},31218:e=>{e.exports={en:["Value according to scale"],fr:["Valeur selon l'échelle"]}},60092:e=>{e.exports={en:["Values"],fr:["Valeurs"]}},83594:e=>{e.exports={en:["Vert and horz"]}},8402:e=>{e.exports={en:["Vert only"],fr:["Vert uniquement"]}},69526:e=>{e.exports={en:["Vertical"]}},21105:e=>{e.exports={en:["candle"],fr:["bougie"]}},27068:e=>{e.exports={en:["change HLC bars"],fr:["changer les barres HLC"]}},21201:e=>{e.exports={en:["change HLC bars color"],fr:["changer la couleur des barres HLC"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],fr:["modifier la visibilité des boutons de navigation"]}},96227:e=>{e.exports={en:["change open market status visibility"],fr:["modifier la visibilité du statut de marché ouvert"]}},43231:e=>{e.exports={en:["change average close price line width"],fr:["changer la largeur de la ligne du prix de clôture moyen"]}},47026:e=>{e.exports={en:["change average close price line color"],fr:["changer la couleur de la ligne du prix de clôture moyen"]}},29281:e=>{e.exports={en:["change area fill color"],fr:["changer la couleur de remplissage de la zone"]}},27059:e=>{e.exports={en:["change area line visibility"],fr:["modifier la visibilité de la ligne de zone"]}},89346:e=>{e.exports={en:["change area line width"],fr:["changer la largeur de ligne de la zone"]}},29605:e=>{e.exports={en:["change area line color"],fr:["changer la couleur de ligne de la zone"]}},56864:e=>{e.exports={en:["change area line style"],fr:["modifier le style de ligne de la zone"]}},4640:e=>{e.exports={en:["change area price source"],fr:["changer la source de prix de la zone"]}},98407:e=>{e.exports={en:["change ask line color"],fr:["changer la couleur de la ligne de demande"]}},42190:e=>{e.exports={en:["change base level"],fr:["changer le niveau de base"]}}, -71785:e=>{e.exports={en:["change baseline bottom line color"],fr:["changer la couleur de la ligne inférieure de la ligne de base"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],fr:["modifier le style de la baseline de la ligne du bas"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],fr:["changer la largeur de la ligne inférieure de la ligne de base"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],fr:["changer la couleur de la zone inférieure de remplissage de la ligne de base"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],fr:["changer la couleur de la zone supérieure de remplissage de la ligne de base"]}},68609:e=>{e.exports={en:["change baseline price source"],fr:["changer la source de prix de la ligne de base"]}},69044:e=>{e.exports={en:["change baseline top line color"],fr:["changer la couleur de la ligne supérieure de la ligne de base"]}},4425:e=>{e.exports={en:["change baseline top line style"],fr:["modifier le style de la baseline de la ligne du haut"]}},68197:e=>{e.exports={en:["change baseline top line width"],fr:["changer la largeur de la ligne supérieure de la ligne de base"]}},33464:e=>{e.exports={en:["change bar up color"],fr:["changer la couleur supérieure de la barre"]}},27426:e=>{e.exports={en:["change bar change visibility"],fr:["modifier la visibilité du changement de barre"]}},59622:e=>{e.exports={en:["change bar down color"],fr:["changer la couleur inférieure de la barre"]}},17919:e=>{e.exports={en:["change bid line color"],fr:["changer la couleur de la ligne d'offre"]}},32094:e=>{e.exports={en:["change bottom margin"],fr:["modifier la marge inférieure"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],fr:["modifier la visibilité des étiquettes des devises et des unités"]}},64003:e=>{e.exports={en:["change currency label visibility"],fr:["changer la visibilité de l'étiquette de la devise"]}},42803:e=>{e.exports={en:["change chart background color"],fr:["modifier la couleur de fond du graphique"]}},41382:e=>{e.exports={en:["change chart background type"],fr:["modifier le type d'arrière-plan du graphique"]}},79637:e=>{e.exports={en:["change chart values visibility"],fr:["modifier la visibilité des valeurs du graphique"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],fr:["changer les barres de couleur en fonction de la fermeture précédente"]}},88324:e=>{e.exports={en:["change column up color"],fr:["changer la couleur du haut de la colonne"]}},93890:e=>{e.exports={en:["change column down color"],fr:["changer la couleur du bas de la colonne"]}},4727:e=>{e.exports={en:["change column price source"],fr:["changer la source du prix de la colonne"]}},50544:e=>{e.exports={en:["change crosshair width"],fr:["modifier la largeur de la mire"]}},92885:e=>{e.exports={en:["change crosshair color"],fr:["modifier la couleur de la mire"]}},68418:e=>{e.exports={en:["change crosshair style"],fr:["modifier le style de la mire"]}},43109:e=>{e.exports={en:["change date format"], -fr:["changer le format de la date"]}},30418:e=>{e.exports={en:["change day of week on labels"],fr:["changer le jour de la semaine sur les étiquettes"]}},82063:e=>{e.exports={en:["change decimal places"],fr:["changer les décimales"]}},45397:e=>{e.exports={en:["change extended hours color"],fr:["changer la couleur des heures étendues"]}},47393:e=>{e.exports={en:["change electronic trading hours"],fr:["modifier les heures de trading électronique"]}},73844:e=>{e.exports={en:["change grid lines visibility"],fr:["modifier la visibilité des lignes de la grille"]}},61407:e=>{e.exports={en:["change high and low price line color"],fr:["changer la couleur des lignes de prix haut et bas"]}},39581:e=>{e.exports={en:["change high and low price line width"],fr:["modifier la largeur des lignes de prix haut et bas"]}},6026:e=>{e.exports={en:["change high-low body color"],fr:["changer la couleur du corps haut-bas"]}},73021:e=>{e.exports={en:["change high-low body visibility"],fr:["changer la visibilité du corps haut-bas"]}},46844:e=>{e.exports={en:["change high-low border color"],fr:["changer la couleur des bordures haut-bas"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],fr:["changer la visibilité des bordures haut-bas"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],fr:["changer la visibilité des étiquettes haut-bas"]}},56961:e=>{e.exports={en:["change high-low labels color"],fr:["changer la couleur des étiquettes haut-bas"]}},21133:e=>{e.exports={en:["change horz grid lines color"],fr:["modifier la couleur des lignes de la grille horizontale"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],fr:["modifier la visibilité des titres de l'indicateur"]}},49583:e=>{e.exports={en:["change indicator values visibility"],fr:["modifier la visibilité des valeurs de l'indicateur"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],fr:["changer la visibilité des entrées de l'indicateur"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],fr:["Modifier la visibilité des étiquettes de noms des indicateurs et des données financières"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],fr:["modifier la visibilité des étiquettes de valeur des indicateurs et des données financières"]}},451:e=>{e.exports={en:["change interval watermark visibility"],fr:["modifier la visibilité du filigrane d'intervalle"]}},66307:e=>{e.exports={en:["change last day change visibility"],fr:["changez le dernier jour et changez de visibilité"]}},91873:e=>{e.exports={en:["change legend background transparency"],fr:["modifier la transparence du fond de la légende"]}},14246:e=>{e.exports={en:["change legend background visibility"],fr:["modifier la visibilité du fond de la légende"]}},88640:e=>{e.exports={en:["change line color"],fr:["changer la couleur de la ligne"]}},28818:e=>{e.exports={en:["change line style"],fr:["Changer le style de la ligne"]}},41837:e=>{e.exports={en:["change line price source"], -fr:["changer la ligne de la source de prix"]}},48339:e=>{e.exports={en:["change line width"],fr:["changer la largeur de la ligne"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],fr:["modifier la visibilité des boutons du volet"]}},52203:e=>{e.exports={en:["change pane separators color"],fr:["modifier la couleur des séparateurs de volets"]}},38730:e=>{e.exports={en:["change post market color"],fr:["changer la couleur du post-marché"]}},28075:e=>{e.exports={en:["change post market line color"],fr:["changer la couleur de la ligne de post-marché"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],fr:["changer la visibilité des lignes de prix pré/post marché"]}},44371:e=>{e.exports={en:["change pre market color"],fr:["changer la couleur du pré-marché"]}},96114:e=>{e.exports={en:["change pre market line color"],fr:["changer la couleur de la ligne de pré-marché"]}},69814:e=>{e.exports={en:["change previous close price line color"],fr:["changer la couleur de la ligne du prix de clôture précédent"]}},13660:e=>{e.exports={en:["change previous close price line width"],fr:["changer la largeur de la ligne du prix de clôture précédent"]}},87861:e=>{e.exports={en:["change price line color"],fr:["changer la couleur de la ligne de prix"]}},29353:e=>{e.exports={en:["change price line width"],fr:["changer la largeur de la ligne de prix"]}},16241:e=>{e.exports={en:["change range bars style"],fr:["changer le style des barres de gamme"]}},65821:e=>{e.exports={en:["change range thin bars"],fr:["changer les barres fines de la gamme"]}},75487:e=>{e.exports={en:["change renko wick down color"],fr:["changer la couleur des mèches renko du bas"]}},92277:e=>{e.exports={en:["change renko wick up color"],fr:["changer la couleur des mèches du haut renko"]}},79604:e=>{e.exports={en:["change renko wick visibility"],fr:["changer la visibilité des mèches renko"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],fr:["modifier la visibilité du filigrane de replay"]}},82946:e=>{e.exports={en:["change right margin"],fr:["modifier la marge de droite"]}},79545:e=>{e.exports={en:["change right margin percentage"],fr:["changer le pourcentage de la marge de droite"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],fr:["modifier la visibilité du ticker de symbole"]}},78995:e=>{e.exports={en:["change symbol watermark color"],fr:["modifier la couleur du filigrane du symbole"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],fr:["modifier la visibilité du filigrane du symbole"]}},88167:e=>{e.exports={en:["change symbol description visibility"],fr:["modifier la visibilité de la description du symbole"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],fr:["modifier la visibilité du filigrane de la description de symbole"]}},12050:e=>{e.exports={en:["change symbol field visibility"],fr:["modifier la visibilité du champ du symbole"]}},46066:e=>{e.exports={en:["change symbol last value mode"],fr:["changer le mode de la dernière valeur du symbole"]}}, -902:e=>{e.exports={en:["change symbol legend format"],fr:["changer le format de la légende des symboles"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],fr:["modifier la position du bord gauche du graphique de sauvegarde lors du changement d'intervalle"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],fr:["changer la visibilité des boutons de modes d'échelle"]}},76131:e=>{e.exports={en:["change scales text color"],fr:["modifier la couleur du texte des échelles"]}},27792:e=>{e.exports={en:["change scales font size"],fr:["modifier la taille de police des échelles"]}},94997:e=>{e.exports={en:["change scales lines color"],fr:["modifier la couleur des lignes des échelles"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],fr:["modifier la visibilité des interruptions de session"]}},28175:e=>{e.exports={en:["change sessions breaks width"],fr:["modifier la largeur des interruptions de session"]}},33895:e=>{e.exports={en:["change sessions breaks color"],fr:["modifier la couleur des interruptions de session"]}},21641:e=>{e.exports={en:["change sessions breaks style"],fr:["modifier le style des interruptions de session"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],fr:["modifier l'affichage des prix réels sur l'échelle de prix (au lieu du prix Heiken-Ashi)"]}},60834:e=>{e.exports={en:["change thin bars"],fr:["changer les barres fines"]}},39754:e=>{e.exports={en:["change time hours format"],fr:["changer le format de l'heure"]}},74883:e=>{e.exports={en:["change top margin"],fr:["modifier la marge supérieure"]}},51250:e=>{e.exports={en:["change unit label visibility"],fr:["modifier la visibilité de l'étiquette d'unité"]}},71805:e=>{e.exports={en:["change vert grid lines color"],fr:["modifier la couleur des lignes de la grille verticale"]}},96201:e=>{e.exports={en:["change volume values visibility"],fr:["modifier la visibilité des valeurs de volume"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],fr:["changer la couleur de la bordure du haut de {candleType}"]}},36697:e=>{e.exports={en:["change {candleType} up color"],fr:["changer la couleur du haut de {candleType}"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],fr:["changer la couleur de la mèche du bas de {candleType}"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],fr:["changer la couleur de la mèche du haut de {candleType}"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],fr:["changer la visibilité de la mèche de {candleType}"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],fr:["changer la visibilité du corps de {candleType}"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],fr:["changer la visibilité de la bordure de {candleType}"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],fr:["changer la couleur de la bordure du bas de {candleType}"]}},64571:e=>{e.exports={en:["change {candleType} down color"], -fr:["changer la couleur du bas de {candleType}"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],fr:["changer la couleur de la barre de bordure du bas de {chartType}"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],fr:["changer la couleur de la barre de bordure du haut de {chartType}"]}},5012:e=>{e.exports={en:["change {chartType} down color"],fr:["changer la couleur du bas de {chartType}"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],fr:["changer la couleur de la barre de bordure de projection du haut de {chartType}"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],fr:["changer la couleur de la barre de projection du bas de {chartType}"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],fr:["changer la couleur de la barre de projection du haut de {chartType}"]}},6970:e=>{e.exports={en:["change {chartType} up color"],fr:["changer la couleur du haut de {chartType}"]}},66110:e=>{e.exports={en:["change {inputName} property"],fr:["modifier les propriétés de {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],fr:["ajuster les données pour les dividendes"]}},1433:e=>{e.exports={en:["adjust for contract changes"],fr:["ajuster pour les changements de contrat"]}},92598:e=>{e.exports={en:["hollow candles"],fr:["Bougies Creuses"]}},57243:e=>{e.exports={en:["range","ranges"],fr:["plage","plages"]}},70282:e=>{e.exports={en:["renko"],fr:["Renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],fr:["activer les gaps d'inactivité"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],fr:["utiliser le règlement comme clôture sur l'intervalle quotidien"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],fr:["{value} décimale","{value} décimales"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/fr.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/fr.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..d7aa47bb --- /dev/null +++ b/charting_library/bundles/fr.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,8 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:e=>{e.exports={en:["bars"],fr:["barres"]}},31882:e=>{e.exports={en:["12-hours"],fr:["12 heures"]}},5797:e=>{e.exports={en:["24-hours"],fr:["24 heures"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],fr:["Coloriser les Barres selon la Clôture Précédente"]}},23739:e=>{e.exports={en:["Canvas"],fr:["Toile"]}},24197:e=>{e.exports={en:["Center"],fr:["Centre"]}},15153:e=>{e.exports={en:["Chart basic styles"],fr:["Styles de base des graphiques"]}},45639:e=>{e.exports={en:["Chart values"],fr:["Valeurs du graphique"]}},84831:e=>{e.exports={en:["Close line"],fr:["Ligne de fermeture"]}},74622:e=>{e.exports={en:["Crosshair"],fr:["Mire"]}},81849:e=>{e.exports={en:["Currency"],fr:["Devise"]}},3015:e=>{e.exports={en:["Currency and Unit"],fr:["Devise et unité"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],fr:["Ajuster les données pour les dividendes"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],fr:["Ajustement pour les changements de contrat"]}},36620:e=>{e.exports={en:["Alerts"],fr:["Alertes"]}},68650:e=>{e.exports={en:["Average close"],fr:["Clôture moyenne"]}},27567:e=>{e.exports={en:["Bottom"],fr:["Bas"]}},3159:e=>{e.exports={en:["Bottom line"],fr:["Ligne du bas"]}},74406:e=>{e.exports={en:["Body"],fr:["Corps"]}},333:e=>{e.exports={en:["Borders"],fr:["Bordures"]}},79468:e=>{e.exports={en:["Background"],fr:["Arrière-Plan"]}},10842:e=>{e.exports={en:["Bar change values"],fr:["Valeurs du changement de barre"]}},70817:e=>{e.exports={en:["Bar change color based on value"]}},28975:e=>{e.exports={en:["Base level"],fr:["Niveau de base"]}},76473:e=>{e.exports={en:["Bid and ask"],fr:["Bid & Ask"]}},32744:e=>{e.exports={en:["Buttons"],fr:["Boutons"]}},68662:e=>{e.exports={en:["Grid lines"],fr:["Lignes de la grille"]}},17611:e=>{e.exports={en:["Down bars"],fr:["Barres inférieures"]}},23743:e=>{e.exports={en:["Down color"],fr:["Couleur du bas"]}},48225:e=>{e.exports={en:["Data modification"],fr:["Modification des données"]}},84838:e=>{e.exports={en:["Date format"],fr:["Format de la date"]}},42357:e=>{e.exports={en:["Day of week on labels"],fr:["Jour de la semaine sur les étiquettes"]}},16564:e=>{e.exports={en:["Default"],fr:["Par Défaut"]}},78734:e=>{e.exports={en:["Description"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],fr:["Afficher les gaps d'inactivité"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],fr:["Fond des heures de trading électronique"]}},69808:e=>{e.exports={en:["Events"],fr:["Événements"]}},41129:e=>{e.exports={en:["Fill"],fr:["Remplir"]}},61112:e=>{e.exports={en:["Fill top area"],fr:["Remplir la zone supérieure"]}},73185:e=>{e.exports={en:["Fill bottom area"],fr:["Remplir la zone inférieure"]}},3160:e=>{e.exports={en:["Horizontal"]}},61900:e=>{e.exports={en:["Horz only"],fr:["Horz uniquement"]}},14180:e=>{e.exports={en:["High and low"],fr:["Haut et bas"]}},56359:e=>{e.exports={en:["High line"],fr:["Ligne haute"]}},47326:e=>{e.exports={en:["Integer"],fr:["Entier"]}}, +17854:e=>{e.exports={en:["Interval"],fr:["Intervalle"]}},84549:e=>{e.exports={en:["Indicators"],fr:["Indicateurs"]}},78082:e=>{e.exports={en:["Indicators and financials"],fr:["Indicateurs et données financières"]}},21429:e=>{e.exports={en:["Inputs"],fr:["Paramètres en Entrée"]}},25765:e=>{e.exports={en:["Open market status"],fr:["Statut de marché ouvert"]}},34579:e=>{e.exports={en:["Low line"],fr:["Ligne basse"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"],fr:["Description longue"]}},72423:e=>{e.exports={en:["Last day change values"],fr:["Valeurs de changement du dernier jour"]}},11626:e=>{e.exports={en:["Left"],fr:["Gauche"]}},56982:e=>{e.exports={en:["Lines"],fr:["Lignes"]}},8249:e=>{e.exports={en:["Money"],fr:["Argent"]}},70937:e=>{e.exports={en:["Margins"],fr:["Marges"]}},68833:e=>{e.exports={en:["Middle"],fr:["Milieu"]}},58589:e=>{e.exports={en:["No overlapping labels"],fr:["Pas d'étiquettes superposées"]}},60798:e=>{e.exports={en:["None"],fr:["Aucun"]}},51019:e=>{e.exports={en:["Navigation"]}},99709:e=>{e.exports={en:["Name"],fr:["Nom"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],fr:["Sauvegarder la position du bord gauche du graphique lors du changement d'intervalle"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],fr:["Modes d'échelle (A et L)"]}},93968:e=>{e.exports={en:["Scales"],fr:["Échelles"]}},90275:e=>{e.exports={en:["Scales and lines"],fr:["Échelles et lignes"]}},30042:e=>{e.exports={en:["Scales placement"],fr:["Placement des échelles"]}},28715:e=>{e.exports={en:["Status line"],fr:["Ligne d'état"]}},95481:e=>{e.exports={en:["Symbol"],fr:["Symbole"]}},53263:e=>{e.exports={en:["Pane"],fr:["Volet"]}},82894:e=>{e.exports={en:["Pane separators"],fr:["Séparateurs de volets"]}},86235:e=>{e.exports={en:["Percentage"],fr:["Pourcentage"]}},94408:e=>{e.exports={en:["Pips"]}},60904:e=>{e.exports={en:["Pre/post market"],fr:["Pré/post marché"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],fr:["Background des heures pré/post marché"]}},59766:e=>{e.exports={en:["Precision"],fr:["Précision"]}},83811:e=>{e.exports={en:["Previous day close"],fr:["Clôture du jour précédent"]}},35082:e=>{e.exports={en:["Price Scale"],fr:["Echelle de prix"]}},27632:e=>{e.exports={en:["Price and percentage value"],fr:["Prix et valeur de pourcentage"]}},62142:e=>{e.exports={en:["Price labels & lines"],fr:["Etiquettes de prix & lignes"]}},84684:e=>{e.exports={en:["Price source"],fr:["Source de prix"]}},73466:e=>{e.exports={en:["Projection up bars"],fr:["Barres de projection supérieures"]}},77430:e=>{e.exports={en:["Projection candles"],fr:["Barres de projection"]}},88367:e=>{e.exports={en:["Projection down bars"],fr:["Barres de projection inférieures"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],fr:["Prix réels sur l'échelle de prix (au lieu du prix Heikin-Ashi)"]}},50421:e=>{e.exports={en:["Right"],fr:["Droite"]}},62532:e=>{e.exports={en:["Right Margin"],fr:["Marge de droite"]}},41571:e=>{e.exports={ +en:["Watermark"],fr:["Filigrane"]}},32163:e=>{e.exports={en:["Wick"],fr:["Mèche"]}},97118:e=>{e.exports={en:["Top"],fr:["Haut"]}},89349:e=>{e.exports={en:["Top line"],fr:["Ligne du haut"]}},70320:e=>{e.exports={en:["Text"],fr:["Texte"]}},25485:e=>{e.exports={en:["Text alignment"],fr:["Alignement du texte"]}},67781:e=>{e.exports={en:["Text orientation"],fr:["Orientation du texte"]}},20215:e=>{e.exports={en:["Thin bars"],fr:["Barres fines"]}},70198:e=>{e.exports={en:["Title"],fr:["Titre"]}},29854:e=>{e.exports={en:["Titles"],fr:["Titres"]}},5791:e=>{e.exports={en:["Ticker"]}},16816:e=>{e.exports={en:["Ticker and description"],fr:["Ticker et description"]}},24821:e=>{e.exports={en:["Ticks"]}},93965:e=>{e.exports={en:["Time Scale"],fr:["Echelle de temps"]}},5591:e=>{e.exports={en:["Time hours format"],fr:["Format de l'heure"]}},77073:e=>{e.exports={en:["Timezone"],fr:["Fuseau horaire"]}},76495:e=>{e.exports={en:["Trading"]}},33564:e=>{e.exports={en:["Unit"],fr:["Unité"]}},23091:e=>{e.exports={en:["Up color"],fr:["Couleur du haut"]}},36957:e=>{e.exports={en:["Up bars"],fr:["Barres supérieures"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],fr:["Utiliser le règlement comme proche de l'intervalle quotidien"]}},37644:e=>{e.exports={en:["Volume"]}},51514:e=>{e.exports={en:["Value"],fr:["Valeur"]}},31218:e=>{e.exports={en:["Value according to scale"],fr:["Valeur selon l'échelle"]}},60092:e=>{e.exports={en:["Values"],fr:["Valeurs"]}},83594:e=>{e.exports={en:["Vert and horz"]}},8402:e=>{e.exports={en:["Vert only"],fr:["Vert uniquement"]}},69526:e=>{e.exports={en:["Vertical"]}},21105:e=>{e.exports={en:["candle"],fr:["bougie"]}},27068:e=>{e.exports={en:["change HLC bars"],fr:["changer les barres HLC"]}},21201:e=>{e.exports={en:["change HLC bars color"],fr:["changer la couleur des barres HLC"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],fr:["modifier la visibilité des boutons de navigation"]}},96227:e=>{e.exports={en:["change open market status visibility"],fr:["modifier la visibilité du statut de marché ouvert"]}},43231:e=>{e.exports={en:["change average close price line width"],fr:["changer la largeur de la ligne du prix de clôture moyen"]}},47026:e=>{e.exports={en:["change average close price line color"],fr:["changer la couleur de la ligne du prix de clôture moyen"]}},29281:e=>{e.exports={en:["change area fill color"],fr:["changer la couleur de remplissage de la zone"]}},27059:e=>{e.exports={en:["change area line visibility"],fr:["modifier la visibilité de la ligne de zone"]}},89346:e=>{e.exports={en:["change area line width"],fr:["changer la largeur de ligne de la zone"]}},29605:e=>{e.exports={en:["change area line color"],fr:["changer la couleur de ligne de la zone"]}},56864:e=>{e.exports={en:["change area line style"],fr:["modifier le style de ligne de la zone"]}},4640:e=>{e.exports={en:["change area price source"],fr:["changer la source de prix de la zone"]}},98407:e=>{e.exports={en:["change ask line color"],fr:["changer la couleur de la ligne de demande"]}},42190:e=>{ +e.exports={en:["change base level"],fr:["changer le niveau de base"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],fr:["changer la couleur de la ligne inférieure de la ligne de base"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],fr:["modifier le style de la baseline de la ligne du bas"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],fr:["changer la largeur de la ligne inférieure de la ligne de base"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],fr:["changer la couleur de la zone inférieure de remplissage de la ligne de base"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],fr:["changer la couleur de la zone supérieure de remplissage de la ligne de base"]}},68609:e=>{e.exports={en:["change baseline price source"],fr:["changer la source de prix de la ligne de base"]}},69044:e=>{e.exports={en:["change baseline top line color"],fr:["changer la couleur de la ligne supérieure de la ligne de base"]}},4425:e=>{e.exports={en:["change baseline top line style"],fr:["modifier le style de la baseline de la ligne du haut"]}},68197:e=>{e.exports={en:["change baseline top line width"],fr:["changer la largeur de la ligne supérieure de la ligne de base"]}},33464:e=>{e.exports={en:["change bar up color"],fr:["changer la couleur supérieure de la barre"]}},14201:e=>{e.exports={en:["change bar change down color"]}},30196:e=>{e.exports={en:["change bar change up color"]}},27426:e=>{e.exports={en:["change bar change visibility"],fr:["modifier la visibilité du changement de barre"]}},59622:e=>{e.exports={en:["change bar down color"],fr:["changer la couleur inférieure de la barre"]}},17919:e=>{e.exports={en:["change bid line color"],fr:["changer la couleur de la ligne d'offre"]}},32094:e=>{e.exports={en:["change bottom margin"],fr:["modifier la marge inférieure"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],fr:["modifier la visibilité des étiquettes des devises et des unités"]}},64003:e=>{e.exports={en:["change currency label visibility"],fr:["changer la visibilité de l'étiquette de la devise"]}},42803:e=>{e.exports={en:["change chart background color"],fr:["modifier la couleur de fond du graphique"]}},41382:e=>{e.exports={en:["change chart background type"],fr:["modifier le type d'arrière-plan du graphique"]}},79637:e=>{e.exports={en:["change chart values visibility"],fr:["modifier la visibilité des valeurs du graphique"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],fr:["changer les barres de couleur en fonction de la fermeture précédente"]}},88324:e=>{e.exports={en:["change column up color"],fr:["changer la couleur du haut de la colonne"]}},93890:e=>{e.exports={en:["change column down color"],fr:["changer la couleur du bas de la colonne"]}},4727:e=>{e.exports={en:["change column price source"],fr:["changer la source du prix de la colonne"]}},50544:e=>{e.exports={en:["change crosshair width"],fr:["modifier la largeur de la mire"]}},92885:e=>{e.exports={en:["change crosshair color"], +fr:["modifier la couleur de la mire"]}},68418:e=>{e.exports={en:["change crosshair style"],fr:["modifier le style de la mire"]}},43109:e=>{e.exports={en:["change date format"],fr:["changer le format de la date"]}},30418:e=>{e.exports={en:["change day of week on labels"],fr:["changer le jour de la semaine sur les étiquettes"]}},82063:e=>{e.exports={en:["change decimal places"],fr:["changer les décimales"]}},45397:e=>{e.exports={en:["change extended hours color"],fr:["changer la couleur des heures étendues"]}},47393:e=>{e.exports={en:["change electronic trading hours"],fr:["modifier les heures de trading électronique"]}},73844:e=>{e.exports={en:["change grid lines visibility"],fr:["modifier la visibilité des lignes de la grille"]}},61407:e=>{e.exports={en:["change high and low price line color"],fr:["changer la couleur des lignes de prix haut et bas"]}},39581:e=>{e.exports={en:["change high and low price line width"],fr:["modifier la largeur des lignes de prix haut et bas"]}},6026:e=>{e.exports={en:["change high-low body color"],fr:["changer la couleur du corps haut-bas"]}},73021:e=>{e.exports={en:["change high-low body visibility"],fr:["changer la visibilité du corps haut-bas"]}},46844:e=>{e.exports={en:["change high-low border color"],fr:["changer la couleur des bordures haut-bas"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],fr:["changer la visibilité des bordures haut-bas"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],fr:["changer la visibilité des étiquettes haut-bas"]}},56961:e=>{e.exports={en:["change high-low labels color"],fr:["changer la couleur des étiquettes haut-bas"]}},21133:e=>{e.exports={en:["change horz grid lines color"],fr:["modifier la couleur des lignes de la grille horizontale"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],fr:["modifier la visibilité des titres de l'indicateur"]}},49583:e=>{e.exports={en:["change indicator values visibility"],fr:["modifier la visibilité des valeurs de l'indicateur"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],fr:["changer la visibilité des entrées de l'indicateur"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],fr:["Modifier la visibilité des étiquettes de noms des indicateurs et des données financières"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],fr:["modifier la visibilité des étiquettes de valeur des indicateurs et des données financières"]}},451:e=>{e.exports={en:["change interval watermark visibility"],fr:["modifier la visibilité du filigrane d'intervalle"]}},66307:e=>{e.exports={en:["change last day change visibility"],fr:["changez le dernier jour et changez de visibilité"]}},91873:e=>{e.exports={en:["change legend background transparency"],fr:["modifier la transparence du fond de la légende"]}},14246:e=>{e.exports={en:["change legend background visibility"],fr:["modifier la visibilité du fond de la légende"]}},88640:e=>{e.exports={en:["change line color"],fr:["changer la couleur de la ligne"]}}, +28818:e=>{e.exports={en:["change line style"],fr:["Changer le style de la ligne"]}},41837:e=>{e.exports={en:["change line price source"],fr:["changer la ligne de la source de prix"]}},48339:e=>{e.exports={en:["change line width"],fr:["changer la largeur de la ligne"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],fr:["modifier la visibilité des boutons du volet"]}},52203:e=>{e.exports={en:["change pane separators color"],fr:["modifier la couleur des séparateurs de volets"]}},38730:e=>{e.exports={en:["change post market color"],fr:["changer la couleur du post-marché"]}},28075:e=>{e.exports={en:["change post market line color"],fr:["changer la couleur de la ligne de post-marché"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],fr:["changer la visibilité des lignes de prix pré/post marché"]}},44371:e=>{e.exports={en:["change pre market color"],fr:["changer la couleur du pré-marché"]}},96114:e=>{e.exports={en:["change pre market line color"],fr:["changer la couleur de la ligne de pré-marché"]}},69814:e=>{e.exports={en:["change previous close price line color"],fr:["changer la couleur de la ligne du prix de clôture précédent"]}},13660:e=>{e.exports={en:["change previous close price line width"],fr:["changer la largeur de la ligne du prix de clôture précédent"]}},87861:e=>{e.exports={en:["change price line color"],fr:["changer la couleur de la ligne de prix"]}},29353:e=>{e.exports={en:["change price line width"],fr:["changer la largeur de la ligne de prix"]}},16241:e=>{e.exports={en:["change range bars style"],fr:["changer le style des barres de gamme"]}},65821:e=>{e.exports={en:["change range thin bars"],fr:["changer les barres fines de la gamme"]}},75487:e=>{e.exports={en:["change renko wick down color"],fr:["changer la couleur des mèches renko du bas"]}},92277:e=>{e.exports={en:["change renko wick up color"],fr:["changer la couleur des mèches du haut renko"]}},79604:e=>{e.exports={en:["change renko wick visibility"],fr:["changer la visibilité des mèches renko"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],fr:["modifier la visibilité du filigrane de replay"]}},82946:e=>{e.exports={en:["change right margin"],fr:["modifier la marge de droite"]}},79545:e=>{e.exports={en:["change right margin percentage"],fr:["changer le pourcentage de la marge de droite"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],fr:["modifier la visibilité du ticker de symbole"]}},78995:e=>{e.exports={en:["change symbol watermark color"],fr:["modifier la couleur du filigrane du symbole"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],fr:["modifier la visibilité du filigrane du symbole"]}},88167:e=>{e.exports={en:["change symbol description visibility"],fr:["modifier la visibilité de la description du symbole"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],fr:["modifier la visibilité du filigrane de la description de symbole"]}},12050:e=>{e.exports={en:["change symbol field visibility"], +fr:["modifier la visibilité du champ du symbole"]}},46066:e=>{e.exports={en:["change symbol last value mode"],fr:["changer le mode de la dernière valeur du symbole"]}},902:e=>{e.exports={en:["change symbol legend format"],fr:["changer le format de la légende des symboles"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],fr:["modifier la position du bord gauche du graphique de sauvegarde lors du changement d'intervalle"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],fr:["changer la visibilité des boutons de modes d'échelle"]}},76131:e=>{e.exports={en:["change scales text color"],fr:["modifier la couleur du texte des échelles"]}},27792:e=>{e.exports={en:["change scales font size"],fr:["modifier la taille de police des échelles"]}},94997:e=>{e.exports={en:["change scales lines color"],fr:["modifier la couleur des lignes des échelles"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],fr:["modifier la visibilité des interruptions de session"]}},28175:e=>{e.exports={en:["change sessions breaks width"],fr:["modifier la largeur des interruptions de session"]}},33895:e=>{e.exports={en:["change sessions breaks color"],fr:["modifier la couleur des interruptions de session"]}},21641:e=>{e.exports={en:["change sessions breaks style"],fr:["modifier le style des interruptions de session"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],fr:["modifier l'affichage des prix réels sur l'échelle de prix (au lieu du prix Heiken-Ashi)"]}},60834:e=>{e.exports={en:["change thin bars"],fr:["changer les barres fines"]}},39754:e=>{e.exports={en:["change time hours format"],fr:["changer le format de l'heure"]}},74883:e=>{e.exports={en:["change top margin"],fr:["modifier la marge supérieure"]}},51250:e=>{e.exports={en:["change unit label visibility"],fr:["modifier la visibilité de l'étiquette d'unité"]}},28142:e=>{e.exports={en:["change use custom bar change colors"]}},71805:e=>{e.exports={en:["change vert grid lines color"],fr:["modifier la couleur des lignes de la grille verticale"]}},96201:e=>{e.exports={en:["change volume values visibility"],fr:["modifier la visibilité des valeurs de volume"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],fr:["changer la couleur de la bordure du haut de {candleType}"]}},36697:e=>{e.exports={en:["change {candleType} up color"],fr:["changer la couleur du haut de {candleType}"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],fr:["changer la couleur de la mèche du bas de {candleType}"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],fr:["changer la couleur de la mèche du haut de {candleType}"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],fr:["changer la visibilité de la mèche de {candleType}"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],fr:["changer la visibilité du corps de {candleType}"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"], +fr:["changer la visibilité de la bordure de {candleType}"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],fr:["changer la couleur de la bordure du bas de {candleType}"]}},64571:e=>{e.exports={en:["change {candleType} down color"],fr:["changer la couleur du bas de {candleType}"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],fr:["changer la couleur de la barre de bordure du bas de {chartType}"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],fr:["changer la couleur de la barre de bordure du haut de {chartType}"]}},5012:e=>{e.exports={en:["change {chartType} down color"],fr:["changer la couleur du bas de {chartType}"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],fr:["changer la couleur de la barre de bordure de projection du haut de {chartType}"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],fr:["changer la couleur de la barre de projection du bas de {chartType}"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],fr:["changer la couleur de la barre de projection du haut de {chartType}"]}},6970:e=>{e.exports={en:["change {chartType} up color"],fr:["changer la couleur du haut de {chartType}"]}},66110:e=>{e.exports={en:["change {inputName} property"],fr:["modifier les propriétés de {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],fr:["ajuster les données pour les dividendes"]}},1433:e=>{e.exports={en:["adjust for contract changes"],fr:["ajuster pour les changements de contrat"]}},92598:e=>{e.exports={en:["hollow candles"],fr:["Bougies Creuses"]}},57243:e=>{e.exports={en:["range","ranges"],fr:["plage","plages"]}},70282:e=>{e.exports={en:["renko"],fr:["Renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],fr:["activer les gaps d'inactivité"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],fr:["utiliser le règlement comme clôture sur l'intervalle quotidien"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],fr:["{value} décimale","{value} décimales"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/general-property-page.6d1a824a016623509d51.js b/charting_library/bundles/general-property-page.6d1a824a016623509d51.js new file mode 100644 index 00000000..dbfc5657 --- /dev/null +++ b/charting_library/bundles/general-property-page.6d1a824a016623509d51.js @@ -0,0 +1,14 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3596],{19350:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ChartPropertyDefinitionsViewModel:()=>_i});var r=i(50151),n=i(11542),o=i(37103),l=(i(86572),i(49470),i(22613)),a=i(95338),s=i(60567),c=i(23714),d=i(61786),h=i(28450),u=i(37903),p=i(87911),v=i(95804),g=i(95059),y=i(17161),P=i(67455),f=i(22455),b=i(48943);const w=new v.TranslatedString("change symbol description visibility",n.t(null,void 0,i(88167))),m=new v.TranslatedString("change symbol legend format",n.t(null,void 0,i(902))),D=new v.TranslatedString("change open market status visibility",n.t(null,void 0,i(96227))),S=new v.TranslatedString("change chart values visibility",n.t(null,void 0,i(79637))),T=new v.TranslatedString("change last day change visibility",n.t(null,void 0,i(66307))),_=new v.TranslatedString("change bar change visibility",n.t(null,void 0,i(27426))),C=new v.TranslatedString("change bar change up color",n.t(null,void 0,i(30196))),k=new v.TranslatedString("change bar change down color",n.t(null,void 0,i(14201))),L=new v.TranslatedString("change use custom bar change colors",n.t(null,void 0,i(28142))),V=new v.TranslatedString("change indicator inputs visibility",n.t(null,void 0,i(75663))),W=new v.TranslatedString("change indicator titles visibility",n.t(null,void 0,i(63050))),O=new v.TranslatedString("change indicator values visibility",n.t(null,void 0,i(49583))),x=new v.TranslatedString("change legend background visibility",n.t(null,void 0,i(14246))),M=new v.TranslatedString("change legend background transparency",n.t(null,void 0,i(91873))),R=new v.TranslatedString("change volume values visibility",n.t(null,void 0,i(96201))),G=new v.TranslatedString("change symbol field visibility",n.t(null,void 0,i(12050))),F=n.t(null,void 0,i(14876)),A=n.t(null,void 0,i(70198)),H=n.t(null,void 0,i(45639)),Z=n.t(null,void 0,i(72423)),B=n.t(null,void 0,i(10842)),E=n.t(null,void 0,i(70817)),N=n.t(null,void 0,i(37644)),j=n.t(null,void 0,i(29854)),z=n.t(null,void 0,i(21429)),U=n.t(null,void 0,i(60092)),I=n.t(null,void 0,i(79468)),q=n.t(null,void 0,i(25765)),J=n.t(null,void 0,i(84684)),K=o.enabled("symbol_info_price_source"),Q=o.enabled("show_symbol_logos")&&o.enabled("show_symbol_logo_in_legend"),X=o.enabled("legend_bar_change_colors_based_on_value");var Y=i(97902),$=i(45838),ee=i(33718),te=i(91106),ie=i(25246);const re=new v.TranslatedString("change symbol labels visibility",n.t(null,void 0,i(73357))),ne=new v.TranslatedString("change symbol last value visibility",n.t(null,void 0,i(67453))),oe=new v.TranslatedString("change symbol last value mode",n.t(null,void 0,i(46066))),le=(new v.TranslatedString("change bid and ask labels visibility",n.t(null,void 0,i(69362))),new v.TranslatedString("change bid and ask lines visibility",n.t(null,void 0,i(52919))),new v.TranslatedString("change bid line color",n.t(null,void 0,i(17919))),new v.TranslatedString("change ask line color",n.t(null,void 0,i(98407))),new v.TranslatedString("change pre/post market price label visibility",n.t(null,void 0,i(30870))), +new v.TranslatedString("change pre/post market price lines visibility",n.t(null,void 0,i(91978))),new v.TranslatedString("change pre market line color",n.t(null,void 0,i(96114))),new v.TranslatedString("change post market line color",n.t(null,void 0,i(28075))),new v.TranslatedString("change high and low price labels visibility",n.t(null,void 0,i(24226)))),ae=new v.TranslatedString("change high and low price lines visibility",n.t(null,void 0,i(80692))),se=new v.TranslatedString("change high and low price line color",n.t(null,void 0,i(61407))),ce=new v.TranslatedString("change high and low price line width",n.t(null,void 0,i(39581))),de=(new v.TranslatedString("change indicators and financials name labels visibility",n.t(null,void 0,i(35111))),new v.TranslatedString("change indicators name labels visibility",n.t(null,void 0,i(24893)))),he=(new v.TranslatedString("change indicators and financials value labels visibility",n.t(null,void 0,i(71161))),new v.TranslatedString("change indicators value labels visibility",n.t(null,void 0,i(64729)))),ue=new v.TranslatedString("change no overlapping labels",n.t(null,void 0,i(61557))),pe=new v.TranslatedString("change countdown to bar close visibility",n.t(null,void 0,i(39383))),ve=new v.TranslatedString("change currency label visibility",n.t(null,void 0,i(64003))),ge=new v.TranslatedString("change scale modes buttons visibility",n.t(null,void 0,i(69023))),ye=new v.TranslatedString("change unit label visibility",n.t(null,void 0,i(51250))),Pe=new v.TranslatedString("change currency and unit labels visibility",n.t(null,void 0,i(63119))),fe=new v.TranslatedString("change plus button visibility",n.t(null,void 0,i(96379))),be=new v.TranslatedString("toggle lock scale",n.t(null,void 0,i(49695))),we=new v.TranslatedString("change price to bar ratio",n.t(null,void 0,i(2509))),me=new v.TranslatedString("change date format",n.t(null,void 0,i(43109))),De=new v.TranslatedString("change time hours format",n.t(null,void 0,i(39754))),Se=new v.TranslatedString("change day of week on labels",n.t(null,void 0,i(30418))),Te=new v.TranslatedString("change save chart left edge position when changing interval",n.t(null,void 0,i(77408))),_e=new v.TranslatedString("change price line visibility",n.t(null,void 0,i(8662))),Ce=new v.TranslatedString("change price line color",n.t(null,void 0,i(87861))),ke=new v.TranslatedString("change price line width",n.t(null,void 0,i(29353))),Le=new v.TranslatedString("change average close price label visibility",n.t(null,void 0,i(76852))),Ve=new v.TranslatedString("change average close price line visibility",n.t(null,void 0,i(1022))),We=new v.TranslatedString("change average close price line color",n.t(null,void 0,i(47026))),Oe=new v.TranslatedString("change average close price line width",n.t(null,void 0,i(43231))),xe=(new v.TranslatedString("change previous close price line visibility",n.t(null,void 0,i(58419))),new v.TranslatedString("change previous close price line color",n.t(null,void 0,i(69814))), +new v.TranslatedString("change previous close price line width",n.t(null,void 0,i(13660))),new v.TranslatedString("change symbol previous close value visibility",n.t(null,void 0,i(4729))),n.t(null,void 0,i(99709))),Me=n.t(null,void 0,i(51514)),Re=n.t(null,void 0,i(3554)),Ge=n.t(null,void 0,i(58589)),Fe=n.t(null,void 0,i(62142)),Ae=n.t(null,void 0,i(95481)),He=n.t(null,void 0,i(68650)),Ze=(n.t(null,void 0,i(83811)),n.t(null,void 0,i(78082))),Be=(n.t(null,void 0,i(60904)),n.t(null,void 0,i(14180))),Ee=(n.t(null,void 0,i(76473)),n.t(null,void 0,i(83140))),Ne=n.t(null,void 0,i(81849)),je=n.t(null,void 0,i(26204)),ze=n.t(null,void 0,i(33564)),Ue=n.t(null,void 0,i(3015)),Ie=n.t(null,void 0,i(71566)),qe=n.t(null,void 0,i(30042)),Je=n.t(null,void 0,i(14017)),Ke=n.t(null,void 0,i(35082)),Qe=n.t(null,void 0,i(84838)),Xe=n.t(null,void 0,i(5591)),Ye=n.t(null,void 0,i(93965)),$e=n.t(null,void 0,i(42357)),et=n.t(null,void 0,i(8852)),tt=o.enabled("show_average_close_price_line_and_label"),it=[{value:Y.PriceAxisLastValueMode.LastPriceAndPercentageValue,title:n.t(null,void 0,i(27632))},{value:Y.PriceAxisLastValueMode.LastValueAccordingToScale,title:n.t(null,void 0,i(31218))}];var rt=i(87465),nt=i(89959),ot=i(5149),lt=i(98583);const at=new v.TranslatedString("change sessions breaks visibility",n.t(null,void 0,i(60067))),st=new v.TranslatedString("change sessions breaks color",n.t(null,void 0,i(33895))),ct=new v.TranslatedString("change sessions breaks width",n.t(null,void 0,i(28175))),dt=new v.TranslatedString("change sessions breaks style",n.t(null,void 0,i(21641))),ht=n.t(null,void 0,i(66707));var ut=i(35106) +;const pt=new v.TranslatedString("change chart background color",n.t(null,void 0,i(42803))),vt=new v.TranslatedString("change chart background type",n.t(null,void 0,i(41382))),gt=new v.TranslatedString("change vert grid lines color",n.t(null,void 0,i(71805))),yt=new v.TranslatedString("change horz grid lines color",n.t(null,void 0,i(21133))),Pt=new v.TranslatedString("change grid lines visibility",n.t(null,void 0,i(73844))),ft=new v.TranslatedString("change scales text color",n.t(null,void 0,i(76131))),bt=new v.TranslatedString("change scales font size",n.t(null,void 0,i(27792))),wt=new v.TranslatedString("change scales lines color",n.t(null,void 0,i(94997))),mt=new v.TranslatedString("change pane separators color",n.t(null,void 0,i(52203))),Dt=new v.TranslatedString("change crosshair color",n.t(null,void 0,i(92885))),St=new v.TranslatedString("change crosshair width",n.t(null,void 0,i(50544))),Tt=new v.TranslatedString("change crosshair style",n.t(null,void 0,i(68418))),_t=new v.TranslatedString("change symbol watermark visibility",n.t(null,void 0,i(73227))),Ct=new v.TranslatedString("change symbol ticker watermark visibility",n.t(null,void 0,i(18099))),kt=new v.TranslatedString("change interval watermark visibility",n.t(null,void 0,i(451))),Lt=new v.TranslatedString("change symbol description watermark visibility",n.t(null,void 0,i(65838))),Vt=(new v.TranslatedString("change replay watermark visibility",n.t(null,void 0,i(66021))),new v.TranslatedString("change symbol watermark color",n.t(null,void 0,i(78995)))),Wt=new v.TranslatedString("change navigation buttons visibility",n.t(null,void 0,i(3311))),Ot=new v.TranslatedString("change pane buttons visibility",n.t(null,void 0,i(18378))),xt=new v.TranslatedString("change top margin",n.t(null,void 0,i(74883))),Mt=new v.TranslatedString("change bottom margin",n.t(null,void 0,i(32094))),Rt=new v.TranslatedString("change right margin",n.t(null,void 0,i(82946))),Gt=new v.TranslatedString("change right margin percentage",n.t(null,void 0,i(79545))),Ft=n.t(null,void 0,i(79468)),At=n.t(null,void 0,i(83594)),Ht=n.t(null,void 0,i(8402)),Zt=n.t(null,void 0,i(61900)),Bt=n.t(null,void 0,i(60798)),Et=n.t(null,void 0,i(68662)),Nt=n.t(null,void 0,i(70320)),jt=n.t(null,void 0,i(56982)),zt=n.t(null,void 0,i(82894)),Ut=n.t(null,void 0,i(74622)),It=n.t(null,void 0,i(41571)),qt=n.t(null,void 0,i(51019)),Jt=n.t(null,void 0,i(53263)),Kt=n.t(null,void 0,i(97118)),Qt=n.t(null,void 0,i(27567)),Xt=n.t(null,void 0,i(50421)),Yt=n.t(null,void 0,i(86235)),$t=n.t(null,void 0,i(27377)),ei=n.t(null,{context:"unit"},i(80587));async function ti(e,t,r,s,c,d,h,u,p,v){const g=[],y=[],f=[],w=[],m=[],D=(0,a.createColorPropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,t.background,null,pt),gradientColor1:(0,a.getColorDefinitionProperty)(e,t.backgroundGradientStartColor,null,pt),gradientColor2:(0,a.getColorDefinitionProperty)(e,t.backgroundGradientEndColor,null,pt),type:(0,a.convertToDefinitionProperty)(e,t.backgroundType,vt)},{id:"chartBackground",title:Ft,noAlpha:!0 +}),S=t.vertGridProperties.childs(),T=t.horzGridProperties.childs(),_=(0,a.createOptionalTwoColorsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,t.gridLinesMode,Pt),color1:(0,a.getColorDefinitionProperty)(e,S.color,null,gt),color2:(0,a.getColorDefinitionProperty)(e,T.color,null,yt)},{id:"gridLines",title:Et,options:new l.WatchedValue([{title:At,value:"both"},{title:Ht,value:"vert"},{title:Zt,value:"horz"},{title:Bt,value:"none"}]),color1Visible:v.vertLinesVisible,color2Visible:v.horzLinesVisible}),C=(0,P.createWVFromGetterAndSubscription)((()=>1!==e.model().panes().length),e.model().panesCollectionChanged()),k=(0,a.createLinePropertyDefinition)({visible:(0,a.convertFromReadonlyWVToDefinitionProperty)(C.ownership()),color:(0,a.getColorDefinitionProperty)(e,t.separatorColor,null,mt)},{id:"paneSeparators",title:zt}),L=t.crossHairProperties.childs(),V=(0,a.createLinePropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,L.color,L.transparency,Dt),width:(0,a.convertToDefinitionProperty)(e,L.width,St),style:(0,a.convertToDefinitionProperty)(e,L.style,Tt)},{id:"crossHair",title:Ut});g.push(D,_);{const t=function(e){const t=e.model().sessions().properties().childs().sessionHighlight.childs().vertlines.childs().sessBreaks.childs(),i=(0,nt.combineProperty)((e=>!e),e.mainSeries().isDWMProperty().weakReference());return(0,lt.createLinePropertyDefinition)({visible:(0,ot.makeProxyDefinitionProperty)(i.ownership()),checked:(0,a.convertToDefinitionProperty)(e,t.visible,at),color:(0,a.getColorDefinitionProperty)(e,t.color,null,st),width:(0,a.convertToDefinitionProperty)(e,t.width,ct),style:(0,a.convertToDefinitionProperty)(e,t.style,dt)},{id:"sessionBeaks",title:ht})}(e);g.push(t)}if(g.push(k,V),null!==r){const t=(0,b.combine)((e=>null===e),e.model().watermarkContentProvider().weakReference()),o=[(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,r.ticker,Ct)},{id:"watermarkTicker",title:n.t(null,void 0,i(5791)),notFormatedTitle:!0}),(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,r.interval,kt)},{id:"watermarkInterval",title:n.t(null,void 0,i(17854)),notFormatedTitle:!0}),(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,r.description,Lt)},{id:"watermarkDescription",title:n.t(null,void 0,i(78734)),notFormatedTitle:!0}),null].filter(rt.notNull),l=(0,a.createPropertyDefinitionsCheckableListOptionsGroup)(o,void 0,[(0,a.createColorPropertyDefinition)({color:(0,ut.getStdColorDefinitionProperty)(e,r.color,e.model().backgroundTheme().weakReference(),Vt)},{id:"watermarkColor"})],"watermark",It,t);g.push(l);const s=(0,b.combine)((e=>null!==e),e.model().watermarkContentProvider().weakReference()),c=(0,a.createColorPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,r.custom,_t),color:(0,ut.getStdColorDefinitionProperty)(e,r.color,e.model().backgroundTheme().weakReference(),Vt),visible:(0,a.convertFromReadonlyWVToDefinitionProperty)(s.ownership())},{id:"customWatermark",title:It});g.push(c)}const W=(0, +a.createTextPropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,s.textColor,null,ft),size:(0,a.convertToDefinitionProperty)(e,s.fontSize,bt)},{id:"scalesText",title:Nt}),O=(0,a.createLinePropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,s.lineColor,null,wt)},{id:"scalesLine",title:jt});y.push(W,O);const x=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,d.property,Wt)},{id:"navButtons",title:qt,options:new l.WatchedValue(d.values)}),M=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,h.property,Ot)},{id:"paneButtons",title:Jt,options:new l.WatchedValue(h.values)});f.push(x,M);const R=(0,a.createNumberPropertyDefinition)({value:(0,a.convertToDefinitionProperty)(e,t.topMargin,xt,[$.floor])},{type:0,id:"paneTopMargin",title:Kt,min:new l.WatchedValue(0),max:new l.WatchedValue(25),step:new l.WatchedValue(1),unit:new l.WatchedValue("%")}),G=(0,a.createNumberPropertyDefinition)({value:(0,a.convertToDefinitionProperty)(e,t.bottomMargin,Mt,[$.floor])},{type:0,id:"paneBottomMargin",title:Qt,min:new l.WatchedValue(0),max:new l.WatchedValue(25),step:new l.WatchedValue(1),unit:new l.WatchedValue("%")});if(w.push(R,G),o.enabled("chart_property_page_right_margin_editor")){const t={value:(0,a.convertFromWVToDefinitionProperty)(e,c.value,Rt,[$.floor])},i={type:0,id:"paneRightMargin",title:Xt,min:c.min,max:c.max,step:new l.WatchedValue(1),unit:new l.WatchedValue(ei)};if(o.enabled("show_percent_option_for_right_margin")){const r=(0,a.createNumberPropertyDefinition)({...t,checked:(0,a.convertFromWVToDefinitionProperty)(e,p,Gt,[e=>!e,e=>!e])},{...i,title:$t}),n=(0,a.createNumberPropertyDefinition)({checked:(0,a.convertFromWVToDefinitionProperty)(e,p,Gt),value:(0,a.convertFromWVToDefinitionProperty)(e,u,Gt,[$.floor])},{type:0,id:"paneRightMarginPercentage",title:Yt,min:new l.WatchedValue(0),max:new l.WatchedValue(99),step:new l.WatchedValue(1),unit:new l.WatchedValue("%")});m.push(r),m.push(n)}else{const e=(0,a.createNumberPropertyDefinition)(t,i);w.push(e)}}const F=[(0,a.createPropertyDefinitionsGeneralGroup)(g,"chartBasicStylesAppearanceGroup",n.t(null,void 0,i(15153))),(0,a.createPropertyDefinitionsGeneralGroup)(y,"scalesAppearanceGroup",n.t(null,void 0,i(93968))),(0,a.createPropertyDefinitionsGeneralGroup)(f,"buttonsAppearanceGroup",n.t(null,void 0,i(32744))),(0,a.createPropertyDefinitionsGeneralGroup)(w,"marginsAppearanceGroup",n.t(null,void 0,i(70937)))];return m.length>0&&F.push((0,a.createPropertyDefinitionsGeneralGroup)(m,"rightMarginsAppearanceGroup",n.t(null,void 0,i(62532)))),{definitions:F}}var ii=i(40153),ri=i(10718),ni=i(97363),oi=i(60336),li=i(3190),ai=i(10845),si=i(53078),ci=i(82038),di=i(84806),hi=i(87717),ui=i(7621),pi=i(8021),vi=i(60339),gi=i(75709),yi=i(20037);const Pi={symbol:{bold:pi,default:si},legend:{bold:vi,default:ci},scales:{bold:gi,default:di},canvas:{bold:i(97660),default:ui},trading:{bold:yi,default:hi}} +;const fi=n.t(null,void 0,i(95481)),bi=n.t(null,void 0,i(28715)),wi=n.t(null,void 0,i(90275)),mi=n.t(null,void 0,i(23739)),Di=(n.t(null,void 0,i(69808)),n.t(null,void 0,i(76495)),n.t(null,void 0,i(36620)),n.t(null,void 0,i(8249)),n.t(null,void 0,i(94408)),n.t(null,void 0,i(24821)),!1);function Si(e=!1){const t=new Date(Date.UTC(1997,8,29));return ri.availableDateFormats.map((i=>({value:i,title:new oi.DateFormatter(i,e).format(t)})))}const Ti=[{id:"symbol-text-source-description",value:"description",title:n.t(null,void 0,i(78734))},{id:"symbol-text-source-ticker",value:"ticker",title:n.t(null,void 0,i(5791))},{id:"symbol-text-source-ticker-and-description",value:"ticker-and-description",title:n.t(null,void 0,i(16816))}];o.enabled("symbol_info_long_description")&&Ti.push({id:"symbol-text-source-long-description",value:"long-description",title:n.t(null,void 0,i(89315))});class _i{constructor(e,t,i){this._propertyPages=null,this._maxRightOffsetPropertyObject=null,this._defaultRightOffsetPercentageWatchedValue=null,this._useRightOffsetPercentageWatchedValue=null,this._profitLossOptions=null,this._isDestroyed=!1,this._availableDateFormatValues=null,this._undoModel=e,this._model=this._undoModel.model(),this._series=this._model.mainSeries(),this._chartWidgetProperties=t,this._options=i,this._seriesPropertyDefinitionViewModel=this._createSeriesViewModel();const r=this._chartWidgetProperties.childs().paneProperties.childs(),n=(0,P.createWVFromProperty)(r.gridLinesMode);this._gridColorsVisibilities={gridLinesMode:n,vertLinesVisible:(0,b.combine)((e=>"both"===e||"vert"===e),n.weakReference()),horzLinesVisible:(0,b.combine)((e=>"both"===e||"horz"===e),n.weakReference())},this._legendPropertyPage=this._createLegendPropertyPage(),this._scalesPropertyPage=this._createScalesPropertyPage(),this._appearancePropertyPage=this._createAppearancePropertyPage(),this._tradingPropertyPage=this._createTradingPropertyPage(),this._eventsPropertyPage=this._createEventsPropertyPage(),this._alertsPropertyPage=this._createAlertsPropertyPage(),this._series.onStyleChanged().subscribe(this,this._updateDefinitions),this._series.priceScaleChanged().subscribe(this,this._updateDefinitions)}destroy(){null!==this._propertyPages&&this._propertyPages.filter(((e,t)=>0!==t)).forEach((e=>{(0,a.destroyDefinitions)(e.definitions.value())})),this._seriesPropertyDefinitionViewModel.destroy(),this._pipValueTypeSubscription?.unsubscribe(),this._availableDateFormatValues?.destroy(),this._series.onStyleChanged().unsubscribe(this,this._updateDefinitions),this._series.priceScaleChanged().unsubscribe(this,this._updateDefinitions);(0,r.ensureNotNull)(this._model.timeScale()).maxRightOffsetChanged().unsubscribeAll(this),this._gridColorsVisibilities.vertLinesVisible.destroy(),this._gridColorsVisibilities.horzLinesVisible.destroy(),this._gridColorsVisibilities.gridLinesMode.destroy(),this._isDestroyed=!0}async propertyPages(){if(null===this._propertyPages){const e=await this._seriesPropertyDefinitionViewModel.propertyPages() +;if(this._isDestroyed)throw new Error("ChartPropertyDefinitionsViewModel already destroyed");if(null===this._propertyPages){this._propertyPages=[...e],this._propertyPages.push(this._legendPropertyPage,this._scalesPropertyPage,await this._appearancePropertyPage),null!==this._tradingPropertyPage&&this._propertyPages.push(this._tradingPropertyPage);const t=await this._alertsPropertyPage;t&&this._propertyPages.push(t);const i=await this._eventsPropertyPage;i&&this._propertyPages.push(i)}return this._propertyPages}return Promise.resolve(this._propertyPages)}_updatePlDisplayOptions(e){(0,r.ensureNotNull)(this._profitLossOptions).setValue([])}_updateDefinitions(){(0,a.destroyDefinitions)(this._scalesPropertyPage.definitions.value());const e=this._createScalesDefinitions();this._scalesPropertyPage.definitions.setValue(e.definitions)}_createSeriesViewModel(){const e={property:this._model.properties().childs().timezone,values:ai.availableTimezones.map((e=>({value:e.id,title:e.title})))};return new u.SeriesPropertyDefinitionsViewModel(this._series,this._undoModel,"symbol",fi,(0,r.ensureDefined)(Pi.symbol),e)}_createLegendPropertyPage(){const e=this._chartWidgetProperties.childs().paneProperties.childs().legendProperties.childs(),t={property:this._series.properties().childs().statusViewStyle.childs().symbolTextSource,values:Ti},o=function(e,t,r,o){const s=[],c=[];if(Q){const i=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showLogo,D)},{id:"showLogo",title:F});c.push(i)}const d=(0,a.createOptionsPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showSeriesTitle,w),option:(0,a.convertToDefinitionProperty)(e,r.property,m)},{id:"symbolTextSource",title:A,options:new l.WatchedValue(r.values)});if(c.push(d),null!==o){const t=(0,b.combineWithFilteredUpdate)(((t,i)=>"market"===t&&!(0,g.isEconomicSymbol)(e.mainSeries().symbolInfo())),((e,t)=>null!==e),e.mainSeries().marketStatusModel().status().weakReference(),e.mainSeries().symbolResolvingActive().weakReference()),i=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,o,D),visible:(0,a.convertFromReadonlyWVToDefinitionProperty)(t.ownership())},{id:"showOpenMarketStatus",title:q});c.push(i)}const h=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showSeriesOHLC,S)},{id:"ohlcTitle",title:H});if(c.push(h),!y.alwaysShowLastPriceAndLastDayChange){const i=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showBarChange,_),visible:(0,a.makeProxyDefinitionProperty)((0,P.combineProperty)((e=>12!==e&&20!==e),e.mainSeries().properties().childs().style.weakReference()).ownership())},{id:"barChange",title:B});c.push(i)}if(X){const i=(0,a.createTwoColorsPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.useBarChangeCustomColors,L),color1:(0,a.getColorDefinitionProperty)(e,t.barChangeUpColor,null,C),color2:(0,a.getColorDefinitionProperty)(e,t.barChangeDownColor,null,k),visible:(0,a.makeProxyDefinitionProperty)((0, +P.combineProperty)((e=>(0,g.isHLCBasedStyle)(e)||(0,g.isSingleValueBasedStyle)(e)),e.mainSeries().properties().childs().style.weakReference()).ownership())},{id:"barChangeColors",title:E});c.push(i)}if(c.push((0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showVolume,R),visible:(0,a.makeProxyDefinitionProperty)((0,P.combineProperty)((e=>20!==e),e.mainSeries().properties().childs().style.weakReference()).ownership())},{id:"barVolume",title:N})),y.lastDayChangeAvailable||y.alwaysShowLastPriceAndLastDayChange){const i=y.alwaysShowLastPriceAndLastDayChange?t.showBarChange:t.showLastDayChange,r=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i,T),visible:(0,a.makeProxyDefinitionProperty)((0,P.combineProperty)((e=>12!==e&&20!==e),e.mainSeries().properties().childs().style.weakReference()).ownership())},{id:"lastDayChange",title:Z});c.push(r)}if(K){const i=(0,b.combineWithFilteredUpdate)(((t,i)=>e.model().symbolSources().some((e=>void 0!==e.symbolInfo()?.price_source_id))),((e,t)=>!e),e.model().symbolSourceResolvingActive().weakReference(),(0,P.createWVFromGetterAndSubscription)((()=>e.model().symbolSources().length),e.model().symbolSourceCollectionChanged()).ownership());c.push((0,a.createCheckablePropertyDefinition)({disabled:(0,a.convertFromReadonlyWVToDefinitionProperty)(e.model().symbolSourceResolvingActive().weakReference()),checked:(0,a.convertToDefinitionProperty)(e,t.showPriceSource,G),visible:(0,a.convertFromReadonlyWVToDefinitionProperty)(i.ownership())},{id:"priceSource",title:J}))}s.push((0,a.createPropertyDefinitionsGeneralGroup)(c,"seriesLegendVisibilityGroup",n.t(null,void 0,i(95481))));const u=[],p=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showStudyArguments,V)},{id:"studyArguments",title:z}),v=(0,a.createCheckableSetPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showStudyTitles,W)},{id:"studyTitles",title:j},[p]),Y=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showStudyValues,O)},{id:"studyValues",title:U}),$=(0,P.createWVFromGetterAndSubscription)((()=>e.model().priceDataSources().some((e=>!(0,f.isActingAsSymbolSource)(e)&&e.showInObjectTree()))),e.model().dataSourceCollectionChanged());u.push(v,Y),s.push((0,a.createPropertyDefinitionsGeneralGroup)(u,"studiesLegendVisibilityGroup",n.t(null,void 0,i(84549)),$));const ee=[],te=(0,a.createTransparencyPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showBackground,x),transparency:(0,a.convertToDefinitionProperty)(e,t.backgroundTransparency,M)},{id:"legendBgTransparency",title:I});return ee.push(te),s.push((0,a.createPropertyDefinitionsGeneralGroup)(ee,"generalLegendGroup")),{definitions:s}}(this._undoModel,e,t,this._options.marketStatusWidgetEnabled?p.showMarketOpenStatusProperty:null);return(0,s.createPropertyPage)(o,"legend",bi,(0,r.ensureDefined)(Pi.legend))}_createScalesPropertyPage(){const e=this._createScalesDefinitions();return(0, +s.createPropertyPage)(e,"scales",wi,(0,r.ensureDefined)(Pi.scales))}_createScalesDefinitions(){const e=this._chartWidgetProperties.childs().scalesProperties.childs(),t={property:this._model.properties().childs().priceScaleSelectionStrategyName,values:(0,h.allPriceScaleSelectionStrategyInfo)().map((e=>({value:e.name,title:e.title})))};this._model.onWidget()?null===this._availableDateFormatValues&&(this._availableDateFormatValues=new l.WatchedValue(Si()).spawn()):null===this._availableDateFormatValues&&(this._availableDateFormatValues=(0,b.combine)((e=>Si(e)),(0,P.createWVFromProperty)(ii.withWeekdayProperty).ownership()));const r={property:li.timeHoursFormatProperty,values:[{value:"24-hours",title:n.t(null,void 0,i(5797))},{value:"12-hours",title:n.t(null,void 0,i(31882))}]},s=this._model.mainSeriesScaleRatioProperty();return function(e,t,i,r){const n=r.seriesPriceScale.properties().childs(),s=[],c=[];if(r.currencyConversionEnabled||r.unitConversionEnabled){const t=r.currencyConversionEnabled&&r.unitConversionEnabled?Ue:r.currencyConversionEnabled?Ne:ze,i=r.currencyConversionEnabled&&r.unitConversionEnabled?Pe:r.currencyConversionEnabled?ve:ye,n=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,(0,te.currencyUnitVisibilityProperty)(),i)},{id:"scalesCurrencyUnit",title:t,options:new l.WatchedValue((0,te.currencyUnitVisibilityOptions)())});c.push(n)}const d=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,(0,ie.autoLogButtonsVisibilityProperty)(),ge)},{id:"autoLogButtonsVisibility",title:je,options:new l.WatchedValue((0,ie.autoLogButtonsVisibilityOptions)())});c.push(d);const h=(0,a.createNumberPropertyDefinition)({checked:(0,a.getLockPriceScaleDefinitionProperty)(e,n.lockScale,r.seriesPriceScale,be),value:(0,a.getScaleRatioDefinitionProperty)(e,r.mainSeriesScaleRatioProperty,we,[(0,$.limitedPrecision)(7),e=>e])},{id:"lockScale",title:Je,min:new l.WatchedValue(r.mainSeriesScaleRatioProperty.getMinValue()),max:new l.WatchedValue(r.mainSeriesScaleRatioProperty.getMaxValue()),step:new l.WatchedValue(r.mainSeriesScaleRatioProperty.getStepChangeValue())}),u=(0,a.createOptionsPropertyDefinition)({option:(0,a.getPriceScaleSelectionStrategyDefinitionProperty)(e,r.scalesPlacementPropertyObj.property)},{id:"scalesPlacement",title:qe,options:new l.WatchedValue(r.scalesPlacementPropertyObj.values)});c.push(h,u),s.push((0,a.createPropertyDefinitionsGeneralGroup)(c,"scalesPriceScaleGroup",Ke));const p=[],v=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,n.alignLabels,ue)},{id:"noOverlappingLabels",title:Ge});if(p.push(v),e.crosshairSource().isMenuEnabled()){const t=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,ee.addPlusButtonProperty,fe)},{id:"addPlusButton",title:Ie,solutionId:void 0});p.push(t)}if(r.countdownEnabled){const i=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showCountdown,pe)},{id:"countdown",title:Ee});p.push(i)}if(r.seriesHasClosePrice){ +const r=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.showSymbolLabels,re)},{id:"symbolNameLabel",title:xe}),n=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.showSeriesLastValue,ne)},{id:"symbolValueLabel",title:Me}),o=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showPriceLine,_e)},{id:"symbolLine",title:Re}),s=(0,a.createLinePropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,t.priceLineColor,null,Ce),width:(0,a.convertToDefinitionProperty)(e,t.priceLineWidth,ke)},{id:"SymbolLastValuePriceLine",title:""}),c=(0,a.createOptionsPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.showSeriesLastValue,ne),option:(0,a.convertToDefinitionProperty)(e,i.seriesLastValueMode,oe)},{id:"symbolLastValueLabel",title:Me,options:new l.WatchedValue(it)});p.push((0,a.createPropertyDefinitionsCheckableListOptionsGroup)([r,n,o],void 0,[s,c],"symbolCheckableListGroup",Ae))}if(tt){const i=t.highLowAvgPrice.childs(),r=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.averageClosePriceLabelVisible,Le)},{id:"averageClosePriceLabel",title:Me}),n=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.averageClosePriceLineVisible,Ve)},{id:"averageCloseLine",title:Re}),o=(0,a.createLinePropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,i.averagePriceLineColor,null,We),width:(0,a.convertToDefinitionProperty)(e,i.averagePriceLineWidth,Oe)},{id:"averageClosePriceLine",title:""});p.push((0,a.createPropertyDefinitionsCheckableListOptionsGroup)([r,n],void 0,[o],"avgCloseCheckableListGroup",He))}let g,y;g=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.showStudyPlotLabels,de)},{id:"studyNameLabel",title:xe}),y=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.showStudyLastValue,he)},{id:"studyLastValueLabel",title:Me});const b=(0,P.createWVFromGetterAndSubscription)((()=>e.model().priceDataSources().some((e=>!(0,f.isActingAsSymbolSource)(e)&&e.showInObjectTree()))),e.model().dataSourceCollectionChanged());p.push((0,a.createPropertyDefinitionsCheckableListOptionsGroup)([g,y],void 0,[],"studiesCheckableListGroup",Ze,b));const w=t.highLowAvgPrice.childs(),m=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,w.highLowPriceLabelsVisible,le)},{id:"highLowPriceLabels",title:Me}),D=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,w.highLowPriceLinesVisible,ae)},{id:"highLowPriceLine",title:Re}),S=(0,a.createLinePropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,w.highLowPriceLinesColor,null,se),width:(0,a.convertToDefinitionProperty)(e,w.highLowPriceLinesWidth,ce)},{id:"highLowLineColors",title:""});p.push((0,a.createPropertyDefinitionsCheckableListOptionsGroup)([m,D],void 0,[S],"hiLowCheckableListGroup",Be)),s.push((0, +a.createPropertyDefinitionsGeneralGroup)(p,"scalesLabelsLineGroup",Fe));const T=[];if(r.withWeekdayProperty){const t=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,r.withWeekdayProperty,Se)},{id:"showWeekdayOnTimeScaleLabels",title:$e});T.push(t)}if(o.enabled("scales_date_format")){const t=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,r.dateFormatPropertyObj.property,me)},{id:"dateFormat",title:Qe,options:r.dateFormatPropertyObj.values});T.push(t)}if(o.enabled("scales_time_hours_format")){const t=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,r.timeHoursFormatPropertyObj.property,De)},{id:"timeHoursFormat",title:Xe,options:new l.WatchedValue(r.timeHoursFormatPropertyObj.values)});T.push(t)}{const t=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,r.saveLeftEdgeProperty,Te)},{id:"saveLeftChartEdge",title:et});T.push(t)}return T.length>0&&s.push((0,a.createPropertyDefinitionsGeneralGroup)(T,"scalesTimeScaleGroup",Ye)),{definitions:s}}(this._undoModel,this._series.properties().childs(),e,{disableSeriesPrevCloseValueProperty:this._series.isDWMProperty(),seriesHasClosePrice:this._series.hasClosePrice(),seriesPriceScale:this._series.priceScale(),mainSeriesScaleRatioProperty:s,scalesPlacementPropertyObj:t,dateFormatPropertyObj:{property:ni.dateFormatProperty,values:this._availableDateFormatValues},timeHoursFormatPropertyObj:r,currencyConversionEnabled:this._options.currencyConversionEnabled,unitConversionEnabled:this._options.unitConversionEnabled,countdownEnabled:this._options.countdownEnabled,withWeekdayProperty:this._model.onWidget()?void 0:ii.withWeekdayProperty,saveLeftEdgeProperty:e.saveLeftEdge})}_createMaxOffsetPropertyObject(){const e=(0,r.ensureNotNull)(this._model.timeScale()),t=new l.WatchedValue(Math.floor(e.maxRightOffset()));e.maxRightOffsetChanged().subscribe(this,(e=>{t.setValue(Math.floor(e))})),this._maxRightOffsetPropertyObject={value:e.defaultRightOffset(),min:new l.WatchedValue(0),max:t}}_createDefaultRightOffsetPercentageWatchedValue(){const e=(0,r.ensureNotNull)(this._model.timeScale());this._defaultRightOffsetPercentageWatchedValue=e.defaultRightOffsetPercentage()}_createUseRightOffsetPercentageWatchedValue(){const e=(0,r.ensureNotNull)(this._model.timeScale());this._useRightOffsetPercentageWatchedValue=e.usePercentageRightOffset()}async _createAppearancePropertyPage(){const e=this._chartWidgetProperties.childs(),t=e.paneProperties.childs(),i=e.scalesProperties.childs(),n=this._model.watermarkSource();let o=null;null!==n&&(o=n.properties().childs());const l={property:c.property(),values:c.availableValues()},a={property:d.property(),values:d.availableValues()};null===this._maxRightOffsetPropertyObject&&this._createMaxOffsetPropertyObject(),null===this._defaultRightOffsetPercentageWatchedValue&&this._createDefaultRightOffsetPercentageWatchedValue(),null===this._useRightOffsetPercentageWatchedValue&&this._createUseRightOffsetPercentageWatchedValue() +;const h=(0,r.ensureNotNull)(this._maxRightOffsetPropertyObject),u=(0,r.ensureNotNull)(this._defaultRightOffsetPercentageWatchedValue),p=(0,r.ensureNotNull)(this._useRightOffsetPercentageWatchedValue),v=await ti(this._undoModel,t,o,i,h,l,a,u,p,this._gridColorsVisibilities);return(0,s.createPropertyPage)(v,"canvas",mi,(0,r.ensureDefined)(Pi.canvas))}_createTradingPropertyPage(){return null}async _createEventsPropertyPage(){return null}_createAlertsPropertyPage(){return null}}},8021:e=>{e.exports=''},97660:e=>{e.exports=''},75709:e=>{e.exports=''},60339:e=>{e.exports=''},20037:e=>{e.exports=''},53078:e=>{e.exports=''},7621:e=>{ +e.exports=''},84806:e=>{e.exports=''},82038:e=>{e.exports=''},87717:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/general-property-page.79d509486a68c67bd42f.js b/charting_library/bundles/general-property-page.79d509486a68c67bd42f.js deleted file mode 100644 index 0c33d2ed..00000000 --- a/charting_library/bundles/general-property-page.79d509486a68c67bd42f.js +++ /dev/null @@ -1,14 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3596],{19350:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ChartPropertyDefinitionsViewModel:()=>wi});var r=i(50151),n=i(11542),o=i(37103),l=(i(86572),i(49470),i(22613)),a=i(95338),s=i(60567),c=i(23714),d=i(61786),h=i(28450),u=i(37903),p=i(87911),v=i(95804),g=i(95059),y=i(17161),P=i(67455),f=i(22455),b=i(48943);const w=new v.TranslatedString("change symbol description visibility",n.t(null,void 0,i(88167))),m=new v.TranslatedString("change symbol legend format",n.t(null,void 0,i(902))),D=new v.TranslatedString("change open market status visibility",n.t(null,void 0,i(96227))),S=new v.TranslatedString("change chart values visibility",n.t(null,void 0,i(79637))),T=new v.TranslatedString("change last day change visibility",n.t(null,void 0,i(66307))),k=new v.TranslatedString("change bar change visibility",n.t(null,void 0,i(27426))),_=new v.TranslatedString("change indicator inputs visibility",n.t(null,void 0,i(75663))),C=new v.TranslatedString("change indicator titles visibility",n.t(null,void 0,i(63050))),L=new v.TranslatedString("change indicator values visibility",n.t(null,void 0,i(49583))),V=new v.TranslatedString("change legend background visibility",n.t(null,void 0,i(14246))),W=new v.TranslatedString("change legend background transparency",n.t(null,void 0,i(91873))),O=new v.TranslatedString("change volume values visibility",n.t(null,void 0,i(96201))),x=new v.TranslatedString("change symbol field visibility",n.t(null,void 0,i(12050))),M=n.t(null,void 0,i(14876)),R=n.t(null,void 0,i(70198)),G=n.t(null,void 0,i(45639)),F=n.t(null,void 0,i(72423)),A=n.t(null,void 0,i(10842)),H=n.t(null,void 0,i(37644)),Z=n.t(null,void 0,i(29854)),E=n.t(null,void 0,i(21429)),N=n.t(null,void 0,i(60092)),B=n.t(null,void 0,i(79468)),j=n.t(null,void 0,i(25765)),z=n.t(null,void 0,i(84684)),U=o.enabled("symbol_info_price_source"),I=o.enabled("show_symbol_logos")&&o.enabled("show_symbol_logo_in_legend");var q=i(97902),J=i(45838),K=i(33718),Q=i(91106),X=i(25246);const Y=new v.TranslatedString("change symbol labels visibility",n.t(null,void 0,i(73357))),$=new v.TranslatedString("change symbol last value visibility",n.t(null,void 0,i(67453))),ee=new v.TranslatedString("change symbol last value mode",n.t(null,void 0,i(46066))),te=(new v.TranslatedString("change bid and ask labels visibility",n.t(null,void 0,i(69362))),new v.TranslatedString("change bid and ask lines visibility",n.t(null,void 0,i(52919))),new v.TranslatedString("change bid line color",n.t(null,void 0,i(17919))),new v.TranslatedString("change ask line color",n.t(null,void 0,i(98407))),new v.TranslatedString("change pre/post market price label visibility",n.t(null,void 0,i(30870))),new v.TranslatedString("change pre/post market price lines visibility",n.t(null,void 0,i(91978))),new v.TranslatedString("change pre market line color",n.t(null,void 0,i(96114))),new v.TranslatedString("change post market line color",n.t(null,void 0,i(28075))), -new v.TranslatedString("change high and low price labels visibility",n.t(null,void 0,i(24226)))),ie=new v.TranslatedString("change high and low price lines visibility",n.t(null,void 0,i(80692))),re=new v.TranslatedString("change high and low price line color",n.t(null,void 0,i(61407))),ne=new v.TranslatedString("change high and low price line width",n.t(null,void 0,i(39581))),oe=(new v.TranslatedString("change indicators and financials name labels visibility",n.t(null,void 0,i(35111))),new v.TranslatedString("change indicators name labels visibility",n.t(null,void 0,i(24893)))),le=(new v.TranslatedString("change indicators and financials value labels visibility",n.t(null,void 0,i(71161))),new v.TranslatedString("change indicators value labels visibility",n.t(null,void 0,i(64729)))),ae=new v.TranslatedString("change no overlapping labels",n.t(null,void 0,i(61557))),se=new v.TranslatedString("change countdown to bar close visibility",n.t(null,void 0,i(39383))),ce=new v.TranslatedString("change currency label visibility",n.t(null,void 0,i(64003))),de=new v.TranslatedString("change scale modes buttons visibility",n.t(null,void 0,i(69023))),he=new v.TranslatedString("change unit label visibility",n.t(null,void 0,i(51250))),ue=new v.TranslatedString("change currency and unit labels visibility",n.t(null,void 0,i(63119))),pe=new v.TranslatedString("change plus button visibility",n.t(null,void 0,i(96379))),ve=new v.TranslatedString("toggle lock scale",n.t(null,void 0,i(49695))),ge=new v.TranslatedString("change price to bar ratio",n.t(null,void 0,i(2509))),ye=new v.TranslatedString("change date format",n.t(null,void 0,i(43109))),Pe=new v.TranslatedString("change time hours format",n.t(null,void 0,i(39754))),fe=new v.TranslatedString("change day of week on labels",n.t(null,void 0,i(30418))),be=new v.TranslatedString("change save chart left edge position when changing interval",n.t(null,void 0,i(77408))),we=new v.TranslatedString("change price line visibility",n.t(null,void 0,i(8662))),me=new v.TranslatedString("change price line color",n.t(null,void 0,i(87861))),De=new v.TranslatedString("change price line width",n.t(null,void 0,i(29353))),Se=new v.TranslatedString("change average close price label visibility",n.t(null,void 0,i(76852))),Te=new v.TranslatedString("change average close price line visibility",n.t(null,void 0,i(1022))),ke=new v.TranslatedString("change average close price line color",n.t(null,void 0,i(47026))),_e=new v.TranslatedString("change average close price line width",n.t(null,void 0,i(43231))),Ce=(new v.TranslatedString("change previous close price line visibility",n.t(null,void 0,i(58419))),new v.TranslatedString("change previous close price line color",n.t(null,void 0,i(69814))),new v.TranslatedString("change previous close price line width",n.t(null,void 0,i(13660))),new v.TranslatedString("change symbol previous close value visibility",n.t(null,void 0,i(4729))), -n.t(null,void 0,i(99709))),Le=n.t(null,void 0,i(51514)),Ve=n.t(null,void 0,i(3554)),We=n.t(null,void 0,i(58589)),Oe=n.t(null,void 0,i(62142)),xe=n.t(null,void 0,i(95481)),Me=n.t(null,void 0,i(68650)),Re=(n.t(null,void 0,i(83811)),n.t(null,void 0,i(78082))),Ge=(n.t(null,void 0,i(60904)),n.t(null,void 0,i(14180))),Fe=(n.t(null,void 0,i(76473)),n.t(null,void 0,i(83140))),Ae=n.t(null,void 0,i(81849)),He=n.t(null,void 0,i(26204)),Ze=n.t(null,void 0,i(33564)),Ee=n.t(null,void 0,i(3015)),Ne=n.t(null,void 0,i(71566)),Be=n.t(null,void 0,i(30042)),je=n.t(null,void 0,i(14017)),ze=n.t(null,void 0,i(35082)),Ue=n.t(null,void 0,i(84838)),Ie=n.t(null,void 0,i(5591)),qe=n.t(null,void 0,i(93965)),Je=n.t(null,void 0,i(42357)),Ke=n.t(null,void 0,i(8852)),Qe=o.enabled("show_average_close_price_line_and_label"),Xe=[{value:q.PriceAxisLastValueMode.LastPriceAndPercentageValue,title:n.t(null,void 0,i(27632))},{value:q.PriceAxisLastValueMode.LastValueAccordingToScale,title:n.t(null,void 0,i(31218))}];var Ye=i(87465),$e=i(89959),et=i(5149),tt=i(98583);const it=new v.TranslatedString("change sessions breaks visibility",n.t(null,void 0,i(60067))),rt=new v.TranslatedString("change sessions breaks color",n.t(null,void 0,i(33895))),nt=new v.TranslatedString("change sessions breaks width",n.t(null,void 0,i(28175))),ot=new v.TranslatedString("change sessions breaks style",n.t(null,void 0,i(21641))),lt=n.t(null,void 0,i(66707));var at=i(35106);const st=new v.TranslatedString("change chart background color",n.t(null,void 0,i(42803))),ct=new v.TranslatedString("change chart background type",n.t(null,void 0,i(41382))),dt=new v.TranslatedString("change vert grid lines color",n.t(null,void 0,i(71805))),ht=new v.TranslatedString("change horz grid lines color",n.t(null,void 0,i(21133))),ut=new v.TranslatedString("change grid lines visibility",n.t(null,void 0,i(73844))),pt=new v.TranslatedString("change scales text color",n.t(null,void 0,i(76131))),vt=new v.TranslatedString("change scales font size",n.t(null,void 0,i(27792))),gt=new v.TranslatedString("change scales lines color",n.t(null,void 0,i(94997))),yt=new v.TranslatedString("change pane separators color",n.t(null,void 0,i(52203))),Pt=new v.TranslatedString("change crosshair color",n.t(null,void 0,i(92885))),ft=new v.TranslatedString("change crosshair width",n.t(null,void 0,i(50544))),bt=new v.TranslatedString("change crosshair style",n.t(null,void 0,i(68418))),wt=new v.TranslatedString("change symbol watermark visibility",n.t(null,void 0,i(73227))),mt=new v.TranslatedString("change symbol ticker watermark visibility",n.t(null,void 0,i(18099))),Dt=new v.TranslatedString("change interval watermark visibility",n.t(null,void 0,i(451))),St=new v.TranslatedString("change symbol description watermark visibility",n.t(null,void 0,i(65838))),Tt=(new v.TranslatedString("change replay watermark visibility",n.t(null,void 0,i(66021))), -new v.TranslatedString("change symbol watermark color",n.t(null,void 0,i(78995)))),kt=new v.TranslatedString("change navigation buttons visibility",n.t(null,void 0,i(3311))),_t=new v.TranslatedString("change pane buttons visibility",n.t(null,void 0,i(18378))),Ct=new v.TranslatedString("change top margin",n.t(null,void 0,i(74883))),Lt=new v.TranslatedString("change bottom margin",n.t(null,void 0,i(32094))),Vt=new v.TranslatedString("change right margin",n.t(null,void 0,i(82946))),Wt=new v.TranslatedString("change right margin percentage",n.t(null,void 0,i(79545))),Ot=n.t(null,void 0,i(79468)),xt=n.t(null,void 0,i(83594)),Mt=n.t(null,void 0,i(8402)),Rt=n.t(null,void 0,i(61900)),Gt=n.t(null,void 0,i(60798)),Ft=n.t(null,void 0,i(68662)),At=n.t(null,void 0,i(70320)),Ht=n.t(null,void 0,i(56982)),Zt=n.t(null,void 0,i(82894)),Et=n.t(null,void 0,i(74622)),Nt=n.t(null,void 0,i(41571)),Bt=n.t(null,void 0,i(51019)),jt=n.t(null,void 0,i(53263)),zt=n.t(null,void 0,i(97118)),Ut=n.t(null,void 0,i(27567)),It=n.t(null,void 0,i(50421)),qt=n.t(null,void 0,i(86235)),Jt=n.t(null,void 0,i(27377)),Kt=n.t(null,{context:"unit"},i(80587));async function Qt(e,t,r,s,c,d,h,u,p,v){const g=[],y=[],f=[],w=[],m=[],D=(0,a.createColorPropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,t.background,null,st),gradientColor1:(0,a.getColorDefinitionProperty)(e,t.backgroundGradientStartColor,null,st),gradientColor2:(0,a.getColorDefinitionProperty)(e,t.backgroundGradientEndColor,null,st),type:(0,a.convertToDefinitionProperty)(e,t.backgroundType,ct)},{id:"chartBackground",title:Ot,noAlpha:!0}),S=t.vertGridProperties.childs(),T=t.horzGridProperties.childs(),k=(0,a.createOptionalTwoColorsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,t.gridLinesMode,ut),color1:(0,a.getColorDefinitionProperty)(e,S.color,null,dt),color2:(0,a.getColorDefinitionProperty)(e,T.color,null,ht)},{id:"gridLines",title:Ft,options:new l.WatchedValue([{title:xt,value:"both"},{title:Mt,value:"vert"},{title:Rt,value:"horz"},{title:Gt,value:"none"}]),color1Visible:v.vertLinesVisible,color2Visible:v.horzLinesVisible}),_=(0,P.createWVFromGetterAndSubscription)((()=>1!==e.model().panes().length),e.model().panesCollectionChanged()),C=(0,a.createLinePropertyDefinition)({visible:(0,a.convertFromReadonlyWVToDefinitionProperty)(_.ownership()),color:(0,a.getColorDefinitionProperty)(e,t.separatorColor,null,yt)},{id:"paneSeparators",title:Zt}),L=t.crossHairProperties.childs(),V=(0,a.createLinePropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,L.color,L.transparency,Pt),width:(0,a.convertToDefinitionProperty)(e,L.width,ft),style:(0,a.convertToDefinitionProperty)(e,L.style,bt)},{id:"crossHair",title:Et});g.push(D,k);{const t=function(e){const t=e.model().sessions().properties().childs().sessionHighlight.childs().vertlines.childs().sessBreaks.childs(),i=(0,$e.combineProperty)((e=>!e),e.mainSeries().isDWMProperty().weakReference());return(0,tt.createLinePropertyDefinition)({visible:(0,et.makeProxyDefinitionProperty)(i.ownership()),checked:(0, -a.convertToDefinitionProperty)(e,t.visible,it),color:(0,a.getColorDefinitionProperty)(e,t.color,null,rt),width:(0,a.convertToDefinitionProperty)(e,t.width,nt),style:(0,a.convertToDefinitionProperty)(e,t.style,ot)},{id:"sessionBeaks",title:lt})}(e);g.push(t)}if(g.push(C,V),null!==r){const t=(0,b.combine)((e=>null===e),e.model().watermarkContentProvider().weakReference()),o=[(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,r.ticker,mt)},{id:"watermarkTicker",title:n.t(null,void 0,i(5791)),notFormatedTitle:!0}),(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,r.interval,Dt)},{id:"watermarkInterval",title:n.t(null,void 0,i(17854)),notFormatedTitle:!0}),(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,r.description,St)},{id:"watermarkDescription",title:n.t(null,void 0,i(78734)),notFormatedTitle:!0}),null].filter(Ye.notNull),l=(0,a.createPropertyDefinitionsCheckableListOptionsGroup)(o,void 0,[(0,a.createColorPropertyDefinition)({color:(0,at.getStdColorDefinitionProperty)(e,r.color,e.model().backgroundTheme().weakReference(),Tt)},{id:"watermarkColor"})],"watermark",Nt,t);g.push(l);const s=(0,b.combine)((e=>null!==e),e.model().watermarkContentProvider().weakReference()),c=(0,a.createColorPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,r.custom,wt),color:(0,at.getStdColorDefinitionProperty)(e,r.color,e.model().backgroundTheme().weakReference(),Tt),visible:(0,a.convertFromReadonlyWVToDefinitionProperty)(s.ownership())},{id:"customWatermark",title:Nt});g.push(c)}const W=(0,a.createTextPropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,s.textColor,null,pt),size:(0,a.convertToDefinitionProperty)(e,s.fontSize,vt)},{id:"scalesText",title:At}),O=(0,a.createLinePropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,s.lineColor,null,gt)},{id:"scalesLine",title:Ht});y.push(W,O);const x=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,d.property,kt)},{id:"navButtons",title:Bt,options:new l.WatchedValue(d.values)}),M=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,h.property,_t)},{id:"paneButtons",title:jt,options:new l.WatchedValue(h.values)});f.push(x,M);const R=(0,a.createNumberPropertyDefinition)({value:(0,a.convertToDefinitionProperty)(e,t.topMargin,Ct,[J.floor])},{type:0,id:"paneTopMargin",title:zt,min:new l.WatchedValue(0),max:new l.WatchedValue(25),step:new l.WatchedValue(1),unit:new l.WatchedValue("%")}),G=(0,a.createNumberPropertyDefinition)({value:(0,a.convertToDefinitionProperty)(e,t.bottomMargin,Lt,[J.floor])},{type:0,id:"paneBottomMargin",title:Ut,min:new l.WatchedValue(0),max:new l.WatchedValue(25),step:new l.WatchedValue(1),unit:new l.WatchedValue("%")});if(w.push(R,G),o.enabled("chart_property_page_right_margin_editor")){const t={value:(0,a.convertFromWVToDefinitionProperty)(e,c.value,Vt,[J.floor])},i={type:0,id:"paneRightMargin",title:It,min:c.min,max:c.max,step:new l.WatchedValue(1),unit:new l.WatchedValue(Kt)} -;if(o.enabled("show_percent_option_for_right_margin")){const r=(0,a.createNumberPropertyDefinition)({...t,checked:(0,a.convertFromWVToDefinitionProperty)(e,p,Wt,[e=>!e,e=>!e])},{...i,title:Jt}),n=(0,a.createNumberPropertyDefinition)({checked:(0,a.convertFromWVToDefinitionProperty)(e,p,Wt),value:(0,a.convertFromWVToDefinitionProperty)(e,u,Wt,[J.floor])},{type:0,id:"paneRightMarginPercentage",title:qt,min:new l.WatchedValue(0),max:new l.WatchedValue(99),step:new l.WatchedValue(1),unit:new l.WatchedValue("%")});m.push(r),m.push(n)}else{const e=(0,a.createNumberPropertyDefinition)(t,i);w.push(e)}}const F=[(0,a.createPropertyDefinitionsGeneralGroup)(g,"chartBasicStylesAppearanceGroup",n.t(null,void 0,i(15153))),(0,a.createPropertyDefinitionsGeneralGroup)(y,"scalesAppearanceGroup",n.t(null,void 0,i(93968))),(0,a.createPropertyDefinitionsGeneralGroup)(f,"buttonsAppearanceGroup",n.t(null,void 0,i(32744))),(0,a.createPropertyDefinitionsGeneralGroup)(w,"marginsAppearanceGroup",n.t(null,void 0,i(70937)))];return m.length>0&&F.push((0,a.createPropertyDefinitionsGeneralGroup)(m,"rightMarginsAppearanceGroup",n.t(null,void 0,i(62532)))),{definitions:F}}var Xt=i(40153),Yt=i(10718),$t=i(97363),ei=i(60336),ti=i(3190),ii=i(10845),ri=i(53078),ni=i(82038),oi=i(84806),li=i(87717),ai=i(7621),si=i(8021),ci=i(60339),di=i(75709),hi=i(20037);const ui={symbol:{bold:si,default:ri},legend:{bold:ci,default:ni},scales:{bold:di,default:oi},canvas:{bold:i(97660),default:ai},trading:{bold:hi,default:li}};const pi=n.t(null,void 0,i(95481)),vi=n.t(null,void 0,i(28715)),gi=n.t(null,void 0,i(90275)),yi=n.t(null,void 0,i(23739)),Pi=(n.t(null,void 0,i(69808)),n.t(null,void 0,i(76495)),n.t(null,void 0,i(36620)),n.t(null,void 0,i(8249)),n.t(null,void 0,i(94408)),n.t(null,void 0,i(24821)),!1);function fi(e=!1){const t=new Date(Date.UTC(1997,8,29));return Yt.availableDateFormats.map((i=>({value:i,title:new ei.DateFormatter(i,e).format(t)})))}const bi=[{id:"symbol-text-source-description",value:"description",title:n.t(null,void 0,i(78734))},{id:"symbol-text-source-ticker",value:"ticker",title:n.t(null,void 0,i(5791))},{id:"symbol-text-source-ticker-and-description",value:"ticker-and-description",title:n.t(null,void 0,i(16816))}];o.enabled("symbol_info_long_description")&&bi.push({id:"symbol-text-source-long-description",value:"long-description",title:n.t(null,void 0,i(89315))});class wi{constructor(e,t,i){this._propertyPages=null,this._maxRightOffsetPropertyObject=null,this._defaultRightOffsetPercentageWatchedValue=null,this._useRightOffsetPercentageWatchedValue=null,this._profitLossOptions=null,this._isDestroyed=!1,this._availableDateFormatValues=null,this._undoModel=e,this._model=this._undoModel.model(),this._series=this._model.mainSeries(),this._chartWidgetProperties=t,this._options=i,this._seriesPropertyDefinitionViewModel=this._createSeriesViewModel();const r=this._chartWidgetProperties.childs().paneProperties.childs(),n=(0,P.createWVFromProperty)(r.gridLinesMode);this._gridColorsVisibilities={gridLinesMode:n,vertLinesVisible:(0, -b.combine)((e=>"both"===e||"vert"===e),n.weakReference()),horzLinesVisible:(0,b.combine)((e=>"both"===e||"horz"===e),n.weakReference())},this._legendPropertyPage=this._createLegendPropertyPage(),this._scalesPropertyPage=this._createScalesPropertyPage(),this._appearancePropertyPage=this._createAppearancePropertyPage(),this._tradingPropertyPage=this._createTradingPropertyPage(),this._eventsPropertyPage=this._createEventsPropertyPage(),this._alertsPropertyPage=this._createAlertsPropertyPage(),this._series.onStyleChanged().subscribe(this,this._updateDefinitions),this._series.priceScaleChanged().subscribe(this,this._updateDefinitions)}destroy(){null!==this._propertyPages&&this._propertyPages.filter(((e,t)=>0!==t)).forEach((e=>{(0,a.destroyDefinitions)(e.definitions.value())})),this._seriesPropertyDefinitionViewModel.destroy(),this._pipValueTypeSubscription?.unsubscribe(),this._availableDateFormatValues?.destroy(),this._series.onStyleChanged().unsubscribe(this,this._updateDefinitions),this._series.priceScaleChanged().unsubscribe(this,this._updateDefinitions);(0,r.ensureNotNull)(this._model.timeScale()).maxRightOffsetChanged().unsubscribeAll(this),this._gridColorsVisibilities.vertLinesVisible.destroy(),this._gridColorsVisibilities.horzLinesVisible.destroy(),this._gridColorsVisibilities.gridLinesMode.destroy(),this._isDestroyed=!0}async propertyPages(){if(null===this._propertyPages){const e=await this._seriesPropertyDefinitionViewModel.propertyPages();if(this._isDestroyed)throw new Error("ChartPropertyDefinitionsViewModel already destroyed");if(null===this._propertyPages){this._propertyPages=[...e],this._propertyPages.push(this._legendPropertyPage,this._scalesPropertyPage,await this._appearancePropertyPage),null!==this._tradingPropertyPage&&this._propertyPages.push(this._tradingPropertyPage);const t=await this._alertsPropertyPage;t&&this._propertyPages.push(t);const i=await this._eventsPropertyPage;i&&this._propertyPages.push(i)}return this._propertyPages}return Promise.resolve(this._propertyPages)}_updatePlDisplayOptions(e){(0,r.ensureNotNull)(this._profitLossOptions).setValue([])}_updateDefinitions(){(0,a.destroyDefinitions)(this._scalesPropertyPage.definitions.value());const e=this._createScalesDefinitions();this._scalesPropertyPage.definitions.setValue(e.definitions)}_createSeriesViewModel(){const e={property:this._model.properties().childs().timezone,values:ii.availableTimezones.map((e=>({value:e.id,title:e.title})))};return new u.SeriesPropertyDefinitionsViewModel(this._series,this._undoModel,"symbol",pi,(0,r.ensureDefined)(ui.symbol),e)}_createLegendPropertyPage(){const e=this._chartWidgetProperties.childs().paneProperties.childs().legendProperties.childs(),t={property:this._series.properties().childs().statusViewStyle.childs().symbolTextSource,values:bi},o=function(e,t,r,o){const s=[],c=[];if(I){const i=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showLogo,D)},{id:"showLogo",title:M});c.push(i)}const d=(0,a.createOptionsPropertyDefinition)({checked:(0, -a.convertToDefinitionProperty)(e,t.showSeriesTitle,w),option:(0,a.convertToDefinitionProperty)(e,r.property,m)},{id:"symbolTextSource",title:R,options:new l.WatchedValue(r.values)});if(c.push(d),null!==o){const t=(0,b.combineWithFilteredUpdate)(((t,i)=>"market"===t&&!(0,g.isEconomicSymbol)(e.mainSeries().symbolInfo())),((e,t)=>null!==e),e.mainSeries().marketStatusModel().status().weakReference(),e.mainSeries().symbolResolvingActive().weakReference()),i=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,o,D),visible:(0,a.convertFromReadonlyWVToDefinitionProperty)(t.ownership())},{id:"showOpenMarketStatus",title:j});c.push(i)}const h=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showSeriesOHLC,S)},{id:"ohlcTitle",title:G});if(c.push(h),!y.alwaysShowLastPriceAndLastDayChange){const i=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showBarChange,k),visible:(0,a.makeProxyDefinitionProperty)((0,P.combineProperty)((e=>12!==e&&20!==e),e.mainSeries().properties().childs().style.weakReference()).ownership())},{id:"barChange",title:A});c.push(i)}if(c.push((0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showVolume,O),visible:(0,a.makeProxyDefinitionProperty)((0,P.combineProperty)((e=>20!==e),e.mainSeries().properties().childs().style.weakReference()).ownership())},{id:"barVolume",title:H})),y.lastDayChangeAvailable||y.alwaysShowLastPriceAndLastDayChange){const i=y.alwaysShowLastPriceAndLastDayChange?t.showBarChange:t.showLastDayChange,r=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i,T),visible:(0,a.makeProxyDefinitionProperty)((0,P.combineProperty)((e=>12!==e&&20!==e),e.mainSeries().properties().childs().style.weakReference()).ownership())},{id:"lastDayChange",title:F});c.push(r)}if(U){const i=(0,b.combineWithFilteredUpdate)(((t,i)=>e.model().symbolSources().some((e=>void 0!==e.symbolInfo()?.price_source_id))),((e,t)=>!e),e.model().symbolSourceResolvingActive().weakReference(),(0,P.createWVFromGetterAndSubscription)((()=>e.model().symbolSources().length),e.model().symbolSourceCollectionChanged()).ownership());c.push((0,a.createCheckablePropertyDefinition)({disabled:(0,a.convertFromReadonlyWVToDefinitionProperty)(e.model().symbolSourceResolvingActive().weakReference()),checked:(0,a.convertToDefinitionProperty)(e,t.showPriceSource,x),visible:(0,a.convertFromReadonlyWVToDefinitionProperty)(i.ownership())},{id:"priceSource",title:z}))}s.push((0,a.createPropertyDefinitionsGeneralGroup)(c,"seriesLegendVisibilityGroup",n.t(null,void 0,i(95481))));const u=[],p=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showStudyArguments,_)},{id:"studyArguments",title:E}),v=(0,a.createCheckableSetPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showStudyTitles,C)},{id:"studyTitles",title:Z},[p]),q=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showStudyValues,L) -},{id:"studyValues",title:N}),J=(0,P.createWVFromGetterAndSubscription)((()=>e.model().priceDataSources().some((e=>!(0,f.isActingAsSymbolSource)(e)&&e.showInObjectTree()))),e.model().dataSourceCollectionChanged());u.push(v,q),s.push((0,a.createPropertyDefinitionsGeneralGroup)(u,"studiesLegendVisibilityGroup",n.t(null,void 0,i(84549)),J));const K=[],Q=(0,a.createTransparencyPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showBackground,V),transparency:(0,a.convertToDefinitionProperty)(e,t.backgroundTransparency,W)},{id:"legendBgTransparency",title:B});return K.push(Q),s.push((0,a.createPropertyDefinitionsGeneralGroup)(K,"generalLegendGroup")),{definitions:s}}(this._undoModel,e,t,this._options.marketStatusWidgetEnabled?p.showMarketOpenStatusProperty:null);return(0,s.createPropertyPage)(o,"legend",vi,(0,r.ensureDefined)(ui.legend))}_createScalesPropertyPage(){const e=this._createScalesDefinitions();return(0,s.createPropertyPage)(e,"scales",gi,(0,r.ensureDefined)(ui.scales))}_createScalesDefinitions(){const e=this._chartWidgetProperties.childs().scalesProperties.childs(),t={property:this._model.properties().childs().priceScaleSelectionStrategyName,values:(0,h.allPriceScaleSelectionStrategyInfo)().map((e=>({value:e.name,title:e.title})))};this._model.onWidget()?null===this._availableDateFormatValues&&(this._availableDateFormatValues=new l.WatchedValue(fi()).spawn()):null===this._availableDateFormatValues&&(this._availableDateFormatValues=(0,b.combine)((e=>fi(e)),(0,P.createWVFromProperty)(Xt.withWeekdayProperty).ownership()));const r={property:ti.timeHoursFormatProperty,values:[{value:"24-hours",title:n.t(null,void 0,i(5797))},{value:"12-hours",title:n.t(null,void 0,i(31882))}]},s=this._model.mainSeriesScaleRatioProperty();return function(e,t,i,r){const n=r.seriesPriceScale.properties().childs(),s=[],c=[];if(r.currencyConversionEnabled||r.unitConversionEnabled){const t=r.currencyConversionEnabled&&r.unitConversionEnabled?Ee:r.currencyConversionEnabled?Ae:Ze,i=r.currencyConversionEnabled&&r.unitConversionEnabled?ue:r.currencyConversionEnabled?ce:he,n=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,(0,Q.currencyUnitVisibilityProperty)(),i)},{id:"scalesCurrencyUnit",title:t,options:new l.WatchedValue((0,Q.currencyUnitVisibilityOptions)())});c.push(n)}const d=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,(0,X.autoLogButtonsVisibilityProperty)(),de)},{id:"autoLogButtonsVisibility",title:He,options:new l.WatchedValue((0,X.autoLogButtonsVisibilityOptions)())});c.push(d);const h=(0,a.createNumberPropertyDefinition)({checked:(0,a.getLockPriceScaleDefinitionProperty)(e,n.lockScale,r.seriesPriceScale,ve),value:(0,a.getScaleRatioDefinitionProperty)(e,r.mainSeriesScaleRatioProperty,ge,[(0,J.limitedPrecision)(7),e=>e])},{id:"lockScale",title:je,min:new l.WatchedValue(r.mainSeriesScaleRatioProperty.getMinValue()),max:new l.WatchedValue(r.mainSeriesScaleRatioProperty.getMaxValue()), -step:new l.WatchedValue(r.mainSeriesScaleRatioProperty.getStepChangeValue())}),u=(0,a.createOptionsPropertyDefinition)({option:(0,a.getPriceScaleSelectionStrategyDefinitionProperty)(e,r.scalesPlacementPropertyObj.property)},{id:"scalesPlacement",title:Be,options:new l.WatchedValue(r.scalesPlacementPropertyObj.values)});c.push(h,u),s.push((0,a.createPropertyDefinitionsGeneralGroup)(c,"scalesPriceScaleGroup",ze));const p=[],v=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,n.alignLabels,ae)},{id:"noOverlappingLabels",title:We});if(p.push(v),e.crosshairSource().isMenuEnabled()){const t=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,K.addPlusButtonProperty,pe)},{id:"addPlusButton",title:Ne,solutionId:void 0});p.push(t)}if(r.countdownEnabled){const i=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showCountdown,se)},{id:"countdown",title:Fe});p.push(i)}if(r.seriesHasClosePrice){const r=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.showSymbolLabels,Y)},{id:"symbolNameLabel",title:Ce}),n=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.showSeriesLastValue,$)},{id:"symbolValueLabel",title:Le}),o=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showPriceLine,we)},{id:"symbolLine",title:Ve}),s=(0,a.createLinePropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,t.priceLineColor,null,me),width:(0,a.convertToDefinitionProperty)(e,t.priceLineWidth,De)},{id:"SymbolLastValuePriceLine",title:""}),c=(0,a.createOptionsPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.showSeriesLastValue,$),option:(0,a.convertToDefinitionProperty)(e,i.seriesLastValueMode,ee)},{id:"symbolLastValueLabel",title:Le,options:new l.WatchedValue(Xe)});p.push((0,a.createPropertyDefinitionsCheckableListOptionsGroup)([r,n,o],void 0,[s,c],"symbolCheckableListGroup",xe))}if(Qe){const i=t.highLowAvgPrice.childs(),r=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.averageClosePriceLabelVisible,Se)},{id:"averageClosePriceLabel",title:Le}),n=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.averageClosePriceLineVisible,Te)},{id:"averageCloseLine",title:Ve}),o=(0,a.createLinePropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,i.averagePriceLineColor,null,ke),width:(0,a.convertToDefinitionProperty)(e,i.averagePriceLineWidth,_e)},{id:"averageClosePriceLine",title:""});p.push((0,a.createPropertyDefinitionsCheckableListOptionsGroup)([r,n],void 0,[o],"avgCloseCheckableListGroup",Me))}let g,y;g=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.showStudyPlotLabels,oe)},{id:"studyNameLabel",title:Ce}),y=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.showStudyLastValue,le)},{id:"studyLastValueLabel",title:Le});const b=(0, -P.createWVFromGetterAndSubscription)((()=>e.model().priceDataSources().some((e=>!(0,f.isActingAsSymbolSource)(e)&&e.showInObjectTree()))),e.model().dataSourceCollectionChanged());p.push((0,a.createPropertyDefinitionsCheckableListOptionsGroup)([g,y],void 0,[],"studiesCheckableListGroup",Re,b));const w=t.highLowAvgPrice.childs(),m=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,w.highLowPriceLabelsVisible,te)},{id:"highLowPriceLabels",title:Le}),D=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,w.highLowPriceLinesVisible,ie)},{id:"highLowPriceLine",title:Ve}),S=(0,a.createLinePropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,w.highLowPriceLinesColor,null,re),width:(0,a.convertToDefinitionProperty)(e,w.highLowPriceLinesWidth,ne)},{id:"highLowLineColors",title:""});p.push((0,a.createPropertyDefinitionsCheckableListOptionsGroup)([m,D],void 0,[S],"hiLowCheckableListGroup",Ge)),s.push((0,a.createPropertyDefinitionsGeneralGroup)(p,"scalesLabelsLineGroup",Oe));const T=[];if(r.withWeekdayProperty){const t=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,r.withWeekdayProperty,fe)},{id:"showWeekdayOnTimeScaleLabels",title:Je});T.push(t)}if(o.enabled("scales_date_format")){const t=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,r.dateFormatPropertyObj.property,ye)},{id:"dateFormat",title:Ue,options:r.dateFormatPropertyObj.values});T.push(t)}if(o.enabled("scales_time_hours_format")){const t=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,r.timeHoursFormatPropertyObj.property,Pe)},{id:"timeHoursFormat",title:Ie,options:new l.WatchedValue(r.timeHoursFormatPropertyObj.values)});T.push(t)}{const t=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,r.saveLeftEdgeProperty,be)},{id:"saveLeftChartEdge",title:Ke});T.push(t)}return T.length>0&&s.push((0,a.createPropertyDefinitionsGeneralGroup)(T,"scalesTimeScaleGroup",qe)),{definitions:s}}(this._undoModel,this._series.properties().childs(),e,{disableSeriesPrevCloseValueProperty:this._series.isDWMProperty(),seriesHasClosePrice:this._series.hasClosePrice(),seriesPriceScale:this._series.priceScale(),mainSeriesScaleRatioProperty:s,scalesPlacementPropertyObj:t,dateFormatPropertyObj:{property:$t.dateFormatProperty,values:this._availableDateFormatValues},timeHoursFormatPropertyObj:r,currencyConversionEnabled:this._options.currencyConversionEnabled,unitConversionEnabled:this._options.unitConversionEnabled,countdownEnabled:this._options.countdownEnabled,withWeekdayProperty:this._model.onWidget()?void 0:Xt.withWeekdayProperty,saveLeftEdgeProperty:e.saveLeftEdge})}_createMaxOffsetPropertyObject(){const e=(0,r.ensureNotNull)(this._model.timeScale()),t=new l.WatchedValue(Math.floor(e.maxRightOffset()));e.maxRightOffsetChanged().subscribe(this,(e=>{t.setValue(Math.floor(e))})),this._maxRightOffsetPropertyObject={value:e.defaultRightOffset(),min:new l.WatchedValue(0),max:t}} -_createDefaultRightOffsetPercentageWatchedValue(){const e=(0,r.ensureNotNull)(this._model.timeScale());this._defaultRightOffsetPercentageWatchedValue=e.defaultRightOffsetPercentage()}_createUseRightOffsetPercentageWatchedValue(){const e=(0,r.ensureNotNull)(this._model.timeScale());this._useRightOffsetPercentageWatchedValue=e.usePercentageRightOffset()}async _createAppearancePropertyPage(){const e=this._chartWidgetProperties.childs(),t=e.paneProperties.childs(),i=e.scalesProperties.childs(),n=this._model.watermarkSource();let o=null;null!==n&&(o=n.properties().childs());const l={property:c.property(),values:c.availableValues()},a={property:d.property(),values:d.availableValues()};null===this._maxRightOffsetPropertyObject&&this._createMaxOffsetPropertyObject(),null===this._defaultRightOffsetPercentageWatchedValue&&this._createDefaultRightOffsetPercentageWatchedValue(),null===this._useRightOffsetPercentageWatchedValue&&this._createUseRightOffsetPercentageWatchedValue();const h=(0,r.ensureNotNull)(this._maxRightOffsetPropertyObject),u=(0,r.ensureNotNull)(this._defaultRightOffsetPercentageWatchedValue),p=(0,r.ensureNotNull)(this._useRightOffsetPercentageWatchedValue),v=await Qt(this._undoModel,t,o,i,h,l,a,u,p,this._gridColorsVisibilities);return(0,s.createPropertyPage)(v,"canvas",yi,(0,r.ensureDefined)(ui.canvas))}_createTradingPropertyPage(){return null}async _createEventsPropertyPage(){return null}_createAlertsPropertyPage(){return null}}},8021:e=>{e.exports=''},97660:e=>{e.exports=''},75709:e=>{e.exports=''},60339:e=>{e.exports=''},20037:e=>{ -e.exports=''},53078:e=>{e.exports=''},7621:e=>{e.exports=''},84806:e=>{e.exports=''},82038:e=>{e.exports=''},87717:e=>{ -e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/he_IL.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/he_IL.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index 21c791a9..00000000 --- a/charting_library/bundles/he_IL.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,7 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:e=>{e.exports={en:["bars"],he_IL:["ברים"]}},31882:e=>{e.exports={en:["12-hours"],he_IL:["12 שעות"]}},5797:e=>{e.exports={en:["24-hours"],he_IL:["24 שעות"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],he_IL:["צבע הנר על בסיס הסגירה הקודמת"]}},23739:e=>{e.exports={en:["Canvas"],he_IL:["קנבס"]}},24197:e=>{e.exports={en:["Center"],he_IL:["מרכז"]}},15153:e=>{e.exports={en:["Chart basic styles"],he_IL:["גרף סגנונות בסיסי"]}},45639:e=>{e.exports={en:["Chart values"],he_IL:["ערכי גרף"]}},84831:e=>{e.exports={en:["Close line"],he_IL:["קו סגירה"]}},74622:e=>{e.exports={en:["Crosshair"],he_IL:["צלב"]}},81849:e=>{e.exports={en:["Currency"],he_IL:["מַטְבֵּעַ"]}},3015:e=>{e.exports={en:["Currency and Unit"],he_IL:["מטבע ויחידה"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],he_IL:["התאם נתונים לדיבידנדים"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],he_IL:["התאם לשינויים בחוזה"]}},36620:e=>{e.exports={en:["Alerts"],he_IL:["התראות"]}},68650:e=>{e.exports={en:["Average close"],he_IL:["ממוצע סגירה"]}},27567:e=>{e.exports={en:["Bottom"],he_IL:["תחתית"]}},3159:e=>{e.exports={en:["Bottom line"],he_IL:["קו תחתון"]}},74406:e=>{e.exports={en:["Body"],he_IL:["גוף"]}},333:e=>{e.exports={en:["Borders"],he_IL:["גבולות"]}},79468:e=>{e.exports={en:["Background"],he_IL:["רקע"]}},10842:e=>{e.exports={en:["Bar change values"],he_IL:["ערכי שינוי הנר"]}},28975:e=>{e.exports={en:["Base level"],he_IL:["רמת בסיס"]}},76473:e=>{e.exports={en:["Bid and ask"],he_IL:["ביקוש והיצע"]}},32744:e=>{e.exports={en:["Buttons"],he_IL:["כפתורים"]}},68662:e=>{e.exports={en:["Grid lines"],he_IL:["קווי רשת"]}},17611:e=>{e.exports={en:["Down bars"],he_IL:["נרות ירידה"]}},23743:e=>{e.exports={en:["Down color"],he_IL:["צבע תחתון"]}},48225:e=>{e.exports={en:["Data modification"],he_IL:["התאמת נתונים"]}},84838:e=>{e.exports={en:["Date format"],he_IL:["פורמט תאריך"]}},42357:e=>{e.exports={en:["Day of week on labels"],he_IL:["יום בשבוע על תוויות"]}},16564:e=>{e.exports={en:["Default"],he_IL:["ברירת מחדל"]}},78734:e=>{e.exports={en:["Description"],he_IL:["תיאור"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],he_IL:["הצג גאפים של חוסר פעילות"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],he_IL:["רקע שעות מסחר אלקטרוני"]}},69808:e=>{e.exports={en:["Events"],he_IL:["אירועים"]}},41129:e=>{e.exports={en:["Fill"],he_IL:["למלא"]}},61112:e=>{e.exports={en:["Fill top area"],he_IL:["מלא שטח עליון"]}},73185:e=>{e.exports={en:["Fill bottom area"],he_IL:["מלא שטח תחתון"]}},3160:e=>{e.exports={en:["Horizontal"],he_IL:["אופקי"]}},61900:e=>{e.exports={en:["Horz only"],he_IL:["רק אופקי"]}},14180:e=>{e.exports={en:["High and low"],he_IL:["גבוה ונמוך"]}},56359:e=>{e.exports={en:["High line"],he_IL:["קו גבוה"]}},47326:e=>{e.exports={en:["Integer"],he_IL:["מספר שלם"]}},17854:e=>{e.exports={en:["Interval"],he_IL:["אינטרוול"]}},84549:e=>{e.exports={en:["Indicators"],he_IL:["אינדיקטורים"]}},78082:e=>{e.exports={en:["Indicators and financials"], -he_IL:["אינדיקטורים ופיננסיים"]}},21429:e=>{e.exports={en:["Inputs"],he_IL:["תשומות"]}},25765:e=>{e.exports={en:["Open market status"],he_IL:["מצב שוק פתוח"]}},34579:e=>{e.exports={en:["Low line"],he_IL:["קו נמוך"]}},14876:e=>{e.exports={en:["Logo"],he_IL:["לוגו"]}},89315:e=>{e.exports={en:["Long Description"],he_IL:["תיאור ארוך"]}},72423:e=>{e.exports={en:["Last day change values"],he_IL:["ערכי שינוי היום האחרון"]}},11626:e=>{e.exports={en:["Left"],he_IL:["שמאל"]}},56982:e=>{e.exports={en:["Lines"],he_IL:["קווים"]}},8249:e=>{e.exports={en:["Money"],he_IL:["כסף"]}},70937:e=>{e.exports={en:["Margins"],he_IL:["מינוף"]}},68833:e=>{e.exports={en:["Middle"],he_IL:["אמצע"]}},58589:e=>{e.exports={en:["No overlapping labels"],he_IL:["ללא תוויות חופפות"]}},60798:e=>{e.exports={en:["None"],he_IL:["אף אחד"]}},51019:e=>{e.exports={en:["Navigation"],he_IL:["ניווט"]}},99709:e=>{e.exports={en:["Name"],he_IL:["שם"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],he_IL:["שמור מיקום הקצה השמאלי של הגרף בעת שינוי אינטרוול"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],he_IL:["מצבי סולם (A ו-L)"]}},93968:e=>{e.exports={en:["Scales"],he_IL:["סולם מחיר"]}},90275:e=>{e.exports={en:["Scales and lines"],he_IL:["סולמות וקווים"]}},30042:e=>{e.exports={en:["Scales placement"],he_IL:["מיקום סולם"]}},28715:e=>{e.exports={en:["Status line"],he_IL:["שורת סטטוס"]}},95481:e=>{e.exports={en:["Symbol"],he_IL:["סימול"]}},53263:e=>{e.exports={en:["Pane"],he_IL:["פאנל"]}},82894:e=>{e.exports={en:["Pane separators"],he_IL:["מפרידי חלוניות"]}},86235:e=>{e.exports={en:["Percentage"],he_IL:["אחוז"]}},94408:e=>{e.exports={en:["Pips"],he_IL:["פיפס"]}},60904:e=>{e.exports={en:["Pre/post market"],he_IL:["פרה/פוסט מרקט"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],he_IL:["רקע שעות טרום/מסחר מאוחר"]}},59766:e=>{e.exports={en:["Precision"],he_IL:["דיוק"]}},83811:e=>{e.exports={en:["Previous day close"],he_IL:["הסגירה של היום הקודם"]}},35082:e=>{e.exports={en:["Price Scale"],he_IL:["סולם מחירים"]}},27632:e=>{e.exports={en:["Price and percentage value"],he_IL:["מחיר אחרון וערך האחוז"]}},62142:e=>{e.exports={en:["Price labels & lines"],he_IL:["תוויות מחירים וקווים"]}},84684:e=>{e.exports={en:["Price source"],he_IL:["מקור המחיר"]}},73466:e=>{e.exports={en:["Projection up bars"],he_IL:["הטלת עמודות עולות"]}},77430:e=>{e.exports={en:["Projection candles"],he_IL:["נרות הקרנה"]}},88367:e=>{e.exports={en:["Projection down bars"],he_IL:["הטלת עמודות יורדות"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],he_IL:["מחירים אמיתיים בסולם המחיר (במקום מחיר הייקין-אשי)"]}},50421:e=>{e.exports={en:["Right"],he_IL:["ימין"]}},62532:e=>{e.exports={en:["Right Margin"],he_IL:["שוליים ימניים"]}},41571:e=>{e.exports={en:["Watermark"],he_IL:["סימן מים"]}},32163:e=>{e.exports={en:["Wick"],he_IL:["פתיל"]}},97118:e=>{e.exports={en:["Top"],he_IL:["עליון"]}},89349:e=>{e.exports={en:["Top line"],he_IL:["קו עליון"]}},70320:e=>{e.exports={en:["Text"],he_IL:["טקסט"]}},25485:e=>{e.exports={ -en:["Text alignment"],he_IL:["יישור טקסט"]}},67781:e=>{e.exports={en:["Text orientation"],he_IL:["כיוון טקסט"]}},20215:e=>{e.exports={en:["Thin bars"],he_IL:["נרות דקים"]}},70198:e=>{e.exports={en:["Title"],he_IL:["כותרת"]}},29854:e=>{e.exports={en:["Titles"],he_IL:["כותרות"]}},5791:e=>{e.exports={en:["Ticker"],he_IL:["טיקר"]}},16816:e=>{e.exports={en:["Ticker and description"],he_IL:["טיקר ותיאור"]}},24821:e=>{e.exports={en:["Ticks"],he_IL:["טיקים"]}},93965:e=>{e.exports={en:["Time Scale"],he_IL:["סולם זמן"]}},5591:e=>{e.exports={en:["Time hours format"],he_IL:["זמן שעות פורמט"]}},77073:e=>{e.exports={en:["Timezone"],he_IL:["אזור זמן"]}},76495:e=>{e.exports={en:["Trading"],he_IL:["מסחר"]}},33564:e=>{e.exports={en:["Unit"],he_IL:["יחידה"]}},23091:e=>{e.exports={en:["Up color"],he_IL:["צבע עליון"]}},36957:e=>{e.exports={en:["Up bars"],he_IL:["נרות עליה"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],he_IL:["השתמש בסליקה כסגירה באינטרוול יומי"]}},37644:e=>{e.exports={en:["Volume"],he_IL:["ווליום/נפח מסחר"]}},51514:e=>{e.exports={en:["Value"],he_IL:["ערך"]}},31218:e=>{e.exports={en:["Value according to scale"],he_IL:["ערך אחרון לפי סולם"]}},60092:e=>{e.exports={en:["Values"],he_IL:["ערכים"]}},83594:e=>{e.exports={en:["Vert and horz"],he_IL:["אנכי ואופקי"]}},8402:e=>{e.exports={en:["Vert only"],he_IL:["רק אנכי"]}},69526:e=>{e.exports={en:["Vertical"],he_IL:["אנכי"]}},21105:e=>{e.exports={en:["candle"],he_IL:["נר"]}},27068:e=>{e.exports={en:["change HLC bars"],he_IL:["שנה ברי HLC"]}},21201:e=>{e.exports={en:["change HLC bars color"],he_IL:["שנה את צבע ברי HLC"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],he_IL:["שנה נראות של לחצני הניווט"]}},96227:e=>{e.exports={en:["change open market status visibility"],he_IL:["שנה את נראות מצב השוק הפתוח"]}},43231:e=>{e.exports={en:["change average close price line width"],he_IL:["שנה את רוחב קו מחיר סגור ממוצע"]}},47026:e=>{e.exports={en:["change average close price line color"],he_IL:["שנה את צבע קו המחיר הממוצע"]}},29281:e=>{e.exports={en:["change area fill color"],he_IL:["שנה את צבע מילוי השטח"]}},27059:e=>{e.exports={en:["change area line visibility"],he_IL:["לשנות את נראות קו השטח"]}},89346:e=>{e.exports={en:["change area line width"],he_IL:["שנה את רוחב קו השטח"]}},29605:e=>{e.exports={en:["change area line color"],he_IL:["שנה את צבע קו השטח"]}},56864:e=>{e.exports={en:["change area line style"],he_IL:["שינוי סגנון קו השטח"]}},4640:e=>{e.exports={en:["change area price source"],he_IL:["שנה מקור אזור מחיר"]}},98407:e=>{e.exports={en:["change ask line color"],he_IL:["שנה את צבע שורת הביקוש ask"]}},42190:e=>{e.exports={en:["change base level"],he_IL:["שנה את רמת הבסיס"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],he_IL:["שנה את צבע השורה התחתונה של קו הבסיס"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],he_IL:["שנה את סגנון הקו העליון של קו הבסיס"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],he_IL:["שנה את רוחב השורה התחתונה של קו הבסיס"]}},97216:e=>{e.exports={ -en:["change baseline fill bottom area color"],he_IL:["שנה את צבע השטח התחתון של מילוי קו הבסיס"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],he_IL:["שנה את צבע האזור העליון של מילוי קו הבסיס"]}},68609:e=>{e.exports={en:["change baseline price source"],he_IL:["שנה את מקור המחיר הבסיסי"]}},69044:e=>{e.exports={en:["change baseline top line color"],he_IL:["שנה את צבע הקו העליון של קו הבסיס"]}},4425:e=>{e.exports={en:["change baseline top line style"],he_IL:["שנה את סגנון הקו העליון של קו הבסיס"]}},68197:e=>{e.exports={en:["change baseline top line width"],he_IL:["שנה את רוחב הקו העליון של קו הבסיס"]}},33464:e=>{e.exports={en:["change bar up color"],he_IL:["שנה את צבע הבר למעלה"]}},27426:e=>{e.exports={en:["change bar change visibility"],he_IL:["שנה נראות של בר שינוי"]}},59622:e=>{e.exports={en:["change bar down color"],he_IL:["שנה את צבע הבר למטה"]}},17919:e=>{e.exports={en:["change bid line color"],he_IL:["שנה את צבע שורת ההיצע bid"]}},32094:e=>{e.exports={en:["change bottom margin"],he_IL:["שנה שוליים תחתוניים"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],he_IL:["שנה את נראות תוויות המטבע והיחידה"]}},64003:e=>{e.exports={en:["change currency label visibility"],he_IL:["שנה את נראות תווית המטבע"]}},42803:e=>{e.exports={en:["change chart background color"],he_IL:["שנה את צבע הרקע של הגרף"]}},41382:e=>{e.exports={en:["change chart background type"],he_IL:["שנה את סוג הרקע של הגרף"]}},79637:e=>{e.exports={en:["change chart values visibility"],he_IL:["שינוי נראות ערכי הגרף"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],he_IL:["שנה ברי צבע בהתבסס על סגירה קודמת"]}},88324:e=>{e.exports={en:["change column up color"],he_IL:["שנה את צבע העמודה למעלה"]}},93890:e=>{e.exports={en:["change column down color"],he_IL:["שנה את צבע העמודה למטה"]}},4727:e=>{e.exports={en:["change column price source"],he_IL:["שנה מקור מחיר העמודה"]}},50544:e=>{e.exports={en:["change crosshair width"],he_IL:["שנה רוחב צלב"]}},92885:e=>{e.exports={en:["change crosshair color"],he_IL:["שנה את צבע הצלב"]}},68418:e=>{e.exports={en:["change crosshair style"],he_IL:["שנה סגנון צלב"]}},43109:e=>{e.exports={en:["change date format"],he_IL:["שנה פורמט תאריך"]}},30418:e=>{e.exports={en:["change day of week on labels"],he_IL:["שנה את יום השבוע על התוויות"]}},82063:e=>{e.exports={en:["change decimal places"],he_IL:["שנה מקומות עשרוניים"]}},45397:e=>{e.exports={en:["change extended hours color"],he_IL:["שנה את צבע השעות המורחבות"]}},47393:e=>{e.exports={en:["change electronic trading hours"],he_IL:["שינוי שעות המסחר האלקטרוניות"]}},73844:e=>{e.exports={en:["change grid lines visibility"],he_IL:["שינוי נראות קווי הרשת"]}},61407:e=>{e.exports={en:["change high and low price line color"],he_IL:["לשנות את צבע קווי המחיר הגבוה והנמוך"]}},39581:e=>{e.exports={en:["change high and low price line width"],he_IL:["לשנות את רוחב קווי המחיר הגבוה והנמוך"]}},6026:e=>{e.exports={en:["change high-low body color"],he_IL:["שנה צבע גבוה-נמוך של הגוף"]}},73021:e=>{e.exports={ -en:["change high-low body visibility"],he_IL:["שנה נראות גבוה-נמוך של הגוף"]}},46844:e=>{e.exports={en:["change high-low border color"],he_IL:["שנה צבע גבול גבוה-נמוך של הגוף"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],he_IL:["שנה נראות גבול גבוה-נמוך של הגוף"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],he_IL:["שנה נראות התוויות גבוה-נמוך"]}},56961:e=>{e.exports={en:["change high-low labels color"],he_IL:["שנה צבע התוויות גבוה-נמוך"]}},21133:e=>{e.exports={en:["change horz grid lines color"],he_IL:["שנה את צבע קווי הרשת האופקיים"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],he_IL:["שנה את נראות של כותרות אינדיקטור"]}},49583:e=>{e.exports={en:["change indicator values visibility"],he_IL:["שינוי נראות ערכי אינדיקטור"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],he_IL:["שינוי נראות כניסות אינדיקטור"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],he_IL:["שנה נראות של שם תוויות אינדיקטורים ופיננסיות"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],he_IL:["שנה נראות של אינדיקטורים ותוויות ערך פיננסיות"]}},451:e=>{e.exports={en:["change interval watermark visibility"],he_IL:["שינוי אינטרוול זמן של נראות סימן המים"]}},66307:e=>{e.exports={en:["change last day change visibility"],he_IL:["שנה את הנראות של השינוי ביום האחרון"]}},91873:e=>{e.exports={en:["change legend background transparency"],he_IL:["שנה את שקיפות הרקע של מקרא"]}},14246:e=>{e.exports={en:["change legend background visibility"],he_IL:["שנה נראות הרקע של מקרא"]}},88640:e=>{e.exports={en:["change line color"],he_IL:["שנה צבע קו"]}},28818:e=>{e.exports={en:["change line style"],he_IL:["שנה את סגנון הקו"]}},41837:e=>{e.exports={en:["change line price source"],he_IL:["שנה מקור מחיר קו"]}},48339:e=>{e.exports={en:["change line width"],he_IL:["שנה רוחב קו"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],he_IL:["שנה נראות לחצני החלונית"]}},52203:e=>{e.exports={en:["change pane separators color"],he_IL:["שנה את צבע מפריד החלונות"]}},38730:e=>{e.exports={en:["change post market color"],he_IL:["שנה צבע מסחר מאוחר"]}},28075:e=>{e.exports={en:["change post market line color"],he_IL:["שנה צבע קו מסחר מאוחר"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],he_IL:["שנה נראות של קווי המחירים פרה/פוסט מארקט"]}},44371:e=>{e.exports={en:["change pre market color"],he_IL:["שנה צבע טרום מסחר"]}},96114:e=>{e.exports={en:["change pre market line color"],he_IL:["שנה צבע קו טרום מסחר"]}},69814:e=>{e.exports={en:["change previous close price line color"],he_IL:["שנה את צבע קו המחיר סגירה הקודם"]}},13660:e=>{e.exports={en:["change previous close price line width"],he_IL:["שנה את רוחב קו סגירת המחיר הקודם"]}},87861:e=>{e.exports={en:["change price line color"],he_IL:["לשנות את צבע קו המחיר"]}},29353:e=>{e.exports={en:["change price line width"],he_IL:["שנה את רוחב קו המחיר"]}},16241:e=>{e.exports={en:["change range bars style"],he_IL:["שנה את סגנון ברי הטווח"]}},65821:e=>{e.exports={ -en:["change range thin bars"],he_IL:["שנה ברים דקים בטווח"]}},75487:e=>{e.exports={en:["change renko wick down color"],he_IL:["שנה צבע renko wick down"]}},92277:e=>{e.exports={en:["change renko wick up color"],he_IL:["שנה צבע wick up renko"]}},79604:e=>{e.exports={en:["change renko wick visibility"],he_IL:["שנה נראות של פתיל renko"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],he_IL:["שינוי נראות סימן המים של ההפעלה החוזרת"]}},82946:e=>{e.exports={en:["change right margin"],he_IL:["שנה שוליים ימניים"]}},79545:e=>{e.exports={en:["change right margin percentage"],he_IL:["שנה את אחוז השוליים הימניים"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],he_IL:["שנה נראות סימן מים של סימול הטיקר"]}},78995:e=>{e.exports={en:["change symbol watermark color"],he_IL:["שנה צבע סימן מים של הסימול"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],he_IL:["שנה נראות סימן מים של הסימול"]}},88167:e=>{e.exports={en:["change symbol description visibility"],he_IL:["שנה את נראות תיאור הסימול"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],he_IL:["שנה נראות סימן מים של תיאור הסימול"]}},12050:e=>{e.exports={en:["change symbol field visibility"],he_IL:["שינוי נראות שדה הסימול"]}},46066:e=>{e.exports={en:["change symbol last value mode"],he_IL:["שינוי מצב ערך אחרון של סימול"]}},902:e=>{e.exports={en:["change symbol legend format"],he_IL:["שנה פורמט מקרא סימולים"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],he_IL:["שנה שמירת מיקום הקצה השמאלי של הגרף בעת שינוי אינטרוול"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],he_IL:["שנה את נראות לחצני קנה המידה"]}},76131:e=>{e.exports={en:["change scales text color"],he_IL:["שנה צבע טקסט של סולמות"]}},27792:e=>{e.exports={en:["change scales font size"],he_IL:["שנה גודל גופן בסולם"]}},94997:e=>{e.exports={en:["change scales lines color"],he_IL:["שנה צבע קווים של סולמות"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],he_IL:["שנה נראות של הפסקות סשנים"]}},28175:e=>{e.exports={en:["change sessions breaks width"],he_IL:["שנה רוחב קווי הפרדה של סשנים sessions breaks"]}},33895:e=>{e.exports={en:["change sessions breaks color"],he_IL:["שנה צבע קווי הפרדה של סשנים sessions breaks"]}},21641:e=>{e.exports={en:["change sessions breaks style"],he_IL:["שנה סגנון הפסקות סשן sessions breaks"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],he_IL:["שנה הצגת המחירים האמיתיים בסולם המחירים (במקום מחיר הייקן-אשי)"]}},60834:e=>{e.exports={en:["change thin bars"],he_IL:["שנה ברים דקים"]}},39754:e=>{e.exports={en:["change time hours format"],he_IL:["שינוי זמן שעות פורמט"]}},74883:e=>{e.exports={en:["change top margin"],he_IL:["שנה שוליים עליוניים"]}},51250:e=>{e.exports={en:["change unit label visibility"],he_IL:["שנה את נראות תווית היחידה"]}},71805:e=>{e.exports={en:["change vert grid lines color"],he_IL:["שנה את צבע קווי הרשת האנכיים"]}},96201:e=>{e.exports={ -en:["change volume values visibility"],he_IL:["שינוי נראות ערכי ווליום"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],he_IL:["שנה את צבע הגבול העליון של {candleType}"]}},36697:e=>{e.exports={en:["change {candleType} up color"],he_IL:["שנה צבע של {candleType}"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],he_IL:["שנה את הצבע של {candleType} wick למטה"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],he_IL:["שנה את הצבע שלwick up {candleType}"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],he_IL:["שנה את נראות הפתיל {candleType}"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],he_IL:["שנה נראות הגוף של {candleType}"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],he_IL:["שנה את נראות הגבול של {candleType}"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],he_IL:["שנה את צבע הגבול התחתון של {candleType}"]}},64571:e=>{e.exports={en:["change {candleType} down color"],he_IL:["שנה את הצבע התחתון של {candleType}"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],he_IL:["שנה את צבע בר הגבול של {chartType} התחתון"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],he_IL:["שנה את צבע בר הגבול {chartType} העליון"]}},5012:e=>{e.exports={en:["change {chartType} down color"],he_IL:["שנה את הצבע התחתון של {chartType}"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],he_IL:["שנה את צבע בר הגבול להקרנה {chartType} העליון"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],he_IL:["שנה את הצבע של בר ההקרנה {chartType} התחתון"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],he_IL:["שנה את צבע בר ההקרנה {chartType} העליון"]}},6970:e=>{e.exports={en:["change {chartType} up color"],he_IL:["שנה את הצבע העליון של {chartType}"]}},66110:e=>{e.exports={en:["change {inputName} property"],he_IL:["שנה מאפיין {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],he_IL:["להתאים נתונים לדיבידנדים"]}},1433:e=>{e.exports={en:["adjust for contract changes"],he_IL:["התאם לשינויים בחוזה"]}},92598:e=>{e.exports={en:["hollow candles"],he_IL:["נרות חלולים"]}},57243:e=>{e.exports={en:["range","ranges"],he_IL:["טווח","טווחים","טווחים","טווחים"]}},70282:e=>{e.exports={en:["renko"],he_IL:["גרף ראנקו"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],he_IL:["החלף פערים של חוסר פעילות"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],he_IL:["השתמש בסליקה כסגירה באינטרוול יומי"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],he_IL:["{value} עשרוני","{value} עשרונים","{value} עשרונים","{value} עשרונים"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/he_IL.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/he_IL.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..4e53b04c --- /dev/null +++ b/charting_library/bundles/he_IL.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,7 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:e=>{e.exports={en:["bars"],he_IL:["ברים"]}},31882:e=>{e.exports={en:["12-hours"],he_IL:["12 שעות"]}},5797:e=>{e.exports={en:["24-hours"],he_IL:["24 שעות"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],he_IL:["צבע הנר על בסיס הסגירה הקודמת"]}},23739:e=>{e.exports={en:["Canvas"],he_IL:["קנבס"]}},24197:e=>{e.exports={en:["Center"],he_IL:["מרכז"]}},15153:e=>{e.exports={en:["Chart basic styles"],he_IL:["גרף סגנונות בסיסי"]}},45639:e=>{e.exports={en:["Chart values"],he_IL:["ערכי גרף"]}},84831:e=>{e.exports={en:["Close line"],he_IL:["קו סגירה"]}},74622:e=>{e.exports={en:["Crosshair"],he_IL:["צלב"]}},81849:e=>{e.exports={en:["Currency"],he_IL:["מַטְבֵּעַ"]}},3015:e=>{e.exports={en:["Currency and Unit"],he_IL:["מטבע ויחידה"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],he_IL:["התאם נתונים לדיבידנדים"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],he_IL:["התאם לשינויים בחוזה"]}},36620:e=>{e.exports={en:["Alerts"],he_IL:["התראות"]}},68650:e=>{e.exports={en:["Average close"],he_IL:["ממוצע סגירה"]}},27567:e=>{e.exports={en:["Bottom"],he_IL:["תחתית"]}},3159:e=>{e.exports={en:["Bottom line"],he_IL:["קו תחתון"]}},74406:e=>{e.exports={en:["Body"],he_IL:["גוף"]}},333:e=>{e.exports={en:["Borders"],he_IL:["גבולות"]}},79468:e=>{e.exports={en:["Background"],he_IL:["רקע"]}},10842:e=>{e.exports={en:["Bar change values"],he_IL:["ערכי שינוי הנר"]}},70817:e=>{e.exports={en:["Bar change color based on value"]}},28975:e=>{e.exports={en:["Base level"],he_IL:["רמת בסיס"]}},76473:e=>{e.exports={en:["Bid and ask"],he_IL:["ביקוש והיצע"]}},32744:e=>{e.exports={en:["Buttons"],he_IL:["כפתורים"]}},68662:e=>{e.exports={en:["Grid lines"],he_IL:["קווי רשת"]}},17611:e=>{e.exports={en:["Down bars"],he_IL:["נרות ירידה"]}},23743:e=>{e.exports={en:["Down color"],he_IL:["צבע תחתון"]}},48225:e=>{e.exports={en:["Data modification"],he_IL:["התאמת נתונים"]}},84838:e=>{e.exports={en:["Date format"],he_IL:["פורמט תאריך"]}},42357:e=>{e.exports={en:["Day of week on labels"],he_IL:["יום בשבוע על תוויות"]}},16564:e=>{e.exports={en:["Default"],he_IL:["ברירת מחדל"]}},78734:e=>{e.exports={en:["Description"],he_IL:["תיאור"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],he_IL:["הצג גאפים של חוסר פעילות"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],he_IL:["רקע שעות מסחר אלקטרוני"]}},69808:e=>{e.exports={en:["Events"],he_IL:["אירועים"]}},41129:e=>{e.exports={en:["Fill"],he_IL:["למלא"]}},61112:e=>{e.exports={en:["Fill top area"],he_IL:["מלא שטח עליון"]}},73185:e=>{e.exports={en:["Fill bottom area"],he_IL:["מלא שטח תחתון"]}},3160:e=>{e.exports={en:["Horizontal"],he_IL:["אופקי"]}},61900:e=>{e.exports={en:["Horz only"],he_IL:["רק אופקי"]}},14180:e=>{e.exports={en:["High and low"],he_IL:["גבוה ונמוך"]}},56359:e=>{e.exports={en:["High line"],he_IL:["קו גבוה"]}},47326:e=>{e.exports={en:["Integer"],he_IL:["מספר שלם"]}},17854:e=>{e.exports={en:["Interval"],he_IL:["אינטרוול"]}},84549:e=>{e.exports={en:["Indicators"], +he_IL:["אינדיקטורים"]}},78082:e=>{e.exports={en:["Indicators and financials"],he_IL:["אינדיקטורים ופיננסיים"]}},21429:e=>{e.exports={en:["Inputs"],he_IL:["תשומות"]}},25765:e=>{e.exports={en:["Open market status"],he_IL:["מצב שוק פתוח"]}},34579:e=>{e.exports={en:["Low line"],he_IL:["קו נמוך"]}},14876:e=>{e.exports={en:["Logo"],he_IL:["לוגו"]}},89315:e=>{e.exports={en:["Long Description"],he_IL:["תיאור ארוך"]}},72423:e=>{e.exports={en:["Last day change values"],he_IL:["ערכי שינוי היום האחרון"]}},11626:e=>{e.exports={en:["Left"],he_IL:["שמאל"]}},56982:e=>{e.exports={en:["Lines"],he_IL:["קווים"]}},8249:e=>{e.exports={en:["Money"],he_IL:["כסף"]}},70937:e=>{e.exports={en:["Margins"],he_IL:["מינוף"]}},68833:e=>{e.exports={en:["Middle"],he_IL:["אמצע"]}},58589:e=>{e.exports={en:["No overlapping labels"],he_IL:["ללא תוויות חופפות"]}},60798:e=>{e.exports={en:["None"],he_IL:["אף אחד"]}},51019:e=>{e.exports={en:["Navigation"],he_IL:["ניווט"]}},99709:e=>{e.exports={en:["Name"],he_IL:["שם"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],he_IL:["שמור מיקום הקצה השמאלי של הגרף בעת שינוי אינטרוול"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],he_IL:["מצבי סולם (A ו-L)"]}},93968:e=>{e.exports={en:["Scales"],he_IL:["סולם מחיר"]}},90275:e=>{e.exports={en:["Scales and lines"],he_IL:["סולמות וקווים"]}},30042:e=>{e.exports={en:["Scales placement"],he_IL:["מיקום סולם"]}},28715:e=>{e.exports={en:["Status line"],he_IL:["שורת סטטוס"]}},95481:e=>{e.exports={en:["Symbol"],he_IL:["סימול"]}},53263:e=>{e.exports={en:["Pane"],he_IL:["פאנל"]}},82894:e=>{e.exports={en:["Pane separators"],he_IL:["מפרידי חלוניות"]}},86235:e=>{e.exports={en:["Percentage"],he_IL:["אחוז"]}},94408:e=>{e.exports={en:["Pips"],he_IL:["פיפס"]}},60904:e=>{e.exports={en:["Pre/post market"],he_IL:["פרה/פוסט מרקט"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],he_IL:["רקע שעות טרום/מסחר מאוחר"]}},59766:e=>{e.exports={en:["Precision"],he_IL:["דיוק"]}},83811:e=>{e.exports={en:["Previous day close"],he_IL:["הסגירה של היום הקודם"]}},35082:e=>{e.exports={en:["Price Scale"],he_IL:["סולם מחירים"]}},27632:e=>{e.exports={en:["Price and percentage value"],he_IL:["מחיר אחרון וערך האחוז"]}},62142:e=>{e.exports={en:["Price labels & lines"],he_IL:["תוויות מחירים וקווים"]}},84684:e=>{e.exports={en:["Price source"],he_IL:["מקור המחיר"]}},73466:e=>{e.exports={en:["Projection up bars"],he_IL:["הטלת עמודות עולות"]}},77430:e=>{e.exports={en:["Projection candles"],he_IL:["נרות הקרנה"]}},88367:e=>{e.exports={en:["Projection down bars"],he_IL:["הטלת עמודות יורדות"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],he_IL:["מחירים אמיתיים בסולם המחיר (במקום מחיר הייקין-אשי)"]}},50421:e=>{e.exports={en:["Right"],he_IL:["ימין"]}},62532:e=>{e.exports={en:["Right Margin"],he_IL:["שוליים ימניים"]}},41571:e=>{e.exports={en:["Watermark"],he_IL:["סימן מים"]}},32163:e=>{e.exports={en:["Wick"],he_IL:["פתיל"]}},97118:e=>{e.exports={en:["Top"],he_IL:["עליון"]}},89349:e=>{e.exports={en:["Top line"],he_IL:["קו עליון"]}}, +70320:e=>{e.exports={en:["Text"],he_IL:["טקסט"]}},25485:e=>{e.exports={en:["Text alignment"],he_IL:["יישור טקסט"]}},67781:e=>{e.exports={en:["Text orientation"],he_IL:["כיוון טקסט"]}},20215:e=>{e.exports={en:["Thin bars"],he_IL:["נרות דקים"]}},70198:e=>{e.exports={en:["Title"],he_IL:["כותרת"]}},29854:e=>{e.exports={en:["Titles"],he_IL:["כותרות"]}},5791:e=>{e.exports={en:["Ticker"],he_IL:["טיקר"]}},16816:e=>{e.exports={en:["Ticker and description"],he_IL:["טיקר ותיאור"]}},24821:e=>{e.exports={en:["Ticks"],he_IL:["טיקים"]}},93965:e=>{e.exports={en:["Time Scale"],he_IL:["סולם זמן"]}},5591:e=>{e.exports={en:["Time hours format"],he_IL:["זמן שעות פורמט"]}},77073:e=>{e.exports={en:["Timezone"],he_IL:["אזור זמן"]}},76495:e=>{e.exports={en:["Trading"],he_IL:["מסחר"]}},33564:e=>{e.exports={en:["Unit"],he_IL:["יחידה"]}},23091:e=>{e.exports={en:["Up color"],he_IL:["צבע עליון"]}},36957:e=>{e.exports={en:["Up bars"],he_IL:["נרות עליה"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],he_IL:["השתמש בסליקה כסגירה באינטרוול יומי"]}},37644:e=>{e.exports={en:["Volume"],he_IL:["ווליום/נפח מסחר"]}},51514:e=>{e.exports={en:["Value"],he_IL:["ערך"]}},31218:e=>{e.exports={en:["Value according to scale"],he_IL:["ערך אחרון לפי סולם"]}},60092:e=>{e.exports={en:["Values"],he_IL:["ערכים"]}},83594:e=>{e.exports={en:["Vert and horz"],he_IL:["אנכי ואופקי"]}},8402:e=>{e.exports={en:["Vert only"],he_IL:["רק אנכי"]}},69526:e=>{e.exports={en:["Vertical"],he_IL:["אנכי"]}},21105:e=>{e.exports={en:["candle"],he_IL:["נר"]}},27068:e=>{e.exports={en:["change HLC bars"],he_IL:["שנה ברי HLC"]}},21201:e=>{e.exports={en:["change HLC bars color"],he_IL:["שנה את צבע ברי HLC"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],he_IL:["שנה נראות של לחצני הניווט"]}},96227:e=>{e.exports={en:["change open market status visibility"],he_IL:["שנה את נראות מצב השוק הפתוח"]}},43231:e=>{e.exports={en:["change average close price line width"],he_IL:["שנה את רוחב קו מחיר סגור ממוצע"]}},47026:e=>{e.exports={en:["change average close price line color"],he_IL:["שנה את צבע קו המחיר הממוצע"]}},29281:e=>{e.exports={en:["change area fill color"],he_IL:["שנה את צבע מילוי השטח"]}},27059:e=>{e.exports={en:["change area line visibility"],he_IL:["לשנות את נראות קו השטח"]}},89346:e=>{e.exports={en:["change area line width"],he_IL:["שנה את רוחב קו השטח"]}},29605:e=>{e.exports={en:["change area line color"],he_IL:["שנה את צבע קו השטח"]}},56864:e=>{e.exports={en:["change area line style"],he_IL:["שינוי סגנון קו השטח"]}},4640:e=>{e.exports={en:["change area price source"],he_IL:["שנה מקור אזור מחיר"]}},98407:e=>{e.exports={en:["change ask line color"],he_IL:["שנה את צבע שורת הביקוש ask"]}},42190:e=>{e.exports={en:["change base level"],he_IL:["שנה את רמת הבסיס"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],he_IL:["שנה את צבע השורה התחתונה של קו הבסיס"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],he_IL:["שנה את סגנון הקו העליון של קו הבסיס"]}},56175:e=>{e.exports={en:["change baseline bottom line width"], +he_IL:["שנה את רוחב השורה התחתונה של קו הבסיס"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],he_IL:["שנה את צבע השטח התחתון של מילוי קו הבסיס"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],he_IL:["שנה את צבע האזור העליון של מילוי קו הבסיס"]}},68609:e=>{e.exports={en:["change baseline price source"],he_IL:["שנה את מקור המחיר הבסיסי"]}},69044:e=>{e.exports={en:["change baseline top line color"],he_IL:["שנה את צבע הקו העליון של קו הבסיס"]}},4425:e=>{e.exports={en:["change baseline top line style"],he_IL:["שנה את סגנון הקו העליון של קו הבסיס"]}},68197:e=>{e.exports={en:["change baseline top line width"],he_IL:["שנה את רוחב הקו העליון של קו הבסיס"]}},33464:e=>{e.exports={en:["change bar up color"],he_IL:["שנה את צבע הבר למעלה"]}},14201:e=>{e.exports={en:["change bar change down color"]}},30196:e=>{e.exports={en:["change bar change up color"]}},27426:e=>{e.exports={en:["change bar change visibility"],he_IL:["שנה נראות של בר שינוי"]}},59622:e=>{e.exports={en:["change bar down color"],he_IL:["שנה את צבע הבר למטה"]}},17919:e=>{e.exports={en:["change bid line color"],he_IL:["שנה את צבע שורת ההיצע bid"]}},32094:e=>{e.exports={en:["change bottom margin"],he_IL:["שנה שוליים תחתוניים"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],he_IL:["שנה את נראות תוויות המטבע והיחידה"]}},64003:e=>{e.exports={en:["change currency label visibility"],he_IL:["שנה את נראות תווית המטבע"]}},42803:e=>{e.exports={en:["change chart background color"],he_IL:["שנה את צבע הרקע של הגרף"]}},41382:e=>{e.exports={en:["change chart background type"],he_IL:["שנה את סוג הרקע של הגרף"]}},79637:e=>{e.exports={en:["change chart values visibility"],he_IL:["שינוי נראות ערכי הגרף"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],he_IL:["שנה ברי צבע בהתבסס על סגירה קודמת"]}},88324:e=>{e.exports={en:["change column up color"],he_IL:["שנה את צבע העמודה למעלה"]}},93890:e=>{e.exports={en:["change column down color"],he_IL:["שנה את צבע העמודה למטה"]}},4727:e=>{e.exports={en:["change column price source"],he_IL:["שנה מקור מחיר העמודה"]}},50544:e=>{e.exports={en:["change crosshair width"],he_IL:["שנה רוחב צלב"]}},92885:e=>{e.exports={en:["change crosshair color"],he_IL:["שנה את צבע הצלב"]}},68418:e=>{e.exports={en:["change crosshair style"],he_IL:["שנה סגנון צלב"]}},43109:e=>{e.exports={en:["change date format"],he_IL:["שנה פורמט תאריך"]}},30418:e=>{e.exports={en:["change day of week on labels"],he_IL:["שנה את יום השבוע על התוויות"]}},82063:e=>{e.exports={en:["change decimal places"],he_IL:["שנה מקומות עשרוניים"]}},45397:e=>{e.exports={en:["change extended hours color"],he_IL:["שנה את צבע השעות המורחבות"]}},47393:e=>{e.exports={en:["change electronic trading hours"],he_IL:["שינוי שעות המסחר האלקטרוניות"]}},73844:e=>{e.exports={en:["change grid lines visibility"],he_IL:["שינוי נראות קווי הרשת"]}},61407:e=>{e.exports={en:["change high and low price line color"],he_IL:["לשנות את צבע קווי המחיר הגבוה והנמוך"]}},39581:e=>{e.exports={en:["change high and low price line width"], +he_IL:["לשנות את רוחב קווי המחיר הגבוה והנמוך"]}},6026:e=>{e.exports={en:["change high-low body color"],he_IL:["שנה צבע גבוה-נמוך של הגוף"]}},73021:e=>{e.exports={en:["change high-low body visibility"],he_IL:["שנה נראות גבוה-נמוך של הגוף"]}},46844:e=>{e.exports={en:["change high-low border color"],he_IL:["שנה צבע גבול גבוה-נמוך של הגוף"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],he_IL:["שנה נראות גבול גבוה-נמוך של הגוף"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],he_IL:["שנה נראות התוויות גבוה-נמוך"]}},56961:e=>{e.exports={en:["change high-low labels color"],he_IL:["שנה צבע התוויות גבוה-נמוך"]}},21133:e=>{e.exports={en:["change horz grid lines color"],he_IL:["שנה את צבע קווי הרשת האופקיים"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],he_IL:["שנה את נראות של כותרות אינדיקטור"]}},49583:e=>{e.exports={en:["change indicator values visibility"],he_IL:["שינוי נראות ערכי אינדיקטור"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],he_IL:["שינוי נראות כניסות אינדיקטור"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],he_IL:["שנה נראות של שם תוויות אינדיקטורים ופיננסיות"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],he_IL:["שנה נראות של אינדיקטורים ותוויות ערך פיננסיות"]}},451:e=>{e.exports={en:["change interval watermark visibility"],he_IL:["שינוי אינטרוול זמן של נראות סימן המים"]}},66307:e=>{e.exports={en:["change last day change visibility"],he_IL:["שנה את הנראות של השינוי ביום האחרון"]}},91873:e=>{e.exports={en:["change legend background transparency"],he_IL:["שנה את שקיפות הרקע של מקרא"]}},14246:e=>{e.exports={en:["change legend background visibility"],he_IL:["שנה נראות הרקע של מקרא"]}},88640:e=>{e.exports={en:["change line color"],he_IL:["שנה צבע קו"]}},28818:e=>{e.exports={en:["change line style"],he_IL:["שנה את סגנון הקו"]}},41837:e=>{e.exports={en:["change line price source"],he_IL:["שנה מקור מחיר קו"]}},48339:e=>{e.exports={en:["change line width"],he_IL:["שנה רוחב קו"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],he_IL:["שנה נראות לחצני החלונית"]}},52203:e=>{e.exports={en:["change pane separators color"],he_IL:["שנה את צבע מפריד החלונות"]}},38730:e=>{e.exports={en:["change post market color"],he_IL:["שנה צבע מסחר מאוחר"]}},28075:e=>{e.exports={en:["change post market line color"],he_IL:["שנה צבע קו מסחר מאוחר"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],he_IL:["שנה נראות של קווי המחירים פרה/פוסט מארקט"]}},44371:e=>{e.exports={en:["change pre market color"],he_IL:["שנה צבע טרום מסחר"]}},96114:e=>{e.exports={en:["change pre market line color"],he_IL:["שנה צבע קו טרום מסחר"]}},69814:e=>{e.exports={en:["change previous close price line color"],he_IL:["שנה את צבע קו המחיר סגירה הקודם"]}},13660:e=>{e.exports={en:["change previous close price line width"],he_IL:["שנה את רוחב קו סגירת המחיר הקודם"]}},87861:e=>{e.exports={en:["change price line color"],he_IL:["לשנות את צבע קו המחיר"]}},29353:e=>{e.exports={ +en:["change price line width"],he_IL:["שנה את רוחב קו המחיר"]}},16241:e=>{e.exports={en:["change range bars style"],he_IL:["שנה את סגנון ברי הטווח"]}},65821:e=>{e.exports={en:["change range thin bars"],he_IL:["שנה ברים דקים בטווח"]}},75487:e=>{e.exports={en:["change renko wick down color"],he_IL:["שנה צבע renko wick down"]}},92277:e=>{e.exports={en:["change renko wick up color"],he_IL:["שנה צבע wick up renko"]}},79604:e=>{e.exports={en:["change renko wick visibility"],he_IL:["שנה נראות של פתיל renko"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],he_IL:["שינוי נראות סימן המים של ההפעלה החוזרת"]}},82946:e=>{e.exports={en:["change right margin"],he_IL:["שנה שוליים ימניים"]}},79545:e=>{e.exports={en:["change right margin percentage"],he_IL:["שנה את אחוז השוליים הימניים"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],he_IL:["שנה נראות סימן מים של סימול הטיקר"]}},78995:e=>{e.exports={en:["change symbol watermark color"],he_IL:["שנה צבע סימן מים של הסימול"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],he_IL:["שנה נראות סימן מים של הסימול"]}},88167:e=>{e.exports={en:["change symbol description visibility"],he_IL:["שנה את נראות תיאור הסימול"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],he_IL:["שנה נראות סימן מים של תיאור הסימול"]}},12050:e=>{e.exports={en:["change symbol field visibility"],he_IL:["שינוי נראות שדה הסימול"]}},46066:e=>{e.exports={en:["change symbol last value mode"],he_IL:["שינוי מצב ערך אחרון של סימול"]}},902:e=>{e.exports={en:["change symbol legend format"],he_IL:["שנה פורמט מקרא סימולים"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],he_IL:["שנה שמירת מיקום הקצה השמאלי של הגרף בעת שינוי אינטרוול"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],he_IL:["שנה את נראות לחצני קנה המידה"]}},76131:e=>{e.exports={en:["change scales text color"],he_IL:["שנה צבע טקסט של סולמות"]}},27792:e=>{e.exports={en:["change scales font size"],he_IL:["שנה גודל גופן בסולם"]}},94997:e=>{e.exports={en:["change scales lines color"],he_IL:["שנה צבע קווים של סולמות"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],he_IL:["שנה נראות של הפסקות סשנים"]}},28175:e=>{e.exports={en:["change sessions breaks width"],he_IL:["שנה רוחב קווי הפרדה של סשנים sessions breaks"]}},33895:e=>{e.exports={en:["change sessions breaks color"],he_IL:["שנה צבע קווי הפרדה של סשנים sessions breaks"]}},21641:e=>{e.exports={en:["change sessions breaks style"],he_IL:["שנה סגנון הפסקות סשן sessions breaks"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],he_IL:["שנה הצגת המחירים האמיתיים בסולם המחירים (במקום מחיר הייקן-אשי)"]}},60834:e=>{e.exports={en:["change thin bars"],he_IL:["שנה ברים דקים"]}},39754:e=>{e.exports={en:["change time hours format"],he_IL:["שינוי זמן שעות פורמט"]}},74883:e=>{e.exports={en:["change top margin"],he_IL:["שנה שוליים עליוניים"]}},51250:e=>{e.exports={en:["change unit label visibility"], +he_IL:["שנה את נראות תווית היחידה"]}},28142:e=>{e.exports={en:["change use custom bar change colors"]}},71805:e=>{e.exports={en:["change vert grid lines color"],he_IL:["שנה את צבע קווי הרשת האנכיים"]}},96201:e=>{e.exports={en:["change volume values visibility"],he_IL:["שינוי נראות ערכי ווליום"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],he_IL:["שנה את צבע הגבול העליון של {candleType}"]}},36697:e=>{e.exports={en:["change {candleType} up color"],he_IL:["שנה צבע של {candleType}"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],he_IL:["שנה את הצבע של {candleType} wick למטה"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],he_IL:["שנה את הצבע שלwick up {candleType}"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],he_IL:["שנה את נראות הפתיל {candleType}"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],he_IL:["שנה נראות הגוף של {candleType}"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],he_IL:["שנה את נראות הגבול של {candleType}"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],he_IL:["שנה את צבע הגבול התחתון של {candleType}"]}},64571:e=>{e.exports={en:["change {candleType} down color"],he_IL:["שנה את הצבע התחתון של {candleType}"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],he_IL:["שנה את צבע בר הגבול של {chartType} התחתון"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],he_IL:["שנה את צבע בר הגבול {chartType} העליון"]}},5012:e=>{e.exports={en:["change {chartType} down color"],he_IL:["שנה את הצבע התחתון של {chartType}"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],he_IL:["שנה את צבע בר הגבול להקרנה {chartType} העליון"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],he_IL:["שנה את הצבע של בר ההקרנה {chartType} התחתון"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],he_IL:["שנה את צבע בר ההקרנה {chartType} העליון"]}},6970:e=>{e.exports={en:["change {chartType} up color"],he_IL:["שנה את הצבע העליון של {chartType}"]}},66110:e=>{e.exports={en:["change {inputName} property"],he_IL:["שנה מאפיין {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],he_IL:["להתאים נתונים לדיבידנדים"]}},1433:e=>{e.exports={en:["adjust for contract changes"],he_IL:["התאם לשינויים בחוזה"]}},92598:e=>{e.exports={en:["hollow candles"],he_IL:["נרות חלולים"]}},57243:e=>{e.exports={en:["range","ranges"],he_IL:["טווח","טווחים","טווחים","טווחים"]}},70282:e=>{e.exports={en:["renko"],he_IL:["גרף ראנקו"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],he_IL:["החלף פערים של חוסר פעילות"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],he_IL:["השתמש בסליקה כסגירה באינטרוול יומי"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],he_IL:["{value} עשרוני","{value} עשרונים","{value} עשרונים","{value} עשרונים"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/hu_HU.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/hu_HU.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index b32616ae..00000000 --- a/charting_library/bundles/hu_HU.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,5 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:e=>{e.exports={en:["bars"]}},31882:e=>{e.exports={en:["12-hours"]}},5797:e=>{e.exports={en:["24-hours"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],hu_HU:["Bárszínek az előző záró alapján"]}},23739:e=>{e.exports={en:["Canvas"]}},24197:e=>{e.exports={en:["Center"]}},15153:e=>{e.exports={en:["Chart basic styles"]}},45639:e=>{e.exports={en:["Chart values"]}},84831:e=>{e.exports={en:["Close line"]}},74622:e=>{e.exports={en:["Crosshair"],hu_HU:["Szálkereszt"]}},81849:e=>{e.exports={en:["Currency"],hu_HU:["Valuta"]}},3015:e=>{e.exports={en:["Currency and Unit"]}},93020:e=>{e.exports={en:["Adjust data for dividends"]}},68921:e=>{e.exports={en:["Adjust for contract changes"]}},36620:e=>{e.exports={en:["Alerts"],hu_HU:["Riasztások"]}},68650:e=>{e.exports={en:["Average close"]}},27567:e=>{e.exports={en:["Bottom"],hu_HU:["Alsó"]}},3159:e=>{e.exports={en:["Bottom line"],hu_HU:["Bottom Line"]}},74406:e=>{e.exports={en:["Body"]}},333:e=>{e.exports={en:["Borders"],hu_HU:["Határok"]}},79468:e=>{e.exports={en:["Background"],hu_HU:["Háttér"]}},10842:e=>{e.exports={en:["Bar change values"],hu_HU:["Bar Change Values"]}},28975:e=>{e.exports={en:["Base level"],hu_HU:["Base Level"]}},76473:e=>{e.exports={en:["Bid and ask"]}},32744:e=>{e.exports={en:["Buttons"]}},68662:e=>{e.exports={en:["Grid lines"]}},17611:e=>{e.exports={en:["Down bars"]}},23743:e=>{e.exports={en:["Down color"]}},48225:e=>{e.exports={en:["Data modification"]}},84838:e=>{e.exports={en:["Date format"],hu_HU:["Date Format"]}},42357:e=>{e.exports={en:["Day of week on labels"]}},16564:e=>{e.exports={en:["Default"],hu_HU:["Alapértelmezett"]}},78734:e=>{e.exports={en:["Description"],hu_HU:["Leírás"]}},67036:e=>{e.exports={en:["Display inactivity gaps"]}},59777:e=>{e.exports={en:["Electronic trading hours background"]}},69808:e=>{e.exports={en:["Events"],hu_HU:["Események"]}},41129:e=>{e.exports={en:["Fill"]}},61112:e=>{e.exports={en:["Fill top area"],hu_HU:["Fill Top Area"]}},73185:e=>{e.exports={en:["Fill bottom area"],hu_HU:["Fill Bottom Area"]}},3160:e=>{e.exports={en:["Horizontal"]}},61900:e=>{e.exports={en:["Horz only"]}},14180:e=>{e.exports={en:["High and low"]}},56359:e=>{e.exports={en:["High line"]}},47326:e=>{e.exports={en:["Integer"]}},17854:e=>{e.exports={en:["Interval"],hu_HU:["Időköz"]}},84549:e=>{e.exports={en:["Indicators"],hu_HU:["Indikátorok"]}},78082:e=>{e.exports={en:["Indicators and financials"]}},21429:e=>{e.exports={en:["Inputs"],hu_HU:["Inputok"]}},25765:e=>{e.exports={en:["Open market status"]}},34579:e=>{e.exports={en:["Low line"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"]}},72423:e=>{e.exports={en:["Last day change values"]}},11626:e=>{e.exports={en:["Left"],hu_HU:["Bal"]}},56982:e=>{e.exports={en:["Lines"]}},8249:e=>{e.exports={en:["Money"],hu_HU:["Pénz"]}},70937:e=>{e.exports={en:["Margins"],hu_HU:["Fedezeti Letét"]}},68833:e=>{e.exports={en:["Middle"]}},58589:e=>{e.exports={en:["No overlapping labels"]}}, -60798:e=>{e.exports={en:["None"]}},51019:e=>{e.exports={en:["Navigation"]}},99709:e=>{e.exports={en:["Name"],hu_HU:["Érme"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"]}},93968:e=>{e.exports={en:["Scales"],hu_HU:["Skálák"]}},90275:e=>{e.exports={en:["Scales and lines"]}},30042:e=>{e.exports={en:["Scales placement"]}},28715:e=>{e.exports={en:["Status line"]}},95481:e=>{e.exports={en:["Symbol"],hu_HU:["Szimbólum"]}},53263:e=>{e.exports={en:["Pane"]}},82894:e=>{e.exports={en:["Pane separators"]}},86235:e=>{e.exports={en:["Percentage"],hu_HU:["Százalék"]}},94408:e=>{e.exports={en:["Pips"],hu_HU:["Pipek"]}},60904:e=>{e.exports={en:["Pre/post market"]}},88327:e=>{e.exports={en:["Pre/post market hours background"]}},59766:e=>{e.exports={en:["Precision"],hu_HU:["Pontosság"]}},83811:e=>{e.exports={en:["Previous day close"]}},35082:e=>{e.exports={en:["Price Scale"]}},27632:e=>{e.exports={en:["Price and percentage value"]}},62142:e=>{e.exports={en:["Price labels & lines"]}},84684:e=>{e.exports={en:["Price source"]}},73466:e=>{e.exports={en:["Projection up bars"]}},77430:e=>{e.exports={en:["Projection candles"]}},88367:e=>{e.exports={en:["Projection down bars"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"]}},50421:e=>{e.exports={en:["Right"],hu_HU:["Jobb"]}},62532:e=>{e.exports={en:["Right Margin"]}},41571:e=>{e.exports={en:["Watermark"],hu_HU:["Vízjel"]}},32163:e=>{e.exports={en:["Wick"],hu_HU:["Kanóc"]}},97118:e=>{e.exports={en:["Top"],hu_HU:["Felső"]}},89349:e=>{e.exports={en:["Top line"],hu_HU:["Top Line"]}},70320:e=>{e.exports={en:["Text"],hu_HU:["Szöveg"]}},25485:e=>{e.exports={en:["Text alignment"]}},67781:e=>{e.exports={en:["Text orientation"]}},20215:e=>{e.exports={en:["Thin bars"],hu_HU:["Thin Bars"]}},70198:e=>{e.exports={en:["Title"],hu_HU:["Cím"]}},29854:e=>{e.exports={en:["Titles"]}},5791:e=>{e.exports={en:["Ticker"]}},16816:e=>{e.exports={en:["Ticker and description"]}},24821:e=>{e.exports={en:["Ticks"]}},93965:e=>{e.exports={en:["Time Scale"]}},5591:e=>{e.exports={en:["Time hours format"]}},77073:e=>{e.exports={en:["Timezone"],hu_HU:["Időzóna"]}},76495:e=>{e.exports={en:["Trading"],hu_HU:["Kereskedés"]}},33564:e=>{e.exports={en:["Unit"]}},23091:e=>{e.exports={en:["Up color"]}},36957:e=>{e.exports={en:["Up bars"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"]}},37644:e=>{e.exports={en:["Volume"],hu_HU:["Volumen"]}},51514:e=>{e.exports={en:["Value"],hu_HU:["Érték"]}},31218:e=>{e.exports={en:["Value according to scale"]}},60092:e=>{e.exports={en:["Values"]}},83594:e=>{e.exports={en:["Vert and horz"]}},8402:e=>{e.exports={en:["Vert only"]}},69526:e=>{e.exports={en:["Vertical"]}},21105:e=>{e.exports={en:["candle"]}},27068:e=>{e.exports={en:["change HLC bars"]}},21201:e=>{e.exports={en:["change HLC bars color"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"]}},96227:e=>{e.exports={en:["change open market status visibility"]}},43231:e=>{e.exports={ -en:["change average close price line width"]}},47026:e=>{e.exports={en:["change average close price line color"]}},29281:e=>{e.exports={en:["change area fill color"]}},27059:e=>{e.exports={en:["change area line visibility"]}},89346:e=>{e.exports={en:["change area line width"]}},29605:e=>{e.exports={en:["change area line color"]}},56864:e=>{e.exports={en:["change area line style"]}},4640:e=>{e.exports={en:["change area price source"]}},98407:e=>{e.exports={en:["change ask line color"]}},42190:e=>{e.exports={en:["change base level"]}},71785:e=>{e.exports={en:["change baseline bottom line color"]}},85684:e=>{e.exports={en:["change baseline bottom line style"]}},56175:e=>{e.exports={en:["change baseline bottom line width"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"]}},92873:e=>{e.exports={en:["change baseline fill top area color"]}},68609:e=>{e.exports={en:["change baseline price source"]}},69044:e=>{e.exports={en:["change baseline top line color"]}},4425:e=>{e.exports={en:["change baseline top line style"]}},68197:e=>{e.exports={en:["change baseline top line width"]}},33464:e=>{e.exports={en:["change bar up color"]}},27426:e=>{e.exports={en:["change bar change visibility"]}},59622:e=>{e.exports={en:["change bar down color"]}},17919:e=>{e.exports={en:["change bid line color"]}},32094:e=>{e.exports={en:["change bottom margin"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"]}},64003:e=>{e.exports={en:["change currency label visibility"]}},42803:e=>{e.exports={en:["change chart background color"]}},41382:e=>{e.exports={en:["change chart background type"]}},79637:e=>{e.exports={en:["change chart values visibility"]}},43090:e=>{e.exports={en:["change color bars based on previous close"]}},88324:e=>{e.exports={en:["change column up color"]}},93890:e=>{e.exports={en:["change column down color"]}},4727:e=>{e.exports={en:["change column price source"]}},50544:e=>{e.exports={en:["change crosshair width"]}},92885:e=>{e.exports={en:["change crosshair color"]}},68418:e=>{e.exports={en:["change crosshair style"]}},43109:e=>{e.exports={en:["change date format"]}},30418:e=>{e.exports={en:["change day of week on labels"]}},82063:e=>{e.exports={en:["change decimal places"]}},45397:e=>{e.exports={en:["change extended hours color"]}},47393:e=>{e.exports={en:["change electronic trading hours"]}},73844:e=>{e.exports={en:["change grid lines visibility"]}},61407:e=>{e.exports={en:["change high and low price line color"]}},39581:e=>{e.exports={en:["change high and low price line width"]}},6026:e=>{e.exports={en:["change high-low body color"]}},73021:e=>{e.exports={en:["change high-low body visibility"]}},46844:e=>{e.exports={en:["change high-low border color"]}},15801:e=>{e.exports={en:["change high-low borders visibility"]}},72399:e=>{e.exports={en:["change high-low labels visibility"]}},56961:e=>{e.exports={en:["change high-low labels color"]}},21133:e=>{e.exports={en:["change horz grid lines color"]}},63050:e=>{e.exports={en:["change indicator titles visibility"]}},49583:e=>{e.exports={ -en:["change indicator values visibility"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"]}},451:e=>{e.exports={en:["change interval watermark visibility"]}},66307:e=>{e.exports={en:["change last day change visibility"]}},91873:e=>{e.exports={en:["change legend background transparency"]}},14246:e=>{e.exports={en:["change legend background visibility"]}},88640:e=>{e.exports={en:["change line color"]}},28818:e=>{e.exports={en:["change line style"]}},41837:e=>{e.exports={en:["change line price source"]}},48339:e=>{e.exports={en:["change line width"]}},18378:e=>{e.exports={en:["change pane buttons visibility"]}},52203:e=>{e.exports={en:["change pane separators color"]}},38730:e=>{e.exports={en:["change post market color"]}},28075:e=>{e.exports={en:["change post market line color"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"]}},44371:e=>{e.exports={en:["change pre market color"]}},96114:e=>{e.exports={en:["change pre market line color"]}},69814:e=>{e.exports={en:["change previous close price line color"]}},13660:e=>{e.exports={en:["change previous close price line width"]}},87861:e=>{e.exports={en:["change price line color"]}},29353:e=>{e.exports={en:["change price line width"]}},16241:e=>{e.exports={en:["change range bars style"]}},65821:e=>{e.exports={en:["change range thin bars"]}},75487:e=>{e.exports={en:["change renko wick down color"]}},92277:e=>{e.exports={en:["change renko wick up color"]}},79604:e=>{e.exports={en:["change renko wick visibility"]}},66021:e=>{e.exports={en:["change replay watermark visibility"]}},82946:e=>{e.exports={en:["change right margin"]}},79545:e=>{e.exports={en:["change right margin percentage"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"]}},78995:e=>{e.exports={en:["change symbol watermark color"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"]}},88167:e=>{e.exports={en:["change symbol description visibility"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"]}},12050:e=>{e.exports={en:["change symbol field visibility"]}},46066:e=>{e.exports={en:["change symbol last value mode"]}},902:e=>{e.exports={en:["change symbol legend format"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"]}},76131:e=>{e.exports={en:["change scales text color"]}},27792:e=>{e.exports={en:["change scales font size"]}},94997:e=>{e.exports={en:["change scales lines color"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"]}},28175:e=>{e.exports={en:["change sessions breaks width"]}},33895:e=>{e.exports={en:["change sessions breaks color"]}},21641:e=>{e.exports={en:["change sessions breaks style"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"]}}, -60834:e=>{e.exports={en:["change thin bars"]}},39754:e=>{e.exports={en:["change time hours format"]}},74883:e=>{e.exports={en:["change top margin"]}},51250:e=>{e.exports={en:["change unit label visibility"]}},71805:e=>{e.exports={en:["change vert grid lines color"]}},96201:e=>{e.exports={en:["change volume values visibility"]}},17214:e=>{e.exports={en:["change {candleType} up border color"]}},36697:e=>{e.exports={en:["change {candleType} up color"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"]}},20291:e=>{e.exports={en:["change {candleType} down border color"]}},64571:e=>{e.exports={en:["change {candleType} down color"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"]}},5012:e=>{e.exports={en:["change {chartType} down color"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"]}},6970:e=>{e.exports={en:["change {chartType} up color"]}},66110:e=>{e.exports={en:["change {inputName} property"]}},18077:e=>{e.exports={en:["adjust data for dividends"]}},1433:e=>{e.exports={en:["adjust for contract changes"]}},92598:e=>{e.exports={en:["hollow candles"],hu_HU:["Áttetsző Gyertyák"]}},57243:e=>{e.exports={en:["range","ranges"]}},70282:e=>{e.exports={en:["renko"],hu_HU:["Renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/hu_HU.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/hu_HU.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..bca0a08f --- /dev/null +++ b/charting_library/bundles/hu_HU.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,5 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:e=>{e.exports={en:["bars"]}},31882:e=>{e.exports={en:["12-hours"]}},5797:e=>{e.exports={en:["24-hours"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],hu_HU:["Bárszínek az előző záró alapján"]}},23739:e=>{e.exports={en:["Canvas"]}},24197:e=>{e.exports={en:["Center"]}},15153:e=>{e.exports={en:["Chart basic styles"]}},45639:e=>{e.exports={en:["Chart values"]}},84831:e=>{e.exports={en:["Close line"]}},74622:e=>{e.exports={en:["Crosshair"],hu_HU:["Szálkereszt"]}},81849:e=>{e.exports={en:["Currency"],hu_HU:["Valuta"]}},3015:e=>{e.exports={en:["Currency and Unit"]}},93020:e=>{e.exports={en:["Adjust data for dividends"]}},68921:e=>{e.exports={en:["Adjust for contract changes"]}},36620:e=>{e.exports={en:["Alerts"],hu_HU:["Riasztások"]}},68650:e=>{e.exports={en:["Average close"]}},27567:e=>{e.exports={en:["Bottom"],hu_HU:["Alsó"]}},3159:e=>{e.exports={en:["Bottom line"],hu_HU:["Bottom Line"]}},74406:e=>{e.exports={en:["Body"]}},333:e=>{e.exports={en:["Borders"],hu_HU:["Határok"]}},79468:e=>{e.exports={en:["Background"],hu_HU:["Háttér"]}},10842:e=>{e.exports={en:["Bar change values"],hu_HU:["Bar Change Values"]}},70817:e=>{e.exports={en:["Bar change color based on value"]}},28975:e=>{e.exports={en:["Base level"],hu_HU:["Base Level"]}},76473:e=>{e.exports={en:["Bid and ask"]}},32744:e=>{e.exports={en:["Buttons"]}},68662:e=>{e.exports={en:["Grid lines"]}},17611:e=>{e.exports={en:["Down bars"]}},23743:e=>{e.exports={en:["Down color"]}},48225:e=>{e.exports={en:["Data modification"]}},84838:e=>{e.exports={en:["Date format"],hu_HU:["Date Format"]}},42357:e=>{e.exports={en:["Day of week on labels"]}},16564:e=>{e.exports={en:["Default"],hu_HU:["Alapértelmezett"]}},78734:e=>{e.exports={en:["Description"],hu_HU:["Leírás"]}},67036:e=>{e.exports={en:["Display inactivity gaps"]}},59777:e=>{e.exports={en:["Electronic trading hours background"]}},69808:e=>{e.exports={en:["Events"],hu_HU:["Események"]}},41129:e=>{e.exports={en:["Fill"]}},61112:e=>{e.exports={en:["Fill top area"],hu_HU:["Fill Top Area"]}},73185:e=>{e.exports={en:["Fill bottom area"],hu_HU:["Fill Bottom Area"]}},3160:e=>{e.exports={en:["Horizontal"]}},61900:e=>{e.exports={en:["Horz only"]}},14180:e=>{e.exports={en:["High and low"]}},56359:e=>{e.exports={en:["High line"]}},47326:e=>{e.exports={en:["Integer"]}},17854:e=>{e.exports={en:["Interval"],hu_HU:["Időköz"]}},84549:e=>{e.exports={en:["Indicators"],hu_HU:["Indikátorok"]}},78082:e=>{e.exports={en:["Indicators and financials"]}},21429:e=>{e.exports={en:["Inputs"],hu_HU:["Inputok"]}},25765:e=>{e.exports={en:["Open market status"]}},34579:e=>{e.exports={en:["Low line"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"]}},72423:e=>{e.exports={en:["Last day change values"]}},11626:e=>{e.exports={en:["Left"],hu_HU:["Bal"]}},56982:e=>{e.exports={en:["Lines"]}},8249:e=>{e.exports={en:["Money"],hu_HU:["Pénz"]}},70937:e=>{e.exports={en:["Margins"],hu_HU:["Fedezeti Letét"]}},68833:e=>{e.exports={ +en:["Middle"]}},58589:e=>{e.exports={en:["No overlapping labels"]}},60798:e=>{e.exports={en:["None"]}},51019:e=>{e.exports={en:["Navigation"]}},99709:e=>{e.exports={en:["Name"],hu_HU:["Érme"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"]}},93968:e=>{e.exports={en:["Scales"],hu_HU:["Skálák"]}},90275:e=>{e.exports={en:["Scales and lines"]}},30042:e=>{e.exports={en:["Scales placement"]}},28715:e=>{e.exports={en:["Status line"]}},95481:e=>{e.exports={en:["Symbol"],hu_HU:["Szimbólum"]}},53263:e=>{e.exports={en:["Pane"]}},82894:e=>{e.exports={en:["Pane separators"]}},86235:e=>{e.exports={en:["Percentage"],hu_HU:["Százalék"]}},94408:e=>{e.exports={en:["Pips"],hu_HU:["Pipek"]}},60904:e=>{e.exports={en:["Pre/post market"]}},88327:e=>{e.exports={en:["Pre/post market hours background"]}},59766:e=>{e.exports={en:["Precision"],hu_HU:["Pontosság"]}},83811:e=>{e.exports={en:["Previous day close"]}},35082:e=>{e.exports={en:["Price Scale"]}},27632:e=>{e.exports={en:["Price and percentage value"]}},62142:e=>{e.exports={en:["Price labels & lines"]}},84684:e=>{e.exports={en:["Price source"]}},73466:e=>{e.exports={en:["Projection up bars"]}},77430:e=>{e.exports={en:["Projection candles"]}},88367:e=>{e.exports={en:["Projection down bars"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"]}},50421:e=>{e.exports={en:["Right"],hu_HU:["Jobb"]}},62532:e=>{e.exports={en:["Right Margin"]}},41571:e=>{e.exports={en:["Watermark"],hu_HU:["Vízjel"]}},32163:e=>{e.exports={en:["Wick"],hu_HU:["Kanóc"]}},97118:e=>{e.exports={en:["Top"],hu_HU:["Felső"]}},89349:e=>{e.exports={en:["Top line"],hu_HU:["Top Line"]}},70320:e=>{e.exports={en:["Text"],hu_HU:["Szöveg"]}},25485:e=>{e.exports={en:["Text alignment"]}},67781:e=>{e.exports={en:["Text orientation"]}},20215:e=>{e.exports={en:["Thin bars"],hu_HU:["Thin Bars"]}},70198:e=>{e.exports={en:["Title"],hu_HU:["Cím"]}},29854:e=>{e.exports={en:["Titles"]}},5791:e=>{e.exports={en:["Ticker"]}},16816:e=>{e.exports={en:["Ticker and description"]}},24821:e=>{e.exports={en:["Ticks"]}},93965:e=>{e.exports={en:["Time Scale"]}},5591:e=>{e.exports={en:["Time hours format"]}},77073:e=>{e.exports={en:["Timezone"],hu_HU:["Időzóna"]}},76495:e=>{e.exports={en:["Trading"],hu_HU:["Kereskedés"]}},33564:e=>{e.exports={en:["Unit"]}},23091:e=>{e.exports={en:["Up color"]}},36957:e=>{e.exports={en:["Up bars"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"]}},37644:e=>{e.exports={en:["Volume"],hu_HU:["Volumen"]}},51514:e=>{e.exports={en:["Value"],hu_HU:["Érték"]}},31218:e=>{e.exports={en:["Value according to scale"]}},60092:e=>{e.exports={en:["Values"]}},83594:e=>{e.exports={en:["Vert and horz"]}},8402:e=>{e.exports={en:["Vert only"]}},69526:e=>{e.exports={en:["Vertical"]}},21105:e=>{e.exports={en:["candle"]}},27068:e=>{e.exports={en:["change HLC bars"]}},21201:e=>{e.exports={en:["change HLC bars color"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"]}},96227:e=>{e.exports={ +en:["change open market status visibility"]}},43231:e=>{e.exports={en:["change average close price line width"]}},47026:e=>{e.exports={en:["change average close price line color"]}},29281:e=>{e.exports={en:["change area fill color"]}},27059:e=>{e.exports={en:["change area line visibility"]}},89346:e=>{e.exports={en:["change area line width"]}},29605:e=>{e.exports={en:["change area line color"]}},56864:e=>{e.exports={en:["change area line style"]}},4640:e=>{e.exports={en:["change area price source"]}},98407:e=>{e.exports={en:["change ask line color"]}},42190:e=>{e.exports={en:["change base level"]}},71785:e=>{e.exports={en:["change baseline bottom line color"]}},85684:e=>{e.exports={en:["change baseline bottom line style"]}},56175:e=>{e.exports={en:["change baseline bottom line width"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"]}},92873:e=>{e.exports={en:["change baseline fill top area color"]}},68609:e=>{e.exports={en:["change baseline price source"]}},69044:e=>{e.exports={en:["change baseline top line color"]}},4425:e=>{e.exports={en:["change baseline top line style"]}},68197:e=>{e.exports={en:["change baseline top line width"]}},33464:e=>{e.exports={en:["change bar up color"]}},14201:e=>{e.exports={en:["change bar change down color"]}},30196:e=>{e.exports={en:["change bar change up color"]}},27426:e=>{e.exports={en:["change bar change visibility"]}},59622:e=>{e.exports={en:["change bar down color"]}},17919:e=>{e.exports={en:["change bid line color"]}},32094:e=>{e.exports={en:["change bottom margin"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"]}},64003:e=>{e.exports={en:["change currency label visibility"]}},42803:e=>{e.exports={en:["change chart background color"]}},41382:e=>{e.exports={en:["change chart background type"]}},79637:e=>{e.exports={en:["change chart values visibility"]}},43090:e=>{e.exports={en:["change color bars based on previous close"]}},88324:e=>{e.exports={en:["change column up color"]}},93890:e=>{e.exports={en:["change column down color"]}},4727:e=>{e.exports={en:["change column price source"]}},50544:e=>{e.exports={en:["change crosshair width"]}},92885:e=>{e.exports={en:["change crosshair color"]}},68418:e=>{e.exports={en:["change crosshair style"]}},43109:e=>{e.exports={en:["change date format"]}},30418:e=>{e.exports={en:["change day of week on labels"]}},82063:e=>{e.exports={en:["change decimal places"]}},45397:e=>{e.exports={en:["change extended hours color"]}},47393:e=>{e.exports={en:["change electronic trading hours"]}},73844:e=>{e.exports={en:["change grid lines visibility"]}},61407:e=>{e.exports={en:["change high and low price line color"]}},39581:e=>{e.exports={en:["change high and low price line width"]}},6026:e=>{e.exports={en:["change high-low body color"]}},73021:e=>{e.exports={en:["change high-low body visibility"]}},46844:e=>{e.exports={en:["change high-low border color"]}},15801:e=>{e.exports={en:["change high-low borders visibility"]}},72399:e=>{e.exports={en:["change high-low labels visibility"]}},56961:e=>{e.exports={ +en:["change high-low labels color"]}},21133:e=>{e.exports={en:["change horz grid lines color"]}},63050:e=>{e.exports={en:["change indicator titles visibility"]}},49583:e=>{e.exports={en:["change indicator values visibility"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"]}},451:e=>{e.exports={en:["change interval watermark visibility"]}},66307:e=>{e.exports={en:["change last day change visibility"]}},91873:e=>{e.exports={en:["change legend background transparency"]}},14246:e=>{e.exports={en:["change legend background visibility"]}},88640:e=>{e.exports={en:["change line color"]}},28818:e=>{e.exports={en:["change line style"]}},41837:e=>{e.exports={en:["change line price source"]}},48339:e=>{e.exports={en:["change line width"]}},18378:e=>{e.exports={en:["change pane buttons visibility"]}},52203:e=>{e.exports={en:["change pane separators color"]}},38730:e=>{e.exports={en:["change post market color"]}},28075:e=>{e.exports={en:["change post market line color"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"]}},44371:e=>{e.exports={en:["change pre market color"]}},96114:e=>{e.exports={en:["change pre market line color"]}},69814:e=>{e.exports={en:["change previous close price line color"]}},13660:e=>{e.exports={en:["change previous close price line width"]}},87861:e=>{e.exports={en:["change price line color"]}},29353:e=>{e.exports={en:["change price line width"]}},16241:e=>{e.exports={en:["change range bars style"]}},65821:e=>{e.exports={en:["change range thin bars"]}},75487:e=>{e.exports={en:["change renko wick down color"]}},92277:e=>{e.exports={en:["change renko wick up color"]}},79604:e=>{e.exports={en:["change renko wick visibility"]}},66021:e=>{e.exports={en:["change replay watermark visibility"]}},82946:e=>{e.exports={en:["change right margin"]}},79545:e=>{e.exports={en:["change right margin percentage"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"]}},78995:e=>{e.exports={en:["change symbol watermark color"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"]}},88167:e=>{e.exports={en:["change symbol description visibility"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"]}},12050:e=>{e.exports={en:["change symbol field visibility"]}},46066:e=>{e.exports={en:["change symbol last value mode"]}},902:e=>{e.exports={en:["change symbol legend format"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"]}},76131:e=>{e.exports={en:["change scales text color"]}},27792:e=>{e.exports={en:["change scales font size"]}},94997:e=>{e.exports={en:["change scales lines color"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"]}},28175:e=>{e.exports={en:["change sessions breaks width"]}},33895:e=>{e.exports={ +en:["change sessions breaks color"]}},21641:e=>{e.exports={en:["change sessions breaks style"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"]}},60834:e=>{e.exports={en:["change thin bars"]}},39754:e=>{e.exports={en:["change time hours format"]}},74883:e=>{e.exports={en:["change top margin"]}},51250:e=>{e.exports={en:["change unit label visibility"]}},28142:e=>{e.exports={en:["change use custom bar change colors"]}},71805:e=>{e.exports={en:["change vert grid lines color"]}},96201:e=>{e.exports={en:["change volume values visibility"]}},17214:e=>{e.exports={en:["change {candleType} up border color"]}},36697:e=>{e.exports={en:["change {candleType} up color"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"]}},20291:e=>{e.exports={en:["change {candleType} down border color"]}},64571:e=>{e.exports={en:["change {candleType} down color"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"]}},5012:e=>{e.exports={en:["change {chartType} down color"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"]}},6970:e=>{e.exports={en:["change {chartType} up color"]}},66110:e=>{e.exports={en:["change {inputName} property"]}},18077:e=>{e.exports={en:["adjust data for dividends"]}},1433:e=>{e.exports={en:["adjust for contract changes"]}},92598:e=>{e.exports={en:["hollow candles"],hu_HU:["Áttetsző Gyertyák"]}},57243:e=>{e.exports={en:["range","ranges"]}},70282:e=>{e.exports={en:["renko"],hu_HU:["Renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/id_ID.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/id_ID.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index e8045c79..00000000 --- a/charting_library/bundles/id_ID.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,8 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:a=>{a.exports={en:["bars"],id_ID:["bar"]}},31882:a=>{a.exports={en:["12-hours"],id_ID:["12-jam"]}},5797:a=>{a.exports={en:["24-hours"],id_ID:["24-jam"]}},23111:a=>{a.exports={en:["Color bars based on previous close"],id_ID:["Warnai bar berdasarkan penutupan sebelumnya"]}},23739:a=>{a.exports={en:["Canvas"]}},24197:a=>{a.exports={en:["Center"],id_ID:["Tengah"]}},15153:a=>{a.exports={en:["Chart basic styles"],id_ID:["Chart corak basic"]}},45639:a=>{a.exports={en:["Chart values"],id_ID:["Nilai chart"]}},84831:a=>{a.exports={en:["Close line"],id_ID:["Garis Penutupan"]}},74622:a=>{a.exports={en:["Crosshair"]}},81849:a=>{a.exports={en:["Currency"],id_ID:["Mata Uang"]}},3015:a=>{a.exports={en:["Currency and Unit"],id_ID:["Mata uang dan unit"]}},93020:a=>{a.exports={en:["Adjust data for dividends"],id_ID:["Sesuaikan data untuk dividen"]}},68921:a=>{a.exports={en:["Adjust for contract changes"],id_ID:["Penyesuaian untuk perubahan kontrak"]}},36620:a=>{a.exports={en:["Alerts"],id_ID:["Peringatan"]}},68650:a=>{a.exports={en:["Average close"],id_ID:["Rata-rata penutupan"]}},27567:a=>{a.exports={en:["Bottom"],id_ID:["Dasar"]}},3159:a=>{a.exports={en:["Bottom line"],id_ID:["Garis Dasar"]}},74406:a=>{a.exports={en:["Body"],id_ID:["Badan"]}},333:a=>{a.exports={en:["Borders"],id_ID:["Batas-Batas"]}},79468:a=>{a.exports={en:["Background"],id_ID:["Latar"]}},10842:a=>{a.exports={en:["Bar change values"],id_ID:["Nilai Perubahan Bar"]}},28975:a=>{a.exports={en:["Base level"],id_ID:["Level Dasar"]}},76473:a=>{a.exports={en:["Bid and ask"],id_ID:["Bid dan Ask"]}},32744:a=>{a.exports={en:["Buttons"],id_ID:["Tombol-tombol"]}},68662:a=>{a.exports={en:["Grid lines"],id_ID:["Garis grid"]}},17611:a=>{a.exports={en:["Down bars"],id_ID:["Bar turun"]}},23743:a=>{a.exports={en:["Down color"],id_ID:["Warna Turun"]}},48225:a=>{a.exports={en:["Data modification"],id_ID:["Modifikasi data"]}},84838:a=>{a.exports={en:["Date format"],id_ID:["Format Tanggal"]}},42357:a=>{a.exports={en:["Day of week on labels"],id_ID:["Hari dalam seminggu pada label"]}},16564:a=>{a.exports={en:["Default"],id_ID:["Bawaan"]}},78734:a=>{a.exports={en:["Description"],id_ID:["Deskripsi"]}},67036:a=>{a.exports={en:["Display inactivity gaps"],id_ID:["Tampilkan gap ketidakaktifan"]}},59777:a=>{a.exports={en:["Electronic trading hours background"],id_ID:["Latar belakang jam trading elektronik"]}},69808:a=>{a.exports={en:["Events"],id_ID:["Peristiwa"]}},41129:a=>{a.exports={en:["Fill"],id_ID:["Mengisi"]}},61112:a=>{a.exports={en:["Fill top area"],id_ID:["Isi area atas"]}},73185:a=>{a.exports={en:["Fill bottom area"],id_ID:["Isi Area Dasar"]}},3160:a=>{a.exports={en:["Horizontal"]}},61900:a=>{a.exports={en:["Horz only"],id_ID:["Hanya horizontal"]}},14180:a=>{a.exports={en:["High and low"],id_ID:["Tertinggi dan terendah"]}},56359:a=>{a.exports={en:["High line"],id_ID:["Garis High"]}},47326:a=>{a.exports={en:["Integer"],id_ID:["Bilangan bulat"]}},17854:a=>{a.exports={en:["Interval"]}},84549:a=>{a.exports={ -en:["Indicators"],id_ID:["Indikator"]}},78082:a=>{a.exports={en:["Indicators and financials"],id_ID:["Indikator dan finansial"]}},21429:a=>{a.exports={en:["Inputs"],id_ID:["Input"]}},25765:a=>{a.exports={en:["Open market status"],id_ID:["Tampilkan status pasar Buka"]}},34579:a=>{a.exports={en:["Low line"],id_ID:["Garis Low"]}},14876:a=>{a.exports={en:["Logo"]}},89315:a=>{a.exports={en:["Long Description"],id_ID:["Deskripsi Panjang"]}},72423:a=>{a.exports={en:["Last day change values"],id_ID:["Nilai perubahan hari terakhir"]}},11626:a=>{a.exports={en:["Left"],id_ID:["Kiri"]}},56982:a=>{a.exports={en:["Lines"],id_ID:["Garis"]}},8249:a=>{a.exports={en:["Money"],id_ID:["Uang"]}},70937:a=>{a.exports={en:["Margins"],id_ID:["Marjin"]}},68833:a=>{a.exports={en:["Middle"],id_ID:["Tengah"]}},58589:a=>{a.exports={en:["No overlapping labels"],id_ID:["Label Tertumpuk Tidak Diperbolehkan"]}},60798:a=>{a.exports={en:["None"],id_ID:["Tidak satu pun"]}},51019:a=>{a.exports={en:["Navigation"],id_ID:["Navigasi"]}},99709:a=>{a.exports={en:["Name"],id_ID:["Nama"]}},8852:a=>{a.exports={en:["Save chart left edge position when changing interval"],id_ID:["Simpan posisi tepi kiri chart saat mengubah interval"]}},26204:a=>{a.exports={en:["Scale modes (A and L)"],id_ID:["Mode skala (A dan L)"]}},93968:a=>{a.exports={en:["Scales"],id_ID:["Skala"]}},90275:a=>{a.exports={en:["Scales and lines"],id_ID:["Skala dan garis"]}},30042:a=>{a.exports={en:["Scales placement"],id_ID:["Penempatan Skala"]}},28715:a=>{a.exports={en:["Status line"],id_ID:["Baris status"]}},95481:a=>{a.exports={en:["Symbol"],id_ID:["Simbol"]}},53263:a=>{a.exports={en:["Pane"],id_ID:["Panel"]}},82894:a=>{a.exports={en:["Pane separators"],id_ID:["Pemisah panel"]}},86235:a=>{a.exports={en:["Percentage"],id_ID:["Persentase"]}},94408:a=>{a.exports={en:["Pips"],id_ID:["Pip"]}},60904:a=>{a.exports={en:["Pre/post market"],id_ID:["Pra/Pasca pasar"]}},88327:a=>{a.exports={en:["Pre/post market hours background"],id_ID:["Latar jam pra/pasca pasar"]}},59766:a=>{a.exports={en:["Precision"],id_ID:["Presisi"]}},83811:a=>{a.exports={en:["Previous day close"],id_ID:["Penutupan hari sebelumnya"]}},35082:a=>{a.exports={en:["Price Scale"],id_ID:["Skala Harga"]}},27632:a=>{a.exports={en:["Price and percentage value"],id_ID:["Nilai Harga dan Persentase"]}},62142:a=>{a.exports={en:["Price labels & lines"],id_ID:["Label harga & garis"]}},84684:a=>{a.exports={en:["Price source"],id_ID:["Sumber Harga"]}},73466:a=>{a.exports={en:["Projection up bars"],id_ID:["Proyeksi bar naik"]}},77430:a=>{a.exports={en:["Projection candles"],id_ID:["Candle proyeksi"]}},88367:a=>{a.exports={en:["Projection down bars"],id_ID:["Proyeksi bar turun"]}},6160:a=>{a.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],id_ID:["Harga sebenarnya pada skala harga (bukan harga Heikin-Ashi)"]}},50421:a=>{a.exports={en:["Right"],id_ID:["Kanan"]}},62532:a=>{a.exports={en:["Right Margin"],id_ID:["Margin Kanan"]}},41571:a=>{a.exports={en:["Watermark"],id_ID:["Tanda air"]}},32163:a=>{a.exports={en:["Wick"], -id_ID:["Sumbu"]}},97118:a=>{a.exports={en:["Top"],id_ID:["Teratas"]}},89349:a=>{a.exports={en:["Top line"],id_ID:["Garis Atas"]}},70320:a=>{a.exports={en:["Text"],id_ID:["Teks"]}},25485:a=>{a.exports={en:["Text alignment"],id_ID:["Perataan teks"]}},67781:a=>{a.exports={en:["Text orientation"],id_ID:["Orientasi teks"]}},20215:a=>{a.exports={en:["Thin bars"],id_ID:["Bar Tipis"]}},70198:a=>{a.exports={en:["Title"],id_ID:["Judul"]}},29854:a=>{a.exports={en:["Titles"],id_ID:["Judul"]}},5791:a=>{a.exports={en:["Ticker"]}},16816:a=>{a.exports={en:["Ticker and description"],id_ID:["Ticker dan deskripsi"]}},24821:a=>{a.exports={en:["Ticks"],id_ID:["Tick"]}},93965:a=>{a.exports={en:["Time Scale"],id_ID:["Skala waktu"]}},5591:a=>{a.exports={en:["Time hours format"],id_ID:["Format waktu jam"]}},77073:a=>{a.exports={en:["Timezone"],id_ID:["Zona waktu"]}},76495:a=>{a.exports={en:["Trading"]}},33564:a=>{a.exports={en:["Unit"]}},23091:a=>{a.exports={en:["Up color"],id_ID:["Warna Naik"]}},36957:a=>{a.exports={en:["Up bars"],id_ID:["Bar naik"]}},49545:a=>{a.exports={en:["Use settlement as close on daily interval"],id_ID:["Gunakan penyelesaian sebagai penutupan pada interval harian"]}},37644:a=>{a.exports={en:["Volume"]}},51514:a=>{a.exports={en:["Value"],id_ID:["Nilai"]}},31218:a=>{a.exports={en:["Value according to scale"],id_ID:["Nilai menurut Skala"]}},60092:a=>{a.exports={en:["Values"],id_ID:["Nilai"]}},83594:a=>{a.exports={en:["Vert and horz"],id_ID:["Vertikal dan horizontal"]}},8402:a=>{a.exports={en:["Vert only"],id_ID:["Hanya vertikal"]}},69526:a=>{a.exports={en:["Vertical"]}},21105:a=>{a.exports={en:["candle"]}},27068:a=>{a.exports={en:["change HLC bars"],id_ID:["ubah bar HLC"]}},21201:a=>{a.exports={en:["change HLC bars color"],id_ID:["ubah warna bar HLC"]}},3311:a=>{a.exports={en:["change navigation buttons visibility"],id_ID:["ubah visibilitas tombol navigasi"]}},96227:a=>{a.exports={en:["change open market status visibility"],id_ID:["ubah visibilitas status market yang terbuka"]}},43231:a=>{a.exports={en:["change average close price line width"],id_ID:["ubah lebar garis harga rata-rata penutupan"]}},47026:a=>{a.exports={en:["change average close price line color"],id_ID:["ubah warna garis harga rata-rata penutupan"]}},29281:a=>{a.exports={en:["change area fill color"],id_ID:["ubah isian warna area"]}},27059:a=>{a.exports={en:["change area line visibility"],id_ID:["Ubah visibilitas garis area"]}},89346:a=>{a.exports={en:["change area line width"],id_ID:["ubah lebar area garis"]}},29605:a=>{a.exports={en:["change area line color"],id_ID:["ubah warna area garis"]}},56864:a=>{a.exports={en:["change area line style"],id_ID:["ubah corak garis area"]}},4640:a=>{a.exports={en:["change area price source"],id_ID:["ubah sumber area harga"]}},98407:a=>{a.exports={en:["change ask line color"],id_ID:["ubah warna garis harga ask"]}},42190:a=>{a.exports={en:["change base level"],id_ID:["ubah level dasar"]}},71785:a=>{a.exports={en:["change baseline bottom line color"],id_ID:["ubah warna garis dasar bawah"]}},85684:a=>{a.exports={ -en:["change baseline bottom line style"],id_ID:["ubah corak garis bagian bawah garis dasar"]}},56175:a=>{a.exports={en:["change baseline bottom line width"],id_ID:["ubah lebar garis dasar bawah"]}},97216:a=>{a.exports={en:["change baseline fill bottom area color"],id_ID:["ubah isian warna area bawah dari garis dasar"]}},92873:a=>{a.exports={en:["change baseline fill top area color"],id_ID:["ubah isian warna area atas dari garis dasar"]}},68609:a=>{a.exports={en:["change baseline price source"],id_ID:["ubah sumber garis dasar harga"]}},69044:a=>{a.exports={en:["change baseline top line color"],id_ID:["ubah warna garis dasar atas"]}},4425:a=>{a.exports={en:["change baseline top line style"],id_ID:["ubah corak garis bagian atas garis dasar"]}},68197:a=>{a.exports={en:["change baseline top line width"],id_ID:["ubah lebar garis dasar atas"]}},33464:a=>{a.exports={en:["change bar up color"],id_ID:["ubah warna bar naik"]}},27426:a=>{a.exports={en:["change bar change visibility"],id_ID:["ubah visibilitas perubahan bar"]}},59622:a=>{a.exports={en:["change bar down color"],id_ID:["ubah warna bar turun"]}},17919:a=>{a.exports={en:["change bid line color"],id_ID:["ubah warna garis harga bid"]}},32094:a=>{a.exports={en:["change bottom margin"],id_ID:["ubah margin bawah"]}},63119:a=>{a.exports={en:["change currency and unit labels visibility"],id_ID:["ubah visibilitas label mata uang dan unit"]}},64003:a=>{a.exports={en:["change currency label visibility"],id_ID:["ubah visibilitas label mata uang"]}},42803:a=>{a.exports={en:["change chart background color"],id_ID:["ubah warna latar belakang chart"]}},41382:a=>{a.exports={en:["change chart background type"],id_ID:["ubah tipe latar belakang chart"]}},79637:a=>{a.exports={en:["change chart values visibility"],id_ID:["Ubah visibilitas nilai chart"]}},43090:a=>{a.exports={en:["change color bars based on previous close"],id_ID:["ubah warna bar berdasarkan penutupan sebelumnya"]}},88324:a=>{a.exports={en:["change column up color"],id_ID:["ubah warna kolom atas"]}},93890:a=>{a.exports={en:["change column down color"],id_ID:["ubah warna kolom bawah"]}},4727:a=>{a.exports={en:["change column price source"],id_ID:["ubah sumber kolom harga"]}},50544:a=>{a.exports={en:["change crosshair width"],id_ID:["ubah lebar crosshair"]}},92885:a=>{a.exports={en:["change crosshair color"],id_ID:["ubah warna crosshair"]}},68418:a=>{a.exports={en:["change crosshair style"],id_ID:["ubah corak crosshair"]}},43109:a=>{a.exports={en:["change date format"],id_ID:["ubah format tanggal"]}},30418:a=>{a.exports={en:["change day of week on labels"],id_ID:["ubah hari dalam seminggu pada label"]}},82063:a=>{a.exports={en:["change decimal places"],id_ID:["ubah jumlah desimal"]}},45397:a=>{a.exports={en:["change extended hours color"],id_ID:["ubah warna perpanjangan jam"]}},47393:a=>{a.exports={en:["change electronic trading hours"],id_ID:["Ubah jam trading elektronik"]}},73844:a=>{a.exports={en:["change grid lines visibility"],id_ID:["ubah visibilitas garis grid"]}},61407:a=>{a.exports={ -en:["change high and low price line color"],id_ID:["ubah warna garis harga tertinggi dan terendah"]}},39581:a=>{a.exports={en:["change high and low price line width"],id_ID:["ubah lebar garis harga tertinggi dan terendah"]}},6026:a=>{a.exports={en:["change high-low body color"],id_ID:["ubah warna badan tertinggi-terendah"]}},73021:a=>{a.exports={en:["change high-low body visibility"],id_ID:["ubah visibilitas badan tertinggi-terendah"]}},46844:a=>{a.exports={en:["change high-low border color"],id_ID:["ubah warna batas tertinggi-terendah"]}},15801:a=>{a.exports={en:["change high-low borders visibility"],id_ID:["ubah visibilitas batas tertinggi-terendah"]}},72399:a=>{a.exports={en:["change high-low labels visibility"],id_ID:["ubah visibilitas label tertinggi-terendah"]}},56961:a=>{a.exports={en:["change high-low labels color"],id_ID:["ubah warna label tertinggi-terendah"]}},21133:a=>{a.exports={en:["change horz grid lines color"],id_ID:["ubah warna garis grid horizontal"]}},63050:a=>{a.exports={en:["change indicator titles visibility"],id_ID:["ubah visibilitas judul indikator"]}},49583:a=>{a.exports={en:["change indicator values visibility"],id_ID:["ubah visibilitas nilai indikator"]}},75663:a=>{a.exports={en:["change indicator inputs visibility"],id_ID:["Ubah visibilitas input indikator"]}},35111:a=>{a.exports={en:["change indicators and financials name labels visibility"],id_ID:["ubah visibilitas label nama indikator dan finansial"]}},71161:a=>{a.exports={en:["change indicators and financials value labels visibility"],id_ID:["ubah visibilitas label nilai indikator dan finansial"]}},451:a=>{a.exports={en:["change interval watermark visibility"],id_ID:["ubah visibilitas tanda air interval"]}},66307:a=>{a.exports={en:["change last day change visibility"],id_ID:["ubah visibilitas perubahan hari terakhir"]}},91873:a=>{a.exports={en:["change legend background transparency"],id_ID:["ubah transparansi latar belakang legenda"]}},14246:a=>{a.exports={en:["change legend background visibility"],id_ID:["ubah visibilitas latar belakang legenda"]}},88640:a=>{a.exports={en:["change line color"],id_ID:["ubah warna garis"]}},28818:a=>{a.exports={en:["change line style"],id_ID:["Ubah Corak Garis"]}},41837:a=>{a.exports={en:["change line price source"],id_ID:["ubah sumber garis harga"]}},48339:a=>{a.exports={en:["change line width"],id_ID:["ubah lebar garis"]}},18378:a=>{a.exports={en:["change pane buttons visibility"],id_ID:["ubah visibilitas tombol pane"]}},52203:a=>{a.exports={en:["change pane separators color"],id_ID:["Ubah warna pemisah panel"]}},38730:a=>{a.exports={en:["change post market color"],id_ID:["ubah warna pasca pasar"]}},28075:a=>{a.exports={en:["change post market line color"],id_ID:["ubah warna garis pasca pasar"]}},91978:a=>{a.exports={en:["change pre/post market price lines visibility"],id_ID:["Ubah visibilitas harga pra/pasca pasar"]}},44371:a=>{a.exports={en:["change pre market color"],id_ID:["ubah warna pra pasar"]}},96114:a=>{a.exports={en:["change pre market line color"],id_ID:["ubah warna garis pra pasar"]}}, -69814:a=>{a.exports={en:["change previous close price line color"],id_ID:["ubah warna garis harga penutupan sebelumnya"]}},13660:a=>{a.exports={en:["change previous close price line width"],id_ID:["ubah lebar garis harga penutupan sebelumnya"]}},87861:a=>{a.exports={en:["change price line color"],id_ID:["ubah warna garis harga"]}},29353:a=>{a.exports={en:["change price line width"],id_ID:["ubah lebar garis harga"]}},16241:a=>{a.exports={en:["change range bars style"],id_ID:["Ubah corak bar rentang"]}},65821:a=>{a.exports={en:["change range thin bars"],id_ID:["ubah rentang bar tipis"]}},75487:a=>{a.exports={en:["change renko wick down color"],id_ID:["ubah warna sumbu bawah renko"]}},92277:a=>{a.exports={en:["change renko wick up color"],id_ID:["ubah warna sumbu atas renko"]}},79604:a=>{a.exports={en:["change renko wick visibility"],id_ID:["ubah visibilitas sumbu renko"]}},66021:a=>{a.exports={en:["change replay watermark visibility"],id_ID:["ubah visibilitas tanda air putar ulang"]}},82946:a=>{a.exports={en:["change right margin"],id_ID:["ubah margin kanan"]}},79545:a=>{a.exports={en:["change right margin percentage"],id_ID:["ubah persentase margin kanan"]}},18099:a=>{a.exports={en:["change symbol tiker watermark visibility"],id_ID:["ubah visibilitas tanda air ticker simbol"]}},78995:a=>{a.exports={en:["change symbol watermark color"],id_ID:["ubah warna watermark simbol"]}},73227:a=>{a.exports={en:["change symbol watermark visibility"],id_ID:["ubah visibilitas watermark simbol"]}},88167:a=>{a.exports={en:["change symbol description visibility"],id_ID:["ubah visibilitas deskripsi simbol"]}},65838:a=>{a.exports={en:["change symbol description watermark visibility"],id_ID:["ubah visibilitas tanda air deskripsi simbol"]}},12050:a=>{a.exports={en:["change symbol field visibility"],id_ID:["ubah visibilitas bidang simbol"]}},46066:a=>{a.exports={en:["change symbol last value mode"],id_ID:["ubah mode nilai terakhir simbol"]}},902:a=>{a.exports={en:["change symbol legend format"],id_ID:["ubah format legenda simbol"]}},77408:a=>{a.exports={en:["change save chart left edge position when changing interval"],id_ID:["ubah simpan posisi tepi kiri chart saat mengubah interval"]}},69023:a=>{a.exports={en:["change scale modes buttons visibility"],id_ID:["Ubah visibilitas tombol mode skala"]}},76131:a=>{a.exports={en:["change scales text color"],id_ID:["ubah warna skala teks"]}},27792:a=>{a.exports={en:["change scales font size"],id_ID:["ubah ukuran font skala"]}},94997:a=>{a.exports={en:["change scales lines color"],id_ID:["ubah warna garis skala"]}},60067:a=>{a.exports={en:["change sessions breaks visibility"],id_ID:["ubah visibilitas jeda sesi"]}},28175:a=>{a.exports={en:["change sessions breaks width"],id_ID:["ubah lebar jeda sesi"]}},33895:a=>{a.exports={en:["change sessions breaks color"],id_ID:["ubah warna jeda sesi"]}},21641:a=>{a.exports={en:["change sessions breaks style"],id_ID:["ubah corak jeda sesi"]}},16660:a=>{a.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"], -id_ID:["ubah tampilan dari harga sebenarnya pada skala harga (bukan harga Heiken-Ashi)"]}},60834:a=>{a.exports={en:["change thin bars"],id_ID:["ubah bar tipis"]}},39754:a=>{a.exports={en:["change time hours format"],id_ID:["Ubah format waktu jam"]}},74883:a=>{a.exports={en:["change top margin"],id_ID:["ubah margin atas"]}},51250:a=>{a.exports={en:["change unit label visibility"],id_ID:["ubah visibilitas label unit"]}},71805:a=>{a.exports={en:["change vert grid lines color"],id_ID:["ubah warna garis grid vertikal"]}},96201:a=>{a.exports={en:["change volume values visibility"],id_ID:["ubah visibilitas nilai volume"]}},17214:a=>{a.exports={en:["change {candleType} up border color"],id_ID:["ubah warna batas {candleType} naik"]}},36697:a=>{a.exports={en:["change {candleType} up color"],id_ID:["ubah warna {candleType} naik"]}},48091:a=>{a.exports={en:["change {candleType} wick down color"],id_ID:["ubah warna sumbu {candleType} turun"]}},97546:a=>{a.exports={en:["change {candleType} wick up color"],id_ID:["ubah warna sumbu {candleType} naik"]}},94750:a=>{a.exports={en:["change {candleType} wick visibility"],id_ID:["ubah visibilitas sumbu {candleType}"]}},60608:a=>{a.exports={en:["change {candleType} body visibility"],id_ID:["ubah visibilitas badan {candleType}"]}},11114:a=>{a.exports={en:["change {candleType} border visibility"],id_ID:["ubah visibilitas batas {candleType}"]}},20291:a=>{a.exports={en:["change {candleType} down border color"],id_ID:["ubah warna batas {candleType} turun"]}},64571:a=>{a.exports={en:["change {candleType} down color"],id_ID:["ubah warna {candleType} turun"]}},23053:a=>{a.exports={en:["change {chartType} border bar down color"],id_ID:["ubah warna batas bar {chartType} turun"]}},28394:a=>{a.exports={en:["change {chartType} border bar up color"],id_ID:["ubah warna batas bar {chartType} naik"]}},5012:a=>{a.exports={en:["change {chartType} down color"],id_ID:["ubah warna {chartType} turun"]}},42826:a=>{a.exports={en:["change {chartType} projection border bar up color"],id_ID:["ubah warna batas bar proyeksi {chartType} naik"]}},72545:a=>{a.exports={en:["change {chartType} projection bar down color"],id_ID:["ubah warna bar proyeksi {chartType} turun"]}},85032:a=>{a.exports={en:["change {chartType} projection bar up color"],id_ID:["ubah warna bar proyeksi {chartType} naik"]}},6970:a=>{a.exports={en:["change {chartType} up color"],id_ID:["ubah warna {chartType} naik"]}},66110:a=>{a.exports={en:["change {inputName} property"],id_ID:["ubah properti {inputName}"]}},18077:a=>{a.exports={en:["adjust data for dividends"],id_ID:["sesuaikan data untuk dividen"]}},1433:a=>{a.exports={en:["adjust for contract changes"],id_ID:["Penyesuaian untuk perubahan kontrak"]}},92598:a=>{a.exports={en:["hollow candles"],id_ID:["candle kosong"]}},57243:a=>{a.exports={en:["range","ranges"],id_ID:["rentang"]}},70282:a=>{a.exports={en:["renko"]}},18917:a=>{a.exports={en:["toggle inactivity gaps"],id_ID:["toggle gap ketidakaktifan"]}},92978:a=>{a.exports={en:["use settlement as close on daily interval"], -id_ID:["Gunakan penyelesaian sebagai penutupan pada interval harian"]}},59644:a=>{a.exports={en:["{value} decimal","{value} decimals"],id_ID:["{value} desimal"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/id_ID.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/id_ID.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..4c359a86 --- /dev/null +++ b/charting_library/bundles/id_ID.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,8 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:a=>{a.exports={en:["bars"],id_ID:["bar"]}},31882:a=>{a.exports={en:["12-hours"],id_ID:["12-jam"]}},5797:a=>{a.exports={en:["24-hours"],id_ID:["24-jam"]}},23111:a=>{a.exports={en:["Color bars based on previous close"],id_ID:["Warnai bar berdasarkan penutupan sebelumnya"]}},23739:a=>{a.exports={en:["Canvas"]}},24197:a=>{a.exports={en:["Center"],id_ID:["Tengah"]}},15153:a=>{a.exports={en:["Chart basic styles"],id_ID:["Chart corak basic"]}},45639:a=>{a.exports={en:["Chart values"],id_ID:["Nilai chart"]}},84831:a=>{a.exports={en:["Close line"],id_ID:["Garis Penutupan"]}},74622:a=>{a.exports={en:["Crosshair"]}},81849:a=>{a.exports={en:["Currency"],id_ID:["Mata Uang"]}},3015:a=>{a.exports={en:["Currency and Unit"],id_ID:["Mata uang dan unit"]}},93020:a=>{a.exports={en:["Adjust data for dividends"],id_ID:["Sesuaikan data untuk dividen"]}},68921:a=>{a.exports={en:["Adjust for contract changes"],id_ID:["Penyesuaian untuk perubahan kontrak"]}},36620:a=>{a.exports={en:["Alerts"],id_ID:["Peringatan"]}},68650:a=>{a.exports={en:["Average close"],id_ID:["Rata-rata penutupan"]}},27567:a=>{a.exports={en:["Bottom"],id_ID:["Dasar"]}},3159:a=>{a.exports={en:["Bottom line"],id_ID:["Garis Dasar"]}},74406:a=>{a.exports={en:["Body"],id_ID:["Badan"]}},333:a=>{a.exports={en:["Borders"],id_ID:["Batas-Batas"]}},79468:a=>{a.exports={en:["Background"],id_ID:["Latar"]}},10842:a=>{a.exports={en:["Bar change values"],id_ID:["Nilai Perubahan Bar"]}},70817:a=>{a.exports={en:["Bar change color based on value"]}},28975:a=>{a.exports={en:["Base level"],id_ID:["Level Dasar"]}},76473:a=>{a.exports={en:["Bid and ask"],id_ID:["Bid dan Ask"]}},32744:a=>{a.exports={en:["Buttons"],id_ID:["Tombol-tombol"]}},68662:a=>{a.exports={en:["Grid lines"],id_ID:["Garis grid"]}},17611:a=>{a.exports={en:["Down bars"],id_ID:["Bar turun"]}},23743:a=>{a.exports={en:["Down color"],id_ID:["Warna Turun"]}},48225:a=>{a.exports={en:["Data modification"],id_ID:["Modifikasi data"]}},84838:a=>{a.exports={en:["Date format"],id_ID:["Format Tanggal"]}},42357:a=>{a.exports={en:["Day of week on labels"],id_ID:["Hari dalam seminggu pada label"]}},16564:a=>{a.exports={en:["Default"],id_ID:["Bawaan"]}},78734:a=>{a.exports={en:["Description"],id_ID:["Deskripsi"]}},67036:a=>{a.exports={en:["Display inactivity gaps"],id_ID:["Tampilkan gap ketidakaktifan"]}},59777:a=>{a.exports={en:["Electronic trading hours background"],id_ID:["Latar belakang jam trading elektronik"]}},69808:a=>{a.exports={en:["Events"],id_ID:["Peristiwa"]}},41129:a=>{a.exports={en:["Fill"],id_ID:["Mengisi"]}},61112:a=>{a.exports={en:["Fill top area"],id_ID:["Isi area atas"]}},73185:a=>{a.exports={en:["Fill bottom area"],id_ID:["Isi Area Dasar"]}},3160:a=>{a.exports={en:["Horizontal"]}},61900:a=>{a.exports={en:["Horz only"],id_ID:["Hanya horizontal"]}},14180:a=>{a.exports={en:["High and low"],id_ID:["Tertinggi dan terendah"]}},56359:a=>{a.exports={en:["High line"],id_ID:["Garis High"]}},47326:a=>{a.exports={en:["Integer"],id_ID:["Bilangan bulat"]} +},17854:a=>{a.exports={en:["Interval"]}},84549:a=>{a.exports={en:["Indicators"],id_ID:["Indikator"]}},78082:a=>{a.exports={en:["Indicators and financials"],id_ID:["Indikator dan finansial"]}},21429:a=>{a.exports={en:["Inputs"],id_ID:["Input"]}},25765:a=>{a.exports={en:["Open market status"],id_ID:["Tampilkan status pasar Buka"]}},34579:a=>{a.exports={en:["Low line"],id_ID:["Garis Low"]}},14876:a=>{a.exports={en:["Logo"]}},89315:a=>{a.exports={en:["Long Description"],id_ID:["Deskripsi Panjang"]}},72423:a=>{a.exports={en:["Last day change values"],id_ID:["Nilai perubahan hari terakhir"]}},11626:a=>{a.exports={en:["Left"],id_ID:["Kiri"]}},56982:a=>{a.exports={en:["Lines"],id_ID:["Garis"]}},8249:a=>{a.exports={en:["Money"],id_ID:["Uang"]}},70937:a=>{a.exports={en:["Margins"],id_ID:["Marjin"]}},68833:a=>{a.exports={en:["Middle"],id_ID:["Tengah"]}},58589:a=>{a.exports={en:["No overlapping labels"],id_ID:["Label Tertumpuk Tidak Diperbolehkan"]}},60798:a=>{a.exports={en:["None"],id_ID:["Tidak satu pun"]}},51019:a=>{a.exports={en:["Navigation"],id_ID:["Navigasi"]}},99709:a=>{a.exports={en:["Name"],id_ID:["Nama"]}},8852:a=>{a.exports={en:["Save chart left edge position when changing interval"],id_ID:["Simpan posisi tepi kiri chart saat mengubah interval"]}},26204:a=>{a.exports={en:["Scale modes (A and L)"],id_ID:["Mode skala (A dan L)"]}},93968:a=>{a.exports={en:["Scales"],id_ID:["Skala"]}},90275:a=>{a.exports={en:["Scales and lines"],id_ID:["Skala dan garis"]}},30042:a=>{a.exports={en:["Scales placement"],id_ID:["Penempatan Skala"]}},28715:a=>{a.exports={en:["Status line"],id_ID:["Baris status"]}},95481:a=>{a.exports={en:["Symbol"],id_ID:["Simbol"]}},53263:a=>{a.exports={en:["Pane"],id_ID:["Panel"]}},82894:a=>{a.exports={en:["Pane separators"],id_ID:["Pemisah panel"]}},86235:a=>{a.exports={en:["Percentage"],id_ID:["Persentase"]}},94408:a=>{a.exports={en:["Pips"],id_ID:["Pip"]}},60904:a=>{a.exports={en:["Pre/post market"],id_ID:["Pra/Pasca pasar"]}},88327:a=>{a.exports={en:["Pre/post market hours background"],id_ID:["Latar jam pra/pasca pasar"]}},59766:a=>{a.exports={en:["Precision"],id_ID:["Presisi"]}},83811:a=>{a.exports={en:["Previous day close"],id_ID:["Penutupan hari sebelumnya"]}},35082:a=>{a.exports={en:["Price Scale"],id_ID:["Skala Harga"]}},27632:a=>{a.exports={en:["Price and percentage value"],id_ID:["Nilai Harga dan Persentase"]}},62142:a=>{a.exports={en:["Price labels & lines"],id_ID:["Label harga & garis"]}},84684:a=>{a.exports={en:["Price source"],id_ID:["Sumber Harga"]}},73466:a=>{a.exports={en:["Projection up bars"],id_ID:["Proyeksi bar naik"]}},77430:a=>{a.exports={en:["Projection candles"],id_ID:["Candle proyeksi"]}},88367:a=>{a.exports={en:["Projection down bars"],id_ID:["Proyeksi bar turun"]}},6160:a=>{a.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],id_ID:["Harga sebenarnya pada skala harga (bukan harga Heikin-Ashi)"]}},50421:a=>{a.exports={en:["Right"],id_ID:["Kanan"]}},62532:a=>{a.exports={en:["Right Margin"],id_ID:["Margin Kanan"]}},41571:a=>{a.exports={en:["Watermark"], +id_ID:["Tanda air"]}},32163:a=>{a.exports={en:["Wick"],id_ID:["Sumbu"]}},97118:a=>{a.exports={en:["Top"],id_ID:["Teratas"]}},89349:a=>{a.exports={en:["Top line"],id_ID:["Garis Atas"]}},70320:a=>{a.exports={en:["Text"],id_ID:["Teks"]}},25485:a=>{a.exports={en:["Text alignment"],id_ID:["Perataan teks"]}},67781:a=>{a.exports={en:["Text orientation"],id_ID:["Orientasi teks"]}},20215:a=>{a.exports={en:["Thin bars"],id_ID:["Bar Tipis"]}},70198:a=>{a.exports={en:["Title"],id_ID:["Judul"]}},29854:a=>{a.exports={en:["Titles"],id_ID:["Judul"]}},5791:a=>{a.exports={en:["Ticker"]}},16816:a=>{a.exports={en:["Ticker and description"],id_ID:["Ticker dan deskripsi"]}},24821:a=>{a.exports={en:["Ticks"],id_ID:["Tick"]}},93965:a=>{a.exports={en:["Time Scale"],id_ID:["Skala waktu"]}},5591:a=>{a.exports={en:["Time hours format"],id_ID:["Format waktu jam"]}},77073:a=>{a.exports={en:["Timezone"],id_ID:["Zona waktu"]}},76495:a=>{a.exports={en:["Trading"]}},33564:a=>{a.exports={en:["Unit"]}},23091:a=>{a.exports={en:["Up color"],id_ID:["Warna Naik"]}},36957:a=>{a.exports={en:["Up bars"],id_ID:["Bar naik"]}},49545:a=>{a.exports={en:["Use settlement as close on daily interval"],id_ID:["Gunakan penyelesaian sebagai penutupan pada interval harian"]}},37644:a=>{a.exports={en:["Volume"]}},51514:a=>{a.exports={en:["Value"],id_ID:["Nilai"]}},31218:a=>{a.exports={en:["Value according to scale"],id_ID:["Nilai menurut Skala"]}},60092:a=>{a.exports={en:["Values"],id_ID:["Nilai"]}},83594:a=>{a.exports={en:["Vert and horz"],id_ID:["Vertikal dan horizontal"]}},8402:a=>{a.exports={en:["Vert only"],id_ID:["Hanya vertikal"]}},69526:a=>{a.exports={en:["Vertical"]}},21105:a=>{a.exports={en:["candle"]}},27068:a=>{a.exports={en:["change HLC bars"],id_ID:["ubah bar HLC"]}},21201:a=>{a.exports={en:["change HLC bars color"],id_ID:["ubah warna bar HLC"]}},3311:a=>{a.exports={en:["change navigation buttons visibility"],id_ID:["ubah visibilitas tombol navigasi"]}},96227:a=>{a.exports={en:["change open market status visibility"],id_ID:["ubah visibilitas status market yang terbuka"]}},43231:a=>{a.exports={en:["change average close price line width"],id_ID:["ubah lebar garis harga rata-rata penutupan"]}},47026:a=>{a.exports={en:["change average close price line color"],id_ID:["ubah warna garis harga rata-rata penutupan"]}},29281:a=>{a.exports={en:["change area fill color"],id_ID:["ubah isian warna area"]}},27059:a=>{a.exports={en:["change area line visibility"],id_ID:["Ubah visibilitas garis area"]}},89346:a=>{a.exports={en:["change area line width"],id_ID:["ubah lebar area garis"]}},29605:a=>{a.exports={en:["change area line color"],id_ID:["ubah warna area garis"]}},56864:a=>{a.exports={en:["change area line style"],id_ID:["ubah corak garis area"]}},4640:a=>{a.exports={en:["change area price source"],id_ID:["ubah sumber area harga"]}},98407:a=>{a.exports={en:["change ask line color"],id_ID:["ubah warna garis harga ask"]}},42190:a=>{a.exports={en:["change base level"],id_ID:["ubah level dasar"]}},71785:a=>{a.exports={en:["change baseline bottom line color"], +id_ID:["ubah warna garis dasar bawah"]}},85684:a=>{a.exports={en:["change baseline bottom line style"],id_ID:["ubah corak garis bagian bawah garis dasar"]}},56175:a=>{a.exports={en:["change baseline bottom line width"],id_ID:["ubah lebar garis dasar bawah"]}},97216:a=>{a.exports={en:["change baseline fill bottom area color"],id_ID:["ubah isian warna area bawah dari garis dasar"]}},92873:a=>{a.exports={en:["change baseline fill top area color"],id_ID:["ubah isian warna area atas dari garis dasar"]}},68609:a=>{a.exports={en:["change baseline price source"],id_ID:["ubah sumber garis dasar harga"]}},69044:a=>{a.exports={en:["change baseline top line color"],id_ID:["ubah warna garis dasar atas"]}},4425:a=>{a.exports={en:["change baseline top line style"],id_ID:["ubah corak garis bagian atas garis dasar"]}},68197:a=>{a.exports={en:["change baseline top line width"],id_ID:["ubah lebar garis dasar atas"]}},33464:a=>{a.exports={en:["change bar up color"],id_ID:["ubah warna bar naik"]}},14201:a=>{a.exports={en:["change bar change down color"]}},30196:a=>{a.exports={en:["change bar change up color"]}},27426:a=>{a.exports={en:["change bar change visibility"],id_ID:["ubah visibilitas perubahan bar"]}},59622:a=>{a.exports={en:["change bar down color"],id_ID:["ubah warna bar turun"]}},17919:a=>{a.exports={en:["change bid line color"],id_ID:["ubah warna garis harga bid"]}},32094:a=>{a.exports={en:["change bottom margin"],id_ID:["ubah margin bawah"]}},63119:a=>{a.exports={en:["change currency and unit labels visibility"],id_ID:["ubah visibilitas label mata uang dan unit"]}},64003:a=>{a.exports={en:["change currency label visibility"],id_ID:["ubah visibilitas label mata uang"]}},42803:a=>{a.exports={en:["change chart background color"],id_ID:["ubah warna latar belakang chart"]}},41382:a=>{a.exports={en:["change chart background type"],id_ID:["ubah tipe latar belakang chart"]}},79637:a=>{a.exports={en:["change chart values visibility"],id_ID:["Ubah visibilitas nilai chart"]}},43090:a=>{a.exports={en:["change color bars based on previous close"],id_ID:["ubah warna bar berdasarkan penutupan sebelumnya"]}},88324:a=>{a.exports={en:["change column up color"],id_ID:["ubah warna kolom atas"]}},93890:a=>{a.exports={en:["change column down color"],id_ID:["ubah warna kolom bawah"]}},4727:a=>{a.exports={en:["change column price source"],id_ID:["ubah sumber kolom harga"]}},50544:a=>{a.exports={en:["change crosshair width"],id_ID:["ubah lebar crosshair"]}},92885:a=>{a.exports={en:["change crosshair color"],id_ID:["ubah warna crosshair"]}},68418:a=>{a.exports={en:["change crosshair style"],id_ID:["ubah corak crosshair"]}},43109:a=>{a.exports={en:["change date format"],id_ID:["ubah format tanggal"]}},30418:a=>{a.exports={en:["change day of week on labels"],id_ID:["ubah hari dalam seminggu pada label"]}},82063:a=>{a.exports={en:["change decimal places"],id_ID:["ubah jumlah desimal"]}},45397:a=>{a.exports={en:["change extended hours color"],id_ID:["ubah warna perpanjangan jam"]}},47393:a=>{a.exports={en:["change electronic trading hours"], +id_ID:["Ubah jam trading elektronik"]}},73844:a=>{a.exports={en:["change grid lines visibility"],id_ID:["ubah visibilitas garis grid"]}},61407:a=>{a.exports={en:["change high and low price line color"],id_ID:["ubah warna garis harga tertinggi dan terendah"]}},39581:a=>{a.exports={en:["change high and low price line width"],id_ID:["ubah lebar garis harga tertinggi dan terendah"]}},6026:a=>{a.exports={en:["change high-low body color"],id_ID:["ubah warna badan tertinggi-terendah"]}},73021:a=>{a.exports={en:["change high-low body visibility"],id_ID:["ubah visibilitas badan tertinggi-terendah"]}},46844:a=>{a.exports={en:["change high-low border color"],id_ID:["ubah warna batas tertinggi-terendah"]}},15801:a=>{a.exports={en:["change high-low borders visibility"],id_ID:["ubah visibilitas batas tertinggi-terendah"]}},72399:a=>{a.exports={en:["change high-low labels visibility"],id_ID:["ubah visibilitas label tertinggi-terendah"]}},56961:a=>{a.exports={en:["change high-low labels color"],id_ID:["ubah warna label tertinggi-terendah"]}},21133:a=>{a.exports={en:["change horz grid lines color"],id_ID:["ubah warna garis grid horizontal"]}},63050:a=>{a.exports={en:["change indicator titles visibility"],id_ID:["ubah visibilitas judul indikator"]}},49583:a=>{a.exports={en:["change indicator values visibility"],id_ID:["ubah visibilitas nilai indikator"]}},75663:a=>{a.exports={en:["change indicator inputs visibility"],id_ID:["Ubah visibilitas input indikator"]}},35111:a=>{a.exports={en:["change indicators and financials name labels visibility"],id_ID:["ubah visibilitas label nama indikator dan finansial"]}},71161:a=>{a.exports={en:["change indicators and financials value labels visibility"],id_ID:["ubah visibilitas label nilai indikator dan finansial"]}},451:a=>{a.exports={en:["change interval watermark visibility"],id_ID:["ubah visibilitas tanda air interval"]}},66307:a=>{a.exports={en:["change last day change visibility"],id_ID:["ubah visibilitas perubahan hari terakhir"]}},91873:a=>{a.exports={en:["change legend background transparency"],id_ID:["ubah transparansi latar belakang legenda"]}},14246:a=>{a.exports={en:["change legend background visibility"],id_ID:["ubah visibilitas latar belakang legenda"]}},88640:a=>{a.exports={en:["change line color"],id_ID:["ubah warna garis"]}},28818:a=>{a.exports={en:["change line style"],id_ID:["Ubah Corak Garis"]}},41837:a=>{a.exports={en:["change line price source"],id_ID:["ubah sumber garis harga"]}},48339:a=>{a.exports={en:["change line width"],id_ID:["ubah lebar garis"]}},18378:a=>{a.exports={en:["change pane buttons visibility"],id_ID:["ubah visibilitas tombol pane"]}},52203:a=>{a.exports={en:["change pane separators color"],id_ID:["Ubah warna pemisah panel"]}},38730:a=>{a.exports={en:["change post market color"],id_ID:["ubah warna pasca pasar"]}},28075:a=>{a.exports={en:["change post market line color"],id_ID:["ubah warna garis pasca pasar"]}},91978:a=>{a.exports={en:["change pre/post market price lines visibility"],id_ID:["Ubah visibilitas harga pra/pasca pasar"]}},44371:a=>{a.exports={ +en:["change pre market color"],id_ID:["ubah warna pra pasar"]}},96114:a=>{a.exports={en:["change pre market line color"],id_ID:["ubah warna garis pra pasar"]}},69814:a=>{a.exports={en:["change previous close price line color"],id_ID:["ubah warna garis harga penutupan sebelumnya"]}},13660:a=>{a.exports={en:["change previous close price line width"],id_ID:["ubah lebar garis harga penutupan sebelumnya"]}},87861:a=>{a.exports={en:["change price line color"],id_ID:["ubah warna garis harga"]}},29353:a=>{a.exports={en:["change price line width"],id_ID:["ubah lebar garis harga"]}},16241:a=>{a.exports={en:["change range bars style"],id_ID:["Ubah corak bar rentang"]}},65821:a=>{a.exports={en:["change range thin bars"],id_ID:["ubah rentang bar tipis"]}},75487:a=>{a.exports={en:["change renko wick down color"],id_ID:["ubah warna sumbu bawah renko"]}},92277:a=>{a.exports={en:["change renko wick up color"],id_ID:["ubah warna sumbu atas renko"]}},79604:a=>{a.exports={en:["change renko wick visibility"],id_ID:["ubah visibilitas sumbu renko"]}},66021:a=>{a.exports={en:["change replay watermark visibility"],id_ID:["ubah visibilitas tanda air putar ulang"]}},82946:a=>{a.exports={en:["change right margin"],id_ID:["ubah margin kanan"]}},79545:a=>{a.exports={en:["change right margin percentage"],id_ID:["ubah persentase margin kanan"]}},18099:a=>{a.exports={en:["change symbol tiker watermark visibility"],id_ID:["ubah visibilitas tanda air ticker simbol"]}},78995:a=>{a.exports={en:["change symbol watermark color"],id_ID:["ubah warna watermark simbol"]}},73227:a=>{a.exports={en:["change symbol watermark visibility"],id_ID:["ubah visibilitas watermark simbol"]}},88167:a=>{a.exports={en:["change symbol description visibility"],id_ID:["ubah visibilitas deskripsi simbol"]}},65838:a=>{a.exports={en:["change symbol description watermark visibility"],id_ID:["ubah visibilitas tanda air deskripsi simbol"]}},12050:a=>{a.exports={en:["change symbol field visibility"],id_ID:["ubah visibilitas bidang simbol"]}},46066:a=>{a.exports={en:["change symbol last value mode"],id_ID:["ubah mode nilai terakhir simbol"]}},902:a=>{a.exports={en:["change symbol legend format"],id_ID:["ubah format legenda simbol"]}},77408:a=>{a.exports={en:["change save chart left edge position when changing interval"],id_ID:["ubah simpan posisi tepi kiri chart saat mengubah interval"]}},69023:a=>{a.exports={en:["change scale modes buttons visibility"],id_ID:["Ubah visibilitas tombol mode skala"]}},76131:a=>{a.exports={en:["change scales text color"],id_ID:["ubah warna skala teks"]}},27792:a=>{a.exports={en:["change scales font size"],id_ID:["ubah ukuran font skala"]}},94997:a=>{a.exports={en:["change scales lines color"],id_ID:["ubah warna garis skala"]}},60067:a=>{a.exports={en:["change sessions breaks visibility"],id_ID:["ubah visibilitas jeda sesi"]}},28175:a=>{a.exports={en:["change sessions breaks width"],id_ID:["ubah lebar jeda sesi"]}},33895:a=>{a.exports={en:["change sessions breaks color"],id_ID:["ubah warna jeda sesi"]}},21641:a=>{a.exports={ +en:["change sessions breaks style"],id_ID:["ubah corak jeda sesi"]}},16660:a=>{a.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],id_ID:["ubah tampilan dari harga sebenarnya pada skala harga (bukan harga Heiken-Ashi)"]}},60834:a=>{a.exports={en:["change thin bars"],id_ID:["ubah bar tipis"]}},39754:a=>{a.exports={en:["change time hours format"],id_ID:["Ubah format waktu jam"]}},74883:a=>{a.exports={en:["change top margin"],id_ID:["ubah margin atas"]}},51250:a=>{a.exports={en:["change unit label visibility"],id_ID:["ubah visibilitas label unit"]}},28142:a=>{a.exports={en:["change use custom bar change colors"]}},71805:a=>{a.exports={en:["change vert grid lines color"],id_ID:["ubah warna garis grid vertikal"]}},96201:a=>{a.exports={en:["change volume values visibility"],id_ID:["ubah visibilitas nilai volume"]}},17214:a=>{a.exports={en:["change {candleType} up border color"],id_ID:["ubah warna batas {candleType} naik"]}},36697:a=>{a.exports={en:["change {candleType} up color"],id_ID:["ubah warna {candleType} naik"]}},48091:a=>{a.exports={en:["change {candleType} wick down color"],id_ID:["ubah warna sumbu {candleType} turun"]}},97546:a=>{a.exports={en:["change {candleType} wick up color"],id_ID:["ubah warna sumbu {candleType} naik"]}},94750:a=>{a.exports={en:["change {candleType} wick visibility"],id_ID:["ubah visibilitas sumbu {candleType}"]}},60608:a=>{a.exports={en:["change {candleType} body visibility"],id_ID:["ubah visibilitas badan {candleType}"]}},11114:a=>{a.exports={en:["change {candleType} border visibility"],id_ID:["ubah visibilitas batas {candleType}"]}},20291:a=>{a.exports={en:["change {candleType} down border color"],id_ID:["ubah warna batas {candleType} turun"]}},64571:a=>{a.exports={en:["change {candleType} down color"],id_ID:["ubah warna {candleType} turun"]}},23053:a=>{a.exports={en:["change {chartType} border bar down color"],id_ID:["ubah warna batas bar {chartType} turun"]}},28394:a=>{a.exports={en:["change {chartType} border bar up color"],id_ID:["ubah warna batas bar {chartType} naik"]}},5012:a=>{a.exports={en:["change {chartType} down color"],id_ID:["ubah warna {chartType} turun"]}},42826:a=>{a.exports={en:["change {chartType} projection border bar up color"],id_ID:["ubah warna batas bar proyeksi {chartType} naik"]}},72545:a=>{a.exports={en:["change {chartType} projection bar down color"],id_ID:["ubah warna bar proyeksi {chartType} turun"]}},85032:a=>{a.exports={en:["change {chartType} projection bar up color"],id_ID:["ubah warna bar proyeksi {chartType} naik"]}},6970:a=>{a.exports={en:["change {chartType} up color"],id_ID:["ubah warna {chartType} naik"]}},66110:a=>{a.exports={en:["change {inputName} property"],id_ID:["ubah properti {inputName}"]}},18077:a=>{a.exports={en:["adjust data for dividends"],id_ID:["sesuaikan data untuk dividen"]}},1433:a=>{a.exports={en:["adjust for contract changes"],id_ID:["Penyesuaian untuk perubahan kontrak"]}},92598:a=>{a.exports={en:["hollow candles"],id_ID:["candle kosong"]}},57243:a=>{a.exports={en:["range","ranges"], +id_ID:["rentang"]}},70282:a=>{a.exports={en:["renko"]}},18917:a=>{a.exports={en:["toggle inactivity gaps"],id_ID:["toggle gap ketidakaktifan"]}},92978:a=>{a.exports={en:["use settlement as close on daily interval"],id_ID:["Gunakan penyelesaian sebagai penutupan pada interval harian"]}},59644:a=>{a.exports={en:["{value} decimal","{value} decimals"],id_ID:["{value} desimal"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/it.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/it.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index 530aa4a1..00000000 --- a/charting_library/bundles/it.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,8 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:e=>{e.exports={en:["bars"],it:["barre"]}},31882:e=>{e.exports={en:["12-hours"],it:["12 ore"]}},5797:e=>{e.exports={en:["24-hours"],it:["24 ore"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],it:["Colore basato sulla chiusura precedente"]}},23739:e=>{e.exports={en:["Canvas"]}},24197:e=>{e.exports={en:["Center"],it:["Centro"]}},15153:e=>{e.exports={en:["Chart basic styles"],it:["Stili base del grafico"]}},45639:e=>{e.exports={en:["Chart values"],it:["Valori del grafico"]}},84831:e=>{e.exports={en:["Close line"],it:["Linea chiusura"]}},74622:e=>{e.exports={en:["Crosshair"],it:["Cursore"]}},81849:e=>{e.exports={en:["Currency"],it:["Valuta"]}},3015:e=>{e.exports={en:["Currency and Unit"],it:["Valuta ed unità"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],it:["Adegua i dati a seconda dei dividendi"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],it:["Incorpora variazioni dovute al cambio di contratto"]}},36620:e=>{e.exports={en:["Alerts"],it:["Alert"]}},68650:e=>{e.exports={en:["Average close"],it:["Chiusura media"]}},27567:e=>{e.exports={en:["Bottom"],it:["Sotto"]}},3159:e=>{e.exports={en:["Bottom line"],it:["Linea inferiore"]}},74406:e=>{e.exports={en:["Body"],it:["Corpo"]}},333:e=>{e.exports={en:["Borders"],it:["Bordi"]}},79468:e=>{e.exports={en:["Background"],it:["Sfondo"]}},10842:e=>{e.exports={en:["Bar change values"],it:["Variazione barre"]}},28975:e=>{e.exports={en:["Base level"],it:["Livello base"]}},76473:e=>{e.exports={en:["Bid and ask"],it:["Bid e Ask"]}},32744:e=>{e.exports={en:["Buttons"],it:["Pulsanti"]}},68662:e=>{e.exports={en:["Grid lines"],it:["Linee griglia"]}},17611:e=>{e.exports={en:["Down bars"],it:["Barre giù"]}},23743:e=>{e.exports={en:["Down color"],it:["Colore giù"]}},48225:e=>{e.exports={en:["Data modification"],it:["Modifica dei dati"]}},84838:e=>{e.exports={en:["Date format"],it:["Formato data"]}},42357:e=>{e.exports={en:["Day of week on labels"],it:["Giorno della settimana sulle etichette"]}},16564:e=>{e.exports={en:["Default"],it:["Predefinito"]}},78734:e=>{e.exports={en:["Description"],it:["Descrizione"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],it:["Visualizza gap di inattività"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],it:["Orario di contrattazione elettronica"]}},69808:e=>{e.exports={en:["Events"],it:["Eventi"]}},41129:e=>{e.exports={en:["Fill"],it:["Riempi"]}},61112:e=>{e.exports={en:["Fill top area"],it:["Riempimento area su"]}},73185:e=>{e.exports={en:["Fill bottom area"],it:["Riempimento area inf"]}},3160:e=>{e.exports={en:["Horizontal"],it:["Orizzontale"]}},61900:e=>{e.exports={en:["Horz only"],it:["Solo orizz"]}},14180:e=>{e.exports={en:["High and low"],it:["Massimo e minimo"]}},56359:e=>{e.exports={en:["High line"],it:["Linea massimo"]}},47326:e=>{e.exports={en:["Integer"],it:["Intero"]}},17854:e=>{e.exports={en:["Interval"],it:["Timeframe"]}},84549:e=>{e.exports={en:["Indicators"],it:["Indicatori"]}},78082:e=>{ -e.exports={en:["Indicators and financials"],it:["Indicatori e dati finanziari"]}},21429:e=>{e.exports={en:["Inputs"],it:["Input"]}},25765:e=>{e.exports={en:["Open market status"],it:["Mercato aperto"]}},34579:e=>{e.exports={en:["Low line"],it:["Linea minimo"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"],it:["Descrizione lunga"]}},72423:e=>{e.exports={en:["Last day change values"],it:["Variazione sul giorno precedente"]}},11626:e=>{e.exports={en:["Left"],it:["Sinistra"]}},56982:e=>{e.exports={en:["Lines"],it:["Linee"]}},8249:e=>{e.exports={en:["Money"],it:["Denaro"]}},70937:e=>{e.exports={en:["Margins"],it:["Margini"]}},68833:e=>{e.exports={en:["Middle"],it:["Medio"]}},58589:e=>{e.exports={en:["No overlapping labels"],it:["Nessuna etichetta sovrapposta"]}},60798:e=>{e.exports={en:["None"],it:["Nessuno"]}},51019:e=>{e.exports={en:["Navigation"],it:["Controlli navigazione"]}},99709:e=>{e.exports={en:["Name"],it:["Nome"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],it:["Salva la posizione del bordo sinistro del grafico quando si cambia intervallo"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],it:["Modalità di scala (A e L)"]}},93968:e=>{e.exports={en:["Scales"],it:["Assi"]}},90275:e=>{e.exports={en:["Scales and lines"],it:["Scale e linee"]}},30042:e=>{e.exports={en:["Scales placement"],it:["Posizione assi"]}},28715:e=>{e.exports={en:["Status line"],it:["Legenda"]}},95481:e=>{e.exports={en:["Symbol"],it:["Simbolo"]}},53263:e=>{e.exports={en:["Pane"],it:["Pannello"]}},82894:e=>{e.exports={en:["Pane separators"],it:["Separatori pannello"]}},86235:e=>{e.exports={en:["Percentage"],it:["Percentuale"]}},94408:e=>{e.exports={en:["Pips"],it:["Pip/Tick"]}},60904:e=>{e.exports={en:["Pre/post market"],it:["Pre/post mercato"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],it:["Sfondo sessione pre e post mercato"]}},59766:e=>{e.exports={en:["Precision"],it:["Precisione"]}},83811:e=>{e.exports={en:["Previous day close"],it:["Chiusura giorno precedente"]}},35082:e=>{e.exports={en:["Price Scale"],it:["Asse del prezzo"]}},27632:e=>{e.exports={en:["Price and percentage value"],it:["Valore di prezzo e percentuale"]}},62142:e=>{e.exports={en:["Price labels & lines"],it:["Etichette e linee di prezzo"]}},84684:e=>{e.exports={en:["Price source"],it:["Fonte prezzo"]}},73466:e=>{e.exports={en:["Projection up bars"],it:["Barre a proiezione superiore"]}},77430:e=>{e.exports={en:["Projection candles"],it:["Candele di proiezione"]}},88367:e=>{e.exports={en:["Projection down bars"],it:["Barre a proiezione inferiore"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],it:["Prezzi reali sull'asse (invece di quelli Heikin Ashi)"]}},50421:e=>{e.exports={en:["Right"],it:["Destra"]}},62532:e=>{e.exports={en:["Right Margin"],it:["Margine destro"]}},41571:e=>{e.exports={en:["Watermark"],it:["Filigrana"]}},32163:e=>{e.exports={en:["Wick"],it:["Ombra"]}},97118:e=>{e.exports={en:["Top"],it:["Sopra"]}},89349:e=>{e.exports={ -en:["Top line"],it:["Linea superiore"]}},70320:e=>{e.exports={en:["Text"],it:["Testo"]}},25485:e=>{e.exports={en:["Text alignment"],it:["Allineamento testo"]}},67781:e=>{e.exports={en:["Text orientation"],it:["Orientamento testo"]}},20215:e=>{e.exports={en:["Thin bars"],it:["Barre sottili"]}},70198:e=>{e.exports={en:["Title"],it:["Titolo"]}},29854:e=>{e.exports={en:["Titles"],it:["Titoli"]}},5791:e=>{e.exports={en:["Ticker"]}},16816:e=>{e.exports={en:["Ticker and description"],it:["Ticker e descrizione"]}},24821:e=>{e.exports={en:["Ticks"],it:["Tick"]}},93965:e=>{e.exports={en:["Time Scale"],it:["Asse temporale"]}},5591:e=>{e.exports={en:["Time hours format"],it:["Formato orario"]}},77073:e=>{e.exports={en:["Timezone"],it:["Fuso orario"]}},76495:e=>{e.exports={en:["Trading"]}},33564:e=>{e.exports={en:["Unit"],it:["Unità"]}},23091:e=>{e.exports={en:["Up color"],it:["Colore su"]}},36957:e=>{e.exports={en:["Up bars"],it:["Barre su"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],it:["Usa il settlement come chiusura nel giornaliero"]}},37644:e=>{e.exports={en:["Volume"]}},51514:e=>{e.exports={en:["Value"],it:["Valore"]}},31218:e=>{e.exports={en:["Value according to scale"],it:["Valore asse"]}},60092:e=>{e.exports={en:["Values"],it:["Valori"]}},83594:e=>{e.exports={en:["Vert and horz"],it:["Vert e orizz"]}},8402:e=>{e.exports={en:["Vert only"],it:["Solo vert."]}},69526:e=>{e.exports={en:["Vertical"],it:["Verticale"]}},21105:e=>{e.exports={en:["candle"],it:["candela"]}},27068:e=>{e.exports={en:["change HLC bars"],it:["cambio barre HLC"]}},21201:e=>{e.exports={en:["change HLC bars color"],it:["modifica colore barre HLC"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],it:["cambio visibilità pulsanti navigazione"]}},96227:e=>{e.exports={en:["change open market status visibility"],it:["cambio visibilità stato di mercato"]}},43231:e=>{e.exports={en:["change average close price line width"],it:["modifica spessore della linea del prezzo medio di chiusura"]}},47026:e=>{e.exports={en:["change average close price line color"],it:["modifica colore della linea del prezzo medio di chiusura"]}},29281:e=>{e.exports={en:["change area fill color"],it:["cambio colore riempimento area"]}},27059:e=>{e.exports={en:["change area line visibility"],it:["modifica visibilità linea dell'area"]}},89346:e=>{e.exports={en:["change area line width"],it:["cambio spessore linea area"]}},29605:e=>{e.exports={en:["change area line color"],it:["cambio colore linea area"]}},56864:e=>{e.exports={en:["change area line style"],it:["modifica stile linea area"]}},4640:e=>{e.exports={en:["change area price source"],it:["cambio fonte area prezzo"]}},98407:e=>{e.exports={en:["change ask line color"],it:["cambio colore linea lettera (ask)"]}},42190:e=>{e.exports={en:["change base level"],it:["cambio livello base"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],it:["cambio colore inf baseline"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],it:["modifica stile linea base inferiore"]}}, -56175:e=>{e.exports={en:["change baseline bottom line width"],it:["cambio spessore linea inf baseline"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],it:["cambio colore riempimento area inf baseline"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],it:["cambio colore riempimento area sup baseline"]}},68609:e=>{e.exports={en:["change baseline price source"],it:["cambio fonte prezzo baseline"]}},69044:e=>{e.exports={en:["change baseline top line color"],it:["cambio colore sup baseline"]}},4425:e=>{e.exports={en:["change baseline top line style"],it:["modifica stile linea superiore linea base"]}},68197:e=>{e.exports={en:["change baseline top line width"],it:["cambio spessore linea sup baseline"]}},33464:e=>{e.exports={en:["change bar up color"],it:["cambio colore barra su"]}},27426:e=>{e.exports={en:["change bar change visibility"],it:["cambio visibilità variazione barre"]}},59622:e=>{e.exports={en:["change bar down color"],it:["cambio colore barra giù"]}},17919:e=>{e.exports={en:["change bid line color"],it:["cambio colore linea denaro (bid)"]}},32094:e=>{e.exports={en:["change bottom margin"],it:["cambio margine inf"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],it:["cambio visibilità etichette valuta e unità"]}},64003:e=>{e.exports={en:["change currency label visibility"],it:["cambio visibilità etichetta valuta"]}},42803:e=>{e.exports={en:["change chart background color"],it:["cambio colore sfondo grafico"]}},41382:e=>{e.exports={en:["change chart background type"],it:["cambio tipologia sfondo grafico"]}},79637:e=>{e.exports={en:["change chart values visibility"],it:["modifica visibilità dei valori del grafico"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],it:["cambio colore basato su chiusura prec"]}},88324:e=>{e.exports={en:["change column up color"],it:["cambio colore colonna sup"]}},93890:e=>{e.exports={en:["change column down color"],it:["cambio colore colonna inf"]}},4727:e=>{e.exports={en:["change column price source"],it:["cambio fonte dati colonna"]}},50544:e=>{e.exports={en:["change crosshair width"],it:["cambio spessore linea croce"]}},92885:e=>{e.exports={en:["change crosshair color"],it:["cambio colore linea croce"]}},68418:e=>{e.exports={en:["change crosshair style"],it:["cambio stile linea croce"]}},43109:e=>{e.exports={en:["change date format"],it:["cambio formato data"]}},30418:e=>{e.exports={en:["change day of week on labels"],it:["cambia il giorno della settimana sulle etichette"]}},82063:e=>{e.exports={en:["change decimal places"],it:["cambio cifre decimali"]}},45397:e=>{e.exports={en:["change extended hours color"],it:["cambio colore orari estesi"]}},47393:e=>{e.exports={en:["change electronic trading hours"],it:["modifica orari di negoziazione elettronica"]}},73844:e=>{e.exports={en:["change grid lines visibility"],it:["cambia la visibilità delle linee della griglia"]}},61407:e=>{e.exports={en:["change high and low price line color"],it:["modifica colore delle linee dei prezzi massimi e minimi"]}}, -39581:e=>{e.exports={en:["change high and low price line width"],it:["modifica spessore delle linee dei prezzi massimi e minimi"]}},6026:e=>{e.exports={en:["change high-low body color"],it:["cambio colore corpo max-min"]}},73021:e=>{e.exports={en:["change high-low body visibility"],it:["cambio visibilità corpo max-min"]}},46844:e=>{e.exports={en:["change high-low border color"],it:["cambio colore bordo max-min"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],it:["cambio visibilità bordi max-min"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],it:["cambio visibilità etichette max-min"]}},56961:e=>{e.exports={en:["change high-low labels color"],it:["cambio colore etichette max-min"]}},21133:e=>{e.exports={en:["change horz grid lines color"],it:["cambio colore linee orizz griglia"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],it:["cambio visibilità titoli indicatore"]}},49583:e=>{e.exports={en:["change indicator values visibility"],it:["cambio visibilità valori indicatore"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],it:["modifica visibilità degli input dell'indicatore"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],it:["cambia visibilità etichette nomi indicatori e finanziari"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],it:["cambia visibilità etichette valori indicatori e finanziari"]}},451:e=>{e.exports={en:["change interval watermark visibility"],it:["modifica visibilità della filigrana dell'intervallo"]}},66307:e=>{e.exports={en:["change last day change visibility"],it:["variazione visibilità della variazione nell'ultimo giorno di negoziazione"]}},91873:e=>{e.exports={en:["change legend background transparency"],it:["cambio trasparenza sfondo legenda"]}},14246:e=>{e.exports={en:["change legend background visibility"],it:["cambio visibilità sfondo legenda"]}},88640:e=>{e.exports={en:["change line color"],it:["cambio colore linea"]}},28818:e=>{e.exports={en:["change line style"],it:["Cambia stile linea"]}},41837:e=>{e.exports={en:["change line price source"],it:["cambio fonte linea prezzo"]}},48339:e=>{e.exports={en:["change line width"],it:["cambio spessore linea"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],it:["cambio visibilità pulsanti pannelli"]}},52203:e=>{e.exports={en:["change pane separators color"],it:["cambio colore separatori pannello"]}},38730:e=>{e.exports={en:["change post market color"],it:["cambio colore post mercato"]}},28075:e=>{e.exports={en:["change post market line color"],it:["cambio colore linea post mercato"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],it:["cambia visibilità linee prezzo pre e post mercato"]}},44371:e=>{e.exports={en:["change pre market color"],it:["cambio colore pre mercato"]}},96114:e=>{e.exports={en:["change pre market line color"],it:["cambio colore linea pre mercato"]}},69814:e=>{e.exports={en:["change previous close price line color"], -it:["cambio colore linea prezzo chiusura prec"]}},13660:e=>{e.exports={en:["change previous close price line width"],it:["cambio spessore linea prezzo chiusura prec"]}},87861:e=>{e.exports={en:["change price line color"],it:["cambio colore linea prezzo"]}},29353:e=>{e.exports={en:["change price line width"],it:["cambio spessore linea prezzo"]}},16241:e=>{e.exports={en:["change range bars style"],it:["cambia lo stile delle barre range"]}},65821:e=>{e.exports={en:["change range thin bars"],it:["cambio range barre sottili"]}},75487:e=>{e.exports={en:["change renko wick down color"],it:["cambio colore ombra inf renko"]}},92277:e=>{e.exports={en:["change renko wick up color"],it:["cambio colore ombra sup renko"]}},79604:e=>{e.exports={en:["change renko wick visibility"],it:["cambio visibilità ombra renko"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],it:["modifica visibilità della filigrana del replay"]}},82946:e=>{e.exports={en:["change right margin"],it:["cambio margine dx"]}},79545:e=>{e.exports={en:["change right margin percentage"],it:["modifica percentuale del margine destro"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],it:["modifica visibilità della filigrana del ticker del simbolo"]}},78995:e=>{e.exports={en:["change symbol watermark color"],it:["cambio colore filigrana"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],it:["cambio visibilità filigrana"]}},88167:e=>{e.exports={en:["change symbol description visibility"],it:["cambio visibilità descrizione simbolo"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],it:["modifica visibilità della filigrana della descrizione del simbolo"]}},12050:e=>{e.exports={en:["change symbol field visibility"],it:["cambia la visibilità del campo dei simboli"]}},46066:e=>{e.exports={en:["change symbol last value mode"],it:["cambio modalità ultimo valore simbolo"]}},902:e=>{e.exports={en:["change symbol legend format"],it:["cambio formato legenda simbolo"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],it:["modifica del salvataggio della posizione del bordo sinistro del grafico quando si cambia intervallo"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],it:["cambia la visibilità dei pulsanti delle modalità di scala"]}},76131:e=>{e.exports={en:["change scales text color"],it:["cambio colore testo assi"]}},27792:e=>{e.exports={en:["change scales font size"],it:["cambio dimensione font assi"]}},94997:e=>{e.exports={en:["change scales lines color"],it:["cambio colore linee assi"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],it:["cambio visibilità separatori sessione"]}},28175:e=>{e.exports={en:["change sessions breaks width"],it:["cambio spessore separatori sessione"]}},33895:e=>{e.exports={en:["change sessions breaks color"],it:["cambio colore separatori sessione"]}},21641:e=>{e.exports={en:["change sessions breaks style"],it:["cambio stile separatori sessione"]}},16660:e=>{e.exports={ -en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],it:["cambio prezzo da mostrare nell'asse (al posto di quello Heikin-Ashi)"]}},60834:e=>{e.exports={en:["change thin bars"],it:["cambio spessore barre"]}},39754:e=>{e.exports={en:["change time hours format"],it:["cambio formato orario"]}},74883:e=>{e.exports={en:["change top margin"],it:["cambio margine sup"]}},51250:e=>{e.exports={en:["change unit label visibility"],it:["cambio visibilità etichetta unità"]}},71805:e=>{e.exports={en:["change vert grid lines color"],it:["cambio colore linee vert griglia"]}},96201:e=>{e.exports={en:["change volume values visibility"],it:["cambio visibilità valori volume"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],it:["cambio colore bordo sup {candleType}"]}},36697:e=>{e.exports={en:["change {candleType} up color"],it:["cambio colore sup {candleType}"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],it:["cambio colore ombra inf {candleType}"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],it:["cambio colore ombra sup {candleType}"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],it:["cambio visibilità ombra {candleType}"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],it:["cambio visibilità corpo {candleType}"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],it:["cambio visibilità bordo {candleType}"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],it:["cambio colore bordo inf {candleType}"]}},64571:e=>{e.exports={en:["change {candleType} down color"],it:["cambio colore inf {candleType}"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],it:["cambio colore bordo inf {chartType}"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],it:["cambio colore bordo sup {chartType}"]}},5012:e=>{e.exports={en:["change {chartType} down color"],it:["cambio colore inf {chartType}"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],it:["cambio colore bordo proiezione sup {chartType}"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],it:["cambio colore proiezione inf {chartType}"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],it:["cambio colore proiezione sup {chartType}"]}},6970:e=>{e.exports={en:["change {chartType} up color"],it:["cambio colore sup {chartType}"]}},66110:e=>{e.exports={en:["change {inputName} property"],it:["cambio proprietà {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],it:["adegua i dati a seconda dei dividendi"]}},1433:e=>{e.exports={en:["adjust for contract changes"],it:["incorpora variazioni dovute a cambio di contratti"]}},92598:e=>{e.exports={en:["hollow candles"],it:["Candele vuote"]}},57243:e=>{e.exports={en:["range","ranges"],it:["range","range"]}},70282:e=>{e.exports={en:["renko"],it:["Renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],it:["Attiva/disattiva gap inattività"]}},92978:e=>{e.exports={ -en:["use settlement as close on daily interval"],it:["usa il settlement come chiusura nel giornaliero"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],it:["{value} decimale","{value} decimali"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/it.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/it.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..18f30208 --- /dev/null +++ b/charting_library/bundles/it.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,8 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:e=>{e.exports={en:["bars"],it:["barre"]}},31882:e=>{e.exports={en:["12-hours"],it:["12 ore"]}},5797:e=>{e.exports={en:["24-hours"],it:["24 ore"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],it:["Colore basato sulla chiusura precedente"]}},23739:e=>{e.exports={en:["Canvas"]}},24197:e=>{e.exports={en:["Center"],it:["Centro"]}},15153:e=>{e.exports={en:["Chart basic styles"],it:["Stili base del grafico"]}},45639:e=>{e.exports={en:["Chart values"],it:["Valori del grafico"]}},84831:e=>{e.exports={en:["Close line"],it:["Linea chiusura"]}},74622:e=>{e.exports={en:["Crosshair"],it:["Cursore"]}},81849:e=>{e.exports={en:["Currency"],it:["Valuta"]}},3015:e=>{e.exports={en:["Currency and Unit"],it:["Valuta ed unità"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],it:["Adegua i dati a seconda dei dividendi"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],it:["Incorpora variazioni dovute al cambio di contratto"]}},36620:e=>{e.exports={en:["Alerts"],it:["Alert"]}},68650:e=>{e.exports={en:["Average close"],it:["Chiusura media"]}},27567:e=>{e.exports={en:["Bottom"],it:["Sotto"]}},3159:e=>{e.exports={en:["Bottom line"],it:["Linea inferiore"]}},74406:e=>{e.exports={en:["Body"],it:["Corpo"]}},333:e=>{e.exports={en:["Borders"],it:["Bordi"]}},79468:e=>{e.exports={en:["Background"],it:["Sfondo"]}},10842:e=>{e.exports={en:["Bar change values"],it:["Variazione barre"]}},70817:e=>{e.exports={en:["Bar change color based on value"]}},28975:e=>{e.exports={en:["Base level"],it:["Livello base"]}},76473:e=>{e.exports={en:["Bid and ask"],it:["Bid e Ask"]}},32744:e=>{e.exports={en:["Buttons"],it:["Pulsanti"]}},68662:e=>{e.exports={en:["Grid lines"],it:["Linee griglia"]}},17611:e=>{e.exports={en:["Down bars"],it:["Barre giù"]}},23743:e=>{e.exports={en:["Down color"],it:["Colore giù"]}},48225:e=>{e.exports={en:["Data modification"],it:["Modifica dei dati"]}},84838:e=>{e.exports={en:["Date format"],it:["Formato data"]}},42357:e=>{e.exports={en:["Day of week on labels"],it:["Giorno della settimana sulle etichette"]}},16564:e=>{e.exports={en:["Default"],it:["Predefinito"]}},78734:e=>{e.exports={en:["Description"],it:["Descrizione"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],it:["Visualizza gap di inattività"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],it:["Orario di contrattazione elettronica"]}},69808:e=>{e.exports={en:["Events"],it:["Eventi"]}},41129:e=>{e.exports={en:["Fill"],it:["Riempi"]}},61112:e=>{e.exports={en:["Fill top area"],it:["Riempimento area su"]}},73185:e=>{e.exports={en:["Fill bottom area"],it:["Riempimento area inf"]}},3160:e=>{e.exports={en:["Horizontal"],it:["Orizzontale"]}},61900:e=>{e.exports={en:["Horz only"],it:["Solo orizz"]}},14180:e=>{e.exports={en:["High and low"],it:["Massimo e minimo"]}},56359:e=>{e.exports={en:["High line"],it:["Linea massimo"]}},47326:e=>{e.exports={en:["Integer"],it:["Intero"]}},17854:e=>{e.exports={en:["Interval"],it:["Timeframe"]}},84549:e=>{ +e.exports={en:["Indicators"],it:["Indicatori"]}},78082:e=>{e.exports={en:["Indicators and financials"],it:["Indicatori e dati finanziari"]}},21429:e=>{e.exports={en:["Inputs"],it:["Input"]}},25765:e=>{e.exports={en:["Open market status"],it:["Mercato aperto"]}},34579:e=>{e.exports={en:["Low line"],it:["Linea minimo"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"],it:["Descrizione lunga"]}},72423:e=>{e.exports={en:["Last day change values"],it:["Variazione sul giorno precedente"]}},11626:e=>{e.exports={en:["Left"],it:["Sinistra"]}},56982:e=>{e.exports={en:["Lines"],it:["Linee"]}},8249:e=>{e.exports={en:["Money"],it:["Denaro"]}},70937:e=>{e.exports={en:["Margins"],it:["Margini"]}},68833:e=>{e.exports={en:["Middle"],it:["Medio"]}},58589:e=>{e.exports={en:["No overlapping labels"],it:["Nessuna etichetta sovrapposta"]}},60798:e=>{e.exports={en:["None"],it:["Nessuno"]}},51019:e=>{e.exports={en:["Navigation"],it:["Controlli navigazione"]}},99709:e=>{e.exports={en:["Name"],it:["Nome"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],it:["Salva la posizione del bordo sinistro del grafico quando si cambia intervallo"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],it:["Modalità di scala (A e L)"]}},93968:e=>{e.exports={en:["Scales"],it:["Assi"]}},90275:e=>{e.exports={en:["Scales and lines"],it:["Scale e linee"]}},30042:e=>{e.exports={en:["Scales placement"],it:["Posizione assi"]}},28715:e=>{e.exports={en:["Status line"],it:["Legenda"]}},95481:e=>{e.exports={en:["Symbol"],it:["Simbolo"]}},53263:e=>{e.exports={en:["Pane"],it:["Pannello"]}},82894:e=>{e.exports={en:["Pane separators"],it:["Separatori pannello"]}},86235:e=>{e.exports={en:["Percentage"],it:["Percentuale"]}},94408:e=>{e.exports={en:["Pips"],it:["Pip/Tick"]}},60904:e=>{e.exports={en:["Pre/post market"],it:["Pre/post mercato"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],it:["Sfondo sessione pre e post mercato"]}},59766:e=>{e.exports={en:["Precision"],it:["Precisione"]}},83811:e=>{e.exports={en:["Previous day close"],it:["Chiusura giorno precedente"]}},35082:e=>{e.exports={en:["Price Scale"],it:["Asse del prezzo"]}},27632:e=>{e.exports={en:["Price and percentage value"],it:["Valore di prezzo e percentuale"]}},62142:e=>{e.exports={en:["Price labels & lines"],it:["Etichette e linee di prezzo"]}},84684:e=>{e.exports={en:["Price source"],it:["Fonte prezzo"]}},73466:e=>{e.exports={en:["Projection up bars"],it:["Barre a proiezione superiore"]}},77430:e=>{e.exports={en:["Projection candles"],it:["Candele di proiezione"]}},88367:e=>{e.exports={en:["Projection down bars"],it:["Barre a proiezione inferiore"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],it:["Prezzi reali sull'asse (invece di quelli Heikin Ashi)"]}},50421:e=>{e.exports={en:["Right"],it:["Destra"]}},62532:e=>{e.exports={en:["Right Margin"],it:["Margine destro"]}},41571:e=>{e.exports={en:["Watermark"],it:["Filigrana"]}},32163:e=>{e.exports={en:["Wick"],it:["Ombra"]}},97118:e=>{ +e.exports={en:["Top"],it:["Sopra"]}},89349:e=>{e.exports={en:["Top line"],it:["Linea superiore"]}},70320:e=>{e.exports={en:["Text"],it:["Testo"]}},25485:e=>{e.exports={en:["Text alignment"],it:["Allineamento testo"]}},67781:e=>{e.exports={en:["Text orientation"],it:["Orientamento testo"]}},20215:e=>{e.exports={en:["Thin bars"],it:["Barre sottili"]}},70198:e=>{e.exports={en:["Title"],it:["Titolo"]}},29854:e=>{e.exports={en:["Titles"],it:["Titoli"]}},5791:e=>{e.exports={en:["Ticker"]}},16816:e=>{e.exports={en:["Ticker and description"],it:["Ticker e descrizione"]}},24821:e=>{e.exports={en:["Ticks"],it:["Tick"]}},93965:e=>{e.exports={en:["Time Scale"],it:["Asse temporale"]}},5591:e=>{e.exports={en:["Time hours format"],it:["Formato orario"]}},77073:e=>{e.exports={en:["Timezone"],it:["Fuso orario"]}},76495:e=>{e.exports={en:["Trading"]}},33564:e=>{e.exports={en:["Unit"],it:["Unità"]}},23091:e=>{e.exports={en:["Up color"],it:["Colore su"]}},36957:e=>{e.exports={en:["Up bars"],it:["Barre su"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],it:["Usa il settlement come chiusura nel giornaliero"]}},37644:e=>{e.exports={en:["Volume"]}},51514:e=>{e.exports={en:["Value"],it:["Valore"]}},31218:e=>{e.exports={en:["Value according to scale"],it:["Valore asse"]}},60092:e=>{e.exports={en:["Values"],it:["Valori"]}},83594:e=>{e.exports={en:["Vert and horz"],it:["Vert e orizz"]}},8402:e=>{e.exports={en:["Vert only"],it:["Solo vert."]}},69526:e=>{e.exports={en:["Vertical"],it:["Verticale"]}},21105:e=>{e.exports={en:["candle"],it:["candela"]}},27068:e=>{e.exports={en:["change HLC bars"],it:["cambio barre HLC"]}},21201:e=>{e.exports={en:["change HLC bars color"],it:["modifica colore barre HLC"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],it:["cambio visibilità pulsanti navigazione"]}},96227:e=>{e.exports={en:["change open market status visibility"],it:["cambio visibilità stato di mercato"]}},43231:e=>{e.exports={en:["change average close price line width"],it:["modifica spessore della linea del prezzo medio di chiusura"]}},47026:e=>{e.exports={en:["change average close price line color"],it:["modifica colore della linea del prezzo medio di chiusura"]}},29281:e=>{e.exports={en:["change area fill color"],it:["cambio colore riempimento area"]}},27059:e=>{e.exports={en:["change area line visibility"],it:["modifica visibilità linea dell'area"]}},89346:e=>{e.exports={en:["change area line width"],it:["cambio spessore linea area"]}},29605:e=>{e.exports={en:["change area line color"],it:["cambio colore linea area"]}},56864:e=>{e.exports={en:["change area line style"],it:["modifica stile linea area"]}},4640:e=>{e.exports={en:["change area price source"],it:["cambio fonte area prezzo"]}},98407:e=>{e.exports={en:["change ask line color"],it:["cambio colore linea lettera (ask)"]}},42190:e=>{e.exports={en:["change base level"],it:["cambio livello base"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],it:["cambio colore inf baseline"]}},85684:e=>{e.exports={ +en:["change baseline bottom line style"],it:["modifica stile linea base inferiore"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],it:["cambio spessore linea inf baseline"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],it:["cambio colore riempimento area inf baseline"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],it:["cambio colore riempimento area sup baseline"]}},68609:e=>{e.exports={en:["change baseline price source"],it:["cambio fonte prezzo baseline"]}},69044:e=>{e.exports={en:["change baseline top line color"],it:["cambio colore sup baseline"]}},4425:e=>{e.exports={en:["change baseline top line style"],it:["modifica stile linea superiore linea base"]}},68197:e=>{e.exports={en:["change baseline top line width"],it:["cambio spessore linea sup baseline"]}},33464:e=>{e.exports={en:["change bar up color"],it:["cambio colore barra su"]}},14201:e=>{e.exports={en:["change bar change down color"]}},30196:e=>{e.exports={en:["change bar change up color"]}},27426:e=>{e.exports={en:["change bar change visibility"],it:["cambio visibilità variazione barre"]}},59622:e=>{e.exports={en:["change bar down color"],it:["cambio colore barra giù"]}},17919:e=>{e.exports={en:["change bid line color"],it:["cambio colore linea denaro (bid)"]}},32094:e=>{e.exports={en:["change bottom margin"],it:["cambio margine inf"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],it:["cambio visibilità etichette valuta e unità"]}},64003:e=>{e.exports={en:["change currency label visibility"],it:["cambio visibilità etichetta valuta"]}},42803:e=>{e.exports={en:["change chart background color"],it:["cambio colore sfondo grafico"]}},41382:e=>{e.exports={en:["change chart background type"],it:["cambio tipologia sfondo grafico"]}},79637:e=>{e.exports={en:["change chart values visibility"],it:["modifica visibilità dei valori del grafico"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],it:["cambio colore basato su chiusura prec"]}},88324:e=>{e.exports={en:["change column up color"],it:["cambio colore colonna sup"]}},93890:e=>{e.exports={en:["change column down color"],it:["cambio colore colonna inf"]}},4727:e=>{e.exports={en:["change column price source"],it:["cambio fonte dati colonna"]}},50544:e=>{e.exports={en:["change crosshair width"],it:["cambio spessore linea croce"]}},92885:e=>{e.exports={en:["change crosshair color"],it:["cambio colore linea croce"]}},68418:e=>{e.exports={en:["change crosshair style"],it:["cambio stile linea croce"]}},43109:e=>{e.exports={en:["change date format"],it:["cambio formato data"]}},30418:e=>{e.exports={en:["change day of week on labels"],it:["cambia il giorno della settimana sulle etichette"]}},82063:e=>{e.exports={en:["change decimal places"],it:["cambio cifre decimali"]}},45397:e=>{e.exports={en:["change extended hours color"],it:["cambio colore orari estesi"]}},47393:e=>{e.exports={en:["change electronic trading hours"],it:["modifica orari di negoziazione elettronica"]}},73844:e=>{e.exports={ +en:["change grid lines visibility"],it:["cambia la visibilità delle linee della griglia"]}},61407:e=>{e.exports={en:["change high and low price line color"],it:["modifica colore delle linee dei prezzi massimi e minimi"]}},39581:e=>{e.exports={en:["change high and low price line width"],it:["modifica spessore delle linee dei prezzi massimi e minimi"]}},6026:e=>{e.exports={en:["change high-low body color"],it:["cambio colore corpo max-min"]}},73021:e=>{e.exports={en:["change high-low body visibility"],it:["cambio visibilità corpo max-min"]}},46844:e=>{e.exports={en:["change high-low border color"],it:["cambio colore bordo max-min"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],it:["cambio visibilità bordi max-min"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],it:["cambio visibilità etichette max-min"]}},56961:e=>{e.exports={en:["change high-low labels color"],it:["cambio colore etichette max-min"]}},21133:e=>{e.exports={en:["change horz grid lines color"],it:["cambio colore linee orizz griglia"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],it:["cambio visibilità titoli indicatore"]}},49583:e=>{e.exports={en:["change indicator values visibility"],it:["cambio visibilità valori indicatore"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],it:["modifica visibilità degli input dell'indicatore"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],it:["cambia visibilità etichette nomi indicatori e finanziari"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],it:["cambia visibilità etichette valori indicatori e finanziari"]}},451:e=>{e.exports={en:["change interval watermark visibility"],it:["modifica visibilità della filigrana dell'intervallo"]}},66307:e=>{e.exports={en:["change last day change visibility"],it:["variazione visibilità della variazione nell'ultimo giorno di negoziazione"]}},91873:e=>{e.exports={en:["change legend background transparency"],it:["cambio trasparenza sfondo legenda"]}},14246:e=>{e.exports={en:["change legend background visibility"],it:["cambio visibilità sfondo legenda"]}},88640:e=>{e.exports={en:["change line color"],it:["cambio colore linea"]}},28818:e=>{e.exports={en:["change line style"],it:["Cambia stile linea"]}},41837:e=>{e.exports={en:["change line price source"],it:["cambio fonte linea prezzo"]}},48339:e=>{e.exports={en:["change line width"],it:["cambio spessore linea"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],it:["cambio visibilità pulsanti pannelli"]}},52203:e=>{e.exports={en:["change pane separators color"],it:["cambio colore separatori pannello"]}},38730:e=>{e.exports={en:["change post market color"],it:["cambio colore post mercato"]}},28075:e=>{e.exports={en:["change post market line color"],it:["cambio colore linea post mercato"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],it:["cambia visibilità linee prezzo pre e post mercato"]}},44371:e=>{e.exports={en:["change pre market color"], +it:["cambio colore pre mercato"]}},96114:e=>{e.exports={en:["change pre market line color"],it:["cambio colore linea pre mercato"]}},69814:e=>{e.exports={en:["change previous close price line color"],it:["cambio colore linea prezzo chiusura prec"]}},13660:e=>{e.exports={en:["change previous close price line width"],it:["cambio spessore linea prezzo chiusura prec"]}},87861:e=>{e.exports={en:["change price line color"],it:["cambio colore linea prezzo"]}},29353:e=>{e.exports={en:["change price line width"],it:["cambio spessore linea prezzo"]}},16241:e=>{e.exports={en:["change range bars style"],it:["cambia lo stile delle barre range"]}},65821:e=>{e.exports={en:["change range thin bars"],it:["cambio range barre sottili"]}},75487:e=>{e.exports={en:["change renko wick down color"],it:["cambio colore ombra inf renko"]}},92277:e=>{e.exports={en:["change renko wick up color"],it:["cambio colore ombra sup renko"]}},79604:e=>{e.exports={en:["change renko wick visibility"],it:["cambio visibilità ombra renko"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],it:["modifica visibilità della filigrana del replay"]}},82946:e=>{e.exports={en:["change right margin"],it:["cambio margine dx"]}},79545:e=>{e.exports={en:["change right margin percentage"],it:["modifica percentuale del margine destro"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],it:["modifica visibilità della filigrana del ticker del simbolo"]}},78995:e=>{e.exports={en:["change symbol watermark color"],it:["cambio colore filigrana"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],it:["cambio visibilità filigrana"]}},88167:e=>{e.exports={en:["change symbol description visibility"],it:["cambio visibilità descrizione simbolo"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],it:["modifica visibilità della filigrana della descrizione del simbolo"]}},12050:e=>{e.exports={en:["change symbol field visibility"],it:["cambia la visibilità del campo dei simboli"]}},46066:e=>{e.exports={en:["change symbol last value mode"],it:["cambio modalità ultimo valore simbolo"]}},902:e=>{e.exports={en:["change symbol legend format"],it:["cambio formato legenda simbolo"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],it:["modifica del salvataggio della posizione del bordo sinistro del grafico quando si cambia intervallo"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],it:["cambia la visibilità dei pulsanti delle modalità di scala"]}},76131:e=>{e.exports={en:["change scales text color"],it:["cambio colore testo assi"]}},27792:e=>{e.exports={en:["change scales font size"],it:["cambio dimensione font assi"]}},94997:e=>{e.exports={en:["change scales lines color"],it:["cambio colore linee assi"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],it:["cambio visibilità separatori sessione"]}},28175:e=>{e.exports={en:["change sessions breaks width"],it:["cambio spessore separatori sessione"]}},33895:e=>{e.exports={ +en:["change sessions breaks color"],it:["cambio colore separatori sessione"]}},21641:e=>{e.exports={en:["change sessions breaks style"],it:["cambio stile separatori sessione"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],it:["cambio prezzo da mostrare nell'asse (al posto di quello Heikin-Ashi)"]}},60834:e=>{e.exports={en:["change thin bars"],it:["cambio spessore barre"]}},39754:e=>{e.exports={en:["change time hours format"],it:["cambio formato orario"]}},74883:e=>{e.exports={en:["change top margin"],it:["cambio margine sup"]}},51250:e=>{e.exports={en:["change unit label visibility"],it:["cambio visibilità etichetta unità"]}},28142:e=>{e.exports={en:["change use custom bar change colors"]}},71805:e=>{e.exports={en:["change vert grid lines color"],it:["cambio colore linee vert griglia"]}},96201:e=>{e.exports={en:["change volume values visibility"],it:["cambio visibilità valori volume"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],it:["cambio colore bordo sup {candleType}"]}},36697:e=>{e.exports={en:["change {candleType} up color"],it:["cambio colore sup {candleType}"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],it:["cambio colore ombra inf {candleType}"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],it:["cambio colore ombra sup {candleType}"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],it:["cambio visibilità ombra {candleType}"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],it:["cambio visibilità corpo {candleType}"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],it:["cambio visibilità bordo {candleType}"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],it:["cambio colore bordo inf {candleType}"]}},64571:e=>{e.exports={en:["change {candleType} down color"],it:["cambio colore inf {candleType}"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],it:["cambio colore bordo inf {chartType}"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],it:["cambio colore bordo sup {chartType}"]}},5012:e=>{e.exports={en:["change {chartType} down color"],it:["cambio colore inf {chartType}"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],it:["cambio colore bordo proiezione sup {chartType}"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],it:["cambio colore proiezione inf {chartType}"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],it:["cambio colore proiezione sup {chartType}"]}},6970:e=>{e.exports={en:["change {chartType} up color"],it:["cambio colore sup {chartType}"]}},66110:e=>{e.exports={en:["change {inputName} property"],it:["cambio proprietà {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],it:["adegua i dati a seconda dei dividendi"]}},1433:e=>{e.exports={en:["adjust for contract changes"],it:["incorpora variazioni dovute a cambio di contratti"]}},92598:e=>{e.exports={ +en:["hollow candles"],it:["Candele vuote"]}},57243:e=>{e.exports={en:["range","ranges"],it:["range","range"]}},70282:e=>{e.exports={en:["renko"],it:["Renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],it:["Attiva/disattiva gap inattività"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],it:["usa il settlement come chiusura nel giornaliero"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],it:["{value} decimale","{value} decimali"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/ja.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/ja.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index 2c081548..00000000 --- a/charting_library/bundles/ja.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,6 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:e=>{e.exports={en:["bars"],ja:["バー"]}},31882:e=>{e.exports={en:["12-hours"],ja:["12時間"]}},5797:e=>{e.exports={en:["24-hours"],ja:["24時間"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],ja:["(現在足の始値基準ではなく)前の足の終値基準でバーの色を判定"]}},23739:e=>{e.exports={en:["Canvas"],ja:["キャンバス"]}},24197:e=>{e.exports={en:["Center"],ja:["中央"]}},15153:e=>{e.exports={en:["Chart basic styles"],ja:["チャートの基本スタイル"]}},45639:e=>{e.exports={en:["Chart values"],ja:["チャートの値"]}},84831:e=>{e.exports={en:["Close line"],ja:["ライン - 終値"]}},74622:e=>{e.exports={en:["Crosshair"],ja:["十字カーソル"]}},81849:e=>{e.exports={en:["Currency"],ja:["通貨"]}},3015:e=>{e.exports={en:["Currency and Unit"],ja:["通貨と単位"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],ja:["配当でデータを調整"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],ja:["限月の切り替えを調整"]}},36620:e=>{e.exports={en:["Alerts"],ja:["アラート"]}},68650:e=>{e.exports={en:["Average close"],ja:["平均終値"]}},27567:e=>{e.exports={en:["Bottom"],ja:["下"]}},3159:e=>{e.exports={en:["Bottom line"],ja:["下部ライン"]}},74406:e=>{e.exports={en:["Body"],ja:["実体"]}},333:e=>{e.exports={en:["Borders"],ja:["枠"]}},79468:e=>{e.exports={en:["Background"],ja:["背景"]}},10842:e=>{e.exports={en:["Bar change values"],ja:["バーの変動値"]}},28975:e=>{e.exports={en:["Base level"],ja:["基準レベル"]}},76473:e=>{e.exports={en:["Bid and ask"],ja:["Bid/Ask"]}},32744:e=>{e.exports={en:["Buttons"],ja:["ボタン"]}},68662:e=>{e.exports={en:["Grid lines"],ja:["グリッドライン"]}},17611:e=>{e.exports={en:["Down bars"],ja:["下降バー"]}},23743:e=>{e.exports={en:["Down color"],ja:["下降カラー"]}},48225:e=>{e.exports={en:["Data modification"],ja:["データの調整"]}},84838:e=>{e.exports={en:["Date format"],ja:["日付の形式"]}},42357:e=>{e.exports={en:["Day of week on labels"],ja:["曜日の表示"]}},16564:e=>{e.exports={en:["Default"],ja:["デフォルト"]}},78734:e=>{e.exports={en:["Description"],ja:["詳細"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],ja:["インアクティビティ・ギャップを表示"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],ja:["電子取引時間の背景"]}},69808:e=>{e.exports={en:["Events"],ja:["イベント"]}},41129:e=>{e.exports={en:["Fill"],ja:["塗りつぶし"]}},61112:e=>{e.exports={en:["Fill top area"],ja:["上部エリア"]}},73185:e=>{e.exports={en:["Fill bottom area"],ja:["下部エリア"]}},3160:e=>{e.exports={en:["Horizontal"],ja:["水平"]}},61900:e=>{e.exports={en:["Horz only"],ja:["水平線のみ"]}},14180:e=>{e.exports={en:["High and low"],ja:["高値・安値"]}},56359:e=>{e.exports={en:["High line"],ja:["ライン - 高値"]}},47326:e=>{e.exports={en:["Integer"],ja:["整数"]}},17854:e=>{e.exports={en:["Interval"],ja:["時間足"]}},84549:e=>{e.exports={en:["Indicators"],ja:["インジケーター"]}},78082:e=>{e.exports={en:["Indicators and financials"],ja:["インジケーターと財務指標"]}},21429:e=>{e.exports={en:["Inputs"],ja:["パラメーター"]}},25765:e=>{e.exports={en:["Open market status"],ja:["市場の開始状況を表示"]}},34579:e=>{e.exports={en:["Low line"],ja:["ライン - 安値"]}},14876:e=>{e.exports={en:["Logo"],ja:["ロゴ"]}},89315:e=>{e.exports={en:["Long Description"],ja:["説明文"]}},72423:e=>{e.exports={ -en:["Last day change values"],ja:["前日からの変動値"]}},11626:e=>{e.exports={en:["Left"],ja:["左"]}},56982:e=>{e.exports={en:["Lines"],ja:["ライン"]}},8249:e=>{e.exports={en:["Money"],ja:["金額"]}},70937:e=>{e.exports={en:["Margins"],ja:["マージン"]}},68833:e=>{e.exports={en:["Middle"],ja:["中央"]}},58589:e=>{e.exports={en:["No overlapping labels"],ja:["ラベルを重ねない"]}},60798:e=>{e.exports={en:["None"],ja:["なし"]}},51019:e=>{e.exports={en:["Navigation"],ja:["ナビゲーション"]}},99709:e=>{e.exports={en:["Name"],ja:["名前"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],ja:["時間足の変更時にチャート左端の位置を保存"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],ja:["スケールモード (A と L)"]}},93968:e=>{e.exports={en:["Scales"],ja:["スケール"]}},90275:e=>{e.exports={en:["Scales and lines"],ja:["スケールとライン"]}},30042:e=>{e.exports={en:["Scales placement"],ja:["スケールの配置"]}},28715:e=>{e.exports={en:["Status line"],ja:["ステータスライン"]}},95481:e=>{e.exports={en:["Symbol"],ja:["シンボル"]}},53263:e=>{e.exports={en:["Pane"],ja:["ペイン"]}},82894:e=>{e.exports={en:["Pane separators"],ja:["ペインの境界線"]}},86235:e=>{e.exports={en:["Percentage"],ja:["パーセント"]}},94408:e=>{e.exports={en:["Pips"]}},60904:e=>{e.exports={en:["Pre/post market"],ja:["プレ/アフターマーケット"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],ja:["プレ/アフターマーケット時間の背景"]}},59766:e=>{e.exports={en:["Precision"],ja:["精度"]}},83811:e=>{e.exports={en:["Previous day close"],ja:["前日終値"]}},35082:e=>{e.exports={en:["Price Scale"],ja:["価格スケール"]}},27632:e=>{e.exports={en:["Price and percentage value"],ja:["価格とパーセント値"]}},62142:e=>{e.exports={en:["Price labels & lines"],ja:["価格ラベルとライン"]}},84684:e=>{e.exports={en:["Price source"],ja:["価格のソース"]}},73466:e=>{e.exports={en:["Projection up bars"],ja:["上昇予測バー"]}},77430:e=>{e.exports={en:["Projection candles"],ja:["予測バー"]}},88367:e=>{e.exports={en:["Projection down bars"],ja:["下降予測バー"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],ja:["価格スケールに(平均足ではなく)実際の価格を表示"]}},50421:e=>{e.exports={en:["Right"],ja:["右"]}},62532:e=>{e.exports={en:["Right Margin"],ja:["右マージン"]}},41571:e=>{e.exports={en:["Watermark"],ja:["透かし"]}},32163:e=>{e.exports={en:["Wick"],ja:["ヒゲ"]}},97118:e=>{e.exports={en:["Top"],ja:["上"]}},89349:e=>{e.exports={en:["Top line"],ja:["上部ライン"]}},70320:e=>{e.exports={en:["Text"],ja:["テキスト"]}},25485:e=>{e.exports={en:["Text alignment"],ja:["テキストの配置"]}},67781:e=>{e.exports={en:["Text orientation"],ja:["テキストの向き"]}},20215:e=>{e.exports={en:["Thin bars"],ja:["細いバー"]}},70198:e=>{e.exports={en:["Title"],ja:["タイトル"]}},29854:e=>{e.exports={en:["Titles"],ja:["タイトル"]}},5791:e=>{e.exports={en:["Ticker"],ja:["ティッカー"]}},16816:e=>{e.exports={en:["Ticker and description"],ja:["ティッカーと詳細"]}},24821:e=>{e.exports={en:["Ticks"],ja:["ティック"]}},93965:e=>{e.exports={en:["Time Scale"],ja:["時間軸"]}},5591:e=>{e.exports={en:["Time hours format"],ja:["時刻の表記"]}},77073:e=>{e.exports={en:["Timezone"],ja:["タイムゾーン"]}},76495:e=>{e.exports={en:["Trading"],ja:["トレーディング"]}},33564:e=>{e.exports={en:["Unit"],ja:["単位"]}},23091:e=>{e.exports={en:["Up color"], -ja:["上昇カラー"]}},36957:e=>{e.exports={en:["Up bars"],ja:["上昇バー"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],ja:["日足で清算価格を終値として利用"]}},37644:e=>{e.exports={en:["Volume"],ja:["出来高"]}},51514:e=>{e.exports={en:["Value"],ja:["値"]}},31218:e=>{e.exports={en:["Value according to scale"],ja:["スケールに応じた値"]}},60092:e=>{e.exports={en:["Values"],ja:["値"]}},83594:e=>{e.exports={en:["Vert and horz"],ja:["垂直線と水平線"]}},8402:e=>{e.exports={en:["Vert only"],ja:["垂直線のみ"]}},69526:e=>{e.exports={en:["Vertical"],ja:["垂直"]}},21105:e=>{e.exports={en:["candle"],ja:["ローソク足"]}},27068:e=>{e.exports={en:["change HLC bars"],ja:["HLCバーの変更"]}},21201:e=>{e.exports={en:["change HLC bars color"],ja:["HLCバーの色の変更"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],ja:["ナビゲーションボタンの表示の変更"]}},96227:e=>{e.exports={en:["change open market status visibility"],ja:["市場ステータスの表示の変更"]}},43231:e=>{e.exports={en:["change average close price line width"],ja:["平均価格ラインの幅の変更"]}},47026:e=>{e.exports={en:["change average close price line color"],ja:["平均価格ラインの色の変更"]}},29281:e=>{e.exports={en:["change area fill color"],ja:["エリアの塗りつぶしの色の変更"]}},27059:e=>{e.exports={en:["change area line visibility"],ja:["エリアラインの可視性の変更"]}},89346:e=>{e.exports={en:["change area line width"],ja:["エリアラインの幅の変更"]}},29605:e=>{e.exports={en:["change area line color"],ja:["エリアラインの色の変更"]}},56864:e=>{e.exports={en:["change area line style"],ja:["エリアラインのスタイルの変更"]}},4640:e=>{e.exports={en:["change area price source"],ja:["エリア価格のソースの変更"]}},98407:e=>{e.exports={en:["change ask line color"],ja:["Askラインの色の変更"]}},42190:e=>{e.exports={en:["change base level"],ja:["基準レベルの変更"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],ja:["ベースラインの下部ラインの色の変更"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],ja:["ベースラインの下部ラインのスタイル変更"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],ja:["ベースラインの下部ラインの幅の変更"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],ja:["ベースラインの下部エリアの塗りつぶしの色の変更"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],ja:["ベースラインの上部エリアの塗りつぶしの色の変更"]}},68609:e=>{e.exports={en:["change baseline price source"],ja:["ベースラインの価格ソースの変更"]}},69044:e=>{e.exports={en:["change baseline top line color"],ja:["ベースラインの上部ラインの色の変更"]}},4425:e=>{e.exports={en:["change baseline top line style"],ja:["ベースラインの上部ラインのスタイル変更"]}},68197:e=>{e.exports={en:["change baseline top line width"],ja:["ベースラインの上部ラインの幅の変更"]}},33464:e=>{e.exports={en:["change bar up color"],ja:["上昇バーの色の変更"]}},27426:e=>{e.exports={en:["change bar change visibility"],ja:["バーの変動値の表示の変更"]}},59622:e=>{e.exports={en:["change bar down color"],ja:["下降バーの色の変更"]}},17919:e=>{e.exports={en:["change bid line color"],ja:["Bidラインの色の変更"]}},32094:e=>{e.exports={en:["change bottom margin"],ja:["下マージンの変更"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],ja:["通貨と単位ラベルの表示の変更"]}},64003:e=>{e.exports={en:["change currency label visibility"],ja:["通貨ラベルの表示の変更"]}},42803:e=>{e.exports={en:["change chart background color"],ja:["チャートの背景色の変更"]}}, -41382:e=>{e.exports={en:["change chart background type"],ja:["チャートの背景の種類の変更"]}},79637:e=>{e.exports={en:["change chart values visibility"],ja:["チャートの値の可視性の変更"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],ja:["前の足の終値基準でバーの色の変更"]}},88324:e=>{e.exports={en:["change column up color"],ja:["カラムの上昇カラーの変更"]}},93890:e=>{e.exports={en:["change column down color"],ja:["カラムの下降カラーの変更"]}},4727:e=>{e.exports={en:["change column price source"],ja:["カラムの価格ソースの変更"]}},50544:e=>{e.exports={en:["change crosshair width"],ja:["十字カーソルの幅の変更"]}},92885:e=>{e.exports={en:["change crosshair color"],ja:["十字カーソルの色の変更"]}},68418:e=>{e.exports={en:["change crosshair style"],ja:["十字カーソルのスタイルの変更"]}},43109:e=>{e.exports={en:["change date format"],ja:["日付の形式の変更"]}},30418:e=>{e.exports={en:["change day of week on labels"],ja:["曜日の表示の変更"]}},82063:e=>{e.exports={en:["change decimal places"],ja:["小数点以下の桁数の変更"]}},45397:e=>{e.exports={en:["change extended hours color"],ja:["時間外取引の色の変更"]}},47393:e=>{e.exports={en:["change electronic trading hours"],ja:["電子取引時間の変更"]}},73844:e=>{e.exports={en:["change grid lines visibility"],ja:["グリッドラインの可視性の変更"]}},61407:e=>{e.exports={en:["change high and low price line color"],ja:["高値・安値価格ラインの色の変更"]}},39581:e=>{e.exports={en:["change high and low price line width"],ja:["高値・安値価格ラインの幅の変更"]}},6026:e=>{e.exports={en:["change high-low body color"],ja:["ハイローの実体の色の変更"]}},73021:e=>{e.exports={en:["change high-low body visibility"],ja:["ハイローの実体の表示の変更"]}},46844:e=>{e.exports={en:["change high-low border color"],ja:["ハイローの枠の色の変更"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],ja:["ハイローの枠の表示の変更"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],ja:["ハイローのラベルの表示の変更"]}},56961:e=>{e.exports={en:["change high-low labels color"],ja:["ハイローのラベルの色の変更"]}},21133:e=>{e.exports={en:["change horz grid lines color"],ja:["水平グリッドラインの色の変更"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],ja:["インジケーターのタイトルの表示の変更"]}},49583:e=>{e.exports={en:["change indicator values visibility"],ja:["インジケーターの値の表示の変更"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],ja:["インジケーターのパラメーターの可視性の変更"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],ja:["インジケーターと財務指標名ラベルの表示の変更"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],ja:["インジケーターと財務指標値ラベルの表示の変更"]}},451:e=>{e.exports={en:["change interval watermark visibility"],ja:["時間足の透かしの表示の変更"]}},66307:e=>{e.exports={en:["change last day change visibility"],ja:["前日からの変動値の可視性の変更"]}},91873:e=>{e.exports={en:["change legend background transparency"],ja:["凡例の背景の透明度の変更"]}},14246:e=>{e.exports={en:["change legend background visibility"],ja:["凡例の背景の表示の変更"]}},88640:e=>{e.exports={en:["change line color"],ja:["ラインの色の変更"]}},28818:e=>{e.exports={en:["change line style"],ja:["ラインスタイルの変更"]}},41837:e=>{e.exports={en:["change line price source"],ja:["ライン価格のソースの変更"]}},48339:e=>{e.exports={en:["change line width"],ja:["ライン幅の変更"]}},18378:e=>{e.exports={ -en:["change pane buttons visibility"],ja:["ペインボタンの表示の変更"]}},52203:e=>{e.exports={en:["change pane separators color"],ja:["ペインの境界線の色の変更"]}},38730:e=>{e.exports={en:["change post market color"],ja:["アフターマーケットの色の変更"]}},28075:e=>{e.exports={en:["change post market line color"],ja:["アフターマーケットラインの色の変更"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],ja:["プレ/アフターマーケット価格ラインの表示の変更"]}},44371:e=>{e.exports={en:["change pre market color"],ja:["プレマーケットの色の変更"]}},96114:e=>{e.exports={en:["change pre market line color"],ja:["プレマーケットラインの色の変更"]}},69814:e=>{e.exports={en:["change previous close price line color"],ja:["前日終値ラインの色の変更"]}},13660:e=>{e.exports={en:["change previous close price line width"],ja:["前日終値ラインの幅の変更"]}},87861:e=>{e.exports={en:["change price line color"],ja:["価格ラインの色の変更"]}},29353:e=>{e.exports={en:["change price line width"],ja:["価格ラインの幅の変更"]}},16241:e=>{e.exports={en:["change range bars style"],ja:["レンジバーのスタイルの変更"]}},65821:e=>{e.exports={en:["change range thin bars"],ja:["レンジバーの細さの変更"]}},75487:e=>{e.exports={en:["change renko wick down color"],ja:["下降の練行足のヒゲの色の変更"]}},92277:e=>{e.exports={en:["change renko wick up color"],ja:["練行足のヒゲの色の変更"]}},79604:e=>{e.exports={en:["change renko wick visibility"],ja:["練行足のヒゲの表示の変更"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],ja:["リプレイの透かしの表示の変更"]}},82946:e=>{e.exports={en:["change right margin"],ja:["右マージンの変更"]}},79545:e=>{e.exports={en:["change right margin percentage"],ja:["右マージン%の変更"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],ja:["シンボルティッカーの透かしの変更"]}},78995:e=>{e.exports={en:["change symbol watermark color"],ja:["シンボルの透かしの色の変更"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],ja:["シンボルの透かしの表示の変更"]}},88167:e=>{e.exports={en:["change symbol description visibility"],ja:["シンボルの詳細の表示の変更"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],ja:["シンボル詳細の透かしの変更"]}},12050:e=>{e.exports={en:["change symbol field visibility"],ja:["シンボルフィールドの表示の変更"]}},46066:e=>{e.exports={en:["change symbol last value mode"],ja:["シンボルの現在値モードの変更"]}},902:e=>{e.exports={en:["change symbol legend format"],ja:["シンボルの凡例の形式の変更"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],ja:["時間足の変更時に保存されたチャート左端の位置の変更"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],ja:["スケールモードボタンの表示の変更"]}},76131:e=>{e.exports={en:["change scales text color"],ja:["スケールテキストの色の変更"]}},27792:e=>{e.exports={en:["change scales font size"],ja:["スケールのフォントサイズの変更"]}},94997:e=>{e.exports={en:["change scales lines color"],ja:["スケールのラインの色の変更"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],ja:["セッション区切りの表示の変更"]}},28175:e=>{e.exports={en:["change sessions breaks width"],ja:["セッション区切りの幅の変更"]}},33895:e=>{e.exports={en:["change sessions breaks color"],ja:["セッション区切りの色の変更"]}},21641:e=>{e.exports={en:["change sessions breaks style"],ja:["セッション区切りのスタイルの変更"]}},16660:e=>{e.exports={ -en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],ja:["価格スケールに(平均足ではなく)実際の価格を表示の変更"]}},60834:e=>{e.exports={en:["change thin bars"],ja:["細いバーの変更"]}},39754:e=>{e.exports={en:["change time hours format"],ja:["時刻の表記の変更"]}},74883:e=>{e.exports={en:["change top margin"],ja:["上マージンの変更"]}},51250:e=>{e.exports={en:["change unit label visibility"],ja:["単位ラベルの表示の変更"]}},71805:e=>{e.exports={en:["change vert grid lines color"],ja:["垂直グリッドラインの色の変更"]}},96201:e=>{e.exports={en:["change volume values visibility"],ja:["出来高の値の表示の変更"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],ja:["上昇の{candleType}の枠の色の変更"]}},36697:e=>{e.exports={en:["change {candleType} up color"],ja:["上昇の{candleType}の色の変更"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],ja:["下降の{candleType}のヒゲの色の変更"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],ja:["上昇の{candleType}のヒゲの色の変更"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],ja:["{candleType}のヒゲの表示の変更"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],ja:["{candleType}の実体の表示の変更"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],ja:["{candleType}の枠の表示の変更"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],ja:["下降の{candleType}の枠の色の変更"]}},64571:e=>{e.exports={en:["change {candleType} down color"],ja:["下降の{candleType}の色の変更"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],ja:["{chartType}の下降バーの枠の色の変更"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],ja:["{chartType}の上昇バーの枠の色の変更"]}},5012:e=>{e.exports={en:["change {chartType} down color"],ja:["下降の{chartType}の色の変更"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],ja:["{chartType}の上昇予測バーの枠の色の変更"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],ja:["{chartType}の下降予測バーの色の変更"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],ja:["{chartType}の上昇予測バーの色の変更"]}},6970:e=>{e.exports={en:["change {chartType} up color"],ja:["上昇の{chartType}の色の変更"]}},66110:e=>{e.exports={en:["change {inputName} property"],ja:["{inputName}プロパティの変更"]}},18077:e=>{e.exports={en:["adjust data for dividends"],ja:["配当でデータの調整"]}},1433:e=>{e.exports={en:["adjust for contract changes"],ja:["限月の切り替えを調整"]}},92598:e=>{e.exports={en:["hollow candles"],ja:["中空ローソク足"]}},57243:e=>{e.exports={en:["range","ranges"],ja:["レンジ"]}},70282:e=>{e.exports={en:["renko"],ja:["練行足"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],ja:["インアクティビティ・ギャップの表示切替"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],ja:["日足で清算価格を終値として利用"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],ja:["{value}桁"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/ja.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/ja.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..f1468a1d --- /dev/null +++ b/charting_library/bundles/ja.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,6 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:e=>{e.exports={en:["bars"],ja:["バー"]}},31882:e=>{e.exports={en:["12-hours"],ja:["12時間"]}},5797:e=>{e.exports={en:["24-hours"],ja:["24時間"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],ja:["(現在足の始値基準ではなく)前の足の終値基準でバーの色を判定"]}},23739:e=>{e.exports={en:["Canvas"],ja:["キャンバス"]}},24197:e=>{e.exports={en:["Center"],ja:["中央"]}},15153:e=>{e.exports={en:["Chart basic styles"],ja:["チャートの基本スタイル"]}},45639:e=>{e.exports={en:["Chart values"],ja:["チャートの値"]}},84831:e=>{e.exports={en:["Close line"],ja:["ライン - 終値"]}},74622:e=>{e.exports={en:["Crosshair"],ja:["十字カーソル"]}},81849:e=>{e.exports={en:["Currency"],ja:["通貨"]}},3015:e=>{e.exports={en:["Currency and Unit"],ja:["通貨と単位"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],ja:["配当でデータを調整"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],ja:["限月の切り替えを調整"]}},36620:e=>{e.exports={en:["Alerts"],ja:["アラート"]}},68650:e=>{e.exports={en:["Average close"],ja:["平均終値"]}},27567:e=>{e.exports={en:["Bottom"],ja:["下"]}},3159:e=>{e.exports={en:["Bottom line"],ja:["下部ライン"]}},74406:e=>{e.exports={en:["Body"],ja:["実体"]}},333:e=>{e.exports={en:["Borders"],ja:["枠"]}},79468:e=>{e.exports={en:["Background"],ja:["背景"]}},10842:e=>{e.exports={en:["Bar change values"],ja:["バーの変動値"]}},70817:e=>{e.exports={en:["Bar change color based on value"]}},28975:e=>{e.exports={en:["Base level"],ja:["基準レベル"]}},76473:e=>{e.exports={en:["Bid and ask"],ja:["Bid/Ask"]}},32744:e=>{e.exports={en:["Buttons"],ja:["ボタン"]}},68662:e=>{e.exports={en:["Grid lines"],ja:["グリッドライン"]}},17611:e=>{e.exports={en:["Down bars"],ja:["下降バー"]}},23743:e=>{e.exports={en:["Down color"],ja:["下降カラー"]}},48225:e=>{e.exports={en:["Data modification"],ja:["データの調整"]}},84838:e=>{e.exports={en:["Date format"],ja:["日付の形式"]}},42357:e=>{e.exports={en:["Day of week on labels"],ja:["曜日の表示"]}},16564:e=>{e.exports={en:["Default"],ja:["デフォルト"]}},78734:e=>{e.exports={en:["Description"],ja:["詳細"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],ja:["インアクティビティ・ギャップを表示"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],ja:["電子取引時間の背景"]}},69808:e=>{e.exports={en:["Events"],ja:["イベント"]}},41129:e=>{e.exports={en:["Fill"],ja:["塗りつぶし"]}},61112:e=>{e.exports={en:["Fill top area"],ja:["上部エリア"]}},73185:e=>{e.exports={en:["Fill bottom area"],ja:["下部エリア"]}},3160:e=>{e.exports={en:["Horizontal"],ja:["水平"]}},61900:e=>{e.exports={en:["Horz only"],ja:["水平線のみ"]}},14180:e=>{e.exports={en:["High and low"],ja:["高値・安値"]}},56359:e=>{e.exports={en:["High line"],ja:["ライン - 高値"]}},47326:e=>{e.exports={en:["Integer"],ja:["整数"]}},17854:e=>{e.exports={en:["Interval"],ja:["時間足"]}},84549:e=>{e.exports={en:["Indicators"],ja:["インジケーター"]}},78082:e=>{e.exports={en:["Indicators and financials"],ja:["インジケーターと財務指標"]}},21429:e=>{e.exports={en:["Inputs"],ja:["パラメーター"]}},25765:e=>{e.exports={en:["Open market status"],ja:["市場の開始状況を表示"]}},34579:e=>{e.exports={en:["Low line"],ja:["ライン - 安値"]}},14876:e=>{e.exports={en:["Logo"],ja:["ロゴ"]}},89315:e=>{e.exports={ +en:["Long Description"],ja:["説明文"]}},72423:e=>{e.exports={en:["Last day change values"],ja:["前日からの変動値"]}},11626:e=>{e.exports={en:["Left"],ja:["左"]}},56982:e=>{e.exports={en:["Lines"],ja:["ライン"]}},8249:e=>{e.exports={en:["Money"],ja:["金額"]}},70937:e=>{e.exports={en:["Margins"],ja:["マージン"]}},68833:e=>{e.exports={en:["Middle"],ja:["中央"]}},58589:e=>{e.exports={en:["No overlapping labels"],ja:["ラベルを重ねない"]}},60798:e=>{e.exports={en:["None"],ja:["なし"]}},51019:e=>{e.exports={en:["Navigation"],ja:["ナビゲーション"]}},99709:e=>{e.exports={en:["Name"],ja:["名前"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],ja:["時間足の変更時にチャート左端の位置を保存"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],ja:["スケールモード (A と L)"]}},93968:e=>{e.exports={en:["Scales"],ja:["スケール"]}},90275:e=>{e.exports={en:["Scales and lines"],ja:["スケールとライン"]}},30042:e=>{e.exports={en:["Scales placement"],ja:["スケールの配置"]}},28715:e=>{e.exports={en:["Status line"],ja:["ステータスライン"]}},95481:e=>{e.exports={en:["Symbol"],ja:["シンボル"]}},53263:e=>{e.exports={en:["Pane"],ja:["ペイン"]}},82894:e=>{e.exports={en:["Pane separators"],ja:["ペインの境界線"]}},86235:e=>{e.exports={en:["Percentage"],ja:["パーセント"]}},94408:e=>{e.exports={en:["Pips"]}},60904:e=>{e.exports={en:["Pre/post market"],ja:["プレ/アフターマーケット"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],ja:["プレ/アフターマーケット時間の背景"]}},59766:e=>{e.exports={en:["Precision"],ja:["精度"]}},83811:e=>{e.exports={en:["Previous day close"],ja:["前日終値"]}},35082:e=>{e.exports={en:["Price Scale"],ja:["価格スケール"]}},27632:e=>{e.exports={en:["Price and percentage value"],ja:["価格とパーセント値"]}},62142:e=>{e.exports={en:["Price labels & lines"],ja:["価格ラベルとライン"]}},84684:e=>{e.exports={en:["Price source"],ja:["価格のソース"]}},73466:e=>{e.exports={en:["Projection up bars"],ja:["上昇予測バー"]}},77430:e=>{e.exports={en:["Projection candles"],ja:["予測バー"]}},88367:e=>{e.exports={en:["Projection down bars"],ja:["下降予測バー"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],ja:["価格スケールに(平均足ではなく)実際の価格を表示"]}},50421:e=>{e.exports={en:["Right"],ja:["右"]}},62532:e=>{e.exports={en:["Right Margin"],ja:["右マージン"]}},41571:e=>{e.exports={en:["Watermark"],ja:["透かし"]}},32163:e=>{e.exports={en:["Wick"],ja:["ヒゲ"]}},97118:e=>{e.exports={en:["Top"],ja:["上"]}},89349:e=>{e.exports={en:["Top line"],ja:["上部ライン"]}},70320:e=>{e.exports={en:["Text"],ja:["テキスト"]}},25485:e=>{e.exports={en:["Text alignment"],ja:["テキストの配置"]}},67781:e=>{e.exports={en:["Text orientation"],ja:["テキストの向き"]}},20215:e=>{e.exports={en:["Thin bars"],ja:["細いバー"]}},70198:e=>{e.exports={en:["Title"],ja:["タイトル"]}},29854:e=>{e.exports={en:["Titles"],ja:["タイトル"]}},5791:e=>{e.exports={en:["Ticker"],ja:["ティッカー"]}},16816:e=>{e.exports={en:["Ticker and description"],ja:["ティッカーと詳細"]}},24821:e=>{e.exports={en:["Ticks"],ja:["ティック"]}},93965:e=>{e.exports={en:["Time Scale"],ja:["時間軸"]}},5591:e=>{e.exports={en:["Time hours format"],ja:["時刻の表記"]}},77073:e=>{e.exports={en:["Timezone"],ja:["タイムゾーン"]}},76495:e=>{e.exports={en:["Trading"],ja:["トレーディング"]}},33564:e=>{e.exports={en:["Unit"], +ja:["単位"]}},23091:e=>{e.exports={en:["Up color"],ja:["上昇カラー"]}},36957:e=>{e.exports={en:["Up bars"],ja:["上昇バー"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],ja:["日足で清算価格を終値として利用"]}},37644:e=>{e.exports={en:["Volume"],ja:["出来高"]}},51514:e=>{e.exports={en:["Value"],ja:["値"]}},31218:e=>{e.exports={en:["Value according to scale"],ja:["スケールに応じた値"]}},60092:e=>{e.exports={en:["Values"],ja:["値"]}},83594:e=>{e.exports={en:["Vert and horz"],ja:["垂直線と水平線"]}},8402:e=>{e.exports={en:["Vert only"],ja:["垂直線のみ"]}},69526:e=>{e.exports={en:["Vertical"],ja:["垂直"]}},21105:e=>{e.exports={en:["candle"],ja:["ローソク足"]}},27068:e=>{e.exports={en:["change HLC bars"],ja:["HLCバーの変更"]}},21201:e=>{e.exports={en:["change HLC bars color"],ja:["HLCバーの色の変更"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],ja:["ナビゲーションボタンの表示の変更"]}},96227:e=>{e.exports={en:["change open market status visibility"],ja:["市場ステータスの表示の変更"]}},43231:e=>{e.exports={en:["change average close price line width"],ja:["平均価格ラインの幅の変更"]}},47026:e=>{e.exports={en:["change average close price line color"],ja:["平均価格ラインの色の変更"]}},29281:e=>{e.exports={en:["change area fill color"],ja:["エリアの塗りつぶしの色の変更"]}},27059:e=>{e.exports={en:["change area line visibility"],ja:["エリアラインの可視性の変更"]}},89346:e=>{e.exports={en:["change area line width"],ja:["エリアラインの幅の変更"]}},29605:e=>{e.exports={en:["change area line color"],ja:["エリアラインの色の変更"]}},56864:e=>{e.exports={en:["change area line style"],ja:["エリアラインのスタイルの変更"]}},4640:e=>{e.exports={en:["change area price source"],ja:["エリア価格のソースの変更"]}},98407:e=>{e.exports={en:["change ask line color"],ja:["Askラインの色の変更"]}},42190:e=>{e.exports={en:["change base level"],ja:["基準レベルの変更"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],ja:["ベースラインの下部ラインの色の変更"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],ja:["ベースラインの下部ラインのスタイル変更"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],ja:["ベースラインの下部ラインの幅の変更"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],ja:["ベースラインの下部エリアの塗りつぶしの色の変更"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],ja:["ベースラインの上部エリアの塗りつぶしの色の変更"]}},68609:e=>{e.exports={en:["change baseline price source"],ja:["ベースラインの価格ソースの変更"]}},69044:e=>{e.exports={en:["change baseline top line color"],ja:["ベースラインの上部ラインの色の変更"]}},4425:e=>{e.exports={en:["change baseline top line style"],ja:["ベースラインの上部ラインのスタイル変更"]}},68197:e=>{e.exports={en:["change baseline top line width"],ja:["ベースラインの上部ラインの幅の変更"]}},33464:e=>{e.exports={en:["change bar up color"],ja:["上昇バーの色の変更"]}},14201:e=>{e.exports={en:["change bar change down color"]}},30196:e=>{e.exports={en:["change bar change up color"]}},27426:e=>{e.exports={en:["change bar change visibility"],ja:["バーの変動値の表示の変更"]}},59622:e=>{e.exports={en:["change bar down color"],ja:["下降バーの色の変更"]}},17919:e=>{e.exports={en:["change bid line color"],ja:["Bidラインの色の変更"]}},32094:e=>{e.exports={en:["change bottom margin"],ja:["下マージンの変更"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],ja:["通貨と単位ラベルの表示の変更"]}}, +64003:e=>{e.exports={en:["change currency label visibility"],ja:["通貨ラベルの表示の変更"]}},42803:e=>{e.exports={en:["change chart background color"],ja:["チャートの背景色の変更"]}},41382:e=>{e.exports={en:["change chart background type"],ja:["チャートの背景の種類の変更"]}},79637:e=>{e.exports={en:["change chart values visibility"],ja:["チャートの値の可視性の変更"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],ja:["前の足の終値基準でバーの色の変更"]}},88324:e=>{e.exports={en:["change column up color"],ja:["カラムの上昇カラーの変更"]}},93890:e=>{e.exports={en:["change column down color"],ja:["カラムの下降カラーの変更"]}},4727:e=>{e.exports={en:["change column price source"],ja:["カラムの価格ソースの変更"]}},50544:e=>{e.exports={en:["change crosshair width"],ja:["十字カーソルの幅の変更"]}},92885:e=>{e.exports={en:["change crosshair color"],ja:["十字カーソルの色の変更"]}},68418:e=>{e.exports={en:["change crosshair style"],ja:["十字カーソルのスタイルの変更"]}},43109:e=>{e.exports={en:["change date format"],ja:["日付の形式の変更"]}},30418:e=>{e.exports={en:["change day of week on labels"],ja:["曜日の表示の変更"]}},82063:e=>{e.exports={en:["change decimal places"],ja:["小数点以下の桁数の変更"]}},45397:e=>{e.exports={en:["change extended hours color"],ja:["時間外取引の色の変更"]}},47393:e=>{e.exports={en:["change electronic trading hours"],ja:["電子取引時間の変更"]}},73844:e=>{e.exports={en:["change grid lines visibility"],ja:["グリッドラインの可視性の変更"]}},61407:e=>{e.exports={en:["change high and low price line color"],ja:["高値・安値価格ラインの色の変更"]}},39581:e=>{e.exports={en:["change high and low price line width"],ja:["高値・安値価格ラインの幅の変更"]}},6026:e=>{e.exports={en:["change high-low body color"],ja:["ハイローの実体の色の変更"]}},73021:e=>{e.exports={en:["change high-low body visibility"],ja:["ハイローの実体の表示の変更"]}},46844:e=>{e.exports={en:["change high-low border color"],ja:["ハイローの枠の色の変更"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],ja:["ハイローの枠の表示の変更"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],ja:["ハイローのラベルの表示の変更"]}},56961:e=>{e.exports={en:["change high-low labels color"],ja:["ハイローのラベルの色の変更"]}},21133:e=>{e.exports={en:["change horz grid lines color"],ja:["水平グリッドラインの色の変更"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],ja:["インジケーターのタイトルの表示の変更"]}},49583:e=>{e.exports={en:["change indicator values visibility"],ja:["インジケーターの値の表示の変更"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],ja:["インジケーターのパラメーターの可視性の変更"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],ja:["インジケーターと財務指標名ラベルの表示の変更"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],ja:["インジケーターと財務指標値ラベルの表示の変更"]}},451:e=>{e.exports={en:["change interval watermark visibility"],ja:["時間足の透かしの表示の変更"]}},66307:e=>{e.exports={en:["change last day change visibility"],ja:["前日からの変動値の可視性の変更"]}},91873:e=>{e.exports={en:["change legend background transparency"],ja:["凡例の背景の透明度の変更"]}},14246:e=>{e.exports={en:["change legend background visibility"],ja:["凡例の背景の表示の変更"]}},88640:e=>{e.exports={en:["change line color"],ja:["ラインの色の変更"]}},28818:e=>{e.exports={en:["change line style"],ja:["ラインスタイルの変更"]}},41837:e=>{e.exports={ +en:["change line price source"],ja:["ライン価格のソースの変更"]}},48339:e=>{e.exports={en:["change line width"],ja:["ライン幅の変更"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],ja:["ペインボタンの表示の変更"]}},52203:e=>{e.exports={en:["change pane separators color"],ja:["ペインの境界線の色の変更"]}},38730:e=>{e.exports={en:["change post market color"],ja:["アフターマーケットの色の変更"]}},28075:e=>{e.exports={en:["change post market line color"],ja:["アフターマーケットラインの色の変更"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],ja:["プレ/アフターマーケット価格ラインの表示の変更"]}},44371:e=>{e.exports={en:["change pre market color"],ja:["プレマーケットの色の変更"]}},96114:e=>{e.exports={en:["change pre market line color"],ja:["プレマーケットラインの色の変更"]}},69814:e=>{e.exports={en:["change previous close price line color"],ja:["前日終値ラインの色の変更"]}},13660:e=>{e.exports={en:["change previous close price line width"],ja:["前日終値ラインの幅の変更"]}},87861:e=>{e.exports={en:["change price line color"],ja:["価格ラインの色の変更"]}},29353:e=>{e.exports={en:["change price line width"],ja:["価格ラインの幅の変更"]}},16241:e=>{e.exports={en:["change range bars style"],ja:["レンジバーのスタイルの変更"]}},65821:e=>{e.exports={en:["change range thin bars"],ja:["レンジバーの細さの変更"]}},75487:e=>{e.exports={en:["change renko wick down color"],ja:["下降の練行足のヒゲの色の変更"]}},92277:e=>{e.exports={en:["change renko wick up color"],ja:["練行足のヒゲの色の変更"]}},79604:e=>{e.exports={en:["change renko wick visibility"],ja:["練行足のヒゲの表示の変更"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],ja:["リプレイの透かしの表示の変更"]}},82946:e=>{e.exports={en:["change right margin"],ja:["右マージンの変更"]}},79545:e=>{e.exports={en:["change right margin percentage"],ja:["右マージン%の変更"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],ja:["シンボルティッカーの透かしの変更"]}},78995:e=>{e.exports={en:["change symbol watermark color"],ja:["シンボルの透かしの色の変更"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],ja:["シンボルの透かしの表示の変更"]}},88167:e=>{e.exports={en:["change symbol description visibility"],ja:["シンボルの詳細の表示の変更"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],ja:["シンボル詳細の透かしの変更"]}},12050:e=>{e.exports={en:["change symbol field visibility"],ja:["シンボルフィールドの表示の変更"]}},46066:e=>{e.exports={en:["change symbol last value mode"],ja:["シンボルの現在値モードの変更"]}},902:e=>{e.exports={en:["change symbol legend format"],ja:["シンボルの凡例の形式の変更"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],ja:["時間足の変更時に保存されたチャート左端の位置の変更"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],ja:["スケールモードボタンの表示の変更"]}},76131:e=>{e.exports={en:["change scales text color"],ja:["スケールテキストの色の変更"]}},27792:e=>{e.exports={en:["change scales font size"],ja:["スケールのフォントサイズの変更"]}},94997:e=>{e.exports={en:["change scales lines color"],ja:["スケールのラインの色の変更"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],ja:["セッション区切りの表示の変更"]}},28175:e=>{e.exports={en:["change sessions breaks width"],ja:["セッション区切りの幅の変更"]}},33895:e=>{e.exports={en:["change sessions breaks color"],ja:["セッション区切りの色の変更"]}},21641:e=>{e.exports={ +en:["change sessions breaks style"],ja:["セッション区切りのスタイルの変更"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],ja:["価格スケールに(平均足ではなく)実際の価格を表示の変更"]}},60834:e=>{e.exports={en:["change thin bars"],ja:["細いバーの変更"]}},39754:e=>{e.exports={en:["change time hours format"],ja:["時刻の表記の変更"]}},74883:e=>{e.exports={en:["change top margin"],ja:["上マージンの変更"]}},51250:e=>{e.exports={en:["change unit label visibility"],ja:["単位ラベルの表示の変更"]}},28142:e=>{e.exports={en:["change use custom bar change colors"]}},71805:e=>{e.exports={en:["change vert grid lines color"],ja:["垂直グリッドラインの色の変更"]}},96201:e=>{e.exports={en:["change volume values visibility"],ja:["出来高の値の表示の変更"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],ja:["上昇の{candleType}の枠の色の変更"]}},36697:e=>{e.exports={en:["change {candleType} up color"],ja:["上昇の{candleType}の色の変更"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],ja:["下降の{candleType}のヒゲの色の変更"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],ja:["上昇の{candleType}のヒゲの色の変更"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],ja:["{candleType}のヒゲの表示の変更"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],ja:["{candleType}の実体の表示の変更"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],ja:["{candleType}の枠の表示の変更"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],ja:["下降の{candleType}の枠の色の変更"]}},64571:e=>{e.exports={en:["change {candleType} down color"],ja:["下降の{candleType}の色の変更"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],ja:["{chartType}の下降バーの枠の色の変更"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],ja:["{chartType}の上昇バーの枠の色の変更"]}},5012:e=>{e.exports={en:["change {chartType} down color"],ja:["下降の{chartType}の色の変更"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],ja:["{chartType}の上昇予測バーの枠の色の変更"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],ja:["{chartType}の下降予測バーの色の変更"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],ja:["{chartType}の上昇予測バーの色の変更"]}},6970:e=>{e.exports={en:["change {chartType} up color"],ja:["上昇の{chartType}の色の変更"]}},66110:e=>{e.exports={en:["change {inputName} property"],ja:["{inputName}プロパティの変更"]}},18077:e=>{e.exports={en:["adjust data for dividends"],ja:["配当でデータの調整"]}},1433:e=>{e.exports={en:["adjust for contract changes"],ja:["限月の切り替えを調整"]}},92598:e=>{e.exports={en:["hollow candles"],ja:["中空ローソク足"]}},57243:e=>{e.exports={en:["range","ranges"],ja:["レンジ"]}},70282:e=>{e.exports={en:["renko"],ja:["練行足"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],ja:["インアクティビティ・ギャップの表示切替"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],ja:["日足で清算価格を終値として利用"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],ja:["{value}桁"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/ko.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/ko.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index 5099fe2f..00000000 --- a/charting_library/bundles/ko.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,6 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:e=>{e.exports={en:["bars"],ko:["바"]}},31882:e=>{e.exports={en:["12-hours"],ko:["12시간"]}},5797:e=>{e.exports={en:["24-hours"],ko:["24시간"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],ko:["이전 종가에 따라 봉색 결정"]}},23739:e=>{e.exports={en:["Canvas"],ko:["캔버스"]}},24197:e=>{e.exports={en:["Center"],ko:["센터"]}},15153:e=>{e.exports={en:["Chart basic styles"],ko:["차트 베이직 스타일"]}},45639:e=>{e.exports={en:["Chart values"],ko:["차트 밸류"]}},84831:e=>{e.exports={en:["Close line"],ko:["클로즈 라인"]}},74622:e=>{e.exports={en:["Crosshair"],ko:["십자선"]}},81849:e=>{e.exports={en:["Currency"],ko:["통화"]}},3015:e=>{e.exports={en:["Currency and Unit"],ko:["통화 및 단위"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],ko:["배당에 따른 데이터 조정"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],ko:["컨트랙트 변경 조절"]}},36620:e=>{e.exports={en:["Alerts"],ko:["얼러트"]}},68650:e=>{e.exports={en:["Average close"],ko:["평균가"]}},27567:e=>{e.exports={en:["Bottom"],ko:["아래"]}},3159:e=>{e.exports={en:["Bottom line"],ko:["바텀 라인"]}},74406:e=>{e.exports={en:["Body"],ko:["바디"]}},333:e=>{e.exports={en:["Borders"],ko:["경계선"]}},79468:e=>{e.exports={en:["Background"],ko:["배경"]}},10842:e=>{e.exports={en:["Bar change values"],ko:["바 체인지 밸류"]}},28975:e=>{e.exports={en:["Base level"],ko:["베이스 레벨"]}},76473:e=>{e.exports={en:["Bid and ask"],ko:["비드/애스크"]}},32744:e=>{e.exports={en:["Buttons"],ko:["버튼"]}},68662:e=>{e.exports={en:["Grid lines"],ko:["그리드 라인"]}},17611:e=>{e.exports={en:["Down bars"],ko:["다운 바"]}},23743:e=>{e.exports={en:["Down color"],ko:["다운 칼라"]}},48225:e=>{e.exports={en:["Data modification"],ko:["데이타 수정"]}},84838:e=>{e.exports={en:["Date format"],ko:["데이트 포맷"]}},42357:e=>{e.exports={en:["Day of week on labels"],ko:["레이블의 요일"]}},16564:e=>{e.exports={en:["Default"],ko:["기본설정"]}},78734:e=>{e.exports={en:["Description"],ko:["설명"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],ko:["비활성 구간 표시"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],ko:["전자 거래 시간 배경"]}},69808:e=>{e.exports={en:["Events"],ko:["이벤트"]}},41129:e=>{e.exports={en:["Fill"],ko:["채우기"]}},61112:e=>{e.exports={en:["Fill top area"],ko:["필 탑 에어리어"]}},73185:e=>{e.exports={en:["Fill bottom area"],ko:["필 바텀 에어리어"]}},3160:e=>{e.exports={en:["Horizontal"],ko:["가로"]}},61900:e=>{e.exports={en:["Horz only"],ko:["가로만"]}},14180:e=>{e.exports={en:["High and low"],ko:["고가와 저가"]}},56359:e=>{e.exports={en:["High line"],ko:["하이 라인"]}},47326:e=>{e.exports={en:["Integer"]}},17854:e=>{e.exports={en:["Interval"],ko:["인터벌"]}},84549:e=>{e.exports={en:["Indicators"],ko:["지표"]}},78082:e=>{e.exports={en:["Indicators and financials"],ko:["인디케이터 & 파이낸셜"]}},21429:e=>{e.exports={en:["Inputs"],ko:["인풋"]}},25765:e=>{e.exports={en:["Open market status"],ko:["오픈 마켓 스테이터스"]}},34579:e=>{e.exports={en:["Low line"],ko:["로우 라인"]}},14876:e=>{e.exports={en:["Logo"],ko:["로고"]}},89315:e=>{e.exports={en:["Long Description"],ko:["긴 설명"]}},72423:e=>{e.exports={en:["Last day change values"],ko:["마지막 날 변경 값"]}},11626:e=>{ -e.exports={en:["Left"],ko:["왼쪽"]}},56982:e=>{e.exports={en:["Lines"],ko:["라인"]}},8249:e=>{e.exports={en:["Money"],ko:["머니"]}},70937:e=>{e.exports={en:["Margins"],ko:["마진"]}},68833:e=>{e.exports={en:["Middle"],ko:["미들"]}},58589:e=>{e.exports={en:["No overlapping labels"],ko:["오버래핑 라벨 없음"]}},60798:e=>{e.exports={en:["None"],ko:["둘다 아님"]}},51019:e=>{e.exports={en:["Navigation"],ko:["네비게이션"]}},99709:e=>{e.exports={en:["Name"],ko:["이름"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],ko:["인터벌 바꿀 때 차트 왼쪽 엣지 포지션 저장"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],ko:["스케일 모드(A 및 L)"]}},93968:e=>{e.exports={en:["Scales"],ko:["눈금"]}},90275:e=>{e.exports={en:["Scales and lines"],ko:["스케일 및 라인"]}},30042:e=>{e.exports={en:["Scales placement"],ko:["스케일 플레이스먼트"]}},28715:e=>{e.exports={en:["Status line"],ko:["스테이터스 라인"]}},95481:e=>{e.exports={en:["Symbol"],ko:["심볼"]}},53263:e=>{e.exports={en:["Pane"],ko:["페인"]}},82894:e=>{e.exports={en:["Pane separators"],ko:["페인 나누개"]}},86235:e=>{e.exports={en:["Percentage"],ko:["퍼센트"]}},94408:e=>{e.exports={en:["Pips"],ko:["핍스"]}},60904:e=>{e.exports={en:["Pre/post market"],ko:["프리/포스트 마켓"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],ko:["프리/포스트 마켓 백그라운드"]}},59766:e=>{e.exports={en:["Precision"],ko:["정밀도"]}},83811:e=>{e.exports={en:["Previous day close"],ko:["전일 종가"]}},35082:e=>{e.exports={en:["Price Scale"],ko:["프라이스 스케일"]}},27632:e=>{e.exports={en:["Price and percentage value"],ko:["프라이스 및 퍼센트 밸류"]}},62142:e=>{e.exports={en:["Price labels & lines"],ko:["프라이스 라벨 & 라인"]}},84684:e=>{e.exports={en:["Price source"],ko:["프라이스 소스"]}},73466:e=>{e.exports={en:["Projection up bars"],ko:["프로젝션 업 바"]}},77430:e=>{e.exports={en:["Projection candles"],ko:["프로젝션 바"]}},88367:e=>{e.exports={en:["Projection down bars"],ko:["프로젝션 다운 바"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],ko:["프라이스 스케일에 리얼 프라이스 (하이킨-아시 프라이스 대신)"]}},50421:e=>{e.exports={en:["Right"],ko:["오른쪽"]}},62532:e=>{e.exports={en:["Right Margin"],ko:["오른쪽 여백"]}},41571:e=>{e.exports={en:["Watermark"],ko:["워터마크"]}},32163:e=>{e.exports={en:["Wick"],ko:["윅"]}},97118:e=>{e.exports={en:["Top"],ko:["탑"]}},89349:e=>{e.exports={en:["Top line"],ko:["탑 라인"]}},70320:e=>{e.exports={en:["Text"],ko:["문자"]}},25485:e=>{e.exports={en:["Text alignment"],ko:["텍스트 얼라인"]}},67781:e=>{e.exports={en:["Text orientation"],ko:["텍스트 방향"]}},20215:e=>{e.exports={en:["Thin bars"],ko:["씬 (Thin) 바"]}},70198:e=>{e.exports={en:["Title"],ko:["타이틀"]}},29854:e=>{e.exports={en:["Titles"],ko:["제목"]}},5791:e=>{e.exports={en:["Ticker"],ko:["티커"]}},16816:e=>{e.exports={en:["Ticker and description"],ko:["티커와 설명"]}},24821:e=>{e.exports={en:["Ticks"],ko:["틱"]}},93965:e=>{e.exports={en:["Time Scale"],ko:["타임 스케일"]}},5591:e=>{e.exports={en:["Time hours format"],ko:["시간 형식"]}},77073:e=>{e.exports={en:["Timezone"],ko:["타임존"]}},76495:e=>{e.exports={en:["Trading"],ko:["트레이딩"]}},33564:e=>{e.exports={en:["Unit"],ko:["유닛"]}},23091:e=>{e.exports={en:["Up color"],ko:["업 칼라"]}},36957:e=>{e.exports={ -en:["Up bars"],ko:["업 바"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],ko:["데일리 클로즈를 청산가로 쓰기"]}},37644:e=>{e.exports={en:["Volume"],ko:["거래량"]}},51514:e=>{e.exports={en:["Value"],ko:["값"]}},31218:e=>{e.exports={en:["Value according to scale"],ko:["스케일에 따른 밸류"]}},60092:e=>{e.exports={en:["Values"],ko:["밸류"]}},83594:e=>{e.exports={en:["Vert and horz"],ko:["세로 및 가로"]}},8402:e=>{e.exports={en:["Vert only"],ko:["세로만"]}},69526:e=>{e.exports={en:["Vertical"],ko:["세로"]}},21105:e=>{e.exports={en:["candle"],ko:["캔들"]}},27068:e=>{e.exports={en:["change HLC bars"],ko:["HLC 바 변경"]}},21201:e=>{e.exports={en:["change HLC bars color"],ko:["HLC 바 색상 변경"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],ko:["내비게이션 버튼 비저빌리티 바꾸기"]}},96227:e=>{e.exports={en:["change open market status visibility"],ko:["오픈 마켓 스테이터스 비저빌리티 바꾸기"]}},43231:e=>{e.exports={en:["change average close price line width"],ko:["평균 종가 라인 너비 변경"]}},47026:e=>{e.exports={en:["change average close price line color"],ko:["평균 종가 라인 색상 변경"]}},29281:e=>{e.exports={en:["change area fill color"],ko:["에어리어 필 컬러 바꾸기"]}},27059:e=>{e.exports={en:["change area line visibility"],ko:["영역 라인 표시 여부 변경"]}},89346:e=>{e.exports={en:["change area line width"],ko:["에어리어 라인 너비 바꾸기"]}},29605:e=>{e.exports={en:["change area line color"],ko:["에어리어 라인 컬러 바꾸기"]}},56864:e=>{e.exports={en:["change area line style"],ko:["영역 선 스타일 변경"]}},4640:e=>{e.exports={en:["change area price source"],ko:["에어리어 프라이스 소스 바꾸기"]}},98407:e=>{e.exports={en:["change ask line color"],ko:["애스크 라인 컬러 바꾸기"]}},42190:e=>{e.exports={en:["change base level"],ko:["베이스 레벨 바꾸기"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],ko:["베이스라인 바텀 라인 컬러 바꾸기"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],ko:["기준선 하단 선 스타일 변경"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],ko:["베이스라인 바텀 라인 너비 바꾸기"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],ko:["베이스라인 필 바텀 에어리어 컬러 바꾸기"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],ko:["베이스라인 필 탑 에어리어 컬러 바꾸기"]}},68609:e=>{e.exports={en:["change baseline price source"],ko:["베이스라인 프라이스 소스 바꾸기"]}},69044:e=>{e.exports={en:["change baseline top line color"],ko:["베이스라인 탑 라인 컬러 바꾸기"]}},4425:e=>{e.exports={en:["change baseline top line style"],ko:["기준선 상단 선 스타일 변경"]}},68197:e=>{e.exports={en:["change baseline top line width"],ko:["베이스라인 탑 라인 너비 바꾸기"]}},33464:e=>{e.exports={en:["change bar up color"],ko:["바 업 컬러 바꾸기"]}},27426:e=>{e.exports={en:["change bar change visibility"],ko:["바 체인지 비저빌리티 바꾸기"]}},59622:e=>{e.exports={en:["change bar down color"],ko:["바 다운 컬러 바꾸기"]}},17919:e=>{e.exports={en:["change bid line color"],ko:["비드 라인 컬러 바꾸기"]}},32094:e=>{e.exports={en:["change bottom margin"],ko:["바텀 마진 바꾸기"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],ko:["커런시 및 유닛 라벨 비저빌리티를 바꾸십시오"]}},64003:e=>{e.exports={en:["change currency label visibility"],ko:["커런시 라벨 비저빌리티 바꾸기"]}},42803:e=>{e.exports={en:["change chart background color"],ko:["차트 백그라운드 컬러 바꾸기"]}}, -41382:e=>{e.exports={en:["change chart background type"],ko:["차트 백그라운드 타입 바꾸기"]}},79637:e=>{e.exports={en:["change chart values visibility"],ko:["차트 밸류 가시성 변경"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],ko:["이전 클로즈에 따라 컬러 바 바꾸기"]}},88324:e=>{e.exports={en:["change column up color"],ko:["컬럼 업 색깔 바꾸기"]}},93890:e=>{e.exports={en:["change column down color"],ko:["컬럼 다운 색깔 바꾸기"]}},4727:e=>{e.exports={en:["change column price source"],ko:["컬럼 프라이스 소스 바꾸기"]}},50544:e=>{e.exports={en:["change crosshair width"],ko:["크로스헤어 너비 바꾸기"]}},92885:e=>{e.exports={en:["change crosshair color"],ko:["크로스헤어 컬러 바꾸기"]}},68418:e=>{e.exports={en:["change crosshair style"],ko:["크로스헤어 스타일 바꾸기"]}},43109:e=>{e.exports={en:["change date format"],ko:["데이트 포맷 변경"]}},30418:e=>{e.exports={en:["change day of week on labels"],ko:["레이블의 요일 변경"]}},82063:e=>{e.exports={en:["change decimal places"],ko:["소숫점 자릿수 바꾸기"]}},45397:e=>{e.exports={en:["change extended hours color"],ko:["익스텐드 아워 컬러 바꾸기"]}},47393:e=>{e.exports={en:["change electronic trading hours"],ko:["전자 거래 시간 바꾸기"]}},73844:e=>{e.exports={en:["change grid lines visibility"],ko:["그리드 선 가시성 변경"]}},61407:e=>{e.exports={en:["change high and low price line color"],ko:["고가 및 저가 라인 색상 변경"]}},39581:e=>{e.exports={en:["change high and low price line width"],ko:["고가 및 저가 라인 너비 변경"]}},6026:e=>{e.exports={en:["change high-low body color"],ko:["하이-로우 바디 컬러 바꾸기"]}},73021:e=>{e.exports={en:["change high-low body visibility"],ko:["하이-로우 바디 비저빌리티 바꾸기"]}},46844:e=>{e.exports={en:["change high-low border color"],ko:["하이-로우 보더 컬러 바꾸기"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],ko:["하이-로우 보더 비저빌리티 바꾸기"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],ko:["하이-로우 라벨 비저빌리티 바꾸기"]}},56961:e=>{e.exports={en:["change high-low labels color"],ko:["하이-로우 라벨 컬러 바꾸기"]}},21133:e=>{e.exports={en:["change horz grid lines color"],ko:["호리존털 그리드 라인 컬러 바꾸기"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],ko:["인디케이터 타이틀 비저빌리티 바꾸기"]}},49583:e=>{e.exports={en:["change indicator values visibility"],ko:["인디케이터 밸류 비저빌리티 바꾸기"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],ko:["지표 인풋값 표시 여부 변경"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],ko:["인디케이터 및 파이낸셜 네임 라벨 비저빌리티 바꾸기"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],ko:["인디케이터 및 파이낸셜 밸류 라벨 비저빌리티 바꾸기"]}},451:e=>{e.exports={en:["change interval watermark visibility"],ko:["인터벌 워터마크 표시 여부 변경"]}},66307:e=>{e.exports={en:["change last day change visibility"],ko:["마지막날 변화 가시성 바꾸기"]}},91873:e=>{e.exports={en:["change legend background transparency"],ko:["설명 배경 투명도 변경"]}},14246:e=>{e.exports={en:["change legend background visibility"],ko:["설명 배경 가시성 변경"]}},88640:e=>{e.exports={en:["change line color"],ko:["라인 컬러 바꾸기"]}},28818:e=>{e.exports={en:["change line style"],ko:["라인 스타일 바꾸기"]}},41837:e=>{e.exports={en:["change line price source"],ko:["라인 프라이스 소스 바꾸기"]}},48339:e=>{e.exports={en:["change line width"], -ko:["라인 너비 바꾸기"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],ko:["페인 버튼 비저빌리티 바꾸기"]}},52203:e=>{e.exports={en:["change pane separators color"],ko:["페인 나누개 컬러 바꾸기"]}},38730:e=>{e.exports={en:["change post market color"],ko:["포스트 마켓 컬러 바꾸기"]}},28075:e=>{e.exports={en:["change post market line color"],ko:["포스트 마켓 라인 컬러 바꾸기"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],ko:["프리/포스트 마켓 프라이스 라인 비저빌리티 바꾸기"]}},44371:e=>{e.exports={en:["change pre market color"],ko:["프리 마켓 컬러 바꾸기"]}},96114:e=>{e.exports={en:["change pre market line color"],ko:["프리 마켓 라인 컬러 바꾸기"]}},69814:e=>{e.exports={en:["change previous close price line color"],ko:["이전 클로즈 프라이스 라인 컬러 바꾸기"]}},13660:e=>{e.exports={en:["change previous close price line width"],ko:["이전 클로즈 프라이스 라인 너비 바꾸기"]}},87861:e=>{e.exports={en:["change price line color"],ko:["프라이스 라인 컬러 바꾸기"]}},29353:e=>{e.exports={en:["change price line width"],ko:["프라이스 라인 너비 바꾸기"]}},16241:e=>{e.exports={en:["change range bars style"],ko:["레인지 바 스타일 변경"]}},65821:e=>{e.exports={en:["change range thin bars"],ko:["레인지 씬 바 바꾸기"]}},75487:e=>{e.exports={en:["change renko wick down color"],ko:["렌코 윅 다운 컬러 바꾸기"]}},92277:e=>{e.exports={en:["change renko wick up color"],ko:["렌코 윅 업 컬러 바꾸기"]}},79604:e=>{e.exports={en:["change renko wick visibility"],ko:["렌코 윅 비저빌리티 바꾸기"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],ko:["리플레이 워터마크 표시 여부 변경"]}},82946:e=>{e.exports={en:["change right margin"],ko:["오른쪽 마진 바꾸기"]}},79545:e=>{e.exports={en:["change right margin percentage"],ko:["오른쪽 여백 비율 변경"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],ko:["종목 티커 워터마크 표시 여부 변경"]}},78995:e=>{e.exports={en:["change symbol watermark color"],ko:["심볼 워터마크 컬러 바꾸기"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],ko:["심볼 워터마크 비저빌리티 바꾸기"]}},88167:e=>{e.exports={en:["change symbol description visibility"],ko:["심볼 설명 비저빌리티 바꾸기"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],ko:["종목 설명 워터마크 표시 여부 변경"]}},12050:e=>{e.exports={en:["change symbol field visibility"],ko:["심볼 필드 가시성 변경"]}},46066:e=>{e.exports={en:["change symbol last value mode"],ko:["심볼 라스트 밸류 모드 바꾸기"]}},902:e=>{e.exports={en:["change symbol legend format"],ko:["종목 설명 포맷 변경"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],ko:["인터벌 바꿀 때 차트 왼쪽 엣지 포지션 저장 변경"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],ko:["스케일 모드 버튼 가시성 변경"]}},76131:e=>{e.exports={en:["change scales text color"],ko:["스케일 텍스트 컬러 바꾸기"]}},27792:e=>{e.exports={en:["change scales font size"],ko:["스케일 폰트 사이즈 바꾸기"]}},94997:e=>{e.exports={en:["change scales lines color"],ko:["스케일 라인 컬러 바꾸기"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],ko:["세션 브레이크 비저빌리티 바꾸기"]}},28175:e=>{e.exports={en:["change sessions breaks width"],ko:["세션 브레이크 너비 바꾸기"]}},33895:e=>{e.exports={en:["change sessions breaks color"],ko:["세션 브레이크 컬러 바꾸기"]}},21641:e=>{e.exports={en:["change sessions breaks style"],ko:["체인지 세션 브레이크 스타일 바꾸기"]}}, -16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],ko:["프라이스 스케일에서 (하이키-아시 프라이스 대신) 리얼 프라이스 디스플레이 바꾸기"]}},60834:e=>{e.exports={en:["change thin bars"],ko:["씬 바 바꾸기"]}},39754:e=>{e.exports={en:["change time hours format"],ko:["시간 형식 변경"]}},74883:e=>{e.exports={en:["change top margin"],ko:["탑 마진 바꾸기"]}},51250:e=>{e.exports={en:["change unit label visibility"],ko:["유닛 라벨 비저빌리티 바꾸기"]}},71805:e=>{e.exports={en:["change vert grid lines color"],ko:["버티컬 그리드 라인 컬러 바꾸기"]}},96201:e=>{e.exports={en:["change volume values visibility"],ko:["볼륨 비저빌리티 바꾸기"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],ko:["{candleType} 업 보더 컬러 바꾸기"]}},36697:e=>{e.exports={en:["change {candleType} up color"],ko:["{candleType} 업 컬러 바꾸기"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],ko:["{candleType} 윅 다운 컬러 바꾸기"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],ko:["{candleType} 윅 업 컬러 바꾸기"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],ko:["{candleType} 윅 바꾸기"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],ko:["{candleType} 바디 비저빌리티 바꾸기"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],ko:["{candleType} 비저빌리티 바꾸기"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],ko:["{candleType} 다운 보더 컬러 바꾸기"]}},64571:e=>{e.exports={en:["change {candleType} down color"],ko:["{candleType} 다운 컬러 바꾸기"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],ko:["{chartType} 보더 바 다운 컬러 바꾸기"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],ko:["{chartType} 보더 바 업 컬러 바꾸기"]}},5012:e=>{e.exports={en:["change {chartType} down color"],ko:["{chartType} 다운 컬러 바꾸기"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],ko:["{chartType} 프로젝션 보더 바 업 컬러 바꾸기"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],ko:["{chartType} 프로젝션 바 다운 컬러 바꾸기"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],ko:["{chartType} 프로젝션 바 업 컬러 바꾸기"]}},6970:e=>{e.exports={en:["change {chartType} up color"],ko:["{chartType} 업 컬러 바꾸기"]}},66110:e=>{e.exports={en:["change {inputName} property"],ko:["{inputName} 프로퍼티 바꾸기"]}},18077:e=>{e.exports={en:["adjust data for dividends"],ko:["배당금을 위한 데이터 조정"]}},1433:e=>{e.exports={en:["adjust for contract changes"],ko:["컨트랙트 변경 조절"]}},92598:e=>{e.exports={en:["hollow candles"],ko:["할로우캔들"]}},57243:e=>{e.exports={en:["range","ranges"],ko:["레인지"]}},70282:e=>{e.exports={en:["renko"],ko:["렌코"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],ko:["비활성 구간 전환"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],ko:["데일리 클로즈를 청산가로 쓰기"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/ko.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/ko.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..5eef6bab --- /dev/null +++ b/charting_library/bundles/ko.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,6 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:e=>{e.exports={en:["bars"],ko:["바"]}},31882:e=>{e.exports={en:["12-hours"],ko:["12시간"]}},5797:e=>{e.exports={en:["24-hours"],ko:["24시간"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],ko:["이전 종가에 따라 봉색 결정"]}},23739:e=>{e.exports={en:["Canvas"],ko:["캔버스"]}},24197:e=>{e.exports={en:["Center"],ko:["센터"]}},15153:e=>{e.exports={en:["Chart basic styles"],ko:["차트 베이직 스타일"]}},45639:e=>{e.exports={en:["Chart values"],ko:["차트 밸류"]}},84831:e=>{e.exports={en:["Close line"],ko:["클로즈 라인"]}},74622:e=>{e.exports={en:["Crosshair"],ko:["십자선"]}},81849:e=>{e.exports={en:["Currency"],ko:["통화"]}},3015:e=>{e.exports={en:["Currency and Unit"],ko:["통화 및 단위"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],ko:["배당에 따른 데이터 조정"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],ko:["컨트랙트 변경 조절"]}},36620:e=>{e.exports={en:["Alerts"],ko:["얼러트"]}},68650:e=>{e.exports={en:["Average close"],ko:["평균가"]}},27567:e=>{e.exports={en:["Bottom"],ko:["아래"]}},3159:e=>{e.exports={en:["Bottom line"],ko:["바텀 라인"]}},74406:e=>{e.exports={en:["Body"],ko:["바디"]}},333:e=>{e.exports={en:["Borders"],ko:["경계선"]}},79468:e=>{e.exports={en:["Background"],ko:["배경"]}},10842:e=>{e.exports={en:["Bar change values"],ko:["바 체인지 밸류"]}},70817:e=>{e.exports={en:["Bar change color based on value"]}},28975:e=>{e.exports={en:["Base level"],ko:["베이스 레벨"]}},76473:e=>{e.exports={en:["Bid and ask"],ko:["비드/애스크"]}},32744:e=>{e.exports={en:["Buttons"],ko:["버튼"]}},68662:e=>{e.exports={en:["Grid lines"],ko:["그리드 라인"]}},17611:e=>{e.exports={en:["Down bars"],ko:["다운 바"]}},23743:e=>{e.exports={en:["Down color"],ko:["다운 칼라"]}},48225:e=>{e.exports={en:["Data modification"],ko:["데이타 수정"]}},84838:e=>{e.exports={en:["Date format"],ko:["데이트 포맷"]}},42357:e=>{e.exports={en:["Day of week on labels"],ko:["레이블의 요일"]}},16564:e=>{e.exports={en:["Default"],ko:["기본설정"]}},78734:e=>{e.exports={en:["Description"],ko:["설명"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],ko:["비활성 구간 표시"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],ko:["전자 거래 시간 배경"]}},69808:e=>{e.exports={en:["Events"],ko:["이벤트"]}},41129:e=>{e.exports={en:["Fill"],ko:["채우기"]}},61112:e=>{e.exports={en:["Fill top area"],ko:["필 탑 에어리어"]}},73185:e=>{e.exports={en:["Fill bottom area"],ko:["필 바텀 에어리어"]}},3160:e=>{e.exports={en:["Horizontal"],ko:["가로"]}},61900:e=>{e.exports={en:["Horz only"],ko:["가로만"]}},14180:e=>{e.exports={en:["High and low"],ko:["고가와 저가"]}},56359:e=>{e.exports={en:["High line"],ko:["하이 라인"]}},47326:e=>{e.exports={en:["Integer"]}},17854:e=>{e.exports={en:["Interval"],ko:["인터벌"]}},84549:e=>{e.exports={en:["Indicators"],ko:["지표"]}},78082:e=>{e.exports={en:["Indicators and financials"],ko:["인디케이터 & 파이낸셜"]}},21429:e=>{e.exports={en:["Inputs"],ko:["인풋"]}},25765:e=>{e.exports={en:["Open market status"],ko:["오픈 마켓 스테이터스"]}},34579:e=>{e.exports={en:["Low line"],ko:["로우 라인"]}},14876:e=>{e.exports={en:["Logo"],ko:["로고"]}},89315:e=>{e.exports={en:["Long Description"],ko:["긴 설명"]}},72423:e=>{e.exports={ +en:["Last day change values"],ko:["마지막 날 변경 값"]}},11626:e=>{e.exports={en:["Left"],ko:["왼쪽"]}},56982:e=>{e.exports={en:["Lines"],ko:["라인"]}},8249:e=>{e.exports={en:["Money"],ko:["머니"]}},70937:e=>{e.exports={en:["Margins"],ko:["마진"]}},68833:e=>{e.exports={en:["Middle"],ko:["미들"]}},58589:e=>{e.exports={en:["No overlapping labels"],ko:["오버래핑 라벨 없음"]}},60798:e=>{e.exports={en:["None"],ko:["둘다 아님"]}},51019:e=>{e.exports={en:["Navigation"],ko:["네비게이션"]}},99709:e=>{e.exports={en:["Name"],ko:["이름"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],ko:["인터벌 바꿀 때 차트 왼쪽 엣지 포지션 저장"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],ko:["스케일 모드(A 및 L)"]}},93968:e=>{e.exports={en:["Scales"],ko:["눈금"]}},90275:e=>{e.exports={en:["Scales and lines"],ko:["스케일 및 라인"]}},30042:e=>{e.exports={en:["Scales placement"],ko:["스케일 플레이스먼트"]}},28715:e=>{e.exports={en:["Status line"],ko:["스테이터스 라인"]}},95481:e=>{e.exports={en:["Symbol"],ko:["심볼"]}},53263:e=>{e.exports={en:["Pane"],ko:["페인"]}},82894:e=>{e.exports={en:["Pane separators"],ko:["페인 나누개"]}},86235:e=>{e.exports={en:["Percentage"],ko:["퍼센트"]}},94408:e=>{e.exports={en:["Pips"],ko:["핍스"]}},60904:e=>{e.exports={en:["Pre/post market"],ko:["프리/포스트 마켓"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],ko:["프리/포스트 마켓 백그라운드"]}},59766:e=>{e.exports={en:["Precision"],ko:["정밀도"]}},83811:e=>{e.exports={en:["Previous day close"],ko:["전일 종가"]}},35082:e=>{e.exports={en:["Price Scale"],ko:["프라이스 스케일"]}},27632:e=>{e.exports={en:["Price and percentage value"],ko:["프라이스 및 퍼센트 밸류"]}},62142:e=>{e.exports={en:["Price labels & lines"],ko:["프라이스 라벨 & 라인"]}},84684:e=>{e.exports={en:["Price source"],ko:["프라이스 소스"]}},73466:e=>{e.exports={en:["Projection up bars"],ko:["프로젝션 업 바"]}},77430:e=>{e.exports={en:["Projection candles"],ko:["프로젝션 바"]}},88367:e=>{e.exports={en:["Projection down bars"],ko:["프로젝션 다운 바"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],ko:["프라이스 스케일에 리얼 프라이스 (하이킨-아시 프라이스 대신)"]}},50421:e=>{e.exports={en:["Right"],ko:["오른쪽"]}},62532:e=>{e.exports={en:["Right Margin"],ko:["오른쪽 여백"]}},41571:e=>{e.exports={en:["Watermark"],ko:["워터마크"]}},32163:e=>{e.exports={en:["Wick"],ko:["윅"]}},97118:e=>{e.exports={en:["Top"],ko:["탑"]}},89349:e=>{e.exports={en:["Top line"],ko:["탑 라인"]}},70320:e=>{e.exports={en:["Text"],ko:["문자"]}},25485:e=>{e.exports={en:["Text alignment"],ko:["텍스트 얼라인"]}},67781:e=>{e.exports={en:["Text orientation"],ko:["텍스트 방향"]}},20215:e=>{e.exports={en:["Thin bars"],ko:["씬 (Thin) 바"]}},70198:e=>{e.exports={en:["Title"],ko:["타이틀"]}},29854:e=>{e.exports={en:["Titles"],ko:["제목"]}},5791:e=>{e.exports={en:["Ticker"],ko:["티커"]}},16816:e=>{e.exports={en:["Ticker and description"],ko:["티커와 설명"]}},24821:e=>{e.exports={en:["Ticks"],ko:["틱"]}},93965:e=>{e.exports={en:["Time Scale"],ko:["타임 스케일"]}},5591:e=>{e.exports={en:["Time hours format"],ko:["시간 형식"]}},77073:e=>{e.exports={en:["Timezone"],ko:["타임존"]}},76495:e=>{e.exports={en:["Trading"],ko:["트레이딩"]}},33564:e=>{e.exports={en:["Unit"],ko:["유닛"]}},23091:e=>{e.exports={ +en:["Up color"],ko:["업 칼라"]}},36957:e=>{e.exports={en:["Up bars"],ko:["업 바"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],ko:["데일리 클로즈를 청산가로 쓰기"]}},37644:e=>{e.exports={en:["Volume"],ko:["거래량"]}},51514:e=>{e.exports={en:["Value"],ko:["값"]}},31218:e=>{e.exports={en:["Value according to scale"],ko:["스케일에 따른 밸류"]}},60092:e=>{e.exports={en:["Values"],ko:["밸류"]}},83594:e=>{e.exports={en:["Vert and horz"],ko:["세로 및 가로"]}},8402:e=>{e.exports={en:["Vert only"],ko:["세로만"]}},69526:e=>{e.exports={en:["Vertical"],ko:["세로"]}},21105:e=>{e.exports={en:["candle"],ko:["캔들"]}},27068:e=>{e.exports={en:["change HLC bars"],ko:["HLC 바 변경"]}},21201:e=>{e.exports={en:["change HLC bars color"],ko:["HLC 바 색상 변경"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],ko:["내비게이션 버튼 비저빌리티 바꾸기"]}},96227:e=>{e.exports={en:["change open market status visibility"],ko:["오픈 마켓 스테이터스 비저빌리티 바꾸기"]}},43231:e=>{e.exports={en:["change average close price line width"],ko:["평균 종가 라인 너비 변경"]}},47026:e=>{e.exports={en:["change average close price line color"],ko:["평균 종가 라인 색상 변경"]}},29281:e=>{e.exports={en:["change area fill color"],ko:["에어리어 필 컬러 바꾸기"]}},27059:e=>{e.exports={en:["change area line visibility"],ko:["영역 라인 표시 여부 변경"]}},89346:e=>{e.exports={en:["change area line width"],ko:["에어리어 라인 너비 바꾸기"]}},29605:e=>{e.exports={en:["change area line color"],ko:["에어리어 라인 컬러 바꾸기"]}},56864:e=>{e.exports={en:["change area line style"],ko:["영역 선 스타일 변경"]}},4640:e=>{e.exports={en:["change area price source"],ko:["에어리어 프라이스 소스 바꾸기"]}},98407:e=>{e.exports={en:["change ask line color"],ko:["애스크 라인 컬러 바꾸기"]}},42190:e=>{e.exports={en:["change base level"],ko:["베이스 레벨 바꾸기"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],ko:["베이스라인 바텀 라인 컬러 바꾸기"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],ko:["기준선 하단 선 스타일 변경"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],ko:["베이스라인 바텀 라인 너비 바꾸기"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],ko:["베이스라인 필 바텀 에어리어 컬러 바꾸기"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],ko:["베이스라인 필 탑 에어리어 컬러 바꾸기"]}},68609:e=>{e.exports={en:["change baseline price source"],ko:["베이스라인 프라이스 소스 바꾸기"]}},69044:e=>{e.exports={en:["change baseline top line color"],ko:["베이스라인 탑 라인 컬러 바꾸기"]}},4425:e=>{e.exports={en:["change baseline top line style"],ko:["기준선 상단 선 스타일 변경"]}},68197:e=>{e.exports={en:["change baseline top line width"],ko:["베이스라인 탑 라인 너비 바꾸기"]}},33464:e=>{e.exports={en:["change bar up color"],ko:["바 업 컬러 바꾸기"]}},14201:e=>{e.exports={en:["change bar change down color"]}},30196:e=>{e.exports={en:["change bar change up color"]}},27426:e=>{e.exports={en:["change bar change visibility"],ko:["바 체인지 비저빌리티 바꾸기"]}},59622:e=>{e.exports={en:["change bar down color"],ko:["바 다운 컬러 바꾸기"]}},17919:e=>{e.exports={en:["change bid line color"],ko:["비드 라인 컬러 바꾸기"]}},32094:e=>{e.exports={en:["change bottom margin"],ko:["바텀 마진 바꾸기"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],ko:["커런시 및 유닛 라벨 비저빌리티를 바꾸십시오"]}}, +64003:e=>{e.exports={en:["change currency label visibility"],ko:["커런시 라벨 비저빌리티 바꾸기"]}},42803:e=>{e.exports={en:["change chart background color"],ko:["차트 백그라운드 컬러 바꾸기"]}},41382:e=>{e.exports={en:["change chart background type"],ko:["차트 백그라운드 타입 바꾸기"]}},79637:e=>{e.exports={en:["change chart values visibility"],ko:["차트 밸류 가시성 변경"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],ko:["이전 클로즈에 따라 컬러 바 바꾸기"]}},88324:e=>{e.exports={en:["change column up color"],ko:["컬럼 업 색깔 바꾸기"]}},93890:e=>{e.exports={en:["change column down color"],ko:["컬럼 다운 색깔 바꾸기"]}},4727:e=>{e.exports={en:["change column price source"],ko:["컬럼 프라이스 소스 바꾸기"]}},50544:e=>{e.exports={en:["change crosshair width"],ko:["크로스헤어 너비 바꾸기"]}},92885:e=>{e.exports={en:["change crosshair color"],ko:["크로스헤어 컬러 바꾸기"]}},68418:e=>{e.exports={en:["change crosshair style"],ko:["크로스헤어 스타일 바꾸기"]}},43109:e=>{e.exports={en:["change date format"],ko:["데이트 포맷 변경"]}},30418:e=>{e.exports={en:["change day of week on labels"],ko:["레이블의 요일 변경"]}},82063:e=>{e.exports={en:["change decimal places"],ko:["소숫점 자릿수 바꾸기"]}},45397:e=>{e.exports={en:["change extended hours color"],ko:["익스텐드 아워 컬러 바꾸기"]}},47393:e=>{e.exports={en:["change electronic trading hours"],ko:["전자 거래 시간 바꾸기"]}},73844:e=>{e.exports={en:["change grid lines visibility"],ko:["그리드 선 가시성 변경"]}},61407:e=>{e.exports={en:["change high and low price line color"],ko:["고가 및 저가 라인 색상 변경"]}},39581:e=>{e.exports={en:["change high and low price line width"],ko:["고가 및 저가 라인 너비 변경"]}},6026:e=>{e.exports={en:["change high-low body color"],ko:["하이-로우 바디 컬러 바꾸기"]}},73021:e=>{e.exports={en:["change high-low body visibility"],ko:["하이-로우 바디 비저빌리티 바꾸기"]}},46844:e=>{e.exports={en:["change high-low border color"],ko:["하이-로우 보더 컬러 바꾸기"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],ko:["하이-로우 보더 비저빌리티 바꾸기"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],ko:["하이-로우 라벨 비저빌리티 바꾸기"]}},56961:e=>{e.exports={en:["change high-low labels color"],ko:["하이-로우 라벨 컬러 바꾸기"]}},21133:e=>{e.exports={en:["change horz grid lines color"],ko:["호리존털 그리드 라인 컬러 바꾸기"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],ko:["인디케이터 타이틀 비저빌리티 바꾸기"]}},49583:e=>{e.exports={en:["change indicator values visibility"],ko:["인디케이터 밸류 비저빌리티 바꾸기"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],ko:["지표 인풋값 표시 여부 변경"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],ko:["인디케이터 및 파이낸셜 네임 라벨 비저빌리티 바꾸기"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],ko:["인디케이터 및 파이낸셜 밸류 라벨 비저빌리티 바꾸기"]}},451:e=>{e.exports={en:["change interval watermark visibility"],ko:["인터벌 워터마크 표시 여부 변경"]}},66307:e=>{e.exports={en:["change last day change visibility"],ko:["마지막날 변화 가시성 바꾸기"]}},91873:e=>{e.exports={en:["change legend background transparency"],ko:["설명 배경 투명도 변경"]}},14246:e=>{e.exports={en:["change legend background visibility"],ko:["설명 배경 가시성 변경"]}},88640:e=>{e.exports={en:["change line color"],ko:["라인 컬러 바꾸기"]}},28818:e=>{e.exports={ +en:["change line style"],ko:["라인 스타일 바꾸기"]}},41837:e=>{e.exports={en:["change line price source"],ko:["라인 프라이스 소스 바꾸기"]}},48339:e=>{e.exports={en:["change line width"],ko:["라인 너비 바꾸기"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],ko:["페인 버튼 비저빌리티 바꾸기"]}},52203:e=>{e.exports={en:["change pane separators color"],ko:["페인 나누개 컬러 바꾸기"]}},38730:e=>{e.exports={en:["change post market color"],ko:["포스트 마켓 컬러 바꾸기"]}},28075:e=>{e.exports={en:["change post market line color"],ko:["포스트 마켓 라인 컬러 바꾸기"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],ko:["프리/포스트 마켓 프라이스 라인 비저빌리티 바꾸기"]}},44371:e=>{e.exports={en:["change pre market color"],ko:["프리 마켓 컬러 바꾸기"]}},96114:e=>{e.exports={en:["change pre market line color"],ko:["프리 마켓 라인 컬러 바꾸기"]}},69814:e=>{e.exports={en:["change previous close price line color"],ko:["이전 클로즈 프라이스 라인 컬러 바꾸기"]}},13660:e=>{e.exports={en:["change previous close price line width"],ko:["이전 클로즈 프라이스 라인 너비 바꾸기"]}},87861:e=>{e.exports={en:["change price line color"],ko:["프라이스 라인 컬러 바꾸기"]}},29353:e=>{e.exports={en:["change price line width"],ko:["프라이스 라인 너비 바꾸기"]}},16241:e=>{e.exports={en:["change range bars style"],ko:["레인지 바 스타일 변경"]}},65821:e=>{e.exports={en:["change range thin bars"],ko:["레인지 씬 바 바꾸기"]}},75487:e=>{e.exports={en:["change renko wick down color"],ko:["렌코 윅 다운 컬러 바꾸기"]}},92277:e=>{e.exports={en:["change renko wick up color"],ko:["렌코 윅 업 컬러 바꾸기"]}},79604:e=>{e.exports={en:["change renko wick visibility"],ko:["렌코 윅 비저빌리티 바꾸기"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],ko:["리플레이 워터마크 표시 여부 변경"]}},82946:e=>{e.exports={en:["change right margin"],ko:["오른쪽 마진 바꾸기"]}},79545:e=>{e.exports={en:["change right margin percentage"],ko:["오른쪽 여백 비율 변경"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],ko:["종목 티커 워터마크 표시 여부 변경"]}},78995:e=>{e.exports={en:["change symbol watermark color"],ko:["심볼 워터마크 컬러 바꾸기"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],ko:["심볼 워터마크 비저빌리티 바꾸기"]}},88167:e=>{e.exports={en:["change symbol description visibility"],ko:["심볼 설명 비저빌리티 바꾸기"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],ko:["종목 설명 워터마크 표시 여부 변경"]}},12050:e=>{e.exports={en:["change symbol field visibility"],ko:["심볼 필드 가시성 변경"]}},46066:e=>{e.exports={en:["change symbol last value mode"],ko:["심볼 라스트 밸류 모드 바꾸기"]}},902:e=>{e.exports={en:["change symbol legend format"],ko:["종목 설명 포맷 변경"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],ko:["인터벌 바꿀 때 차트 왼쪽 엣지 포지션 저장 변경"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],ko:["스케일 모드 버튼 가시성 변경"]}},76131:e=>{e.exports={en:["change scales text color"],ko:["스케일 텍스트 컬러 바꾸기"]}},27792:e=>{e.exports={en:["change scales font size"],ko:["스케일 폰트 사이즈 바꾸기"]}},94997:e=>{e.exports={en:["change scales lines color"],ko:["스케일 라인 컬러 바꾸기"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],ko:["세션 브레이크 비저빌리티 바꾸기"]}},28175:e=>{e.exports={en:["change sessions breaks width"],ko:["세션 브레이크 너비 바꾸기"]} +},33895:e=>{e.exports={en:["change sessions breaks color"],ko:["세션 브레이크 컬러 바꾸기"]}},21641:e=>{e.exports={en:["change sessions breaks style"],ko:["체인지 세션 브레이크 스타일 바꾸기"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],ko:["프라이스 스케일에서 (하이키-아시 프라이스 대신) 리얼 프라이스 디스플레이 바꾸기"]}},60834:e=>{e.exports={en:["change thin bars"],ko:["씬 바 바꾸기"]}},39754:e=>{e.exports={en:["change time hours format"],ko:["시간 형식 변경"]}},74883:e=>{e.exports={en:["change top margin"],ko:["탑 마진 바꾸기"]}},51250:e=>{e.exports={en:["change unit label visibility"],ko:["유닛 라벨 비저빌리티 바꾸기"]}},28142:e=>{e.exports={en:["change use custom bar change colors"]}},71805:e=>{e.exports={en:["change vert grid lines color"],ko:["버티컬 그리드 라인 컬러 바꾸기"]}},96201:e=>{e.exports={en:["change volume values visibility"],ko:["볼륨 비저빌리티 바꾸기"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],ko:["{candleType} 업 보더 컬러 바꾸기"]}},36697:e=>{e.exports={en:["change {candleType} up color"],ko:["{candleType} 업 컬러 바꾸기"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],ko:["{candleType} 윅 다운 컬러 바꾸기"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],ko:["{candleType} 윅 업 컬러 바꾸기"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],ko:["{candleType} 윅 바꾸기"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],ko:["{candleType} 바디 비저빌리티 바꾸기"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],ko:["{candleType} 비저빌리티 바꾸기"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],ko:["{candleType} 다운 보더 컬러 바꾸기"]}},64571:e=>{e.exports={en:["change {candleType} down color"],ko:["{candleType} 다운 컬러 바꾸기"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],ko:["{chartType} 보더 바 다운 컬러 바꾸기"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],ko:["{chartType} 보더 바 업 컬러 바꾸기"]}},5012:e=>{e.exports={en:["change {chartType} down color"],ko:["{chartType} 다운 컬러 바꾸기"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],ko:["{chartType} 프로젝션 보더 바 업 컬러 바꾸기"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],ko:["{chartType} 프로젝션 바 다운 컬러 바꾸기"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],ko:["{chartType} 프로젝션 바 업 컬러 바꾸기"]}},6970:e=>{e.exports={en:["change {chartType} up color"],ko:["{chartType} 업 컬러 바꾸기"]}},66110:e=>{e.exports={en:["change {inputName} property"],ko:["{inputName} 프로퍼티 바꾸기"]}},18077:e=>{e.exports={en:["adjust data for dividends"],ko:["배당금을 위한 데이터 조정"]}},1433:e=>{e.exports={en:["adjust for contract changes"],ko:["컨트랙트 변경 조절"]}},92598:e=>{e.exports={en:["hollow candles"],ko:["할로우캔들"]}},57243:e=>{e.exports={en:["range","ranges"],ko:["레인지"]}},70282:e=>{e.exports={en:["renko"],ko:["렌코"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],ko:["비활성 구간 전환"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],ko:["데일리 클로즈를 청산가로 쓰기"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/library.022b0cac58461bba6f17.js b/charting_library/bundles/library.4587df92a2a78258f85b.js similarity index 71% rename from charting_library/bundles/library.022b0cac58461bba6f17.js rename to charting_library/bundles/library.4587df92a2a78258f85b.js index 153fc40e..45eba3cb 100644 --- a/charting_library/bundles/library.022b0cac58461bba6f17.js +++ b/charting_library/bundles/library.4587df92a2a78258f85b.js @@ -225,19 +225,19 @@ this._header="",this._title=""}header(){return this._header}title(){return this. const o=R(i,t[s]);void 0!==o&&(e[s]=o)}else e[s]=i;return e}),{});return(0,h.default)(i)?void 0:i}function N(e){return e===f.StdTheme.Dark?1:0}function O(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(!(0,u.default)(e)||!(0,u.default)(t))return!1;const i=(0,p.tryParseRgba)(e),s=(0,p.tryParseRgba)(t);return!(!i||!s)&&!!(0,g.colorsAreCloseEnough)(e,t)}class F extends C.Property{constructor(e){const{defaultName:t,nonThemedDefaultsKeys:i,themedDefaultsKeys:s,excludedDefaultsKeys:n=[],themedColors:r,replaceThemedColorsOnThemeChange:a=!1,allStateKeys:l,excludedStateKeys:c=[],excludedTemplateKeys:h=[],state:d,useUserPreferences:u=!0,saveNonDefaultUserPreferencesOnly:p=!1,ignoreAllowSavingDefaults:m=!1,alwaysSaveDefaultKeys:g=["version"],saveDefaultsConsumer:C=w.saveDefaults,factoryDefaultsSupplier:T=()=>M(!1,t,[],null),schema:x=(0,b.createPropertySchema)(T()),theme:I=y.watchedTheme.spawnOwnership()}=e;super(void 0,x),this._themedColors=[],this._restoreFactoryDefaultsEvent=new S.Delegate,this._replaceThemedColorsOnThemeChange=!1,this._forbidSavingDefaults=!1,this._defaultName=t,this._useUserPreferences=u,this._saveNonDefaultUserPreferencesOnly=p,this._ignoreAllowSavingDefaults=m,this._saveDefaultsConsumer=C,this._factoryDefaultsSupplier=T,this._allStateKeys=l,this._excludedStateKeys=c,this._nonThemedDefaultsKeys=i,this._themedDefaultsKeys=s,this._allDefaultsKeys=i||s?[...i??[],...s??[]]:void 0,this._excludedDefaultsKeys=n,this._excludedTemplateKeys=h,this._themedColors=r,this._alwaysSaveDefaultKeys=g,(0,_.assert)(void 0===this._allDefaultsKeys||0===this._excludedDefaultsKeys.length,"Defaults keys and excluded defaults keys cannot be used at the same time"),(0,_.assert)(void 0===this._allStateKeys||0===this._excludedStateKeys.length,"State keys and excluded state keys cannot be used at the same time"),this._theme=I;const A=P(this._theme);this.merge((0,o.default)(this._factoryDefaultsForTheme((0,v.isStdThemeName)(A)?A:f.StdTheme.Light),this._userSettings(),E(d,l,c))),r&&a&&this.setThemedColors(r),this._restoreFactoryDefaultsEvent=new S.Delegate}destroy(){this._theme?.release(),this._unsubscribeWatchedTheme?.(),super.destroy()}applyTemplate(e,t){this.mergeAndFire(E((0,o.default)((0,s.default)(t),e),this._allStateKeys,this._excludedTemplateKeys))}preferences(){return E(this.state(this._excludedDefaultsKeys),this._allDefaultsKeys)}template(){return E(this.state(void 0,4),void 0,this._excludedTemplateKeys)}mergePreferences(e){this.mergeAndFire(E(e,this._allDefaultsKeys,this._excludedDefaultsKeys))}addExcludedKey(e,t){1&t&&B(this._excludedDefaultsKeys,e),2&t&&B(this._excludedStateKeys,e),4&t&&B(this._excludedTemplateKeys,e)}removeExcludedKey(e,t){1&t&&V(this._excludedDefaultsKeys,e),2&t&&V(this._excludedStateKeys,e)}restoreFactoryDefaults(){const e=this.factoryDefaults();x(e,this._excludedDefaultsKeys),this.mergeAndFire(e),this._defaultName.startsWith("study_")&&!this._defaultName.startsWith("study_VbPFixed")||this._saveDefaultsConsumer(this._defaultName),this._restoreFactoryDefaultsEvent.fire()} onRestoreFactoryDefaults(){return this._restoreFactoryDefaultsEvent}saveDefaults(){if(!this._useUserPreferences||this._forbidSavingDefaults)return;let e;if(this._saveNonDefaultUserPreferencesOnly){const t=this.state(this._excludedDefaultsKeys),i=this.factoryDefaults();if(e=R(E(t,this._nonThemedDefaultsKeys),E(i,this._nonThemedDefaultsKeys,this._excludedDefaultsKeys)),this._alwaysSaveDefaultKeys.length){const i=E(t,this._alwaysSaveDefaultKeys);e=e??{},(0,o.default)(e,i)}const s=this.themeDefaults(P(this._theme)),n=this.themeState(),r=R(n,s);(0,h.default)(r)||(e=e??{},(0,o.default)(e,n))}else e=this.preferences();this._saveDefaultsConsumer(this._defaultName,e)}themeDefaults(e){if(this._themedColors)return function(e,t){const i={};for(const{path:s,colors:o}of e)(0,a.default)(i,s,o[N(t)]);return i}(this._themedColors,e===f.StdTheme.Dark?f.StdTheme.Dark:f.StdTheme.Light);return E(this._factoryDefaultsSupplier(),this._themedDefaultsKeys,this._excludedDefaultsKeys)}factoryDefaults(){return this._factoryDefaultsForTheme(P(this._theme))}themeState(){const e=super.state(this._excludedDefaultsKeys),t=this._themedColors;return E(e,t?t.map((e=>e.path)):this._themedDefaultsKeys)}allThemePropertiesAreDefault(e){(0,_.assert)(!!this._themedColors,"This method should not be called if themed colors are not set");return function(e,t,i=[]){for(const s of i){const i=s.path;if(!O((0,r.default)(e,i),(0,r.default)(t,i)))return!1}return!0}(this.themeState(),this.themeDefaults(e),this._themedColors)}clone(e){return new F(this._options())}setThemedColors(e){if(this._themedColors=e,void 0===this._unsubscribeWatchedTheme){const e=()=>{this._updateThemedColors(!1)};this._theme.subscribe(e),this._unsubscribeWatchedTheme=()=>this._theme.unsubscribe(e)}this._updateThemedColors(!0)}applyDefaultThemedProperties(e){this._themedColors&&this.mergeAndFire(this.themeDefaults(e))}state(e,t){return E(super.state([...this._excludedStateKeys,...e??[]],t),this._allStateKeys)}_updateThemedColors(e){if(!this._themedColors)return;const t=P(this._theme),i=t===f.StdTheme.Light?f.StdTheme.Dark:f.StdTheme.Light;for(const s of this._themedColors){const o=(0,_.ensureDefined)(this.childByPath(s.path)),n=s.colors[N(i)];(""===o.value()||!e&&O(o.value(),n))&&o.setValue(s.colors[N(t)])}}_userSettings(){if(!this._useUserPreferences)return;const e=M(!0,this._defaultName,[],null);if(!e)return;return E((0,b.extractStateWithSchema)(e,this._schema,1),this._allDefaultsKeys,this._excludedDefaultsKeys)}_options(){return{defaultName:this._defaultName,factoryDefaultsSupplier:this._factoryDefaultsSupplier,state:this.state(),nonThemedDefaultsKeys:this._nonThemedDefaultsKeys,themedDefaultsKeys:this._themedDefaultsKeys,excludedDefaultsKeys:this._excludedDefaultsKeys,themedColors:this._themedColors,replaceThemedColorsOnThemeChange:this._replaceThemedColorsOnThemeChange,allStateKeys:this._allStateKeys,excludedStateKeys:this._excludedDefaultsKeys,excludedTemplateKeys:this._excludedTemplateKeys,useUserPreferences:this._useUserPreferences, saveNonDefaultUserPreferencesOnly:this._saveNonDefaultUserPreferencesOnly,ignoreAllowSavingDefaults:this._ignoreAllowSavingDefaults,saveDefaultsConsumer:this._saveDefaultsConsumer,alwaysSaveDefaultKeys:this._alwaysSaveDefaultKeys,theme:this._theme.spawnOwnership()}}_childChanged(e,t){super._childChanged(e,t),this._propertyAffectsDefaults(t)&&this.saveDefaults()}_fireMergeAndFireChangedProps(e){this._forbidSavingDefaults=!0,super._fireMergeAndFireChangedProps(e),this._forbidSavingDefaults=!1,e.some((e=>this._propertyAffectsDefaults(e.pathToRootProperty())))&&this.saveDefaults()}_factoryDefaultsForTheme(e){return(0,o.default)(this._factoryDefaultsSupplier(),this.themeDefaults(e))}_propertyAffectsDefaults(e){return(this._ignoreAllowSavingDefaults||I)&&!this._defaultName.startsWith("replayStudyStrategy")&&(!this._defaultName.startsWith("study_")||this._defaultName.startsWith("study_VbPFixed"))&&(this._allDefaultsKeys&&this._allDefaultsKeys.includes(e)||!this._allDefaultsKeys&&!this._excludedDefaultsKeys?.includes(e))&&(0,C.isPrimitiveType)(this.childByPath(e)?.value())}}},60973:(e,t,i)=>{"use strict";var{clone:s,merge:o}=i(87465),n=i(86572).PlDisplay;const{generateColor:r}=i(52859),{getStdChartTheme:a}=i(24317),{DEFAULT_THEME:l}=i(22489),c=i(49156).colors;var h=i(86572).TradedGroupHorizontalAlignment,d=i(82095),u=i(36947).LineToolPitchforkStyle,_=i(45580).LineToolBarsPatternMode,p=i(4359),m=p.LineStudyPlotStyle,g=p.STUDYPLOTDISPLAYTARGET,f=i(19679),y=i(97902).PriceAxisLastValueMode,v=i(7024).MagnetMode,S=i(25672).LineEnd,b=i(93201).ColorType;const w=i(59883).DEFAULT_LINE_TOOL_LINE_WIDTH;var C=i(97760).StatsPosition,T=i(57511).sessionsPreferencesDefault,P=i(72755).axisLabelBackgroundColor,x=i(59064).mainSeriesProperties;const{LINESTYLE_SOLID:M,LINESTYLE_DASHED:I}=i(69558);var A=i(9343).getLogger("Chart.Defaults");const{colorWhite:L,colorWhiteAlpha25:k,colorTvBlue50:E,colorTvBlue500:D,colorTvBlue500Alpha30:B,colorTvBlue500Alpha25:V,colorTvBlue500Alpha20:R,colorTvBlue600:N,colorDeepBlue200:O,colorDeepBlue300:F,colorDeepBlue500:W,colorDeepBlue500Alpha20:H,colorSkyBlue500:z,colorSkyBlue500Alpha20:U,colorSkyBlue500Alpha25:j,colorSkyBlue700:G,colorSkyBlue700Alpha70:q,colorDefaultRed:$,colorRipeRed200:K,colorRipeRed300:Y,colorRipeRed400:Z,colorRipeRed400Alpha5:X,colorRipeRed500:J,colorRipeRed500Alpha30:Q,colorRipeRed500Alpha20:ee,colorRipeRed600:te,colorGrapesPurple500:ie,colorGrapesPurple500Alpha0:se,colorGrapesPurple500Alpha20:oe,colorGrapesPurple500Alpha70:ne,colorBerryPink400:re,colorBerryPink500:ae,colorBerryPink500Alpha20:le,colorBerryPink500Alpha25:ce,colorMintyGreen100:he,colorMintyGreen400:de,colorMintyGreen500:ue,colorMintyGreen500Alpha20:_e,colorIguanaGreen300:pe,colorIguanaGreen500:me,colorIguanaGreen500Alpha20:ge,colorTanOrange300:fe,colorTanOrange500:ye,colorTanOrange500Alpha20:ve,colorTanOrange600:Se,colorTanOrange700:be,colorColdGray150:we,colorColdGray400:Ce,colorColdGray450:Te,colorColdGray500:Pe,colorColdGray550:xe,colorColdGray900:Me,colorColdGray750:Ie,colorForestGreen300:Ae,colorForestGreen300Alpha5:Le}=c -;var ke=function(e){var t=function(e,t){return{color:e,visible:t}},i=function(e,t,i,s){const o={coeff:e,color:t,visible:i};return s&&(o.text=""),o},p=function(e,t,i,s,o){return{coeff:e,color:t,visible:i,linestyle:void 0===s?M:s,linewidth:void 0===o?w:o}},A=function(e,t,i){return{color:e,width:void 0===i?w:i,visible:t}},ke=function(e,t,i,s,o){return{color:e,visible:t,width:i,x:s,y:o}},Ee=function(e,t,i,s,o,n){return{coeff1:e,coeff2:t,color:i,visible:s,linestyle:void 0===o?M:o,linewidth:void 0===n?w:n}};if(void 0===TradingView.defaultProperties){var Be;switch(window.locale){case"ar_AE":Be="Asia/Dubai";break;case"au":Be="Australia/Sydney";break;case"br":Be="America/Sao_Paulo";break;case"ca":Be="America/Toronto";break;case"de_DE":case"it":Be="Europe/Berlin";break;case"es":Be="Europe/Madrid";break;case"he_IL":case"tr":Be="Europe/Athens";break;case"hu_HU":case"pl":Be="Europe/Warsaw";break;case"id":case"th_TH":case"vi_VN":Be="Asia/Bangkok";break;case"in":Be="Asia/Kolkata";break;case"ja":case"kr":Be="Asia/Tokyo";break;case"ms_MY":Be="Asia/Singapore";break;case"ru":Be="Europe/Moscow";break;case"uk":Be="Europe/London";break;case"zh_CN":case"zh_TW":Be="Asia/Shanghai";break;default:Be="Etc/UTC"}const e=a(l);TradingView.defaultProperties={chartproperties:o({timezone:Be,priceScaleSelectionStrategyName:"auto",inactivityGaps:!1,paneProperties:{backgroundType:b.Solid,gridLinesMode:"both",vertGridProperties:{style:M},horzGridProperties:{style:M},crossHairProperties:{style:I,transparency:0,width:1},topMargin:10,bottomMargin:8,axisProperties:{autoScale:!0,autoScaleDisabled:!1,lockScale:!1,percentage:!1,percentageDisabled:!1,indexedTo100:!1,log:!1,logDisabled:!1,alignLabels:!0,isInverted:!1},legendProperties:{showStudyArguments:!0,showStudyTitles:!0,showStudyValues:!0,showSeriesTitle:!0,showSeriesOHLC:!0,showLegend:!0,showLastDayChange:!1,showBarChange:!0,showVolume:!1,showBackground:!0,showPriceSource:!0,backgroundTransparency:50,showLogo:!0,showTradingButtons:!0,showTradingButtonsMobile:!0,showSeriesLegendCloseOnMobile:!0},separatorColor:we},scalesProperties:{fontSize:12,scaleSeriesOnly:!1,showSeriesLastValue:!0,seriesLastValueMode:y.LastValueAccordingToScale,showSeriesPrevCloseValue:!1,showStudyLastValue:!0,showSymbolLabels:!1,showStudyPlotLabels:!1,showBidAskLabels:!1,showPrePostMarketPriceLabel:!0,showFundamentalNameLabel:!1,showFundamentalLastValue:!0,barSpacing:f.DEFAULT_BAR_SPACING,axisHighlightColor:V,axisLineToolLabelBackgroundColorCommon:P.common,axisLineToolLabelBackgroundColorActive:P.active,showPriceScaleCrosshairLabel:!0,showTimeScaleCrosshairLabel:!0,crosshairLabelBgColorLight:Me,crosshairLabelBgColorDark:Ie,saveLeftEdge:!1},mainSeriesProperties:o(x,e.content.mainSourceProperties),chartEventsSourceProperties:{visible:!0,futureOnly:!0,breaks:{color:"#555555",visible:!1,style:I,width:1}},tradingProperties:{showPositions:!0,positionPL:{visibility:!0,display:n.Money},bracketsPL:{visibility:!0,display:n.Money},positionAndBracketsPL:!0,showOrders:!0,showExecutions:!0,showExecutionsLabels:!1,showReverse:!0, -horizontalAlignment:h.Right,extendLeft:!0,lineLength:5,lineWidth:1,lineStyle:M},volumePaneSize:"large"},e.content.chartProperties),sessions:o(T,e.content.sessions),drawings:{magnet:!1,magnetSnapsToIndicators:!1,magnetMode:v.WeakMagnet,stayInDrawingMode:!1,drawOnAllCharts:!0,drawOnAllChartsMode:1},linetoolorder:{extendLeft:"inherit",lineLength:"inherit",lineLengthUnit:"percentage",lineColor:$,lineActiveBuyColor:"#4094e8",lineInactiveBuyColor:"rgba(64, 148, 232, 0.5)",lineActiveSellColor:"#e75656",lineInactiveSellColor:"rgba(231, 86, 86, 0.5)",lineStyle:"inherit",lineWidth:"inherit",bodyBorderActiveBuyColor:"#4094e8",bodyBorderInactiveBuyColor:"rgba(64, 148, 232, 0.5)",bodyBorderActiveSellColor:"#e75656",bodyBorderInactiveSellColor:"rgba(231, 86, 86, 0.5)",bodyBackgroundColor:k,bodyBackgroundTransparency:25,bodyTextInactiveLimitColor:"rgba(38, 140, 2, 0.5)",bodyTextActiveLimitColor:"#268c02",bodyTextInactiveStopColor:"rgba(231, 86, 86, 0.5)",bodyTextActiveStopColor:"#e75656",bodyTextInactiveBuyColor:"rgba(64, 148, 232, 0.5)",bodyTextActiveBuyColor:"#4094e8",bodyTextInactiveSellColor:"rgba(231, 86, 86, 0.5)",bodyTextActiveSellColor:"#e75656",bodyFontFamily:"Verdana",bodyFontSize:9,bodyFontBold:!0,bodyFontItalic:!1,quantityBorderActiveBuyColor:"#4094e8",quantityBorderInactiveBuyColor:"rgba(64, 148, 232, 0.5)",quantityBorderActiveSellColor:"#e75656",quantityBorderInactiveSellColor:"rgba(231, 86, 86, 0.5)",quantityBackgroundInactiveBuyColor:"rgba(64, 148, 232, 0.5)",quantityBackgroundActiveBuyColor:"#4094e8",quantityBackgroundInactiveSellColor:"rgba(231, 86, 86, 0.5)",quantityBackgroundActiveSellColor:"#e75656",quantityTextColor:L,quantityTextTransparency:0,quantityFontFamily:"Verdana",quantityFontSize:9,quantityFontBold:!0,quantityFontItalic:!1,cancelButtonBorderActiveBuyColor:"#4094e8",cancelButtonBorderInactiveBuyColor:"rgba(64, 148, 232, 0.5)",cancelButtonBorderActiveSellColor:"#e75656",cancelButtonBorderInactiveSellColor:"rgba(231, 86, 86, 0.5)",cancelButtonBackgroundColor:k,cancelButtonBackgroundTransparency:25,cancelButtonIconActiveBuyColor:"#4094e8",cancelButtonIconInactiveBuyColor:"rgba(64, 148, 232, 0.5)",cancelButtonIconActiveSellColor:"#e75656",cancelButtonIconInactiveSellColor:"rgba(231, 86, 86, 0.5)",tooltip:"",modifyTooltip:"",cancelTooltip:""},linetoolposition:{extendLeft:"inherit",lineLength:"inherit",lineLengthUnit:"percentage",lineBuyColor:"#4094e8",lineSellColor:"#e75656",lineStyle:"inherit",lineWidth:"inherit",bodyBorderBuyColor:"#4094e8",bodyBorderSellColor:"#e75656",bodyBackgroundColor:k,bodyBackgroundTransparency:25,bodyTextPositiveColor:"#268c02",bodyTextNeutralColor:"#646464",bodyTextNegativeColor:"#e75656",bodyFontFamily:"Verdana",bodyFontSize:9,bodyFontBold:!0,bodyFontItalic:!1,quantityBorderBuyColor:"#4094e8",quantityBorderSellColor:"#e75656",quantityBackgroundBuyColor:"#4094e8",quantityBackgroundSellColor:"#e75656",quantityTextColor:L,quantityTextTransparency:0,quantityFontFamily:"Verdana",quantityFontSize:9,quantityFontBold:!0,quantityFontItalic:!1,reverseButtonBorderBuyColor:"#4094e8", -reverseButtonBorderSellColor:"#e75656",reverseButtonBackgroundColor:k,reverseButtonBackgroundTransparency:25,reverseButtonIconBuyColor:"#4094e8",reverseButtonIconSellColor:"#e75656",closeButtonBorderBuyColor:"#4094e8",closeButtonBorderSellColor:"#e75656",closeButtonBackgroundColor:k,closeButtonBackgroundTransparency:25,closeButtonIconBuyColor:"#4094e8",closeButtonIconSellColor:"#e75656",tooltip:"",protectTooltip:"",closeTooltip:"",reverseTooltip:""},linetoolexecution:{direction:"buy",arrowHeight:8,arrowSpacing:1,arrowBuyColor:"#4094e8",arrowSellColor:"#e75656",text:"",textColor:c.colorBlack,textTransparency:0,fontFamily:"Verdana",fontSize:10,fontBold:!1,fontItalic:!1,tooltip:""},linetoolimage:{transparency:0,cssWidth:0,cssHeight:0,angle:0},linetoolbezierquadro:{linecolor:D,linewidth:w,fillBackground:!1,backgroundColor:R,transparency:50,linestyle:M,extendLeft:!1,extendRight:!1,leftEnd:S.Normal,rightEnd:S.Normal},linetoolbeziercubic:{linecolor:W,linewidth:w,fillBackground:!1,backgroundColor:H,transparency:80,linestyle:M,extendLeft:!1,extendRight:!1,leftEnd:S.Normal,rightEnd:S.Normal},linetooltrendline:{linecolor:D,linewidth:w,linestyle:M,extendLeft:!1,extendRight:!1,leftEnd:S.Normal,rightEnd:S.Normal,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:D,fontsize:14,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!1,showPercentPriceRange:!1,showPipsPriceRange:!1,showBarsRange:!1,showDateTimeRange:!1,showDistance:!1,showAngle:!1,statsPosition:C.Right},linetoolinfoline:{linecolor:D,linewidth:w,linestyle:M,extendLeft:!1,extendRight:!1,leftEnd:S.Normal,rightEnd:S.Normal,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:D,fontsize:14,bold:!1,italic:!1,alwaysShowStats:!0,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!0,showPercentPriceRange:!0,showPipsPriceRange:!0,showBarsRange:!0,showDateTimeRange:!0,showDistance:!0,showAngle:!0,statsPosition:C.Center},linetooltimecycles:{linecolor:"#159980",linewidth:w,fillBackground:!0,backgroundColor:"rgba(106, 168, 79, 0.5)",transparency:50,linestyle:M},linetoolsineline:{linecolor:"#159980",linewidth:w,linestyle:M},linetooltrendangle:{linecolor:D,linewidth:w,linestyle:M,fontsize:12,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!1,showPercentPriceRange:!1,showPipsPriceRange:!1,showBarsRange:!1,extendRight:!1,extendLeft:!1,statsPosition:C.Right},linetooldisjointangle:{linecolor:ue,linewidth:w,linestyle:M,fillBackground:!0,backgroundColor:_e,transparency:20,extendLeft:!1,extendRight:!1,leftEnd:S.Normal,rightEnd:S.Normal,textcolor:ue,fontsize:12,bold:!1,italic:!1,showPrices:!1,showPriceRange:!1,showDateTimeRange:!1,showBarsRange:!1,labelVisible:!1,labelHorzAlign:"left",labelVertAlign:"bottom",labelTextColor:ue,labelFontSize:14,labelBold:!1,labelItalic:!1},linetoolflatbottom:{linecolor:ye,linewidth:w,linestyle:M,fillBackground:!0,backgroundColor:ve,transparency:20,extendLeft:!1,extendRight:!1,leftEnd:S.Normal,rightEnd:S.Normal,textcolor:ye,fontsize:12,bold:!1,italic:!1, -showPrices:!1,showPriceRange:!1,showDateTimeRange:!1,showBarsRange:!1,labelVisible:!1,labelHorzAlign:"left",labelVertAlign:"bottom",labelTextColor:ye,labelFontSize:14,labelBold:!1,labelItalic:!1},linetoolriskrewardshort:{linecolor:Pe,linewidth:1,textcolor:L,fontsize:12,fillLabelBackground:!0,labelBackgroundColor:"#585858",fillBackground:!0,stopBackground:ee,profitBackground:_e,stopBackgroundTransparency:80,profitBackgroundTransparency:80,drawBorder:!1,borderColor:"#667b8b",compact:!1,riskDisplayMode:"percents",accountSize:1e3,lotSize:1,risk:25,alwaysShowStats:!1,showPriceLabels:!0,currency:"NONE"},linetoolriskrewardlong:{linecolor:Pe,linewidth:1,textcolor:L,fontsize:12,fillLabelBackground:!0,labelBackgroundColor:"#585858",fillBackground:!0,stopBackground:ee,profitBackground:_e,stopBackgroundTransparency:80,profitBackgroundTransparency:80,drawBorder:!1,borderColor:"#667b8b",compact:!1,riskDisplayMode:"percents",accountSize:1e3,lotSize:1,risk:25,alwaysShowStats:!1,showPriceLabels:!0,currency:"NONE"},linetoolarrow:{linecolor:D,linewidth:w,linestyle:M,extendLeft:!1,extendRight:!1,leftEnd:S.Normal,rightEnd:S.Arrow,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:D,fontsize:14,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!1,showPercentPriceRange:!1,showPipsPriceRange:!1,showBarsRange:!1,showDateTimeRange:!1,showDistance:!1,showAngle:!1,statsPosition:C.Right},linetoolray:{linecolor:D,linewidth:w,linestyle:M,extendLeft:!1,extendRight:!0,leftEnd:S.Normal,rightEnd:S.Normal,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:D,fontsize:14,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!1,showPercentPriceRange:!1,showPipsPriceRange:!1,showBarsRange:!1,showDateTimeRange:!1,showDistance:!1,showAngle:!1,statsPosition:C.Right},linetoolextended:{linecolor:D,linewidth:w,linestyle:M,extendLeft:!0,extendRight:!0,leftEnd:S.Normal,rightEnd:S.Normal,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:D,fontsize:14,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!1,showPercentPriceRange:!1,showPipsPriceRange:!1,showBarsRange:!1,showDateTimeRange:!1,showDistance:!1,showAngle:!1,statsPosition:C.Right},linetoolhorzline:{linecolor:D,linewidth:w,linestyle:M,showPrice:!0,textcolor:D,fontsize:12,bold:!1,italic:!1,horzLabelsAlign:"center",vertLabelsAlign:"middle"},linetoolhorzray:{linecolor:D,linewidth:w,linestyle:M,showPrice:!0,textcolor:D,fontsize:12,bold:!1,italic:!1,horzLabelsAlign:"center",vertLabelsAlign:"top"},linetoolvertline:{linecolor:D,linewidth:w,linestyle:M,extendLine:!0,showTime:!0,horzLabelsAlign:"center",vertLabelsAlign:"middle",textcolor:D,textOrientation:"vertical",fontsize:14,bold:!1,italic:!1},linetoolcrossline:{linecolor:D,linewidth:w,linestyle:M,showPrice:!0,showTime:!0},linetoolfibtimezone:{horzLabelsAlign:"right",vertLabelsAlign:"bottom",showLabels:!0,fillBackground:!1,transparency:80,trendline:{visible:!0,color:"#808080",linewidth:1,linestyle:I},level1:p(0,Pe,!0), -level2:p(1,D,!0),level3:p(2,D,!0),level4:p(3,D,!0),level5:p(5,D,!0),level6:p(8,D,!0),level7:p(13,D,!0),level8:p(21,D,!0),level9:p(34,D,!0),level10:p(55,D,!0),level11:p(89,D,!0)},linetooltext:{color:D,fontsize:14,fillBackground:!1,backgroundColor:V,backgroundTransparency:70,drawBorder:!1,borderColor:xe,bold:!1,italic:!1,fixedSize:!0,wordWrap:!1,wordWrapWidth:200},linetooltextabsolute:{color:D,fontsize:14,fillBackground:!1,backgroundColor:V,backgroundTransparency:70,drawBorder:!1,borderColor:xe,bold:!1,italic:!1,fixedSize:!1,wordWrap:!1,wordWrapWidth:200},linetoolballoon:{color:L,backgroundColor:ne,borderColor:se,fontsize:14,transparency:30},linetoolcomment:{color:L,backgroundColor:D,borderColor:D,fontsize:16,transparency:0},linetoolbrush:{linecolor:z,linewidth:w,smooth:5,fillBackground:!1,backgroundColor:z,transparency:50,leftEnd:S.Normal,rightEnd:S.Normal},linetoolhighlighter:{linecolor:ee,smooth:5,transparency:80,width:20},linetoolpolyline:{linecolor:z,linewidth:w,linestyle:M,fillBackground:!0,backgroundColor:U,transparency:80,filled:!1},linetoolsignpost:{emoji:"🙂",showImage:!1,plateColor:D,fontSize:12,bold:!1,italic:!1},linetoolpath:{lineColor:D,lineWidth:w,lineStyle:M,leftEnd:S.Normal,rightEnd:S.Arrow},linetoolarrowmarkleft:{color:D,arrowColor:D,fontsize:14,bold:!1,italic:!1,showLabel:!0},linetoolarrowmarkup:{color:ue,arrowColor:ue,fontsize:14,bold:!1,italic:!1,showLabel:!0},linetoolarrowmarkright:{color:D,arrowColor:D,fontsize:14,bold:!1,italic:!1,showLabel:!0},linetoolarrowmarkdown:{color:te,arrowColor:te,fontsize:14,bold:!1,italic:!1,showLabel:!0},linetoolflagmark:{flagColor:D},linetoolpricelabel:{color:L,backgroundColor:D,borderColor:D,fontWeight:"bold",fontsize:14,transparency:0},linetoolarrowmarker:{backgroundColor:N,textColor:N,bold:!0,italic:!1,fontsize:16},linetoolrotatedrectangle:{color:me,fillBackground:!0,backgroundColor:ge,transparency:50,linewidth:w},linetoolcircle:{color:ye,backgroundColor:ve,fillBackground:!0,linewidth:w,textColor:ye,fontSize:14,bold:!1,italic:!1},linetoolellipse:{color:J,fillBackground:!0,backgroundColor:ee,transparency:50,linewidth:w,textColor:J,fontSize:14,bold:!1,italic:!1},linetoolarc:{color:ae,fillBackground:!0,backgroundColor:le,transparency:80,linewidth:w},linetoolprediction:{linecolor:D,linewidth:w,sourceBackColor:D,sourceTextColor:L,sourceStrokeColor:D,targetStrokeColor:D,targetBackColor:D,targetTextColor:L,successBackground:me,successTextColor:L,failureBackground:J,failureTextColor:L,intermediateBackColor:"#ead289",intermediateTextColor:"#6d4d22",transparency:10,centersColor:"#202020"},linetooltriangle:{color:ue,fillBackground:!0,backgroundColor:_e,transparency:80,linewidth:w},linetoolcallout:{color:L,backgroundColor:q,transparency:50,linewidth:w,fontsize:14,bordercolor:G,bold:!1,italic:!1,wordWrap:!1,wordWrapWidth:200},linetoolparallelchannel:{linecolor:D,linewidth:w,linestyle:M,extendLeft:!1,extendRight:!1,fillBackground:!0,backgroundColor:R,transparency:20,showMidline:!0,midlinecolor:D,midlinewidth:1,midlinestyle:I,labelVisible:!1,labelHorzAlign:"left", -labelVertAlign:"bottom",labelTextColor:D,labelFontSize:14,labelBold:!1,labelItalic:!1},linetoolelliottimpulse:{degree:7,showWave:!0,color:"#3d85c6",linewidth:w},linetoolelliotttriangle:{degree:7,showWave:!0,color:ye,linewidth:w},linetoolelliotttriplecombo:{degree:7,showWave:!0,color:"#6aa84f",linewidth:w},linetoolelliottcorrection:{degree:7,showWave:!0,color:"#3d85c6",linewidth:w},linetoolelliottdoublecombo:{degree:7,showWave:!0,color:"#6aa84f",linewidth:w},linetoolbarspattern:{color:D,mode:_.Bars,mirrored:!1,flipped:!1},linetoolghostfeed:{averageHL:20,variance:50,candleStyle:{upColor:he,downColor:K,drawWick:!0,drawBorder:!0,borderColor:"#378658",borderUpColor:ue,borderDownColor:J,wickColor:Pe},transparency:50},study:{inputs:{},styles:{},bands:{},graphics:{},ohlcPlots:{},palettes:{},filledAreasStyle:{},filledAreas:{},visible:!0,showLegendValues:!0,showLegendInputs:!0,showLabelsOnPriceScale:!0,precision:"default"},linetoolpitchfork:{fillBackground:!0,transparency:80,style:u.Original,median:{visible:!0,color:J,linewidth:w,linestyle:M},extendLines:!1,level0:p(.25,fe,!1),level1:p(.382,pe,!1),level2:p(.5,ue,!0),level3:p(.618,ue,!1),level4:p(.75,z,!1),level5:p(1,D,!0),level6:p(1.5,ie,!1),level7:p(1.75,ae,!1),level8:p(2,Y,!1)},linetoolpitchfan:{fillBackground:!0,transparency:80,median:{visible:!0,color:J,linewidth:w,linestyle:M},level0:p(.25,fe,!1),level1:p(.382,pe,!1),level2:p(.5,z,!0),level3:p(.618,ue,!1),level4:p(.75,z,!1),level5:p(1,D,!0),level6:p(1.5,ie,!1),level7:p(1.75,ae,!1),level8:p(2,Y,!1)},linetoolgannfan:{linewidth:w,showLabels:!0,fillBackground:!0,transparency:80,level1:Ee(1,8,ye,!0),level2:Ee(1,4,ue,!0),level3:Ee(1,3,me,!0),level4:Ee(1,2,ue,!0),level5:Ee(1,1,z,!0),level6:Ee(2,1,D,!0),level7:Ee(3,1,ie,!0),level8:Ee(4,1,ae,!0),level9:Ee(8,1,J,!0)},linetoolganncomplex:{fillBackground:!1,arcsBackground:{fillBackground:!0,transparency:80},reverse:!1,scaleRatio:"",showLabels:!0,labelsStyle:{fontSize:12,bold:!1,italic:!1},levels:[A(Pe,!0),A(ye,!0),A(z,!0),A(me,!0),A(ue,!0),A(Pe,!0)],fanlines:[ke(O,!1,w,8,1),ke(J,!1,w,5,1),ke(Pe,!1,w,4,1),ke(ye,!1,w,3,1),ke(z,!0,w,2,1),ke(me,!0,w,1,1),ke(ue,!0,w,1,2),ke(ue,!1,w,1,3),ke(D,!1,w,1,4),ke(F,!1,w,1,5),ke(O,!1,w,1,8)],arcs:[ke(ye,!0,w,1,0),ke(ye,!0,w,1,1),ke(ye,!0,w,1.5,0),ke(z,!0,w,2,0),ke(z,!0,w,2,1),ke(me,!0,w,3,0),ke(me,!0,w,3,1),ke(ue,!0,w,4,0),ke(ue,!0,w,4,1),ke(D,!0,w,5,0),ke(D,!0,w,5,1)]},linetoolgannfixed:{fillBackground:!1,arcsBackground:{fillBackground:!0,transparency:80},reverse:!1,levels:[A(Pe,!0),A(ye,!0),A(z,!0),A(me,!0),A(ue,!0),A(Pe,!0)],fanlines:[ke(O,!1,w,8,1),ke(J,!1,w,5,1),ke(Pe,!1,w,4,1),ke(ye,!1,w,3,1),ke(z,!0,w,2,1),ke(me,!0,w,1,1),ke(ue,!0,w,1,2),ke(ue,!1,w,1,3),ke(D,!1,w,1,4),ke(F,!1,w,1,5),ke(O,!1,w,1,8)],arcs:[ke(ye,!0,w,1,0),ke(ye,!0,w,1,1),ke(ye,!0,w,1.5,0),ke(z,!0,w,2,0),ke(z,!0,w,2,1),ke(me,!0,w,3,0),ke(me,!0,w,3,1),ke(ue,!0,w,4,0),ke(ue,!0,w,4,1),ke(D,!0,w,5,0),ke(D,!0,w,5,1)]},linetoolgannsquare:{color:"rgba(21, 56, 153, 0.8)",linewidth:w,linestyle:M,showTopLabels:!0,showBottomLabels:!0,showLeftLabels:!0,showRightLabels:!0, -fillHorzBackground:!0,horzTransparency:80,fillVertBackground:!0,vertTransparency:80,reverse:!1,fans:t(Ce,!1),hlevel1:i(0,Pe,!0),hlevel2:i(.25,ye,!0),hlevel3:i(.382,z,!0),hlevel4:i(.5,me,!0),hlevel5:i(.618,ue,!0),hlevel6:i(.75,D,!0),hlevel7:i(1,Pe,!0),vlevel1:i(0,Pe,!0),vlevel2:i(.25,ye,!0),vlevel3:i(.382,z,!0),vlevel4:i(.5,me,!0),vlevel5:i(.618,ue,!0),vlevel6:i(.75,D,!0),vlevel7:i(1,Pe,!0)},linetoolfibspeedresistancefan:{fillBackground:!0,transparency:80,grid:{color:"rgba(21, 56, 153, 0.8)",linewidth:1,linestyle:M,visible:!0},linewidth:w,linestyle:M,showTopLabels:!0,showBottomLabels:!0,showLeftLabels:!0,showRightLabels:!0,reverse:!1,hlevel1:i(0,Pe,!0),hlevel2:i(.25,ye,!0),hlevel3:i(.382,z,!0),hlevel4:i(.5,me,!0),hlevel5:i(.618,ue,!0),hlevel6:i(.75,D,!0),hlevel7:i(1,Pe,!0),vlevel1:i(0,Pe,!0),vlevel2:i(.25,ye,!0),vlevel3:i(.382,z,!0),vlevel4:i(.5,me,!0),vlevel5:i(.618,ue,!0),vlevel6:i(.75,D,!0),vlevel7:i(1,Pe,!0)},linetoolfibretracement:{showCoeffs:!0,showPrices:!0,fillBackground:!0,transparency:80,extendLines:!1,extendLinesLeft:!1,horzLabelsAlign:"left",vertLabelsAlign:"middle",showText:!0,horzTextAlign:"center",vertTextAlign:"middle",reverse:!1,coeffsAsPercents:!1,fibLevelsBasedOnLogScale:!1,labelFontSize:12,trendline:{visible:!0,color:Pe,linewidth:w,linestyle:I},levelsStyle:{linewidth:w,linestyle:M},level1:i(0,Pe,!0,!0),level2:i(.236,J,!0,!0),level3:i(.382,ye,!0,!0),level4:i(.5,me,!0,!0),level5:i(.618,ue,!0,!0),level6:i(.786,z,!0,!0),level7:i(1,Pe,!0,!0),level8:i(1.618,D,!0,!0),level9:i(2.618,J,!0,!0),level10:i(3.618,ie,!0,!0),level11:i(4.236,ae,!0,!0),level12:i(1.272,ye,!1,!0),level13:i(1.414,J,!1,!0),level16:i(2,ue,!1,!0),level14:i(2.272,ye,!1,!0),level15:i(2.414,me,!1,!0),level17:i(3,z,!1,!0),level18:i(3.272,Pe,!1,!0),level19:i(3.414,D,!1,!0),level20:i(4,J,!1,!0),level21:i(4.272,ie,!1,!0),level22:i(4.414,ae,!1,!0),level23:i(4.618,ye,!1,!0),level24:i(4.764,ue,!1,!0)},linetoolfibchannel:{showCoeffs:!0,showPrices:!0,fillBackground:!0,transparency:80,extendLeft:!1,extendRight:!1,horzLabelsAlign:"left",vertLabelsAlign:"middle",coeffsAsPercents:!1,labelFontSize:12,levelsStyle:{linewidth:w,linestyle:M},level1:i(0,Pe,!0),level2:i(.236,J,!0),level3:i(.382,ye,!0),level4:i(.5,me,!0),level5:i(.618,ue,!0),level6:i(.786,z,!0),level7:i(1,Pe,!0),level8:i(1.618,D,!0),level9:i(2.618,J,!0),level10:i(3.618,ie,!0),level11:i(4.236,ae,!0),level12:i(1.272,ye,!1),level13:i(1.414,J,!1),level16:i(2,ue,!1),level14:i(2.272,ye,!1),level15:i(2.414,me,!1),level17:i(3,z,!1),level18:i(3.272,Pe,!1),level19:i(3.414,D,!1),level20:i(4,J,!1),level21:i(4.272,ie,!1),level22:i(4.414,ae,!1),level23:i(4.618,ye,!1),level24:i(4.764,ue,!1)},linetoolprojection:{showCoeffs:!0,fillBackground:!0,transparency:80,color1:R,color2:oe,linewidth:w,trendline:{visible:!0,color:Ce,linestyle:M},level1:p(1,"#808080",!0)},linetool5pointspattern:{color:D,textcolor:L,fillBackground:!0,backgroundColor:D,fontsize:12,bold:!1,italic:!1,transparency:85,linewidth:w},linetoolcypherpattern:{color:D,textcolor:L,fillBackground:!0,backgroundColor:D,fontsize:12,bold:!1,italic:!1, -transparency:85,linewidth:w},linetooltrianglepattern:{color:W,textcolor:L,fillBackground:!0,backgroundColor:W,fontsize:12,bold:!1,italic:!1,transparency:85,linewidth:w},linetoolabcd:{color:ue,textcolor:L,fontsize:12,bold:!1,italic:!1,linewidth:w},linetoolthreedrivers:{color:W,textcolor:L,fillBackground:!0,backgroundColor:"rgba(149, 40, 204, 0.5)",fontsize:12,bold:!1,italic:!1,transparency:50,linewidth:w},linetoolheadandshoulders:{color:ue,textcolor:L,fillBackground:!0,backgroundColor:ue,fontsize:12,bold:!1,italic:!1,transparency:85,linewidth:w},linetoolfibwedge:{showCoeffs:!0,fillBackground:!0,transparency:80,trendline:{visible:!0,color:"#808080",linewidth:w,linestyle:M},level1:p(.236,J,!0),level2:p(.382,ye,!0),level3:p(.5,me,!0),level4:p(.618,ue,!0),level5:p(.786,z,!0),level6:p(1,Pe,!0),level7:p(1.618,D,!1),level8:p(2.618,J,!1),level9:p(3.618,W,!1),level10:p(4.236,ae,!1),level11:p(4.618,ae,!1)},linetoolfibcircles:{showCoeffs:!0,fillBackground:!0,transparency:80,coeffsAsPercents:!1,trendline:{visible:!0,color:Pe,linewidth:w,linestyle:I},level1:p(.236,J,!0),level2:p(.382,ye,!0),level3:p(.5,ue,!0),level4:p(.618,me,!0),level5:p(.786,z,!0),level6:p(1,Pe,!0),level7:p(1.618,D,!0),level8:p(2.618,ae,!0),level9:p(3.618,D,!0),level10:p(4.236,ae,!0),level11:p(4.618,J,!0)},linetoolfibspeedresistancearcs:{showCoeffs:!0,fillBackground:!0,transparency:80,fullCircles:!1,trendline:{visible:!0,color:Pe,linewidth:w,linestyle:I},level1:p(.236,J,!0),level2:p(.382,ye,!0),level3:p(.5,ue,!0),level4:p(.618,me,!0),level5:p(.786,z,!0),level6:p(1,Pe,!0),level7:p(1.618,D,!0),level8:p(2.618,ae,!0),level9:p(3.618,D,!0),level10:p(4.236,ae,!0),level11:p(4.618,J,!0)},linetooltrendbasedfibextension:{showCoeffs:!0,showPrices:!0,fillBackground:!0,transparency:80,extendLines:!1,extendLinesLeft:!1,horzLabelsAlign:"left",vertLabelsAlign:"middle",showText:!0,horzTextAlign:"center",vertTextAlign:"middle",reverse:!1,coeffsAsPercents:!1,fibLevelsBasedOnLogScale:!1,labelFontSize:12,trendline:{visible:!0,color:Pe,linewidth:w,linestyle:I},levelsStyle:{linewidth:w,linestyle:M},level1:i(0,Pe,!0,!0),level2:i(.236,J,!0,!0),level3:i(.382,ye,!0,!0),level4:i(.5,me,!0,!0),level5:i(.618,ue,!0,!0),level6:i(.786,z,!0,!0),level7:i(1,Pe,!0,!0),level8:i(1.618,D,!0,!0),level9:i(2.618,J,!0,!0),level10:i(3.618,ie,!0,!0),level11:i(4.236,ae,!0,!0),level12:i(1.272,ye,!1,!0),level13:i(1.414,J,!1,!0),level16:i(2,ue,!1,!0),level14:i(2.272,ye,!1,!0),level15:i(2.414,me,!1,!0),level17:i(3,z,!1,!0),level18:i(3.272,Pe,!1,!0),level19:i(3.414,D,!1,!0),level20:i(4,J,!1,!0),level21:i(4.272,ie,!1,!0),level22:i(4.414,ae,!1,!0),level23:i(4.618,ye,!1,!0),level24:i(4.764,ue,!1,!0)},linetooltrendbasedfibtime:{showCoeffs:!0,fillBackground:!0,transparency:80,horzLabelsAlign:"right",vertLabelsAlign:"bottom",trendline:{visible:!0,color:Pe,linewidth:w,linestyle:I},level1:p(0,Pe,!0),level2:p(.382,J,!0),level3:p(.5,pe,!1),level4:p(.618,me,!0),level5:p(1,ue,!0),level6:p(1.382,z,!0),level7:p(1.618,Pe,!0),level8:p(2,D,!0),level9:p(2.382,ae,!0),level10:p(2.618,ie,!0),level11:p(3,W,!0)},linetoolschiffpitchfork:{ -fillBackground:!0,transparency:80,style:u.Schiff,median:{visible:!0,color:J,linewidth:w,linestyle:M},extendLines:!1,level0:p(.25,fe,!1),level1:p(.382,pe,!1),level2:p(.5,ue,!0),level3:p(.618,ue,!1),level4:p(.75,z,!1),level5:p(1,D,!0),level6:p(1.5,ie,!1),level7:p(1.75,ae,!1),level8:p(2,Y,!1)},linetoolschiffpitchfork2:{fillBackground:!0,transparency:80,style:u.Schiff2,median:{visible:!0,color:J,linewidth:w,linestyle:M},extendLines:!1,level0:p(.25,fe,!1),level1:p(.382,pe,!1),level2:p(.5,ue,!0),level3:p(.618,ue,!1),level4:p(.75,z,!1),level5:p(1,D,!0),level6:p(1.5,ie,!1),level7:p(1.75,ae,!1),level8:p(2,Y,!1)},linetoolinsidepitchfork:{fillBackground:!0,transparency:80,style:u.Inside,median:{visible:!0,color:J,linewidth:w,linestyle:M},extendLines:!1,level0:p(.25,fe,!1),level1:p(.382,pe,!1),level2:p(.5,ue,!0),level3:p(.618,ue,!1),level4:p(.75,z,!1),level5:p(1,D,!0),level6:p(1.5,ie,!1),level7:p(1.75,ae,!1),level8:p(2,Y,!1)},linetoolregressiontrend:{linewidth:1,linestyle:M,styles:{upLine:{display:g.All,color:B,linestyle:M,linewidth:w},downLine:{display:g.All,color:B,linestyle:M,linewidth:w},baseLine:{display:g.All,color:Q,linestyle:I,linewidth:1},extendLines:!1,showPearsons:!0,transparency:70}}},De(TradingView.defaultProperties.chartproperties),Ve()}if(void 0===TradingView.defaultProperties["study_MA@tv-basicstudies"]&&(TradingView.defaultProperties["study_MA@tv-basicstudies"]={description:"Moving Average",shortDescription:"MA",inputs:{length:9,source:"close"},styles:{MovAvg:{display:g.All,color:D,linestyle:M,linewidth:1,plottype:m.Line,histogramBase:0,title:"MA"}}}),void 0===TradingView.defaultProperties["study_PivotPointsHighLow@tv-basicstudies"]&&(TradingView.defaultProperties["study_PivotPointsHighLow@tv-basicstudies"]={fontsize:10,borderColor:D,backColor:E,textColor:Me}),void 0===TradingView.defaultProperties["study_PivotPointsStandard@tv-basicstudies"]){var Re=!0;TradingView.defaultProperties["study_PivotPointsStandard@tv-basicstudies"]={_hardCodedDefaultsVersion:1,fontsize:11,levelsStyle:{showLabels:!0,visibility:{P:Re,"S1/R1":Re,"S2/R2":Re,"S3/R3":Re,"S4/R4":Re,"S5/R5":Re},colors:{P:Se,"S1/R1":Se,"S2/R2":Se,"S3/R3":Se,"S4/R4":Se,"S5/R5":Se},widths:{P:1,"S1/R1":1,"S2/R2":1,"S3/R3":1,"S4/R4":1,"S5/R5":1}}}}void 0===TradingView.defaultProperties["study_ZigZag@tv-basicstudies"]&&(TradingView.defaultProperties["study_ZigZag@tv-basicstudies"]={color:D,linewidth:2});const Ne={styles:{splitByBlocks:!1},graphics:{tpoLevels:{tpo:{tpoPoc:{color:""},tpoPoorHigh:{color:""},tpoPoorLow:{color:""},tpoSingleprints:{color:""},tpoVah:{color:""},tpoVal:{color:""},volumePoc:{color:""},volumeVah:{color:""},volumeVal:{color:""}}},tpoVolumeRows:{tpo:{valuesColor:"",colors:{nonVa:"",va:""}}}}};function Oe(e){const t={styles:{developingPoc:{color:""},developingVAHigh:{color:""},developingVALow:{color:""}},graphics:{horizlines:{pocLines:{color:""},vahLines:{color:""},valLines:{color:""}},hhists:{histBars2:{colors:["",""],valuesColor:""},histBarsVA:{colors:["",""],valuesColor:""}}}};return e&&(t.graphics.polygons={histBoxBg:{color:""}}),t} -void 0===TradingView.defaultProperties["study_TPOPeriodic@tv-volumebyprice"]&&(TradingView.defaultProperties["study_TPOPeriodic@tv-volumebyprice"]=Ne),void 0===TradingView.defaultProperties["study_TPOSessions@tv-volumebyprice"]&&(TradingView.defaultProperties["study_TPOSessions@tv-volumebyprice"]=Ne),void 0===TradingView.defaultProperties["study_VbPSessions@tv-volumebyprice"]&&(TradingView.defaultProperties["study_VbPSessions@tv-volumebyprice"]=Oe(!0)),void 0===TradingView.defaultProperties["study_VbPSessionsRoughDetailed@tv-volumebyprice"]&&(TradingView.defaultProperties["study_VbPSessionsRoughDetailed@tv-volumebyprice"]=Oe(!0)),void 0===TradingView.defaultProperties["study_VbPPeriodic@tv-volumebyprice"]&&(TradingView.defaultProperties["study_VbPPeriodic@tv-volumebyprice"]=Oe(!0)),void 0===TradingView.defaultProperties["study_VbPVisible@tv-volumebyprice"]&&(TradingView.defaultProperties["study_VbPVisible@tv-volumebyprice"]=Oe(!1));const Fe={styles:{developingPoc:{color:""},developingVAHigh:{color:""},developingVALow:{color:""}},graphics:{hhists:{histBars2:{colors:["",""],valuesColor:""},histBarsVA:{colors:["",""],valuesColor:""}},horizlines:{pocLines:{color:""},vahLines:{color:""},valLines:{color:""}},polygons:{histBoxBg:{color:""}}}};if(void 0===TradingView.defaultProperties["study_VbPFixed@tv-volumebyprice"]&&(TradingView.defaultProperties["study_VbPFixed@tv-volumebyprice"]=Fe),void 0===TradingView.defaultProperties["study_VbPFixed@tv-basicstudies"]&&(TradingView.defaultProperties["study_VbPFixed@tv-basicstudies"]=Fe),void 0===TradingView.defaultProperties.linetoolanchoredvp&&(TradingView.defaultProperties.linetoolanchoredvp=Oe(!0)),void 0===TradingView.defaultProperties["study_VbPAutoAnchored@tv-volumebyprice"]&&(TradingView.defaultProperties["study_VbPAutoAnchored@tv-volumebyprice"]=Oe(!0)),void 0===TradingView.defaultProperties["study_ElliottWave@tv-basicstudies"]&&(TradingView.defaultProperties["study_ElliottWave@tv-basicstudies"]={inputs:{},level0:t($,!1),level1:t("#008000",!1),level2:t("#0000ff",!1),level3:t("#ff00ff",!1),level4:t("#0080ff",!0),level5:t($,!0),level6:t("#008000",!0),level7:t("#0000ff",!0),level8:t("#ff00ff",!0)}),void 0===TradingView.defaultProperties["study_LinearRegression@tv-basicstudies"]&&(TradingView.defaultProperties["study_LinearRegression@tv-basicstudies"]={styles:{upLine:{display:g.All,color:B,linestyle:M,linewidth:1},downLine:{display:g.All,color:B,linestyle:M,linewidth:1},baseLine:{display:g.All,color:Q,linestyle:M,linewidth:1},extendLines:!0,showPearsons:!0,backgroundColor:"rgba(153, 21, 21, 0.3)",transparency:70}}),void 0===TradingView.defaultProperties["study_Compare@tv-basicstudies"]&&(TradingView.defaultProperties["study_Compare@tv-basicstudies"]={minTick:"default"}),void 0===TradingView.defaultProperties["study_Overlay@tv-basicstudies"]){TradingView.defaultProperties["study_Overlay@tv-basicstudies"]={style:d.STYLE_LINE,allowExtendTimeScale:!1,showPriceLine:!1,minTick:"default",candleStyle:{upColor:de,downColor:re,drawWick:!0,drawBorder:!0,drawBody:!0,borderColor:"#378658", -borderUpColor:de,borderDownColor:re,wickColor:"#737375",wickUpColor:de,wickDownColor:re,barColorsOnPrevClose:!1},hollowCandleStyle:{upColor:de,downColor:re,drawWick:!0,drawBorder:!0,drawBody:!0,borderColor:"#378658",borderUpColor:de,borderDownColor:re,wickColor:"#737375",wickUpColor:de,wickDownColor:re,barColorsOnPrevClose:!1},barStyle:{upColor:de,downColor:re,barColorsOnPrevClose:!1,dontDrawOpen:!1,thinBars:!0},lineStyle:{color:be,linestyle:M,linewidth:2,priceSource:"close"},lineWithMarkersStyle:{color:be,linestyle:M,linewidth:2,priceSource:"close"},steplineStyle:{color:be,linestyle:M,linewidth:2,priceSource:"close"},areaStyle:{color1:D,color2:D,linecolor:D,linestyle:M,linewidth:2,priceSource:"close",transparency:95},baselineStyle:{baselineColor:Te,topFillColor1:Le,topFillColor2:Le,bottomFillColor1:X,bottomFillColor2:X,topLineColor:Ae,bottomLineColor:Z,topLineWidth:2,bottomLineWidth:2,topLineStyle:0,bottomLineStyle:2,priceSource:"close",transparency:50,baseLevelPercentage:50},hiloStyle:{color:D,showBorders:!0,borderColor:D,showLabels:!0,labelColor:D,drawBody:!0},columnStyle:{upColor:r(ue,50),downColor:r(J,50),barColorsOnPrevClose:!0,priceSource:"close",baselinePosition:"bottom"},hlcAreaStyle:{highLineVisible:!0,highLineColor:z,highLineStyle:M,highLineWidth:2,lowLineVisible:!0,lowLineColor:ae,lowLineStyle:M,lowLineWidth:2,closeLineColor:D,closeLineStyle:M,closeLineWidth:2,highCloseFillColor:j,closeLowFillColor:ce},hlcBarsStyle:{color:D,barColorsOnPrevClose:!1,thinBars:!0},styles:{open:{display:g.All,color:$,linestyle:M,linewidth:1,plottype:m.Line,histogramBase:0},high:{display:g.All,color:$,linestyle:M,linewidth:1,plottype:m.Line,histogramBase:0},low:{display:g.All,color:$,linestyle:M,linewidth:1,plottype:m.Line,histogramBase:0},close:{display:g.All,color:$,linestyle:M,linewidth:1,plottype:m.Line,histogramBase:0}}}}for(var We=e.split("."),He=TradingView.defaultProperties,ze=0;ze1?h(e[o],t.slice(1),i):(e[o]&&e[o].setValue?e[o].setValue(i):e[o]=i,!0))}function d(e){i||A.logWarn("Path `"+e+"` does not exist.")}}function De(e,t,i,s){window.__defaultsOverrides&&Ee(e,t,i,window.__defaultsOverrides,s)}function Be(e,t){window.__settingsOverrides&&Ee(e,null,!1,window.__settingsOverrides,t)}function Ve(){var e=/^linetool.+/;Object.keys(TradingView.defaultProperties).forEach((function(t){e.test(t)&&De(TradingView.defaultProperties[t],null,!1,t)}))}function Re(e,t){return t?function(e,t){var i=ke(e);if(!window._UNIT_TESTS){var n=s(TVSettings.getJSON(e,null));if(function(e){var t=new Set(["linetoolregressiontrend"]);return e.startsWith("study_")||t.has(e)}(e)&&n&&function(e){if(!e)return!1;e=e.toString();var t=new RegExp("\\d+").exec(e),i=null!==t&&t[0]===e;return i -}(n.version)){var r=n.inputs,a=t.updateStudyInputs(n.id,n.version,"last",r,null);n.inputs=a,n=t.updateStudyState(n,n)}o(i,n),Be(i,e)}return i}(e,t):function(e){var t=ke(e);if(!window._UNIT_TESTS){var i=s(TVSettings.getJSON(e,null));if(i){o(t,i);const s=e.split(".");Be(t,void 0===s[1]?e:s[1])}}return t}(e)}Re.create=function(e,t){if(t){var i=ke(e);TradingView.defaultProperties[e]=o(t,i)}},Re.remove=function(e){TradingView.defaultProperties[e]=void 0},TradingView.saveDefaults=function(e,t){void 0===t?TVSettings.remove(e):TVSettings.setJSON(e,t)},TradingView.factoryDefaults=ke,window.applyDefaultOverridesToLinetools=Ve,window.applyDefaultsOverrides=De,window.applyPropertiesOverrides=Ee,window.defaults=Re,t.applyDefaultOverridesToLinetools=Ve,t.applyDefaultsOverrides=De,t.applyPropertiesOverrides=Ee,t.defaults=Re,t.factoryDefaults=ke,t.saveDefaults=TradingView.saveDefaults,t.createDefaults=Re.create,t.removeDefaults=Re.remove},78861:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DrawingSyncMode:()=>s,SelectPointMode:()=>o,activePointSelectionMode:()=>J,alignTo45Degrees:()=>Ie,barTimesUnderCursor:()=>ee,beenSetLineToolLastPoint:()=>F,cancelLineTool:()=>ne,cancelledLineTool:()=>O,changeLineStyle:()=>me,changeLineTool:()=>de,changedLineStyle:()=>K,changedLineTool:()=>j,continueLineTool:()=>oe,continuedLineTool:()=>N,copiedLineTool:()=>Y,copyLineTool:()=>ge,createLineTool:()=>se,createdLineTool:()=>R,crosshairLock:()=>x,cursorTool:()=>k,drawOnAllCharts:()=>Ae,drawOnAllChartsMode:()=>Le,emojiTool:()=>A,finishChangingLineTool:()=>ue,finishLineTool:()=>pe,finishMovingLineTool:()=>ce,finishedChangingLineTool:()=>G,finishedLineTool:()=>$,finishedMovingLineTool:()=>z,hideAllDrawings:()=>Te,hideAllIndicators:()=>Pe,hideMarksOnBars:()=>Me,iconTool:()=>I,init:()=>be,isDirectionalMovementActive:()=>V,isStudyEditingNow:()=>Q,isToolCreatingNow:()=>E,isToolEditingNow:()=>D,isToolMovingNow:()=>B,lockDrawings:()=>xe,moveLineTool:()=>le,movedLineTool:()=>H,properties:()=>Ce,removeLineTool:()=>_e,removedLineTool:()=>q,resetToCursor:()=>v,restoreLineTool:()=>fe,restoreLineToolState:()=>ye,restoredLineTool:()=>Z,restoredLineToolState:()=>X,runOnDrawingStateReady:()=>we,setLineToolLastPoint:()=>re,startChangingLineTool:()=>he,startMovingLineTool:()=>ae,startedChangingLineTool:()=>U,startedMovingLineTool:()=>W,stickerTool:()=>L,tool:()=>M,toolIsCursor:()=>m,toolIsDemonstration:()=>f,toolIsEraser:()=>g,toolIsMeasure:()=>y});var s,o,n=i(50151),r=i(41072),a=i(78176),l=i(22613),c=i(62773),h=i(48096),d=i(1765),u=i(76422),_=i(51768);!function(e){e[e.Layout=1]="Layout",e[e.Global=2]="Global"}(s||(s={})),function(e){e[e.None=0]="None",e[e.Replay=1]="Replay",e[e.Study=2]="Study"}(o||(o={}));const p=new Set(["cursor","arrow","dot","performance","demonstration"]);function m(e){return p.has(e)}function g(e){return"eraser"===e}function f(e){return"demonstration"===e}function y(e){return"measure"===e}function v(e=!1){if(!e&&S){if(S.childs().stayInDrawingMode.value())return}M.setValue(k.value())}let S=null,b=null,w=null,C=null,T=null,P=null -;const x=new c.WatchedObject(null),M=new l.WatchedValue,I=new l.WatchedValue,A=new l.WatchedValue,L=new l.WatchedValue,k=new l.WatchedValue,E=new l.WatchedValue(!1),D=new l.WatchedValue(!1),B=new l.WatchedValue(!1),V=new l.WatchedValue(!1),R=new h.Delegate,N=new h.Delegate,O=new h.Delegate,F=new h.Delegate,W=new h.Delegate,H=new h.Delegate,z=new h.Delegate,U=new h.Delegate,j=new h.Delegate,G=new h.Delegate,q=new h.Delegate,$=new h.Delegate,K=new h.Delegate,Y=new h.Delegate,Z=new h.Delegate,X=new h.Delegate,J=new l.WatchedValue(o.None),Q=new l.WatchedValue(!1),ee=new Map;function te(e,t){const i=t||{value:!1};return t=>{i.value||(i.value=!0,e.fire(t),i.value=!1)}}const ie={value:!1},se=te(R,ie),oe=te(N,ie),ne=te(O,ie),re=te(F,ie),ae=te(W),le=te(H),ce=te(z),he=te(U),de=te(j),ue=te(G),_e=te(q),pe=te($),me=te(K,ie),ge=te(Y,ie),fe=te(Z),ye=te(X);let ve=!1,Se=[];function be(){if(ve)return;const e=d.getValue("chart.cursorPreference","cursor");M.setValue(m(e)?e:"cursor"),M.subscribe((e=>{m(e)?k.setValue(e):g(e)&&(0,_.trackEvent)("Chart cursors",e)}),{callWithLast:!0}),k.subscribe((e=>{(0,_.trackEvent)("Chart cursors",e),e&&"performance"!==e&&!f(e)&&d.setValue("chart.cursorPreference",e)})),S=new a.DefaultProperty({defaultName:"drawings"}),b=(0,r.createPrimitiveProperty)(!1),w=(0,r.createPrimitiveProperty)(!1),C=(0,r.createPrimitiveProperty)(!1),T=(0,r.createPrimitiveProperty)(!d.getBool("BarsMarksContainer.visibile",!0)),P=(0,r.createPrimitiveProperty)(!1),M.subscribe((e=>{(0,u.emit)("onSelectedLineToolChanged")})),ve=!0,Se.forEach((e=>e())),Se=[]}function we(e){ve?e():Se.push(e)}function Ce(){return(0,n.ensureNotNull)(S)}function Te(){return(0,n.ensureNotNull)(b)}function Pe(){return(0,n.ensureNotNull)(w)}function xe(){return(0,n.ensureNotNull)(C)}function Me(){return(0,n.ensureNotNull)(T)}function Ie(){return(0,n.ensureNotNull)(P)}function Ae(){return Ce().childs().drawOnAllCharts}function Le(){return Ce().childs().drawOnAllChartsMode}},93946:(e,t,i)=>{"use strict";i.d(t,{EnvironmentState:()=>o});var s=i(49483);class o{constructor(e,t=!1){this._shift=!1,this._mod=!1,this._alt=!1,void 0!==e&&(this._shift=Boolean(e.shiftKey),this._mod=Boolean((0,s.isMac)()?e.metaKey:e.ctrlKey),this._alt=Boolean(e.altKey)),this._isApiEvent=t}shift(){return this._shift}mod(){return this._mod}alt(){return this._alt}shiftOnly(){return this._shift&&!this._mod&&!this._alt}modOnly(){return this._mod&&!this._shift&&!this._alt}altOnly(){return this._alt&&!this._shift&&!this._mod}modShift(){return this._shift&&this._mod&&!this._alt}isApiEvent(){return this._isApiEvent}static create(e=!1,t=!1,i=!1){return new o({shiftKey:e,ctrlKey:t,metaKey:t,altKey:i})}}},60911:(e,t,i)=>{"use strict";i.d(t,{decodeExtendedSymbol:()=>h,encodeExtendedSymbolOrGetSimpleSymbolString:()=>l,extractExtendedSymbol:()=>d,isEncodedExtendedSymbol:()=>c,isStudySymbol:()=>a,replaceExtendedSymbol:()=>u});var s=i(87465);function o(e){return"="+JSON.stringify(n(e))}function n(e){ +;var ke=function(e){var t=function(e,t){return{color:e,visible:t}},i=function(e,t,i,s){const o={coeff:e,color:t,visible:i};return s&&(o.text=""),o},p=function(e,t,i,s,o){return{coeff:e,color:t,visible:i,linestyle:void 0===s?M:s,linewidth:void 0===o?w:o}},A=function(e,t,i){return{color:e,width:void 0===i?w:i,visible:t}},ke=function(e,t,i,s,o){return{color:e,visible:t,width:i,x:s,y:o}},Ee=function(e,t,i,s,o,n){return{coeff1:e,coeff2:t,color:i,visible:s,linestyle:void 0===o?M:o,linewidth:void 0===n?w:n}};if(void 0===TradingView.defaultProperties){var Be;switch(window.locale){case"ar_AE":Be="Asia/Dubai";break;case"au":Be="Australia/Sydney";break;case"br":Be="America/Sao_Paulo";break;case"ca":Be="America/Toronto";break;case"de_DE":case"it":Be="Europe/Berlin";break;case"es":Be="Europe/Madrid";break;case"he_IL":case"tr":Be="Europe/Athens";break;case"hu_HU":case"pl":Be="Europe/Warsaw";break;case"id":case"th_TH":case"vi_VN":Be="Asia/Bangkok";break;case"in":Be="Asia/Kolkata";break;case"ja":case"kr":Be="Asia/Tokyo";break;case"ms_MY":Be="Asia/Singapore";break;case"ru":Be="Europe/Moscow";break;case"uk":Be="Europe/London";break;case"zh_CN":case"zh_TW":Be="Asia/Shanghai";break;default:Be="Etc/UTC"}const e=a(l);TradingView.defaultProperties={chartproperties:o({timezone:Be,priceScaleSelectionStrategyName:"auto",inactivityGaps:!1,paneProperties:{backgroundType:b.Solid,gridLinesMode:"both",vertGridProperties:{style:M},horzGridProperties:{style:M},crossHairProperties:{style:I,transparency:0,width:1},topMargin:10,bottomMargin:8,axisProperties:{autoScale:!0,autoScaleDisabled:!1,lockScale:!1,percentage:!1,percentageDisabled:!1,indexedTo100:!1,log:!1,logDisabled:!1,alignLabels:!0,isInverted:!1},legendProperties:{showStudyArguments:!0,showStudyTitles:!0,showStudyValues:!0,showSeriesTitle:!0,showSeriesOHLC:!0,showLegend:!0,showLastDayChange:!1,showBarChange:!0,showVolume:!1,showBackground:!0,showPriceSource:!0,backgroundTransparency:50,showLogo:!0,showTradingButtons:!0,showTradingButtonsMobile:!0,showSeriesLegendCloseOnMobile:!0,barChangeUpColor:ue,barChangeDownColor:J,useBarChangeCustomColors:!1},separatorColor:we},scalesProperties:{fontSize:12,scaleSeriesOnly:!1,showSeriesLastValue:!0,seriesLastValueMode:y.LastValueAccordingToScale,showSeriesPrevCloseValue:!1,showStudyLastValue:!0,showSymbolLabels:!1,showStudyPlotLabels:!1,showBidAskLabels:!1,showPrePostMarketPriceLabel:!0,showFundamentalNameLabel:!1,showFundamentalLastValue:!0,barSpacing:f.DEFAULT_BAR_SPACING,axisHighlightColor:V,axisLineToolLabelBackgroundColorCommon:P.common,axisLineToolLabelBackgroundColorActive:P.active,showPriceScaleCrosshairLabel:!0,showTimeScaleCrosshairLabel:!0,crosshairLabelBgColorLight:Me,crosshairLabelBgColorDark:Ie,saveLeftEdge:!1},mainSeriesProperties:o(x,e.content.mainSourceProperties),chartEventsSourceProperties:{visible:!0,futureOnly:!0,breaks:{color:"#555555",visible:!1,style:I,width:1}},tradingProperties:{showPositions:!0,positionPL:{visibility:!0,display:n.Money},bracketsPL:{visibility:!0,display:n.Money},positionAndBracketsPL:!0,showOrders:!0, +showExecutions:!0,showExecutionsLabels:!1,showReverse:!0,horizontalAlignment:h.Right,extendLeft:!0,lineLength:5,lineWidth:1,lineStyle:M},volumePaneSize:"large"},e.content.chartProperties),sessions:o(T,e.content.sessions),drawings:{magnet:!1,magnetSnapsToIndicators:!1,magnetMode:v.WeakMagnet,stayInDrawingMode:!1,drawOnAllCharts:!0,drawOnAllChartsMode:1},linetoolorder:{extendLeft:"inherit",lineLength:"inherit",lineLengthUnit:"percentage",lineColor:$,lineActiveBuyColor:"#4094e8",lineInactiveBuyColor:"rgba(64, 148, 232, 0.5)",lineActiveSellColor:"#e75656",lineInactiveSellColor:"rgba(231, 86, 86, 0.5)",lineStyle:"inherit",lineWidth:"inherit",bodyBorderActiveBuyColor:"#4094e8",bodyBorderInactiveBuyColor:"rgba(64, 148, 232, 0.5)",bodyBorderActiveSellColor:"#e75656",bodyBorderInactiveSellColor:"rgba(231, 86, 86, 0.5)",bodyBackgroundColor:k,bodyBackgroundTransparency:25,bodyTextInactiveLimitColor:"rgba(38, 140, 2, 0.5)",bodyTextActiveLimitColor:"#268c02",bodyTextInactiveStopColor:"rgba(231, 86, 86, 0.5)",bodyTextActiveStopColor:"#e75656",bodyTextInactiveBuyColor:"rgba(64, 148, 232, 0.5)",bodyTextActiveBuyColor:"#4094e8",bodyTextInactiveSellColor:"rgba(231, 86, 86, 0.5)",bodyTextActiveSellColor:"#e75656",bodyFontFamily:"Verdana",bodyFontSize:9,bodyFontBold:!0,bodyFontItalic:!1,quantityBorderActiveBuyColor:"#4094e8",quantityBorderInactiveBuyColor:"rgba(64, 148, 232, 0.5)",quantityBorderActiveSellColor:"#e75656",quantityBorderInactiveSellColor:"rgba(231, 86, 86, 0.5)",quantityBackgroundInactiveBuyColor:"rgba(64, 148, 232, 0.5)",quantityBackgroundActiveBuyColor:"#4094e8",quantityBackgroundInactiveSellColor:"rgba(231, 86, 86, 0.5)",quantityBackgroundActiveSellColor:"#e75656",quantityTextColor:L,quantityTextTransparency:0,quantityFontFamily:"Verdana",quantityFontSize:9,quantityFontBold:!0,quantityFontItalic:!1,cancelButtonBorderActiveBuyColor:"#4094e8",cancelButtonBorderInactiveBuyColor:"rgba(64, 148, 232, 0.5)",cancelButtonBorderActiveSellColor:"#e75656",cancelButtonBorderInactiveSellColor:"rgba(231, 86, 86, 0.5)",cancelButtonBackgroundColor:k,cancelButtonBackgroundTransparency:25,cancelButtonIconActiveBuyColor:"#4094e8",cancelButtonIconInactiveBuyColor:"rgba(64, 148, 232, 0.5)",cancelButtonIconActiveSellColor:"#e75656",cancelButtonIconInactiveSellColor:"rgba(231, 86, 86, 0.5)",tooltip:"",modifyTooltip:"",cancelTooltip:""},linetoolposition:{extendLeft:"inherit",lineLength:"inherit",lineLengthUnit:"percentage",lineBuyColor:"#4094e8",lineSellColor:"#e75656",lineStyle:"inherit",lineWidth:"inherit",bodyBorderBuyColor:"#4094e8",bodyBorderSellColor:"#e75656",bodyBackgroundColor:k,bodyBackgroundTransparency:25,bodyTextPositiveColor:"#268c02",bodyTextNeutralColor:"#646464",bodyTextNegativeColor:"#e75656",bodyFontFamily:"Verdana",bodyFontSize:9,bodyFontBold:!0,bodyFontItalic:!1,quantityBorderBuyColor:"#4094e8",quantityBorderSellColor:"#e75656",quantityBackgroundBuyColor:"#4094e8",quantityBackgroundSellColor:"#e75656",quantityTextColor:L,quantityTextTransparency:0,quantityFontFamily:"Verdana",quantityFontSize:9,quantityFontBold:!0, +quantityFontItalic:!1,reverseButtonBorderBuyColor:"#4094e8",reverseButtonBorderSellColor:"#e75656",reverseButtonBackgroundColor:k,reverseButtonBackgroundTransparency:25,reverseButtonIconBuyColor:"#4094e8",reverseButtonIconSellColor:"#e75656",closeButtonBorderBuyColor:"#4094e8",closeButtonBorderSellColor:"#e75656",closeButtonBackgroundColor:k,closeButtonBackgroundTransparency:25,closeButtonIconBuyColor:"#4094e8",closeButtonIconSellColor:"#e75656",tooltip:"",protectTooltip:"",closeTooltip:"",reverseTooltip:""},linetoolexecution:{direction:"buy",arrowHeight:8,arrowSpacing:1,arrowBuyColor:"#4094e8",arrowSellColor:"#e75656",text:"",textColor:c.colorBlack,textTransparency:0,fontFamily:"Verdana",fontSize:10,fontBold:!1,fontItalic:!1,tooltip:""},linetoolimage:{transparency:0,cssWidth:0,cssHeight:0,angle:0},linetoolbezierquadro:{linecolor:D,linewidth:w,fillBackground:!1,backgroundColor:R,transparency:50,linestyle:M,extendLeft:!1,extendRight:!1,leftEnd:S.Normal,rightEnd:S.Normal},linetoolbeziercubic:{linecolor:W,linewidth:w,fillBackground:!1,backgroundColor:H,transparency:80,linestyle:M,extendLeft:!1,extendRight:!1,leftEnd:S.Normal,rightEnd:S.Normal},linetooltrendline:{linecolor:D,linewidth:w,linestyle:M,extendLeft:!1,extendRight:!1,leftEnd:S.Normal,rightEnd:S.Normal,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:D,fontsize:14,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!1,showPercentPriceRange:!1,showPipsPriceRange:!1,showBarsRange:!1,showDateTimeRange:!1,showDistance:!1,showAngle:!1,statsPosition:C.Right},linetoolinfoline:{linecolor:D,linewidth:w,linestyle:M,extendLeft:!1,extendRight:!1,leftEnd:S.Normal,rightEnd:S.Normal,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:D,fontsize:14,bold:!1,italic:!1,alwaysShowStats:!0,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!0,showPercentPriceRange:!0,showPipsPriceRange:!0,showBarsRange:!0,showDateTimeRange:!0,showDistance:!0,showAngle:!0,statsPosition:C.Center},linetooltimecycles:{linecolor:"#159980",linewidth:w,fillBackground:!0,backgroundColor:"rgba(106, 168, 79, 0.5)",transparency:50,linestyle:M},linetoolsineline:{linecolor:"#159980",linewidth:w,linestyle:M},linetooltrendangle:{linecolor:D,linewidth:w,linestyle:M,fontsize:12,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!1,showPercentPriceRange:!1,showPipsPriceRange:!1,showBarsRange:!1,extendRight:!1,extendLeft:!1,statsPosition:C.Right},linetooldisjointangle:{linecolor:ue,linewidth:w,linestyle:M,fillBackground:!0,backgroundColor:_e,transparency:20,extendLeft:!1,extendRight:!1,leftEnd:S.Normal,rightEnd:S.Normal,textcolor:ue,fontsize:12,bold:!1,italic:!1,showPrices:!1,showPriceRange:!1,showDateTimeRange:!1,showBarsRange:!1,labelVisible:!1,labelHorzAlign:"left",labelVertAlign:"bottom",labelTextColor:ue,labelFontSize:14,labelBold:!1,labelItalic:!1},linetoolflatbottom:{linecolor:ye,linewidth:w,linestyle:M,fillBackground:!0,backgroundColor:ve,transparency:20,extendLeft:!1,extendRight:!1,leftEnd:S.Normal, +rightEnd:S.Normal,textcolor:ye,fontsize:12,bold:!1,italic:!1,showPrices:!1,showPriceRange:!1,showDateTimeRange:!1,showBarsRange:!1,labelVisible:!1,labelHorzAlign:"left",labelVertAlign:"bottom",labelTextColor:ye,labelFontSize:14,labelBold:!1,labelItalic:!1},linetoolriskrewardshort:{linecolor:Pe,linewidth:1,textcolor:L,fontsize:12,fillLabelBackground:!0,labelBackgroundColor:"#585858",fillBackground:!0,stopBackground:ee,profitBackground:_e,stopBackgroundTransparency:80,profitBackgroundTransparency:80,drawBorder:!1,borderColor:"#667b8b",compact:!1,riskDisplayMode:"percents",accountSize:1e3,lotSize:1,risk:25,alwaysShowStats:!1,showPriceLabels:!0,currency:"NONE"},linetoolriskrewardlong:{linecolor:Pe,linewidth:1,textcolor:L,fontsize:12,fillLabelBackground:!0,labelBackgroundColor:"#585858",fillBackground:!0,stopBackground:ee,profitBackground:_e,stopBackgroundTransparency:80,profitBackgroundTransparency:80,drawBorder:!1,borderColor:"#667b8b",compact:!1,riskDisplayMode:"percents",accountSize:1e3,lotSize:1,risk:25,alwaysShowStats:!1,showPriceLabels:!0,currency:"NONE"},linetoolarrow:{linecolor:D,linewidth:w,linestyle:M,extendLeft:!1,extendRight:!1,leftEnd:S.Normal,rightEnd:S.Arrow,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:D,fontsize:14,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!1,showPercentPriceRange:!1,showPipsPriceRange:!1,showBarsRange:!1,showDateTimeRange:!1,showDistance:!1,showAngle:!1,statsPosition:C.Right},linetoolray:{linecolor:D,linewidth:w,linestyle:M,extendLeft:!1,extendRight:!0,leftEnd:S.Normal,rightEnd:S.Normal,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:D,fontsize:14,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!1,showPercentPriceRange:!1,showPipsPriceRange:!1,showBarsRange:!1,showDateTimeRange:!1,showDistance:!1,showAngle:!1,statsPosition:C.Right},linetoolextended:{linecolor:D,linewidth:w,linestyle:M,extendLeft:!0,extendRight:!0,leftEnd:S.Normal,rightEnd:S.Normal,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:D,fontsize:14,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!1,showPercentPriceRange:!1,showPipsPriceRange:!1,showBarsRange:!1,showDateTimeRange:!1,showDistance:!1,showAngle:!1,statsPosition:C.Right},linetoolhorzline:{linecolor:D,linewidth:w,linestyle:M,showPrice:!0,textcolor:D,fontsize:12,bold:!1,italic:!1,horzLabelsAlign:"center",vertLabelsAlign:"middle"},linetoolhorzray:{linecolor:D,linewidth:w,linestyle:M,showPrice:!0,textcolor:D,fontsize:12,bold:!1,italic:!1,horzLabelsAlign:"center",vertLabelsAlign:"top"},linetoolvertline:{linecolor:D,linewidth:w,linestyle:M,extendLine:!0,showTime:!0,horzLabelsAlign:"center",vertLabelsAlign:"middle",textcolor:D,textOrientation:"vertical",fontsize:14,bold:!1,italic:!1},linetoolcrossline:{linecolor:D,linewidth:w,linestyle:M,showPrice:!0,showTime:!0},linetoolfibtimezone:{horzLabelsAlign:"right",vertLabelsAlign:"bottom",showLabels:!0,fillBackground:!1,transparency:80,trendline:{visible:!0, +color:"#808080",linewidth:1,linestyle:I},level1:p(0,Pe,!0),level2:p(1,D,!0),level3:p(2,D,!0),level4:p(3,D,!0),level5:p(5,D,!0),level6:p(8,D,!0),level7:p(13,D,!0),level8:p(21,D,!0),level9:p(34,D,!0),level10:p(55,D,!0),level11:p(89,D,!0)},linetooltext:{color:D,fontsize:14,fillBackground:!1,backgroundColor:V,backgroundTransparency:70,drawBorder:!1,borderColor:xe,bold:!1,italic:!1,fixedSize:!0,wordWrap:!1,wordWrapWidth:200},linetooltextabsolute:{color:D,fontsize:14,fillBackground:!1,backgroundColor:V,backgroundTransparency:70,drawBorder:!1,borderColor:xe,bold:!1,italic:!1,fixedSize:!1,wordWrap:!1,wordWrapWidth:200},linetoolballoon:{color:L,backgroundColor:ne,borderColor:se,fontsize:14,transparency:30},linetoolcomment:{color:L,backgroundColor:D,borderColor:D,fontsize:16,transparency:0},linetoolbrush:{linecolor:z,linewidth:w,smooth:5,fillBackground:!1,backgroundColor:z,transparency:50,leftEnd:S.Normal,rightEnd:S.Normal},linetoolhighlighter:{linecolor:ee,smooth:5,transparency:80,width:20},linetoolpolyline:{linecolor:z,linewidth:w,linestyle:M,fillBackground:!0,backgroundColor:U,transparency:80,filled:!1},linetoolsignpost:{emoji:"🙂",showImage:!1,plateColor:D,fontSize:12,bold:!1,italic:!1},linetoolpath:{lineColor:D,lineWidth:w,lineStyle:M,leftEnd:S.Normal,rightEnd:S.Arrow},linetoolarrowmarkleft:{color:D,arrowColor:D,fontsize:14,bold:!1,italic:!1,showLabel:!0},linetoolarrowmarkup:{color:ue,arrowColor:ue,fontsize:14,bold:!1,italic:!1,showLabel:!0},linetoolarrowmarkright:{color:D,arrowColor:D,fontsize:14,bold:!1,italic:!1,showLabel:!0},linetoolarrowmarkdown:{color:te,arrowColor:te,fontsize:14,bold:!1,italic:!1,showLabel:!0},linetoolflagmark:{flagColor:D},linetoolpricelabel:{color:L,backgroundColor:D,borderColor:D,fontWeight:"bold",fontsize:14,transparency:0},linetoolarrowmarker:{backgroundColor:N,textColor:N,bold:!0,italic:!1,fontsize:16},linetoolrotatedrectangle:{color:me,fillBackground:!0,backgroundColor:ge,transparency:50,linewidth:w},linetoolcircle:{color:ye,backgroundColor:ve,fillBackground:!0,linewidth:w,textColor:ye,fontSize:14,bold:!1,italic:!1},linetoolellipse:{color:J,fillBackground:!0,backgroundColor:ee,transparency:50,linewidth:w,textColor:J,fontSize:14,bold:!1,italic:!1},linetoolarc:{color:ae,fillBackground:!0,backgroundColor:le,transparency:80,linewidth:w},linetoolprediction:{linecolor:D,linewidth:w,sourceBackColor:D,sourceTextColor:L,sourceStrokeColor:D,targetStrokeColor:D,targetBackColor:D,targetTextColor:L,successBackground:me,successTextColor:L,failureBackground:J,failureTextColor:L,intermediateBackColor:"#ead289",intermediateTextColor:"#6d4d22",transparency:10,centersColor:"#202020"},linetooltriangle:{color:ue,fillBackground:!0,backgroundColor:_e,transparency:80,linewidth:w},linetoolcallout:{color:L,backgroundColor:q,transparency:50,linewidth:w,fontsize:14,bordercolor:G,bold:!1,italic:!1,wordWrap:!1,wordWrapWidth:200},linetoolparallelchannel:{linecolor:D,linewidth:w,linestyle:M,extendLeft:!1,extendRight:!1,fillBackground:!0,backgroundColor:R,transparency:20,showMidline:!0,midlinecolor:D,midlinewidth:1, +midlinestyle:I,labelVisible:!1,labelHorzAlign:"left",labelVertAlign:"bottom",labelTextColor:D,labelFontSize:14,labelBold:!1,labelItalic:!1},linetoolelliottimpulse:{degree:7,showWave:!0,color:"#3d85c6",linewidth:w},linetoolelliotttriangle:{degree:7,showWave:!0,color:ye,linewidth:w},linetoolelliotttriplecombo:{degree:7,showWave:!0,color:"#6aa84f",linewidth:w},linetoolelliottcorrection:{degree:7,showWave:!0,color:"#3d85c6",linewidth:w},linetoolelliottdoublecombo:{degree:7,showWave:!0,color:"#6aa84f",linewidth:w},linetoolbarspattern:{color:D,mode:_.Bars,mirrored:!1,flipped:!1},linetoolghostfeed:{averageHL:20,variance:50,candleStyle:{upColor:he,downColor:K,drawWick:!0,drawBorder:!0,borderColor:"#378658",borderUpColor:ue,borderDownColor:J,wickColor:Pe},transparency:50},study:{inputs:{},styles:{},bands:{},graphics:{},ohlcPlots:{},palettes:{},filledAreasStyle:{},filledAreas:{},visible:!0,showLegendValues:!0,showLegendInputs:!0,showLabelsOnPriceScale:!0,precision:"default"},linetoolpitchfork:{fillBackground:!0,transparency:80,style:u.Original,median:{visible:!0,color:J,linewidth:w,linestyle:M},extendLines:!1,level0:p(.25,fe,!1),level1:p(.382,pe,!1),level2:p(.5,ue,!0),level3:p(.618,ue,!1),level4:p(.75,z,!1),level5:p(1,D,!0),level6:p(1.5,ie,!1),level7:p(1.75,ae,!1),level8:p(2,Y,!1)},linetoolpitchfan:{fillBackground:!0,transparency:80,median:{visible:!0,color:J,linewidth:w,linestyle:M},level0:p(.25,fe,!1),level1:p(.382,pe,!1),level2:p(.5,z,!0),level3:p(.618,ue,!1),level4:p(.75,z,!1),level5:p(1,D,!0),level6:p(1.5,ie,!1),level7:p(1.75,ae,!1),level8:p(2,Y,!1)},linetoolgannfan:{linewidth:w,showLabels:!0,fillBackground:!0,transparency:80,level1:Ee(1,8,ye,!0),level2:Ee(1,4,ue,!0),level3:Ee(1,3,me,!0),level4:Ee(1,2,ue,!0),level5:Ee(1,1,z,!0),level6:Ee(2,1,D,!0),level7:Ee(3,1,ie,!0),level8:Ee(4,1,ae,!0),level9:Ee(8,1,J,!0)},linetoolganncomplex:{fillBackground:!1,arcsBackground:{fillBackground:!0,transparency:80},reverse:!1,scaleRatio:"",showLabels:!0,labelsStyle:{fontSize:12,bold:!1,italic:!1},levels:[A(Pe,!0),A(ye,!0),A(z,!0),A(me,!0),A(ue,!0),A(Pe,!0)],fanlines:[ke(O,!1,w,8,1),ke(J,!1,w,5,1),ke(Pe,!1,w,4,1),ke(ye,!1,w,3,1),ke(z,!0,w,2,1),ke(me,!0,w,1,1),ke(ue,!0,w,1,2),ke(ue,!1,w,1,3),ke(D,!1,w,1,4),ke(F,!1,w,1,5),ke(O,!1,w,1,8)],arcs:[ke(ye,!0,w,1,0),ke(ye,!0,w,1,1),ke(ye,!0,w,1.5,0),ke(z,!0,w,2,0),ke(z,!0,w,2,1),ke(me,!0,w,3,0),ke(me,!0,w,3,1),ke(ue,!0,w,4,0),ke(ue,!0,w,4,1),ke(D,!0,w,5,0),ke(D,!0,w,5,1)]},linetoolgannfixed:{fillBackground:!1,arcsBackground:{fillBackground:!0,transparency:80},reverse:!1,levels:[A(Pe,!0),A(ye,!0),A(z,!0),A(me,!0),A(ue,!0),A(Pe,!0)],fanlines:[ke(O,!1,w,8,1),ke(J,!1,w,5,1),ke(Pe,!1,w,4,1),ke(ye,!1,w,3,1),ke(z,!0,w,2,1),ke(me,!0,w,1,1),ke(ue,!0,w,1,2),ke(ue,!1,w,1,3),ke(D,!1,w,1,4),ke(F,!1,w,1,5),ke(O,!1,w,1,8)],arcs:[ke(ye,!0,w,1,0),ke(ye,!0,w,1,1),ke(ye,!0,w,1.5,0),ke(z,!0,w,2,0),ke(z,!0,w,2,1),ke(me,!0,w,3,0),ke(me,!0,w,3,1),ke(ue,!0,w,4,0),ke(ue,!0,w,4,1),ke(D,!0,w,5,0),ke(D,!0,w,5,1)]},linetoolgannsquare:{color:"rgba(21, 56, 153, 0.8)",linewidth:w,linestyle:M,showTopLabels:!0,showBottomLabels:!0, +showLeftLabels:!0,showRightLabels:!0,fillHorzBackground:!0,horzTransparency:80,fillVertBackground:!0,vertTransparency:80,reverse:!1,fans:t(Ce,!1),hlevel1:i(0,Pe,!0),hlevel2:i(.25,ye,!0),hlevel3:i(.382,z,!0),hlevel4:i(.5,me,!0),hlevel5:i(.618,ue,!0),hlevel6:i(.75,D,!0),hlevel7:i(1,Pe,!0),vlevel1:i(0,Pe,!0),vlevel2:i(.25,ye,!0),vlevel3:i(.382,z,!0),vlevel4:i(.5,me,!0),vlevel5:i(.618,ue,!0),vlevel6:i(.75,D,!0),vlevel7:i(1,Pe,!0)},linetoolfibspeedresistancefan:{fillBackground:!0,transparency:80,grid:{color:"rgba(21, 56, 153, 0.8)",linewidth:1,linestyle:M,visible:!0},linewidth:w,linestyle:M,showTopLabels:!0,showBottomLabels:!0,showLeftLabels:!0,showRightLabels:!0,reverse:!1,hlevel1:i(0,Pe,!0),hlevel2:i(.25,ye,!0),hlevel3:i(.382,z,!0),hlevel4:i(.5,me,!0),hlevel5:i(.618,ue,!0),hlevel6:i(.75,D,!0),hlevel7:i(1,Pe,!0),vlevel1:i(0,Pe,!0),vlevel2:i(.25,ye,!0),vlevel3:i(.382,z,!0),vlevel4:i(.5,me,!0),vlevel5:i(.618,ue,!0),vlevel6:i(.75,D,!0),vlevel7:i(1,Pe,!0)},linetoolfibretracement:{showCoeffs:!0,showPrices:!0,fillBackground:!0,transparency:80,extendLines:!1,extendLinesLeft:!1,horzLabelsAlign:"left",vertLabelsAlign:"middle",showText:!0,horzTextAlign:"center",vertTextAlign:"middle",reverse:!1,coeffsAsPercents:!1,fibLevelsBasedOnLogScale:!1,labelFontSize:12,trendline:{visible:!0,color:Pe,linewidth:w,linestyle:I},levelsStyle:{linewidth:w,linestyle:M},level1:i(0,Pe,!0,!0),level2:i(.236,J,!0,!0),level3:i(.382,ye,!0,!0),level4:i(.5,me,!0,!0),level5:i(.618,ue,!0,!0),level6:i(.786,z,!0,!0),level7:i(1,Pe,!0,!0),level8:i(1.618,D,!0,!0),level9:i(2.618,J,!0,!0),level10:i(3.618,ie,!0,!0),level11:i(4.236,ae,!0,!0),level12:i(1.272,ye,!1,!0),level13:i(1.414,J,!1,!0),level16:i(2,ue,!1,!0),level14:i(2.272,ye,!1,!0),level15:i(2.414,me,!1,!0),level17:i(3,z,!1,!0),level18:i(3.272,Pe,!1,!0),level19:i(3.414,D,!1,!0),level20:i(4,J,!1,!0),level21:i(4.272,ie,!1,!0),level22:i(4.414,ae,!1,!0),level23:i(4.618,ye,!1,!0),level24:i(4.764,ue,!1,!0)},linetoolfibchannel:{showCoeffs:!0,showPrices:!0,fillBackground:!0,transparency:80,extendLeft:!1,extendRight:!1,horzLabelsAlign:"left",vertLabelsAlign:"middle",coeffsAsPercents:!1,labelFontSize:12,levelsStyle:{linewidth:w,linestyle:M},level1:i(0,Pe,!0),level2:i(.236,J,!0),level3:i(.382,ye,!0),level4:i(.5,me,!0),level5:i(.618,ue,!0),level6:i(.786,z,!0),level7:i(1,Pe,!0),level8:i(1.618,D,!0),level9:i(2.618,J,!0),level10:i(3.618,ie,!0),level11:i(4.236,ae,!0),level12:i(1.272,ye,!1),level13:i(1.414,J,!1),level16:i(2,ue,!1),level14:i(2.272,ye,!1),level15:i(2.414,me,!1),level17:i(3,z,!1),level18:i(3.272,Pe,!1),level19:i(3.414,D,!1),level20:i(4,J,!1),level21:i(4.272,ie,!1),level22:i(4.414,ae,!1),level23:i(4.618,ye,!1),level24:i(4.764,ue,!1)},linetoolprojection:{showCoeffs:!0,fillBackground:!0,transparency:80,color1:R,color2:oe,linewidth:w,trendline:{visible:!0,color:Ce,linestyle:M},level1:p(1,"#808080",!0)},linetool5pointspattern:{color:D,textcolor:L,fillBackground:!0,backgroundColor:D,fontsize:12,bold:!1,italic:!1,transparency:85,linewidth:w},linetoolcypherpattern:{color:D,textcolor:L,fillBackground:!0,backgroundColor:D, +fontsize:12,bold:!1,italic:!1,transparency:85,linewidth:w},linetooltrianglepattern:{color:W,textcolor:L,fillBackground:!0,backgroundColor:W,fontsize:12,bold:!1,italic:!1,transparency:85,linewidth:w},linetoolabcd:{color:ue,textcolor:L,fontsize:12,bold:!1,italic:!1,linewidth:w},linetoolthreedrivers:{color:W,textcolor:L,fillBackground:!0,backgroundColor:"rgba(149, 40, 204, 0.5)",fontsize:12,bold:!1,italic:!1,transparency:50,linewidth:w},linetoolheadandshoulders:{color:ue,textcolor:L,fillBackground:!0,backgroundColor:ue,fontsize:12,bold:!1,italic:!1,transparency:85,linewidth:w},linetoolfibwedge:{showCoeffs:!0,fillBackground:!0,transparency:80,trendline:{visible:!0,color:"#808080",linewidth:w,linestyle:M},level1:p(.236,J,!0),level2:p(.382,ye,!0),level3:p(.5,me,!0),level4:p(.618,ue,!0),level5:p(.786,z,!0),level6:p(1,Pe,!0),level7:p(1.618,D,!1),level8:p(2.618,J,!1),level9:p(3.618,W,!1),level10:p(4.236,ae,!1),level11:p(4.618,ae,!1)},linetoolfibcircles:{showCoeffs:!0,fillBackground:!0,transparency:80,coeffsAsPercents:!1,trendline:{visible:!0,color:Pe,linewidth:w,linestyle:I},level1:p(.236,J,!0),level2:p(.382,ye,!0),level3:p(.5,ue,!0),level4:p(.618,me,!0),level5:p(.786,z,!0),level6:p(1,Pe,!0),level7:p(1.618,D,!0),level8:p(2.618,ae,!0),level9:p(3.618,D,!0),level10:p(4.236,ae,!0),level11:p(4.618,J,!0)},linetoolfibspeedresistancearcs:{showCoeffs:!0,fillBackground:!0,transparency:80,fullCircles:!1,trendline:{visible:!0,color:Pe,linewidth:w,linestyle:I},level1:p(.236,J,!0),level2:p(.382,ye,!0),level3:p(.5,ue,!0),level4:p(.618,me,!0),level5:p(.786,z,!0),level6:p(1,Pe,!0),level7:p(1.618,D,!0),level8:p(2.618,ae,!0),level9:p(3.618,D,!0),level10:p(4.236,ae,!0),level11:p(4.618,J,!0)},linetooltrendbasedfibextension:{showCoeffs:!0,showPrices:!0,fillBackground:!0,transparency:80,extendLines:!1,extendLinesLeft:!1,horzLabelsAlign:"left",vertLabelsAlign:"middle",showText:!0,horzTextAlign:"center",vertTextAlign:"middle",reverse:!1,coeffsAsPercents:!1,fibLevelsBasedOnLogScale:!1,labelFontSize:12,trendline:{visible:!0,color:Pe,linewidth:w,linestyle:I},levelsStyle:{linewidth:w,linestyle:M},level1:i(0,Pe,!0,!0),level2:i(.236,J,!0,!0),level3:i(.382,ye,!0,!0),level4:i(.5,me,!0,!0),level5:i(.618,ue,!0,!0),level6:i(.786,z,!0,!0),level7:i(1,Pe,!0,!0),level8:i(1.618,D,!0,!0),level9:i(2.618,J,!0,!0),level10:i(3.618,ie,!0,!0),level11:i(4.236,ae,!0,!0),level12:i(1.272,ye,!1,!0),level13:i(1.414,J,!1,!0),level16:i(2,ue,!1,!0),level14:i(2.272,ye,!1,!0),level15:i(2.414,me,!1,!0),level17:i(3,z,!1,!0),level18:i(3.272,Pe,!1,!0),level19:i(3.414,D,!1,!0),level20:i(4,J,!1,!0),level21:i(4.272,ie,!1,!0),level22:i(4.414,ae,!1,!0),level23:i(4.618,ye,!1,!0),level24:i(4.764,ue,!1,!0)},linetooltrendbasedfibtime:{showCoeffs:!0,fillBackground:!0,transparency:80,horzLabelsAlign:"right",vertLabelsAlign:"bottom",trendline:{visible:!0,color:Pe,linewidth:w,linestyle:I},level1:p(0,Pe,!0),level2:p(.382,J,!0),level3:p(.5,pe,!1),level4:p(.618,me,!0),level5:p(1,ue,!0),level6:p(1.382,z,!0),level7:p(1.618,Pe,!0),level8:p(2,D,!0),level9:p(2.382,ae,!0),level10:p(2.618,ie,!0), +level11:p(3,W,!0)},linetoolschiffpitchfork:{fillBackground:!0,transparency:80,style:u.Schiff,median:{visible:!0,color:J,linewidth:w,linestyle:M},extendLines:!1,level0:p(.25,fe,!1),level1:p(.382,pe,!1),level2:p(.5,ue,!0),level3:p(.618,ue,!1),level4:p(.75,z,!1),level5:p(1,D,!0),level6:p(1.5,ie,!1),level7:p(1.75,ae,!1),level8:p(2,Y,!1)},linetoolschiffpitchfork2:{fillBackground:!0,transparency:80,style:u.Schiff2,median:{visible:!0,color:J,linewidth:w,linestyle:M},extendLines:!1,level0:p(.25,fe,!1),level1:p(.382,pe,!1),level2:p(.5,ue,!0),level3:p(.618,ue,!1),level4:p(.75,z,!1),level5:p(1,D,!0),level6:p(1.5,ie,!1),level7:p(1.75,ae,!1),level8:p(2,Y,!1)},linetoolinsidepitchfork:{fillBackground:!0,transparency:80,style:u.Inside,median:{visible:!0,color:J,linewidth:w,linestyle:M},extendLines:!1,level0:p(.25,fe,!1),level1:p(.382,pe,!1),level2:p(.5,ue,!0),level3:p(.618,ue,!1),level4:p(.75,z,!1),level5:p(1,D,!0),level6:p(1.5,ie,!1),level7:p(1.75,ae,!1),level8:p(2,Y,!1)},linetoolregressiontrend:{linewidth:1,linestyle:M,styles:{upLine:{display:g.All,color:B,linestyle:M,linewidth:w},downLine:{display:g.All,color:B,linestyle:M,linewidth:w},baseLine:{display:g.All,color:Q,linestyle:I,linewidth:1},extendLines:!1,showPearsons:!0,transparency:70}}},De(TradingView.defaultProperties.chartproperties),Ve()}if(void 0===TradingView.defaultProperties["study_MA@tv-basicstudies"]&&(TradingView.defaultProperties["study_MA@tv-basicstudies"]={description:"Moving Average",shortDescription:"MA",inputs:{length:9,source:"close"},styles:{MovAvg:{display:g.All,color:D,linestyle:M,linewidth:1,plottype:m.Line,histogramBase:0,title:"MA"}}}),void 0===TradingView.defaultProperties["study_PivotPointsHighLow@tv-basicstudies"]&&(TradingView.defaultProperties["study_PivotPointsHighLow@tv-basicstudies"]={fontsize:10,borderColor:D,backColor:E,textColor:Me}),void 0===TradingView.defaultProperties["study_PivotPointsStandard@tv-basicstudies"]){var Re=!0;TradingView.defaultProperties["study_PivotPointsStandard@tv-basicstudies"]={_hardCodedDefaultsVersion:1,fontsize:11,levelsStyle:{showLabels:!0,visibility:{P:Re,"S1/R1":Re,"S2/R2":Re,"S3/R3":Re,"S4/R4":Re,"S5/R5":Re},colors:{P:Se,"S1/R1":Se,"S2/R2":Se,"S3/R3":Se,"S4/R4":Se,"S5/R5":Se},widths:{P:1,"S1/R1":1,"S2/R2":1,"S3/R3":1,"S4/R4":1,"S5/R5":1}}}}void 0===TradingView.defaultProperties["study_ZigZag@tv-basicstudies"]&&(TradingView.defaultProperties["study_ZigZag@tv-basicstudies"]={color:D,linewidth:2});const Ne={styles:{splitByBlocks:!1},graphics:{tpoLevels:{tpo:{tpoPoc:{color:""},tpoPoorHigh:{color:""},tpoPoorLow:{color:""},tpoSingleprints:{color:""},tpoVah:{color:""},tpoVal:{color:""},volumePoc:{color:""},volumeVah:{color:""},volumeVal:{color:""}}},tpoVolumeRows:{tpo:{valuesColor:"",colors:{nonVa:"",va:""}}}}};function Oe(e){const t={styles:{developingPoc:{color:""},developingVAHigh:{color:""},developingVALow:{color:""}},graphics:{horizlines:{pocLines:{color:""},vahLines:{color:""},valLines:{color:""}},hhists:{histBars2:{colors:["",""],valuesColor:""},histBarsVA:{colors:["",""],valuesColor:""}}}} +;return e&&(t.graphics.polygons={histBoxBg:{color:""}}),t}void 0===TradingView.defaultProperties["study_TPOPeriodic@tv-volumebyprice"]&&(TradingView.defaultProperties["study_TPOPeriodic@tv-volumebyprice"]=Ne),void 0===TradingView.defaultProperties["study_TPOSessions@tv-volumebyprice"]&&(TradingView.defaultProperties["study_TPOSessions@tv-volumebyprice"]=Ne),void 0===TradingView.defaultProperties["study_VbPSessions@tv-volumebyprice"]&&(TradingView.defaultProperties["study_VbPSessions@tv-volumebyprice"]=Oe(!0)),void 0===TradingView.defaultProperties["study_VbPSessionsRoughDetailed@tv-volumebyprice"]&&(TradingView.defaultProperties["study_VbPSessionsRoughDetailed@tv-volumebyprice"]=Oe(!0)),void 0===TradingView.defaultProperties["study_VbPPeriodic@tv-volumebyprice"]&&(TradingView.defaultProperties["study_VbPPeriodic@tv-volumebyprice"]=Oe(!0)),void 0===TradingView.defaultProperties["study_VbPVisible@tv-volumebyprice"]&&(TradingView.defaultProperties["study_VbPVisible@tv-volumebyprice"]=Oe(!1));const Fe={styles:{developingPoc:{color:""},developingVAHigh:{color:""},developingVALow:{color:""}},graphics:{hhists:{histBars2:{colors:["",""],valuesColor:""},histBarsVA:{colors:["",""],valuesColor:""}},horizlines:{pocLines:{color:""},vahLines:{color:""},valLines:{color:""}},polygons:{histBoxBg:{color:""}}}};if(void 0===TradingView.defaultProperties["study_VbPFixed@tv-volumebyprice"]&&(TradingView.defaultProperties["study_VbPFixed@tv-volumebyprice"]=Fe),void 0===TradingView.defaultProperties["study_VbPFixed@tv-basicstudies"]&&(TradingView.defaultProperties["study_VbPFixed@tv-basicstudies"]=Fe),void 0===TradingView.defaultProperties.linetoolanchoredvp&&(TradingView.defaultProperties.linetoolanchoredvp=Oe(!0)),void 0===TradingView.defaultProperties["study_VbPAutoAnchored@tv-volumebyprice"]&&(TradingView.defaultProperties["study_VbPAutoAnchored@tv-volumebyprice"]=Oe(!0)),void 0===TradingView.defaultProperties["study_ElliottWave@tv-basicstudies"]&&(TradingView.defaultProperties["study_ElliottWave@tv-basicstudies"]={inputs:{},level0:t($,!1),level1:t("#008000",!1),level2:t("#0000ff",!1),level3:t("#ff00ff",!1),level4:t("#0080ff",!0),level5:t($,!0),level6:t("#008000",!0),level7:t("#0000ff",!0),level8:t("#ff00ff",!0)}),void 0===TradingView.defaultProperties["study_LinearRegression@tv-basicstudies"]&&(TradingView.defaultProperties["study_LinearRegression@tv-basicstudies"]={styles:{upLine:{display:g.All,color:B,linestyle:M,linewidth:1},downLine:{display:g.All,color:B,linestyle:M,linewidth:1},baseLine:{display:g.All,color:Q,linestyle:M,linewidth:1},extendLines:!0,showPearsons:!0,backgroundColor:"rgba(153, 21, 21, 0.3)",transparency:70}}),void 0===TradingView.defaultProperties["study_Compare@tv-basicstudies"]&&(TradingView.defaultProperties["study_Compare@tv-basicstudies"]={minTick:"default"}),void 0===TradingView.defaultProperties["study_Overlay@tv-basicstudies"]){TradingView.defaultProperties["study_Overlay@tv-basicstudies"]={style:d.STYLE_LINE,allowExtendTimeScale:!1,showPriceLine:!1,minTick:"default",candleStyle:{upColor:de,downColor:re, +drawWick:!0,drawBorder:!0,drawBody:!0,borderColor:"#378658",borderUpColor:de,borderDownColor:re,wickColor:"#737375",wickUpColor:de,wickDownColor:re,barColorsOnPrevClose:!1},hollowCandleStyle:{upColor:de,downColor:re,drawWick:!0,drawBorder:!0,drawBody:!0,borderColor:"#378658",borderUpColor:de,borderDownColor:re,wickColor:"#737375",wickUpColor:de,wickDownColor:re,barColorsOnPrevClose:!1},barStyle:{upColor:de,downColor:re,barColorsOnPrevClose:!1,dontDrawOpen:!1,thinBars:!0},lineStyle:{color:be,linestyle:M,linewidth:2,priceSource:"close"},lineWithMarkersStyle:{color:be,linestyle:M,linewidth:2,priceSource:"close"},steplineStyle:{color:be,linestyle:M,linewidth:2,priceSource:"close"},areaStyle:{color1:D,color2:D,linecolor:D,linestyle:M,linewidth:2,priceSource:"close",transparency:95},baselineStyle:{baselineColor:Te,topFillColor1:Le,topFillColor2:Le,bottomFillColor1:X,bottomFillColor2:X,topLineColor:Ae,bottomLineColor:Z,topLineWidth:2,bottomLineWidth:2,topLineStyle:0,bottomLineStyle:2,priceSource:"close",transparency:50,baseLevelPercentage:50},hiloStyle:{color:D,showBorders:!0,borderColor:D,showLabels:!0,labelColor:D,drawBody:!0},columnStyle:{upColor:r(ue,50),downColor:r(J,50),barColorsOnPrevClose:!0,priceSource:"close",baselinePosition:"bottom"},hlcAreaStyle:{highLineVisible:!0,highLineColor:z,highLineStyle:M,highLineWidth:2,lowLineVisible:!0,lowLineColor:ae,lowLineStyle:M,lowLineWidth:2,closeLineColor:D,closeLineStyle:M,closeLineWidth:2,highCloseFillColor:j,closeLowFillColor:ce},hlcBarsStyle:{color:D,barColorsOnPrevClose:!1,thinBars:!0},styles:{open:{display:g.All,color:$,linestyle:M,linewidth:1,plottype:m.Line,histogramBase:0},high:{display:g.All,color:$,linestyle:M,linewidth:1,plottype:m.Line,histogramBase:0},low:{display:g.All,color:$,linestyle:M,linewidth:1,plottype:m.Line,histogramBase:0},close:{display:g.All,color:$,linestyle:M,linewidth:1,plottype:m.Line,histogramBase:0}}}}for(var We=e.split("."),He=TradingView.defaultProperties,ze=0;ze1?h(e[o],t.slice(1),i):(e[o]&&e[o].setValue?e[o].setValue(i):e[o]=i,!0))}function d(e){i||A.logWarn("Path `"+e+"` does not exist.")}}function De(e,t,i,s){window.__defaultsOverrides&&Ee(e,t,i,window.__defaultsOverrides,s)}function Be(e,t){window.__settingsOverrides&&Ee(e,null,!1,window.__settingsOverrides,t)}function Ve(){var e=/^linetool.+/;Object.keys(TradingView.defaultProperties).forEach((function(t){e.test(t)&&De(TradingView.defaultProperties[t],null,!1,t)}))}function Re(e,t){return t?function(e,t){var i=ke(e);if(!window._UNIT_TESTS){var n=s(TVSettings.getJSON(e,null));if(function(e){var t=new Set(["linetoolregressiontrend"]);return e.startsWith("study_")||t.has(e)}(e)&&n&&function(e){if(!e)return!1;e=e.toString() +;var t=new RegExp("\\d+").exec(e),i=null!==t&&t[0]===e;return i}(n.version)){var r=n.inputs,a=t.updateStudyInputs(n.id,n.version,"last",r,null);n.inputs=a,n=t.updateStudyState(n,n)}o(i,n),Be(i,e)}return i}(e,t):function(e){var t=ke(e);if(!window._UNIT_TESTS){var i=s(TVSettings.getJSON(e,null));if(i){o(t,i);const s=e.split(".");Be(t,void 0===s[1]?e:s[1])}}return t}(e)}Re.create=function(e,t){if(t){var i=ke(e);TradingView.defaultProperties[e]=o(t,i)}},Re.remove=function(e){TradingView.defaultProperties[e]=void 0},TradingView.saveDefaults=function(e,t){void 0===t?TVSettings.remove(e):TVSettings.setJSON(e,t)},TradingView.factoryDefaults=ke,window.applyDefaultOverridesToLinetools=Ve,window.applyDefaultsOverrides=De,window.applyPropertiesOverrides=Ee,window.defaults=Re,t.applyDefaultOverridesToLinetools=Ve,t.applyDefaultsOverrides=De,t.applyPropertiesOverrides=Ee,t.defaults=Re,t.factoryDefaults=ke,t.saveDefaults=TradingView.saveDefaults,t.createDefaults=Re.create,t.removeDefaults=Re.remove},78861:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DrawingSyncMode:()=>s,SelectPointMode:()=>o,activePointSelectionMode:()=>J,alignTo45Degrees:()=>Ie,barTimesUnderCursor:()=>ee,beenSetLineToolLastPoint:()=>F,cancelLineTool:()=>ne,cancelledLineTool:()=>O,changeLineStyle:()=>me,changeLineTool:()=>de,changedLineStyle:()=>K,changedLineTool:()=>j,continueLineTool:()=>oe,continuedLineTool:()=>N,copiedLineTool:()=>Y,copyLineTool:()=>ge,createLineTool:()=>se,createdLineTool:()=>R,crosshairLock:()=>x,cursorTool:()=>k,drawOnAllCharts:()=>Ae,drawOnAllChartsMode:()=>Le,emojiTool:()=>A,finishChangingLineTool:()=>ue,finishLineTool:()=>pe,finishMovingLineTool:()=>ce,finishedChangingLineTool:()=>G,finishedLineTool:()=>$,finishedMovingLineTool:()=>z,hideAllDrawings:()=>Te,hideAllIndicators:()=>Pe,hideMarksOnBars:()=>Me,iconTool:()=>I,init:()=>be,isDirectionalMovementActive:()=>V,isStudyEditingNow:()=>Q,isToolCreatingNow:()=>E,isToolEditingNow:()=>D,isToolMovingNow:()=>B,lockDrawings:()=>xe,moveLineTool:()=>le,movedLineTool:()=>H,properties:()=>Ce,removeLineTool:()=>_e,removedLineTool:()=>q,resetToCursor:()=>v,restoreLineTool:()=>fe,restoreLineToolState:()=>ye,restoredLineTool:()=>Z,restoredLineToolState:()=>X,runOnDrawingStateReady:()=>we,setLineToolLastPoint:()=>re,startChangingLineTool:()=>he,startMovingLineTool:()=>ae,startedChangingLineTool:()=>U,startedMovingLineTool:()=>W,stickerTool:()=>L,tool:()=>M,toolIsCursor:()=>m,toolIsDemonstration:()=>f,toolIsEraser:()=>g,toolIsMeasure:()=>y});var s,o,n=i(50151),r=i(41072),a=i(78176),l=i(22613),c=i(62773),h=i(48096),d=i(1765),u=i(76422),_=i(51768);!function(e){e[e.Layout=1]="Layout",e[e.Global=2]="Global"}(s||(s={})),function(e){e[e.None=0]="None",e[e.Replay=1]="Replay",e[e.Study=2]="Study"}(o||(o={}));const p=new Set(["cursor","arrow","dot","performance","demonstration"]);function m(e){return p.has(e)}function g(e){return"eraser"===e}function f(e){return"demonstration"===e}function y(e){return"measure"===e}function v(e=!1){if(!e&&S){if(S.childs().stayInDrawingMode.value())return}M.setValue(k.value())} +let S=null,b=null,w=null,C=null,T=null,P=null;const x=new c.WatchedObject(null),M=new l.WatchedValue,I=new l.WatchedValue,A=new l.WatchedValue,L=new l.WatchedValue,k=new l.WatchedValue,E=new l.WatchedValue(!1),D=new l.WatchedValue(!1),B=new l.WatchedValue(!1),V=new l.WatchedValue(!1),R=new h.Delegate,N=new h.Delegate,O=new h.Delegate,F=new h.Delegate,W=new h.Delegate,H=new h.Delegate,z=new h.Delegate,U=new h.Delegate,j=new h.Delegate,G=new h.Delegate,q=new h.Delegate,$=new h.Delegate,K=new h.Delegate,Y=new h.Delegate,Z=new h.Delegate,X=new h.Delegate,J=new l.WatchedValue(o.None),Q=new l.WatchedValue(!1),ee=new Map;function te(e,t){const i=t||{value:!1};return t=>{i.value||(i.value=!0,e.fire(t),i.value=!1)}}const ie={value:!1},se=te(R,ie),oe=te(N,ie),ne=te(O,ie),re=te(F,ie),ae=te(W),le=te(H),ce=te(z),he=te(U),de=te(j),ue=te(G),_e=te(q),pe=te($),me=te(K,ie),ge=te(Y,ie),fe=te(Z),ye=te(X);let ve=!1,Se=[];function be(){if(ve)return;const e=d.getValue("chart.cursorPreference","cursor");M.setValue(m(e)?e:"cursor"),M.subscribe((e=>{m(e)?k.setValue(e):g(e)&&(0,_.trackEvent)("Chart cursors",e)}),{callWithLast:!0}),k.subscribe((e=>{(0,_.trackEvent)("Chart cursors",e),e&&"performance"!==e&&!f(e)&&d.setValue("chart.cursorPreference",e)})),S=new a.DefaultProperty({defaultName:"drawings"}),b=(0,r.createPrimitiveProperty)(!1),w=(0,r.createPrimitiveProperty)(!1),C=(0,r.createPrimitiveProperty)(!1),T=(0,r.createPrimitiveProperty)(!d.getBool("BarsMarksContainer.visibile",!0)),P=(0,r.createPrimitiveProperty)(!1),M.subscribe((e=>{(0,u.emit)("onSelectedLineToolChanged")})),ve=!0,Se.forEach((e=>e())),Se=[]}function we(e){ve?e():Se.push(e)}function Ce(){return(0,n.ensureNotNull)(S)}function Te(){return(0,n.ensureNotNull)(b)}function Pe(){return(0,n.ensureNotNull)(w)}function xe(){return(0,n.ensureNotNull)(C)}function Me(){return(0,n.ensureNotNull)(T)}function Ie(){return(0,n.ensureNotNull)(P)}function Ae(){return Ce().childs().drawOnAllCharts}function Le(){return Ce().childs().drawOnAllChartsMode}},93946:(e,t,i)=>{"use strict";i.d(t,{EnvironmentState:()=>o});var s=i(49483);class o{constructor(e,t=!1){this._shift=!1,this._mod=!1,this._alt=!1,void 0!==e&&(this._shift=Boolean(e.shiftKey),this._mod=Boolean((0,s.isMac)()?e.metaKey:e.ctrlKey),this._alt=Boolean(e.altKey)),this._isApiEvent=t}shift(){return this._shift}mod(){return this._mod}alt(){return this._alt}shiftOnly(){return this._shift&&!this._mod&&!this._alt}modOnly(){return this._mod&&!this._shift&&!this._alt}altOnly(){return this._alt&&!this._shift&&!this._mod}modShift(){return this._shift&&this._mod&&!this._alt}isApiEvent(){return this._isApiEvent}static create(e=!1,t=!1,i=!1){return new o({shiftKey:e,ctrlKey:t,metaKey:t,altKey:i})}}},60911:(e,t,i)=>{"use strict";i.d(t,{decodeExtendedSymbol:()=>h,encodeExtendedSymbolOrGetSimpleSymbolString:()=>l,extractExtendedSymbol:()=>d,isEncodedExtendedSymbol:()=>c,isStudySymbol:()=>a,replaceExtendedSymbol:()=>u});var s=i(87465);function o(e){return"="+JSON.stringify(n(e))}function n(e){ return Object.keys(e).sort().reduce(((t,i)=>("[object Object]"===Object.prototype.toString.call(e[i])?t[i]=n(e[i]):t[i]=e[i],t)),{})}function r(e){return(0,s.isString)(e)}function a(e){return!r(e)&&"inputs"in e}function l(e){return o(e)}function c(e){return"="===e[0]}function h(e){if(!c(e))return{symbol:e};try{return JSON.parse(e.slice(1))}catch(t){return{symbol:e}}}function d(e){if(r(e))return{symbol:e};let t=e;for(;!r(t.symbol);)t=t.symbol;return t}function u(e,t){let i=e;for(;!r(i.symbol);)i=i.symbol;i.symbol=t}},92211:(e,t,i)=>{"use strict";i.d(t,{extractSymbolNameFromSymbolInfo:()=>l});var s=i(37103);const o=s.enabled("pay_attention_to_ticker_not_symbol"),n=s.enabled("charting_library_single_symbol_request"),r=s.enabled("use_ticker_on_symbol_info_update"),a=s.enabled("uppercase_instrument_names");function l(e,t,i,s){let l=e&&(i&&e.pro_name||e.full_name||e.name);return n&&t?l=t:(r||!s&&o)&&e&&e.ticker&&(l=e.ticker),a&&l&&(l=l.toUpperCase()),l}},35727:(e,t,i)=>{"use strict";i.d(t,{customFormatters:()=>s});const s={dateFormatter:null,timeFormatter:null,tickMarkFormatter:null,priceFormatterFactory:null,studyFormatterFactory:null}},10718:(e,t,i)=>{"use strict";i.d(t,{availableDateFormats:()=>v,dateFormatFunctions:()=>f,defaultDateFormat:()=>S,getDateFormatWithWeekday:()=>y});var s=i(11542),o=i(28865),n=i(95322);const r={1:()=>s.t(null,void 0,i(62310)),2:()=>s.t(null,void 0,i(2507)),3:()=>s.t(null,void 0,i(92767)),4:()=>s.t(null,void 0,i(27072)),5:()=>s.t(null,{context:"short"},i(13132)),6:()=>s.t(null,void 0,i(429)),7:()=>s.t(null,void 0,i(53786)),8:()=>s.t(null,void 0,i(46450)),9:()=>s.t(null,void 0,i(6816)),10:()=>s.t(null,void 0,i(12179)),11:()=>s.t(null,void 0,i(26899)),12:()=>s.t(null,void 0,i(32084))},a={1:()=>s.t(null,void 0,i(14568)),2:()=>s.t(null,void 0,i(13534)),3:()=>s.t(null,void 0,i(14530)),4:()=>s.t(null,void 0,i(3762))},l=(e,t)=>(t?e.getMonth():e.getUTCMonth())+1,c=(e,t)=>t?e.getFullYear():e.getUTCFullYear(),h=(e,t)=>e.toLocaleDateString(window.language?(0,o.getIsoLanguageCodeFromLanguage)(window.language):void 0,{weekday:"short",timeZone:"local"===t?void 0:t}),d=(e,t)=>a[((e,t)=>Math.floor((l(e,t)-1)/3)+1)(e,t)](),u=(e,t)=>(0,n.numberToStringWithLeadingZero)(((e,t)=>t?e.getDate():e.getUTCDate())(e,t),2),_=(e,t)=>r[l(e,t)](),p=(e,t)=>(0,n.numberToStringWithLeadingZero)(l(e,t),2),m=(e,t)=>(0,n.numberToStringWithLeadingZero)(c(e,t)%100,2),g=(e,t)=>(0,n.numberToStringWithLeadingZero)(c(e,t),4),f={"qq 'yy":(e,t)=>`${d(e,t)} '${m(e,t)}`,"qq yyyy":(e,t)=>`${d(e,t)} ${g(e,t)}`,"dd MMM 'yy":(e,t)=>`${u(e,t)} ${_(e,t)} '${m(e,t)}`,"MMM 'yy":(e,t)=>`${_(e,t)} '${m(e,t)}`,"MMM dd, yyyy":(e,t)=>`${_(e,t)} ${u(e,t)}, ${g(e,t)}`,"MMM yyyy":(e,t)=>`${_(e,t)} ${g(e,t)}`,"MMM dd":(e,t)=>`${_(e,t)} ${u(e,t)}`,"dd MMM":(e,t)=>`${u(e,t)} ${_(e,t)}`,"yyyy-MM-dd":(e,t)=>`${g(e,t)}-${p(e,t)}-${u(e,t)}`,"yy-MM-dd":(e,t)=>`${m(e,t)}-${p(e,t)}-${u(e,t)}`,"yy/MM/dd":(e,t)=>`${m(e,t)}/${p(e,t)}/${u(e,t)}`,"yyyy/MM/dd":(e,t)=>`${g(e,t)}/${p(e,t)}/${u(e,t)}`,"dd-MM-yyyy":(e,t)=>`${u(e,t)}-${p(e,t)}-${g(e,t)}`, "dd-MM-yy":(e,t)=>`${u(e,t)}-${p(e,t)}-${m(e,t)}`,"dd/MM/yy":(e,t)=>`${u(e,t)}/${p(e,t)}/${m(e,t)}`,"dd/MM/yyyy":(e,t)=>`${u(e,t)}/${p(e,t)}/${g(e,t)}`,"MM/dd/yy":(e,t)=>`${p(e,t)}/${u(e,t)}/${m(e,t)}`,"MM/dd/yyyy":(e,t)=>`${p(e,t)}/${u(e,t)}/${g(e,t)}`};function y(e,t){return"ja"===window.language?(i,s)=>`${f[e](i,s)} (${h(i,t)})`:(i,s)=>`${h(i,t)} ${f[e](i,s)}`}const v=Object.keys(f),S=()=>-1!==["ja","ko","zh","zh_TW"].indexOf(window.language||"")?"yyyy-MM-dd":"dd MMM 'yy"},60336:(e,t,i)=>{"use strict";i.d(t,{DateFormatter:()=>n});var s=i(35727),o=i(10718);class n{constructor(e="yyyy-MM-dd",t=!1,i="UTC"){this._dateFormatFunc=t?(0,o.getDateFormatWithWeekday)(e,i):o.dateFormatFunctions[e]}format(e){return s.customFormatters&&s.customFormatters.dateFormatter?s.customFormatters.dateFormatter.format(e):this._dateFormatFunc(e,!1)}formatLocal(e){return s.customFormatters.dateFormatter?s.customFormatters.dateFormatter.formatLocal?s.customFormatters.dateFormatter.formatLocal(e):s.customFormatters.dateFormatter.format(e):this._dateFormatFunc(e,!0)}parse(e){if(""===e)return{res:!1};let t=e;return s.customFormatters&&s.customFormatters.dateFormatter&&!s.customFormatters.dateFormatter.parse&&console.warn("You need to provide a `parse` function as part of `dateFormatter`"),s.customFormatters&&s.customFormatters.dateFormatter&&s.customFormatters.dateFormatter.parse&&(t=String(s.customFormatters.dateFormatter.parse(e))),{res:!0,value:t}}}},86957:(e,t,i)=>{"use strict";i.d(t,{DateTimeFormatter:()=>r});var s=i(82087),o=i(60336);const n={dateFormat:"yyyy-MM-dd",withWeekday:!1,timeFormat:s.hourMinuteSecondFormat,dateTimeSeparator:" "};class r{constructor(e={}){const t=Object.assign({},n,e);this._dateFormatter=new o.DateFormatter(t.dateFormat,t.withWeekday,t.timezone),this._timeFormatter=new s.TimeFormatter(t.timeFormat),this._separator=t.dateTimeSeparator}format(e,t){const i=t?.dateTimeSeparator??this._separator;return`${this._dateFormatter.format(e)}${i}${this._timeFormatter.format(e)}`}formatLocal(e,t){const i=t?.dateTimeSeparator??this._separator;return`${this._dateFormatter.formatLocal(e)}${i}${this._timeFormatter.formatLocal(e)}`}}},95322:(e,t,i)=>{"use strict";i.d(t,{numDependencyFormatter:()=>n,numberToStringWithLeadingZero:()=>o});var s=i(87465);function o(e,t){if(!(0,s.isNumber)(e))return"n/a";if(!(0,s.isInteger)(t))throw new TypeError("invalid length");if(t<0||t>24)throw new TypeError("invalid length");if(0===t)return e.toString();return("00000000000000000000"+e.toString()).slice(-t)}function n(e){const t=new Map;return i=>{const s=i??-1;let o=t.get(s);return o||(o=e(i),t.set(s,o)),o}}},9860:(e,t,i)=>{"use strict";i.d(t,{LimitedPrecisionNumericFormatter:()=>n});var s,o=i(97906);!function(e){e[e.DefaultPrecision=1]="DefaultPrecision"}(s||(s={}));class n{constructor(e,t){this._precision=e??1,this._numericFormatter=new o.NumericFormatter({precision:this._precision,ignoreLocaleNumberFormat:t})}format(e,t){const i=e.toFixed(this._precision),s=Math.pow(10,-this._precision) ;return this._numericFormatter.format(Math.max(parseFloat(i),s),t)}parse(e,t){const i=this._numericFormatter.parse(e,t);return i.res?{res:!0,value:i.value,suggest:this.format(i.value)}:i}}},91799:(e,t,i)=>{"use strict";i.d(t,{formatNumber:()=>r,parseNumber:()=>l});var s=i(60521),o=i(59332),n=i(24640);function r(e,t,i,o,n){if(!Number.isFinite(e))return`${e}`;const r=-1===Math.sign(e)?"-":"";e=Math.abs(e);let a=void 0===i?e.toString():e.toFixed(i);if(a.includes("e")){if(!o)return`${r}${a.replace(".",t.decimalSign)}`;{const i=new s.Big(e);if(a=i.lt(1)?i.toFixed():i.toString(),a.includes("e"))return`${r}${a.replace(".",t.decimalSign)}`}}const l=a.split("."),c=l[0];let h=l[1];const d=function(e,t){let i=e.length;const s=[];for(;i>0;)s.unshift(e.slice(Math.max(i-3,0),i)),i-=3;return s.join(t)}(c,t.groupingSeparator);return void 0!==i&&(h=0===i?void 0:e.toFixed(i).slice(-i)),void 0!==n&&void 0!==h&&(h=function(e,t){let i=e.length-1;for(let s=i;s>=t&&"0"===e[s];s-=1)i-=1;return e.slice(0,i+1)}(h,n)),h?`${r}${d}${t.decimalSign}${h}`:`${r}${d}`}const a=(0,o.default)((e=>{const t=e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");return new RegExp(t,"gm")}));function l(e,t){if(/^(NaN|[+|-]?Infinity)$/.test(e))return parseFloat(e);e=(0,n.stripLTRMarks)(e);const i=a(t.groupingSeparator);return i&&(e=e.replace(i,"")),e=e.replace(t.decimalSign,"."),/^(\+|-)?\d+(\.\d+|\.)?(e(\+|-)?\d+)?$/.test(e)?parseFloat(e):NaN}},26010:(e,t,i)=>{"use strict";let s;i.d(t,{formatterOptions:()=>o,formatterOptionsLibraryOverrides:()=>n,getNumberFormat:()=>d});const o={decimalSign:".",decimalSignFractional:"'"},n={};const r={groupingSeparator:",",decimalSign:"."},a={groupingSeparator:".",decimalSign:","},l={groupingSeparator:" ",decimalSign:","},c={groupingSeparator:"",decimalSign:"."},h=new Map([["en",r],["th",r],["ja",r],["ko",r],["zh",r],["zh_TW",r],["ar",r],["he_IL",r],["ms_MY",r],["vi",r],["de",a],["es",a],["it",a],["tr",a],["pt",a],["id_ID",a],["fr",l],["pl",l],["ru",l]]);function d(e){if(e)return{decimalSign:o.decimalSign,groupingSeparator:""};return{...h.get(s||window.language||"")??c,...n}}},97906:(e,t,i)=>{"use strict";i.d(t,{NumericFormatter:()=>n});var s=i(91799),o=i(26010);class n{constructor(e={}){this._options=e}format(e,t={}){if(!Number.isFinite(e))return String(e);const{ignoreLocaleNumberFormat:i=this._options.ignoreLocaleNumberFormat,noExponentialForm:r=this._options.noExponentialForm}=t,{minPrecision:a,precision:l}=this._options,c=(0,o.getNumberFormat)(i);return void 0===l?n._formatNoEImpl(e,c,l,a):(0,s.formatNumber)(e,c,l,r,a)}parse(e,t){const{ignoreLocaleNumberFormat:i,precision:n}=this._options,r=(0,o.getNumberFormat)(i||t?.ignoreLocaleNumberFormat);let a=(0,s.parseNumber)(e,r);return Number.isFinite(a)?(n&&(a=+a.toFixed(n)),{res:!0,value:a}):{res:!1}}static formatNoE(e,t){return this._formatNoEImpl(e,t)}static _formatNoEImpl(e,t,i,o){return Number.isFinite(e)?(t=t??{groupingSeparator:"",decimalSign:"."},(0,s.formatNumber)(e,t,i,!0,o)):String(e)}}},38888:(e,t,i)=>{"use strict";i.d(t,{PercentageFormatter:()=>n}) @@ -383,259 +383,259 @@ this._renderer.append(new l.SelectionRenderer({bgColors:n,points:i,visible:!0,ba prevClosePriceLineWidth:1,minTick:"default",dividendsAdjustment:void 0,backAdjustment:!1,settlementAsClose:!0,sessionId:"regular",sessVis:!1,statusViewStyle:{fontSize:16,showExchange:!0,showInterval:!0,symbolTextSource:"description"},candleStyle:{drawWick:!0,drawBorder:!0,barColorsOnPrevClose:!1,drawBody:!0},volCandlesStyle:{drawWick:!0,drawBorder:!0,barColorsOnPrevClose:!1,drawBody:!0},hollowCandleStyle:{drawWick:!0,drawBorder:!0,drawBody:!0},haStyle:{drawWick:!0,drawBorder:!0,showRealLastPrice:!1,barColorsOnPrevClose:!1,inputs:{},inputInfo:{},drawBody:!0},barStyle:{barColorsOnPrevClose:!1,dontDrawOpen:!1,thinBars:!0},hiloStyle:{showBorders:!0,showLabels:!0,drawBody:!0},columnStyle:{barColorsOnPrevClose:!0,priceSource:"close",baselinePosition:"bottom"},lineStyle:{linestyle:s.LINESTYLE_SOLID,linewidth:2,priceSource:"close"},tpoStyle:{},svpStyle:{},lineWithMarkersStyle:{linestyle:s.LINESTYLE_SOLID,linewidth:2,priceSource:"close"},steplineStyle:{linestyle:s.LINESTYLE_SOLID,linewidth:2,priceSource:"close"},areaStyle:{linestyle:s.LINESTYLE_SOLID,linewidth:2,priceSource:"close"},hlcAreaStyle:{highLineVisible:!0,highLineStyle:s.LINESTYLE_SOLID,highLineWidth:2,lowLineVisible:!0,lowLineStyle:s.LINESTYLE_SOLID,lowLineWidth:2,closeLineStyle:s.LINESTYLE_SOLID,closeLineWidth:2},priceAxisProperties:{autoScale:!0,autoScaleDisabled:!1,lockScale:!1,percentage:!1,percentageDisabled:!1,indexedTo100:!1,log:!1,logDisabled:!1,isInverted:!1,alignLabels:!0},renkoStyle:{inputs:{source:"close",sources:"Close",boxSize:3,style:"ATR",atrLength:14,percentageLTP:1,wicks:!0},inputInfo:{source:{name:"Source"},sources:{name:"Source"},boxSize:{name:"Box size"},style:{name:"Style"},atrLength:{name:"ATR length"},percentageLTP:{name:"Percentage"},wicks:{name:"Wicks"}}},pbStyle:{inputs:{source:"close",lb:3},inputInfo:{source:{name:"Source"},lb:{name:"Number of line"}}},kagiStyle:{inputs:{source:"close",style:"ATR",atrLength:14,percentageLTP:1,reversalAmount:1},inputInfo:{source:{name:"Source"},style:{name:"Style"},atrLength:{name:"ATR length"},percentageLTP:{name:"Percentage"},reversalAmount:{name:"Reversal amount"}}},pnfStyle:{inputs:{sources:"Close",reversalAmount:3,boxSize:1,style:"ATR",atrLength:14,percentageLTP:1,oneStepBackBuilding:!1},inputInfo:{sources:{name:"Source"},boxSize:{name:"Box size"},reversalAmount:{name:"Reversal amount"},style:{name:"Style"},atrLength:{name:"ATR length"},percentageLTP:{name:"Percentage"},oneStepBackBuilding:{name:"One step back building"}}},baselineStyle:{topLineWidth:2,bottomLineWidth:2,topLineStyle:s.LINESTYLE_SOLID,bottomLineStyle:s.LINESTYLE_SOLID,priceSource:"close",transparency:50,baseLevelPercentage:50},rangeStyle:{barStyle:o.RangeBarStyle.Bars,thinBars:!0,inputs:{range:10,phantomBars:!1},inputInfo:{range:{name:"Range"},phantomBars:{name:"Phantom bars"}}},volFootprintStyle:{},hlcBarsStyle:{barColorsOnPrevClose:!1,thinBars:!0}}},73773:(e,t,i)=>{"use strict";i.d(t,{SeriesSingleLinePaneView:()=>d});var s=i(69708),o=i(10555),n=i(50151),r=i(37103),a=i(13173),l=i(5471),c=i(2383),h=i(12217);class d{constructor(e,t){ this._items=[],this._invalidated=!0,this._isMarkersEnabled=(0,r.enabled)("source_selection_markers"),this._selectionData=null,this._source=e,this._model=t,this._selectionIndexer=new a.SelectionIndexes(t.timeScale())}update(){this._invalidated=!0}_updateImpl(){this._items=[];const e=this._model.timeScale(),t=this._source.priceScale();if(e.isEmpty()||!t||t.isEmpty())return;const i=e.visibleBarsStrictRange();if(null===i)return;if(0===this._source.bars().size())return;const r=this._source.nearestIndex(i.firstBar()-1,l.PlotRowSearchMode.NearestLeft)??i.firstBar()-1,a=this._source.nearestIndex(i.lastBar()+1,l.PlotRowSearchMode.NearestRight)??i.lastBar()+1,d=this._source.barFunction(),u=this._model.timeScale().barSpacing();if(u<.1&&this._source.supportsConflatedChunks()){const e=this._source.conflatedChunks(u,(0,n.ensureNotNull)(this._source.priceSource())),t=(0,h.lowerbound)(e,r,((e,t)=>e.startTimee.endTime{this._items.push({timePointIndex:t.startTime,y:e,left:NaN,center:NaN,right:NaN})}))}}else for(const{index:e,value:t}of this._source.bars().rangeIterator(r,a)){const i=d(t);(0,s.default)(i)&&this._items.push({timePointIndex:e,y:i,left:NaN,center:NaN,right:NaN})}const _=this._source.firstValue();if(null!==_)if(t.pointsArrayToCoordinates(this._items,_),e.fillBarBorders(this._items),this._model.selection().isSelected(this._source)){const i=this._selectionIndexer.indexes();this._selectionData={points:[],bgColors:[],visible:!0,barSpacing:e.barSpacing(),hittestResult:c.HitTarget.Regular};const s=(0,n.ensureNotNull)(this._model.paneForSource(this._source)).height();this._selectionData.hittestResult=c.HitTarget.Regular;for(let n=0;n{"use strict";i.d(t,{RangeBarStyle:()=>y,areaStylePreferencesDefault:()=>c,barStylePreferencesDefault:()=>r,baselineStylePreferencesDefault:()=>d,candleStylePreferencesDefault:()=>o,columnStylePreferencesDefault:()=>S,haStylePreferencesDefault:()=>_,hiloStylePreferencesDefault:()=>u,hlcAreaStylePreferencesDefault:()=>h,hlcBarsStylePreferencesDefault:()=>a,hollowCandlePreferencesStyleDefault:()=>n,kagiStylePreferencesDefault:()=>g,lineStyleDefault:()=>l,pbStylePreferencesDefault:()=>m,pnfStylePreferencesDefault:()=>f,rangeStylePreferencesDefault:()=>v,renkoStylePreferencesDefault:()=>p});var s=i(93201);const o={upColor:"",downColor:"",drawWick:!1,drawBorder:!1,drawBody:!0,borderColor:"",borderUpColor:"",borderDownColor:"",wickColor:"",wickUpColor:"",wickDownColor:"",barColorsOnPrevClose:!1},n={upColor:"",downColor:"",drawWick:!1,drawBorder:!1,drawBody:!0,borderColor:"",borderUpColor:"",borderDownColor:"", wickColor:"",wickUpColor:"",wickDownColor:""},r={upColor:"",downColor:"",barColorsOnPrevClose:!1,dontDrawOpen:!1,thinBars:!0},a={color:"",thinBars:!0},l={color:"",linestyle:0,linewidth:0,colorType:s.ColorType.Gradient,gradientStartColor:"",gradientEndColor:""},c={color1:"",color2:"",linecolor:"",linestyle:0,linewidth:0,transparency:0},h={highLineVisible:!0,highLineColor:"",highLineStyle:0,highLineWidth:0,lowLineVisible:!0,lowLineColor:"",lowLineStyle:0,lowLineWidth:0,closeLineColor:"",closeLineStyle:0,closeLineWidth:0,highCloseFillColor:"",closeLowFillColor:""},d={topFillColor1:"",topFillColor2:"",bottomFillColor1:"",bottomFillColor2:"",topLineColor:"",bottomLineColor:"",baselineColor:"",topLineWidth:0,bottomLineWidth:0,topLineStyle:0,bottomLineStyle:0,transparency:0,baseLevelPercentage:0},u={color:"",showBorders:!1,borderColor:"",showLabels:!1,labelColor:"",drawBody:!0},_={upColor:"",downColor:"",drawWick:!1,drawBorder:!1,drawBody:!0,borderColor:"",borderUpColor:"",borderDownColor:"",wickColor:"",wickUpColor:"",wickDownColor:"",showRealLastPrice:!1,barColorsOnPrevClose:!1,inputs:{}},p={upColor:"",downColor:"",borderUpColor:"",borderDownColor:"",upColorProjection:"",downColorProjection:"",borderUpColorProjection:"",borderDownColorProjection:"",wickUpColor:"",wickDownColor:"",inputs:{boxSize:0,style:"",atrLength:0,percentageLTP:0,wicks:!1,sources:"",source:""}},m={upColor:"",downColor:"",borderUpColor:"",borderDownColor:"",upColorProjection:"",downColorProjection:"",borderUpColorProjection:"",borderDownColorProjection:"",inputs:{source:"",lb:0}},g={upColor:"",downColor:"",upColorProjection:"",downColorProjection:"",inputs:{style:"",atrLength:0,percentageLTP:0,reversalAmount:0}},f={upColor:"",downColor:"",upColorProjection:"",downColorProjection:"",inputs:{reversalAmount:0,boxSize:0,style:"",atrLength:0,percentageLTP:0,oneStepBackBuilding:!1,sources:"Close"}};var y;!function(e){e[e.Bars=0]="Bars",e[e.Candles=1]="Candles"}(y||(y={}));const v={barStyle:0,upColor:"",downColor:"",upColorProjection:"",downColorProjection:"",thinBars:!1,candlesUpColor:"",candlesDownColor:"",candlesBorderUpColor:"",candlesBorderDownColor:"",candlesWickUpColor:"",candlesWickDownColor:"",inputs:{range:0,phantomBars:!1}},S={upColor:"",downColor:"",barColorsOnPrevClose:!1,baselinePosition:"bottom"}},11768:(e,t,i)=>{"use strict";i.d(t,{SeriesTableViewValuesProvider:()=>a,fillSymbolSourceValuesProviderItemsVisibility:()=>r});var s=i(3885),o=i(95059),n=i(31789);function r(e,t,i,s){const r=12!==i,a=s.properties().childs().paneProperties.childs().legendProperties.childs(),l=12!==i&&16!==i&&21!==i,c=12!==i,h=(0,o.isPriceSourceStyle)(i),d=!h;e[5].visible=!1;const u=s.mainSeries().intervalObj().value().is1Tick();e[0].visible=d&&l&&!u,e[1].visible=d&&!u,e[2].visible=d&&!u,e[3].visible=d&&c,e[6].visible=a.showBarChange.value()&&r,e[4].visible=h,e[4].title=t?n.priceSourceTitles[t]:""}class a{constructor(e,t){this._model=t,this._series=e,this._valuesProvider=new s.SeriesValuesProvider(e,t,!1)}getItems(){ -const e=this._valuesProvider.getItems(),t=this._series.style();r(e,this._series.priceSource(),t,this._model);const i=this._model.properties().childs().paneProperties.childs().legendProperties.childs();return e[8].visible=!1,e[7].visible=i.showVolume.value(),e}getValues(e){const t=this._series.bars().lastIndex();return null===t||t{"use strict";i.d(t,{getErrorFromUnsupportedResolutionState:()=>c,getResolutionUnsupportedReason:()=>h});var s=i(11542),o=i(46082),n=i(87296);const r=s.t(null,void 0,i(64818)),a=s.t(null,void 0,i(80254)),l=s.t(null,void 0,i(80185));function c(e,t=!1){const i=t?`${e.ticker}`:e.ticker;switch(e.reason){case"unsupported_resolution":{const s=t?`${e.supportedResolutions.join(", ")}`:e.supportedResolutions.join(", ");return r.format({ticker:i,availableResolutions:s})}case"unsupported_ticks":return a.format({ticker:i});case"less_than_frequency":{const s=t?`${e.applicableResolution}`:e.applicableResolution;return l.format({ticker:i,resolution:s})}}}function h(e,t){if(null===e)return null;const i=e.data_frequency;if(void 0!==i){if((0,n.getApplicableIntervalForFrequency)(i,t)!==t)return"less_than_frequency"}if(o.Interval.isIntraday(t)&&!e.has_intraday)return"unsupported_resolution";if(o.Interval.isTicks(t)&&!e["is-tickbars-available"])return"unsupported_ticks";{const i=o.Interval.isSeconds(t)&&!e.has_seconds,s=o.Interval.isDays(t)&&!e.has_daily,n=o.Interval.isTicks(t)&&!e?.supported_resolutions?.includes(t);if(i||s||n)return"unsupported_resolution"}return null}},3885:(e,t,i)=>{"use strict";i.d(t,{SeriesValuesProvider:()=>M,calculateColor:()=>P,changesData:()=>x});var s=i(50151),o=i(50335),n=i(24377),r=i(11542),a=i(49483),l=i(52859),c=i(24640),h=i(5471),d=i(78861),u=i(56265),_=i(70859);function p(e,t){return 100*(t-e)/Math.abs(e||1)}var m=i(63903),g=i(11946),f=i(53660),y=i(17161);const v=y.lastDayChangeAvailable||y.alwaysShowLastPriceAndLastDayChange,S=a.CheckMobile.any(),b=(0,u.getPercentageFormatter)(),w=(0,u.getVolumeFormatter)(2),C=`${f.notAvailable} (${f.notAvailable}%)`;var T;function P(e,t){const i=(0,n.parseRgb)(t),s=(0,n.parseRgb)(e);return(0,n.distanceRgb)(i,s)<70?(0,n.rgbToHexString)((0,n.invertRgb)(i)):t}function x(e,t,i,s,o){let n,r;if(null!==t){const e=o[4],i=t.change||0;r={change:i,currentPrice:e,prevPrice:e-i,percentChange:t.change_percent||0}}const a=i[4],l=e.search(s-1,h.PlotRowSearchMode.NearestLeft,1),c=l?.value[4]??null;return null!==c&&null!=a&&(n={change:a-c,currentPrice:a,prevPrice:c,percentChange:p(c,a)}),{barChange:n,lastDayChange:r}}!function(e){e[e.Open=0]="Open",e[e.High=1]="High",e[e.Low=2]="Low",e[e.Close=3]="Close",e[e.Source=4]="Source",e[e.LastPrice=5]="LastPrice",e[e.Change=6]="Change",e[e.Volume=7]="Volume",e[e.LastDayChange=8]="LastDayChange"}(T||(T={}));class M{constructor(e,t,s=!0){this._series=e,this._model=t,this._searchNearestLeftValue=s,this._emptyValues=[{title:r.t(null,void 0,i(16610)),visible:!1,value:"",index:0,orderIndex:0,id:"open"},{title:r.t(null,void 0,i(78254)),visible:!1, -value:"",index:1,orderIndex:1,id:"high"},{title:r.t(null,void 0,i(65318)),visible:!1,value:"",index:2,orderIndex:2,id:"low"},{title:r.t(null,{context:"input"},i(51408)),visible:!1,value:"",index:3,orderIndex:3,id:"close"},{title:"",visible:!1,value:"",index:4,orderIndex:4,id:"source"},{title:"",visible:!1,value:"",index:5,orderIndex:5,id:"lastPrice"},{title:r.t(null,void 0,i(37276)),visible:!1,value:"",index:6,orderIndex:6,id:"change"},{title:r.t(null,{context:"study"},i(24261)),visible:!1,value:"",index:7,orderIndex:7,id:"volume"},{title:r.t(null,void 0,i(63815)),visible:!1,value:"",index:8,orderIndex:8,id:"lastDayChange"}]}getItems(){return this._emptyValues}getValues(e){const t=this._showLastPriceAndChangeOnly(),i=this._emptyValues.map(((e,i)=>({...e,value:6===i||8===i?C:f.notAvailable,visible:5!==i&&4!==i&&!t})));if(this._model.timeScale().isEmpty()||0===this._series.bars().size()||this._series.priceScale().isEmpty())return i;const n=(0,s.ensureNotNull)(this._series.data().bars().last());(0,o.isNumber)(e)||(e=n.index);const r=this._searchNearestLeftValue?h.PlotRowSearchMode.NearestLeft:h.PlotRowSearchMode.Exact,a=this._series.nearestIndex(e,r);if(void 0===a)return i;const d=this._series.data().valueAt(a),u=this._model.backgroundTopColor().value();if(null===d)return i;const _=d[1],p=d[2],g=d[3],y=d[4],{barChange:S,lastDayChange:T}=x(this._series.data(),this._series.quotes(),d,a,n.value),M=(0,m.getPriceValueFormatterForSource)(this._series);if((0,m.shouldBeFormattedAsPercent)(this._series)||(0,m.shouldBeFormattedAsIndexedTo100)(this._series))i[6].value="",i[8].value="";else{const e=this._series.formatter(),t={signPositive:!0};if(void 0!==S){const{currentPrice:s,prevPrice:o,change:n,percentChange:r}=S,a=e.formatChange?.(s,o,t)??e.format(n,t);i[6].value=(0,c.forceLTRStr)(`${a} (${b.format(r,t)})`)}if(void 0!==T){const{currentPrice:s,prevPrice:o,change:n,percentChange:r}=T,a=e.formatChange?.(s,o,t)??e.format(n,t);i[8].value=(0,c.forceLTRStr)(`${a} (${b.format(r,t)})`)}}let I=null;if(t)i[5].value=null==y?f.notAvailable:M(y),i[5].visible=!0,I=this._getChangeColor(S?.change,a),i[6].visible=void 0!==S,i[8].visible=void 0!==T||v;else{i[0].value=null==_?f.notAvailable:M(_),i[1].value=null==p?f.notAvailable:M(p),i[2].value=null==g?f.notAvailable:M(g),i[3].value=null==y?f.notAvailable:M(y),i[4].value=M(this._series.barFunction()(d));const e=d[5];(0,o.isNumber)(e)?i[7].value=w.format(e):i[7].visible=!1;const t=this._series.intervalObj().value().is1Tick(),s=21!==this._series.style();i[0].visible=!t&&s,i[1].visible=!t,i[2].visible=!t,i[8].visible=void 0!==T||v,i[6].visible=void 0!==S;const n=this._series.barColorer().barStyle(a,!1);I=P(u,n.barBorderColor??n.barColor)}I=(0,l.resetTransparency)(P(u,I));for(const e of i)e.color||(e.color=I);return i[8].visible&&(i[8].color=(0,l.resetTransparency)(P(u,this._getChangeColor(T?.change,n.index)))),i}_mobileNonTrackingMode(){return S&&(null===this._model.crosshairSource().pane||(0,g.isLineToolName)(d.tool.value())||null!==this._model.lineBeingEdited())}_showLastPriceAndChangeOnly(){ -return y.alwaysShowLastPriceAndLastDayChange||this._mobileNonTrackingMode()}_getChangeColor(e,t){const i=this._series.style();if(2===i||15===i||14===i)return this._series.barColorer().barStyle(t,!1).barColor;const s=void 0===e||e>=0?_.SeriesBarColorer.upColor(this._series.properties()):_.SeriesBarColorer.downColor(this._series.properties());return s.barBorderColor??s.barColor}}},57511:(e,t,i)=>{"use strict";i.d(t,{sessionsPreferencesDefault:()=>o});var s=i(58978);const o={sessionHighlight:{backgrounds:{preMarket:{color:"#FF9800",transparency:92},postMarket:{color:s.colorsPalette["color-tv-blue-500"],transparency:92},electronic:{color:s.colorsPalette["color-tv-blue-500"],transparency:92},outOfSession:{color:s.colorsPalette["color-tv-blue-500"],transparency:92}},vertlines:{sessBreaks:{color:"#4985e7",style:2,visible:!1,width:1}}}}},42516:(e,t,i)=>{"use strict";i.d(t,{sourcesAffectState:()=>n});var s=i(97217),o=i(13896);function n(e){return!o.lineToolsDoNotAffectChartInvalidation||e.some((e=>!(0,s.isLineTool)(e)))}},52479:(e,t,i)=>{"use strict";i.d(t,{StatusProviderBase:()=>s});class s{size(){return"13px"}bold(){return!1}titleTooltip(){}}},13651:(e,t,i)=>{"use strict";i.d(t,{StatusView:()=>s});class s{constructor(e){this._text="",this._color="",this._size="13px",this._bold=!1,this._statusProvider=e}text(){return this._text}getSplitTitle(){return[this._text]}getInputsTitles(){return null}titleTooltip(){return this._statusProvider.titleTooltip()}bold(){return this._bold}size(){return this._size}}},23502:(e,t,i)=>{"use strict";i.d(t,{prepareStudyProperties:()=>w,prepareStudyPropertiesForLoadChart:()=>g});var s=i(16738),o=i(30551),n=i(9343),r=i(87465),a=i(19844),l=i(69558),c=i(60973),h=i(15219),d=i(37293),u=i(78176),_=i(97719),p=i(4359);const m=(0,n.getLogger)("Chart.Study");function g(e,t,i,o,n,l){return function(e,t,i,o,n,l,h){const d=function(e,t,i,o,n){e.version&&i.version&&e.version!==i.version&&m.logWarn("Serialized metaInfo version "+e.version+" is not equal to the saved state version "+i.version);const l=t||e,h=(0,r.clone)(l.defaults)??{},d=a.StudyMetaInfo.getStudyPropertyRootName(l),u=a.StudyMetaInfo.getStudyPropertyRootName(e);let _=y();(0,s.default)(_,f(e)),(0,s.default)(_,(0,r.clone)(e.defaults)),(0,s.default)(_,h),(0,s.default)(_,(0,c.factoryDefaults)(d)),(0,s.default)(_,(0,c.factoryDefaults)(u)),(0,s.default)(_,v(l,o,d)),(0,s.default)(_,v(e,o,u)),(0,s.default)(_,i),_=o.updateStudyState(_,e,t),void 0!==n&&t&&(_=n(i,_,e,t));a.StudyMetaInfo.versionOf(l)>=1&&(0,s.default)(_,S(h,_));return _}(e,t,i,o,l);return T(t||e,n,d,h,!0)}(e,t,i,o,a.StudyMetaInfo.getStudyPropertyRootName(e),n,l)}function f(e){const t={};if(e.plots)for(let i=0;i= 1");const l=a.StudyMetaInfo.getStudyPropertyRootName(e),h=(0,r.clone)(e.defaults),d=(0,c.factoryDefaults)(l),u=y();if((0,s.default)(u,f(e)),(0,s.default)(u,h),(0,s.default)(u,d),(0,s.default)(u,v(e,n,l)),(0,s.default)(u,t),(0,s.default)(u,S(h,u)),null!==i){const t=i.model().studiesColorRotatorFactory().getColorRotator(e);null!==t&&("Overlay@tv-basicstudies"===e.id?u.lineStyle.color=t.getColor(u.lineStyle.color,d.lineStyle.color===u.lineStyle.color):(0,s.default)(u,function(e,t){for(const i of Object.keys(e.styles)){const s=e.styles[i];if((0,o.isObject)(s)&&"color"in s){const e=s.color;s.color=t.getColor(e)}}return e}(u,t)))}return n.updateStudyInputsIfNeeded(u,u.version??e.version,e),u}function w(e,t,i,s,o){return function(e,t,i,s,o,n){const l=b(e,t,i,s),c=a.StudyMetaInfo.getSourceInputIds(e);return c.forEach(((e,t)=>{const i=l.inputs[e];t{"use strict";i.d(t,{containsBackgroundTimePointIndexes:()=>r,dematerializeBackground:()=>l,isBackgroundInBarsRange:()=>c,materializeBackground:()=>a});var s=i(50151),o=i(82284),n=i(33952);const r=!0;function a(e,t){if(e.start>=t.length||e.stop>=t.length)return null;const i=t[e.start],n=t[e.stop];return n===o.INVALID_TIME_POINT_INDEX?null:((0,s.assert)(i===o.INVALID_TIME_POINT_INDEX||i<=n,"start should not exceed stop"),{start:i===o.INVALID_TIME_POINT_INDEX?null:i,stop:n})}function l(e,t,i){return{id:t,start:(0,n.ensureTimePointIndexIndex)(i.indexOf(null!==e.start?e.start:o.INVALID_TIME_POINT_INDEX)),stop:(0,n.ensureTimePointIndexIndex)(i.indexOf(e.stop))}}function c(e,t){if(null===e.start)return t.firstBar()<=e.stop;const i=Math.min(e.start,e.stop),s=Math.max(e.start,e.stop);return t.contains(i)||t.contains(s)||it.lastBar()}},45530:(e,t,i)=>{"use strict";i.d(t,{LiveStudyGraphics:()=>r.LiveStudyGraphics,createGraphicsPaneViews:()=>_,createGraphicsPriceAxisViews:()=>m,emptyStudyGraphics:()=>n.emptyStudyGraphics,isStudyGraphicsEmpty:()=>o.isStudyGraphicsEmpty,loadStudyGraphics:()=>n.loadStudyGraphics,saveStudyGraphics:()=>n.saveStudyGraphics});var s=i(9343),o=i(82130),n=i(39488),r=i(24437),a=i(36281),l=i(52859);class c extends a.PriceAxisView{constructor(e,t){super(),this._source=e,this._data=t}_updateRendererData(e,t,i){e.visible=!1;const s=this._source.priceScale(),o=this._source.properties().childs(),n=o.visible.value();if(!s||s.isEmpty()||!n)return;const r=o.graphics.childs()[this._data.lineType]?.childs()[this._data.styleId]?.childs();if(!(void 0!==r&&r.visible&&r.visible.value()&&r.showPrice&&r.showPrice.value()&&this._isLabelVisibleAccordinglyToProperties()))return;const a=this._source.firstValue();if(null===a)return;const c=this._data.line.level,h=(0,l.resetTransparency)(r.color.value());i.background=h,i.textColor=this.generateTextColor(h),i.coordinate=s.priceToCoordinate(c,a),e.text=s.formatPrice(c,a,{signPositive:s.isPercentage()}),e.visible=!0}_isLabelVisibleAccordinglyToProperties(){return!!this._source.model().properties().childs().scalesProperties.childs().showStudyLastValue.value()&&this._source.properties().childs().showLabelsOnPriceScale.value()}}const h=(0,s.getLogger)("Chart.StudyGraphics"),d=new Set(["dwgtablecells","tpoBlockSets","tpoLevels","tpoVolumeRows","logs","performance"]);async function u(e,t,s,o){const n=e=>({regularPaneView:new e(t,s,o)});switch(e){case"hhists":return n((await i.e(507).then(i.bind(i,70588))).HHistPaneView);case"horizlines":return n((await i.e(507).then(i.bind(i,65212))).HorizLinePaneView);case"vertlines":return n((await i.e(507).then(i.bind(i,14832))).VertLinePaneView);case"polygons":return n((await i.e(507).then(i.bind(i,94053))).PolygonPaneView);case"backgrounds":return n((await i.e(507).then(i.bind(i,97173))).BackgroundPaneView)}return null}async function _(e,t,i){ -const s=[],o=[],n=Object.keys(e.graphicsInfo());n.sort(((e,t)=>p(e)-p(t)));for(const r of n){const n=await u(r,e,t,i);null!==n?(s.push(n.regularPaneView),n.forceOverlayPaneView&&o.push(n.forceOverlayPaneView)):d.has(r)||h.logWarn(`${r} is not supported by this build of graphics subsystem, skipping`)}return{regularPaneViews:s,forceOverlayPaneViews:o}}function p(e){return o.primitivesZOrders.get(e)??0}function m(e){const t=Object.keys(e.graphicsInfo()),i=[];for(const s of t)switch(s){case"hlines":e.graphics().hlines().forEach(((t,o)=>{t.forEach((t=>{void 0!==t.level&&i.push(new c(e,{line:{level:t.level},styleId:o,lineType:s}))}))}));break;case"horizlines":e.graphics().horizlines().forEach(((t,o)=>{t.forEach((t=>{void 0!==t.level&&i.push(new c(e,{line:{level:t.level},styleId:o,lineType:s}))}))}))}return i}},99481:(e,t,i)=>{"use strict";i.d(t,{HHistDirection:()=>s,HHistLocation:()=>o,HHistVolumeMode:()=>n,containsHHistTimePointIndexes:()=>c,dematerializeHHist:()=>d,isHHistInBarsRange:()=>u,materializeHHist:()=>h});var s,o,n,r=i(50151),a=i(82284),l=i(33952);!function(e){e.LeftToRight="left_to_right",e.RightToLeft="right_to_left"}(s||(s={})),function(e){e.Relative="relative",e.Absolute="absolute"}(o||(o={})),function(e){e.UpDown="Up/Down",e.Total="Total",e.Delta="Delta"}(n||(n={}));const c=!0;function h(e,t){if(e.lastBarTime>=t.length)return null;const i=t[e.firstBarTime],s=t[e.lastBarTime];return s===a.INVALID_TIME_POINT_INDEX?null:((0,r.assert)(i<=s,"firstBarTime should not exceed lastBarTime"),(0,r.assert)(e.priceLow<=e.priceHigh,"priceLow should not exceed priceHigh"),{firstBarTime:i===a.INVALID_TIME_POINT_INDEX?null:i,lastBarTime:s,rate:e.rate,priceHigh:e.priceHigh,priceLow:e.priceLow})}function d(e,t,i){const s=(0,l.ensureTimePointIndexIndex)(i.indexOf(e.firstBarTime??a.INVALID_TIME_POINT_INDEX)),o=(0,l.ensureTimePointIndexIndex)(i.indexOf(e.lastBarTime));return{id:t,...e,firstBarTime:s,lastBarTime:o}}function u(e,t){const i=Math.min(e.firstBarTime??a.INVALID_TIME_POINT_INDEX,e.lastBarTime),s=Math.max(e.firstBarTime??a.INVALID_TIME_POINT_INDEX,e.lastBarTime);return t.contains(i)||t.contains(s)||it.lastBar()}},60661:(e,t,i)=>{"use strict";i.d(t,{containsHorizLineTimePointIndexes:()=>r,dematerializeHorizLine:()=>l,isHorizLineInBarsRange:()=>c,materializeHorizLine:()=>a});var s=i(50151),o=i(82284),n=i(33952);const r=!0;function a(e,t){if(e.startIndex>=t.length||e.endIndex>=t.length)return null;const i=t[e.startIndex],n=t[e.endIndex];return n===o.INVALID_TIME_POINT_INDEX?null:((0,s.assert)(i<=n,"startIndex should not exceed endIndex"),{startIndex:i===o.INVALID_TIME_POINT_INDEX?null:i,endIndex:n,level:e.level,extendLeft:e.extendLeft,extendRight:e.extendRight})}function l(e,t,i){const s=(0,n.ensureTimePointIndexIndex)(i.indexOf(e.startIndex??o.INVALID_TIME_POINT_INDEX)),r=(0,n.ensureTimePointIndexIndex)(i.indexOf(e.endIndex));return{id:t,...e,startIndex:s,endIndex:r}}function c(e,t){if(null===e.startIndex)return t.firstBar()<=e.endIndex -;const i=Math.min(e.startIndex,e.endIndex),s=Math.max(e.startIndex,e.endIndex);if(t.contains(i)||t.contains(s)||it.lastBar())return!0;const o=e.startIndext.lastBar()&&o}},24437:(e,t,i)=>{"use strict";i.d(t,{LiveStudyGraphics:()=>_});var s=i(50151),o=i(12217),n=i(48096),r=i(99481),a=i(60661),l=i(58554),c=i(30798),h=i(69866),d=i(82130),u=i(39488);class _{constructor(e={}){this._indexes=[],this._hhistsByTimePointIndex=new Map,this._primitivesCollection=function(e){const t={};for(const i of d.primitiveNames){t[i]=new Map;const s=e[i];if(void 0!==s)for(const e in s)if(s.hasOwnProperty(e))switch(i){case"horizlines":t[i].set(e,v.horizlines());break;case"vertlines":t[i].set(e,v.vertlines());break;case"backgrounds":t[i].set(e,v.backgrounds());break;case"polygons":t[i].set(e,v.polygons());break;case"hhists":t[i].set(e,v.hhists())}}0;return t}(e)}horizlines(){return this._primitivesCollection.horizlines}vertlines(){return this._primitivesCollection.vertlines}lines(){return this._primitivesCollection.lines}hlines(){return this._primitivesCollection.hlines}textmarks(){return this._primitivesCollection.textmarks}shapemarks(){return this._primitivesCollection.shapemarks}backgrounds(){return this._primitivesCollection.backgrounds}polygons(){return this._primitivesCollection.polygons}trendchannels(){return this._primitivesCollection.trendchannels}hhists(){return this._primitivesCollection.hhists}dwglabels(){return this._primitivesCollection.dwglabels}dwglines(){return this._primitivesCollection.dwglines}dwgpolylines(){return this._primitivesCollection.dwgpolylines}dwgboxes(){return this._primitivesCollection.dwgboxes}dwgtables(){return this._primitivesCollection.dwgtables}dwgtablecells(){return this._primitivesCollection.dwgtablecells}dwglinefills(){return this._primitivesCollection.dwglinefills}tpos(){return this._primitivesCollection.tpos}tpoBlockSets(){return this._primitivesCollection.tpoBlockSets}tpoLevels(){return this._primitivesCollection.tpoLevels}tpoVolumeRows(){return this._primitivesCollection.tpoVolumeRows}tpoSummaryInfo(){return this._primitivesCollection.tpoSummaryInfo}logs(){return this._primitivesCollection.logs}observableLogs(){return this._primitivesCollection.logs}performance(){return this._primitivesCollection.performance}observablePerformance(){return this._primitivesCollection.performance}footprints(){return this._primitivesCollection.footprints}footprintLevels(){return this._primitivesCollection.footprintLevels}hhistsByTimePointIndex(){return this._hhistsByTimePointIndex}clear(){this._indexes=[];for(const e of d.regularPrimitiveNames)this._primitivesCollection[e].forEach((e=>e.clear()));for(const e of d.groupedPrimitiveNames)this._primitivesCollection[e].forEach((e=>{e.forEach((e=>e.clear()))}));this._hhistsByTimePointIndex=new Map}extract(){const e={indexes:this._indexes,horizlines:g(this._primitivesCollection.horizlines),vertlines:g(this._primitivesCollection.vertlines), -lines:g(this._primitivesCollection.lines),hlines:g(this._primitivesCollection.hlines),textmarks:g(this._primitivesCollection.textmarks),shapemarks:g(this._primitivesCollection.shapemarks),backgrounds:g(this._primitivesCollection.backgrounds),polygons:g(this._primitivesCollection.polygons),trendchannels:g(this._primitivesCollection.trendchannels),hhists:g(this._primitivesCollection.hhists),dwglabels:f(this._primitivesCollection.dwglabels),dwglines:f(this._primitivesCollection.dwglines),dwgpolylines:f(this._primitivesCollection.dwgpolylines),dwgboxes:f(this._primitivesCollection.dwgboxes),dwgtables:f(this._primitivesCollection.dwgtables),dwgtablecells:g(this._primitivesCollection.dwgtablecells),dwglinefills:g(this._primitivesCollection.dwglinefills),tpos:g(this._primitivesCollection.tpos),tpoBlockSets:f(this._primitivesCollection.tpoBlockSets),tpoLevels:f(this._primitivesCollection.tpoLevels),tpoVolumeRows:f(this._primitivesCollection.tpoVolumeRows),tpoSummaryInfo:f(this._primitivesCollection.tpoSummaryInfo),logs:new Map,performance:new Map,footprints:g(this._primitivesCollection.footprints),footprintLevels:g(this._primitivesCollection.footprintLevels)};return this._hhistsByTimePointIndex=new Map,new u.StaticStudyGraphics("data",e)}replaceIndexesTo(e){this._indexes=e;const t=e=>e.replaceIndexesTo(this._indexes);for(const e of d.regularPrimitiveNames)this._primitivesCollection[e].forEach(t);for(const e of d.groupedPrimitiveNames)this._primitivesCollection[e].forEach((e=>{e.forEach(t)}));this._hhistsByTimePointIndex=(0,d.splitHHistsByTimePointIndex)(this._primitivesCollection.hhists)}processCommands(e){void 0!==e.erase&&this._processEraseCommands(e.erase),void 0!==e.create&&this._processCreateCommands(e.create)}_processCreateCommands(e){for(const t in e){if(!e.hasOwnProperty(t))continue;const i=t;switch(i){case"hhists":y(this._indexes,this._primitivesCollection.hhists,e[i]);break;case"horizlines":y(this._indexes,this._primitivesCollection.horizlines,e[i]);break;case"vertlines":y(this._indexes,this._primitivesCollection.vertlines,e[i]);break;case"polygons":y(this._indexes,this._primitivesCollection.polygons,e[i]);break;case"backgrounds":y(this._indexes,this._primitivesCollection.backgrounds,e[i])}}this._hhistsByTimePointIndex=(0,d.splitHHistsByTimePointIndex)(this._primitivesCollection.hhists)}_processEraseCommands(e){for(const t of e)if("all"===t.action){for(const e of d.regularPrimitiveNames)this._primitivesCollection[e].forEach((e=>e.clearPrimitives()));for(const e of d.groupedPrimitiveNames)this._primitivesCollection[e].forEach((e=>{e.forEach((e=>e.clearPrimitives()))}))}else{const e=e=>e.deleteById(t.id);(0,d.isRegularPrimiriveName)(t.type)?this._primitivesCollection[t.type].forEach(e):this._primitivesCollection[t.type].forEach((t=>{t.forEach(e)}))}this._hhistsByTimePointIndex=(0,d.splitHHistsByTimePointIndex)(this._primitivesCollection.hhists)}}class p{constructor(e,t){this._primitivesDataById=new Map,this._primitiveById=new Map,this._changed=new n.Delegate,this._cleared=new n.Delegate,this._materializePrimitive=e, -this._isRematerializationRequiredWithNewIndexes=t}changed(){return this._changed}cleared(){return this._cleared}forEach(e,t){this._primitiveById.forEach((i=>{e.call(t,i,i,this)}))}has(e){let t=!1;return this._primitiveById.forEach((i=>{t=t||i===e})),t}get size(){return this._primitiveById.size}[Symbol.iterator](){return this._primitiveById.values()}entries(){throw new Error("Not implemented")}keys(){throw new Error("Not implemented")}union(){throw new Error("Not implemented")}intersection(){throw new Error("Not implemented")}difference(){throw new Error("Not implemented")}symmetricDifference(){throw new Error("Not implemented")}isSubsetOf(){throw new Error("Not implemented")}isSupersetOf(){throw new Error("Not implemented")}isDisjointFrom(){throw new Error("Not implemented")}values(){return this._primitiveById.values()}hasId(e){return this._primitiveById.has(e)}addData(e,t){const i=[];e.forEach((e=>{this._primitivesDataById.set(e.id,e);const s=this._tryMaterialize(t,e);null!==s&&i.push(s)})),i.length>0&&this._changed.fire({created:i,removed:[]})}deleteById(e){const t=this._primitiveById.get(e);t&&(this._primitiveById.delete(e),this._primitivesDataById.delete(e),this._changed.fire({created:[],removed:[t]}))}clear(){this.clearPrimitives()}clearPrimitives(){this._primitivesDataById.clear(),this._primitiveById.clear(),this._cleared.fire()}replaceIndexesTo(e){if(!this._isRematerializationRequiredWithNewIndexes)return;const t=Array.from(this._primitiveById.values());this._primitiveById.clear(),this._primitivesDataById.forEach(this._tryMaterialize.bind(this,e),this);const i=Array.from(this._primitiveById.values());this._changed.fire({created:i,removed:t})}extract(){const e=new Set(this._primitivesDataById.values());return this.clearPrimitives(),e}_tryMaterialize(e,t){const i=this._materializePrimitive(t,e);return null!==i&&((0,s.assert)(!this._primitiveById.has(t.id),"primitive with specified id should not exist"),this._primitiveById.set(t.id,i)),i}}function m(e){const t=new Map;for(const[n,r]of e)t.set(n,(i=r,(s=t.get(n))?(0,o.join)(s,i.extract()):i.extract()));var i,s;return t}function g(e){return m((0,o.mapEntriesGenerator)(e))}function f(e){return m((0,o.nestedMapGenerator)(e))}function y(e,t,i=[]){for(const o of i){const i=o.styleId,n=t.get(i);(0,s.assert)(void 0!==n,"Every style used by graphics primitive should be declared in study metainfo"),n.addData(o.data,e)}}const v={horizlines:()=>new p(a.materializeHorizLine,a.containsHorizLineTimePointIndexes),vertlines:()=>new p(l.materializeVertLine,l.containsVertLineTimePointIndexes),lines:()=>new p(materializeLine,containsLineTimePointIndexes),hlines:()=>new p(materializeLevel,containsLevelTimePointIndexes),textmarks:()=>new p(materializeTextMark,containsTextMarkTimePointIndexes),shapemarks:()=>new p(materializeShapeMark,containsShapeMarkTimePointIndexes),backgrounds:()=>new p(h.materializeBackground,h.containsBackgroundTimePointIndexes),polygons:()=>new p(c.materializePolygon,c.containsPolygonTimePointIndexes), -trendchannels:()=>new p(materializeTrendChannel,containsTrendChannelTimePointIndexes),hhists:()=>new p(r.materializeHHist,r.containsHHistTimePointIndexes),dwglines:()=>new p(materializeDwgLine,containsDwgLineTimePointIndexes),dwglinefills:()=>new p(materializeDwgLineFill,containsDwgLineFillTimePointIndexes),dwglabels:()=>new p(materializeDwgLabel,containsDwgLabelTimePointIndexes),dwgtablecells:()=>new p(materializeDwgTableCell,containsDwgTableCellTimePointIndexes),dwgpolylines:()=>new p(materializeDwgPolyline,containsDwgPolylineTimePointIndexes),dwgboxes:()=>new p(materializeDwgBox,containsDwgBoxTimePointIndexes),dwgtables:()=>new p(materializeDwgTable,containsDwgTableTimePointIndexes),tpos:()=>new p(materializeTpo,containsTpoTimePointIndexes),tpoBlockSets:()=>new p(materializeTpoBlockSet,containsTpoBlockSetTimePointIndexes),tpoLevels:()=>new p(materializeTpoLevelGroup,containsTpoLevelGroupTimePointIndexes),tpoVolumeRows:()=>new p(materializeTpoVolumeRow,containsTpoVolumeRowTimePointIndexes),tpoSummary:()=>new p(materializeTpoSummary,containsTpoSummaryTimePointIndexes),logs:()=>new p(materializeLog,containsLogTimePointIndexes),footprints:()=>new p(materializeVolumeFootprint,containsFootprintTimePointIndexes),footprintLevels:()=>new p(materializeVolumeFootprintPriceLevel,containsFootprintPriceLevelTimePointIndexes)}},30798:(e,t,i)=>{"use strict";i.d(t,{containsPolygonTimePointIndexes:()=>n,dematerializePolygon:()=>a,isPolygonInBarsRange:()=>l,materializePolygon:()=>r});var s=i(82284),o=i(33952);const n=!0;function r(e,t){for(const i of e.points){if(i.index>=t.length)return null;if(t[i.index]===s.INVALID_TIME_POINT_INDEX)return null}return{points:e.points.map((e=>({index:t[e.index],offset:e.offset,level:e.level})))}}function a(e,t,i){return{id:t,points:e.points.map((e=>({...e,index:(0,o.ensureTimePointIndexIndex)(i.indexOf(e.index))})))}}function l(e,t){if(e.points.some((e=>t.contains(e.index+(e.offset??0)))))return!0;let i=!1,s=!1;const o=t.firstBar();for(const t of e.points)t.index+(t.offset??0){"use strict";function s(e){if(e<0)throw new Error("TimePointIndexIndex should be non-negative integer");return e}i.d(t,{ensureTimePointIndexIndex:()=>s})},39488:(e,t,i)=>{"use strict";i.d(t,{StaticStudyGraphics:()=>d,emptyStudyGraphics:()=>g,loadStudyGraphics:()=>f,saveStudyGraphics:()=>y});var s=i(82284),o=i(60661),n=i(58554),r=i(99481),a=i(30798),l=i(69866),c=i(82130),h=i(87465);class d{constructor(e,t){if(this._indexes=[],this._horizlines=new Map,this._vertlines=new Map,this._lines=new Map,this._hlines=new Map,this._textmarks=new Map,this._shapemarks=new Map,this._backgrounds=new Map,this._polygons=new Map,this._trendchannels=new Map,this._hhists=new Map,this._dwglabels=new Map,this._dwglines=new Map,this._dwgpolylines=new Map,this._dwgboxes=new Map,this._dwgtables=new Map,this._dwgtablecells=new Map,this._dwglinefills=new Map,this._tpos=new Map,this._tpoBlockSets=new Map,this._tpoLevelGroups=new Map,this._tpoVolumeRows=new Map,this._tpoSummaryInfo=new Map,this._logs=new Map, -this._performance=new Map,this._footprints=new Map,this._footprintLevels=new Map,"data"===e){const e=t;this._indexes=e.indexes,this._vertlines=u(e.vertlines,this._indexes,n.materializeVertLine),this._horizlines=u(e.horizlines,this._indexes,o.materializeHorizLine),this._polygons=u(e.polygons,this._indexes,a.materializePolygon),this._hhists=u(e.hhists,this._indexes,r.materializeHHist),this._backgrounds=u(e.backgrounds,this._indexes,l.materializeBackground)}else if("state"===e){const e=t;this._indexes=e.indexes||[],this._vertlines=_(e.vertlines,this._indexes,n.materializeVertLine),this._horizlines=_(e.horizlines,this._indexes,o.materializeHorizLine),this._polygons=_(e.polygons,this._indexes,a.materializePolygon),this._hhists=_(e.hhists,this._indexes,r.materializeHHist),this._backgrounds=_(e.backgrounds,this._indexes,l.materializeBackground)}this._hhistsByTimePointIndex=(0,c.splitHHistsByTimePointIndex)(this._hhists)}horizlines(){return this._horizlines}vertlines(){return this._vertlines}lines(){return this._lines}hlines(){return this._hlines}textmarks(){return this._textmarks}shapemarks(){return this._shapemarks}backgrounds(){return this._backgrounds}polygons(){return this._polygons}trendchannels(){return this._trendchannels}hhists(){return this._hhists}dwglabels(){return this._dwglabels}dwglines(){return this._dwglines}dwgpolylines(){return this._dwgpolylines}dwgboxes(){return this._dwgboxes}dwgtables(){return this._dwgtables}dwgtablecells(){return this._dwgtablecells}dwglinefills(){return this._dwglinefills}tpos(){return this._tpos}tpoBlockSets(){return this._tpoBlockSets}tpoLevels(e){return this._tpoLevelGroups}tpoVolumeRows(e){return this._tpoVolumeRows}tpoSummaryInfo(e){return this._tpoSummaryInfo}logs(){return this._logs}performance(){return this._performance}footprints(){return this._footprints}footprintLevels(){return this._footprintLevels}hhistsByTimePointIndex(){return this._hhistsByTimePointIndex}}function u(e,t,i){return new Map(Array.from(e.entries()).map((e=>[e[0],new Set(Array.from(e[1]).map((e=>i(e,t))).filter(h.notNull))])))}function _(e,t,i){const s=new Map;if(void 0===e)return s;for(const o of e){const e=o.styleId,n=s.get(e)||new Set;o.data.forEach((e=>{const s=i(e,t);null!==s&&n.add(s)})),s.set(e,n)}return s}function p(e,t,i){let s=null;for(const i of e)i.styleId===t&&(s=i);null===s&&(s={styleId:t,data:[]},e.push(s)),s.data.push(i)}function m(e,t,i,s,o,n){const r=[];return e.forEach(((e,a)=>{e.forEach((e=>{(null===o||s(e,o))&&p(r,a,n(e,t(e),i))}))})),r.length>0?r:void 0}function g(){return new d}function f(e){return new d("state",e)}function y(e,t){const i=function(e){const t=new Set,i=e=>{null!=e&&t.add(e)};e.horizlines().forEach(((e,i)=>{e.forEach((e=>{t.add(e.startIndex??s.INVALID_TIME_POINT_INDEX),t.add(e.endIndex)}))})),e.vertlines().forEach(((e,i)=>{e.forEach((e=>{t.add(e.index)}))})),e.lines().forEach(((e,i)=>{e.forEach((e=>{t.add(e.startIndex),t.add(e.endIndex)}))})),e.textmarks().forEach(((e,i)=>{e.forEach((e=>{t.add(e.time)}))})),e.shapemarks().forEach(((e,i)=>{e.forEach((e=>{t.add(e.time) -}))})),e.backgrounds().forEach(((e,i)=>{e.forEach((e=>{t.add(null!==e.start?e.start:s.INVALID_TIME_POINT_INDEX),t.add(e.stop)}))})),e.polygons().forEach(((e,i)=>{e.forEach((e=>{e.points.forEach((e=>{t.add(e.index)}))}))})),e.trendchannels().forEach(((e,i)=>{e.forEach((e=>{t.add(e.startIndex),t.add(e.endIndex)}))})),e.hhists().forEach(((e,i)=>{e.forEach((e=>{t.add(e.firstBarTime??s.INVALID_TIME_POINT_INDEX),t.add(e.lastBarTime)}))})),e.dwglabels().forEach((e=>{e.forEach((e=>{e.forEach((e=>{t.add(e.x)}))}))})),e.dwglines().forEach((e=>{e.forEach((e=>{e.forEach((e=>{t.add(e.x1??s.INVALID_TIME_POINT_INDEX),t.add(e.x2??s.INVALID_TIME_POINT_INDEX)}))}))})),e.dwgpolylines().forEach((e=>{e.forEach((e=>{e.forEach((e=>{for(const i of e.points)t.add(i.x??s.INVALID_TIME_POINT_INDEX)}))}))})),e.dwgboxes().forEach((e=>{e.forEach((e=>{e.forEach((e=>{t.add(e.left??s.INVALID_TIME_POINT_INDEX),t.add(e.right??s.INVALID_TIME_POINT_INDEX)}))}))})),e.tpos().forEach((e=>{e.forEach((e=>{t.add(e.firstBarTime),t.add(e.lastBarTime)}))})),e.tpoLevels().forEach((e=>{e.forEach((e=>{e.forEach((e=>{i(e.poorHighExtendTo),i(e.poorLowExtendTo),i(e.tpoPocExtendTo),(e.singleprints??[]).map((e=>e.extendTo)).map(i)}))}))})),e.footprints().forEach((e=>{e.forEach((e=>{t.add(e.index)}))})),e.footprintLevels().forEach((e=>{e.forEach((e=>{t.add(e.startIndex),i(e.extendTo)}))}));const o=Array.from(t);return o.sort(((e,t)=>e-t)),o}(e),c={indexes:i};let h=0;const d=()=>++h;return c.vertlines=m(e.vertlines(),d,i,n.isVertLineInBarsRange,t,n.dematerializeVertLine),c.horizlines=m(e.horizlines(),d,i,o.isHorizLineInBarsRange,t,o.dematerializeHorizLine),c.polygons=m(e.polygons(),d,i,a.isPolygonInBarsRange,t,a.dematerializePolygon),c.hhists=m(e.hhists(),d,i,r.isHHistInBarsRange,t,r.dematerializeHHist),c.backgrounds=m(e.backgrounds(),d,i,l.isBackgroundInBarsRange,t,l.dematerializeBackground),c}},18330:(e,t,i)=>{"use strict";var s,o,n,r;i.d(t,{HAlign:()=>o,LineStyle:()=>r,MarkLocation:()=>s}),function(e){e.AboveBar="AboveBar",e.BelowBar="BelowBar",e.Top="Top",e.Bottom="Bottom",e.Right="Right",e.Left="Left",e.Absolute="Absolute",e.AbsoluteUp="AbsoluteUp",e.AbsoluteDown="AbsoluteDown"}(s||(s={})),function(e){e.Left="left",e.Center="center",e.Right="right"}(o||(o={})),function(e){e.Top="top",e.Middle="middle",e.Bottom="bottom"}(n||(n={})),function(e){e[e.Solid=0]="Solid",e[e.Dotted=1]="Dotted",e[e.Dashed=2]="Dashed"}(r||(r={}))},82130:(e,t,i)=>{"use strict";i.d(t,{groupedPrimitiveNames:()=>n,hasForceOverlayPrimitives:()=>d,isRegularPrimiriveName:()=>a,isStudyGraphicsEmpty:()=>c,primitiveNames:()=>r,primitivesZOrders:()=>l,regularPrimitiveNames:()=>o,splitHHistsByTimePointIndex:()=>h});const s=["dwglines","dwgboxes","dwglabels","dwgpolylines","dwgtables"];const o=["horizlines","vertlines","lines","hlines","textmarks","shapemarks","backgrounds","polygons","trendchannels","hhists","dwgtablecells","dwglinefills","tpos","logs","performance","footprints","footprintLevels"],n=s.concat(["tpoBlockSets","tpoLevels","tpoVolumeRows","tpoSummaryInfo"]),r=o.concat(n);function a(e){ -return o.includes(e)}const l=new Map([["logs",-4],["performance",-4],["polygons",-4],["trendchannels",-3],["textmarks",-2],["shapemarks",-2],["backgrounds",-1],["footprints",1],["footprintLevels",1],["hlines",1],["horizlines",1],["hhists",1],["dwglinefills",2],["vertlines",3],["lines",3],["dwglines",3],["dwgpolylines",3],["dwgboxes",4],["dwglabels",5],["dwgtables",6],["dwgtablecells",6],["tpos",7],["tpoBlockSets",7],["tpoLevels",7],["tpoVolumeRows",7],["tpoSummaryInfo",1]]);function c(e){return!r.some((t=>{const i=e[t]();for(const[,e]of i)if(e.size>0)return!0;return!1}))}function h(e){const t=new Map;return e.forEach(((e,i)=>{e.forEach((e=>{const s={...e,styleId:i},o=e.firstBarTime;let n=t.get(o);void 0===n&&(n=new Set,t.set(o,n)),n.add(s)}))})),t}function d(e){return!!(e.graphics.dwglines||e.graphics.dwgboxes||e.graphics.dwglabels||e.graphics.dwgpolylines||e.graphics.dwgtables)}},58554:(e,t,i)=>{"use strict";i.d(t,{containsVertLineTimePointIndexes:()=>n,dematerializeVertLine:()=>a,isVertLineInBarsRange:()=>l,materializeVertLine:()=>r});var s=i(82284),o=i(33952);const n=!0;function r(e,t){if(e.index>=t.length)return null;const i=t[e.index];return i===s.INVALID_TIME_POINT_INDEX?null:{startPrice:e.startPrice,endPrice:e.endPrice,index:i,extendTop:e.extendTop,extendBottom:e.extendBottom}}function a(e,t,i){const s=(0,o.ensureTimePointIndexIndex)(i.indexOf(e.index));return{id:t,...e,index:s}}function l(e,t){return t.contains(e.index)}},40080:(e,t,i)=>{"use strict";var s,o,n;!function(e){e.BuyAndSell="Buy and sell",e.Delta="Delta",e.Total="Total",e.Ladder="Ladder"}(s||(s={})),function(e){e[e.Cluster=0]="Cluster",e[e.Profile=1]="Profile"}(o||(o={})),function(e){e[e.InfoBox=0]="InfoBox",e[e.Table=1]="Table"}(n||(n={}))},63681:(e,t,i)=>{"use strict";var s;i.d(t,{StudyStatusType:()=>s}),function(e){e[e.Undefined=0]="Undefined",e[e.Loading=1]="Loading",e[e.Completed=2]="Completed",e[e.Error=3]="Error"}(s||(s={}))},87163:(e,t,i)=>{"use strict";i.d(t,{makeNextStudyId:()=>r,makeNextSymbolId:()=>o});let s=0;function o(){return s++,"ss_"+s}let n=0;function r(){return n++,"st"+n}},43046:(e,t,i)=>{"use strict";i.d(t,{migrateMetaInfoAndPropState:()=>p});var s=i(50151),o=i(19844),n=i(87465);const r=["Moving Average@tv-basicstudies","Moving Average Exponential@tv-basicstudies"];class a{targetMetaInfoVersion(){return 53}migrateMetaInfo(e){const t=e;e._metainfoVersion=53,r.includes(t.id)}migratePropState(e){r.includes(e.id)&&(e.inputs.length=e.inputs.length??e.inputs.in_0,e.inputs.source=e.inputs.source??e.inputs.in_1,e.inputs.offset=e.inputs.offset??e.inputs.in_2,delete e.inputs.in_0,delete e.inputs.in_1,delete e.inputs.in_2,e.plots[1]={id:"smoothedMA",type:"line"},e.styles.smoothedMA={display:0,linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#0496ff",histogramBase:0,joinPoints:!1,title:"Smoothed MA"})}}const l=["Volume@tv-basicstudies"];class c{targetMetaInfoVersion(){return 53}migrateMetaInfo(e){const t=e;e._metainfoVersion=53,l.includes(t.id)}migratePropState(e){ -l.includes(e.id)&&(e.inputs.maLength=e.inputs.length??e.inputs.maLength,delete e.inputs.length,delete e.inputs.offset,delete e.inputs.source,e.plots[1]={id:"smoothedMA",type:"line"},e.styles.smoothedMA={display:0,linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#0496ff",histogramBase:0,joinPoints:!1,title:"Smoothed MA"})}}const h=["Relative Strength Index@tv-basicstudies","Commodity Channel Index@tv-basicstudies","On Balance Volume@tv-basicstudies"];class d{targetMetaInfoVersion(){return 53}migrateMetaInfo(e){const t=e,i=e;i._metainfoVersion=53,h.includes(t.id)&&(i.styles[t.id]={title:"Smoothed MA",histogramBase:0,joinPoints:!1})}migratePropState(e){h.includes(e.id)&&(e.plots[1]={id:"smoothedMA",type:"line"},e.styles.smoothedMA={display:0,linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#0496ff"})}}var u;!function(e){e[e.InMetaInfoVersion=52]="InMetaInfoVersion",e[e.OutMetaInfoVersion=53]="OutMetaInfoVersion"}(u||(u={}));const _=[new class{targetMetaInfoVersion(){return 47}migrateMetaInfo(e){const t=e,i=e;if(i._metainfoVersion=47,!t.defaults||void 0===t.defaults.precision)return void(i.format={type:"inherit"});const s=t.defaults&&t.defaults.precision,o=(0,n.isNumber)(s)?s:parseInt(s);0===o?i.format={type:"volume"}:isFinite(o)?i.format={type:"price",precision:o}:i.format={type:"inherit"},delete t.defaults.precision}migratePropState(e){}},new class{targetMetaInfoVersion(){return 50}migrateMetaInfo(e){const t=e,i=e;if(i._metainfoVersion=50,void 0===t.defaults||void 0===t.defaults.ohlcPlots||void 0===t.ohlcPlots)return;const o=t.ohlcPlots,n=t.defaults.ohlcPlots,r=(0,s.ensureDefined)((0,s.ensureDefined)(i.defaults).ohlcPlots);for(const e of Object.keys(n)){const t=n[e];if("ohlc_candles"===t.plottype){let i=!1;const s=o[e];void 0!==s&&(i=!!s.drawBorder,delete s.drawBorder),r[e]={borderColor:"#000000",drawBorder:i,...t}}}}migratePropState(e){}},new class{targetMetaInfoVersion(){return 53}migrateMetaInfo(e){const t=e,i=e;if(i._metainfoVersion=53,void 0!==t.defaults){if(void 0!==t.defaults.ohlcPlots&&void 0!==t.ohlcPlots){const e=Object.keys(t.ohlcPlots),o=t.defaults.ohlcPlots,n=(0,s.ensureDefined)((0,s.ensureDefined)(i.defaults).ohlcPlots);for(const t of e){const e=o[t];if(void 0===e||void 0===e.visible)continue;const i=e.visible?15:0;delete e.visible,n[t]={display:i,...e}}}if(void 0!==t.defaults.styles&&void 0!==t.plots){const e=t.plots.map((e=>e.id)),o=t.defaults.styles,n=(0,s.ensureDefined)((0,s.ensureDefined)(i.defaults).styles);for(const t of e){const e=o[t];if(void 0===e||void 0===e.visible)continue;const i=e.visible?15:0;delete e.visible,n[t]={display:i,...e}}}}}migratePropState(e){if(e.ohlcPlots)for(const t of Object.keys(e.ohlcPlots)){const i=(0,s.ensureDefined)(e.ohlcPlots[t]);void 0!==i.visible&&(i.display=i.visible?15:0,delete i.visible)}if(e.styles)for(const t of Object.keys(e.styles)){const i=(0,s.ensureDefined)(e.styles[t]);void 0!==i.visible&&(i.display=i.visible?15:0,delete i.visible)}}}];function p(e,t){const i=o.StudyMetaInfo.versionOf(e),n=e -;void 0===n._serverMetaInfoVersion&&(n._serverMetaInfoVersion=i);const r=["PennantCP@tv-basicstudies","WedgeCP@tv-basicstudies"].includes(e.id);_.forEach((o=>{(i<0||i>=o.targetMetaInfoVersion())&&!r||(o.migrateMetaInfo(e),void 0!==t&&o.migratePropState(t),(0,s.assert)(e._metainfoVersion===o.targetMetaInfoVersion()))}))}_.push(new a),_.push(new c),_.push(new d),_.sort((function(e,t){return e.targetMetaInfoVersion()-t.targetMetaInfoVersion()}))},93387:(e,t,i)=>{"use strict";i.d(t,{PaneRendererColumns:()=>n});var s=i(10307),o=i(2383);class n extends s.BitmapCoordinatesPaneRenderer{constructor(e){super(),this._data=null,this._precalculatedCache=[],this.setData(e)}setData(e){this._data=e,this._precalculatedCache=[]}hitTest(e){if(null===this._data)return null;const t=this._data.visibleItemsRange?.startItemIndex??0,i=(this._data.visibleItemsRange?.endItemIndex??this._data.items.length)-1;for(let s=t;s<=i;s++){const t=this._data.items[s];if(e.x>=t.left&&e.x<=t.right){const i=t.y;if(e.y>=Math.min(i,this._data.histogramBase)&&e.y<=Math.max(i,this._data.histogramBase))return new o.HitTestResult(o.HitTarget.Regular)}}return null}_drawImpl(e){if(null===this._data||0===this._data.items.length)return;const{context:t,horizontalPixelRatio:i,verticalPixelRatio:s}=e;this._precalculatedCache.length||this._fillPrecalculatedCache(i);const o=Math.max(1,Math.floor(i)),n=Math.max(1,Math.floor(s)),r=Math.round(this._data.histogramBase*s)-Math.floor(o/2),a=r+o,l=this._data.lineColor,c=this._data.visibleItemsRange?.startItemIndex??0,h=(this._data.visibleItemsRange?.endItemIndex??this._data.items.length)-1;for(let e=c;e<=h;e++){const i=this._data.items[e],o=this._precalculatedCache[e-c],h=Math.round(i.y*s);let d,u;t.fillStyle=i.style?i.style.color:l,h<=r?(d=h,u=a):(d=r,u=h-Math.floor(n/2)+n),t.fillRect(o.left,d,o.right-o.left+1,u-d)}}_fillPrecalculatedCache(e){if(null===this._data||0===this._data.items.length)return void(this._precalculatedCache=[]);const{barSpacing:t,visibleItemsRange:i,items:s}=this._data,o=Math.ceil(t*e)<=1?0:Math.max(1,Math.floor(e)),n=i?.startItemIndex??0,r=(i?.endItemIndex??s.length)-1,a=r-n+1;if(a<=0)return void(this._precalculatedCache=[]);this._precalculatedCache=new Array(a);for(let t=n;t<=r;t++){const i=s[t],r=Math.round(i.center*e);let a,l;const c=Math.round((i.right-i.left)*e)-o;if(c%2){const e=(c-1)/2;a=r-e,l=r+e}else{const e=c/2;a=r-e,l=r+e-1}this._precalculatedCache[t-n]={left:a,right:l,roundedCenter:r,center:i.center*e,time:i.timePointIndex}}for(let e=n+1;e<=r;e++){const t=this._precalculatedCache[e-n],i=this._precalculatedCache[e-n-1];t.time===i.time+1&&(t.left-i.right!==o+1&&(i.roundedCenter>i.center?i.right=t.left-o-1:t.left=i.right+o+1))}let l=Math.ceil(t*e);for(let e=n+1;e<=r;e++){const t=this._precalculatedCache[e-n];t.right0&&l<4)for(let e=n+1;e<=r;e++){const t=this._precalculatedCache[e-n];t.right-t.left+1>l&&(t.roundedCenter>t.center?t.right-=1:t.left+=1)}}}},4359:(e,t,i)=>{"use strict";var s,o,n,r,a,l,c;function h(e){ -return"line"===e.type}function d(e){return"shapes"===e.type}function u(e){return"chars"===e.type}function _(e){return"arrows"===e.type}function p(e){return"data"===e.type}function m(e){return"dataoffset"===e.type}function g(e){return"ohlc_open"===e.type}function f(e){return"ohlc_high"===e.type}function y(e){return"ohlc_low"===e.type}function v(e){return"ohlc_close"===e.type}function S(e){return g(e)||f(e)||y(e)||v(e)}function b(e){return"colorer"===e.type&&"palette"in e}function w(e){return"colorer"===e.type&&!("palette"in e)}function C(e){return"colorer"===e.type}function T(e){return"bar_colorer"===e.type}function P(e){return"bg_colorer"===e.type}function x(e){return"text_colorer"===e.type}function M(e){return"ohlc_colorer"===e.type}function I(e){return"wick_colorer"===e.type}function A(e){return"border_colorer"===e.type}function L(e){return"up_colorer"===e.type}function k(e){return"down_colorer"===e.type}function E(e){return"alertcondition"===e.type}function D(e){return h(e)||d(e)||u(e)||_(e)}function B(e){return"Plot"!==e}function V(e){return"ohlc_bars"===e.plottype}function R(e){return"ohlc_candles"===e.plottype}function N(e){return C(e)||T(e)||P(e)||p(e)||m(e)||M(e)||E(e)||L(e)||k(e)||A(e)||I(e)||x(e)}function O(e){return C(e)||x(e)||T(e)||p(e)||m(e)||M(e)||I(e)||A(e)||L(e)||k(e)||E(e)}function F(e){return[s.Line,s.LineWithBreaks,s.StepLine,s.StepLineWithBreaks,s.StepLineWithDiamonds,s.Area,s.AreaWithBreaks].includes(e)}i.r(t),i.d(t,{InternalStudyPlotType:()=>n,LineStudyPlotStyle:()=>s,OhlcStudyPlotStyle:()=>l,PlotSymbolSize:()=>c,STUDYPLOTDISPLAYTARGET:()=>a,StudyPlotDisplayTarget:()=>r,StudyPlotType:()=>o,doesLinePlotStyleSupportLineStyle:()=>F,isAlertConditionPlot:()=>E,isArrowsPlot:()=>_,isBarColorerPlot:()=>T,isBgColorerPlot:()=>P,isCandleBorderColorerPlot:()=>A,isCandleWickColorerPlot:()=>I,isCharsPlot:()=>u,isColorerPlot:()=>C,isDataOffsetPlot:()=>m,isDataPlot:()=>p,isDownColorerPlot:()=>k,isLinePlot:()=>h,isNonVisualPlot:()=>O,isOhlcClosePlot:()=>v,isOhlcColorerPlot:()=>M,isOhlcHighPlot:()=>f,isOhlcLowPlot:()=>y,isOhlcOpenPlot:()=>g,isOhlcPlot:()=>S,isOhlcPlotStyleBars:()=>V,isOhlcPlotStyleCandles:()=>R,isPaletteColorerPlot:()=>b,isPlotSupportDisplay:()=>D,isPlotTitleDefined:()=>B,isPlotWithTechnicalValues:()=>N,isRgbaColorerPlot:()=>w,isShapesPlot:()=>d,isTextColorerPlot:()=>x,isUpColorerPlot:()=>L}),function(e){e[e.Line=0]="Line",e[e.Histogram=1]="Histogram",e[e.Cross=3]="Cross",e[e.Area=4]="Area",e[e.Columns=5]="Columns",e[e.Circles=6]="Circles",e[e.LineWithBreaks=7]="LineWithBreaks",e[e.AreaWithBreaks=8]="AreaWithBreaks",e[e.StepLine=9]="StepLine",e[e.StepLineWithDiamonds=10]="StepLineWithDiamonds",e[e.StepLineWithBreaks=11]="StepLineWithBreaks"}(s||(s={})),function(e){e.Line="line",e.Colorer="colorer",e.BarColorer="bar_colorer",e.BgColorer="bg_colorer",e.TextColorer="text_colorer",e.OhlcColorer="ohlc_colorer",e.CandleWickColorer="wick_colorer",e.CandleBorderColorer="border_colorer",e.UpColorer="up_colorer",e.DownColorer="down_colorer",e.Shapes="shapes",e.Chars="chars",e.Arrows="arrows", -e.Data="data",e.DataOffset="dataoffset",e.OhlcOpen="ohlc_open",e.OhlcHigh="ohlc_high",e.OhlcLow="ohlc_low",e.OhlcClose="ohlc_close"}(o||(o={})),function(e){e.AlertCondition="alertcondition"}(n||(n={})),function(e){e[e.None=0]="None",e[e.Pane=1]="Pane",e[e.DataWindow=2]="DataWindow",e[e.PriceScale=4]="PriceScale",e[e.StatusLine=8]="StatusLine",e[e.All=15]="All"}(r||(r={})),function(e){e[e.None=0]="None",e[e.Pane=1]="Pane",e[e.DataWindow=2]="DataWindow",e[e.PriceScale=4]="PriceScale",e[e.StatusLine=8]="StatusLine",e[e.All=15]="All"}(a||(a={})),function(e){e.OhlcBars="ohlc_bars",e.OhlcCandles="ohlc_candles"}(l||(l={})),function(e){e.Auto="auto",e.Tiny="tiny",e.Small="small",e.Normal="normal",e.Large="large",e.Huge="huge"}(c||(c={}))},62312:(e,t,i)=>{"use strict";function s(e,t="shift",i){return{studyConstructorAsyncGetter:e,colorRotationMode:t,colorRotationComparator:i}}i.d(t,{addStudyInfoToMap:()=>n,createStudyInfo:()=>s,getStudyClassName:()=>a,getStudyInfoByName:()=>r});const o=new Map;function n(e,t){o.set(e,t)}function r(e){return o.get(e)}function a(e){for(const[t,i]of o.entries())if(i.studyConstructor===e)return t;return null}},2088:(e,t,i)=>{"use strict";i.d(t,{createStudy:()=>w,hasConfirmInputs:()=>x,hasPendingStudiesModuleLoading:()=>b,isCompareOrOverlayStudy:()=>v,isESDStudy:()=>f,isFundamentalStudy:()=>g,isOverlayStudy:()=>y,isStudy:()=>_,isStudyStrategy:()=>p,isStudyStub:()=>m,isSymbolicStudy:()=>I,studyColorRotationMode:()=>C,useSameColorRotationComparator:()=>P});var s=i(88987),o=i(50151),n=i(37103),r=i(19844),a=i(2258);const l="study_Internal$STD;Fund_";function c(e){const t="study_"+(e.classId||e.shortId);return t.startsWith(l)?l:t}var h=i(62312);i(72207);const d=(0,h.createStudyInfo)((()=>Promise.all([i.e(8736),i.e(6025),i.e(9378),i.e(1485),i.e(5456),i.e(7539)]).then(i.bind(i,11485)).then((e=>e.Study))));(0,h.addStudyInfoToMap)("Study",d),(0,h.addStudyInfoToMap)("study_PivotPointsStandard",(0,h.createStudyInfo)((()=>Promise.all([i.e(8736),i.e(6025),i.e(9378),i.e(1485),i.e(5456),i.e(7539)]).then(i.bind(i,96664)).then((e=>e.study_PivotPointsStandard))))),(0,h.addStudyInfoToMap)("study_Overlay",(0,h.createStudyInfo)((()=>Promise.all([i.e(8736),i.e(6025),i.e(9378),i.e(1485),i.e(5456),i.e(7539)]).then(i.bind(i,34771)).then((e=>e.study_Overlay))),"sexyColors")),(0,h.addStudyInfoToMap)("study_Compare",(0,h.createStudyInfo)((()=>Promise.all([i.e(8736),i.e(6025),i.e(9378),i.e(1485),i.e(5456),i.e(7539)]).then(i.bind(i,55456)).then((e=>e.StudyCompare))),"sexyColors")),(0,h.addStudyInfoToMap)("study_Volume",(0,h.createStudyInfo)((()=>Promise.all([i.e(8736),i.e(6025),i.e(9378),i.e(1485),i.e(5456),i.e(7539)]).then(i.bind(i,51106)).then((e=>e.VolumeStudy))))),(0,h.addStudyInfoToMap)("study_VbPVisible",(0,h.createStudyInfo)((()=>Promise.all([i.e(8736),i.e(6025),i.e(9378),i.e(1485),i.e(5456),i.e(7539)]).then(i.bind(i,10635)).then((e=>e.VbPVisibleWrapper))),"noRotations")),(0,h.addStudyInfoToMap)("study_VbPFixed",(0, -h.createStudyInfo)((()=>Promise.all([i.e(8736),i.e(6025),i.e(9378),i.e(1485),i.e(5456),i.e(7539)]).then(i.bind(i,10635)).then((e=>e.VolumeProfileStudyWithThemedColors))),"noRotations")),(0,h.addStudyInfoToMap)("study_ScriptWithDataOffset",(0,h.createStudyInfo)((()=>Promise.all([i.e(8736),i.e(6025),i.e(9378),i.e(1485),i.e(5456),i.e(7539)]).then(i.bind(i,75848)).then((e=>e.study_ScriptWithDataOffset))))),n.enabled("moving_average_study_changable_currency_unit")&&(0,h.addStudyInfoToMap)("study_Moving Average",(0,h.createStudyInfo)((()=>Promise.all([i.e(7598),i.e(6025),i.e(9378),i.e(1485),i.e(5248)]).then(i.bind(i,45135)).then((e=>e.study_MovingAverage)))));const u=["studyName","guiPlotName","isLinkedToSeries"];function _(e){return u.every((t=>t in e))}function p(e){return!1}function m(e){return e instanceof a.StudyStub}function g(e){return!1}function f(e){return!1}function y(e){return _(e)&&"Overlay@tv-basicstudies"===e.metaInfo().id}function v(e){return y(e)||_(e)&&"Compare@tv-basicstudies"===e.metaInfo().id}let S=0;function b(){return S>0}async function w(e,t,i,s,n,r,a,l){let u;const _=2===a;if(!u){const e=c(s);u=(0,h.getStudyInfoByName)(e??"Study")??d}u.studyConstructor||(S+=1,u.studyConstructor=await(0,o.ensureDefined)(u.studyConstructorAsyncGetter)(),S-=1);const p=new((0,o.ensureDefined)(u?.studyConstructor))(e,t,i,s,n,_,!!l);return void 0!==r&&p.setId(r),p}function C(e){const t=c(e),i=(0,h.getStudyInfoByName)(t);return i?(0,s.default)(i.colorRotationMode)?i.colorRotationMode(e):i.colorRotationMode:void 0===e.pine||r.StudyMetaInfo.isStandardPine(e.id)?1!==e.plots.length?"shift":"loop":null}function T(e,t){return e.id===t.id&&(s=t,((i=e).pine?i.pine.version:void 0)===(s.pine?s.pine.version:void 0));var i,s}function P(e){const t=c(e),i=(0,h.getStudyInfoByName)(t);if(i){const e=i.colorRotationComparator;if(void 0!==e)return e}return T}function x(e){return(e??[]).some((e=>e.confirm))}const M=["Overlay@tv-basicstudies","CorrelationCoefficient@tv-basicstudies","Correlation Coeff@tv-basicstudies","Spread@tv-basicstudies","Ratio@tv-basicstudies"];function I(e){return M.includes(e.id)}},19136:(e,t,i)=>{"use strict";i.d(t,{StudyDataSource:()=>p});var s=i(50151),o=i(48096),n=i(72187),r=i(29806),a=i(19844),l=i(87163),c=i(64717),h=i(24437),d=i(63681);const u=(0,i(9343).getLogger)("Chart.StudyDataSource");var _;!function(e){e[e.Idle=0]="Idle",e[e.AwaitingConnection=1]="AwaitingConnection",e[e.AwaitingParent=2]="AwaitingParent",e[e.AwaitingFirstDataUpdate=3]="AwaitingFirstDataUpdate",e[e.Active=4]="Active"}(_||(_={}));class p{constructor(e,t,i,s,r=!1){this._inputs=null,this._status=_.Idle,this._studyId=null,this._turnaroundCounter=1,this._studyStatus={type:d.StudyStatusType.Undefined},this._studyStatusChanged=new o.Delegate,this._dataCleared=new o.Delegate,this._dataUpdated=new o.Delegate,this._boundOnGatewayIsConnectedChanged=this._onGatewayIsConnectedChanged.bind(this),this._ongoingDataUpdate=Promise.resolve(),this._gateway=e,this._metaInfo=s,this._forceUseExclamationMark=r,this._seriesSource=t,this._turnaroundPrefix=i, -this._plots=new n.PlotList((0,c.studyPlotFunctionMap)(s),c.studyEmptyPlotValuePredicate),this._gateway.isConnected().subscribe(this._boundOnGatewayIsConnectedChanged),this._graphics=new h.LiveStudyGraphics(s.graphics)}destroy(){this.stop(),this._gateway.isConnected().unsubscribe(this._boundOnGatewayIsConnectedChanged),this._seriesSource.dataEvents().created().unsubscribeAll(this)}metaInfo(){return this._metaInfo}inputs(){return this._inputs}setInputs(e){this._inputs=e,null!==this._studyId&&(this._turnaroundCounter++,this._onStudyStatusChangedTo({type:d.StudyStatusType.Undefined}),this._gateway.modifyStudy(this._studyId,this._turnaround(),e,this._onMessage.bind(this)),this._status===_.Active&&this._changeStatusTo(_.AwaitingFirstDataUpdate))}isStarted(){return this._status!==_.Idle}isActive(){return this._status===_.Active}start(){this.isStarted()?u.logNormal("start: data source is already started, nothing to do"):((0,s.assert)(null!==this._inputs,"Inputs should be defined when starting a study data source"),this._gateway.isConnected().value()?this._createStudy():this._changeStatusTo(_.AwaitingConnection))}stop(){this.isStarted()?(null!==this._studyId&&(this._gateway.isConnected().value()&&this._gateway.removeStudy(this._studyId),this._studyId=null,this._onStudyStatusChangedTo({type:d.StudyStatusType.Undefined})),this._changeStatusTo(_.Idle)):u.logNormal("stop: data source is already stopped, nothing to do")}studyId(){return this._studyId}studyStatus(){return this._studyStatus}studyStatusChanged(){return this._studyStatusChanged}plots(){return this._plots}graphics(){return this._graphics}clearData(){this._plots.clear(),this._graphics.clear(),this._dataCleared.fire()}stopAndStealData(){(0,s.assert)(this._status===_.Active,"Couldn't steal data from non-active data source"),this.stop();const e=this._plots,t=this._graphics.extract();return this._plots=new n.PlotList((0,c.studyPlotFunctionMap)(this._metaInfo),c.studyEmptyPlotValuePredicate),{plots:e,graphics:t}}dataCleared(){return this._dataCleared}dataUpdated(){return this._dataUpdated}moveData(e){this._ongoingDataUpdate=this._ongoingDataUpdate.then((()=>{this._plots.move(e)}))}pendingUpdatesReady(){return this._ongoingDataUpdate}_createStudyError(e){return{type:d.StudyStatusType.Error,errorDescription:this._getStudyErrorDescription(e)}}_getStudyErrorDescription(e){return"string"==typeof e?{error:e.split(":",2)[0]}:e}_changeStatusTo(e){(0,s.assert)(this._status!==e,"Source and destination status should be distinct"),u.logNormal(`Status changed from ${_[this._status]} to ${_[e]}`),this._status=e}_createStudy(){const e=this._seriesSource.instanceId();null!==e?this._createStudyUsingParentId(e):(this._changeStatusTo(_.AwaitingParent),this._seriesSource.dataEvents().created().subscribe(this,this._onSeriesCreated,!0))}_createStudyUsingParentId(e){(0,s.assert)(this._status!==_.Active,'Status should not be "Active" when creating a study'),(0,s.assert)(this._studyStatus.type===d.StudyStatusType.Undefined,'Study status should be "Undefined" when creating a study'),(0, -s.assert)(null===this._studyId,"Study id should be empty when creating a study"),this._studyId=(0,l.makeNextStudyId)(),this._gateway.createStudy(this._studyId,this._turnaround(),e,a.StudyMetaInfo.getStudyIdWithLatestVersion(this.metaInfo(),this._forceUseExclamationMark),(0,s.ensureNotNull)(this._inputs),this._onMessage.bind(this),{id:this._metaInfo.id}),this._changeStatusTo(_.AwaitingFirstDataUpdate)}_onGatewayIsConnectedChanged(e){e?this._onGatewayConnected():this._onGatewayDisconnected()}_onGatewayConnected(){this._status===_.AwaitingConnection&&this._createStudy()}_onGatewayDisconnected(){this._status!==_.Idle&&this._status!==_.AwaitingConnection&&(this._studyId=null,this._changeStatusTo(_.AwaitingConnection),this._studyStatus.type!==d.StudyStatusType.Undefined&&this._onStudyStatusChangedTo({type:d.StudyStatusType.Undefined})),this._turnaroundCounter=1}_onSeriesCreated(){this._status===_.AwaitingParent&&this._createStudyUsingParentId((0,s.ensure)(this._seriesSource.instanceId()))}_onStudyStatusChangedTo(e){const t=this._studyStatus;this._studyStatus=e,u.logNormal(`Study status type changed from ${d.StudyStatusType[t.type]} to ${d.StudyStatusType[e.type]}`),this._studyStatusChanged.fire(t,e)}_onMessage(e){if("data_update"===e.method){const{customId:t,turnaround:i,plots:o,nonseries:n}=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onDataUpdate(o,(0,s.ensureDefined)(n))}else if("study_loading"===e.method){const[t,i]=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onStudyLoading(e.time)}else if("study_completed"===e.method){const[t,i]=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onStudyCompleted(e.time)}else if("study_error"===e.method){const[t,i,s,o]=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onStudyError(s,o,e.time)}else"clear_data"===e.method&&this._checkTurnaround(e.params.turnaround)&&this.clearData()}_onDataUpdate(e,t){const i=(0,r.unpackNonSeriesData)(t.d);return this._ongoingDataUpdate=this._ongoingDataUpdate.then((()=>i),(()=>i)).then(this._onDataUnpacked.bind(this,e,t.indexes)),this._ongoingDataUpdate}_onDataUnpacked(e,t,i){this._status!==_.Idle&&(this._status===_.AwaitingFirstDataUpdate&&(this._changeStatusTo(_.Active),this.clearData()),this._mergePlots(e),null!==i&&(i.indexes_replace?((0,s.assert)("nochange"!==t),this._graphics.replaceIndexesTo(t)):("nochange"!==t&&this._graphics.replaceIndexesTo(t),void 0!==i.graphicsCmds&&this._graphics.processCommands(i.graphicsCmds))),this._dataUpdated.fire(e,i,t))}_onStudyLoading(e){this._onStudyStatusChangedTo({type:d.StudyStatusType.Loading,startTime:Date.now()})}_onStudyError(e,t,i){this.clearData(),this._onStudyStatusChangedTo(this._createStudyError(e))}_onStudyCompleted(e){this._onStudyStatusChangedTo({type:d.StudyStatusType.Completed})}_mergePlots(e){this._plots.merge(e)}_turnaround(){return`${this._turnaroundPrefix}${this._turnaroundCounter}`}_checkTurnaround(e){const t=this._turnaround();return e===t||e===this._seriesSource.turnaround()||e===`${this._seriesSource.turnaround()}_${t}`}}},64717:(e,t,i)=>{ -"use strict";function s(e){const t=new Map;return e.plots.forEach(((e,i)=>{t.set(e.id,(e=>e[i+1]))})),t}function o(e,t){return null==e[t]}i.d(t,{studyEmptyPlotValuePredicate:()=>o,studyPlotFunctionMap:()=>s})},69422:(e,t,i)=>{"use strict";i.d(t,{ChartColorDependentStudyInputNames:()=>c,InputDisplayFlags:()=>o,RangeDependentStudyInputNames:()=>l,areStudyInputsEqual:()=>_,editableStudyInputs:()=>m,getInputValue:()=>d,isStudyInputDependsOnChart:()=>f,isStudyInputDependsOnChartColors:()=>g,isStudyInputOptionsInfo:()=>u,isTimeOrPriceNotHiddenInput:()=>p});var s,o,n,r,a,l,c,h=i(82433);function d(e){return function(e){return(0,h.default)(e)}(e)?e.v:e}function u(e){return["text","integer","float","price","session","resolution"].includes(e.type)&&e.hasOwnProperty("options")}function _(e,t,i){for(const s of e)if(t[s.id]!==i[s.id])return!1;return!0}function p(e){return("time"===e.type||"price"===e.type)&&!0!==e.isHidden}function m(e){return[]}function g(e){return Object.values(c).map((e=>e)).includes(e.id)}function f(e){return!!g(e)||Object.values(l).map((e=>e)).includes(e.id)}!function(e){e.Integer="integer",e.Float="float",e.Price="price",e.Bool="bool",e.Text="text",e.Symbol="symbol",e.Session="session",e.Source="source",e.Resolution="resolution",e.Time="time",e.BarTime="bar_time",e.Color="color",e.Textarea="text_area"}(s||(s={})),function(e){e[e.None=0]="None",e[e.DataWindow=2]="DataWindow",e[e.StatusLine=8]="StatusLine",e[e.All=15]="All"}(o||(o={})),function(e){e.InitialCapital="initial_capital",e.Currency="currency",e.DefaultQTYValue="default_qty_value",e.DefaultQTYType="default_qty_type",e.Pyramiding="pyramiding",e.ComissionValue="commission_value",e.ComissionType="commission_type",e.BacktestFillLimitsAssumtion="backtest_fill_limits_assumption",e.Slippage="slippage",e.CalcOnOrderFills="calc_on_order_fills",e.CalcOnEveryTick="calc_on_every_tick",e.MarginLong="margin_long",e.MarginShort="margin_short",e.UseBarMagnifier="use_bar_magnifier",e.ProcessOrdersOnClose="process_orders_on_close",e.FillOrdersOnStandardOHLC="fill_orders_on_standard_ohlc"}(n||(n={})),function(e){e.Fixed="fixed",e.CashPerOrder="cash_per_order",e.PercentOfEquity="percent_of_equity"}(r||(r={})),function(e){e.Percent="percent",e.CashPerContract="cash_per_contract",e.CashPerOrder="cash_per_order"}(a||(a={})),function(e){e.FirstBar="first_visible_bar_time",e.LastBar="last_visible_bar_time",e.Realtime="subscribeRealtime"}(l||(l={})),function(e){e.FgColor="__chart_fgcolor",e.BgColor="__chart_bgcolor"}(c||(c={}))},72972:(e,t,i)=>{"use strict";i.d(t,{isStudyDescriptor:()=>u,studyMetaInfoRepository:()=>g});var s=i(81251),o=i(11542),n=i(50151),r=i(19844),a=i(43046),l=i(9787),c=i(15219),h=i(9343),d=i(88723);(0,h.getLogger)("Chart.Studies.StudyMetaInfoRepository",{color:"#606"});function u(e){return"object"==typeof e&&null!==e&&"type"in e&&("java"===e.type&&"studyId"in e||"pine"===e.type&&"pineId"in e)}class _{constructor(e){this._isReady=!1,this._studyVersioning=null,this._rawStudiesMetaInfo=[],this._rawStudiesMetaInfoDeferredPromise=null, -this._javaStudiesMetaInfo=[],this._pineMetaInfoCache=[],this._compileErrors=new WeakMap,this._studiesMigrations=[],this._chartApi=e}async requestMetaInfo(){if(null===this._rawStudiesMetaInfoDeferredPromise){this._rawStudiesMetaInfoDeferredPromise=(0,d.createDeferredPromise)();const e=(await this._chartApi.requestMetadata()).params[1].metainfo.slice();this._processLibraryMetaInfo(e),this._studyVersioning=new c.StudyVersioning(this._javaStudiesMetaInfo,this._studiesMigrations),this._requestFinished(),this._rawStudiesMetaInfoDeferredPromise.resolve(this._rawStudiesMetaInfo)}return this._rawStudiesMetaInfoDeferredPromise.promise}async findById(e){this._isReady||await this.requestMetaInfo();const t=this._findStudyMetaInfo(e);if(null!==t){const e=this._compileErrors.get(t);return e?Promise.reject(e):Promise.resolve(t)}return"pine"===e.type?this._compilePine(e):Promise.reject(`unexpected study id=${e.studyId} with type=${e.type}`)}findByIdSync(e){return this._findStudyMetaInfo(e)}isReady(){return this._isReady}async findAllJavaStudies(){return this._isReady||await this.requestMetaInfo(),this._javaStudiesMetaInfo}studyVersioning(){return(0,n.ensureNotNull)(this._studyVersioning)}getInternalMetaInfoArray(){return this._javaStudiesMetaInfo}addPineMetaInfo(e,t){const i=m(this._pineMetaInfoCache,e);return t&&(!Array.isArray(t)||t.length>0)&&(t=Array.isArray(t)?new PineCompileFailErrorImpl({warnings:[],errors:t},e):t,this._compileErrors.set(i,t)),i}async getLatestMetaInfoForPineStudy(e,t){return null}_processMigrations(e){throw new Error("not implemented")}_processSiteMetaInfo(e,t){throw new Error("not implemented")}_processLibraryMetaInfo(e){for(const t of e)p(t),m(this._javaStudiesMetaInfo,t);this._javaStudiesMetaInfo=this._javaStudiesMetaInfo.sort(((e,t)=>{const i=e.description_localized||e.description,s=t.description_localized||t.description;return i>s?1:it.id===e.studyId))||null):this._pineMetaInfoCache.find((t=>t.scriptIdPart===e.pineId&&(void 0===e.pineVersion||(0,n.ensureDefined)(t.pine).version===e.pineVersion)))||null}_compilePine(e){throw new Error("unsupported")}}function p(e){e.description_localized=o.t(e.description,{context:"study"},i(83477))}function m(e,t){const i=new r.StudyMetaInfo(t).state();(0,a.migrateMetaInfoAndPropState)(i);const s=new r.StudyMetaInfo(i);let o=!0;const n=e.findIndex((e=>e.id===s.id));if(-1===n)e.push(s);else{const t=e[n],i=void 0!==t.pine?l.Version.parse(t.pine.version):null,r=void 0!==s.pine?l.Version.parse(s.pine.version):null;null===r||null===i||r.isGreaterOrEqual(i)?(t.removeDefaults(),e[n]=s):o=!1}return o&&s.createDefaults(),s}const g=(0,s.default)((()=>new _(window.ChartApiInstance)))},35990:(e,t,i)=>{"use strict";i.d(t,{StudyStatusProviderBase:()=>l});var s=i(52479),o=i(86252),n=i(36313);const r={ -NONE:"Default"},a=!1;class l extends s.StatusProviderBase{constructor(e){super(),this._source=e}getSplitTitle(){return this._source.titleInParts(n.TitleDisplayTarget.StatusLine,!0,r,void 0,a)}getInputsTitles(){return this._source.inputsInParts(n.TitleDisplayTarget.StatusLine,!0,r,a)}titleTooltip(){const e=this._source.metaInfo();if(null!==e&&e.shortDescription!==e.description)return this._source.titleInParts(n.TitleDisplayTarget.StatusLine,!1,r,!0,a).join(" ")}text(){const e=this._source.title(n.TitleDisplayTarget.StatusLine,!0,r,void 0,a);return this._source.isActualInterval()?this._source.isFailed()?`${e}: ${this.sourceStatusText()}`:`${e} ${this.sourceStatusText()}`:e}sourceStatusText(){return(0,o.convertStudyStatusToString)(this._source.status(),!0)}errorStatus(){if(!this._source.isActualInterval()||this._source.isSymbolInvalid())return null;const e=this._source.status();return e.type===o.StudyStatusType.Error?{showReportItButton:e.errorDescription.showReportItButton,error:this.sourceStatusText(),solutionId:(0,o.studyStatusSolutionId)(e),title:(0,o.studyStatusTitle)(e),studyFeature:(0,o.studyStatusFeature)(e),stackTrace:(0,o.studyErrorStatusStackTrace)(e.errorDescription.stack_trace),editorError:e.errorDescription.editorError}:null}}},80671:(e,t,i)=>{"use strict";i.d(t,{StudyStatusView:()=>o});var s=i(13651);class o extends s.StatusView{constructor(e){super(e.statusProvider())}getSplitTitle(){return this._statusProvider.getSplitTitle()}titleTooltip(){return this._statusProvider.titleTooltip()}getInputsTitles(){return this._statusProvider.getInputsTitles()}update(e){this._text=this._statusProvider.text()}}},86252:(e,t,i)=>{"use strict";i.d(t,{StudyStatusType:()=>h,convertStudyStatusToString:()=>d,createStudyError:()=>g,studyErrorStatusStackTrace:()=>m,studyStatusFeature:()=>p,studyStatusSolutionId:()=>u,studyStatusTitle:()=>_});var s=i(11542),o=i(55014);const n=s.t(null,void 0,i(50910));const r=new Map,a=new Map,l="loading...",c=s.t(null,void 0,i(62011));var h;function d(e,t){if(e.type===h.Loading)return t?c:l;if(e.type===h.Error){const i=e.errorDescription,s=t?(0,o.triesTranslateError)(i.error):i.error;if(i.ctx){const e={};return Object.entries(i.ctx).forEach((([t,i])=>{e[t]=i.toString()})),s.format(e)}return s}return""}function u(e){if(e.type===h.Error)return e.errorDescription.solution_id?e.errorDescription.solution_id:function(e){for(const t of Array.from(r.keys()))if(e.includes(t))return r.get(t)}(e.errorDescription.error)}function _(e){if(e.type===h.Error)return function(e){const t=e.toLowerCase();return t.includes("the data vendor doesn't provide volume data for this symbol.")||t.includes("no volume is provided by the data vendor")}(e.errorDescription.error)?n:(0,o.triesTranslateError)(e.errorDescription.title??"Runtime error")}function p(e){const{errorDescription:{error:t}}=e;for(const[e,i]of a)if(t.startsWith(e))return i}function m(e){if(void 0===e)return;const t=[];for(const i of e){const e={functionOrScopeName:i.n,lineNumber:i.p};"id"in i&&(e.id=i.id),"v"in i&&(e.versionScript=i.v),t.push(e)}return t} -function g(e,t){const i="check study unexpected error"===e.error;return{type:h.Error,errorDescription:{...e,showReportItButton:i}}}!function(e){e[e.Undefined=0]="Undefined",e[e.Loading=1]="Loading",e[e.Completed=2]="Completed",e[e.Error=3]="Error"}(h||(h={}))},2258:(e,t,i)=>{"use strict";i.d(t,{StudyStub:()=>b,isStudyStubDescriptor:()=>w});var s=i(50279),o=i(30551),n=i(50151),r=i(52499),a=(i(48943),i(51304)),l=i(80671),c=i(67135),h=i(67563),d=i(48096),u=i(43337),_=i(35990),p=i(36313);class m extends _.StudyStatusProviderBase{text(){return this._source.isActualInterval()?`${this._source.title(p.TitleDisplayTarget.StatusLine)} ${this.sourceStatusText()}`:this._source.title(p.TitleDisplayTarget.StatusLine)}}var g=i(86252),f=i(29447),y=i(72972);class v{getItems(){return[]}getValues(e){return[]}}const S=new d.Delegate;class b extends c.PriceDataSource{constructor(e,t,i,s,o=null){super(e),this._priceStep=.01,this._origState=null,this._descriptor=null,this._status={type:g.StudyStatusType.Undefined},this._statusChanged=new d.Delegate,this._descriptorChanged=new d.Delegate,this._formatter=new h.PriceFormatter({priceScale:100}),this._showPineVersionInStatusLine=new r.WatchedValue(!1).spawn(),this._pineSourceCodeModel=null,(0,y.isStudyDescriptor)(t)?this._descriptor=t:this._origState=t,this._title=i,this._alwaysShowInLegend=void 0!==s,this._isOverlay=s,this._studyMetaInfo=o;this._properties=new u.Property({visible:!0}),this._statusView=new l.StudyStatusView(this)}destroy(){this._pineSourceCodeModel?.destroy(),this._showPineVersionInStatusLine.destroy(),super.destroy()}barColorer(){return null}properties(){return this._properties}statusView(){return this._statusView}legendView(){return null}state(e){return this._origState}getDescriptor(){return null===this._descriptor?null:{descriptor:this._descriptor,title:this._title,isOverlay:this._isOverlay,id:this.id(),status:this._status}}updateDescriptor(e){(0,s.default)(this._descriptor,e)||(this._descriptor=e,this._descriptorChanged.fire())}onDescriptorChanged(){return this._descriptorChanged}metaInfo(){return this._studyMetaInfo}setMetaInfo(e){this._studyMetaInfo=e}setStatus(e){const t=this.isDisplayedInLegend();if(this._status=e,this._statusChanged.fire(),this.isDisplayedInLegend()!==t){const e=this._model.paneForSource(this);if(e){const t=this._model.panes().indexOf(e),i=a.InvalidationMask.invalidateLegendWidgetLayout(t);this.model().invalidate(i)}}}formatter(){return this._formatter}name(){return this._title}title(){return this.titleInParts().join(" ")}titleInParts(){const e=[this._title];return this._showPineVersionInStatusLine.value()&&e.push((0,n.ensureDefined)(this._studyMetaInfo?.pine).version),e}inputsInParts(){return null}isFailed(){return this._status.type===g.StudyStatusType.Error}isLoading(){return this._status.type===g.StudyStatusType.Loading}isDisplayedInLegend(){return this._alwaysShowInLegend||this.isFailed()}setFailed(e,t){this.setStatus({type:g.StudyStatusType.Error,errorDescription:{error:e,title:t}}),this._model.updateSource(this)}isSymbolInvalid(){return!1} -isActualInterval(){return!0}onIsActualIntervalChange(){return S}start(){}status(){return this._status}onStatusChanged(){return this._statusChanged}firstValue(){return null}currency(){return null}sessionId(){return this._model.mainSeries().sessionId()}sessionIdChanged(){return this._model.mainSeries().sessionIdChanged()}unit(){return null}symbolSource(){return this._model.mainSeries()}symbolSourceWV(){return this._model.mainSeries().symbolSourceWV()}barsProvider(){return this._model.mainSeries()}valuesProvider(){return new v}legendValuesProvider(){return new v}statusProvider(e){return new m(this)}isRemovedByStudyTemplates(){return null!==this._origState&&(0,f.isStudyState)(this._origState)}pineSourceCodeModel(){return Promise.resolve(null)}contextMenuStatName(){return"StudyStubContextMenu"}}function w(e){return(0,o.isObject)(e)&&"descriptor"in e&&(0,y.isStudyDescriptor)(e.descriptor)}},44862:(e,t,i)=>{"use strict";i.d(t,{applyOverridesToStudy:()=>d,applyOverridesToStudyDefaults:()=>u});var s=i(50151),o=i(4359),n=i(9343);const r={line:o.LineStudyPlotStyle.Line,histogram:o.LineStudyPlotStyle.Histogram,cross:o.LineStudyPlotStyle.Cross,area:o.LineStudyPlotStyle.Area,columns:o.LineStudyPlotStyle.Columns,circles:o.LineStudyPlotStyle.Circles,line_with_breaks:o.LineStudyPlotStyle.LineWithBreaks,area_with_breaks:o.LineStudyPlotStyle.AreaWithBreaks,step_line:o.LineStudyPlotStyle.StepLine,step_line_with_breaks:o.LineStudyPlotStyle.StepLineWithBreaks,step_line_with_diamonds:o.LineStudyPlotStyle.StepLineWithDiamonds},a=(0,n.getLogger)("Chart.Model.StudyPropertiesOverrider");var l,c;function h(e,t,i,s){const o=i.split(".");if(0===o.length||0===o[0].length)return;const n=function(e){const t=e.split(":");return{name:t[0],type:2===t.length?t[1]:null}}(o[0]),r=n.name,h=n.type,d=null!==h,u=!d||"band"===h,_=!d||"area"===h,p=!d||"input"===h,m=!d||"plot"===h?c.getPlotIdByTitle(e,r):null,g=u?c.getBandIndexByName(e,r):null,f=_?c.getFilledAreaIdByTitle(e,r):null,y=p?c.getInputByName(e,r):null,v=t.hasOwnProperty(r);if((null!==m?1:0)+(null!==g?1:0)+(null!==f?1:0)+(null!==y?1:0)+(v?1:0)>1)return void a.logWarn(`Study '${e.description}' has ambiguous identifier '${r}'`);const S=o[1];if(null!==m){if(1===o.length)return void a.logWarn(`Path of sub-property of '${r}' plot for study '${e.description}' must be not empty`);const i=o.slice(1);l.applyPlotProperty(e,t,m,i,s)}else if(null!==y)l.applyInputValue(t,y,s);else if(null!==g){if(void 0===S)return void a.logWarn(`Property name of '${r}' band for study '${e.description}' must be set`);l.applyBandProperty(t,g,S,s)}else if(null!==f){if(void 0===S)return void a.logWarn(`Property name of '${r}' area for study '${e.description}' must be set`);l.applyFilledAreaProperty(t,f,S,s)}else v?l.setRootProperty(t,o,s):a.logWarn(`Study '${e.description}' has no plot or input '${r}'`)}function d(e,t){const i=e.properties(),s=i.state();for(const i in t)t.hasOwnProperty(i)&&h(e.metaInfo(),s,i,t[i]);i.mergeAndFire(s)}function u(e,t,i){for(const s in e){if(!e.hasOwnProperty(s))continue;const o=s.indexOf(".") -;if(-1===o)continue;const n=s.substring(0,o),r=c.getMetaInfoByDescription(t,n);if(null===r){a.logWarn(`There is no such study ${n}`);continue}const l=i(r);null!==l?h(r,l,s.substring(o+1),e[s]):a.logWarn(`Cannot apply overrides for study ${n}`)}}!function(e){e.applyPlotProperty=function(e,t,i,n,l){if(void 0===t.styles)return void a.logWarn("Study does not have styles");const c=n[0];if("color"===c){const r=function(e,t,i){if(void 0===e.plots)return null;for(const s of e.plots){if(!(0,o.isPaletteColorerPlot)(s)||void 0===t.palettes)continue;const e=t.palettes[s.palette];if(s.target===i&&void 0!==e)return e}return null}(e,t,i);return void function(e,t,i,o,n){void 0!==e.styles?null===t&&!isNaN(o)&&o>0?a.logWarn(`Study plot does not have color #${o}`):((0===o||isNaN(o))&&((0,s.ensureDefined)(e.styles[i]).color=String(n),o=0),null!==t&&((0,s.ensureDefined)(t.colors?.[o]).color=String(n))):a.logWarn("Study does not have styles")}(t,r,i,n.length>1?parseInt(n[1]):NaN,l)}const h=t.styles[i];if(void 0!==h&&h.hasOwnProperty(c)){if("plottype"===c){const e=r[String(l)];if(void 0===e)return void a.logWarn(`Unsupported plot type for plot: ${l}`);l=e}h[c]=l}else a.logWarn(`Study plot does not have property '${c}'`)},e.applyBandProperty=function(e,t,i,s){if(void 0===e.bands)return void a.logWarn("Study does not have bands");const o=e.bands[t];if(void 0!==o&&o.hasOwnProperty(i)){if("plottype"===i){const e=r[String(s)];if(void 0===e)return void a.logWarn(`Unsupported plot type for band: ${s}`);s=e}o[i]=s}else a.logWarn(`Study band does not have property '${i}'`)},e.applyFilledAreaProperty=function(e,t,i,s){if(void 0===e.filledAreasStyle)return void a.logWarn("Study does not have areas");const o=e.filledAreasStyle[t];void 0!==o&&o.hasOwnProperty(i)?o[i]=s:a.logWarn(`Study area does not have property '${i}'`)},e.applyInputValue=function(e,t,i){void 0!==e.inputs&&e.inputs.hasOwnProperty(t)?e.inputs[t]=i:a.logWarn(`Study does not have input '${t}'`)},e.setRootProperty=function(e,t,i){if(0===t.length)return;let s=e;for(const e of t.slice(0,-1)){if(null==s||!s.hasOwnProperty(e))break;s=s[e]}const o=t[t.length-1];null!=s&&s.hasOwnProperty(o)?s[o]=i:a.logWarn(`Study does not have property ${t.join(".")}`)}}(l||(l={})),function(e){e.getInputByName=function(e,t){if(void 0===e.inputs)return null;t=t.toLowerCase();for(const i of e.inputs)if(i.name.toLowerCase()===t)return i.id;return null},e.getPlotIdByTitle=function(e,t){if(void 0===e.styles)return null;t=t.toLowerCase();for(const i in e.styles){const s=e.styles[i];if((void 0!==s&&void 0!==s.title?s.title:i).toLowerCase()===t)return i}return null},e.getFilledAreaIdByTitle=function(e,t){if(void 0===e.filledAreas)return null;t=t.toLowerCase();for(const i of e.filledAreas)if(i.title.toLowerCase()===t)return i.id;return null},e.getBandIndexByName=function(e,t){if(void 0===e.bands)return null;t=t.toLowerCase();for(let i=0;i{"use strict";const{clone:s}=i(87465);var o=i(9787).Version,n=i(9343).getLogger("Chart.StudyMigration");function r(e){this._studyId=e,this._maxToVers=o.ZERO,this._maxFromVers=o.ZERO,this._migrs=[]}r.prototype.addMigration=function(e,t,i){var s=o.parse(e),n=o.parse(t);s.isGreater(this._maxFromVers)&&(this._maxFromVers=s),n.isGreater(this._maxToVers)&&(this._maxToVers=n),this._migrs.push({fromVers:s,toVers:n,rules:i})},r.prototype.updateInputs=function(e,t,i){if(!i)return i;for(var o=s(i),r=e;r.isLess(t);){var a=this._findMigration(r);if(null==a)break;if(n.logNormal("Migrating study inputs from "+a.fromVers+" to "+a.toVers+" version, studyId: "+this._studyId+", migration: "+JSON.stringify(a)+", inputs: "+JSON.stringify(i)),o=this._applyMigration(o,a),!r.isLess(a.toVers))throw new Error("Problems in study migration process... Possible infinite cycle has been detected and stopped.");r=a.toVers}return r>e&&n.logNormal("Study inputs migration is done, studyId: "+this._studyId+", inputs: "+JSON.stringify(o)),o},r.prototype._findMigration=function(e){for(var t=-1,i=this._maxFromVers,s=0;s=0||t.indexOf(e)>=0},r._applyInputChangedMinMaxRule=function(e,t){ -if("adjustValIfNeeded"!==t.action)throw new Error("Unknown action "+t.action+" for rule with type "+t.type);var i=e[t.inputId];return it.maxVal&&(e[t.inputId]=t.maxVal),n.logNormal("Input "+t.inputId+"="+i+" adjusted to value "+e[t.inputId]),e},r._applyInputChangedOptionsRule=function(e,t){if(!(["text"].indexOf(t.inputType)>=0&&"resetToDefValIfNeeded"===t.action))throw new Error("Unexpected rule.inputType="+t.inputType+" in rule.action="+t.action);var i=e[t.inputId];return t.options.indexOf(i)<0&&(e[t.inputId]=t.defVal,n.logNormal("Input "+t.inputId+"="+i+" reset to default value "+t.defVal)),e},e.exports=r},15219:(e,t,i)=>{"use strict";i.d(t,{StudyVersioning:()=>m});var s=i(16738),o=i(50151),n=i(19844),r=i(86821),a=i.n(r),l=i(9343),c=i(9787),h=i(43046),d=i(87465);const u=(0,l.getLogger)("Chart.Study.Versioning"),_=1e12;var p;!function(e){e[e.VersionStudyArgSource=41]="VersionStudyArgSource",e[e.MetaInfoFormatVersionSosV2=42]="MetaInfoFormatVersionSosV2",e[e.VersionPineProtectTv4164=43]="VersionPineProtectTv4164",e[e.VersionNewStudyPrecisionFormat=46]="VersionNewStudyPrecisionFormat",e[e.CurrentMetaInfoFormatVersion=54]="CurrentMetaInfoFormatVersion"}(p||(p={}));class m{constructor(e,t){if(this._migrations={},!e)throw new Error("No studies metainfo");if(this._studiesMetainfo=e,!t)throw new Error("No studies migrations");this._studiesMigrations=t;for(let e=0;e{if(0===this._studiesMetainfo.length||!e.isTVScript||e.version>=22)return t;const i={};let s=0,o=0,n=t[o];for(;void 0!==n;){const e=t[n.id];n.isFake&&(n.id="in_"+s++),i[o]=n,i[n.id]=e,o++,n=t[o]}return i}]}updateMetaInfoAsync(e,t){n.StudyMetaInfo.versionOf(e);{let t=null;const i=this._studiesMetainfo;for(let s=0;s=12&&s<=26){const s={};for(let e=0;et.id===e))).version}updateMetaInfo(e){if(!e)return e;(0,o.assert)(e instanceof n.StudyMetaInfo),(0,o.assert)(!e.isTVScript,"This method should update only built-in java indicators metaInfo. For Pine indicators use updateMetaInfoAsync");const t=this._studiesMetainfo.find((t=>e.id===t.id));return t?new n.StudyMetaInfo(t.state()):null}static patchPointsBasedStudyState(e){return this._fixInputsMaxValue(e.state,e.metaInfo),e}static patchStudyData(e,t,i,s){return{data:t,nsData:i,indexes:s??void 0}}static patchPointsBasedStudyData(e,t){return t}static patchPropsStateAndMetaInfo(e,t,i){let o=t.state();"Script$BOOKER"!==t.productId||o.alerts||delete e.alerts,this._fixInputsOrder(e,o),this._fixInputsMaxValue(e,o);const r=this.splitInputs(e.inputs);e.inputs=r.obj;const a=n.StudyMetaInfo.versionOf(t);a<42&&o.isChildStudy&&(e.isChildStudy=o.isChildStudy);if(t.isTVScript&&t.version<60&&("Script$TV_EARNINGS@tv-scripting"!==t.id&&"Script$TV_DIVIDENDS@tv-scripting"!==t.id&&"Script$TV_SPLITS@tv-scripting"!==t.id||delete o.TVScriptSourceCode),"Volume"!==t.id&&"Volume@tv-basicstudies"!==t.id||0!==t.inputs.length||(o.inputs=[{id:"length",type:"integer",defval:20,min:1,max:1e3}],o.plots.push({id:"vol_ma",type:"line"})),"Volume@tv-basicstudies"===t.id&&t.version&&t.version<=46&&void 0===e.styles.vol.transparency&&(e.styles.vol.transparency=e.transparency||87),"PivotPointsStandard@tv-basicstudies"===t.id&&(0===o.inputs.length?(e.inputs={kind:"Traditional",showHistoricalPivots:!0},o.inputs=[{defval:"Traditional",id:"kind",type:"text",options:["Traditional","Fibonacci","Woodie","Classic","DeMark","Camarilla"]},{id:"showHistoricalPivots",type:"bool",defval:!0}]):1===o.inputs.length&&(e.inputs={kind:"Traditional"},o.inputs=[{defval:"Traditional",id:"kind",type:"text",options:["Traditional","Fibonacci","Woodie","Classic","DeMark","Camarilla"]},{id:"showHistoricalPivots",type:"bool",defval:!0}]),void 0===e._hardCodedDefaultsVersion)){e._hardCodedDefaultsVersion=1;const t=e.color;delete e.color,e.levelsStyle={colors:{P:t,"S1/R1":t,"S2/R2":t,"S3/R3":t,"S4/R4":t,"S5/R5":t}}}"CMF"===t.shortId&&2===o.inputs.length&&(e.inputs={length:e.inputs["length fast"]},o.inputs=o.inputs.splice(0,1),o.inputs[0].id="length"), -o.defaults&&void 0===o.defaults.precision&&a<46&&(-1!==["Volume@tv-basicstudies","VbPVisible@tv-volumebyprice","VbPSessions@tv-volumebyprice"].indexOf(t.id)?o.defaults.precision=0:o.defaults.precision=4);let l=t.id;if(t.version<60){const e=["TV_DIVIDENDS","TV_SPLITS","TV_EARNINGS"],i=6;for(let s=0;s_&&u.logWarn("Bad integer input max value in metaInfo id="+e.id+" title="+e.description)}static mergeInputsObjPart(e,t){const i=this.splitInputs(t);(0,s.default)(e,i.obj)}static _fixInputsOrder(e,t){const i=this._getOrderedInputIds(t),o=this.splitInputs(e.inputs),n=o.arr,r=o.obj,a=(0,s.default)({},r);for(let e=0;ei&&(e.max=i);if(!e||!e.inputs)return;const o=this.splitInputs(e.inputs),n=o.arr;for(const[,e]of Object.entries(n))"integer"===e.type&&e.max&&e.max>i&&(e.max=i);e.inputs=(0,s.default)(o.obj,o.arr)}static _findInputKeyById(e,t){let i=null;for(const s in e)if((0,d.isNumber)(parseInt(s,10))&&e[s].id===t){i=s;break}return i}static _getOrderedInputIds(e){const t=[];for(const i of e.inputs)t.push(i.id);return t}static _patchOldVolumeProfiles(e,t){if(!t?.hhists)return;const i=t.hhists[e].data,s=[];for(const[,e]of Object.entries(i))s.push(e);t.hhists[0].data=s}}},77380:(e,t,i)=>{"use strict";function s(e,t,i){return e===t||e===i}i.d(t,{symbolSameAsResolved:()=>s})},95772:(e,t,i)=>{"use strict";i.d(t,{translateSessionDescription:()=>r,translateSessionShortDescription:()=>l});var s,o=i(11542);!function(e){e.RegularTradingHours="regular trading hours",e.ExtendedTradingHours="extended trading hours",e.ElectronicTradingHours="electronic trading hours",e.Premarket="premarket",e.Postmarket="postmarket"}(s||(s={}));const n=new Map([["premarket",o.t(null,{context:"sessions"},i(59330))],["postmarket",o.t(null,{context:"sessions"},i(50434))],["regular trading hours",o.t(null,{context:"sessions"},i(84246))],["extended trading hours",o.t(null,{context:"sessions"},i(36862))],["electronic trading hours",o.t(null,{context:"sessions"},i(34647))]]);function r(e){return n.get(e.toLowerCase())??e}const a=new Map([["premarket",o.t(null,{context:"sessions"},i(46273))],["postmarket",o.t(null,{context:"sessions"},i(7807))],["regular trading hours",o.t(null,{context:"sessions"},i(92158))],["extended trading hours",o.t(null,{context:"sessions"},i(8029))],["electronic trading hours",o.t(null,{context:"sessions"},i(8029))]]);function l(e){return a.get(e.toLowerCase())??e}},36597:(e,t,i)=>{"use strict";i.d(t,{areEqualSymbols:()=>a, -compareSymbolParams:()=>d,symbolParams:()=>h,symbolSameAsCurrent:()=>c});var s=i(37103),o=i(95059),n=i(46082);const r=s.enabled("uppercase_instrument_names");function a(e,t){return void 0===e?void 0===t:void 0!==t&&(r?e.toUpperCase()===t.toUpperCase():e===t)}function l(e,t){return e.some((e=>a(t,e)))}function c(e,t){if(null===t)return!1;if(t){if(a(t.full_name,e)||a(t.pro_name,e))return!0;if(a(t.ticker,e))return!0;if(t.aliases&&l(t.aliases,e))return!0;if(t.alternatives&&l(t.alternatives,e))return!0;if(0===e.indexOf("FRA:")&&a(t.pro_name,e.replace("FRA:","FWB:")))return!0}return!1}function h(e){return{symbol:e.symbol(),currency:e.currency(),unit:e.unit(),interval:e.interval(),style:e.style()}}function d(e,t,i){const{symbol:s,currency:r,unit:a,style:l,interval:c}=t,h=void 0!==s&&!e.symbolSameAsResolved(s);let d,u;const _=e.symbolInfo();null!==_?(d=void 0!==r&&!function(e,t){return null===e&&!(0,o.isConvertedToOtherCurrency)(t)||e===(0,o.symbolCurrency)(t)}(r,_),u=void 0!==a&&!function(e,t,i){return null===e&&!(0,o.isConvertedToOtherUnit)(t,i)||e===(0,o.symbolUnit)(t,i)}(a,_,i)):(d=void 0!==r&&r!==e.currency(),u=void 0!==a&&a!==e.unit());return{symbolChanged:h,intervalChanged:void 0!==c&&!n.Interval.isEqual(e.interval(),c),currencyChanged:d,unitChanged:u,styleChanged:void 0!==l&&l!==e.style(),styleChangeRequiresRestart:void 0!==l&&(0,o.styleChangeRequiresRestart)(l,e.style())}}},57658:(e,t,i)=>{"use strict";i.d(t,{TextWidthCache:()=>n,getMinTextMetrics:()=>o});var s=i(16659);function o(e){return{width:e.width,actualBoundingBoxAscent:e.actualBoundingBoxAscent,actualBoundingBoxDescent:e.actualBoundingBoxDescent,fontBoundingBoxAscent:e.fontBoundingBoxAscent,fontBoundingBoxDescent:e.fontBoundingBoxDescent}}class n{constructor(e=150){this._fontStyle="",this._cache=new s.CircularCacheBuffer(e,1.5)}reset(){this._cache.clear()}measureText(e,t){return this.getMetrics(e,t).width}yMidCorrection(e,t){const i=this.getMetrics(e,t);return void 0!==i.actualBoundingBoxAscent&&void 0!==i.actualBoundingBoxDescent?(i.actualBoundingBoxAscent-i.actualBoundingBoxDescent)/2:0}getMetrics(e,t){e.font!==this._fontStyle&&(this.reset(),this._fontStyle=e.font);const i=this._cache.get(t);if(void 0!==i)return i;const s=e.textBaseline;e.textBaseline="middle";const n=o(e.measureText(t));return e.textBaseline=s,0===n.width&&t.length||this._cache.set(t,n),n}}},23752:(e,t,i)=>{"use strict";i.d(t,{TimeAxisView:()=>r});var s=i(52859),o=i(33350);class n{constructor(){this._data=null}setData(e){this._data=e}draw(e,t,i){if(null===this._data||!this._data.visible||0===this._data.text.length)return;const s=this._data;e.font=i.font;const n=Math.round(i.widthCache.measureText(e,s.text));if(n<=0)return;e.save();const r=i.paddingHorizontal,a=n+2*r,l=a/2;let c=s.coordinate,h=Math.floor(c-l)+.5;if(s.alwaysInViewPort){const e=s.width;h<0?(c+=Math.abs(0-h),h=Math.floor(c-l)+.5):h+a>e&&(c-=Math.abs(e-(h+a)),h=Math.floor(c-l)+.5)}const d=h+a,u=Math.ceil(0+i.borderSize+i.offsetSize+i.paddingTop+i.fontSize+i.paddingBottom),{horizontalPixelRatio:_,verticalPixelRatio:p}=t -;e.fillStyle=s.background;const m=Math.round(h*_),g=Math.round(0*p),f=Math.round(d*_),y=Math.round(u*p),v=Math.round(2*_);e.beginPath(),e.moveTo(m,g),e.lineTo(m,y-v),e.arcTo(m,y,m+v,y,v),e.lineTo(f-v,y),e.arcTo(f,y,f,y-v,v),e.lineTo(f,g),e.fill();const S=0+i.borderSize+i.offsetSize+i.paddingTop+i.fontSize/2;e.textAlign="left",e.textBaseline="middle",e.fillStyle=s.color;const b=i.widthCache.yMidCorrection(e,"Apr0");e.translate((h+r)*_,(S+b)*p),(0,o.drawScaled)(e,_,p,(()=>e.fillText(s.text,0,0))),e.restore()}}class r{constructor(e){this._renderer=new n,this._rendererData={background:"",color:"",coordinate:0,text:"",visible:!1,width:0,alwaysInViewPort:!0},this._invalidated=!0,this._model=e,this._renderer.setData(this._rendererData)}update(){this._invalidated=!0}renderer(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._renderer}coordinate(){return this._rendererData.coordinate}_getAlwaysInViewPort(){return!0}_getText(e){const t=this._model.timeScale().indexToUserTime(e);return null!==t?this._model.dateTimeFormatter().format(t):""}_updateImpl(){const e=this._rendererData;if(e.visible=!1,this._model.timeScale().isEmpty()||!this._isVisible())return;const t=this._getIndex();null!==t&&Number.isFinite(t)&&(e.visible=!0,e.width=this._model.timeScale().width(),e.background=this._getBgColor(),e.color=(0,s.colorFromBackground)(e.background),e.coordinate=this._model.timeScale().indexToCoordinate(t),e.alwaysInViewPort=this._getAlwaysInViewPort(),e.text=this._getText(t),this._invalidated=!1)}}},82284:(e,t,i)=>{"use strict";i.d(t,{INVALID_TIME_POINT_INDEX:()=>s,UNPLOTTABLE_TIME_POINT_INDEX:()=>o});const s=-2e6,o=-1e6},3190:(e,t,i)=>{"use strict";i.d(t,{restoreTimeHoursFormatSettingsValue:()=>l,timeHoursFormatProperty:()=>a});var s=i(1765),o=i(41072);const n="time_hours_format";function r(){return s.getValue(n,"24-hours")}const a=(0,o.createPrimitiveProperty)(r());function l(){a.setValue("24-hours"),s.remove(n)}s.onSync.subscribe(null,(()=>a.setValue(r()))),a.subscribe(null,(()=>s.setValue(n,a.value())))},19679:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DAY_SPAN:()=>a,DEFAULT_BAR_SPACING:()=>d,HOUR_SPAN:()=>r,MILLISECOND_SPAN:()=>s,MINUTE_SPAN:()=>n,MONTH_SPAN:()=>c,SECOND_SPAN:()=>o,WEEK_SPAN:()=>l,YEAR_SPAN:()=>h});const s=5,o=10,n=20,r=30,a=40,l=50,c=60,h=70,d=6},20512:(e,t,i)=>{"use strict";i.d(t,{getHourMinuteFormat:()=>o,getHourMinuteSecondFormat:()=>n,getTimeFormatForInterval:()=>r});var s=i(82087);function o(e){return"12-hours"===e?s.twelveHourMinuteFormat:s.hourMinuteFormat}function n(e){return"12-hours"===e?s.twelveHourMinuteSecondFormat:s.hourMinuteSecondFormat}function r(e,t){if(e.isRange())return function(e){return"12-hours"===e?s.twelveHourMinuteNonZeroSecondFormat:s.hourMinuteNonZeroSecondFormat}(t);if(e.isTicks())return s.hourMinuteSecondMillisecFormat;return e.isSeconds()||e.isTicks()?n(t):o(t)}},75641:(e,t,i)=>{"use strict";i.d(t,{translatedIntervalString:()=>o});var s=i(87296);function o(e){const t=(0,s.getTranslatedResolutionModel)(e,!0) -;return null===t?e:t.multiplier+(t.mayOmitShortKind?"":t.shortKind)}},29603:(e,t,i)=>{"use strict";i.d(t,{ExcludeLineToolsFromGroupUndoCommand:()=>h});var s=i(50151),o=(i(40167),i(11542)),n=i(95804),r=i(87465),a=i(72270),l=i(13896);const c=new n.TranslatedString("exclude line tools from group {group}",o.t(null,void 0,i(99395)));class h extends a.UndoCommand{constructor(e,t,i){super(c.format({group:t.name().value()}),void 0,!l.lineToolsDoNotAffectChartInvalidation),this._model=e,this._groupId=t.id,this._groupName=t.name().value(),this._lineToolsIds=i.map((e=>e.id()))}redo(){const e=(0,s.ensureNotNull)(this._model.lineToolsGroupModel().groupForId(this._groupId)),t=this._lineToolsIds.map((e=>this._model.dataSourceForId(e))).filter(r.notNull);e.excludeLineTools(t),0===e.lineTools().length&&this._model.lineToolsGroupModel().removeGroup(e)}undo(){const e=this._lineToolsIds.map((e=>this._model.dataSourceForId(e))),t=this._model.lineToolsGroupModel().groupForId(this._groupId);null!==t?t.addLineTools(e):this._model.lineToolsGroupModel().createGroup(e,this._groupName,this._groupId)}}},72270:(e,t,i)=>{"use strict";i.d(t,{UndoCommand:()=>o});var s=i(95804);class o{constructor(e,t=!0,i=!0){this._text=e||new s.TranslatedString("",""),this._executeOnPush=t,this._affectsState=i}text(){return this._text}executeOnPush(){return this._executeOnPush}affectsState(){return this._affectsState}canMerge(e){return!1}merge(e){throw new Error("Should be re-implemented in child classes")}}},64876:(e,t,i)=>{"use strict";i.d(t,{createVisibilityController:()=>d});var s,o=i(11542),n=i(32563),r=i(41072),a=i(1765);!function(e){e.AlwaysOn="alwaysOn",e.VisibleOnMouseOver="visibleOnMouseOver",e.AlwaysOff="alwaysOff"}(s||(s={}));const l="visibleOnMouseOver";function c(e){return"alwaysOn"===e||"alwaysOff"===e?e:l}var h;function d(e,t){let s,h;function d(){if(!s){s=(0,r.createPrimitiveProperty)();let i=a.getValue(e);void 0===i&&void 0!==t&&(i=a.getValue(t)),s.setValue(c(i)),s.subscribe(s,(t=>{a.setValue(e,c(t.value()))}))}return s}return{property:d,availableValues:function(){return[{id:"visibleOnMouseOver",value:"visibleOnMouseOver",title:n.mobiletouch?o.t(null,void 0,i(58302)):o.t(null,void 0,i(10309))},{id:"alwaysOn",value:"alwaysOn",title:o.t(null,void 0,i(36299))},{id:"alwaysOff",value:"alwaysOff",title:o.t(null,void 0,i(40452))}]},actualBehavior:function(){if(!h){h=(0,r.createPrimitiveProperty)();const e=d(),t=()=>{const t=function(e){switch(e){case"alwaysOn":return"alwaysOn";case"alwaysOff":return"alwaysOff";case"visibleOnMouseOver":return n.mobiletouch?"visibleOnTapSelection":"visibleOnMouseOver";default:throw new Error(`Unknown visibility type: ${e}`)}}(e.value());h&&h.setValue(t)};e.subscribe(h,t),t()}return h},restoreDefaultValue:function(){d().setValue(l),a.remove(e)}}}!function(e){e.AlwaysOn="alwaysOn",e.VisibleOnMouseOver="visibleOnMouseOver",e.VisibleOnTapSelection="visibleOnTapSelection",e.AlwaysOff="alwaysOff"}(h||(h={}))},40153:(e,t,i)=>{"use strict";i.d(t,{withWeekdayProperty:()=>a});var s=i(1765),o=i(41072) -;const n="date_format_with_weekday";function r(){return s.getBool(n,!0)}const a=(0,o.createPrimitiveProperty)(r());a.subscribe(null,(()=>s.setValue(n,a.value()))),s.onSync.subscribe(null,(()=>a.setValue(r())))},61710:(e,t,i)=>{"use strict";i.d(t,{moveAfterSource:()=>B,moveBeforeSource:()=>V,newLineToolZOrder:()=>P,newStudyZOrder:()=>x,prepareZOrderFixIfRequired:()=>R,reorderDataSourcesStateZOrder:()=>w});var s,o=i(68192),n=i(50151),r=i(26610),a=i(2088),l=i(6652),c=i(29447),h=i(12217);function d(e){return(0,r.isLineTool)(e)&&!e.isSpeciallyZOrderedSource()}function u(e){return(0,a.isStudy)(e)&&!e.isSpeciallyZOrderedSource()||(0,a.isStudyStub)(e)}function _(e,t){return e.zorder-t.zorder}function p(e,t){(0,c.isMainSeriesState)(e)?e.zorder=0:e.zorder=t}function m(e,t){e.setZorder(t)}function g(e){return e.zorder()}function f(e){return Math.round(1e3*e)/1e3}function y(e,t){const i=Math.max(e,t),s=Math.min(e,t);return Math.max(0,Math.ceil(i)-Math.floor(s)-1)}function v(e,t,i){let s=0;const o=function(e,t){const i=1e3;return Math.abs(t*i-e*i)/i}(t,e);var n;return o>i?(e=Math.trunc(e),s=Math.floor(o/(i+1))):(n=o/(i+1),s=Math.floor(1e3*n)/1e3),{startZOrder:e,zOrderStep:s}}function S(e,t,i,s){let o=e.length,n=t;for(let t=e.length-1;t>=-1;t--)if(-1===t||s(e[t])){const s=t;let r=I(n);if(o-1===s)s>=0&&i(e[s],r);else{const t=y(o,s);let a=0;for(;0===a;){const e=v(n,r,t);n=e.startZOrder,a=e.zOrderStep,0===a&&(r-=1e4,0===r&&(r-=1e4))}let l=o-1;for(;l>s;){const t=f(n-a);i(e[l],t),n=t,l--}s>=0&&i(e[s],r)}n=r,o=s}}function b(e,t,i,s){let o=-1,n=t;for(let t=0;t<=e.length;t++)if(t===e.length||s(e[t])){const s=t;let r=M(n);if(o+1===s)s<=e.length-1&&i(e[s],r);else{const t=y(o,s);let a=0;for(;0===a;){const e=v(n,r,t);n=e.startZOrder,a=e.zOrderStep,0===a&&(r+=1e4,0===r&&(r+=1e4))}let l=o+1;for(;l<=s-1;){const t=f(n+a);i(e[l],t),n=t,l++}s<=e.length-1&&i(e[s],r)}n=r,o=s}}function w(e){!function(e,t,i,s,o,n){let r=null;const a=[];for(const o of e)t(o)?(a.push(o),r=o):(i(o)||s(o))&&a.push(o);a.sort(n),null!==r&&o(r,0);const l=null===r?-1:a.indexOf(r);-1!==l?(S(a.slice(0,l),0,o,i),b(a.slice(l+1),0,o,i)):b(a,0,o,i)}(e,c.isMainSeriesState,c.isStudyState,c.isLineToolState,p,_)}function C(e,t){const i=Math.floor(e/1e4);let s=t.get(i);return void 0===s&&(s=[],t.set(i,s)),s}function T(e,t,i,s,o,n){let r=-1/0,a=1/0,l=-1/0,c=0;const h=new Map;for(let s=0;so(e)-o(t)));let _=I(o(u[0]));const p=M(_),m=v(_,p,u.length+1).zOrderStep;return 0!==m?(u.forEach((e=>{const t=f(_+m);s(e,t),_=t})),f(_+m)):f(p+5e3)}function P(e,t){return T(e,d,u,m,g,t)}function x(e){let t=-1e4;for(const i of e)u(i)&&(t=Math.min(t,i.zorder()-1e4));return 0===t?-1e4:t}function M(e){ -const t=1e4*Math.ceil(e/1e4);return t===e?t+1e4:t}function I(e){const t=1e4*Math.floor(e/1e4);return t===e?t-1e4:t}function A(e,t,i,s,o,n,r){const a=t.length,{newItems:l,movedItemsStartIndex:c}=i>0?(0,h.moveAfter)(e,t,i-1):(0,h.moveBefore)(e,t,0);let d=!1;for(let t=c;to(e)))?function(e,t,i,s,o,n){let r,a,l=-1,c=-1;0===i?(c=L(e,i+t,s),a=n(e[c])):i+t===e.length?(l=k(e,i-1,s),r=n(e[l])):(l=k(e,i-1,s),r=n(e[l]),c=L(e,i+t,s),a=n(e[c]));if((void 0===r||r<0)&&void 0!==a&&a<=0)S(e.slice(0,c),a,o,s);else if((void 0===a||a>0)&&void 0!==r&&r>=0)b(e.slice(l+1),r,o,s);else{i+t0)&&void 0!==a&&a>=0){c=a;const e=v(c,void 0!==l?l:M(a),t);c=e.startZOrder,_=e.zOrderStep,d=i,u=d+t,h=1}if(0!==_)for(;d!==u;){const t=f(c+h*_);n(e[d],t),c=t,d+=h}else{const t=e.findIndex((e=>o(e)));-1!==t?(S(e.slice(0,t),0,n,s),b(e.slice(t+1),0,n,s)):b(e,0,n,s)}}(l,a,c,o,s,n,r)}function L(e,t,i){for(;t=0&&i(e[t]);)t--;return Math.max(0,t)}function E(e,t,i,s,o,n,r){const a=e.indexOf(i)+1;A(e,t,a,s,o,n,r)}function D(e,t,i,s,o,n,r){const a=e.indexOf(i);A(e,t,a,s,o,n,r)}function B(e,t,i){E(e,t,i,l.isSeries,u,m,g)}function V(e,t,i){D(e,t,i,l.isSeries,u,m,g)}function R(e){const t=function(e){const t=new Map;for(const i of e.panes)for(const e of i.lines)t.set(e.id,{pane:i,line:e});return t}(e),i=new Map;for(const s of e.groups){const e=new Set(s.tools),r=s.tools.map((e=>(0,n.ensureDefined)(t.get(e)))).map((e=>e.line.zOrder)),a=Math.max(...r),l=(0,n.ensureDefined)(t.get(s.tools[0])).pane,c=(0,o.default)(l.lines,(t=>t.zOrder(0,n.ensureDefined)(t.get(e)).line.zOrders&&(a=e),r>=0&&a>=0)break}l.lines.splice(-1===a?1/0:a,0,o.line),l.lines.splice(r,1)}}return i}!function(e){e[e.MainSeriesZOrder=0]="MainSeriesZOrder",e[e.StudyBaseZOrder=1e4]="StudyBaseZOrder",e[e.MaxFractionLength=3]="MaxFractionLength"}(s||(s={}))},48961:(e,t,i)=>{"use strict";i.d(t,{getSymbolSearchCompleteOverrideFunction:()=>n,setSymbolSearchCompleteOverrideFunction:()=>o});let s=(e,t)=>Promise.resolve({symbol:e,name:t?.symbol??e});function o(e){s=e}function n(){return s}},19844:(e,t,i)=>{"use strict";i.d(t,{StudyMetaInfo:()=>S,getStudyIdWithVersion:()=>v}) -;var s=i(83873),o=i(90054),n=i(87465),r=i(9343),a=i(18113),l=i(4359),c=i(69422),h=i(60973),d=i(44862);const u=(0,r.getLogger)("Chart.Study.MetaInfo"),_=new Set(["CorrelationCoefficient@tv-basicstudies","Correlation - Log@tv-basicstudies-1"]),p=new Set([]),m=new Set(["line","shapes","chars","arrows","alertcondition"]),g=new Map([["AnchoredVWAP@tv-basicstudies","linetoolanchoredvwap"],["RegressionTrend@tv-basicstudies","linetoolregressiontrend"],["VbPAnchored@tv-basicstudies","linetoolanchoredvp"]]),f=/^([^\$]+)\$\d+$/,y=["bool","color","time","text_area"];function v(e){return S.cutDollarHash(e.id)+"-"+e.version}class S{constructor(e,t=!1){(0,n.merge)(this,{palettes:{},inputs:[],plots:[],graphics:{},defaults:{}}),(0,n.merge)(this,e);const i=e.fullId||e.id;(0,n.merge)(this,S.parseIdString(i)),this._updateInputDisplayDefaults(),this.useVersionFromMetaInfo=t}defaultInputs(){return this.inputs.map((e=>e.defval)).filter(n.isExistent)}state(){const e={};for(const[t,i]of Object.entries(this))"useVersionFromMetaInfo"!==t&&this.hasOwnProperty(t)&&(e[t]=(0,o.default)(i),"id"===t&&(e[t]+="-"+this.version));return e}symbolInputId(){return this.inputs.find((e=>"symbol"===e.type))?.id||null}createDefaults(){if(this.defaults){const e=(0,n.clone)(this.defaults);e.precision="default";const t=S.getStudyPropertyRootName(this);(0,h.createDefaults)(t,e)}}removeDefaults(){(0,h.removeDefaults)(S.getStudyPropertyRootName(this))}isPlotForceOverlay(e){const t=this.styles?.[e],i=this.plots.find((t=>t.id===e));return!!t?.forceOverlay||i&&(0,l.isOhlcPlot)(i)&&this.ohlcPlots?.[i.target]?.forceOverlay||!!this.ohlcPlots?.[e]?.forceOverlay}hasForceOverlayPlots(){return this.plots.some((e=>this.isPlotForceOverlay(e.id)))||Object.values(this.ohlcPlots??{}).some((e=>!!e?.forceOverlay))}static getSourceIdsByInputs(e,t){if(!Array.isArray(e)||!t)return[];const i=[];for(const o of e)if(S.isSourceInput(o)&&(0,s.default)(t[o.id])){const e=t[o.id];e.includes("$")&&i.push(e.split("$")[0])}return i}static isSourceInput(e){return Boolean(e.id&&(("source"===e.id||"src"===e.id)&&("text"===e.type||"source"===e.type)||"source"===e.type))}static getSourceInputIds(e){const t=[];for(const i of e.inputs)S.isSourceInput(i)&&t.push(i.id);return t}static setChildStudyMetaInfoPropertiesSourceId(e,t,i){for(const s of e.inputs){if(!S.isSourceInput(s))continue;const e=i.childs().inputs&&i.childs().inputs.childs()[s.id];if(e){const i=e.value(),s=f.exec(i);if(2===s?.length){if("{pid}"===s[1]){const s=i.replace(/^[^\$]+/,t);e.setValue(s)}}}}}static canBeChild(e){if((0,s.default)(e))return!0;if(!e)return!1;if(e.extra&&!S.isAllowedSourceInputsCount(e.extra.sourceInputsCount)||!0===e.canNotBeChild||!1===e.canBeChild||_.has(e.id))return!1;let t=0;for(const i of e.inputs)S.isSourceInput(i)&&(t+=1);return S.isAllowedSourceInputsCount(t)}static isAllowedSourceInputsCount(e){return 1===e}static canHaveChildren(e){if(e){if(e.isTVScriptStrategy||e.TVScriptSourceCode&&isStrategy(e.TVScriptSourceCode))return!1 -;if(e.id&&!p.has(e.id)&&Array.isArray(e.plots))for(const t of e.plots)if(m.has(t.type))return!0}return!1}static getChildSourceInputTitles(e,t,i){const s={};if(t.plots&&t.plots.length&&e.options&&e.options.length)for(const o of e.options){const e=o?+o.split("$")[1]:NaN,n=isFinite(e)&&t.plots[e];n&&m.has(n.type)&&(s[o]=t.styles&&t.styles[n.id]&&t.styles[n.id]?.title||n.id,i&&(s[o]=i+": "+s[o]))}return s}static canPlotBeSourceOfChildStudy(e){return m.has(e)}static getStudyPropertyRootName(e){const t=g.get(e.id);if(void 0!==t)return t;let i="study_"+e.id;return e.pine&&e.pine.version&&(i+="_"+e.pine.version.replace(".","_")),i}static getStudyPropertyRootNameById(e){const t=g.get(e);return void 0!==t?t:"study_"+e}static isScriptStrategy(e){return!1}static isReplayStrategy(e){return"ReplayStrategy@tv-scripting"===e.id}static parseIdString(e){return function(e){const t={};if(-1===e.indexOf("@"))t.shortId=e,t.packageId="tv-basicstudies",t.id=e+"@"+t.packageId,t.version=1;else{const i=e.split("@");t.shortId=i[0];const s=i[1].split("-");if(3===s.length)t.packageId=s.slice(0,2).join("-"),t.id=t.shortId+"@"+t.packageId,t.version=parseInt(s[2]);else if(1===s.length&&"decisionbar"===s[0])t.packageId="les-"+s[0],t.id=t.shortId+"@"+t.packageId,t.version=1;else{if(1!==s.length)throw new Error("unexpected study id:"+e);t.packageId="tv-"+s[0],t.id=t.shortId+"@"+t.packageId,t.version=1}}if(t.fullId=t.id+"-"+t.version,"tv-scripting"===t.packageId){const e=t.shortId;if(0===e.indexOf("Script$")||0===e.indexOf("StrategyScript$")){const i=e.indexOf("_");t.productId=i>=0?e.substring(0,i):t.packageId}else t.productId=t.packageId}else t.productId=t.packageId;return t}(e)}static versionOf(e){const t="_metainfoVersion"in e&&(0,n.isNumber)(e._metainfoVersion)?e._metainfoVersion:0;return t<0&&u.logError("Metainfo format version cannot be negative: "+t),t}static getPackageName(e){const t=/^[^@]+@([^-]+-[^-]+)/.exec(e||"");t?.[1]||(0,a.getPersistentLogger)()?.addPersistentLogEntry(`getStudyPackageName: study id ${e} with stack ${(new Error).stack}`,r.LOGLEVEL.INFO,"chart.StudyMetaInfo");const[,i="tv-basicstudies"]=t||[];return i}static cutDollarHash(e){const t=e.indexOf("$");if(-1===t)return e;const i=e.indexOf("@"),s=i>=0?e.substring(i):"";return e.substring(0,t)+s}static hasPubSuffix(e){return/^PUB;.+$/.test(e)}static hasStdSuffix(e){return/^STD;.+$/.test(e)}static isStandardPine(e){return/^(Strategy)?Script\$STD;.*@tv-scripting$/.test(e)}static getStudyIdWithLatestVersion(e,t){const i=S.cutDollarHash(e.id);let s=i;return i.indexOf("Portfolio@tv-scripting")>=0?s+=t?"!":"":"ReplayStrategy@tv-scripting"===s?s+="-581!":i.indexOf("@tv-scripting")>=0?s+="-101!":i.endsWith("CP@tv-basicstudies")?s+="-"+Math.min(e.version,207):i.endsWith("CP@tv-chartpatterns")?s+="-"+Math.min(e.version,9):i.endsWith("@tv-volumebyprice")||t?s+="-"+e.version+"!":s+="-"+e.version,s}static overrideDefaults(e){0!==e.length&&(0,d.applyOverridesToStudyDefaults)(this.savedStudiesOverrides,e,(e=>window.TradingView.defaultProperties[S.getStudyPropertyRootName(e)]||null))} -static mergeDefaultsOverrides(e){(0,n.merge)(this.savedStudiesOverrides,e)}static findStudyMetaInfoByDescription(e,t){if(e){const i=t.toLowerCase();for(const t of e)if(t.description.toLowerCase()===i)return t;throw new Error("unexpected study id:"+t)}throw new Error("There is no studies metainfo")}_updateInputDisplayDefaults(){this.inputs.filter((e=>void 0===e.display)).forEach((e=>{y.includes(e.type)?e.display=c.InputDisplayFlags.None:e.display=c.InputDisplayFlags.All}))}}S.savedStudiesOverrides={},window.TradingView.StudyMetaInfo=S},94078:(e,t,i)=>{"use strict";window.TradingView=window.TradingView||{},i(32563).setClasses(),i(57298),i(56186).install(),i(49483),i(40167),i(11417),i(29063),i(1765),i(68659)},37150:(e,t,i)=>{"use strict";var s=i(81251),o=i(20057),n=i(50151),r=i(52959),a=i(11542),l=(i(18092),i(32517),i(5992),i(87457),i(34907),i(37103));const c=(0,r.getChartingLibraryGlobalContext)();JSON.parse(c.urlParams.disabledFeatures).forEach((e=>{l.setEnabled(e,!1)})),JSON.parse(c.urlParams.enabledFeatures).forEach((e=>{l.setEnabled(e,!0)}));i(94078);var h=i(60973),d=(i(48480),i(1765));const u=(0,r.getChartingLibraryGlobalContext)(),_=(0,r.getChartingLibraryOwner)();u.__settingsOverrides=_.settingsOverrides||{};const p=_.settingsAdapter;null!=p?(d.setSettingsAdapter(p),d.sync()):l.enabled("use_localstorage_for_settings")&&d.sync();var m=i(84617);const g=(0,r.getChartingLibraryGlobalContext)();g.urlParams.customFontFamily&&(0,m.setChartFontFamily)(g.urlParams.customFontFamily);var f=i(38881);class y extends f.ChunkLoader{_startLoading(){return Promise.all([i.e(5700),i.e(8185),i.e(1681),i.e(3439),i.e(8933),i.e(6032),i.e(3672),i.e(3359),i.e(4587),i.e(8260),i.e(1979),i.e(7780),i.e(4495),i.e(7827),i.e(844),i.e(9836),i.e(683),i.e(6697),i.e(1166),i.e(3946),i.e(6956),i.e(3014),i.e(4240),i.e(2227),i.e(8402),i.e(3179),i.e(6193),i.e(917),i.e(5516)]).then(i.bind(i,92024)).then((e=>e.getRestrictedToolSet()))}}var v,S,b=i(9753),w=i(72877);function C(e=[],t=[]){const i=document.createElement("div"),s=document.createElement("div");return i.appendChild(s),i.classList.add(w.container),s.classList.add(w.inner),e.forEach((e=>{i.classList.add(w[e])})),t.forEach((e=>{i.classList.add(w[e])})),i}!function(e){e.Top="border-top",e.Right="border-right",e.Bottom="border-bottom",e.Left="border-left"}(v||(v={})),function(e){e.TopLeft="top-left-radius",e.TopRight="top-right-radius",e.BottomLeft="bottom-left-radius",e.BottomRight="bottom-right-radius"}(S||(S={}));class T extends f.ChunkLoader{constructor(e,t){super(),this._toolsBootloader=e,this._headerProps=t,this._headerProps.resizerBridge.negotiateHeight(b.HEADER_TOOLBAR_HEIGHT_EXPANDED),this._headerProps.resizerBridge.container.value().appendChild(C())}_startLoading(){return Promise.all([this._toolsBootloader.load(),this._loadHeaderToolbar()]).then((([e,t])=>new t(this._headerProps.resizerBridge.container.value(),{...this._headerProps,tools:e})))}_loadHeaderToolbar(){return Promise.all([i.e(8370),i.e(9297),i.e(2227),i.e(3005)]).then(i.bind(i,38254)).then((e=>e.HeaderToolbarRenderer))}} -var P=i(55308),x=i(66593);class M extends f.ChunkLoader{constructor(e){super(),this._opts=e,P.isDrawingToolbarVisible.value()&&(this._opts.resizerBridge.negotiateWidth(x.TOOLBAR_WIDTH_EXPANDED),this._opts.resizerBridge.container.value().appendChild(C()))}_startLoading(){return Promise.all([i.e(3721),i.e(8185),i.e(1681),i.e(3439),i.e(8933),i.e(6032),i.e(3359),i.e(4587),i.e(8260),i.e(4495),i.e(7827),i.e(9323),i.e(844),i.e(6697),i.e(1166),i.e(6178),i.e(9468),i.e(2227),i.e(4931),i.e(3179),i.e(769),i.e(1890),i.e(1727),i.e(2878)]).then(i.bind(i,7314)).then((e=>new e.DrawingToolbarRenderer(this._opts.resizerBridge.container.value(),{...this._opts})))}}var I=i(14411),A=i(32563),L=i(22489),k=i(45345);var E=i(34840),D=i(26709),B=i(3343);function V(e){if("number"==typeof e)return e;switch(e.toLowerCase()){case"ctrl":return B.Modifiers.Control;case"shift":return B.Modifiers.Shift;case"alt":return B.Modifiers.Alt;default:return e.length>1&&console.warn(`Unsupported key name: "${e}", Only single-letter key names are supported.`),console.warn("Starting from v31, string key names are no longer supported. Please use key codes instead."),e.toUpperCase().charCodeAt(0)}}function R(e){let t=0;for(let i=0;i{if(!G)return void this._actionHandler(e,t,s,o);const{newValue:n,dialogClose:r}=e,l=(await this._doLoad()).find((e=>e.name===n));r(),void 0!==l?this._hide=await(0,j.showConfirm)({title:a.t(null,void 0,i(7219)),text:a.t(null,void 0,i(67635)),onConfirm:({dialogClose:e})=>{e(),this._doOverwriteExistingLayout(l.id,n,t,s,o)},onCancel:({dialogClose:e})=>{e(),this._showDialog(n,t,s,o)}}):this._actionHandler({newValue:n,dialogClose:r},t,s,o)},onClose:()=>this._visibility.setValue(!1)})}_doSaveCurrentLayout(e,t,i,s){const o=this._chartWidgetCollection.metaInfo.name.value();this._chartWidgetCollection.metaInfo.name.setValue(e),this._doSave(t,i,(()=>{this._chartWidgetCollection.metaInfo.name.setValue(o),s?.()}))}_doOverwriteExistingLayout(e,t,i,s,o){ -const n=this._chartWidgetCollection.metaInfo.name.value();this._chartWidgetCollection.metaInfo.id.setValue(e),this._chartWidgetCollection.metaInfo.name.setValue(t),this._doSave(i,s,(()=>{this._chartWidgetCollection.metaInfo.name.setValue(n),o?.()}))}}class $ extends q{cloneChart(){this._cloneChart().then((()=>this._visibility.setValue(!0)))}show(){W((()=>this.cloneChart()),{source:"Clone chart"})}_dialogTitle(){return a.t(null,void 0,i(66134))}_dialogText(){return a.t(null,void 0,i(9541))+":"}_actionHandler({newValue:e,dialogClose:t}){l.enabled("saveload_storage_customization")&&this._doCloneCurrentLayout(e),t()}async _cloneChart(){let e;try{e=await U()}catch{return void showErrorDialog({content:a.t(null,void 0,i(73013))})}e&&(this._hide=await this._showDialog(this._getInitialRenameDialogInput()))}_doCloneCurrentLayout(e){const t=this._chartWidgetCollection.metaInfo.name.value();this._chartWidgetCollection.metaInfo.uid.deleteValue(),this._chartWidgetCollection.metaInfo.id.setValue(null),this._chartWidgetCollection.metaInfo.name.setValue(e),this._doSave(void 0,void 0,(()=>{this._chartWidgetCollection.metaInfo.name.setValue(t)}))}_getInitialRenameDialogInput(){return a.t(null,{context:"ex: AAPL chart copy"},i(97559)).format({title:this._chartWidgetCollection.metaInfo.name.value()})}}class K extends q{show(e,t,i){const s="function"==typeof e?e:void 0;this._saveNewChart(s,t,i).then((()=>this._visibility.setValue(!0)))}_dialogTitle(){return a.t(null,void 0,i(43047))}_dialogText(){return a.t(null,void 0,i(9541))+":"}_actionHandler({newValue:e,dialogClose:t},i,s,o){this._doSaveCurrentLayout(e,i,s,o),t()}async _saveNewChart(e,t,s){let o;try{o=await U()}catch{return void showErrorDialog({content:a.t(null,void 0,i(73013))})}const n=this._chartWidgetCollection.metaInfo.name.value();this._hide=await this._showDialog(n,e,t,s)}}class Y extends q{show(){W((()=>this._show()),{source:"Rename chart"})}_dialogTitle(){return a.t(null,void 0,i(22584))}_dialogText(){return a.t(null,void 0,i(9541))+":"}_actionHandler({newValue:e,dialogClose:t}){this._doSaveCurrentLayout(e),t()}async _show(){await this._renameChart(),this._visibility.setValue(!0)}async _renameChart(){const e=this._chartWidgetCollection.metaInfo.name.value();this._hide=await this._showDialog(e)}}class Z{constructor(e,t,i){if(this._autosaveTimer=null,this._watchedAutoSaveEnabled=new O.WatchedValue,this._toggleAutoSaveEnabledHandler=this._toggleAutoSaveEnabled.bind(this),this._doSave=(e,t,i,s)=>{void 0!==e&&e();const o=this._chartChangesWatcher.changes();this._chartSaver.saveChartSilently((e=>{var i;e&&e.uid===this.layoutId()&&(i=e.uid,"/chart/"===location.pathname&&(location.href="/chart/"+i)),void 0!==t&&t(e)}),(()=>{void 0!==i&&i()}),{autoSave:Boolean(s),changes:o})},this._doLoad=()=>z.backend.getCharts(),this._chartWidgetCollection=e,this._chartSaver=t,this._createController=new K(e,this._doSave,this._doLoad),this._renameController=new Y(e,this._doSave,this._doLoad),this._saveAsController=new $(e,this._doSave,this._doLoad),this._chartChangesWatcher=i, -e.saveKeysPressed().subscribe(this,this.saveChartOrShowTitleDialog),this._chartChangesWatcher.getOnChange().subscribe(this,this._onStateChanged),l.enabled("saveload_separate_drawings_storage")){const e=!0;e&&this._enableAutoSave(),this._watchedAutoSaveEnabled.setValue(e),this._watchedAutoSaveEnabled.subscribe(this._toggleAutoSaveEnabledHandler),this._autoSaveEnabledSetting?.getOnChange().subscribe(this,this._autoSaveEnabledSettingHandler)}}autoSaveEnabled(){return this._watchedAutoSaveEnabled}destroy(){l.enabled("saveload_separate_drawings_storage")&&(this._watchedAutoSaveEnabled.unsubscribe(),delete this._watchedAutoSaveEnabled,this._autoSaveEnabledSetting?.destroy(),delete this._autoSaveEnabledSetting)}getCreateController(){return this._createController}getRenameController(){return this._renameController}getSaveAsController(){return this._saveAsController}cloneChart(){this._saveAsController.cloneChart()}createEmptyChart(){this._createEmptyController?.show()}saveChartAs(){this._saveAsController.show()}renameChart(){this._renameController.show()}saveNewChart(e,t,i){this._createController.show(e,t,i)}saveExistentChart(e,t,i){this._doSave(e,t,i)}changes(){return this._chartChangesWatcher.changes()}hasChanges(){return 0!==this._chartChangesWatcher.changes()}hasChangesWV(){return this._chartChangesWatcher.hasChangesWV()}getOnChanges(){return this._chartChangesWatcher.getOnChange()}saveChartOrShowTitleDialog(e,t,i){const s=window.saver.isSaveInProcess(),o=this._chartChangesWatcher.hasChanges(),n=!!this.layoutId();window.is_authenticated&&(s||!o&&n)||W((()=>{null!=this._chartWidgetCollection.metaInfo.id.value()?this.saveExistentChart(e,t,i):this._chartWidgetCollection.readOnly()?this.cloneChart():this.saveNewChart(e,t,i)}),{source:"Save chart",sourceMeta:"Chart"})}saveToJSON(e){return this._chartSaver.saveToJSON(e)}saveChartSilently(e,t,i){this._chartSaver.saveChartSilently(e,t,i)}setAutoSaveEnabled(e){window.is_authenticated&&window.saver.isSaveInProcess()||W((()=>{this._watchedAutoSaveEnabled.setValue(e)}),{source:"AutoSave chart"})}saveChartLineTools(e,t,i,s){return this._chartSaver.saveChartLineTools(e,t,i,s)}layoutId(){return this._chartWidgetCollection.metaInfo.uid.value()}chartSaved(){return this._chartSaver.chartSaved()}_autoSaveEnabledSettingHandler(e){0}_toggleAutoSaveEnabled(e){0}_enableAutoSave(){0}_disableAutoSave(){0}_onStateChanged(e){e?this._startAutosave():this._stopAutosave()}_startAutosave(){l.enabled("charts_auto_save")&&null===this._autosaveTimer&&(this._autosaveTimer=setTimeout((()=>{this._autosaveTimer=null,this._chartWidgetCollection.metaInfo.id.value()&&this._doSave(void 0,void 0,void 0,!0)}),6e4))}_stopAutosave(){null!==this._autosaveTimer&&(clearInterval(this._autosaveTimer),this._autosaveTimer=null)}}var X=i(38414),J=i(95406),Q=i(21097),ee=i(76422),te=i(67763);class ie extends te.CommonJsonStoreService{constructor(e,t){super(e,t,"FAVORITE_CHARTS_CHANGED","loadChartDialog.favorites",{})}}function se(){return!(l.enabled("saveload_requires_authentication")&&!window.is_authenticated)} -class oe extends X.DialogRenderer{constructor(e=null){super(),this._chartWidgetCollection=null,this._promise=null,this._dialog=null,this._onLoginStateChange=()=>{se()||this._setState({chartList:[],favorites:{},recents:[]})},this._onActiveChartNameChange=e=>{const{chartList:t}=this._state.value(),i=this._chartWidgetCollection;if(!i)return;const s=[];let o;t.forEach((t=>{if(t.id===i.metaInfo.id.value())return o=t,void s.push({...t,name:e});s.push(t)})),o&&this._setState({chartList:s})},this._subscribe=e=>{this._setVisibility(e)},this._getChartEntry=e=>({id:e.id,url:e.url,name:e.name,symbol:e.short_symbol,interval:e.interval,toolsCount:0,modified:e.modified_iso,favorite:void 0,active:()=>this._isActiveChart(e.id),openAction:(t,i)=>this.loadChart(e,t,i),deleteAction:()=>this._deleteChart(e),favoriteAction:()=>this._handleFavorite(e)}),this._isActiveChart=e=>null!==this._chartWidgetCollection&&e===this._chartWidgetCollection.metaInfo.id.value(),this._deleteChart=e=>z.backend.removeChart(e.image_url).then((()=>{const{chartList:t,favorites:i}=this._state.value(),s=t.filter((t=>t.id!==e.id));if(this._favoriteChartsService){const t={...i};t[e.id]&&delete t[e.id],this._favoriteChartsService.set(t)}se()&&this._setState({chartList:s}),this._isActiveChart(e.id)&&(l.enabled("saveload_storage_customization")||isSymphonyEmbed()?null!==this._chartWidgetCollection&&this._chartWidgetCollection.clearChartMetaInfo():location.href="/chart/"+location.search)})),this._chartWidgetCollection=e,this._favoriteChartsService=new ie(Q.TVXWindowEvents,d);const t=this._favoriteChartsService?.get()||{};this._state=new O.WatchedValue({chartList:[],recents:[],favorites:t}),this._chartWidgetCollection?.metaInfo.name.subscribe(this._onActiveChartNameChange),window.loginStateChange.subscribe(null,this._onLoginStateChange)}showLoadDialog(){W(this._showLoadDialog.bind(this),{source:"Load chart",sourceMeta:"Chart"})}show(){this.showLoadDialog()}hide(){this._dialog?.hide(),this._dialog?.visible().unsubscribe(this._subscribe)}state(){return this._state.readonly()}refreshChartList(e){return(se()?z.backend.getCharts():Promise.resolve([])).then((t=>{if(!se())return;const i=t.map(this._getChartEntry);this._setState({chartList:i,favorites:this._initFavorites(i)}),void 0!==e&&e()}))}getRecentCharts(e){}async deleteAllFavorites(){return Promise.resolve()}async loadChart(e,t,i){{const t=await z.backend.loadLayout(e);ee.emit("chart_load_requested",t.chartWidgetCollectionState)}}async loadChartByUrl(e,t,i){let s=this._state.value().chartList.find((t=>t.url===e));s||(await this.refreshChartList(),s=this._state.value().chartList.find((t=>t.url===e))),await(s?.openAction(t,i))}async _handleFavorite(e){const{favorites:t}=this._state.value(),i={...t};i[e.id]?delete i[e.id]:i[e.id]=!0,this._favoriteChartsService?.set(i),se()&&this._setState({favorites:i})}_showLoadDialog(){this.refreshChartList((()=>{ -const e=this._promise=Promise.all([i.e(5121),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(8933),i.e(2537),i.e(8894),i.e(1697),i.e(8260),i.e(1979),i.e(4495),i.e(7827),i.e(9970),i.e(683),i.e(1450),i.e(7463),i.e(4),i.e(2227),i.e(4931),i.e(9418),i.e(3179),i.e(917),i.e(5386),i.e(6864),i.e(5009)]).then(i.bind(i,3650)).then((t=>{this._promise===e&&(this._dialog&&(this._dialog.hide(),this._dialog.visible().unsubscribe(this._subscribe)),this._dialog=new t.LoadChartDialogRenderer({chartWidgetCollection:this._chartWidgetCollection,serviceState:this.state()}),this._dialog.visible().subscribe(this._subscribe),this._dialog.show())}))}))}_setState(e){this._state.setValue({...this._state.value(),...e})}async _changeFavoriteState(e,t,i){return Promise.resolve()}_initFavorites(e){if(this._favoriteChartsService)return this._favoriteChartsService.get();const t={};return e.filter((e=>e.favorite)).forEach((e=>{t[e.id]=!0})),t}}var ne=i(9343),re=(i(10892),i(51768)),ae=i(48096);const le=(0,ne.getLogger)("Platform.StudyTemplates"),ce=a.t(null,void 0,i(15096));class he{constructor(e){this._chartWidgetCollection=e.chartWidgetCollection,this._recentStudyTemplatesService=e.recentStudyTemplatesService,window.loginStateChange.subscribe(null,z.backend.invalidateStudyTemplatesList),this._list=new O.WatchedValue([]),this._onChange=new ae.Delegate,this._list.subscribe((()=>this._onChange.fire()))}findRecordByName(e){return this._list.value().find((t=>t.name===e))||null}showSaveAsDialog(e){const t=this._chartWidgetCollection.activeChartWidget.value().model();Promise.all([i.e(7336),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(1171),i.e(6032),i.e(3672),i.e(2537),i.e(8894),i.e(5743),i.e(3425),i.e(7780),i.e(4495),i.e(9487),i.e(9323),i.e(6052),i.e(159),i.e(683),i.e(6633),i.e(7519),i.e(2227),i.e(4931),i.e(9418),i.e(3179),i.e(769),i.e(5705),i.e(6631)]).then(i.bind(i,13657)).then((i=>{new i.StudyTemplateSaver({controller:t,onSave:(e,t)=>{t&&this._recentStudyTemplatesService?.add(t),this._list.setValue(e)}}).show(e)}))}applyTemplate(e){const t=this.findRecordByName(e);null!==t?window.runOrSignIn((async()=>{const{id:e,name:i,is_default:s}=t,o=this._chartWidgetCollection.activeChartWidget.value(),n=e=>{(0,re.trackEvent)("GUI","Load Study Template");const t=JSON.parse(e.content),s=t.symbol;t.interval,Boolean(s)&&o.model().mainSeries().symbolSameAsCurrent(s);o.model().applyStudyTemplate(t,i)};s&&"number"==typeof e?await z.backend.getStandardStudyTemplateById(e,n):await z.backend.getStudyTemplateById(e).then(n)}),{source:"Study templates apply"}):le.logNormal(`Template ${e} not found in cache`)}deleteStudyTemplate(e,t,i){const s=this.findRecordByName(e);null!==s?this._removeTemplate(s,t,i):le.logNormal(`Template ${e} not found in cache`)}list(){return this._list.value()}getOnChange(){return this._onChange}refreshStudyTemplateList(e){z.backend.getStudyTemplatesList().then((t=>{this._list.setValue(t),void 0!==e&&e()}))}invalidate(){z.backend.invalidateStudyTemplatesList()}_removeTemplate(e,t,i){window.runOrSignIn((()=>{ -(0,j.showConfirm)({text:ce.format({name:e.name}),onConfirm:({dialogClose:t})=>new Promise((s=>{z.backend.invalidateStudyTemplatesList(),z.backend.removeStudyTemplate(e.id).then((()=>{this.refreshStudyTemplateList((()=>{const o=this.list();this._list.setValue(o.filter((t=>t!==e))),this._recentStudyTemplatesService&&this._recentStudyTemplatesService.remove(e.id),s(),t(),i?.()}))}))}))},t)}),{source:"Study templates delete"})}}var de=i(29803),ue=i(26010),_e=i(35727);class pe{constructor(e,t){this._visibility=new O.WatchedValue(!1),this._dialogPromise=null,this._dialog=null,this._chartWidgetCollection=e,this._options=t}visible(){return this._visibility.readonly()}show(e,t,i){const s=Array.isArray(e)?e:[],o=Array.isArray(e)?void 0:e;null===this._dialog&&this._requestDialog(s??[],t,i,o),this._dialog?.open(s??[],this._options?.indicatorsPreloader?.getIndicatorPromises(),t,i,o)}hide(){this._dialog?.hide()}getDialog(){return this._dialog}resetAllPages(){this._dialog?.resetAllStudies()}_requestDialog(e,t,s,o){if(null===this._dialogPromise){let n;n=Promise.all([i.e(2346),i.e(8185),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(2537),i.e(1697),i.e(7833),i.e(8260),i.e(509),i.e(7463),i.e(3853),i.e(2227),i.e(9418),i.e(6864),i.e(6456)]).then(i.bind(i,86682)).then((e=>new e.IndicatorsLibraryContainer(this._chartWidgetCollection,this._options))),this._dialogPromise=n.then((i=>{this._dialog=i,this._dialog.visible().subscribe((e=>{this._visibility.setValue(e)})),this._dialog.open(e,this._options?.indicatorsPreloader?.getIndicatorPromises(),t,s,o)}))}return this._dialogPromise}}var me=i(88723),ge=i(39527),fe=i(4226),ye=i(18712),ve=i(23714),Se=i(61786),be=i(97363),we=i(3190),Ce=i(37236),Te=i(87453),Pe=i(10845);const xe=/^Etc\/GMT([+-])(\d{1,2}):?(\d\d)?$/,Me=new Map;function Ie(e){if(Me.has(e))return Me.get(e);const t=xe.test(e);return Me.set(e,t),t}const Ae=new Map;function Le(e){if(Ae.has(e))return Ae.get(e);const t=function(e){const t=e.match(xe);if(!t)return 0;const i="+"===t[1]?-1:1;return 60*(60*parseInt(t[2],10)+parseInt(t[3]||"0",10))*i}(e),i={time:[1924992e3+t],offset:[t]};return Ae.set(e,i),i}let ke=null;const Ee=new Map;class De{constructor(){this._customTimezones=new Map}addTimezones(e){e.forEach((e=>{const{id:t,...i}=e;this._addTimezone(t,i)})),this.updateChartTimezones()}listTimezoneIds(){return[...this._customTimezones.keys()]}listTimezones(){return[...this._customTimezones.entries()].map((([e,t])=>({id:e,...t})))}getTimezoneInfo(e){if(!this.timezoneIsAvailable(e))throw new Error("Provided timezone alias is not within the list of supported timezones.");return(0,n.ensure)(this._customTimezones.get(e))}getAllTimezoneInfo(){return this.listTimezones()}getAliasTimezone(e){return this.getTimezoneInfo(e).alias}timezoneIsAvailable(e){return this._customTimezones.has(e)}updateChartTimezones(){(0,Pe.updateAvailableTimezones)(this.getAllTimezoneInfo())}getTimezoneData(e){if(Ee.has(e))return Ee.get(e);let t=null;if(Ie(e))t=Le(e);else if(this.timezoneIsAvailable(e)){const i=this.getAliasTimezone(e);Te.tzData[i]&&(t=Te.tzData[i]), -!t&&Ie(i)&&(t=Le(i))}return t&&Ee.set(e,t),t}static instance(){return null===ke&&(ke=new De),ke}_addTimezone(e,t){try{if((0,n.ensure)(e,"Custom timezone ID"),(0,n.ensure)(t.alias,"Custom timezone alias"),(0,n.ensure)(t.title,"Custom timezone title"),(0,Pe.timezoneIsAvailable)(e)&&!this.timezoneIsAvailable(e))throw new Error("Custom timezone id already exists.");if(!(0,Pe.timezoneIsSupported)(t.alias)&&!Ie(t.alias))throw new Error("Custom timezone alias is not a supported timezone.");if(e.length<1)throw new Error("Custom timezone id is empty");if(t.title.length<1)throw new Error("Custom timezone title is empty");this._customTimezones.set(e,t)}catch(e){console.warn(`Unable to add custom timezone. ${e}`)}}}(0,Ce.setCustomTimezones)(De);var Be=i(91106);let Ve=null;var Re=i(46082);class Ne{constructor(e){this._alive=new O.WatchedValue,this._container=new O.WatchedValue,this._width=new O.WatchedValue,this._height=new O.WatchedValue,this._fullscreen=new O.WatchedValue,this._detachable=new O.WatchedValue,this._fullscreenable=new O.WatchedValue,this._visible=new O.WatchedValue,this._availWidth=new O.WatchedValue,this._availHeight=new O.WatchedValue,this._owner=new O.WatchedValue,this._ownersStack=[],this.owner=this._owner.readonly(),this._bridge={alive:this._alive.readonly(),container:this._container.readonly(),width:this._width.readonly(),height:this._height.readonly(),fullscreen:this._fullscreen.readonly(),detachable:this._detachable.readonly(),fullscreenable:this._fullscreenable.readonly(),visible:this._visible.readonly(),availWidth:this._availWidth.readonly(),availHeight:this._availHeight.readonly(),remove:()=>{const e=this._owner.value();e&&e.remove&&e.remove()},negotiateWidth:e=>{const t=this._owner.value();t&&t.negotiateWidth&&t.negotiateWidth(e)},negotiateHeight:e=>{const t=this._owner.value();t&&t.negotiateHeight&&t.negotiateHeight(e)},requestFullscreen:()=>{const e=this._owner.value();e&&e.requestFullscreen&&e.requestFullscreen()},exitFullscreen:()=>{const e=this._owner.value();e&&e.exitFullscreen&&e.exitFullscreen()},detach:e=>{const t=this._owner.value();t&&t.detach&&t.detach(e)},attach:()=>{const e=this._owner.value();e&&e.attach&&e.attach()}},e&&this.pushOwner(e)}destroy(){for(const e of this._ownersStack)this._unsubscribeOwner(e)}bridge(){return this._bridge}pushOwner(e){if(!e.alive.value())return;for(const e of this._ownersStack)this._unsubscribeOwner(e);const t={owner:e};this._ownersStack.push(t),this._subscribeOwner(t)}_subscribeOwner(e){const t=e.owner;if(e.deathWatcher||(this._alive.setValue(!0),e.deathWatcher=t.alive.spawn(),e.deathWatcher.subscribe((t=>{t||this._deadHandler(e)}))),this._owner.setValue(t),!e.subscriptions){const i=e.subscriptions=[];this._visible.setValue(!1);const s=(e,t)=>{if(e){const s=e.spawn();i.push(s),s.subscribe((e=>{t.setValue(e)}),{callWithLast:!0})}else t.deleteValue()};s(t.container,this._container),s(t.width,this._width),s(t.height,this._height),s(t.fullscreen,this._fullscreen),s(t.detachable,this._detachable),s(t.fullscreenable,this._fullscreenable), -s(t.availWidth,this._availWidth),s(t.availHeight,this._availHeight),s(t.visible,this._visible)}}_unsubscribeOwner(e,t){if(e.subscriptions){for(const t of e.subscriptions)t.unsubscribe();e.subscriptions=null}t&&e.deathWatcher&&(e.deathWatcher.unsubscribe(),e.deathWatcher=null)}_deadHandler(e){const t=this._ownersStack.indexOf(e);(0,n.assert)(-1!==t,"sanitized owner should be in stack");for(let e=this._ownersStack.length-1;e>=t;e--)this._unsubscribeOwner(this._ownersStack[e],!0);this._ownersStack.length=t,t>0?this._subscribeOwner(this._ownersStack[t-1]):(this._alive.setValue(!1),this._owner.deleteValue())}}class Oe{constructor(e){this._document=e,this.isFullscreen=new O.WatchedValue;const t=()=>{const e=["fullscreenElement","webkitFullscreenElement","mozFullscreenElement","mozFullScreenElement","msFullscreenElement"];for(let t=0;t{this.isVisible.setValue(!e[o])},i(),e.addEventListener(t,i,!1);break}}this.destroy=()=>{i&&(e.removeEventListener(t,i,!1),i=null)}}}var We,He=i(84015),ze=i(49483);!function(e){e.Quirks="quirks",e.Visual="visual"}(We||(We={}));function Ue(e,t){let i=0;for(const{min:s,max:o}of t){if(e0&&t.push({min:e,max:s})}return t.sort(((e,t)=>e.min-t.min||e.max-t.max)),t}function Ge(e,t){if(e.length!==t.length)return!1;for(let i=e.length;i--;){if(e[i].min!==t[i].min)return!1;if(e[i].max!==t[i].max)return!1}return!0}const qe=l.enabled("no_min_chart_width");var $e;!function(e){e[e.MinChartHeight=300]="MinChartHeight",e[e.MinChartWidth=300]="MinChartWidth",e[e.DefaultOffset=4]="DefaultOffset",e[e.ThinOffset=1]="ThinOffset",e[e.TopToolbarMargin=0]="TopToolbarMargin"}($e||($e={}));const Ke=l.enabled("bypass_chart_height_check");function Ye(e){const t=l.enabled("side_toolbar_in_fullscreen_mode"),i=l.enabled("header_in_fullscreen_mode");return"center"===e||"left"===e&&t||"top"===e&&i}var Ze=i(32544),Xe=i(60709),Je=i(16216),Qe=(i(7304), -i(16738)),et=i(83873),tt=i(87465),it=i(69109),st=i(72270);const ot=(0,ne.getLogger)("Common.UndoStack");class nt{constructor(){this._commands=[],this._onChange=new ae.Delegate}onChange(){return this._onChange}isEmpty(){return 0===this._commands.length}size(){return this._commands.length}clear(){this.isEmpty()||(this._commands.length=0,this._onChange.fire())}push(e){if(!(e instanceof st.UndoCommand))throw new TypeError("argument must be an instance of UndoCommand");this._commands.push(e),this._onChange.fire(e)}pop(){if(this.isEmpty())return void ot.logDebug("pop: undo stack is empty");const e=this._commands.pop();return this._onChange.fire(e),e}head(){if(!this.isEmpty())return this._commands[this._commands.length-1]}}class rt extends st.UndoCommand{constructor(e){super(e,!1),this._subcommands=[]}addCommand(e){this._subcommands.push(e)}isEmpty(){return 0===this._subcommands.length}redo(e){for(let t=0;t=0;t--)this._subcommands[t].undo(e)}commands(){return this._subcommands}affectsState(){return this._subcommands.some((e=>e.affectsState()))}}class at extends st.UndoCommand{constructor(e,t,i,s,o=!0){super(s,void 0,o),this._setter=e,this._oldValue=t,this._newValue=i}redo(){this._setter(this._newValue)}undo(){this._setter(this._oldValue)}}class lt extends at{constructor(e,t,i,s,o=!0){super((e=>this._vwState.setValue(e)),t,i,s,o),this._vwState=e}}const ct=(0,ne.getLogger)("Common.UndoHistory");var ht=i(87296),dt=i(95804),ut=i(3354);const _t=new dt.TranslatedString("change chart layout to {title}",a.t(null,void 0,i(68846)));class pt extends st.UndoCommand{constructor(e,t){super(_t.format({title:ut.layouts[t].title})),this._chartWidgetCollection=e,this._newLayoutType=t,this._oldLayoutType=e.layout.value()}redo(){this._chartWidgetCollection.setLayout(this._newLayoutType)}undo(){this._chartWidgetCollection.setLayout(this._oldLayoutType)}}var mt=i(78861),gt=i(68335),ft=i(48943),yt=i(62773);function vt(e){const t={};return{promise:new Promise(((i,s)=>{e.subscribe(t,i,!0)})),destroy:()=>{e.unsubscribeAll(t)}}}var St=i(26867),bt=i(82095),wt=i(29447);class Ct extends X.DialogRenderer{constructor(e){super(),this._dialog=null,this._subscribe=e=>{this._setVisibility(e)},this._chartWidgetCollection=e}show(e){const t=this._chartWidgetCollection,s=t.activeChartWidget.value();return s.generalPropertiesDefinitions().then((o=>Promise.all([i.e(7871),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(1171),i.e(8933),i.e(6032),i.e(3672),i.e(2537),i.e(3359),i.e(8894),i.e(5743),i.e(3425),i.e(1697),i.e(4587),i.e(7833),i.e(8752),i.e(1979),i.e(4495),i.e(9487),i.e(445),i.e(846),i.e(7827),i.e(9323),i.e(8220),i.e(3329),i.e(9970),i.e(6052),i.e(844),i.e(9590),i.e(4678),i.e(159),i.e(9965),i.e(9742),i.e(6043),i.e(1488),i.e(509),i.e(3014),i.e(4422),i.e(2227),i.e(4931),i.e(9418),i.e(4426),i.e(9026),i.e(769),i.e(9928),i.e(8604),i.e(5893),i.e(624),i.e(7078)]).then(i.bind(i,56080)).then((i=>{ -const n=new i.GeneralChartPropertiesDialogRenderer({chartWidgetCollection:t,propertyPages:o,activePageId:this._activePageId,model:s.model()});return this._dialog?.hide(),this._dialog?.visible().unsubscribe(this._subscribe),this._dialog=n,n.visible().subscribe(this._subscribe),n.show(e),this._activePageId=void 0,n}))))}hide(){this._dialog?.hide()}isVisible(){return this.visible().value()}focusOnText(){}setActivePage(e){this._activePageId=e}}class Tt extends X.DialogRenderer{constructor(e){super(),this._dialog=null,this._subscribe=e=>{this._setVisibility(e)},this._chartWidgetCollection=e}show(e){this._load().then((t=>{this._dialog?.hide(),this._dialog?.visible().unsubscribe(this._subscribe),this._dialog=t,t.visible().subscribe(this._subscribe),t.show(e),ee.emit("compare_add")}))}hide(){this._dialog?.hide()}_load(){return Promise.all([Promise.all([i.e(4040),i.e(7271)]).then(i.bind(i,43900)),Promise.all([i.e(8955),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(1171),i.e(8933),i.e(6032),i.e(3672),i.e(3359),i.e(3425),i.e(1697),i.e(4587),i.e(7833),i.e(8752),i.e(445),i.e(846),i.e(6956),i.e(9002),i.e(2227),i.e(4931),i.e(9418),i.e(3179),i.e(4426),i.e(9026),i.e(731)]).then(i.bind(i,14283))]).then((([e,t])=>{const i=new e.CompareModel(this._chartWidgetCollection);return t.getCompareDialogRenderer(i)}))}}var Pt=i(12217),xt=i(95059);const Mt=()=>i.e(4389).then(i.bind(i,67090));function It(e,t={}){return Mt().then((i=>i.copyToClipboardImageOfChart(e,t)))}function At(e,t={}){return Mt().then((i=>i.getImageOfChartSilently(e,t)))}var Lt=i(11946);function kt(e){const t=e.querySelector("#chart-aria-description");if(null!==t)return t;const i=e.createElement("div");return i.id="chart-aria-description",i.tabIndex=-1,i.role="alert",i.ariaLive="assertive",e.body.appendChild(i),i}function Et(e,t){const i={weekday:"long",year:"numeric",month:"long",day:"numeric",hour:t?"2-digit":void 0,minute:t?"2-digit":void 0,hour12:!0};return new Date(1e3*e).toLocaleString(void 0,i)}class Dt{constructor(){this._ariaElement=null,this._customProvider=null,this._lastDescription=null,this._locale="en"}createElement(e){this._ariaElement=kt(e)}setCustomProvider(e){this._customProvider=e}setLocale(e){this._locale=e}async updateChartDescription(e,t,i){const s=function(e){const t=ut.layouts[e];return t?.count??1}(i),o=await this._buildChartContext(e,t,s);if(null===o)return;if(this._customProvider){const e=await this._customProvider(o);if(null!==e)return void this._setChartDescription(e)}if("en"!==this._locale)return;const n=function(e){const t=function(e){if(!l.enabled("aria_detailed_chart_descriptions")||!e.visibleData)return"";let t;try{t=function(e){let t=e.schema.findIndex((e=>"userTime"===e.type));t<0&&(t=e.schema.findIndex((e=>"time"===e.type)));if(t<0)throw new Error("Exported Data should contain `time`.");const i=Bt(e,(e=>"value"===e.type&&"series"===e.sourceType&&"close"===e.plotTitle),-1);if(i<0)throw new Error("Exported Data should contain `close`.") -;const s=Bt(e,(e=>"value"===e.type&&"series"===e.sourceType&&"low"===e.plotTitle),i),o=Bt(e,(e=>"value"===e.type&&"series"===e.sourceType&&"high"===e.plotTitle),i),n=Bt(e,(e=>"value"===e.type&&"series"===e.sourceType&&"open"===e.plotTitle),i),r=e.data.map((e=>({time:e[t],open:e[n],high:e[o],low:e[s],close:e[i]}))),a={start:r[0],close:r[r.length-1],low:r[0],high:r[0]};for(const e of r)e.high>a.high.high&&(a.high=e),e.low=0?s:i}Dt._instance=null;var Vt=i(10555),Rt=i(58978),Nt=i(24377),Ot=i(50279),Ft=i(27714),Wt=i(62153);class Ht{constructor(e,t){this._isDestroyed=!1, -this._lollipopTooltipRenderer=null,this._activeLollipop=e,this._cardType=t,this._activeLollipop.subscribe((e=>{null===e&&this._destroyTooltip()}))}destroy(){this._destroyTooltip(),this._activeLollipop.release(),this._isDestroyed=!0}tryToHideTooltipByClickOutside(e,t,i){if(!this._isClickInsideTooltip(i)){if(void 0!==i){const s=t(e,i);if(null!==s&&(0,Ot.default)(s,this._activeLollipop.value()))return}this._activeLollipop.setValue(null)}}async showTooltip(e,t,s,o,r){const a=s();if(null===a||0===a.length)return;const{showLollipopTooltip:l}=await Promise.all([i.e(1681),i.e(1171),i.e(6032),i.e(2641),i.e(2227),i.e(3179),i.e(9039)]).then(i.bind(i,92892)),c=await o();this._isDestroyed||((0,n.assert)(null===this._lollipopTooltipRenderer,"Lollipop tooltip renderer should be null before creating a new one"),this._lollipopTooltipRenderer=l({items:a,position:t,customCloseSubscriptions:r.customCloseSubscriptions,onClose:()=>r.onClose(e),onClickOutside:t=>r.onClickOutside(e,t),onSizeChanged:r.onSizeChanged,showScrollFades:!0,cardType:this._cardType,theme:c}))}_isClickInsideTooltip(e){return null!==this._lollipopTooltipRenderer&&void 0!==e&&this._lollipopTooltipRenderer.isClickInside(e)}_destroyTooltip(){this._lollipopTooltipRenderer?.hide(),this._lollipopTooltipRenderer=null}}var zt,Ut=i(2383),jt=i(94602),Gt=i(6453),qt=i(69558),$t=i(58221),Kt=i(33350),Yt=i(4539);!function(e){e[e.SizeDelta=1]="SizeDelta"}(zt||(zt={}));class Zt{constructor(e,t,i){this._data=e,this._hittest=t,this._textWidthCache=i}draw(e,t){const{horizontalPixelRatio:i,verticalPixelRatio:s}=t,o=this._data.centerPoint,n=Math.round(o.x*i),r=Math.round(o.y*s),a=Math.max(1,Math.floor(i))%2/2,l=Math.max(1,Math.floor(s))%2/2,c=new Vt.Point(n+a,r-l);this._drawLollipop(e,c,t),this._drawLabel(e,c,t)}hitTest(e){const t=(0,Yt.interactionTolerance)().esd,i=this._data.centerPoint.y-this._data.style.lollipop.height/2-t,s=this._data.centerPoint.x-this._data.style.lollipop.width/2-t,o=(0,Vt.box)(new Vt.Point(s,i),new Vt.Point(s+this._data.style.lollipop.width+2*t,i+this._data.style.lollipop.height+2*t));return(0,Gt.pointInBox)(e,o)?this._hittest:null}_drawLollipop(e,t,i){const s=this._data.style,{horizontalPixelRatio:o}=i,n=this._fillRadius(o);s.lollipop.fillCircle&&s.lollipop.backgroundColor&&this._drawFilledCircle(e,t,n,s.lollipop.backgroundColor);const r=Math.round(s.lollipop.lineWidth*o),a=n-Math.round(1*o+r/2);this._drawBorderLine(e,t,r,a),s.lollipop.fillCircle&&s.lollipop.fillStyle&&this._drawFilledCircle(e,t,a,s.lollipop.fillStyle)}_drawLabel(e,t,i){const s=this._data.style.lollipop.text,o=s.label;if(""===o)return;const{horizontalPixelRatio:n,verticalPixelRatio:r}=i;e.textAlign="center",e.textBaseline="middle",e.fillStyle=s.strokeStyle,e.font=s.font;const a=this._textWidthCache.yMidCorrection(e,o);e.translate(t.x,t.y+((s.deltaY||0)+a)*r),(0,Kt.drawScaled)(e,n,r,(()=>{e.fillText(o,0,0)}))}_fillRadius(e){const t=this._data.style,i=Math.max(1,Math.floor(e));let s=Math.round(t.lollipop.width*e);return s%2!=i%2&&(s+=1),s/2}_drawBorderLine(e,t,i,s){const o=this._data.style -;e.strokeStyle=o.lollipop.strokeStyle,e.lineWidth=i,(0,$t.setLineStyle)(e,qt.LINESTYLE_SOLID),(0,$t.createCircle)(e,t.x,t.y,s),e.stroke()}_drawFilledCircle(e,t,i,s){e.fillStyle=s,(0,$t.createCircle)(e,t.x,t.y,i),e.fill()}}var Xt,Jt=i(64960),Qt=i(57658),ei=i(43838);!function(e){e[e.SpaceBetweenRows=25]="SpaceBetweenRows",e[e.TooltipTopMargin=15]="TooltipTopMargin",e[e.SpaceBetweenCardAndLollipop=8]="SpaceBetweenCardAndLollipop"}(Xt||(Xt={}));class ti{constructor(e,t){this._invalidated=!1,this._renderer=new jt.CompositeRenderer,this._textWidthCache=new Qt.TextWidthCache,this._stylesCache=null,this._lollipops={},this._lollipopsCounter=0,this._activeLollipopInfo=new yt.WatchedObject(null),this.onPaneBgChange=()=>{this._recreateStyles(this._model)},this._model=e,this._source=t,this._recreateStyles(e),e.backgroundColor().subscribe(this.onPaneBgChange),e.mainSeries().onSymbolIntervalChanged().subscribe(this,this._onSymbolOrIntervalChanged),this._lollipopTooltip=new Ht(this._activeLollipopInfo.spawnOwnership()),this._activeLollipopInfo.subscribe((()=>{this._source.updateAllViewsAndRepaint()}))}destroy(){this._model.backgroundColor().unsubscribe(this.onPaneBgChange),this._model.mainSeries().onSymbolIntervalChanged().unsubscribeAll(this),this._lollipopTooltip.destroy()}processClickInside(e,t,i){const s=this._lollipops[i];return!(!s||!s.visible)&&(this._lollipopMouseClickHandler(e,this._getLollipopRendererData(s),(0,Ft.size)({width:t.clientWidth,height:t.clientHeight}),{preventDefault:()=>{},target:t}),!0)}processClickOutside(e,t){this._lollipopTooltip.tryToHideTooltipByClickOutside(e,this._getActiveLollipopTooltipInfo.bind(this),t)}update(e){this._invalidated=!0}afterUpdate(e,t,i,s){}getStyle(e,t){let i=t;if(e.stack&&(i+="_stack:"+e.stack),"active"===i)return this._activeStyle;if("hovered"===i)return this._hoveredStyle;if("default"===i)return this._defaultStyle;if(this._stylesCache||(this._stylesCache={}),!this._stylesCache[i]){const s=(0,tt.clone)("active"===t?this._activeStyle:"hovered"===t?this._hoveredStyle:this._defaultStyle);e.stack&&(s.lollipop.incHeight=25*e.stack),this._stylesCache[i]=s}return this._stylesCache[i]}hasTooltip(e){return!0}clearActiveLollipop(){this._activeLollipopInfo.setValue(null)}async _specialTooltipStyles(e){}_getY(){let e=0;const t=this._model.panes();for(let i=t.length;i--;){const s=t[i];s.containsMainSeries()&&(e+=s.height())}return e}_showBarLine(e){return this.hasTooltip(e)&&(e.hovered||this._isLollipopActive(e))}_getLollipopRendererData(e){const t=this._getLollipopStatus(e),i=this.getStyle(e,t);return{id:e.id,itemIndex:e.itemIndex,centerPoint:new Vt.Point(e.basePoint.x,e.basePoint.y-i.lollipop.bottom-i.lollipop.height/2-(i.lollipop.incHeight||0)),style:i,status:t}}_createRenderers(e){const{mediaSize:t}=e;for(const i of Object.values(this._lollipops))if(void 0!==i&&i.visible){const s=this._getLollipopStatus(i),o=this.getStyle(i,s),n={id:i.id,itemIndex:i.itemIndex,centerPoint:new Vt.Point(i.basePoint.x,i.basePoint.y-o.lollipop.bottom-o.lollipop.height/2-(o.lollipop.incHeight||0)),style:o, -status:s},r={cursorType:ei.PaneCursorType.Default,activeItem:{id:i.id,itemIndex:i.itemIndex},hideCrosshairLinesOnHover:!0,clickHandler:(i,s)=>this._lollipopMouseClickHandler(e,n,t,i),tapHandler:(i,s)=>this._lollipopMouseClickHandler(e,n,t,i)};if(this._renderer.append(this._createRendererForLollipop(n,r)),this._showBarLine(i)){const{strokeStyle:e,lineStyle:t,lineWidth:s}=o.barLine,n={color:e,linestyle:t,linewidth:s,x:i.basePoint.x,top:0,bottom:i.basePoint.y-o.lollipop.bottom-o.lollipop.height},r=new Jt.VerticalLineRenderer;r.setData(n),this._renderer.insert(r,0)}}}_recreateStyles(e){this._stylesCache=null}_createRendererForLollipop(e,t){return new Zt(e,new Ut.HitTestResult(Ut.HitTarget.Custom,t),this._textWidthCache)}_onSymbolOrIntervalChanged(){this._lollipops={},this._lollipopsCounter=0,this._renderer.clear(),this._activeLollipopInfo.setValue(null)}async _lollipopMouseClickHandler(e,t,i,s){s.preventDefault();const o={id:t.id,itemIndex:t.itemIndex};if((0,Ot.default)(this._activeLollipopInfo.value(),o))return void this._activeLollipopInfo.setValue(null);this._activeLollipopInfo.setValue(o);const r={target:s.target,targetSize:i,point:new Vt.Point(t.centerPoint.x,t.centerPoint.y-t.style.lollipop.height/2-8),marginTop:15},a=(0,n.ensureDefined)(this._lollipops[t.id]),l=this._model.timeScale();this._lollipopTooltip.showTooltip(e,r,(()=>this._createTooltipContent(a)),(()=>this._specialTooltipStyles(a)),{onClose:this.processClickOutside.bind(this),onClickOutside:(e,t)=>{this._source.onClickOutside?.(e,(0,n.ensureDefined)(t))},customCloseSubscriptions:[l.onScroll(),l.barSpacingChanged(),this._model.mainSeries().onSymbolIntervalChanged()],onSizeChanged:(0,n.ensureNotNull)(this._model.paneForSource(this._source)).onSizeChanged()})}_getLollipopStatus(e){return this._isLollipopActive(e)?"active":e.hovered?"hovered":"default"}_isLollipopActive(e){return null!==this._activeLollipopInfo.value()&&(0,Ot.default)(this._activeLollipopInfo.value(),{id:e.id,itemIndex:e.itemIndex})}_getActiveLollipopTooltipInfo(e,t){const i=(0,Wt.getClickPosition)(t);if(null===i)return null;const s=this.renderer(e)?.hitTest(new Vt.Point(i.x,i.y),e)?.data()?.activeItem??null;return null===s?null:s}}var ii,si=i(49251);class oi extends Zt{_drawLollipop(e,t,i){if(!this._imageLoaded())return void super._drawLollipop(e,t,i);const s=this._data.style,{horizontalPixelRatio:o}=i,n=this._fillRadius(o);let r=Math.round(s.lollipop.lineWidth*o),a=n-Math.round(1*o+r/2);if(s.lollipop.fillCircle&&(s.lollipop.backgroundColor&&this._drawFilledCircle(e,t,n,s.lollipop.backgroundColor),s.lollipop.fillStyle&&this._drawFilledCircle(e,t,a,s.lollipop.fillStyle)),this._data.style.lollipop.image?.imageElement){const i=n-Math.round(1*o+2*r),s=2*i;e.save(),e.imageSmoothingEnabled=!0,e.imageSmoothingQuality="high",(0,$t.createCircle)(e,t.x,t.y,i),e.clip(),e.drawImage(this._data.style.lollipop.image.imageElement,t.x-i,t.y-i,s,s),e.restore()}"active"===this._data.status&&(a-=r/2,r*=1.5),this._drawBorderLine(e,t,r,a)}_drawLabel(e,t,i){ -this._imageLoaded()&&!this._data.style.lollipop.text.showWhenImageLoaded||super._drawLabel(e,t,i)}_imageLoaded(){return Boolean(this._data.style.lollipop.image&&this._data.style.lollipop.image.imageElement&&this._data.style.lollipop.image.imageElement.complete&&this._data.style.lollipop.image.imageElement.naturalWidth)}}function ni(e,t,i){Array.isArray(t)?t.forEach((t=>{ni(e,t,i)})):"fill"===t.mode?(e.fillStyle=i,e.fill(t.path)):"stroke"===t.mode&&(e.strokeStyle=i,e.stroke(t.path))}function ri(e,t){return{background:{bodyPath:{path:new Path2D(e),mode:"fill"}},foreground:{bodyPath:{path:new Path2D(t),mode:"fill"},borderPath:{path:new Path2D(t),mode:"stroke"}}}}!function(e){e.PositiveEarningFillPath="M8.961.92a3 3 0 0 1 3.078 0l7.5 4.48A3 3 0 0 1 21 7.975V20a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V7.975A3 3 0 0 1 1.461 5.4l7.5-4.48z",e.PositiveEarningStrokePath="M9.867 2.742c.39-.23.875-.23 1.266 0l7.5 4.406c.382.225.617.635.617 1.078V20c0 .69-.56 1.25-1.25 1.25H3c-.69 0-1.25-.56-1.25-1.25V8.226c0-.443.235-.853.617-1.078l7.5-4.406z",e.NegativeEarningFillPath="M8.961 23.08a3 3 0 0 0 3.078 0l7.5-4.48A3 3 0 0 0 21 16.025V4a3 3 0 0 0-3-3H3a3 3 0 0 0-3 3v12.025A3 3 0 0 0 1.461 18.6l7.5 4.48z",e.NegativeEarningStrokePath="M9.866 21.257c.391.23.877.23 1.268 0l7.5-4.414a1.25 1.25 0 0 0 .616-1.078V4c0-.69-.56-1.25-1.25-1.25H3c-.69 0-1.25.56-1.25 1.25v11.765c0 .443.234.853.616 1.078l7.5 4.414z",e.DefaultEarningFillPath="M3 0h15c1.662 0 3 1.338 3 3v15c0 1.662-1.338 3-3 3H3c-1.662 0-3-1.338-3-3V3c0-1.662 1.338-3 3-3z",e.DefaultEarningStrokePath="M3 1.75h15c.693 0 1.25.557 1.25 1.25v15c0 .693-.557 1.25-1.25 1.25H3c-.692 0-1.25-.558-1.25-1.25V3c0-.692.558-1.25 1.25-1.25z"}(ii||(ii={}));const ai=ri("M8.961.92a3 3 0 0 1 3.078 0l7.5 4.48A3 3 0 0 1 21 7.975V20a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V7.975A3 3 0 0 1 1.461 5.4l7.5-4.48z","M9.867 2.742c.39-.23.875-.23 1.266 0l7.5 4.406c.382.225.617.635.617 1.078V20c0 .69-.56 1.25-1.25 1.25H3c-.69 0-1.25-.56-1.25-1.25V8.226c0-.443.235-.853.617-1.078l7.5-4.406z"),li=ri("M8.961 23.08a3 3 0 0 0 3.078 0l7.5-4.48A3 3 0 0 0 21 16.025V4a3 3 0 0 0-3-3H3a3 3 0 0 0-3 3v12.025A3 3 0 0 0 1.461 18.6l7.5 4.48z","M9.866 21.257c.391.23.877.23 1.268 0l7.5-4.414a1.25 1.25 0 0 0 .616-1.078V4c0-.69-.56-1.25-1.25-1.25H3c-.69 0-1.25.56-1.25 1.25v11.765c0 .443.234.853.616 1.078l7.5 4.414z"),ci=ri("M3 0h15c1.662 0 3 1.338 3 3v15c0 1.662-1.338 3-3 3H3c-1.662 0-3-1.338-3-3V3c0-1.662 1.338-3 3-3z","M3 1.75h15c.693 0 1.25.557 1.25 1.25v15c0 .693-.557 1.25-1.25 1.25H3c-.692 0-1.25-.558-1.25-1.25V3c0-.692.558-1.25 1.25-1.25z");new Path2D("M3 0h15a3 3 0 0 1 3 3v15a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3z"),new Path2D("M.08 13.1c.87 0 1.77.9 2.79.9.74 0 1.28-.3 1.63-.7V7.2c-.35.44-.89.7-1.58.7-.87 0-1.77-.9-2.79-.9-.74 0-1.28.31-1.63.7v6.1c.35-.43.88-.7 1.58-.7Z"),new Path2D("M 17.25 1.7 a 2 2 0 0 1 2 2 v 13.5 a 2 2 0 0 1 -2 2 h -14 a 2 2 0 0 1 -2 -2 v -4.4 L 1.75 13.8 C 1.17 13.44 0.62 13.1 0.08 13.1 C -0.62 13.1 -1.15 13.37 -1.5 13.8 V 7.7 C -1.15 7.31 -0.61 7 0.13 7 C 0.7 7 1.23 7.28 1.75 7.53 L 1.25 7.95 V 3.7 a 2 2 0 0 1 2 -2 z"), -new Path2D("M1.75 7.2v-3.5a2 2 0 0 1 2-2h13.5a2 2 0 0 1 2 2v13.5a2 2 0 0 1-2 2h-13.5a2 2 0 0 1-2-2v-3.5"),new Path2D("M2.87 10.3c-1.02 0-1.92-.9-2.79-.9-.7 0-1.23.26-1.58.7V8.7c.35-.39.89-.7 1.63-.7 1.02 0 1.92.91 2.79.91.69 0 1.23-.26 1.58-.71v1.4c-.35.4-.89.7-1.63.7Zm0 2.7c-1.02 0-1.92-.91-2.79-.91-.7 0-1.23.26-1.58.71v-1.35c.35-.4.89-.7 1.63-.7 1.02 0 1.92.9 2.79.9.69 0 1.23-.26 1.58-.7v1.34c-.35.4-.89.71-1.63.71Z"),new Path2D("M2.87 10.3c-1.02 0-1.92-.9-2.79-.9-.7 0-1.23.26-1.58.7V8.7c.35-.39.89-.7 1.63-.7 1.02 0 1.92.91 2.79.91.69 0 1.23-.26 1.58-.71v1.4c-.35.4-.89.7-1.63.7Zm0 2.7c-1.02 0-1.92-.91-2.79-.91-.7 0-1.23.26-1.58.71v-1.35c.35-.4.89-.7 1.63-.7 1.02 0 1.92.9 2.79.9.69 0 1.23-.26 1.58-.7v1.34c-.35.4-.89.71-1.63.71Z");function hi(e,t,i,s,o){const{horizontalPixelRatio:n,verticalPixelRatio:r}=i;e.save(),e.translate(t.x-s.lollipop.width*n/2,t.y-s.lollipop.height*r/2),e.scale(n,r),s.lollipop.fillCircle&&s.lollipop.backgroundColor&&ni(e,o.background.bodyPath,s.lollipop.backgroundColor),s.lollipop.fillCircle&&s.lollipop.fillStyle&&ni(e,o.foreground.bodyPath,s.lollipop.fillStyle),e.lineWidth=Math.round(s.lollipop.lineWidth*n)/n,(0,$t.setLineStyle)(e,qt.LINESTYLE_SOLID),o.foreground.borderPath&&ni(e,o.foreground.borderPath,s.lollipop.strokeStyle),s.lollipop.active&&o.foreground.activePath&&ni(e,o.foreground.activePath,s.lollipop.text.strokeStyle),e.restore()}function di(e,t,i,s){hi(e,t,i,s,ai)}function ui(e,t,i,s){hi(e,t,i,s,li)}function _i(e,t,i,s){hi(e,t,i,s,ci)}class pi extends Zt{_drawLollipop(e,t,i){const s=this._data.style;switch(s.shape){case"earningUp":di(e,t,i,s);break;case"earningDown":ui(e,t,i,s);break;case"earning":_i(e,t,i,s);break;default:super._drawLollipop(e,t,i)}}}var mi;!function(e){e[e.HoveredColorTransparency=85]="HoveredColorTransparency",e.ActiveTextColor="rgba(255, 255, 255, 0.92)"}(mi||(mi={}));const gi={backgroundDark:(0,Rt.getHexColorByName)("color-cold-gray-900"),backgroundLight:(0,Rt.getHexColorByName)("color-white")};class fi extends ti{constructor(e,t){super(e,t),this.stylesCache={},this.templatesCache={},this._itemIndexToId=new Map,this.source=t}clearCaches(){this._activeLollipopInfo.setValue(null),this._lollipops={},this._lollipopsCounter=0}renderer(e){return this._invalidated&&(this._createLollipops(e),this._invalidated=!1),this._renderer}getStyle(e){const t=this._isLollipopActive(e)?"active":e.hovered?"hovered":"default";return this._generateStyle(t,e)}hasTooltip(e){return Boolean(e.items&&e.items.length)}_createTooltipContent(e){const t=e.items;return t?[{style:{color:e.color},main:{type:"common",title:Array.isArray(t)?t.map((e=>({value:e}))):[{value:t}]}}]:null}_createRendererForLollipop(e,t){return new(e.style.lollipop.image?oi:pi)(e,new Ut.HitTestResult(Ut.HitTarget.Custom,t),this._textWidthCache)}async _lollipopMouseClickHandler(e,t,i,s){(0,ee.emit)("onTimescaleMarkClick",t.id),await super._lollipopMouseClickHandler(e,t,i,s)}_createLollipops(e){this._renderer.clear() -;const t=this._model.timeScale(),i=super._getY(),s=this._model.lastHittestData(),o=this._model.hoveredSource(),n=this.source.marks(),r=new Map;Object.keys(n).forEach((e=>{const a=n[e],l=a.id,c=a.index;if(null!=c){const e=this._lollipops[l],n=void 0!==e?e.itemIndex:this._lollipopsCounter++;this._itemIndexToId.has(n)||this._itemIndexToId.set(n,l);const h=o===this.source&&null!==s&&void 0!==s.activeItem&&s.activeItem.itemIndex===n,d=(r.get(c)??-1)+1;r.set(c,d),this._lollipops[l]={id:l,itemIndex:n,basePoint:new Vt.Point(t.indexToCoordinate(c)+1,i),hovered:h,label:a.label,color:a.color,items:a.tooltip,visible:!0,stack:d,shape:a.shape,image:this._getImageForUrl(a.imageUrl),showLabelWhenImageLoaded:a.showLabelWhenImageLoaded,textColor:a.labelFontColor}}})),this._createRenderers(e)}_getImageForUrl(e){if(e)return this.source.getImageElement(e)}_generateStyle(e,t){const{color:i,label:s,stack:o,shape:n,image:r,textColor:a}=t;let l=e+i+s+(this._model.dark().value()?"dark":"light");if(void 0!==o&&(l+="_stack"+o),!(l in this.stylesCache)){const c=this._model.dark().value()?gi.backgroundDark:gi.backgroundLight;let h,d=i;if("active"===e)h=i,d="rgba(255, 255, 255, 0.92)";else if("hovered"===e){const e=(0,Nt.tryParseRgba)(i);if(null!==e){const t=e[3]*(1-.85);h=(0,Nt.rgbaToString)((0,Nt.rgba)(e[0],e[1],e[2],t))}}a&&(d=a);let u=23,_=23,p=1,g=0;"earning"===n?(_=21,u=21,p=2):"earningUp"===n?(u=21,g=1,p=2):"earningDown"===n&&(u=21,g=-.5,p=.5);const f={barLine:{lineStyle:qt.LINESTYLE_DASHED,lineWidth:1,strokeStyle:i},lollipop:{width:u,height:_,bottom:p,backgroundColor:c,lineWidth:1.5,fillStyle:h,strokeStyle:i,fillCircle:!0,text:{label:s,deltaY:g,strokeStyle:d,font:(0,si.makeFont)(12,m.CHART_FONT_FAMILY,"bold"),showWhenImageLoaded:t.showLabelWhenImageLoaded},image:r},shape:n};void 0!==o&&(f.lollipop.incHeight=25*o),this.stylesCache[l]=f}return this.stylesCache[l]}}var yi=i(78176),vi=i(67777),Si=i(64971),bi=i(72207),wi=i(40472);const Ci=(0,ne.getLogger)("Chart.BarsMarksContainer"),Ti=Math.round(new Date(2037,0,1).getTime()/1e3);var Pi;!function(e){e[e.MaxPlatesPerBar=10]="MaxPlatesPerBar"}(Pi||(Pi={}));class xi extends bi.DataSource{constructor(e,t,i){const s=e.onWidget();let o;o=s?!e.hideIdeas():!!l.enabled("bars_marks")&&d.default.getBool("BarsMarksContainer.visibile",!1),t.merge({visible:o}),t.childs().visible.subscribe(null,(t=>{s||e.isSnapshot()||!l.enabled("bars_marks")||d.default.setValue("BarsMarksContainer.visibile",!!t.value())})),super(i),this._paneViews=[],this._model=e,this._properties=t,this._requests=[],this._marks={},this._loadedRange=null,this._getDataTimeout=null,this._collectedRange=null,this._lastRange=null;const r=this._model.mainSeries();r.onSymbolIntervalChanged().subscribe(this,this.clearMarks),r.dataEvents().symbolResolved().subscribe(this,this.clearMarks),r.dataEvents().completed().subscribe(this,(()=>{const e=r.data();if(0===e.size())return;const t=(0,n.ensureNotNull)(e.first()).index,i=(0,n.ensureNotNull)(e.last()).index,s=this.timeScale();this.getData({start:s.indexToTimePoint(t)??1/0, -end:s.indexToTimePoint(i)??-1/0})})),this._initialize(),this._pinnedTooltips={}}destroy(){const e=this._model.mainSeries();e.onSymbolIntervalChanged().unsubscribeAll(this),e.dataEvents().symbolResolved().unsubscribeAll(this),e.dataEvents().completed().unsubscribeAll(this),super.destroy()}model(){return this._model}properties(){return this._properties}marks(){return this._marks}pinTooltip(e,t){this._pinnedTooltips[e]=t}timeScale(){return this._model.timeScale()}getIntervalInTicks(){const e=this._model.mainSeries().properties().childs().interval.value(),t=Re.Interval.parse(e);if(!t.isValid())throw new TypeError("Unexpected interval");return t.isRange()?60:t.inMilliseconds()/1e3}getVisibleTickMarksRange(){if(this.timeScale().isEmpty())return{start:0,end:0};const e=(0,n.ensureNotNull)(this.timeScale().visibleBarsStrictRange()),{firstIndex:t,lastIndex:i}=(0,n.ensureNotNull)(this.timeScale().points().range().value());if(!(e.lastBar()>t&&e.firstBar(){const o=this._marks[s],n=o.tickmark;n>=(t.start??1/0)&&n<=(t.end??-1/0)+i&&e.push(o)})),e}getPublishedPlates(){const e={};return window.is_authenticated?(this.getVisibleRangePlates().forEach((t=>{t.is_public&&(this._pinnedTooltips[t.id]||t.user__id===window.user.id)&&(e[t.id]=t)})),e):e}filterDisplayedPlates(e){const t=e.reduce(((e,t)=>{const i=this._getIndex(t.tickmark);return null!==i&&(e[i]=e[i]||[],e[i].push(t)),e}),{});return Object.keys(t).reduce(((e,i)=>{let s=t[i];return s=s.sort(((e,t)=>t.views_count-e.views_count)),s=s.slice(0,10),e.concat(s)}),[])}getPlatesViewData(){const e=this._model.mainSeries();if(e.data().isEmpty())return[];const t=(0,xt.isPriceSourceStyle)(e.style())?e.barFunction():null,i=this.filterDisplayedPlates(this.getVisibleRangePlates()),s={},o=this._model.lastHittestData()??this._model.lastSelectedHittestData();let r=null;null!==o&&this._model.hoveredSource()===this&&(r=o.activeItem??null);const a=[];for(const e of i){const i=(0,n.ensureNotNull)(this._getIndex(e.tickmark)),o=this._getBar(i);if(null===o)continue;const l=this._layout(e.direction),c=this._theme(e.direction),h=r===e.id,d=this.timeScale().indexToCoordinate(i),u=this._offset(l,o,t),_=(0,n.ensureNotNull)(this.priceScale()).isInverted();let p=0;i in s||(s[i]={up:0,down:0}),p=s[i][l]++,a.push({id:e.id,x:d,y:u,yInverted:_,order:p,direction:l,theme:c,hovered:h,pinned:!0===this._pinnedTooltips[e.id],user__id:e.user__id,label:e.label,labelFontColor:e.labelFontColor||"#444",minSize:e.minSize||5,...this._plateViewData(e)})}const l=a.filter((e=>!0===e.hovered));for(let e=0;ee.hovered&&!t.hovered?1:0)),a}priceAxisViews(){return null} -updateAllViews(e){for(const t of this._paneViews)t.update(e)}updateAllViewsAndRepaint(){this.updateAllViews((0,wi.sourceChangeEvent)(this.id())),this._model.updateSource(this)}roundRange(e){return{start:Math.round(e.start),end:Math.round(e.end)}}refreshData(){null!==this._lastRange&&this.getData(this._lastRange)}getData(e){(0,tt.isNumber)(e.start)&&(0,tt.isNumber)(e.end)?(this._lastRange=e,e.end=Ti,this._pushGetDataStack(Object.assign({},e))):Ci.logError("Wrong range")}clearMarks(){this._abortAllRequests(),this._marks={},this._loadedRange=null}isUserDeletable(){return!1}isSavedInChart(e){return!1}isSpeciallyZOrderedSource(){return!0}showInObjectTree(){return!1}_plateViewData(e){return{}}_layout(e){switch(e){default:case 0:case 2:case 3:case 4:case 5:case 6:return"up";case 1:return"down"}}_theme(e){switch(e){default:case 0:return"neutral";case 1:case 5:return"green";case 2:case 6:return"red";case 3:return"yellow";case 4:return"blue"}}_offset(e,t,i){let s;switch(e){default:case"up":s=null===i?t[2]:i(t);break;case"down":s=null===i?t[3]:i(t)}return(0,n.ensureNotNull)(this.priceScale()).priceToCoordinate(s,(0,n.ensureNotNull)((0,n.ensureNotNull)(this.ownerSource()).firstValue()))}_getIndex(e){return this.timeScale().timePointToIndex(e)}_getBar(e){return this._model.mainSeries().data().valueAt(e)}_rangeDifference(e){return e=Object.assign({start:1/0,end:-1/0},e),this._loadedRange&&(e.startthis._loadedRange.end&&(e.start=this._loadedRange.end)),e}_rangeUnion(e,t){return e=Object.assign({start:1/0,end:-1/0},e),t&&(e.start=Math.min(t.start,e.start),e.end=Math.max(t.end,e.end)),e}_pushGetDataStack(e){(0,tt.isNumber)(e.start)&&(0,tt.isNumber)(e.end)?(this._getDataTimeout&&clearTimeout(this._getDataTimeout),this._collectedRange=this._rangeUnion(e,this._collectedRange),this._getDataTimeout=setTimeout((()=>{this._getData(this._collectedRange),this._getDataTimeout=this._collectedRange=null}),300)):Ci.logError("Wrong tickmark range")}_abortAllRequests(){this._requests.forEach((e=>{e.cancel()})),this._requests=[],this._getDataTimeout&&clearTimeout(this._getDataTimeout),this._getDataTimeout=this._collectedRange=null}}const Mi=(0,ne.getLogger)("Chart.UserDefinedImageMarks");class Ii extends xi{constructor(){super(...arguments),this._imageItems=new Map,this._destroyed=!1}destroy(){this._destroyed=!0,super.destroy()}getImageElement(e){return this._imageItems.has(e)||this.addImageToStore(e),this._imageItems.get(e)}addImageToStore(e){this._imageItems.has(e)||this._loadNewImage(e)}_loadNewImage(e){const t={imageElement:null};(0,Si.getImage)(e,e).then((e=>{this._destroyed||(t.imageElement=e,this.updateAllViewsAndRepaint(),this._model.updateSource(this))})).catch((()=>{Mi.logWarn(`An error ocurred while loading image ${e}`)})),this._imageItems.set(e,t)}}var Ai=i(12178);class Li extends Ii{constructor(e){super(e,new yi.DefaultProperty({defaultName:"UserDefinedTimescaleMarks",state:{visible:!0}})),this._requestedPointsets=new Set,(0, -mt.hideMarksOnBars)().subscribe(this,(()=>this._properties.childs().visible.setValue(!(0,mt.hideMarksOnBars)().value()))),this._paneView=new fi(e,this),this._paneViews=[this._paneView]}destroy(){(0,mt.hideMarksOnBars)().unsubscribeAll(this),this._paneView.destroy(),super.destroy()}zorder(){return vi.sortSourcesPreOrdered.TimeScaleMarks}name(){return"UserDefinedTimescaleMarks"}userEditEnabled(){return!1}clearMarks(e=0){if(1===e)return;const t=this._model.chartApi();t.isConnected().value()&&Object.keys(this._marks).forEach((e=>{const i=this._getPointsetId(e);t.removePointset(i)})),this._requestedPointsets.clear(),super.clearMarks(),this._paneView.clearCaches(),this.updateAllViewsAndRepaint()}hasContextMenu(){return!1}paneViews(){return this._properties.childs().visible.value()?this._paneViews:[]}updateAllViews(e){this._paneView.update(e)}onClickOutside(e,t){this._paneView.processClickOutside(e,t)}isVisible(){return this.properties().childs().visible.value()}lollipopsAtIndex(e){throw new Error("Method not implemented.")}contextMenuStatName(){return"UserDefinedTimescaleMarksContextMenu"}_initialize(){this._properties.childs().visible.setValue(!(0,mt.hideMarksOnBars)().value())}_plateViewData(e){return{text:e.text}}_getData(e){const t=this._model.mainSeries().symbolInfo();if(!t)return;const i=this.roundRange(this._rangeDifference(e)),s=this._model.mainSeries(),o=s.seriesSource().symbolInstanceId(),r=(0,Ai.getServerInterval)(s.properties().childs().interval.value());window.ChartApiInstance.getTimescaleMarks(t,i.start,i.end,(t=>{const i=this._model.chartApi();for(const e of t){e.index=null;const t=e.id,s=this._getPointsetId(t.toString()),a=this._marks[t];if(a&&null!==a.index&&(a.tickmark===e.tickmark?e.index=a.index:this._requestedPointsets.has(s)&&i.isConnected().value()&&(i.removePointset(s),this._requestedPointsets.delete(s))),e.imageUrl&&this.addImageToStore(e.imageUrl),this._marks[t]=e,null===e.index&&i.isConnected().value()){this._requestedPointsets.add(s);const t=[[e.tickmark,0]];i.createPointset(s,"turnaround",(0,n.ensureNotNull)(o),r,t,(e=>this._onPointsetData(e)))}}this._loadedRange=this._rangeUnion(e,this._loadedRange),this.updateAllViewsAndRepaint()}),r)}_getPointsetId(e){return"pointsetMark_"+e}_onPointsetData(e){if("data_update"===e.method){const t=e.params.customId.split(/_(.+)/)[1]??"",i=this._marks[t],s=e.params.plots;i&&1===s.length&&(i.index=s[0].value[0])}this.updateAllViewsAndRepaint()}}var ki,Ei,Di=i(71382);function Bi(e,t){const{horizontalPixelRatio:i,verticalPixelRatio:s}=t,o=Math.max(1,Math.floor(i)),n=Math.round(e.x*i)+o%2/2;let r=Math.round(e.size*i);(n+r/2)%1!=0&&(r+=1);const a=Math.min(Math.max(1,Math.round(i*e.borderWidth)),r/2);let l;const c=("up"===e.direction?-1:1)*(e.yInverted?-1:1),h=c*(Math.round(e.size*s/2)+o%2);if(void 0!==e.fixedSpaceYPosition){const t=Math.round(e.fixedSpaceYPosition.itemSpacing*s),i=e.fixedSpaceYPosition.order,o=c*(r*i+t*(i+1));l=Math.round(e.fixedSpaceYPosition.basePosition*s)+o+h}else l=Math.round(e.y*s)+h;return{x:n,y:l,size:r,borderWidth:a,tickSize:o}} -function Vi(e,t,i,s){if(e.save(),i&&!s.highlightByAuthor&&(e.globalAlpha=.4),s.mine)!function(e,t,i){const{borderColor:s,backgroundColor:o,doNotFill:n,direction:r,yInverted:a}=i,{x:l,y:c,borderWidth:h,size:d,tickSize:u}=Bi(i,t);e.strokeStyle=s,e.fillStyle=o,e.lineWidth=h;const _="up"===r!==a?-1:1;let p=Math.round(d/2/Math.tan(Math.PI/6))+u%2/2;(l+p/2)%1!=0&&(p-=1);e.translate(l,c+p/2*_),e.beginPath();const m=h/2;e.moveTo(0,-_*(p-m)),e.lineTo(d/2-m,h/2),e.lineTo(-d/2+m,h/2),e.lineTo(0,-_*(p-h/2)),e.closePath(),n||e.fill();e.stroke()}(e,t,s);else{let i=!1;{const e=s.image&&(o=s.image,Boolean(o&&o.imageElement&&o.imageElement.complete&&o.imageElement.naturalWidth));i=Boolean(e&&!s.showLabelWhenImageLoaded)}!function(e,t,i,s,o){const{borderColor:n,backgroundColor:r,label:a}=i,{x:l,y:c,borderWidth:h,size:d}=Bi(i,t);e.strokeStyle=n,e.fillStyle=r,e.lineWidth=h,e.beginPath();const u=d/2-h/2;e.arc(l,c,u,0,2*Math.PI,!0),e.closePath(),e.fill(),o&&function(e,t,i,s,o){if(t){const n=2*i;e.save(),e.imageSmoothingEnabled=!0,e.imageSmoothingQuality="high",(0,$t.createCircle)(e,s,o,i),e.clip(),e.drawImage(t,s-i,o-i,n,n),e.restore()}}(e,o,u,l,c);e.stroke(),!s&&a&&d/2>=7&&(e.textAlign="center",e.textBaseline="middle",e.font=a.font,e.fillStyle=a.fontColor,(0,Kt.drawScaled)(e,t.horizontalPixelRatio,t.verticalPixelRatio,(()=>{e.fillText(a.text,l/t.horizontalPixelRatio,c/t.verticalPixelRatio)})))}(e,t,s,i,s.image?.imageElement??void 0)}var o;e.restore()}!function(e){e[e.MinRadiusToDrawText=7]="MinRadiusToDrawText"}(ki||(ki={}));class Ri{constructor(e,t,i,s){this._canvas=null,this._clickHandler=e,this._enterHandler=t,this._leaveHandler=i,this._data=s??null}setData(e){this._data=e}hitTest(e,t){if(null===this._data)return null;for(let i=this._data.items.length-1;i>=0;--i){const s=this._hitTestDot(this._data.items[i],e,t);if(s)return s}return null}draw(e,t){this._canvas=e.canvas,null!==this._data&&this._data.items.forEach(Vi.bind(null,e,t,this._data.highlightByAuthor))}_hitTestDot(e,t,i){const s=new Vt.Point(e.x,Bi(e,i).y/i.verticalPixelRatio);if((0,Gt.pointInCircle)(t,s,Math.max(e.size/2,8))){const t=this._canvas,i=null===t?void 0:{mouseEnterHandler:()=>this._enterHandler(e,s.y,t),mouseLeaveHandler:()=>this._leaveHandler(),clickHandler:i=>this._clickHandler(e,s.y,t,i),tapHandler:i=>this._clickHandler(e,s.y,t,i)};return new Ut.HitTestResult(Ut.HitTarget.Regular,{activeItem:e.originalItem.id,cursorType:ei.PaneCursorType.Default,...i})}return null}}!function(e){e[e.BarSpacingToSizeRatio=.8]="BarSpacingToSizeRatio",e[e.MinSize=7]="MinSize",e[e.MaxSize=553]="MaxSize"}(Ei||(Ei={}));const Ni={green:{border:(0,Rt.getHexColorByName)("color-minty-green-700"),background:(0,Rt.getHexColorByName)("color-minty-green-a600")},red:{border:(0,Rt.getHexColorByName)("color-ripe-red-700"),background:(0,Rt.getHexColorByName)("color-ripe-red-500")},neutral:{border:(0,Rt.getHexColorByName)("color-tan-orange-700"),background:(0,Rt.getHexColorByName)("color-tan-orange-500")},yellow:{border:"#EAC300",background:"#FFD400"},blue:{border:"#047ACE",background:"#0496FF"}} -;class Oi{constructor(e,t){this._tooltip=null,this._hoveredBarsMarkData=null,this._destroyed=!1,this._invalidated=!0,this._originalData=[],this._source=e,this._model=t,this._renderer=new Ri(this._onItemClicked.bind(this),this._showItem.bind(this),this._hideItem.bind(this)),this._createTooltipRenderer().then((e=>{this._destroyed?e?.destroy():this._tooltip=e})),e.properties().childs().visible.subscribe(null,(()=>{this._tooltip?.hide(!0)}))}destroy(){this._destroyed=!0,this._tooltip?.destroy()}source(){return this._source}update(){this._invalidated=!0}renderer(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._renderer}onClickOutside(e,t){t&&((0,Wt.isTouchMouseEvent)(t)?t.isTouch:(0,Di.isTouchEvent)(t))&&null!==this._tooltip&&!this._tooltip.contains(t.target)&&this._tooltip.hide(!0)}_extractBarMarksRendererItemData(e,t){const i=t.overridedTheme??Ni[t.theme],s=this._calculateSize(e,t),o=this._calculateY(e,s,t);return null===this._hoveredBarsMarkData||this._hoveredBarsMarkData.id!==t.id||this._hoveredBarsMarkData.x===t.x&&this._hoveredBarsMarkData.y===Math.round(o)||(this._tooltip?.hide(!0),this._hoveredBarsMarkData=null),{x:t.x,y:this._calculateY(e,s,t),direction:t.direction,borderColor:i.border,borderWidth:Fi(t),backgroundColor:i.background,size:s,doNotFill:!t.public,yInverted:t.yInverted,label:void 0===t.label?void 0:{text:t.label,fontColor:t.labelFontColor,font:(0,si.makeFont)(Math.ceil(Math.max(10,Math.min(s/2,20))),m.CHART_FONT_FAMILY,"bold")},originalItem:t}}_onItemClicked(e,t,i,s){s.isTouch&&this._showItem(e,t,i)}async _showItem(e,t,i){const s=await this._tooltipProps(e);if(null===s)return;const o=this._model.timeScale().barSpacing(),r=this._calculateSize(o,e.originalItem);this._hoveredBarsMarkData={x:e.x,y:Math.round(this._calculateY(o,r,e.originalItem)),id:e.originalItem.id},this._tooltip?.show({itemSize:r,container:(0,n.ensureNotNull)(i.parentElement),x:e.x,y:t,factoryProps:s,onClickOutside:()=>this._tooltip?.hide(!0)})}_hideItem(){this._tooltip?.hide()}_calculateSize(e,t){return Math.min(553,Math.max(7,t.minSize,.8*e))}_updateImpl(){this._originalData=this._source.getPlatesViewData();const e=this._model.timeScale().barSpacing(),t=this._originalData.map(this._extractBarMarksRendererItemData.bind(this,e));this._renderer.setData({items:t,barSpacing:e,highlightByAuthor:!1})}}function Fi(e){return e.hovered||e.highlightByAuthor?e.overrideBorderWidth?.hoveredWidth??4:e.overrideBorderWidth?.width??2}class Wi extends Oi{async _createTooltipRenderer(){const[{TooltipRenderer:e},{UserDefinedBarsMarksTooltip:t}]=await Promise.all([Promise.all([i.e(6094),i.e(2227),i.e(8020)]).then(i.bind(i,72233)),Promise.all([i.e(6094),i.e(2227),i.e(8020)]).then(i.bind(i,60430))]);return new e(t)}_calculateY(e,t,i){const s=Math.max(1.4*i.minSize,e+4),o=("up"===i.direction?-1:1)*(i.yInverted?-1:1)*(s*(i.order+.6)+.25*s);return i.y+o}_onItemClicked(e,t,i,s){super._onItemClicked(e,t,i,s),e.originalItem.onClicked?.()}_tooltipProps(e){const t=e.originalItem.text;return t?Promise.resolve({text:t}):Promise.resolve(null)} -_extractBarMarksRendererItemData(e,t){return{...super._extractBarMarksRendererItemData(e,t),showLabelWhenImageLoaded:t.showLabelWhenImageLoaded,image:t.image}}}class Hi extends Ii{constructor(e){super(e,new yi.DefaultProperty({defaultName:"UserDefinedBarsMarks",state:{visible:!0}})),this._paneView=new Wi(this,e),this._paneViews=[this._paneView],(0,mt.hideMarksOnBars)().subscribe(this,(()=>{this.properties().childs().visible.setValue(!(0,mt.hideMarksOnBars)().value())}))}destroy(){(0,mt.hideMarksOnBars)().unsubscribeAll(this),this._paneView.destroy(),super.destroy()}zorder(){return vi.sortSourcesPreOrdered.BarMarks}name(){return"UserDefinedBarsMarks"}userEditEnabled(){return!1}clearMarks(e=0){2!==e&&(super.clearMarks(),this.updateAllViewsAndRepaint())}hasContextMenu(){return!1}paneViews(){return this._properties.childs().visible.value()?this._paneViews:[]}isVisible(){return this.properties().childs().visible.value()}onClickOutside(e,t){this._paneView.onClickOutside(e,t)}contextMenuStatName(){return"UserDefinedBarsMarksContextMenu"}_initialize(){this.properties().childs().visible.setValue(!(0,mt.hideMarksOnBars)().value())}_plateViewData(e){const t={text:e.text,onClicked:e.onClicked};"object"==typeof e.color&&(t.theme="user_defined_theme",t.overridedTheme={},t.overridedTheme.border=e.color.border,t.overridedTheme.background=e.color.background);const i=(0,tt.isNumber)(e.borderWidth)?e.borderWidth:void 0,s=(0,tt.isNumber)(e.hoveredBorderWidth)?e.hoveredBorderWidth:void 0;if(void 0===i&&void 0===s||(t.overrideBorderWidth={width:i,hoveredWidth:s}),e.showLabelWhenImageLoaded&&(t.showLabelWhenImageLoaded=!0),e.imageUrl){const i=this.getImageElement(e.imageUrl);t.image=i}return t}_getData(e){const t=this._model.mainSeries().symbolInfo();if(!t)return;const i=this.roundRange(this._rangeDifference(e)),s=(0,Ai.getServerInterval)(this._model.mainSeries().properties().childs().interval.value());window.ChartApiInstance.getMarks(t,i.start,i.end,(t=>{for(const e of t)this._marks[e.id]=e,e.imageUrl&&this.addImageToStore(e.imageUrl);this._loadedRange=this._rangeUnion(e,this._loadedRange),this.updateAllViewsAndRepaint()}),s)}}var zi=i(55396);class Ui extends st.UndoCommand{constructor(e,t){super(null),this._chartModel=e,this._targetIndex=t}redo(){const e=this._chartModel.createPane(this._targetIndex,void 0,this._paneId);this._paneId=e.id()}undo(){const e=(0,n.ensureDefined)(this._paneId),t=this._chartModel.panes().find((t=>t.id()===e));void 0!==t&&this._chartModel.removePane(t)}createdPaneId(){return this._paneId}}var ji=i(91682),Gi=i(56616);const qi=(0,ne.getLogger)("Clipboard");var $i;!function(e){e.MagicAttrName="data-tradingview-clip"}($i||($i={}));class Ki{constructor(e){this._e=e}write(e){return(0,Gi.writeImpl)(this._toRaw(e),this._e)}_toRaw(e){const t={files:[]};t.text=e.text,void 0!==e.app?t.html=this._serializeAppData(e.app,e.text):e.html&&(t.html=e.html);for(const i of e.files||[])t.files.push(i);return t}_serializeAppData(e,t){return`${t?(0, -ji.htmlEscape)(t.slice(0,256)):"📈"}`}}class Yi{constructor(e){this._e=e}async read(){this._e&&0===this._e.eventPhase&&(qi.logWarn("Cannot use an already dispatched ClipboardEvent for reading"),this._e=null);const e=this._e?this._readUsingEvent(this._e):await this._readUsingApi();return this._fromRaw(e)}_readUsingEvent(e){const t=(0,n.ensure)(e.clipboardData);e.preventDefault();const i={files:[]};for(let e=0;e0&&(t.files=e.files),t}_parseAppData(e){if(-1===e.slice(0,1024).indexOf("data-tradingview-clip"))return;const t=(new DOMParser).parseFromString(e,"text/html").querySelector("[data-tradingview-clip]");return t?t.getAttribute("data-tradingview-clip")||"":void 0}_readBlobAsText(e){return new Promise(((t,i)=>{const s=new FileReader;s.onloadend=()=>{t(s.result)},s.onerror=()=>{i(s.error)},s.readAsText(e)}))}}class Zi{constructor(e){this._callbacks=Object.assign({},e),this._boundOnCopy=this._onCopyEv.bind(this),this._boundOnCut=this._onCutEv.bind(this),this._boundOnPaste=this._onPasteEv.bind(this)}listen(){document.addEventListener("copy",this._boundOnCopy),document.addEventListener("cut",this._boundOnCut),document.addEventListener("paste",this._boundOnPaste)}async peek(){if("granted"!==(await navigator.permissions.query({name:"clipboard-read"})).state)throw new Error("clipboard-read is not granted");return new Yi(null).read()}uiRequestCopy(e){this._callbacks.copyRequested&&this._callbacks.copyRequested(new Ki(null),e)}uiRequestCut(e){this._callbacks.cutRequested&&this._callbacks.cutRequested(new Ki(null),e)}uiRequestPaste(e){this._callbacks.pasteRequested&&this._callbacks.pasteRequested(new Yi(null),e)}destroy(){document.removeEventListener("copy",this._boundOnCopy),document.removeEventListener("cut",this._boundOnCut),document.removeEventListener("paste",this._boundOnPaste)}_onCopyEv(e){e.defaultPrevented||this._callbacks.copyRequested&&this._callbacks.copyRequested(new Ki(e))}_onCutEv(e){e.defaultPrevented||this._callbacks.cutRequested&&this._callbacks.cutRequested(new Ki(e))}_onPasteEv(e){e.defaultPrevented||this._callbacks.pasteRequested&&this._callbacks.pasteRequested(new Yi(e))}}var Xi=i(35749);function Ji(e){const t=e.target -;return null!==t&&1===t.nodeType&&(0,Xi.isTextEditingField)(t)}function Qi(e){const t=e.target;if(null===t)return!1;const i=(t.ownerDocument||t).getSelection();return null!==i&&!i.isCollapsed}class es extends Zi{_onCopyEv(e){if(!Ji(e)&&!Qi(e))return super._onCopyEv(e)}_onCutEv(e){if(!Ji(e)&&!Qi(e))return super._onCutEv(e)}_onPasteEv(e){if(!Ji(e))return super._onPasteEv(e)}}const ts=new dt.TranslatedString("apply toolbars theme",a.t(null,void 0,i(86708)));class is extends st.UndoCommand{constructor(e,t,i=!0){super(ts),this._prevThemeName=e,this._themeName=t,this._syncState=i}undo(){(0,L.isStdThemeName)(this._prevThemeName)&&((0,k.setTheme)(this._prevThemeName),this._syncState&&(0,L.syncTheme)())}redo(){(0,L.isStdThemeName)(this._themeName.toLowerCase())&&((0,k.setTheme)(this._themeName.toLowerCase()),this._syncState&&(0,L.syncTheme)())}}var ss=i(11751),os=i(72972),ns=i(19844);i(26352);const rs=new dt.TranslatedString("apply indicators to entire layout",a.t(null,void 0,i(70507))),as=new dt.TranslatedString("apply chart theme",a.t(null,void 0,i(68231)));a.t(null,void 0,i(28298)),a.t(null,void 0,i(78972)),a.t(null,void 0,i(10615)),a.t(null,void 0,i(81518)),a.t(null,void 0,i(92101)),a.t(null,void 0,i(94656));function ls(e,t){for(const i of e.sources){if("study"!==i.type)return!0;if(t.checkIfFeatureAvailable(new ns.StudyMetaInfo(i.source.metaInfo),[]))return!0}return!1}function cs(e){return function(e){return Mt().then((t=>t.downloadClientScreenshot(e)))}(e)}function hs(e){return function(e){return Mt().then((t=>t.copyToClipboardClientScreenshot(e)))}(e).then((()=>{(0,ee.emit)("onClientScreenshotCopiedToClipboard")}))}const ds={s:0,"2h":0,"2v":1,"3h":0,"3v":2,"3s":0,"3r":1,"2-1":1,"1-2":1,4:1,"4v":3,"4h":0,"4s":0,"4s-l":0,"1-3":1,"3-1":3,"2-2-l":0,"2-2-r":1,"2-2":3,"1-4":1,"5h":0,"5v":0,"5s":0,"5s-l":0,"2-3":2,"3-2":3,"4-1":4,"2-3-l":0,"2-3-r":2,6:1,"6h":0,"6v":0,"6c":4,"2-4":2,"4-2":4,"4-3":4,"7h":0,"7s":0,8:1,"8c":6,"8h":0,"8v":0,"9s":6,"5-4":5,"9h":0,"9v":0,"10c5":1,"10h":0,"10v":0,"12c6":1,"12c4":3,"12h":0,"14c7":1,"16c8":1,"16c4":3};async function us(e,t=this.activeChartWidget.value()){return!!t&&(this.setChartStyle(t,e),!0)}var _s=i(62548),ps=i(15943),ms=i(24317),gs=i(29970),fs=i(31237);function ys(e,t){const i=Object.create(Object.getPrototypeOf(e));for(const s of t)Object.prototype.hasOwnProperty.call(e,s)&&(i[s]=e[s]);return i}var vs=i(96937),Ss=i(90995);let bs;class ws extends X.DialogRenderer{constructor(){super(),this._dialog=null,this._subscribe=e=>{this._setVisibility(e)}}show(){this._load().then((e=>e.show()))}hide(){this._dialog?.hide()}static getInstance(){return bs||(bs=new ws),bs}_load(){return Promise.all([i.e(4856),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(8933),i.e(6032),i.e(3672),i.e(3359),i.e(8894),i.e(5743),i.e(7827),i.e(9836),i.e(1450),i.e(4719),i.e(2227),i.e(4931),i.e(7437),i.e(9418),i.e(3179),i.e(6193),i.e(5386),i.e(4862)]).then(i.bind(i,73536)).then((e=>(this._dialog?.hide(),this._dialog?.visible().unsubscribe(this._subscribe), -this._dialog=new e.ObjectTreeDialogRenderer,this._dialog.visible().subscribe(this._subscribe),this._dialog)))}}var Cs,Ts=i(69422),Ps=i(43337);async function xs(e,t,s,o,n,r="default"){let l,c=[];const h=e.model().model(),d=(0,tt.clone)(t),u=new Ps.Property({inputs:d}),_=function(e,t){return"symbol"===t?e.inputs.filter((t=>t.id===e.symbolInputId())):e.inputs.filter((e=>e.confirm))}(s,r),p=()=>{l&&h.removeCustomSource(l)},m=()=>{p(),n()},g=e=>{o({inputs:e,parentSources:c}),p()},f=_.filter(Ts.isTimeOrPriceNotHiddenInput);if(f.length>0)try{const t=await Promise.all([i.e(5234),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(1171),i.e(8933),i.e(3672),i.e(2537),i.e(3359),i.e(8894),i.e(5743),i.e(3425),i.e(1697),i.e(4587),i.e(7833),i.e(8752),i.e(9487),i.e(445),i.e(846),i.e(8220),i.e(3329),i.e(9970),i.e(6052),i.e(9590),i.e(4678),i.e(9965),i.e(9742),i.e(4248),i.e(2227),i.e(4931),i.e(9418),i.e(4426),i.e(9026),i.e(9928),i.e(8604),i.e(5893),i.e(3030)]).then(i.bind(i,73339)),o=await t.selectInputValuesOnChart(e,f,u,s.shortDescription,s.inputs);if(l=o.customSourceId,o.destPane&&ns.StudyMetaInfo.getSourceInputIds(s).length>0){const e=o.destPane.mainDataSource();c=e===h.mainSeries()?[]:[e]}else c=[]}catch(e){return void m()}f.length!==_.length?Promise.all([i.e(5234),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(1171),i.e(8933),i.e(3672),i.e(2537),i.e(3359),i.e(8894),i.e(5743),i.e(3425),i.e(1697),i.e(4587),i.e(7833),i.e(8752),i.e(9487),i.e(445),i.e(846),i.e(8220),i.e(3329),i.e(9970),i.e(6052),i.e(9590),i.e(4678),i.e(9965),i.e(9742),i.e(4248),i.e(2227),i.e(4931),i.e(9418),i.e(4426),i.e(9026),i.e(9928),i.e(8604),i.e(5893),i.e(3030)]).then(i.bind(i,29638)).then((t=>{const o=new t.ConfirmInputsDialogRenderer(function(e){if("symbol"===e)return a.t(null,void 0,i(46501));return a.t(null,void 0,i(48141))}(r),_,u,r,s,e.model(),g,m);return o.show(),o})):g(u.state().inputs||{})}!function(e){e.Default="default",e.Symbol="symbol"}(Cs||(Cs={}));let Ms=null;var Is=i(25338),As=(i(40987),i(50470)),Ls=i(58096);class ks{constructor(e){this._shown=!1,this._el=(0,As.parseHtmlElement)(function(e=""){return`
`}()),this.setSize(Ls.spinnerSizeMap[e||Ls.DEFAULT_SIZE])}spin(e){return this._el.classList.add("tv-spinner--shown"),void 0===this._container&&(this._container=e,void 0!==e&&e.appendChild(this._el)),this._shown=!0,this}stop(e){return e&&void 0!==this._container&&this._container.removeChild(this._el),this._el&&this._el.classList.remove("tv-spinner--shown"),this._shown=!1,this}setStyle(e){return Object.keys(e).forEach((t=>{const i=e[t];void 0!==i&&this._el.style.setProperty(t,i)})),this}style(){return this._el.style}setSize(e){const t=void 0!==e?`tv-spinner--size_${e}`:"";return this._el.className=`tv-spinner ${t} ${this._shown?"tv-spinner--shown":""}`,this}getEl(){return this._el}destroy(){this.stop(),delete this._el,delete this._container}}function Es(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ds(e){return e.reduce(((e,t)=>{ -for(const i in t)if(Es(t,i)){const s=t[i],o=e[i];o?o.push(s):e[i]=[s]}return e}),{})}var Bs,Vs=i(75579);!function(e){e[e.AccelerationPerMSecPixels=.003]="AccelerationPerMSecPixels",e[e.MaxSpeedPerMSecPixels=1.1]="MaxSpeedPerMSecPixels"}(Bs||(Bs={}));class Rs{constructor(e){this._chartModel=null,this._animation=null,this._chart=e,this._chart.withModel(this,(()=>{this._chartModel=this._chart.model()}))}destroy(){this._animation?.stop()}move(e){if(null!==this._chartModel){if(this._chartModel.timeScale().isEmpty())return;const t=.003,i=1.1,s=Math.round(i/t);this._moveImpl(((o,n,r)=>{const a=Math.min(n,s),l=e*t*Math.pow(a,2)/2;if(n<=s)return o+l;const c=Number.isFinite(r)?Math.max(0,s-r):0;return o+l+e*(n-a-c)*i+e*(i*c-t*Math.pow(c,2)/2)}),(e=>Math.max(0,s-e)+s))}}moveByBar(e){if(null!==this._chartModel){const t=this._chartModel.timeScale(),i=t.visibleBarsStrictRange();if(t.isEmpty()||null===i)return;const s=300,o=i.lastBar();this._moveImpl(((i,n)=>{const r=Math.floor(Math.max(0,n-s)/100)+1,a=o+e*r,l=t.indexToCoordinate(o);return i+(t.indexToCoordinate(a)-l)}),(()=>0),!0)}}stopMove(){this._animation?.stop(),this._animation=null}scrollToRealtime(e,t){if(null===this._chartModel)return;this._chartModel.timeScale().scrollToRealtime(e,t);const i=this._chart.chartWidgetCollection();!i.lock.dateRange.value()&&i.lock.trackTime.value()&&i.chartModels().value().forEach((t=>{t!==this._chartModel&&t.timeScale().scrollToRealtime(e)}))}scrollToFirstBar(){this._chartModel?.timeScale().scrollToFirstBar()}_moveImpl(e,t,i){if(null===this._chartModel)return;const s=this._chartModel.timeScale();if(s.isEmpty())return;if(i&&null!==s.visibleBarsStrictRange()){const e=s.indexToCoordinate(s.visibleBarsStrictRange().lastBar())+s.barSpacing()/2;Math.abs(s.width()-e)>s.barSpacing()/6&&s.setRightOffset(Math.round(s.rightOffset()))}const o=performance.now();let n=1/0;this._animation={getStartPosition:()=>0,getPosition:t=>(t=Math.min(n,t),e(0,t-o,n-t)),finished:e=>e>=n,stop:()=>{const e=performance.now()-o;n=performance.now()+t(e)}},this._chartModel.model().stopTimeScaleAnimation(),this._chartModel.model().setTimeScaleAnimation(this._animation)}}var Ns=i(70002);let Os=null;function Fs(e,t,s,o,n){return Promise.all([i.e(3240),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(1171),i.e(8933),i.e(6032),i.e(3672),i.e(2537),i.e(3359),i.e(8894),i.e(5743),i.e(3425),i.e(1697),i.e(4587),i.e(7833),i.e(8752),i.e(1979),i.e(4495),i.e(9487),i.e(445),i.e(846),i.e(9323),i.e(8220),i.e(3329),i.e(9970),i.e(6052),i.e(844),i.e(9590),i.e(4678),i.e(159),i.e(9965),i.e(9742),i.e(6043),i.e(4059),i.e(1488),i.e(6697),i.e(903),i.e(5445),i.e(2227),i.e(4931),i.e(9418),i.e(4426),i.e(9026),i.e(769),i.e(9928),i.e(8604),i.e(5893),i.e(624),i.e(6265)]).then(i.bind(i,12981)).then((i=>{Os?.hide();const r=i.EditObjectDialogRenderer;return Os=new r(e,t,o,n),Os.show(s),Os}))}var Ws=i(2088);let Hs=null;var zs=i(26610),Us=i(35107);const js={[Ns.TabNames.symbol]:"symbol",[Ns.TabNames.legend]:"legend",[Ns.TabNames.scales]:"scales",[Ns.TabNames.trading]:"trading", -[Ns.TabNames.events]:"events",[Ns.TabNames.alerts]:"alerts",[Ns.TabNames.timezoneSessions]:"canvas",[Ns.TabNames.text]:"text",[Ns.TabNames.style]:"style",[Ns.TabNames.visibility]:"visibility"},Gs={[Ns.TabNames.style]:"style",[Ns.TabNames.visibility]:"visibilities"};async function qs(e,t,s={},o,n){const r=o.activeChartWidget.value(),{initialTab:a,tabName:l}=s;if(l&&!a&&(s.initialTab=Gs[l]),(0,Us.isStudyLineTool)(e)&&function(e){if(!(0,Us.isStudyLineTool)(e))return!1;return["LineToolFixedRangeVolumeProfile","LineToolVbPFixed",null].filter(tt.notNull).some((t=>e.toolname===t))}(e))return r.propertiesDefinitionsForSource(e).then((i=>null!==i?Fs(e,t,s,n,i):null));if((0,Ws.isStudy)(e)&&function(e){const{shortId:t}=e.metaInfo();return"Overlay"===t}(e)||(0,zs.isLineTool)(e))return r.propertiesDefinitionsForSource(e).then((o=>{if(null!==o){return function(e){return Promise.all([i.e(4752),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(1171),i.e(8933),i.e(6032),i.e(3672),i.e(2537),i.e(3359),i.e(8894),i.e(5743),i.e(3425),i.e(1697),i.e(4587),i.e(7833),i.e(8752),i.e(1979),i.e(4495),i.e(9487),i.e(445),i.e(846),i.e(9323),i.e(8220),i.e(3329),i.e(9970),i.e(6052),i.e(9590),i.e(4678),i.e(159),i.e(9965),i.e(9742),i.e(6043),i.e(4059),i.e(1488),i.e(903),i.e(4633),i.e(2227),i.e(4931),i.e(9418),i.e(4426),i.e(9026),i.e(769),i.e(9928),i.e(8604),i.e(5893),i.e(624),i.e(6780)]).then(i.bind(i,75892)).then((t=>{Hs?.hide();const i=t.SourcePropertiesEditorRenderer;return Hs=new i(e),Hs.show({shouldReturnFocus:e.shouldReturnFocus}),Hs}))}({propertyPages:o,model:t,source:e,activePageId:l&&js[l],shouldReturnFocus:s.shouldReturnFocus})}return null}));if((0,Ws.isStudyStub)(e))return null;if((0,Ws.isStudy)(e))return Fs(e,t,s,n);{const e=l&&js[l],t=o.getChartPropertiesDialogRenderer();return t.setActivePage(e),t.show(s)}}var $s=i(24633);async function Ks(){return(await Promise.all([i.e(1171),i.e(7682),i.e(2227),i.e(139)]).then(i.bind(i,81200))).ErrorCardRenderer}var Ys=i(55014),Zs=i(89837);const Xs=(0,Rt.getHexColorByName)("color-cold-gray-700"),Js=(0,Rt.getHexColorByName)("color-cold-gray-400"),Qs=(0,Rt.getHexColorByName)("color-cold-gray-900"),eo=(0,Rt.getHexColorByName)("color-white"),to=a.t(null,void 0,i(18905)),io=a.t(null,void 0,i(63245));function so(e){return e?{...e,message:(0,Ys.formatStudyError)(e.message),rawHtml:!0}:null}class oo{constructor(e,t=!1){this._container=null,this._errorCardRenderer=null,this._mainSeriesErrorMessage=null,this._banErrorMessage=new O.WatchedValue(null).spawn(),this._hasError=new O.WatchedValue(!1),this._renderInsideContainer=!1,this._errorMessageHandler=e=>{this._hasError.setValue(null!==e),e=so(e),!this._renderInsideContainer&&this._chartWidget.hasModel()?this._updatePaneWidgets(e):this._renderErrorWithoutModel(e)},this._chartWidget=e,this._renderInsideContainer=t,this._subscribeToMainSeriesErrors()}destroy(){this._mainSeriesErrorMessage?.destroy(),this._banErrorMessage.destroy(),this._errorCardRenderer?.then((e=>{e.container.remove(),e.destroy()}))}updatePaneWidgets(){ -this._updatePaneWidgets()}setContainer(e){if(this._container!==e){this._container=e,this._errorCardRenderer?.then((e=>e.container.remove()));const t=this._getErrorMessage();t&&this._errorMessageHandler(t)}}hasError(){return this._hasError.readonly()}_updatePaneWidgets(e=this._getErrorMessage()){this._chartWidget.paneWidgets().forEach((t=>t.setErrorMessage(e)))}async _renderErrorWithoutModel(e){if(null===this._container||null===e&&null===this._errorCardRenderer)return;const t=await this._getErrorCardRenderer();this._container.contains(t.container)||this._container.appendChild(t.container),t.update(this._createErrorCardRendererState(e))}async _getErrorCardRenderer(){return this._errorCardRenderer||(this._errorCardRenderer=this._createErrorCardRenderer())}async _createErrorCardRenderer(){return new(await Ks())}_createErrorCardRendererState(e){return e?{message:e.message,icon:e.icon,textColor:k.watchedTheme.value()===$s.StdTheme.Dark?Js:Xs,backgroundColor:k.watchedTheme.value()===$s.StdTheme.Dark?Qs:eo,solutionId:e.solutionId,rawHtml:e.rawHtml,buttons:e.buttons}:{message:null}}_subscribeToMainSeriesErrors(){const e=this._chartWidget;e.withModel(this,(()=>{const t=e.model().model().mainSeries();this._mainSeriesErrorMessage=(0,ft.combine)(((t,s)=>{if(t)return t;if(null===s)return null;switch(s.type){case"invalid_symbol":return this._createErrorParamsForInvalidSymbol(e);case"calculations_error":return{message:s.errorMessage,icon:"attention"};case"no_data":return{message:a.t(null,void 0,i(36252)),icon:"ghost"};case"unsupported_resolution":return this._createErrorParamsForUnsupportedResolution(e)}}),this._banErrorMessage.weakReference(),(0,xt.getSeriesDisplayErrorWV)(t).ownership()),this._mainSeriesErrorMessage.subscribe(this._errorMessageHandler,{callWithLast:!0})}))}_createErrorParamsForInvalidSymbol(e){return{message:`${a.t(null,void 0,i(52969))}
${a.t(null,void 0,i(53272))}`,icon:"ghost",rawHtml:!0,maxHeight:400,zeroHeight:200,buttons:[{name:io,onClick:async()=>{e.setActive(!0);const t=e.model().mainSeries(),i=t.symbol(),s=t.properties().childs().shortName.value(),o="option"===t.symbolInfo()?.type,n=t.symbolInfo()?.pro_name;let r=t.isSpread()?i:s||i||"";if(l.enabled("symbol_search_option_chain_selector")&&o&&n){const e=await resolveUnderlyingSymbol(n);e&&(r={type:"option",value:n,underlying:e})}(0,vs.showDialog)({defaultValue:r,enableOptionsChain:l.enabled("symbol_search_option_chain_selector")})}}]}}_createErrorParamsForUnsupportedResolution(e){const t=e.model().mainSeries().unsupportedResolutionState().value();return null===t?null:{message:(0,Zs.getErrorFromUnsupportedResolutionState)(t,!0),icon:"unsupported-resolution",rawHtml:!0,maxHeight:400,zeroHeight:200,buttons:[{name:to.format({resolution:t.applicableResolution}),onClick:()=>{e.setActive(!0),de.linking.setIntervalAndLogInitiator(t.applicableResolution,"Error state")}}]}}_getErrorMessage(){return so(this._banErrorMessage.value()||this._mainSeriesErrorMessage?.value()||null)}}var no,ro=i(59239),ao=i(51304),lo=i(39612),co=i(93201),ho=i(98155),uo=i(11044) -;class _o{constructor(e,t){this._showed=!1,this._additionalReadyPromise=null,this._cw=e,this._element=document.createElement("div"),this._element.classList.add(uo.screen),t.appendChild(this._element),this._cw.withModel(this,this._connectToModel)}destroy(){this.hide(),this._element.remove()}show(e,t){if(e){const e=this._cw.model().mainSeries().status();if(1!==e&&2!==e)return}this._additionalReadyPromise=t,this._cw.setInLoadingState(!0),this._showed||(this._showed=!0,this._show())}hide(){this._cw.setInLoadingState(!1),this._showed&&this._hide()}isShown(){return this._showed}_connectToModel(){const e=this._cw.model().mainSeries(),t=e.dataEvents();t.symbolError().subscribe(this,(e=>{e!==ho.permissionDenied&&this.hide()})),t.seriesError().subscribe(this,(()=>{(0,l.enabled)("hide_loading_screen_on_series_error")&&this.hide()})),e.statusWV().subscribe((e=>{if(4!==e&&12!==e&&13!==e&&14!==e||this.hide(),bt.seriesReadyStatuses.has(e)){const e=this._additionalReadyPromise;e?e.then((()=>{this.hide()})):this.hide()}}))}_show(){const e=this._cw.properties().childs().paneProperties.childs();let t;if(e.backgroundType.value()===co.ColorType.Solid)t=e.background.value();else{t=`linear-gradient(${e.backgroundGradientStartColor.value()},${e.backgroundGradientEndColor.value()})`}this._element.style.background=t,this._element.classList.add(uo.fade)}_hide(){this._showed=!1,this._element.classList.remove(uo.fade)}}function po(e,t){let{deltaX:i,deltaY:s}=e;switch(i/=100,s/=100,t.deltaMode){case t.DOM_DELTA_PAGE:i*=120,s*=120;break;case t.DOM_DELTA_LINE:i*=32,s*=32}return{deltaX:i,deltaY:s}}!function(e){e[e.MaxNextEventDelay=100]="MaxNextEventDelay",e[e.IgnoreSmallerDeltaCoeff=3]="IgnoreSmallerDeltaCoeff"}(no||(no={}));class mo{constructor(){this._totalDeltaX=0,this._totalDeltaY=0,this._prevWheelTime=0}processWheel(e){e.timeStamp-this._prevWheelTime>100&&this._reset();const t=!(0,ze.isMac)()&&e.shiftKey,i=t?-e.deltaY:e.deltaX,s=t?e.deltaX:e.deltaY;this._totalDeltaX+=i,this._totalDeltaY+=s,this._prevWheelTime=e.timeStamp;const o={deltaX:i,deltaY:s};return 0===this._totalDeltaX||0===this._totalDeltaY||(Math.abs(this._totalDeltaX)>=Math.abs(3*this._totalDeltaY)&&(o.deltaY=0),Math.abs(this._totalDeltaY)>=Math.abs(3*this._totalDeltaX)&&(o.deltaX=0)),po(o,e)}_reset(){this._totalDeltaX=0,this._totalDeltaY=0}}var go,fo=i(77914),yo=i(15266);!function(e){e[e.Height=1]="Height",e[e.MinPaneHeight=30]="MinPaneHeight"}(go||(go={}));class vo{constructor(e,t,i){this._handleEl=null,this._resizeInfo=null,this._colorCache={lineColor:"",backgroundColor:"",color:""},this._selected=new O.WatchedValue,this._chart=e,this._topPaneIndex=t,this._bottomPaneIndex=i,this._element=document.createElement("div"),this._element.classList.add(yo.paneSeparator),this._element.style.background=this._color(),this.adjustSize(),this._element.addEventListener("click",(()=>{}));const s=document.createElement("div");s.classList.add(yo.handle),this._element.appendChild(s),this._mouseEventHandler=new Wt.MouseEventHandler(s,this,{treatVertTouchDragAsPageScroll:!1, -treatHorzTouchDragAsPageScroll:!0}),this._handleEl=s,this._handleEl.classList.toggle(yo.mobile,ze.CheckMobile.any()),this._element.setAttribute("aria-hidden","true"),this._selected.subscribe((e=>this._handleEl?.classList.toggle(yo.selected,e)))}destroy(){this._mouseEventHandler.destroy(),this._element.parentElement&&this._element.parentElement.removeChild(this._element)}topPaneIndex(){return this._topPaneIndex}bottomPaneIndex(){return this._bottomPaneIndex}getElement(){return this._element}hide(){this._element.classList.add("js-hidden")}show(){this._element.classList.remove("js-hidden")}selected(){return this._selected.readonly()}adjustSize(){this._element.style.height=vo.height()+"px"}mouseEnterEvent(e){const{topPane:t,bottomPane:i}=this._topBottomPane(!0);null!==t&&null!==i&&(0,n.ensureNotNull)(this._handleEl).classList.add(yo.hovered)}mouseLeaveEvent(e){(0,n.ensureNotNull)(this._handleEl).classList.remove(yo.hovered)}mouseDownEvent(e){this._mouseDownOrTouchStartEvent(e)}tapEvent(){this._selected.setValue(!this._selected.value())}touchStartEvent(e){this._selected.value()&&this._mouseDownOrTouchStartEvent(e)}pressedMouseMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}touchMoveEvent(e){this._selected.value()&&this._pressedMouseOrTouchMoveEvent(e)}mouseUpEvent(e){this._mouseUpOrTouchEndEvent(e)}touchEndEvent(e){this._selected.value()&&this._mouseUpOrTouchEndEvent(e)}touchStartOutsideEvent(){this._selected.setValue(!1)}update(){this._element.style.background=this._color().toString()}paint(){}image(){const{topPane:e}=this._topBottomPane(!1),t=e.leftPriceAxisesContainer().getWidth(),i=e.width(),s=e.rightPriceAxisesContainer().getWidth(),o=this._color(),n=(0,Kt.createDisconnectedCanvas)(document,(0,Ft.size)({width:t,height:1})),r=(0,Kt.getPrescaledContext2D)(n);r.fillStyle=o,r.fillRect(0,0,t,1);const a=(0,Kt.createDisconnectedCanvas)(document,(0,Ft.size)({width:i,height:1})),l=(0,Kt.getPrescaledContext2D)(a);l.fillStyle=o,l.fillRect(0,0,i,1);const c=(0,Kt.createDisconnectedCanvas)(document,(0,Ft.size)({width:s,height:1})),h=(0,Kt.getPrescaledContext2D)(c);return h.fillStyle=o,h.fillRect(0,0,s,1),{type:"separator",leftAxis:{content:n.toDataURL(),canvas:n,contentWidth:t,contentHeight:1},rightAxis:{content:c.toDataURL(),canvas:c,contentWidth:s,contentHeight:1},content:a.toDataURL(),canvas:a,contentWidth:i,contentHeight:1}}static height(){const e=window.devicePixelRatio||1;return e>=1?1:1/e}_mouseDownOrTouchStartEvent(e){const{topPane:t,bottomPane:i}=this._topBottomPane(!0);if(null===t||null===i)return;const s=t.state().stretchFactor()+i.state().stretchFactor(),o=s/(t.height()+i.height()),r=30*o;s<=2*r||(this._resizeInfo={startY:e.pageY,prevStretchTopPane:t.state().stretchFactor(),maxPaneStretch:s-r,totalStretch:s,pixelStretchFactor:o,minPaneStretch:r},(0,n.ensureNotNull)(this._handleEl).classList.add(yo.active))}_pressedMouseOrTouchMoveEvent(e){const{topPane:t,bottomPane:i}=this._topBottomPane(!0),s=this._resizeInfo;if(null===s||null===t||null===i)return;const o=(e.pageY-s.startY)*s.pixelStretchFactor,n=(0, -fo.clamp)(s.prevStretchTopPane+o,s.minPaneStretch,s.maxPaneStretch);t.state().setStretchFactor(n),i.state().setStretchFactor(s.totalStretch-n),this._chart.model().model().fullUpdate()}_mouseUpOrTouchEndEvent(e){const{topPane:t,bottomPane:i}=this._topBottomPane(!0),s=this._resizeInfo;null!==s&&null!==t&&null!==i&&(this._chart.model().addPaneStretchFactorUndoCommand(t.state(),i.state(),s.prevStretchTopPane,t.state().stretchFactor()),this._resizeInfo=null,(0,n.ensureNotNull)(this._handleEl).classList.remove(yo.active))}_color(){const e=this._chart.properties().childs().paneProperties.childs().separatorColor.value(),t=this._chart.model().model().backgroundColor().value();if(this._colorCache.lineColor!==e||this._colorCache.backgroundColor!==t){const i=(0,Nt.parseRgba)(t),s=(0,Nt.parseRgba)(e),o=0===i[3]&&0===s[3]?"rgba(0,0,0,0)":(0,Nt.rgbaToString)((0,Nt.blendRgba)(i,s));this._colorCache={lineColor:e,backgroundColor:t,color:o}}return this._colorCache.color}_topBottomPane(e){const t=this._chart.paneWidgets();let i=null,s=null;for(let s=this._topPaneIndex;s>=0;--s){const o=t[s];if(!e||!o.state().collapsed().value()){i=o;break}}for(let i=this._bottomPaneIndex;i{this.update(),this._textWidthCache.reset()},this._timeAxisWidget=n,this._isLeft="left"===e;const{rendererOptionsProvider:r,sourcesTitlesProvider:a,contextMenuItemsProvider:l,backgroundBasedTheme:c,onActiveOrHoveredChart:h=new O.WatchedValue(!1).ownership(),requestRepaint:d,getBackgroundTopColor:u,getBackgroundBottomColor:_,showHorizontalBorder:p}=s;this._rendererOptionsProvider=r,this._sourcesTitlesProvider=a,this._contextMenuItemsProvider=l,this._backgroundBasedTheme=c,this._onActiveOrHoveredChart=h,this._requestRepaint=d,this._getBackgroundTopColor=u,this._getBackgroundBottomColor=_,this._showHorizontalBorder=Boolean(p),this._properties=t,this._axisInfo=i,this._labelOptions={...ko,...o},this._cell=document.createElement("div"),this._labelOptions.enableTooltip&&this._cell.classList.add("apply-common-tooltip"),this._cell.style.width="25px",this._cell.style.height="100%", -this._cell.style.position="absolute",this._cell.style.left="0",this._cell.style.overflow="hidden",this._labelOptions.showLabels&&(this._labelOptions.enableTooltip&&(0,Ao.setTooltipData)(this._cell,"text",(e=>this._tooltipContent())),this._onActiveOrHoveredChart.subscribe(d)),this._properties.lineColor.subscribe(this,(()=>this._requestRepaint())),this._mouseEventHandler=new Wt.MouseEventHandler(this._cell,this,{treatHorzTouchDragAsPageScroll:!0,treatVertTouchDragAsPageScroll:!0}),this._canvasBinding=(0,Kt.createBoundCanvas)(this._cell,(0,Ft.size)({width:16,height:16})),this._canvasBinding.subscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler);const g=this._canvasBinding.canvasElement;g.style.position="absolute",g.style.left="0",g.style.top="0",this._cell.setAttribute("aria-hidden","true")}destroy(){this._canvasBinding.unsubscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler),this._canvasBinding.dispose(),this._properties.lineColor.unsubscribeAll(this),this._mouseEventHandler.destroy(),this._backgroundBasedTheme.release(),this._onActiveOrHoveredChart.unsubscribe(this._requestRepaint),this._onActiveOrHoveredChart.release()}mouseEnterEvent(e){this._mouseOrTouchEnterEvent(e)}touchStartEvent(e){this._mouseOrTouchEnterEvent(e)}mouseLeaveEvent(e){this._mouseOrTouchLeaveEvent(e)}touchEndEvent(e){this._mouseOrTouchLeaveEvent(e)}mouseClickEvent(e){this._mouseClickOrTapEvent(e)}tapEvent(e){this._mouseClickOrTapEvent(e)}update(){}getElement(){return this._cell}onLabelHovered(){return this._onLabelHovered}setSizeAndOffset(e,t){(0,Ft.equalSizes)(this._size,e)||(this._size=e,this._canvasBinding.resizeCanvasElement(e),this._cell.style.width=`${e.width}px`,this._cell.style.minWidth=`${e.width}px`,this._cell.style.height=`${e.height}px`),this._offset!==t&&(this._offset=t,this._cell.style.left=`${t}px`)}paint(e){0!==this._size.width&&0!==this._size.height&&(e.level===ao.InvalidationLevel.Full||e.invalidateStubs)&&((0,Kt.tryApplySuggestedCanvasBitmapSize)(this._canvasBinding),this._paintImpl((0,Kt.getContext2D)(this._canvasBinding.canvasElement),(0,Kt.getBindingRenderingInfo)(this._canvasBinding)))}getWidth(){return this._size.width}getImage(){const e=(0,Kt.getBindingRenderingInfo)(this._canvasBinding),t=(0,Kt.createDisconnectedCanvasByRenderingInfo)(document,e);return this._paintImpl((0,Kt.getContext2D)(t),e,!0),t}setLabelMode(e){e!==this._labelMode&&(this._labelMode=e,this._cell.classList.toggle("apply-common-tooltip",1!==e&&this._labelOptions.enableTooltip))}_paintImpl(e,t,i){this._drawBackground(e,t),this._drawVerticalBorder(e,t),this._showHorizontalBorder&&this._drawHorizontalBorder(e,t),this._labelOptions.showLabels&&this._drawLabel(e,t,i)}_setHighlighted(e){this._labelOptions.enableHighlight&&(this._onLabelHovered.fire("stubButton",e),this._highlighted!==e&&(this._highlighted=e),this._requestRepaint())}_drawVerticalBorder(e,t){e.save(),e.fillStyle=this._vertBorderColor();const i=Eo(this._rendererOptionsProvider.options(),t.horizontalPixelRatio),s=this._isLeft?t.bitmapSize.width-i:0 -;e.fillRect(s,0,i,t.bitmapSize.height),e.restore()}_drawHorizontalBorder(e,t){e.save(),e.fillStyle=this._horzBorderColor();const i=Eo(this._rendererOptionsProvider.options(),t.verticalPixelRatio),s=this._isLeft?0:i;e.fillRect(s,0,t.bitmapSize.width-i,i),e.restore()}_drawBackground(e,t){const i=this._getBackgroundTopColor(),s=this._getBackgroundBottomColor(),{bitmapSize:o}=t;if(i===s?(0,Kt.clearRect)(e,0,0,o.width,o.height,i):(0,$t.clearRectWithGradient)(e,0,0,o.width,o.height,i,s),this._highlighted){const t=L.themes[this._backgroundBasedTheme.value()].getThemedColor("color-price-axis-highlight");(0,Kt.fillRect)(e,0,0,o.width,o.height,t),e.globalAlpha=1}}_drawLabel(e,t,i){const s=this._backgroundBasedTheme.value(),o=this._axisInfo;if(null===o||!i&&!this._onActiveOrHoveredChart.value())return;const{bitmapSize:n,horizontalPixelRatio:r,verticalPixelRatio:a}=t,l=Eo(this._rendererOptionsProvider.options(),r),c=Math.round(n.width)-l,h=Eo(this._rendererOptionsProvider.options(),a),d=Math.round(n.height)-h,u=(0,Vt.point)(l+c/2,h+d/2);if(1===this._labelMode||2===this._labelMode&&(!this._highlighted||i)){e.fillStyle=L.themes[s].getThemedColor("color-price-axis-label-back"),e.globalAlpha=.5,e.beginPath(),e.arc(u.x,u.y,9.5*r,0,2*Math.PI,!0),e.fill(),e.globalAlpha=1,e.fillStyle=L.themes[s].getThemedColor("color-price-axis-label-text"),e.font=this._font,e.textAlign="center",e.textBaseline="middle";const t=this._textWidthCache.yMidCorrection(e,o.label);(0,Kt.drawScaled)(e,r,a,(()=>{e.fillText(o.label,u.x/r,u.y/a+t)}))}else if(!i&&this._onActiveOrHoveredChart.value()){const t=this._gearRenderer.viewBox(),i=Math.round(u.x-t.width*r/2),o=Math.round(u.y-t.height*a/2);e.fillStyle=L.themes[s].getThemedColor("color-text-primary"),e.imageSmoothingQuality="high",this._gearRenderer.render(e,{targetViewBox:{x:i,y:o,width:t.width*r,height:t.height*a},doNotApplyColors:!0})}}_vertBorderColor(){return this._properties.lineColor.value()}_horzBorderColor(){return this._timeAxisWidget?.lineColor()??this._vertBorderColor()}_tooltipContent(){return this._sourcesTitlesProvider().join("\n")}_mouseOrTouchEnterEvent(e){this._isMouseOverStub=!0,this._labelOptions.showLabels&&this._labelOptions.enableHighlight&&!this._timeAxisWidget?.chart.model().model().chartFloatingTooltipVisible().value()&&this._setHighlighted(!0)}_mouseOrTouchLeaveEvent(e){this._isMouseOverStub=!1,this._labelOptions.showLabels&&this._labelOptions.enableHighlight&&!this._isContextMenuOpened&&this._setHighlighted(!1)}async _mouseClickOrTapEvent(e){if(e.preventDefault(),null!==this._fixedLabelMode||1===this._labelMode||!this._labelOptions.enableMenu||!this._labelOptions.showLabels)return void Io.ContextMenuManager.hideAll();this._fixedLabelMode=this._labelMode,this.setLabelMode(0);const t=this._cell.getBoundingClientRect(),i=await this._contextMenuItemsProvider();this._isContextMenuOpened=!0,this._labelOptions.showLabels&&this._labelOptions.enableHighlight&&this._setHighlighted(!0),Io.ContextMenuManager.showMenu(i,{clientX:this._isLeft?t.left:t.right,clientY:t.top, -attachToXBy:this._isLeft?"left":"right",attachToYBy:"bottom"},{statName:"PriceScaleLabelContextMenu",doNotCloseOn:this.getElement()},{menuName:"PriceScaleLabelContextMenu"},(()=>{this._isMouseOverStub||this._setHighlighted(!1),this._isContextMenuOpened=!1,this.setLabelMode((0,n.ensureNotNull)(this._fixedLabelMode)),this._fixedLabelMode=null}))}}var Bo=i(96708);class Vo{constructor(e,t,i,s,o,n=null){this._axises=[],this._stubs=[],this._size=(0,Ft.size)({width:0,height:0}),this._onLabelHovered=new ae.Delegate,this._scalesProperties=e,this._priceAxisWidgetFactory=i,this._timeAxisWidget=n,this._rendererOptionsProvider=s.rendererOptionsProvider,this._titlesProvider=s.titlesProvider,this._stubContextMenuProvider=s.stubContextMenuProvider,this._backgroundBasedTheme=s.backgroundBasedTheme,this._onActiveOrHoveredChart=s.onActiveOrHoveredChart,this._getBackgroundTopColor=s.getBackgroundTopColor,this._getBackgroundBottomColor=s.getBackgroundBottomColor,this._requestRepaint=s.requestRepaint,this._showHorisontalBorder=Boolean(s.showHorizontalBorder),this._labelsOptions={...ko,...o};const r=this._scalesProperties.childs();this._stubProperties={lineColor:r.lineColor,fontSize:r.fontSize},this._side=t,this._cell=document.createElement("div"),this._cell.classList.add("chart-markup-table","price-axis-container"),this._cell.style.width="25px",this._cell.style.position="relative"}destroy(){this.setScales([],0,0,0),this._backgroundBasedTheme.release(),this._onActiveOrHoveredChart?.release()}onLabelHovered(){return this._onLabelHovered}setScales(e,t,i,s){for(;e.length>this._axises.length&&this._axises.lengthr;){const e=(0,n.ensureDefined)(this._stubs.pop());e.onLabelHovered().unsubscribeAll(this),this._cell.removeChild(e.getElement()),e.destroy()}for(;this._stubs.length{this._labelsOptions.showLabels&&this._labelsOptions.enableHighlight&&this._onLabelHovered.fire({owner:t,axis:(0,n.ensureNotNull)(e)},i)})),this._stubs.push(t),this._cell.appendChild(t.getElement())}const a=this._labelsOptions.enableMenu;1===s?this._stubs.forEach(((e,t)=>e.setLabelMode(a?0:1))):this._stubs.forEach(((e,t)=>e.setLabelMode(te.updateCurrencyLabel()))}optimalWidths(){ -return this._axises.map((e=>e.optimalWidth()))}setSizes(e,t){this._size=(0,Ft.size)({width:t.reduce(((e,t)=>e+t),0),height:e}),this._cell.style.width=this._size.width+"px",this._cell.style.minWidth=this._size.width+"px",this._cell.style.height=this._size.height+"px",t.length!==this._axises.length+this._stubs.length&&(0,n.assert)(t.length===this._axises.length+this._stubs.length,"Widgets count should be the same as widths one");let i=0;this._forEachWidgetFromLeft(((s,o)=>{const n=t[o];s.setSizeAndOffset((0,Ft.size)({width:n,height:e}),i),i+=n}))}update(){this._axises.forEach((e=>e.update())),this._stubs.forEach((e=>e.update()))}paint(e,t){this._axises.forEach(((t,i)=>t.paint(e(i)))),this._stubs.forEach(((e,i)=>e.paint(t)))}paintStubs(e){this._stubs.forEach((t=>t.paint(e)))}restoreDefaultCursor(){this._axises.forEach((e=>e.restoreDefaultCursor()))}getWidth(){return this._size.width}findAxisWidgetForScale(e){const t=this._axises.find((t=>t.priceScale()===e));return void 0===t?null:t}getScreenshotData(){const e=this._getImage();return{canvas:e,content:e.toDataURL(),contentHeight:this._size.height,contentWidth:this._size.width}}getImage(){return this._getImage()}slotsCount(){return this._axises.length+this._stubs.length}setHighlightedPriceAxises(e){this._axises.forEach((t=>{const i=t.axisInfo(),s=e.find((e=>e.label===i?.label));t.setHighlighted(void 0!==s)}))}axes(){return this._axises}_stubParams(e){return{rendererOptionsProvider:this._rendererOptionsProvider,backgroundBasedTheme:this._backgroundBasedTheme.spawnOwnership(),onActiveOrHoveredChart:this._onActiveOrHoveredChart?.spawnOwnership(),sourcesTitlesProvider:()=>this._titlesProvider(this._side,e),contextMenuItemsProvider:()=>this._stubContextMenuProvider(this._side,e),getBackgroundTopColor:this._getBackgroundTopColor,getBackgroundBottomColor:this._getBackgroundBottomColor,requestRepaint:this._requestRepaint,showHorizontalBorder:this._showHorisontalBorder}}_getImage(){const e=(0,Kt.createDisconnectedCanvas)(document,this._size),t=(0,Kt.getPrescaledContext2D)(e);let i=0;return this._forEachWidgetFromLeft(((e,s)=>{const o=e.getWidth();0!==o&&0!==this._size.height&&(t.drawImage(e.getImage(),i,0,o,this._size.height),i+=o)})),e}_forEachWidgetFromLeft(e){const t=[...this._axises,...this._stubs],i="left"===this._side,s=i?-1:t.length,o=i?-1:1;for(let n=i?t.length-1:0;n!==s;n+=o)e(t[n],n,t)}}var Ro=i(52859),No=i(55824),Oo=i(93688);class Fo{constructor(e=0){this._width=null,this._labelBottom=null,this._currencyInfo=null,this._unitInfo=null,this._measureUnitIdInfo=null,this._currencyAndUnitLabelsWrapper=document.createElement("div"),this._currencyAndUnitLabelsWrapper.className=Oo["price-axis-currency-label-wrapper"],this._currencyAndUnitLabelsWrapper.setAttribute("data-name","currency-unit-label-wrapper"),this._controlsContainer=document.createElement("div"),this._controlsContainer.className=Oo["price-axis-currency-label"],this._currencyAndUnitLabelsWrapper.appendChild(this._controlsContainer),this._currencyLabelDiv=document.createElement("div"), -this._currencyLabelDiv.classList.add(Oo.row,"apply-common-tooltip"),this._currencyLabelDiv.dataset.name="currency-label-selector",(0,Ao.setTooltipData)(this._currencyLabelDiv,"text",(e=>this._currencyTooltipContent())),this._currencyText=document.createElement("div"),this._currencyText.className=Oo["price-axis-currency-label-text"],this._currencyLabelDiv.appendChild(this._currencyText),this._currencyArrowDown=document.createElement("div"),this._currencyArrowDown.className=Oo["price-axis-currency-label-arrow-down"],this._currencyArrowDown.innerHTML=No,this._currencyLabelDiv.appendChild(this._currencyArrowDown),this._measureUnitIdLabelDiv=document.createElement("div"),this._measureUnitIdLabelDiv.className=Oo.row,this._measureUnitIdLabelDiv.classList.add("apply-common-tooltip"),this._measureUnitIdLabelDiv.classList.add("readonly"),(0,Ao.setTooltipData)(this._measureUnitIdLabelDiv,"text",(e=>this._measureUnitIdTooltipContent())),this._measureUnitIdText=document.createElement("div"),this._measureUnitIdText.className=Oo["price-axis-currency-label-text"],this._measureUnitIdLabelDiv.appendChild(this._measureUnitIdText),this._unitLabelDiv=document.createElement("div"),this._unitLabelDiv.classList.add(Oo.row,"apply-common-tooltip"),this._unitLabelDiv.dataset.name="unit-label-selector",(0,Ao.setTooltipData)(this._unitLabelDiv,"text",(e=>this._unitTooltipContent())),this._unitText=document.createElement("div"),this._unitText.className=Oo["price-axis-currency-label-text"],this._unitLabelDiv.appendChild(this._unitText),this._unitArrowDown=document.createElement("div"),this._unitArrowDown.className=Oo["price-axis-currency-label-arrow-down"],this._unitArrowDown.innerHTML=No,this._unitLabelDiv.appendChild(this._unitArrowDown),this._controlsContainer.appendChild(this._currencyLabelDiv),this._controlsContainer.appendChild(this._measureUnitIdLabelDiv),this._controlsContainer.appendChild(this._unitLabelDiv),this.disableCurrency(),this.disableUnit(),this.setFontSize(e)}element(){return this._currencyAndUnitLabelsWrapper}currencyLabelElement(){return this._currencyLabelDiv}unitLabelElement(){return this._unitLabelDiv}isEnabled(){return this.currencyLabelEnabled()||this.unitLabelEnabled()||this.measureUnitIdLableEnabled()}isHidden(){return this._currencyAndUnitLabelsWrapper.classList.contains(Oo.hidden)}setCurrencyExpanded(e){this._currencyLabelDiv.classList.toggle(Oo.expanded,e)}setUnitExpanded(e){this._unitLabelDiv.classList.toggle(Oo.expanded,e)}width(){if(null!==this._width)return this._width;let e=0;if(this.currencyLabelEnabled()){const t=this._currencyText.getBoundingClientRect(),i=this._currencyArrowDown.getBoundingClientRect();e=Math.max(e,t.width+i.width+2*this._textMarginAndPadding())}if(this.measureUnitIdLableEnabled()){const t=this._measureUnitIdText.getBoundingClientRect();e=Math.max(e,t.width+2*this._textMarginAndPadding())}if(this.unitLabelEnabled()){const t=this._unitText.getBoundingClientRect(),i=this._unitArrowDown.getBoundingClientRect();e=Math.max(e,t.width+i.width+2*this._textMarginAndPadding())}return this._width=e} -drawLabel(e,t,i){if(!this.isEnabled())return;const s=Math.round(Number(Oo.css_wrapper_margin)*i),o=(0,fo.ceiledEven)(t*i)-2*s,n=Math.round(this.labelBottom()*i),r=n-2*s,a=Math.round(Number(Oo.css_value_currency_label_radius)*i);e.fillStyle=getComputedStyle(this._currencyAndUnitLabelsWrapper).backgroundColor,e.fillRect(0,0,Math.ceil(t*i),n);const l=[];l.push(this.currencyLabelEnabled()?this._currencyText.textContent??"":""),l.push(this.measureUnitIdLableEnabled()?this._measureUnitIdText.textContent??"":""),l.push(this.unitLabelEnabled()?this._unitText.textContent??"":""),e.font=(0,si.makeFont)(this._fontSize,m.CHART_FONT_FAMILY);const c=new Qt.TextWidthCache;let h=0;const d=[];l.forEach((t=>{let i=0;""!==t&&(i=c.yMidCorrection(e,t),h++),d.push(i)}));const u=r/h;e.beginPath();const _=getComputedStyle(this._controlsContainer);e.fillStyle=_.backgroundColor,e.strokeStyle=_.borderColor,(0,$t.drawRoundRect)(e,s,s,o,r,a),e.fill(),e.stroke(),e.fillStyle=getComputedStyle(this._currencyLabelDiv).color,e.textBaseline="middle",e.textAlign="left";const p=Math.round(this._textMarginAndPadding()*i)+s,g=u/2;let f=s+g;l.forEach(((t,s)=>{""!==t&&((0,Kt.drawScaled)(e,i,i,(()=>{e.fillText(t,p/i,(f+d[s])/i)})),f=Math.ceil(f+2*g))}))}setHidden(e){this._currencyAndUnitLabelsWrapper.classList.toggle(Oo.hidden,e)}enableCurrency(){this._currencyLabelDiv.classList.remove("js-hidden"),this._resetSizesAndVisibility()}disableCurrency(){this._currencyLabelDiv.classList.add("js-hidden"),this._resetSizesAndVisibility()}enableUnit(){this._unitLabelDiv.classList.remove("js-hidden"),this._resetSizesAndVisibility()}disableUnit(){this._unitLabelDiv.classList.add("js-hidden"),this._resetSizesAndVisibility()}enableMeasureUnitId(){this._measureUnitIdLabelDiv.classList.remove("js-hidden"),this._resetSizesAndVisibility()}disableMeasureUnitId(){this._measureUnitIdLabelDiv.classList.add("js-hidden"),this._resetSizesAndVisibility()}currencyLabelEnabled(){return!this._currencyLabelDiv.classList.contains("js-hidden")}unitLabelEnabled(){return!this._unitLabelDiv.classList.contains("js-hidden")}measureUnitIdLableEnabled(){return!this._measureUnitIdLabelDiv.classList.contains("js-hidden")}currencyConversionAvailable(){return!this._currencyLabelDiv.classList.contains("readonly")}unitConversionAvailable(){return!this._unitLabelDiv.classList.contains("readonly")}setCurrencyInfo(e){if(this._currencyInfo===e)return!1;this._currencyInfo=e;const t=null===e.selectedCurrency?a.t(null,void 0,i(54215)):(0,n.ensureDefined)(e.displayedValues.get(e.selectedCurrency));return this._currencyText.textContent!==t&&(this._currencyText.textContent=t,this._width=null),this._currencyArrowDown.classList.contains("js-hidden")!==e.readOnly&&(this._currencyArrowDown.classList.toggle("js-hidden",e.readOnly),this._currencyLabelDiv.classList.toggle("readonly",e.readOnly),this._width=null),!0}setUnitInfo(e){ -if(null!==this._unitInfo&&this._unitInfo.selectedUnit===e.selectedUnit&&0===this._unitInfo.availableGroups.size==(0===e.availableGroups.size)&&this._unitInfo.originalUnits.size===e.originalUnits.size)return this._unitInfo=e,!1;this._unitInfo=e;const t=null===e.selectedUnit?a.t(null,void 0,i(54215)):(0,n.ensureDefined)(e.names.get(e.selectedUnit));return this._unitText.textContent!==t&&(this._unitText.textContent=t,this._width=null),this._unitArrowDown.classList.contains("js-hidden")!==(0===e.availableGroups.size)&&(this._unitArrowDown.classList.toggle("js-hidden",0===e.availableGroups.size),this._unitLabelDiv.classList.toggle("readonly",0===e.availableGroups.size),this._width=null),!0}setMeasureUnitIdInfo(e){if(this._measureUnitIdInfo===e)return!1;this._measureUnitIdInfo=e;const t=null===e.selectedMeasureUnitId?a.t(null,void 0,i(54215)):(0,n.ensureDefined)(e.names.get(e.selectedMeasureUnitId));return this._measureUnitIdText.textContent!==t&&(this._measureUnitIdText.textContent=t,this._width=null),this._measureUnitIdLabelDiv.classList.contains("js-hidden")!==(0===e.names.size)&&(this._measureUnitIdLabelDiv.classList.toggle("js-hidden",0===e.names.size),this._width=null),!0}currencyInfo(){return this._currencyInfo}unitInfo(){return this._unitInfo}measureUnitIdInfo(){return this._measureUnitIdInfo}setFontSize(e){this._fontSize!==e&&(this._fontSize=e,this._currencyLabelDiv.style.fontSize=e+"px",this._measureUnitIdLabelDiv.style.fontSize=e+"px",this._unitLabelDiv.style.fontSize=e+"px",this._width=null,this._labelBottom=null)}labelBottom(){if(null!==this._labelBottom)return this._labelBottom;const e=this._controlsContainer.getBoundingClientRect(),t=this._currencyAndUnitLabelsWrapper.getBoundingClientRect(),i=e.y-t.y;return this._labelBottom=e.height+2*i}_resetSizesAndVisibility(){this._width=null,this._labelBottom=null,this._updateVisibility()}_textMarginAndPadding(){return Number(Oo.css_wrapper_margin)+Number(Oo.css_row_left_right_padding)+2}_currencyTooltipContent(){const e=this._currencyInfo;return null===e?"":null===e.selectedCurrency?Array.from(e.currencies).map((t=>(0,n.ensureDefined)(e.displayedValues.get(t)))).join(", "):e.readOnly?a.t(null,void 0,i(43931)):a.t(null,void 0,i(48566))}_unitTooltipContent(){const e=this._unitInfo;return null===e?"":null===e.selectedUnit?Array.from(e.units).map((t=>(0,n.ensureDefined)(e.names.get(t)))).join(", "):0===e.availableGroups.size?a.t(null,void 0,i(40012)):a.t(null,void 0,i(85110))}_measureUnitIdTooltipContent(){const e=this._measureUnitIdInfo;return null===e?"":null===e.selectedMeasureUnitId?Array.from(e.measureUnitIds).map((t=>(0,n.ensureDefined)(e.names.get(t)))).join(", "):e.descriptions.get(e.selectedMeasureUnitId)||""}_updateVisibility(){const e=this.isEnabled();this._currencyAndUnitLabelsWrapper.classList.toggle("js-hidden",!e)}}async function Wo(e,t,s,o){ -const{UnitConversionRenderer:n}=await Promise.all([i.e(1095),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(3672),i.e(1697),i.e(8260),i.e(844),i.e(3946),i.e(7399),i.e(2227),i.e(9418),i.e(3179),i.e(2704)]).then(i.bind(i,28587));return new n(e,s,t,o)}async function Ho(e,t,s){const{CurrencyMenuResultEvents:o}=await i.e(5639).then(i.bind(i,78712));return new o(e,t,s)}var zo=i(41706);class Uo{constructor(e){const{action:t,property:i,undoModel:s,undoText:o,callback:n=null}=e;this._property=i,this._undoModel=s,this._undoText=o,this._action=t,this.setValue(i.value()),i.subscribe(this,this._propertyChanged),null!==n?t.update({onExecute:n.bind(this)}):t.update({onExecute:this._onActionCallback.bind(this)})}destroy(){this._property.unsubscribe(this,this._propertyChanged)}value(){return this._action.isChecked()}setValue(e){this._action.update({checked:Boolean(e)})}_onActionCallback(){this._undoModel.setProperty(this._property,this.value(),this._undoText)}_propertyChanged(e){this.setValue(e.value())}}class jo extends zo.Action{constructor(e,t){super(e),this._binding=new Uo({action:this,...t})}destroy(){this._binding.destroy(),super.destroy()}}var Go=i(31932),qo=i(9860),$o=i(25246),Ko=i(14429);i(65810);const Yo=new dt.TranslatedString("change no overlapping labels",a.t(null,void 0,i(61557))),Zo=new dt.TranslatedString("toggle auto scale",a.t(null,void 0,i(42240))),Xo=new dt.TranslatedString("toggle log scale",a.t(null,void 0,i(49403))),Jo=a.t(null,void 0,i(88314)),Qo=a.t(null,void 0,i(5119)),en=a.t(null,void 0,i(59396)),tn=a.t(null,void 0,i(15432)),sn=a.t(null,void 0,i(15332)),on=a.t(null,void 0,i(24157)),nn=a.t(null,{context:"scale_menu"},i(34954)),rn=a.t(null,{context:"scale_menu"},i(35210)),an=a.t(null,{context:"scale_menu"},i(31340)),ln=a.t(null,{context:"scale_menu"},i(55300)),cn=a.t(null,{context:"scale_menu"},i(19405)),hn=a.t(null,{context:"scale_menu"},i(75163));const dn=function(e){const t=new qo.LimitedPrecisionNumericFormatter(e);return(e,i)=>(0,tt.isNumber)(i)&&!e.isLog()?t.format(i):""}(4),un=l.enabled("currency_menu_disabled"),_n=l.enabled("unit_menu_disabled"),pn={contextMenuEnabled:!0,currencyConversionEnabled:!1,unitConversionEnabled:!1,countdownEnabled:!0,contextMenu:{general:!0,source:!0},pressedMouseMoveScale:!0,mouseWheelScale:!0,pinchScale:!0,croppedTickMarks:!0};var mn,gn,fn;!function(e){e[e.LabelOffset=4]="LabelOffset",e[e.DefaultOptimalWidth=34]="DefaultOptimalWidth",e[e.WheelScaleCoeff=15]="WheelScaleCoeff",e[e.CurrencyLabelFontSize=12]="CurrencyLabelFontSize"}(mn||(mn={})),function(e){e[e.Back=0]="Back",e[e.Top=1]="Top",e[e.All=2]="All"}(gn||(gn={}));class yn{constructor(e,t,i,s,o,n,r,a,l){this._actions=null,this._priceScale=null,this._scaleModeButtons=null,this._widthCache=new Qt.TextWidthCache(1e3),this._color=null,this._fontSize=null,this._isVisible=!0,this._currencyMenu=null,this._unitMenu=null,this._size=(0,Ft.size)({width:0,height:0}),this._currentCursorClassName="",this._destroyed=!1,this._highlighted=!1,this._highlightColorCache=null,this._mouseWheelHelper=null, -this._dragScaleActive=!1,this._offset=NaN,this._pinching=!1,this._lastHittestResult=null,this._isHovered=new O.WatchedValue(!1),this._selectedViaTap=new O.WatchedValue(!1),this._recalcCurrencyAndUnitVisibility=()=>{if(null===this._currencyLabel)return;const e=(0,Be.actualCurrencyUnitVisibility)().value();let t=!this._pane.visuallyCollapsed().value();if(t)switch(e){case"alwaysOff":t=!1;break;case"visibleOnMouseOver":const e=this._chart.anyPriceAxisHovered().value(),i=!!this._currencyMenu,s=!!this._unitMenu;t=e||i||s;break;case"visibleOnTapSelection":t=this._selectedViaTap.value()}this._currencyLabel.setHidden(!t)},this._handleActualAutoLogButtonsVisibility=async e=>{const t=e.value();"alwaysOff"===t?this._scaleModeButtons&&this._destroyScaleModeButtons():(this._scaleModeButtons||(this._scaleModeButtons=await this._createScaleModeButtons(),this._pane.visuallyCollapsed().subscribe(this._updatePriceScaleModeButtonsVisibility)),"alwaysOn"===t?(this._isHovered.unsubscribe(this._updatePriceScaleModeButtonsVisibility),this._selectedViaTap.unsubscribe(this._updatePriceScaleModeButtonsVisibility)):"visibleOnMouseOver"===t?(this._selectedViaTap.unsubscribe(this._updatePriceScaleModeButtonsVisibility),this._isHovered.subscribe(this._updatePriceScaleModeButtonsVisibility)):(this._isHovered.unsubscribe(this._updatePriceScaleModeButtonsVisibility),this._selectedViaTap.subscribe(this._updatePriceScaleModeButtonsVisibility)),this._updatePriceScaleModeButtonsVisibility()),this.onOptimalWidthNeedToBeRecalculated()},this._updatePriceScaleModeButtonsVisibility=()=>{const e=this._isHovered.value(),t=this._selectedViaTap.value();let i=!1;if(!this._pane.visuallyCollapsed().value()&&!this._undoModel.model().chartFloatingTooltipVisible().value())switch((0,$o.actualAutoLogButtonsVisibility)().value()){case"visibleOnMouseOver":i=e;break;case"visibleOnTapSelection":i=t;break;case"alwaysOn":i=!0}this._scaleModeButtons?.element().classList.toggle("price-axis__modeButtons_hidden",!i)},this._updateScaleModeButtons=()=>{this._scaleModeButtons?.update()},this._chart=e,this._pane=t,this._undoModel=i,this._properties=s,this._isLeft="left"===n,this._options=(0,tt.merge)((0,tt.clone)(pn),r),this._rendererOptionsProvider=o,this._backgroundBasedTheme=l,this._cell=document.createElement("div"),this._cell.className="price-axis",this._cell.dataset.name=`price-axis-${a.label}`,this._cell.style.width="25px",this._cell.style.left="0",this._canvasConfiguredHandler=()=>{this._undoModel.model().lightUpdate()},this._canvasBinding=(0,Kt.createBoundCanvas)(this._cell,(0,Ft.size)({width:16,height:16})),this._canvasBinding.subscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler);const c=this._canvasBinding.canvasElement;c.style.position="absolute",c.style.zIndex="1",c.style.left="0",c.style.top="0",this._topCanvasBinding=(0,Kt.createBoundCanvas)(this._cell,(0,Ft.size)({width:16,height:16})),this._topCanvasBinding.subscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler);const h=this._topCanvasBinding.canvasElement;h.style.position="absolute", -h.style.zIndex="2",h.style.left="0",h.style.top="0",this._cell.setAttribute("aria-hidden","true"),this._mouseEventHandler=new Wt.MouseEventHandler(this._cell,this,{treatVertTouchDragAsPageScroll:!1,treatHorzTouchDragAsPageScroll:!0}),this._options.currencyConversionEnabled||this._options.unitConversionEnabled?(this._currencyLabel=new Fo(12),this._cell.appendChild(this._currencyLabel.element())):this._currencyLabel=null,this._properties.childs().fontSize.subscribe(this,this._onFontSizeChanged),this._options.mouseWheelScale&&(this._mouseWheelHelper=new mo,this._cell.addEventListener("wheel",this._onMousewheel.bind(this),{passive:!1})),this._axisInfo=a,this._offset=0,this.restoreDefaultCursor(),(0,Be.actualCurrencyUnitVisibility)().subscribe(this,this._recalcCurrencyAndUnitVisibility),this._selectedViaTap.subscribe(this._recalcCurrencyAndUnitVisibility.bind(this)),(0,$o.actualAutoLogButtonsVisibility)().subscribe(this,this._handleActualAutoLogButtonsVisibility),this._handleActualAutoLogButtonsVisibility((0,$o.actualAutoLogButtonsVisibility)()).catch((()=>{})),this._chart.anyPriceAxisHovered().subscribe(this._recalcCurrencyAndUnitVisibility,{callWithLast:!0}),this._pane.visuallyCollapsed().subscribe(this._recalcCurrencyAndUnitVisibility,{callWithLast:!0}),this.update()}async getContextMenuActions(e){this._initActions();const t=(0,n.ensureNotNull)(this._actions),i=this._chart.actions(),s=[];if(this._priceScale?.resetScaleAvailable().value()&&s.push(t.reset,new zo.Separator),s.push(this._autoScaleAction()),this._isMainSeriesAxis()&&s.push(this._lockScaleAction()),s.push(i.scaleSeriesOnly,this._invertAction(),new zo.Separator,this._regularScaleAction(),this._percentageAction(),this._indexedTo100Action(),this._logAction(),new zo.Separator,this._createMergeScalesAction(),new zo.Separator),!l.enabled("fundamental_widget")){const e=[i.showSymbolLabelsAction,i.showSeriesLastValue,null,null,i.showHighLowPriceLabels,l.enabled("show_average_close_price_line_and_label")?i.showAverageClosePriceLabel:null,null,i.showStudyPlotNamesAction,i.showStudyLastValue,this._options.countdownEnabled?i.showCountdown:null,new zo.Separator,t.alignLabels].filter(tt.notNull);s.push(new zo.Action({actionId:"Chart.PriceScale.Labels",options:{label:Qo,subItems:e}}))}const{createLinesAction:o}=await(0,Go.actionsProviderModule)();return s.push(o(this._chart)),this._undoModel.crosshairSource().isMenuEnabled()&&s.push(i.addPlusButton),e&&!this._chart.onWidget()&&l.enabled("show_chart_property_page")&&l.enabled("chart_property_page_scales")&&i.scalesProperties&&s.push(new zo.Separator,i.scalesProperties),s}getElement(){return this._cell}onOptimalWidthNeedToBeRecalculated(e){(this._size.width1e-14){const r=Math.max(0,-Math.log10(Math.max(Math.abs(i),Math.abs(n)))),a=.11111111111111/Math.pow(10,Math.floor(r)),l=s.formatPrice(Math.min(i,n)-a,o),c=s.formatPrice(Math.max(i,n)+a,o);e=Math.max(e,this._widthCache.measureText(t,l),this._widthCache.measureText(t,c))}}}const i=this._isCurrencyLabelEnabled()?Math.round((0,n.ensureNotNull)(this._currencyLabel).width()):0,s=e||34;let o=Math.max(i,this._scaleModeButtons?.width()??0,Math.ceil(t.borderSize+t.additionalPaddingInner+t.paddingInner+t.paddingOuter+s+4));return o+=o%2,o}setSizeAndOffset(e,t){(0,Ft.equalSizes)(this._size,e)||(this._size=e,this._canvasBinding.resizeCanvasElement(e),this._topCanvasBinding.resizeCanvasElement(e),this._cell.style.width=e.width+"px",this._cell.style.height=e.height+"px",this._cell.style.minWidth=e.width+"px"),this._offset!==t&&(this._offset=t,this._cell.style.left=t+"px")}getWidth(){return this._size.width}getImage(){const e=this._size,t=(0,Kt.createDisconnectedCanvas)(document,e);return(0,Kt.getPrescaledContext2D)(t).drawImage(this._canvasBinding.canvasElement,0,0,e.width,e.height),null===this._currencyLabel||this._currencyLabel.isHidden()||this._currencyLabel.drawLabel((0,Kt.getContext2D)(t),e.width,(0,ro.getCanvasDevicePixelRatio)(t)),t}update(){null!==this._priceScale&&(this._priceScale.marks(),this.rendererOptions())}paint(e){if(!this._isVisible||0===this._size.width||0===this._size.height)return;if(e===ao.InvalidationLevel.None)return;const t=this._pane.state(),i=!t.maximized().value()&&t.collapsed().value();if(i&&e{if(o){e.save(),e.beginPath();const i=(0,n.ensureNotNull)(this._currencyLabel).labelBottom();e.rect(0,i*t.verticalPixelRatio,t.bitmapSize.width,t.bitmapSize.height),e.clip()}i(),o&&e.restore()};let a;if(e>ao.InvalidationLevel.Cursor){const e=(0,Kt.getContext2D)(this._canvasBinding.canvasElement),t=(0,Kt.getBindingRenderingInfo)(this._canvasBinding);if(i||(this._alignLabels(),s&&this.updateCurrencyLabel()),this._drawBackground(e,t),i||r(e,t,(()=>{this._drawDrawingsHighlight(e,t)})),this._drawBorder(e,t),s&&!i){this._scaleModeButtons&&(this._scaleModeButtons.element().style.background=this._highlighted?this._highlightColor():this.backgroundColor());const i=this._groupedSources();r(e,t,(()=>{this._drawTickMarks(e,t), -this._drawLabels(this._views(0,i),e,t)})),a=i}}if(s&&!i){const e=(0,Kt.getContext2D)(this._topCanvasBinding.canvasElement),t=(0,Kt.getBindingRenderingInfo)(this._topCanvasBinding);e.clearRect(0,0,t.bitmapSize.width,t.bitmapSize.height),r(e,t,(()=>{this._drawLabels(this._views(1,a??this._groupedSources()),e,t),this._drawCrossHairLabel(e,t)}))}}restoreDefaultCursor(){this._setCursor("")}priceScale(){return(0,n.ensureNotNull)(this._priceScale)}setPriceScale(e){this._priceScale!==e&&(null!==this._priceScale&&(this._priceScale.onMarksChanged().unsubscribe(this,this.onOptimalWidthNeedToBeRecalculated),this._priceScale.modeChanged().unsubscribeAll(this)),this._priceScale=e,null!==e&&(e.onMarksChanged().subscribe(this,this.onOptimalWidthNeedToBeRecalculated),e.modeChanged().subscribe(this,(()=>this.onOptimalWidthNeedToBeRecalculated(!0))),this.onOptimalWidthNeedToBeRecalculated(),this._scaleModeButtons&&(e.modeChanged().subscribe(this,this._updateScaleModeButtons),this._updateScaleModeButtons())))}isVisible(){return this._isVisible}setVisible(e){(e=!!e)!==this._isVisible&&(this._cell.style.display=e?"table-cell":"none",this._isVisible=e)}destroy(){null!==this._currencyMenu&&(this._currencyMenu.destroy(),this._currencyMenu=null),null!==this._unitMenu&&(this._unitMenu.destroy(),this._unitMenu=null),this._pane.visuallyCollapsed().unsubscribe(this._recalcCurrencyAndUnitVisibility),this._topCanvasBinding.unsubscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler),this._topCanvasBinding.dispose(),this._canvasBinding.unsubscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler),this._canvasBinding.dispose(),null!==this._priceScale&&(this._priceScale.onMarksChanged().unsubscribe(this,this.onOptimalWidthNeedToBeRecalculated),this._priceScale.modeChanged().unsubscribeAll(this)),this._priceScale=null,this._mouseEventHandler.destroy(),this._properties.childs().fontSize.unsubscribe(this,this._onFontSizeChanged),null!==this._actions&&(Object.values(this._actions).forEach((e=>{e.destroy()})),this._actions=null),(0,Be.actualCurrencyUnitVisibility)().unsubscribeAll(this),this._chart.anyPriceAxisHovered().unsubscribe(this._recalcCurrencyAndUnitVisibility),(0,$o.actualAutoLogButtonsVisibility)().unsubscribeAll(this),this._chart.setPriceAxisHovered(this,!1),this._destroyScaleModeButtons(),this._destroyed=!0}axisInfo(){return this._axisInfo}setHighlighted(e){this._highlighted=e}backgroundColor(){return this._pane.state().model().backgroundColor().value()}backgroundTopColor(){return this._pane.state().model().backgroundTopColor().value()}lineColor(){return this._properties.childs().lineColor.value()}textColor(){return this._properties.childs().textColor.value()}fontSize(){return this._properties.childs().fontSize.value()}baseFont(){return(0,si.makeFont)(this.fontSize(),m.CHART_FONT_FAMILY,"")}rendererOptions(){let e=this._rendererOptionsProvider.options();return this._color===e.color&&this._fontSize===e.fontSize||(this._color=e.color),this._fontSize!==e.fontSize&&(this._widthCache.reset(),this._fontSize=e.fontSize, -this.onOptimalWidthNeedToBeRecalculated()),e}mouseEnterEvent(e){this._undoModel.model().chartFloatingTooltipVisible().value()||(this._chart.setPriceAxisHovered(this,!0),this._isHovered.setValue(!0),this._applyLightUpdateIfRequired(),this._mouseEnterOrTouchStartEvent(e))}mouseMoveEvent(e){this._mouseOrTouchMoveEvent(e)}mouseDownEvent(e){this._mouseDownOrTouchStartEvent(e)}touchStartEvent(e){this._mouseOrTouchMoveEvent(e),this._mouseEnterOrTouchStartEvent(e),this._mouseDownOrTouchStartEvent(e)}pressedMouseMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}touchMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}pinchStartEvent(e,t,i,s){return s.bothPointsOnTargetElement}pinchEvent(e,t,i){if(this._zoomAvailable()&&this._options.pinchScale){if(this._dragScaleActive&&this._finishScale(),!this._pinching)return this._pinching=!0,void this._undoModel.startTwoPointsScalePrice(this._pane.state(),this.priceScale(),t.y,i.y);this._undoModel.twoPointsScalePriceTo(this._pane.state(),this.priceScale(),t.y,i.y)}}pinchEndEvent(){this._pinching=!1,this._undoModel.endTwoPointsScalePrice(this._pane.state(),this.priceScale())}mouseDownOutsideEvent(){this._finishScale()}touchStartOutsideEvent(){this._finishScale(),this._selectedViaTap.setValue(!1)}mouseUpEvent(e){this._mouseUpOrTouchEndEvent(e)}touchEndEvent(e){this._mouseLeaveOrTouchEndEvent(e),this._mouseUpOrTouchEndEvent(e)}mouseClickEvent(e){this._mouseClickOrTapEvent(e)}tapEvent(e){this._mouseClickOrTapEvent(e)}mouseLeaveEvent(e){this._chart.setPriceAxisHovered(this,!1),this._isHovered.setValue(!1),this._applyLightUpdateIfRequired(),this._mouseLeaveOrTouchEndEvent(e)}mouseDoubleClickEvent(e){this._mouseDoubleClickOrDoubleTapEvent(e)}doubleTapEvent(e){this._mouseDoubleClickOrDoubleTapEvent(e)}contextMenuEvent(e){this._contextMenuOrTouchContextMenuEvent(e)}touchContextMenuEvent(e){this._contextMenuOrTouchContextMenuEvent(e)}dataSourceAtPoint(e,t){const i=this._pane.state();if(!i.maximized().value()&&i.collapsed().value())return null;const s=this._groupedSources(),o=[...s.sources,...s.topLevelSources,...i.customSources(),...i.sourcesByGroup().multipaneSources()];let n=null,r=null;if(!this._priceScale)return null;const a=(e,t)=>{const i=r?.target()??0;e.target()>i&&(r=e,n=t)},l=new Vt.Point(e,t),c=(0,Kt.getBindingRenderingInfo)(this._canvasBinding);for(let e=o.length-1;e>=0;--e){const t=o[e],s=t.priceAxisViews(i,this._priceScale);if(s&&0!==s.length)for(let e=s.length-1;e>=0;--e){const i=s[e].renderer();if(void 0!==i.hitTest){const e=i.hitTest(l,c,this._isLeft?"left":"right");null!==e&&a(e,t)}}}return this._lastHittestResult=r,n}reset(){const e=this._pane.state(),t=this.priceScale();this._undoModel.resetPriceScale(e,t),this.onOptimalWidthNeedToBeRecalculated(!0)}updateCurrencyLabel(){if(null!==this._currencyLabel){if(this._options.currencyConversionEnabled){const e=this.priceScale().currency(this._undoModel.model().availableCurrencies());null===e||"alwaysOff"===(0,Be.actualCurrencyUnitVisibility)().value()?this._currencyLabel.disableCurrency():(this._currencyLabel.enableCurrency(), -this._currencyLabel.setCurrencyInfo(e))}else this._currencyLabel.disableCurrency();if(this._options.unitConversionEnabled){const e="alwaysOff"===(0,Be.actualCurrencyUnitVisibility)().value(),t=this._undoModel.model().availableUnits(),i=this.priceScale().unit(t);null===i||e?this._currencyLabel.disableUnit():(this._currencyLabel.enableUnit(),this._currencyLabel.setUnitInfo(i));const s=this.priceScale().measureUnitId(t);null===s||e?this._currencyLabel.disableMeasureUnitId():(this._currencyLabel.enableMeasureUnitId(),this._currencyLabel.setMeasureUnitIdInfo(s))}else this._currencyLabel.disableUnit(),this._currencyLabel.disableMeasureUnitId()}}_groupedSources(){const e=this._pane.state(),t=e.model(),i=this._pane.state().sourcesByGroup(),s=this._isLeft?i.leftPriceScalesSources():i.rightPriceScalesSources(),o=this._priceScale===e.defaultPriceScale(),n=new Set(e.customSources()),r=t=>!!n.has(t)||(t.priceScale()===this._priceScale||o&&e.isOverlay(t)),a={sources:[...s.filter(r),...e.customSources()],topLevelSources:new Set};if(o){const t=this._pane.state().dataSources();for(const i of t)e.isOverlay(i)&&a.sources.push(i)}const l=t.lineBeingEdited()??t.lineBeingCreated();l&&r(l)&&(a.topLevelSources.add(l),a.lineBeingEditedOrCreated=l);const c=t.customSourceBeingMoved();c&&r(c)&&(a.topLevelSources.add(c),a.customSourceBeingMoved=c);const h=t.sourcesBeingMoved().filter(r);h.length>0&&(t.sourcesBeingMoved().forEach((e=>a.topLevelSources.add(e))),a.sourcesBeingMoved=h);const d=t.selection().allSources().filter(r);d.length>0&&(d.forEach((e=>a.topLevelSources.add(e))),a.selectedSources=d);const u=t.hoveredSource();return u&&r(u)&&(a.topLevelSources.add(u),a.hoveredSource=u),a}_isCurrencyLabelEnabled(){return null!==this._currencyLabel&&this._currencyLabel.isEnabled()}_alignLabels(){const e=this._size.height;let t=e/2;const i=[],s=this.priceScale(),o=s.orderedSources().slice(),n=this._pane.state(),r=this.rendererOptions();if(s===n.defaultPriceScale()){const e=n.priceDataSources();for(let t=0;t{if(t.ignoreAlignment()||!t.isVisible())return!1;const{total:i}=t.topBottomTotalHeight(r),s=t.floatCoordinate();return s>-i&&se.floatCoordinate()<=t)),h=i.filter((e=>e.floatCoordinate()>t));c.sort(((e,t)=>t.floatCoordinate()-e.floatCoordinate())),c.length>0&&h.length>0&&h.push(c[0]),h.sort(((e,t)=>e.floatCoordinate()-t.floatCoordinate()));for(const e of i)e.setFixedCoordinate(e.coordinate());if(s.properties().childs().alignLabels.value()){if(h.length>0||c.length>0){{const t=c[0]??h[0],i=t.getFixedCoordinate(),{top:s,bottom:o,total:n}=t.topBottomTotalHeight(r);n0&&t.setFixedCoordinate(s)}{ -const t=h[0]??c[0],i=t.getFixedCoordinate(),{top:s,bottom:o,total:n}=t.topBottomTotalHeight(r);ne&&t.setFixedCoordinate(e-o)}}for(let e=1;el-n)t.setFixedCoordinate(l-n);else if(l>0&&a-s<0&&a+o>0){const{top:e}=i.topBottomTotalHeight(r);t.setFixedCoordinate(Math.min(l-e-o,s))}}for(let t=1;te&&i.setFixedCoordinate(Math.max(l+o+t,e-s))}}}}_drawTickMarks(e,t){const i=this.priceScale().marks();e.save(),e.font=this.baseFont();const s=this.rendererOptions(),{horizontalPixelRatio:o,verticalPixelRatio:r}=t,a=this._isLeft?Math.floor((this._size.width-s.additionalPaddingInner)*o):0,l=this._isLeft?Math.round(a-s.paddingInner*o):Math.round(a+(s.additionalPaddingInner+s.paddingInner)*o),c=this.fontSize(),h=this._isCurrencyLabelEnabled()?(0,n.ensureNotNull)(this._currencyLabel).labelBottom():0,d=i.map((t=>{if(this._options.croppedTickMarks)return{visible:!0,yCorrection:this._widthCache.yMidCorrection(e,t.label)};const i=t.coord-c/2,s=t.coord+c/2,o=!(s>this._size.height||ithis._size.height||i{for(let t=i.length;t--;){if(!d[t].visible)continue;const s=i[t];e.fillText(s.label,l/o,s.coord+d[t].yCorrection)}})),e.restore()}async _showCurrenciesContextMenu(){if(this._currencyMenu)return this._currencyMenu.destroy(),void(this._currencyMenu=null);let e;(0,re.trackEvent)("GUI","Currency conversion");const t=()=>{this._currencyMenu=null,this._recalcCurrencyAndUnitVisibility(),this._currencyLabel?.setCurrencyExpanded(!1)};if(un)e=await Ho((0,n.ensureNotNull)(this._currencyLabel).currencyLabelElement(),["toggle_currency_menu_inner",this._undoModel.model().id(),this._pane.state().id(),this.priceScale().id()],t);else{const{currencyActions:s}=await Promise.all([i.e(1095),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(3672),i.e(1697),i.e(8260),i.e(844),i.e(3946),i.e(7399),i.e(2227),i.e(9418),i.e(3179),i.e(2704)]).then(i.bind(i,27056));e=await Wo(en,(()=>s(this._undoModel,(0,n.ensureNotNull)(this._currencyLabel).currencyInfo(),this.priceScale())),(0,n.ensureNotNull)(this._currencyLabel).currencyLabelElement(),t)}this._destroyed?e.destroy():(this._currencyLabel?.setCurrencyExpanded(!0),this._currencyMenu=e)}async _showUnitsContextMenu(){if(this._unitMenu)return this._unitMenu.destroy(),void(this._unitMenu=null);let e;(0,re.trackEvent)("GUI","Unit conversion");const t=()=>{this._unitMenu=null,this._recalcCurrencyAndUnitVisibility(),this._currencyLabel?.setUnitExpanded(!1)};if(_n)e=await Ho((0, -n.ensureNotNull)(this._currencyLabel).unitLabelElement(),["toggle_unit_menu_inner",this._undoModel.model().id(),this._pane.state().id(),this.priceScale().id()],t);else{const{unitActions:s}=await Promise.all([i.e(1095),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(3672),i.e(1697),i.e(8260),i.e(844),i.e(3946),i.e(7399),i.e(2227),i.e(9418),i.e(3179),i.e(2704)]).then(i.bind(i,81664));e=await Wo(tn,(()=>s(this._undoModel,(0,n.ensureNotNull)(this._currencyLabel).unitInfo(),this.priceScale())),(0,n.ensureNotNull)(this._currencyLabel).unitLabelElement(),t)}this._destroyed?e.destroy():(this._currencyLabel?.setUnitExpanded(!0),this._unitMenu=e)}_onFontSizeChanged(){this.onOptimalWidthNeedToBeRecalculated()}_mouseOrTouchMoveEvent(e){if(!this._priceScale)return;if(this._undoModel.model().chartFloatingTooltipVisible().value())return void this._setCursorClassName("default");if(e.localX<0||e.localY<0||e.localX>=this._size.width||e.localY>=this._size.height)return;let t=!0;const i=this.dataSourceAtPoint(e.localX,e.localY);i?(this._setCursorClassName("pointer"),this._lastHittestResult?.data()?.hoverModelFromAxis&&(this._undoModel.model().setHoveredSource(i,this._lastHittestResult?.data()??null,0),t=!1)):this._setResizeCursor(),t&&this._undoModel.model().setHoveredSource(null,null)}_mouseDownOrTouchStartEvent(e){this._zoomAvailable()&&this._options.pressedMouseMoveScale&&!this._pinching&&(this._dragScaleActive=!0,this._undoModel.startScalePrice(this._pane.state(),this.priceScale(),e.localY))}_mouseEnterOrTouchStartEvent(e){this._setResizeCursor()}_pressedMouseOrTouchMoveEvent(e){if(this._dragScaleActive){const t=this.priceScale();this._undoModel.scalePriceTo(this._pane.state(),t,e.localY)}}_mouseUpOrTouchEndEvent(e){this._finishScale()}_finishScale(){this._dragScaleActive&&(this._undoModel.endScalePrice(this._pane.state(),this.priceScale()),this.restoreDefaultCursor(),this._dragScaleActive=!1)}_mouseClickOrTapEvent(e){if(this._currencyLabel){if(this._currencyLabel.currencyConversionAvailable()&&this._currencyLabel.currencyLabelElement().contains(e.target))return this._showCurrenciesContextMenu(),void e.preventDefault();if(this._currencyLabel.unitConversionAvailable()&&this._currencyLabel.unitLabelElement().contains(e.target))return this._showUnitsContextMenu(),void e.preventDefault()}e.isTouch&&this._selectedViaTap.setValue(!this._selectedViaTap.value());const t=this.dataSourceAtPoint(e.localX,e.localY);t&&this._undoModel.selectionMacro((e=>{e.selection().isSelected(t)&&this._undoModel.model().lastSelectedHittestData()===this._lastHittestResult?.data()||(e.clearSelection(),e.addSourceToSelection(t,this._lastHittestResult?.data()??null))})),e.target instanceof HTMLCanvasElement&&this._undoModel.model().setActivationChartFloatingTooltipHint(null)}_mouseLeaveOrTouchEndEvent(e){this._setCursorClassName("")}_mouseDoubleClickOrDoubleTapEvent(e){if(this._currencyLabel?.currencyLabelElement().contains(e.target)||this._currencyLabel?.unitLabelElement().contains(e.target))return -;const t=this.dataSourceAtPoint(e.localX,e.localY);t?this._pane.processDoubleClickOnSource(t,this._lastHittestResult??void 0,{origin:"price_scale"}):(this.reset(),(0,re.trackEvent)("GUI","Double click price scale"))}async _contextMenuOrTouchContextMenuEvent(e){if(this._options.contextMenuEnabled){const t=this.dataSourceAtPoint(e.localX,e.localY);if(null!==t&&this._options.contextMenu.source){return void this._undoModel.model().selectionMacro((i=>{i.selection().isSelected(t)||(i.clearSelection(),i.addSourceToSelection(t)),this._pane.showContextMenuForSelection(e,{origin:"price_scale"})}))}if(this._options.contextMenu.general){const t=await this.getContextMenuActions(!0),i=this._undoModel.model().panes().findIndex((e=>e.id()===this._pane.state().id())),s=this._chart.chartWidgetCollection().chartModels().value().findIndex((e=>e.id()===this._undoModel.id())),o=this._priceScale?.id()&&-1!==i&&-1!==s;Io.ContextMenuManager.showMenu(t,e,{statName:"PriceScaleContextMenu"},{menuName:"PriceScaleContextMenu",...o&&{detail:{type:"priceScale",id:this._priceScale?.id()??"",paneIndex:i,chartIndex:s}}})}}}_setResizeCursor(){const e=this.priceScale();e.isPercentage()||e.isIndexedTo100()?this._setCursorClassName(""):this._zoomAvailable()&&(this._options.pressedMouseMoveScale||this._options.mouseWheelScale)&&this._setCursorClassName("ns-resize")}_setCursorClassName(e){let t="";e&&!this._pane.visuallyCollapsed().value()&&(t="price-axis--cursor-"+e),this._currentCursorClassName!==t&&(this._currentCursorClassName&&this._cell.classList.remove(this._currentCursorClassName),t&&this._cell.classList.add(t),this._currentCursorClassName=t)}_zoomAvailable(){return!this.priceScale().isEmpty()&&this.priceScale().hasCalculatedPriceRange()&&this._undoModel.model().zoomEnabled()}_onMousewheel(e){if(!this._zoomAvailable()||!this._options.mouseWheelScale)return;const t=(0,n.ensureNotNull)(this._mouseWheelHelper).processWheel(e).deltaY;if(0===t)return;e.cancelable&&e.preventDefault();const i=this._undoModel,s=this._pane.state(),o=this.priceScale(),r=this._cell.getBoundingClientRect(),a=e.clientY-r.top,l=a+15*t;i.startScalePrice(s,this.priceScale(),a,!0),i.scalePriceTo(s,o,l),i.endScalePrice(s,o),e.stopPropagation()}_drawCrossHairLabel(e,t){const i=this._pane.state(),s=i.model(),o=this.priceScale(),n=s.crosshairSource().priceAxisViews(i,o);n&&n.length>0&&this._drawLabels(n,e,t)}_drawBackground(e,t){const i=this.backgroundTopColor(),s=this.backgroundColor(),{bitmapSize:o}=t;if(i===s?(0,Kt.clearRect)(e,0,0,o.width,o.height,this.backgroundColor()):(0,$t.clearRectWithGradient)(e,0,0,o.width,o.height,i,s),this._highlighted){e.globalAlpha=.5;const t=L.themes[this._backgroundBasedTheme.value()].getThemedColor("color-price-axis-highlight");(0,Kt.fillRect)(e,0,0,o.width,o.height,t),e.globalAlpha=1}}_drawDrawingsHighlight(e,t){const i=this._pane.state().model(),s=this.priceScale(),o=i.selection().lineDataSources().filter((e=>!e.isFixed()&&e.priceScale()===s)).reduce(((e,t)=>{const i=t.priceAxisPoints();return 0===i.length?e:e.concat(i)}),[]) -;o.length>0&&this._hightlightBackground(e,o,this.priceScale().mainSource(),t);const n=i.crosshairSource();n.startMeasurePoint()&&this._hightlightBackground(e,n.measurePoints(),this.priceScale().mainSource(),t)}_drawBorder(e,t){e.save(),e.fillStyle=this.lineColor();const{horizontalPixelRatio:i}=t,s=Math.max(1,Math.floor(this.rendererOptions().borderSize*i)),o=this._isLeft?t.bitmapSize.width-s:0;e.fillRect(o,0,s,t.bitmapSize.height),e.restore()}_drawLabels(e,t,i){const s=this.rendererOptions(),o=this._isLeft?"right":"left";for(const n of e)n.isAxisLabelVisible()&&(t.save(),n.renderer().draw(t,i,s,this._widthCache,o),t.restore())}_hightlightBackground(e,t,i,s){if(!i)return;const o=i.firstValue();if(null===o)return;let n=t[0].price,r=t[0].price;for(let e=1;e=o&&(o=e,r=t),e<=s&&(s=e,n=t)}}return r&&n?[r,n]:[]}}_views(e,t){const i=this._pane.state(),s=this.priceScale(),o=[];if(1!==e)for(const e of t.sources)t.topLevelSources.has(e)||o.push(...e.priceAxisViews(i,s)??[]);if(0!==e){const e=new Set,n=t=>!e.has(t),r=t=>{const i=t.filter(n);o.push(...this._viewsOrMaxMinViews(i));for(const t of i)e.add(t)};t.customSourceBeingMoved&&r([t.customSourceBeingMoved]),t.sourcesBeingMoved&&r(t.sourcesBeingMoved),t.selectedSources&&r(t.selectedSources),t.hoveredSource&&r([t.hoveredSource]),t.lineBeingEditedOrCreated&&r([t.lineBeingEditedOrCreated]);for(const e of[...t.sources,...i.customSources()])e.topPriceAxisViews&&o.push(...e.topPriceAxisViews(i,s)??[])}return o}_initActions(){if(!this._pane.hasState()||null!==this._actions)return;const e=this._undoModel,t=new Ko.ActionWithStandardIcon({actionId:"Chart.PriceScale.Reset",options:{label:sn,iconId:"Chart.Reset",shortcutHint:(0,gt.humanReadableHash)(gt.Modifiers.Alt+82),statName:"ResetScale",onExecute:()=>this.reset()}}),i=new zo.Action({actionId:"Chart.PriceScale.ToggleAutoScale",options:{label:on,checkable:!0,checked:!0,statName:"ToggleAutoScale",onExecute:()=>{e.togglePriceScaleAutoScaleMode(this.priceScale()),this._updateScalesActions()}}}),s=new zo.Action({actionId:"Chart.PriceScale.TogglePercentage",options:{label:nn,checkable:!0,checked:this.priceScale().isPercentage(),statName:"TogglePercantage",onExecute:()=>{e.togglePriceScalePercentageScaleMode(this.priceScale()),this._updateScalesActions()}}}),o=new zo.Action({actionId:"Chart.PriceScale.ToggleIndexedTo100",options:{label:rn,checkable:!0,checked:this.priceScale().isIndexedTo100(),statName:"ToggleIndexedTo100",onExecute:()=>{ -e.togglePriceScaleIndexedTo100ScaleMode(this.priceScale()),this._updateScalesActions()}}}),n=new zo.Action({actionId:"Chart.PriceScale.ToggleLogarithmic",options:{label:an,checkable:!0,checked:this.priceScale().isLog(),statName:"ToggleLogScale",onExecute:()=>{e.togglePriceScaleLogScaleMode(this.priceScale()),this._updateScalesActions()}}}),r=new zo.Action({actionId:"Chart.PriceScale.ToggleRegular",options:{label:ln,checkable:!0,checked:this.priceScale().isRegular(),statName:"ToggleRegularScale",onExecute:()=>{e.setPriceScaleRegularScaleMode(this.priceScale()),this._updateScalesActions()}}}),a=new jo({actionId:"Chart.PriceScale.Labels.ToggleNoOverlappingLabelsVisibility",options:{label:cn,checkable:!0,checked:this.priceScale().properties().childs().alignLabels.value(),statName:"TogglePreciseLabels"}},{property:this.priceScale().properties().childs().alignLabels,undoModel:e,undoText:Yo}),l=new zo.Action({actionId:"Chart.PriceScale.ToggleInvertScale",options:{label:hn,checkable:!0,checked:this.priceScale().isInverted(),statName:"Invert Scale",onExecute:()=>{e.invertPriceScale(this.priceScale()),this._updateScalesActions()}}});this._actions={reset:t,setAutoScale:i,setPercentage:s,setIndexedTo100:o,setLog:n,setRegular:r,alignLabels:a,invertScale:l},this._updateScalesActions()}_logAction(){return this._isMainSeriesAxis()?this._chart.actions().logSeriesScale:(0,n.ensureNotNull)(this._actions).setLog}_percentageAction(){return this._isMainSeriesAxis()?this._chart.actions().percentSeriesScale:(0,n.ensureNotNull)(this._actions).setPercentage}_indexedTo100Action(){return this._isMainSeriesAxis()?this._chart.actions().indexedTo100SeriesScale:(0,n.ensureNotNull)(this._actions).setIndexedTo100}_autoScaleAction(){return this._isMainSeriesAxis()?this._chart.actions().autoSeriesScale:(0,n.ensureNotNull)(this._actions).setAutoScale}_regularScaleAction(){return this._isMainSeriesAxis()?this._chart.actions().regularSeriesScale:(0,n.ensureNotNull)(this._actions).setRegular}_lockScaleAction(){const e=this._chart.actions().lockSeriesScale,t=dn(this.priceScale(),this._undoModel.model().mainSeriesScaleRatio());return e.update({hint:t}),e}_invertAction(){return this._isMainSeriesAxis()?this._chart.actions().invertSeriesScale:(0,n.ensureNotNull)(this._actions).invertScale}_isMainSeriesAxis(){return this.priceScale().hasMainSeries()}_updateScalesActions(){const e=this.priceScale(),t=this._isMainSeriesAxis(),i=(0,n.ensureNotNull)(e.mainSource()).properties(),s=t&&e.isLockScale(),o=t&&6===i.style.value(),r=(0,n.ensureNotNull)(this._actions);r.setRegular.update({checked:e.isRegular(),disabled:s||o}),r.setPercentage.update({checked:e.isPercentage(),disabled:s||o}),r.setIndexedTo100.update({checked:e.isIndexedTo100(),disabled:s||o}),r.setLog.update({checked:e.isLog(),disabled:s||o}),r.setAutoScale.update({checked:e.isAutoScale(),disabled:e.properties().childs().autoScaleDisabled.value()})}_createMergeScalesAction(){const e=this._chart.actions(),t=this._undoModel.model().priceScaleSlotsCount() -;if(t.left+t.right===1)return 0===t.left?e.moveScaleToLeft:e.moveScaleToRight;const i=[];return i.push(e.mergeLeftScalesAction),i.push(e.mergeRightScalesAction),new zo.Action({actionId:"Chart.PriceScale.MergeAllScales",options:{label:Jo,subItems:i}})}_setCursor(e){let t="";"grabbing"!==e&&"ns-resize"!==e||(t="price-axis--cursor-"+e),this._currentCursorClassName!==t&&(this._currentCursorClassName&&this._cell.classList.remove(this._currentCursorClassName),t&&this._cell.classList.add(t),this._currentCursorClassName=t,this._cell.style.cursor)}async _createScaleModeButtons(){const{PriceScaleModeButtonsRenderer:e}=await Promise.all([i.e(8975),i.e(2318),i.e(2227),i.e(3555)]).then(i.bind(i,34419)),t=new e({className:"price-axis__modeButtons",setMode:e=>{this._priceScale&&("log"===e?this._chart.model().setPriceScaleMode({log:!this._priceScale.isLog()},this._priceScale,Xo):this._chart.model().setPriceScaleMode({autoScale:!this._priceScale.isAutoScale()},this._priceScale,Zo))},getMode:()=>this._priceScale?.mode()});return t.element().style.background=this.backgroundColor(),this._cell.appendChild(t.element()),this._priceScale?.modeChanged().subscribe(this,this._updateScaleModeButtons),t}_destroyScaleModeButtons(){this._scaleModeButtons&&(this._isHovered.unsubscribe(this._updatePriceScaleModeButtonsVisibility),this._selectedViaTap.unsubscribe(this._updatePriceScaleModeButtonsVisibility),this._pane.visuallyCollapsed().unsubscribe(this._updatePriceScaleModeButtonsVisibility),this._priceScale?.modeChanged().unsubscribe(this,this._updateScaleModeButtons),this._scaleModeButtons.destroy(),this._scaleModeButtons=null)}_highlightColor(){const e=this.backgroundColor(),t=this._backgroundBasedTheme.value();if(null===this._highlightColorCache||this._highlightColorCache.backgroundColor!==e||this._highlightColorCache.theme!==t){const i=(0,Ro.applyTransparency)(L.themes[this._backgroundBasedTheme.value()].getThemedColor("color-price-axis-highlight"),50),s=(0,Nt.rgbaToString)((0,Nt.blendRgba)((0,Nt.parseRgba)(this.backgroundColor()),(0,Nt.parseRgba)(i)));this._highlightColorCache={theme:t,backgroundColor:e,resultColor:s}}return this._highlightColorCache.resultColor}_applyLightUpdateIfRequired(){"visibleOnMouseOver"===(0,Be.actualCurrencyUnitVisibility)().value()&&this._undoModel.model().lightUpdate()}}function vn(e,t){return e.position-t.position}function Sn(e,t,i){const s=(e.position-t.position)/(e.time-t.time);return Math.sign(s)*Math.min(Math.abs(s),i)}!function(e){e[e.MaxStartDelay=50]="MaxStartDelay",e[e.EpsilonDistance=1]="EpsilonDistance"}(fn||(fn={}));class bn{constructor(e,t,i,s){this._position1=null,this._position2=null,this._position3=null,this._position4=null,this._animationStartPosition=null,this._durationMsecs=0,this._speedPxPerMsec=0,this._minSpeed=e,this._maxSpeed=t,this._dumpingCoeff=i,this._minMove=s}addPosition(e,t){if(null!==this._position1){if(this._position1.time===t)return void(this._position1.position=e);if(Math.abs(this._position1.position-e)50)return;let i=0;const s=Sn(this._position1,this._position2,this._maxSpeed),o=vn(this._position1,this._position2),n=[s],r=[o];if(i+=o,null!==this._position3){const e=Sn(this._position2,this._position3,this._maxSpeed);if(Math.sign(e)===Math.sign(s)){const t=vn(this._position2,this._position3);if(n.push(e),r.push(t),i+=t,null!==this._position4){const e=Sn(this._position3,this._position4,this._maxSpeed);if(Math.sign(e)===Math.sign(s)){const t=vn(this._position3,this._position4);n.push(e),r.push(t),i+=t}}}}let a=0;for(let e=0;en&&(e.result={hittest:t,source:i,renderer:s,isCustom:o})}const Qn={contextMenuEnabled:!0,contextMenu:In.defaultChartWidgetActionsOptions,priceScaleContextMenuEnabled:!0,legendWidgetEnabled:!0,controlsEnabled:!0,propertyPagesEnabled:!0,sourceSelectionEnabled:!0,countdownEnabled:!0},er=new Map([[Ut.AreaName.Text,"Text"],[Ut.AreaName.Style,"Style"]]),tr=!l.enabled("display_legend_on_all_charts");var ir;!function(e){e[e.MinScrollSpeed=.2]="MinScrollSpeed",e[e.MaxScrollSpeed=7]="MaxScrollSpeed",e[e.DumpingCoeff=.997]="DumpingCoeff",e[e.ScrollMinMove=15]="ScrollMinMove",e[e.SPenMaxDistance=5]="SPenMaxDistance",e[e.CollapsedHeight=33]="CollapsedHeight"}(ir||(ir={}));let sr=null;function or(e,t){return!(0,Ut.shouldDefaultActionBeExecuted)(e,t,"pressedMouseMoveHandler","touchMoveHandler")}var nr;!function(e){e[e.None=0]="None",e[e.DownWithoutMove=1]="DownWithoutMove",e[e.DownWithMove=2]="DownWithMove"}(nr||(nr={}));class rr{constructor(e,t,i,s){this._legendWidget=null,this._paneControls=null,this._isDestroyed=!1,this._trackCrosshairOnlyAfterLongTap=(0,lo.lastMouseOrTouchEventInfo)().isTouch,this._startTrackPoint=null,this._exitTrackingModeOnNextTry=!1,this._startMoveSourceParams=null,this._startChangeLineToolParams=null,this._preventSourceChange=!1,this._preventScrollUntilNextMouseDownOrTouchStart=!1,this._clonningAtMoveLineTools=null,this._startCloningPoint=null,this._size=(0,Ft.size)({width:0,height:0}),this._themedTopColor=null,this._initCrossHairPosition=null,this._firstZoomPoint=null,this._editDialog=null,this._processing=!1,this._pressedMoveStage=0,this._touchMove=!1,this._startTouchPoint=null,this._isSelecting=!1,this._prevHoveredHittest=null,this._contextMenuX=0,this._contextMenuY=0,this._startScrollingPos=null,this._isScrolling=!1,this._scrollPriceScale=null,this._scrollXAnimation=null,this._prevPinchScale=1,this._pinching=!1,this._wasPinched=!1,this._longTap=!1,this._contextMenuOpenedOnLastTap=!1,this._paneControlsResizeObserver=null,this._lastClickedSource=null,this._customLegendWidgetsFactoryMap=new Map,this._prevMoveEventPosition=null,this._onMagnetStateChangedListener=this._onMagnetStateChanged.bind(this), -this._onShiftKeyStateChangedListener=this._onShiftKeyStateChanged.bind(this),this._currentCursorClassName="",this._lastFinishedToolId=null,this._needResetMeasureLater=!1,this._currentChangingLineToolHitTest=null,this._currentMovingHitTest=null,this._prevTooltipData=null,this._errorRenderer=null,this._highlightedPriceAxises=new wo.WatchedObject([]),this._visuallyCollapsed=new O.WatchedValue(!1),this._maximized=new O.WatchedValue(!1),this._endOfSeriesDataBanner=null,this._selectionBeforeMouseDown=new WeakSet,this._mouseTouchDownUpInfo=null,this._ignoringMouseMovement=!1,this._canvasConfiguredHandler=()=>this._state&&this._chartModel().lightUpdate(),this._updateVisuallyCollapsed=()=>{this._visuallyCollapsed.setValue(!this.state().maximized().value()&&this.state().collapsed().value())},this._updateMaximized=()=>{this._maximized.setValue(this.state().maximized().value())},this._chart=e,this._state=t,this._options=(0,tt.merge)((0,tt.clone)(Qn),i),this._paneWidgetsSharedState=s,this._state&&this._subscribeToState();const o={contextMenuEnabled:this._options.priceScaleContextMenuEnabled,pressedMouseMoveScale:this._options.handleScale.axisPressedMouseMove.price,mouseWheelScale:this._options.handleScale.mouseWheel,currencyConversionEnabled:this._options.currencyConversionEnabled,unitConversionEnabled:this._options.unitConversionEnabled,countdownEnabled:this._options.countdownEnabled,croppedTickMarks:this._options.croppedTickMarks};void 0!==this._options.priceScaleContextMenu&&(o.contextMenu=this._options.priceScaleContextMenu);const r=(e,t,i,s,n)=>new yn(this._chart,this,this._chartUndoModel(),i,t,e,o,s,n),a=e.properties().childs().scalesProperties,c=this._chartModel().rendererOptionsProvider(),h={backgroundBasedTheme:e.backgroundBasedTheme().spawnOwnership(),stubContextMenuProvider:()=>Promise.resolve([]),titlesProvider:()=>[],rendererOptionsProvider:c,getBackgroundTopColor:()=>this._chartModel().backgroundTopColor().value(),getBackgroundBottomColor:()=>this._chartModel().backgroundColor().value(),requestRepaint:()=>this._chartModel().lightUpdate()};this._rowElement=document.createElement("div"),this._rowElement.style.display="flex";const d={showLabels:!1};this._lhsPriceAxisesContainer=t.mode()===zi.PaneMode.Regular?new Vo(a,"left",r,h,d):new PaneWidgetSideArea(c,"left"),this._rhsPriceAxisesContainer=t.mode()===zi.PaneMode.Regular?new Vo(a,"right",r,h,d):new PaneWidgetSideArea(c,"right"),this._paneCell=document.createElement("div"),this._paneCell.classList.add("chart-markup-table","pane"),this._div=document.createElement("div"),this._div.classList.add("chart-gui-wrapper"),this._div.setAttribute("data-name","pane-widget-chart-gui-wrapper"),this._paneCell.appendChild(this._div),this._canvasBinding=(0,Kt.createBoundCanvas)(this._div,(0,Ft.size)({width:16,height:16})),this._canvasBinding.subscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler);const u=this._canvasBinding.canvasElement;u.style.position="absolute",u.style.left="0",u.style.top="0",u.dataset.name="pane-canvas",this._topCanvasBinding=(0, -Kt.createBoundCanvas)(this._div,(0,Ft.size)({width:16,height:16})),this._topCanvasBinding.subscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler);const _=this._topCanvasBinding.canvasElement;_.style.position="absolute",_.style.left="0",_.style.top="0",_.dataset.name="pane-top-canvas",this._rowElement.appendChild(this._lhsPriceAxisesContainer.getElement()),this._rowElement.appendChild(this._paneCell),this._rowElement.appendChild(this._rhsPriceAxisesContainer.getElement()),u.setAttribute("aria-hidden","true");const p=this._chartModel().mainSeries();p.dataEvents().symbolResolved().subscribe(this,this._updateAccessibilityAttr),this._mainSeriesInterval=p.intervalObj().spawn(),this._mainSeriesInterval.subscribe(this._updateAccessibilityAttr.bind(this)),this._updateAccessibilityAttr(),this._options.legendWidgetEnabled&&(this._options.customLegendWidgetFactories&&(this._customLegendWidgetsFactoryMap=this._options.customLegendWidgetFactories),this._loadAndCreateLegendWidget()),this._state&&!this._chart.readOnly()&&this._options.controlsEnabled&&this._loadAndCreatePaneControlsWidget(this._state),(0,Dn.magnetEnabled)().subscribe(this._onMagnetStateChangedListener),(0,Vs.shiftPressed)().subscribe(this._onShiftKeyStateChangedListener),l.enabled("chart_drag_export")&&(_.draggable=this._chartModel().dragExportEnabled().value(),this._chartModel().dragExportEnabled().subscribe((e=>{_.draggable=e})),_.addEventListener("dragend",(e=>{this._ignoringMouseMovement=!1,this._chartModel().dragExportEnabled().value()&&(0,ee.emit)("dragend")})),_.addEventListener("dragstart",(async e=>{if(this._ignoringMouseMovement=!1,!this._chartModel().dragExportEnabled().value())return void e.preventDefault();e.stopPropagation();const t=this._chartUndoModel().model().hoveredSource(),i=Nn(),s={enableDragDrop:!1};if((0,ee.emit)("dragstart",{enableDragDrop:e=>s.enableDragDrop=e,preventDefault:()=>e.preventDefault(),keys:{ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,shiftKey:e.shiftKey},hoveredSourceId:t?.id()??null,exportData:e=>{const t=e=>s().convertPublicTimeToInternalTime(e),s=()=>(0,On.getChartWidgetApiTimeConverter)(p.interval(),(0,n.ensureNotNull)(p.symbolInfo(),"main series symbol info"),this._chartModel());return void 0!==e?.from&&(e.from=t(e.from)),void 0!==e?.to&&(e.to=t(e.to)),i?.exportData(this._chartModel(),e)},setData:(t,i)=>{e.dataTransfer&&e.dataTransfer.setData(t,i)},setDragImage:(t,i,s)=>{e.dataTransfer&&e.dataTransfer.setDragImage(t,i,s)}}),!e.dataTransfer?.getData("text/plain")&&!e.dataTransfer?.getData("text/html"))return void e.preventDefault();this._isSelecting=!1;this._chartModel().crosshairSource().clearSelection(),this._paneWidgetsSharedState.clearDraggingSource(),this._ignoringMouseMovement=!0}))),this.setCursorForTool(),this._mouseEventHandler=new Wt.MouseEventHandler(this._topCanvasBinding.canvasElement,this,{treatVertTouchDragAsPageScroll:!this._options.handleScroll.vertTouchDrag,treatHorzTouchDragAsPageScroll:!this._options.handleScroll.horzTouchDrag,shouldAllowTouchDrag:()=>this.trackingModeEnabled()}), -this._paneCellMouseEventHandler=new Wt.MouseEventHandler(this._paneCell,{doubleTapEvent:this._paneDblClickOrTapEvent.bind(this),mouseDoubleClickEvent:this._paneDblClickOrTapEvent.bind(this)},{shouldAllowTouchDrag:()=>this.trackingModeEnabled(),treatVertTouchDragAsPageScroll:!this._options.handleScroll.vertTouchDrag,treatHorzTouchDragAsPageScroll:!this._options.handleScroll.horzTouchDrag}),this._prevHoveredHittest=null,this._highlightedPriceAxises.subscribe((e=>{this._highlightPriceAxisesByLabel(e.map((e=>e.axis)))})),this._prevPinchScale=0,this._isDestroyed=!1;const m=(0,ft.combine)((e=>{const t=this._chart.paneWidgetSeparators(this);return[t.separatorAbove?.selected()?.weakReference()??new O.WatchedValue(!1).ownership(),t.separatorBelow?.selected()?.weakReference()??new O.WatchedValue(!1).ownership()]}),this._chart.paneWidgetsWV().weakReference());this._anySeparatorSelected=(0,ft.accumulate)((e=>e.some(Boolean)),m.ownership())}destroy(){this._chart.onPaneWidgetDestroyed(this);this._chartModel().mainSeries().dataEvents().symbolResolved().unsubscribeAll(this),this._customLegendWidgetsFactoryMap.clear(),this._topCanvasBinding.unsubscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler),this._topCanvasBinding.dispose(),this._canvasBinding.unsubscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler),this._canvasBinding.dispose(),this._legendWidget&&(this._legendWidget.destroy(),this._legendWidget=null),null!==this._paneControlsResizeObserver&&this._paneControlsResizeObserver.disconnect(),null!==this._paneControls&&(this._paneControls.destroy(),this._paneControls=null),this._lhsPriceAxisesContainer.destroy(),this._rhsPriceAxisesContainer.destroy(),this.hasState()&&this._unsubscribeFromState(),(0,Dn.magnetEnabled)().unsubscribe(this._onMagnetStateChangedListener),(0,Vs.shiftPressed)().unsubscribe(this._onShiftKeyStateChangedListener),this._paneWidgetsSharedState.onPaneDestroyed(this),this._errorRenderer&&this._errorRenderer.then((e=>{e.destroy(),this._errorRenderer=null})),this._prevHoveredHittest=null,this._mouseEventHandler.destroy(),this._paneCellMouseEventHandler.destroy(),this._rowElement.parentElement?.removeChild(this._rowElement),this._anySeparatorSelected.destroy(),this._mainSeriesInterval.destroy(),this._isDestroyed=!0}updateOptions(e){if((0,tt.merge)(this._options,e),!1===e.legendWidgetEnabled&&this._legendWidget&&(this._legendWidget.destroy(),this._legendWidget=null),e.legendWidgetEnabled&&!this._legendWidget&&(this._options.customLegendWidgetFactories&&(this._customLegendWidgetsFactoryMap=this._options.customLegendWidgetFactories),this._loadAndCreateLegendWidget()),!this._state)return;const t=this._state.mode(),i=this._chartModel().rendererOptionsProvider();if(t===zi.PaneMode.Regular&&!(this._lhsPriceAxisesContainer instanceof Vo)){this._lhsPriceAxisesContainer.destroy(),this._rhsPriceAxisesContainer.destroy();const e={showLabels:!1},t={contextMenuEnabled:this._options.priceScaleContextMenuEnabled,pressedMouseMoveScale:this._options.handleScale.axisPressedMouseMove.price, -mouseWheelScale:this._options.handleScale.mouseWheel,currencyConversionEnabled:this._options.currencyConversionEnabled,unitConversionEnabled:this._options.unitConversionEnabled,countdownEnabled:this._options.countdownEnabled,croppedTickMarks:this._options.croppedTickMarks},s=(e,i,s,o,n)=>new yn(this._chart,this,this._chartUndoModel(),s,i,e,t,o,n),o=this._chart.properties().childs().scalesProperties,n=()=>this._chartModel().backgroundColor().value(),r=()=>this._chartModel().backgroundTopColor().value(),a={backgroundBasedTheme:this._chart.backgroundBasedTheme().spawnOwnership(),stubContextMenuProvider:()=>Promise.resolve([]),titlesProvider:()=>[],rendererOptionsProvider:i,getBackgroundTopColor:r,getBackgroundBottomColor:n,requestRepaint:()=>this._chartModel().lightUpdate()};this._lhsPriceAxisesContainer=new Vo(o,"left",s,a,e),this._rhsPriceAxisesContainer=new Vo(o,"right",s,a,e),this._rowElement.innerHTML="",this._rowElement.appendChild(this._lhsPriceAxisesContainer.getElement()),this._rowElement.appendChild(this._paneCell),this._rowElement.appendChild(this._rhsPriceAxisesContainer.getElement())}t!==zi.PaneMode.Widget||this._lhsPriceAxisesContainer instanceof PaneWidgetSideArea||(this._lhsPriceAxisesContainer.destroy(),this._rhsPriceAxisesContainer.destroy(),this._lhsPriceAxisesContainer=new PaneWidgetSideArea(i,"left"),this._rhsPriceAxisesContainer=new PaneWidgetSideArea(i,"right"),this._rowElement.innerHTML="",this._rowElement.appendChild(this._lhsPriceAxisesContainer.getElement()),this._rowElement.appendChild(this._paneCell),this._rowElement.appendChild(this._rhsPriceAxisesContainer.getElement()))}size(){return this._size}setSize(e){(0,Ft.equalSizes)(this._size,e)||(this._size=e,this._canvasBinding.resizeCanvasElement(e),this._topCanvasBinding.resizeCanvasElement(e),this._paneCell.style.width=e.width+"px",this._paneCell.style.height=e.height+"px",this._div.style.width=e.width+"px",this._div.style.height=e.height+"px",this._rowElement.classList.toggle("js-hidden",0===e.height),null!==this._legendWidget&&this._legendWidget.updateWidgetModeBySize(e),null!==this._paneControls&&this._paneControls.updateWidgetModeByWidth(e.width))}width(){return this._size.width}height(){return this._size.height}backgroundColor(){return this._chartModel().backgroundColor().value()}highlightedPriceAxises(){return this._highlightedPriceAxises}processDoubleClickOnSource(e,t,i){if((0,zs.isEditableTextLineTool)(e)){const t=e.textEditingActivationTime();null!==t&&performance.now()-t<500&&e.deactivateTextEditing()}(0,Po.isDataSource)(e)&&e.id()!==this._lastFinishedToolId&&this._showEditDialogForSource(e,t)}stretchFactor(){return this._state?this._state.stretchFactor():0}setStretchFactor(e){this.hasState()&&this.state().setStretchFactor(e)}setCursorForTool(e,t,i){if(t&&t.mod()&&e&&e!==this._chartModel().crosshairSource())return void this._setCursorClassName("pointer");if(void 0!==i){switch(i){case ei.PaneCursorType.VerticalResize:this._setCursorClassName("ns-resize");break;case ei.PaneCursorType.HorizontalResize: -this._setCursorClassName("ew-resize");break;case ei.PaneCursorType.DiagonalNeSwResize:this._setCursorClassName("nesw-resize");break;case ei.PaneCursorType.DiagonalNwSeResize:this._setCursorClassName("nwse-resize");break;case ei.PaneCursorType.Default:this._setCursorClassName("default");break;case ei.PaneCursorType.Pointer:this._setCursorClassName("pointer");break;case ei.PaneCursorType.Grabbing:this._setCursorClassName("grabbing");break;case ei.PaneCursorType.Text:this._setCursorClassName("text");break;case ei.PaneCursorType.None:this._setCursorClassName("none")}return}const s=mt.tool.value();if((0,mt.toolIsCursor)(s)){if(null!==this._paneWidgetsSharedState.draggingSource()||this._isScrolling||this._chartUndoModel()&&this._chartUndoModel().model().sourcesBeingMoved().length)return void this._setCursorClassName("grabbing");if(e&&this._options.sourceSelectionEnabled)return void this._setCursorClassName("pointer")}let o="";switch(s){case"eraser":o="eraser";break;case"zoom":o="zoom-in"}if(!o)switch(mt.cursorTool.value()){case"arrow":o="default";break;case"dot":o="dot";break;case"demonstration":o="demonstration";break;case"performance":o="performance"}this._setCursorClassName(o)}showContextMenuForSelection(e,t,i){const s=this._chartUndoModel().selection();if(s.isEmpty())return;const o=s.dataSources().filter((e=>e.hasContextMenu()));this.showContextMenuForSources(o,e,void 0,t,i)}async showContextMenuForSources(e,t,i,s,o){if(!e.length||!this._state)return Promise.resolve(null);const{ActionsProvider:n}=await(0,Go.actionsProviderModule)();if(this._isDestroyed)return null;const r=e[0],a=(0,tt.merge)((0,tt.clone)(this._options.contextMenu),i||{}),l=new n(this._chart,a);if(r===this._chartUndoModel().crosshairSource())return r.handleContextMenuEvent(t),Promise.resolve(null);{const i=await l.contextMenuActionsForSources(e,this._state,t,s?.origin,o?.data()?.customActions);if(0===i.length)return Promise.resolve(null);{let e={menuName:""};return r instanceof Vn.Series?e={menuName:s?.origin??"ObjectTreeContextMenu",detail:{type:"series",id:r.instanceId()}}:(0,zs.isLineTool)(r)?e={menuName:s?.origin??"ObjectTreeContextMenu",detail:{type:"shape",id:r?.id()??null}}:(0,Ws.isStudy)(r)&&(e={menuName:s?.origin??"ObjectTreeContextMenu",detail:{type:"study",id:r?.id()||null}}),Io.ContextMenuManager.createMenu(i,{takeFocus:!0,returnFocus:!0,isKeyboardEvent:a.isKeyboardEvent,statName:r.contextMenuStatName()},e).then((e=>(e.show(t),e)))}}}leftPriceAxisesContainer(){return this._lhsPriceAxisesContainer}rightPriceAxisesContainer(){return this._rhsPriceAxisesContainer}setPriceAxisSizes(e,t,i){this._priceAxisesContainer(e).setSizes(t,i)}state(){return(0,n.ensureNotNull)(this._state)}hasState(){return null!==this._state}setState(e){this._state!==e&&(this.hasState()&&(this._unsubscribeFromState(),this._paneControls?.destroy(),this._paneControls=null),this._state=e,this.hasState()&&(this.updateOptions(this._options),this._subscribeToState(),this._loadAndCreatePaneControlsWidget(this.state()),this.updatePriceAxisWidgetsStates(), -this._updateAccessibilityAttr()))}getScreenshotData(e){const t=[],i=[];let s,o=[];const n=this.state(),r=n.mode()===zi.PaneMode.Widget?[]:n.sourcesByGroup().priceSources().slice().reverse(),a=this._chart.properties().childs().paneProperties.childs().legendProperties.childs();for(const c of r){const r=c.statusView();if((0,Ws.isStudy)(c)&&(a.showLegend.value()||e?.showCollapsedStudies)){const s=a.showStudyTitles.value(),o=s;if(c.properties().childs().visible.value()&&this._chartModel().paneForSource(c)===n&&r&&o){t.push(s?c.statusProvider(e?.status).text():"");const o=l.enabled("use_last_visible_bar_value_in_legend")?this._chartModel().timeScale().visibleBarsStrictRange()?.lastBar()??null:null,n=c.legendValuesProvider().getValues(o);i.push(n)}}else if(c===this._chartModel().mainSeries()&&r&&a.showSeriesTitle.value()){const t=c.statusProvider(e?.status||{}).getSplitTitle();s=Object.values(t).filter((e=>""!==e)).join(" · ");const i=l.enabled("use_last_visible_bar_value_in_legend")?this._chartModel().timeScale().visibleBarsStrictRange()?.lastBar()??null:null;o=c.legendValuesProvider().getValues(i)}}return{type:"pane",leftAxis:this._lhsPriceAxisesContainer.getScreenshotData(),rightAxis:this._rhsPriceAxisesContainer.getScreenshotData(),content:this._canvasBinding.canvasElement.toDataURL(),canvas:this._canvasBinding.canvasElement,contentWidth:this._size.width,contentHeight:this._size.height,studies:t,studiesValues:i,containsMainSeries:this.containsMainSeries(),mainSeriesText:s,mainSeriesValues:o}}updatePriceAxisWidgetsStates(){if(!this.hasState())return;const e=this._chartModel(),t=e.paneForSource(e.mainSeries());if(t)if(this._state?.mode()===zi.PaneMode.Regular){const i=e.priceScaleSlotsCount(),s=this.state(),o=s.visibleLeftPriceScales(),n=s.visibleRightPriceScales();this._lhsPriceAxisesContainer.setScales(o,i.left,t.leftPriceScales().length,i.left+i.right),this._rhsPriceAxisesContainer.setScales(n,i.right,t.rightPriceScales().length,i.left+i.right)}else this._state?.mode()===zi.PaneMode.Widget&&(this._lhsPriceAxisesContainer.setPane(this._state),this._rhsPriceAxisesContainer.setPane(this._state))}updatePriceAxisWidgets(){this._lhsPriceAxisesContainer.update(),this._rhsPriceAxisesContainer.update()}update(){this.hasState()&&(this.updatePriceAxisWidgets(),null!==this._legendWidget&&this._legendWidget.update(),this.updateControls())}updateStatusWidget(e){this.hasState()&&null!==this._legendWidget&&(e.legendWidgetLayoutInvalidated()?this._legendWidget.updateLayout():this._legendWidget.update())}updateControls(){this.hasState()&&null!==this._paneControls&&this._paneControls.update()}updateThemedColors(e){this._themedTopColor=e.topColor,this._updateByThemedColors()}statusWidget(){return this._legendWidget}getElement(){return this._rowElement}canvasElement(){return this._canvasBinding.canvasElement}getRenderingInfo(){return(0,Kt.getBindingRenderingInfo)(this._canvasBinding)}hasCanvas(e){return this._canvasBinding.canvasElement===e||this._topCanvasBinding.canvasElement===e}pinchStartEvent(){ -return null===this._paneWidgetsSharedState.scrollingPane()&&null===this._paneWidgetsSharedState.pinchingPane()&&(this._onTouchEvent(),!!this._options.handleScale.pinch&&(this._chartModel().stopTimeScaleAnimation(),this._prevPinchScale=1,this._pinching=!0,this._wasPinched=!0,this._paneWidgetsSharedState.setPinchingPane(this),!0))}pinchEvent(e,t,i,s){if(null!==this._paneWidgetsSharedState.scrollingPane()||this._paneWidgetsSharedState.pinchingPane()!==this)return;if(this._onTouchEvent(),!this._options.handleScale.pinch)return;const o=10*(s-this._prevPinchScale);this._prevPinchScale=s,this._chartModel().zoomTime(e.x,o,!0),this._prevPinchScale=s}pinchEndEvent(){null===this._paneWidgetsSharedState.scrollingPane()&&this._paneWidgetsSharedState.pinchingPane()===this&&(this._onTouchEvent(),this._pinching=!1,this._paneWidgetsSharedState.setPinchingPane(null))}mouseClickEvent(e){this._onMouseEvent(),this._mouseClickOrTapEvent(e)}tapEvent(e){this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._mouseClickOrTapEvent(e))}mouseDownEvent(e){this._onMouseEvent(),this.hasState()&&this._mouseDownOrTouchStartEvent(e,this._dataSourceAtPoint(e.localX,e.localY))}touchStartEvent(e){if(this._paneWidgetsSharedState.startTouch(this),this._preventTouchEventsExceptPinch())return;const t=!this._trackCrosshairOnlyAfterLongTap&&null!==sr&&sr.stateId===this.state().id()&&Math.abs(sr.x-e.localX)+Math.abs(sr.y-e.localY)<5;this._onTouchEvent(),this._chart.setActivePaneWidget(this);const i=this._dataSourceAtPoint(e.localX,e.localY);if(t){const t=this._chartModel().crosshairSource();null!==i&&i.source===t||t.selectPointMode().value()!==mt.SelectPointMode.None?this.startTrackingMode(new Vt.Point(e.localX,e.localY),new Vt.Point(e.localX,e.localY)):!this._chart.readOnly()&&null!==i&&(0,zs.isLineTool)(i.source)&&i.source.userEditEnabled()&&this._chartUndoModel().selectionMacro((e=>{e.clearSelection(),e.addSourceToSelection(i.source,i.hittest.data())}))}this._mouseDownOrTouchStartEvent(e,i),this._mouseOrTouchMoveEvent(e)}mouseUpEvent(e){this._onMouseEvent(),this._mouseUpOrTouchEndEvent(e)}touchEndEvent(e){this._paneWidgetsSharedState.endTouch(this),this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._mouseOrTouchLeaveEvent(e),this._mouseUpOrTouchEndEvent(e))}mouseMoveEvent(e){this._onMouseEvent(),this._mouseOrTouchMoveEvent(e)}pressedMouseMoveEvent(e){this._onMouseEvent(),this._state?.model().chartFloatingTooltipVisible().value()?this._mouseOrTouchMoveEvent(e):this._pressedMouseOrTouchMoveEvent(e)}touchMoveEvent(e){this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._pressedMouseOrTouchMoveEvent(e))}mouseLeaveEvent(e){this._onMouseEvent(),this._updateHoveredSource(null,new To.EnvironmentState(e)),this._mouseOrTouchLeaveEvent(e)}mouseDoubleClickEvent(e){this._onMouseEvent(),this._mouseDoubleClickOrDoubleTapEvent(e)}wheelClickEvent(e){if(this._chart.readOnly())return;const t=this._dataSourceAtPoint(e.localX,e.localY);if(null===t||t.isCustom)return;if((t.hittest.target()||0)<=Ut.HitTarget.MovePointBackground)return -;const i=new To.EnvironmentState(e),s=t.hittest.eraseMarker();if(i.mod()&&void 0!==s&&t.source.processErase)return void t.source.processErase(this._chartUndoModel(),s);const o=this._chartUndoModel();o.selection().isSelected(t.source)||o.selectionMacro((e=>{e.clearSelection();const i=(0,n.ensureNotNull)(t.source);e.addSourceToSelection(i,Xn(t,i))})),this._chart.removeSelectedSources()}doubleTapEvent(e){this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._mouseDoubleClickOrDoubleTapEvent(e))}longTapEvent(e){if(null===this._state||this._preventTouchEventsExceptPinch())return;if(this._onTouchEvent(),this._longTap=!0,null!==this._startTrackPoint||!this._trackingModeShouldBeActive())return;const t=this._chartModel().selection();if(!t.isEmpty()){const i=this._dataSourceAtPoint(e.localX,e.localY);if(null!==i&&t.isSelected(i.source))return}this.startTrackingMode(new Vt.Point(e.localX,e.localY),new Vt.Point(e.localX,e.localY),new To.EnvironmentState(e))}mouseEnterEvent(e){if(this._onMouseEvent(),!this.hasState())return;this._chart.setActivePaneWidget(this);const t=this._dataSourceAtPoint(e.localX,e.localY);this._updateHoveredSource(t,new To.EnvironmentState(e)),this.setCursorPosition(e.localX,e.localY,new To.EnvironmentState(e))}contextMenuEvent(e){this._onMouseEvent(),this._contextMenuEvent(e)}touchContextMenuEvent(e){this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._contextMenuEvent(e))}mouseDownOutsideEvent(e){this._processOutsideClick(null,e)}touchStartOutsideEvent(e){this._processOutsideClick(null,e)}cancelZoom(){this._chartModel().crosshairSource().clearSelection(),this._firstZoomPoint=null,this._preventCrossHairMove()&&this._clearCursorPosition()}startTrackingMode(e,t,i){this.state().mode()!==zi.PaneMode.Widget&&(this._startChangeLineToolParams=null,this._startMoveSourceParams=null,this._currentChangingLineToolHitTest=null,this._currentMovingHitTest=null,this._chartUndoModel().selectionMacro((e=>e.clearSelection())),this._startTrackPoint=e,this._exitTrackingModeOnNextTry=!1,this.setCursorPosition(t.x,t.y,i),this._initCrossHairPosition=this._chartModel().crosshairSource().currentPoint())}setDragToAnotherPaneCursor(){this._setCursorClassName("grabbing")}cloneLineTools(e,t){return this._chartUndoModel().cloneLineTools(e,t)}exitTrackingMode(){null!==this._state&&null!==this._startTrackPoint&&(this._exitTrackingModeOnNextTry=!0,this._tryExitTrackingMode())}trackingModeEnabled(){return null!==this._state&&null!==this._startTrackPoint}addCustomWidgetToLegend(e,t){this._options.legendWidgetEnabled&&(this._customLegendWidgetsFactoryMap.set(e,t),null!==this._legendWidget&&this._legendWidget.addCustomWidgetToLegend(e,t))}containsMainSeries(){return!!this.hasState()&&this.state().containsMainSeries()}paint(e,t){if(!this._chartUndoModel()||!this.hasState()||0===this._size.width||0===this._size.height)return;(0,Kt.tryApplySuggestedCanvasBitmapSize)(this._canvasBinding),(0,Kt.tryApplySuggestedCanvasBitmapSize)(this._topCanvasBinding), -this._state&&(e.priceScaleSideMaxLevel("left")>ao.InvalidationLevel.Cursor||e.priceScaleSideMaxLevel("right")>ao.InvalidationLevel.Cursor)&&(this._recalculatePriceScales((0,wi.viewportChangeEvent)(this.state())),null!==sr&&sr.stateId===this.state().id()&&this.setCursorPosition(sr.x,sr.y,sr.envState));const i=e.fullInvalidation();if(i>ao.InvalidationLevel.Cursor&&null!==sr&&sr.stateId===this.state().id()){const e=this._dataSourceAtPoint(sr.x,sr.y);this._updateHoveredSource(e,(0,Vs.globalEnvironmentState)())}if(this._lhsPriceAxisesContainer.paint(e.getterForPriceScaleInvalidationLevelBySide("left"),t),this._rhsPriceAxisesContainer.paint(e.getterForPriceScaleInvalidationLevelBySide("right"),t),i===ao.InvalidationLevel.None)return;const s=this._state&&(this._state.maximized().value()||!this._state.collapsed().value()||this._state.mode()===zi.PaneMode.Widget);if(i>ao.InvalidationLevel.Cursor){const e=(0,n.ensureNotNull)(this._canvasBinding.canvasElement.getContext("2d"));e.setTransform(1,0,0,1,0,0);const t=(0,Kt.getBindingRenderingInfo)(this._canvasBinding);this._makeSureIsUpdated(t),this._drawBackground(e,t),s&&this._drawSources(e,t)}if(null!==this._state){const e=(0,n.ensureNotNull)(this._topCanvasBinding.canvasElement.getContext("2d"));e.setTransform(1,0,0,1,0,0);const t=(0,Kt.getBindingRenderingInfo)(this._topCanvasBinding);e.clearRect(0,0,t.bitmapSize.width,t.bitmapSize.height),s&&this._drawTopViews(e,t),this._drawCrossHair(e,t),s&&this._drawActiveLineTools(e,t)}}cancelCreatingLineTool(){const e=this._chartUndoModel(),t=this._chartUndoModel().lineBeingCreated();if(t)if(t.pointsCount()<=0&&!(0,Lt.isLineDrawnWithPressedButton)(t.toolname)){const i=t.points();if(i.length>2){const s=i[i.length-2];e.continueCreatingLine(s),this._finishTool(t)}else e.cancelCreatingLine()}else e.cancelCreatingLine();null!==this._firstZoomPoint&&this.cancelZoom(),this._clearCursorPosition(),this.setCursorForTool()}async drawRightThere(e,t){this.hasState()&&(await(0,xo.ensureLineToolLoaded)(e),this._chartUndoModel().drawRightThere(e,this.state(),void 0,t))}cancelMeasuring(){this._chartUndoModel().crosshairSource().clearMeasure(),(0,mt.resetToCursor)(),this.setCursorForTool()}async setErrorMessage(e){e&&!this._errorRenderer&&(this._errorRenderer=this._createErrorBlock()),(await this._errorRenderer)?.update({message:e?.message,icon:this._state?.containsMainSeries()||this._state?.maximized().value()?e?.icon:void 0,backgroundColor:`linear-gradient(${this._chartModel().backgroundTopColor().value()}, ${this._chartModel().backgroundColor().value()})`,textColor:this._chartModel().dark().value()?zn:Hn,solutionId:e?.solutionId,rawHtml:e?.rawHtml,buttons:this.containsMainSeries()?e?.buttons:void 0,maxWidth:e?.maxWidth,maxHeight:e?.maxHeight,zeroHeight:e?.zeroHeight})}collapsedHeight(){return Math.max(Math.ceil(this._paneControls?.bottomWithMargin()??0),33)}visuallyCollapsed(){return this._visuallyCollapsed.readonly()}maximized(){return this._maximized.readonly()}setCursorPosition(e,t,i){this._updateLastCrosshairPosition(e,t,i), -this._chartModel().setAndSaveCurrentPosition(this._correctXCoord(e),this._correctYCoord(t),this.state(),i)}_tryExitTrackingMode(e){this._exitTrackingModeOnNextTry&&(this._startTrackPoint=null,e||this._clearCursorPosition())}_tryStartMeasure(e,t,i,s,o){return!(!(0,mt.toolIsMeasure)(mt.tool.value())||t.startMeasurePoint())&&(e.isTouch||this._preventCrossHairMove()||this.setCursorPosition(e.localX,e.localY,i),s=this._chartModel().magnet().align(s,o,this.state()),t.startMeasuring({price:s,index:o},this.state()),!0)}_tryFinishMeasure(e,t){if(t.startMeasurePoint()&&!t.endMeasurePoint()){let i=t.price;const s=t.index;return i=this._chartModel().magnet().align(i,s,this.state()),t.finishMeasure({price:i,index:s}),e.isTouch?(0,mt.resetToCursor)():this._needResetMeasureLater=!0,this._preventCrossHairMove()&&this._clearCursorPosition(),!0}return!1}_tryStartZoom(e,t,i,s){const o=this._chart.model().model().zoomEnabled();if("zoom"===mt.tool.value()&&o){const o=this._chartUndoModel(),n=o.timeScale().indexToCoordinate(i)-.5*o.timeScale().barSpacing();return this._firstZoomPoint={price:t,index:i,x:n,y:e.localY},this._preventCrossHairMove()||this.setCursorPosition(e.localX,e.localY,s),this._chartModel().crosshairSource().startSelection(this.state()),!0}return!1}_finishZoom(e){const t=this.state(),i=t.defaultPriceScale(),s=(0,n.ensureNotNull)(t.mainDataSource()).firstValue(),o=i.coordinateToPrice(e.localY,(0,n.ensureNotNull)(s)),r=this._chartUndoModel(),a=Math.round(r.timeScale().coordinateToIndex(e.localX)),l=(0,n.ensureNotNull)(this._firstZoomPoint);a!==l.index&&r.zoomToViewport(l.index,a,l.price,o,t),this._chartModel().crosshairSource().clearSelection(),this._firstZoomPoint=null,(0,mt.resetToCursor)(),this._preventCrossHairMove()&&this._clearCursorPosition()}_tryFinishZoom(e){return null!==this._firstZoomPoint&&(this._finishZoom(e),!0)}_tryHandleEraserMouseDown(e,t){if((0,mt.toolIsEraser)(mt.tool.value())&&!e.isCustom&&(!(i=e.source)||!i.customization||!i.customization.disableErasing)){const i=this._chartUndoModel();if((0,zs.isLineTool)(e.source)||(0,Ws.isStudy)(e.source)){const s=e.hittest.eraseMarker();return t.mod()&&void 0!==s&&e.source.processErase?e.source.processErase(i,s):i.removeSource(e.source,!1),!0}}var i;return!1}_tryStartChangingLineTool(e,t,i,s){if(e.isTouch&&null!==this._startTrackPoint)return!1;const o=t.hittest;if((!e.isTouch||!this._preventSourceChange)&&o&&(0,zs.isLineTool)(t.source)&&o.target()===Ut.HitTarget.ChangePoint){const r=this._chartUndoModel(),a=(0,n.ensure)(this.state().mainDataSource()?.firstValue()),l=o.data()?.ownerSourceId,c=(0,n.ensureNotNull)(l?this._chartModel().dataSourceForId(l):t.source.ownerSource()),h=(0,n.ensureNotNull)(c.priceScale()).coordinateToPrice(e.localY,a);r.selectionMacro((e=>{e.clearSelection(),e.addSourceToSelection(t.source,o.data())}));let d=h;t.source.priceScale()===r.mainSeries().priceScale()&&(d=r.model().magnet().align(h,s,this.state()));const u=o.data()?.nonDiscreteIndex;u&&(s=r.timeScale().coordinateToFloatIndex(e.localX));const _=o.data()?.pointIndex -;return this._startChangeLineToolParams={source:t.source,ownerSource:c,startPoint:{index:s,price:d,nonDiscreteIndex:u},screenPoint:{x:e.localX,y:e.localY},pointIndex:_,envState:i},!0}return this._startChangeLineToolParams=null,!1}_tryStartCloning(e,t,i,s){if(i.mod()){const t=this._chartUndoModel().selection().dataSources().filter((e=>e.cloneable()));if(s&&s.cloneable()&&t.push(s),t.length>0)return this._clonningAtMoveLineTools=t.map((e=>e.id())),this._startCloningPoint=new Vt.Point(e.localX,e.localY),!0}return!1}_tryFinishClonning(e,t,i){const s=this._chartUndoModel(),o=this._chartModel();if(t.mod()&&this._clonningAtMoveLineTools){const r=new Vt.Point(e.localX,e.localY),a=(0,n.ensureNotNull)(this._startCloningPoint).subtract(r).length(),l=[];for(const e of this._clonningAtMoveLineTools){const t=o.dataSourceForId(e);null!==t&&l.push(t)}if(0===l.length)return!1;if(a>8){const o=this.cloneLineTools(l,!0).map((e=>(0,n.ensureNotNull)(s.model().dataSourceForId(e))));s.selectionMacro((e=>{e.clearSelection();let t=null;o.forEach((s=>{null===t&&(t=Xn(i,s)),e.addSourceToSelection(s,t)}))}));const r=new Vt.Point(e.localX,e.localY),a=(0,n.ensureNotNull)(o[0].priceScale()),c=(0,n.ensureNotNull)(this.state().mainDataSource()).firstValue(),h={index:s.timeScale().coordinateToIndex(e.localX),price:a.coordinateToPrice(e.localY,(0,n.ensureNotNull)(c))};s.startMovingSources(o,{logical:h,screen:r},null,t),this._clonningAtMoveLineTools=null,this._startCloningPoint=null}return!0}return!1}_mouseDownEventForLineTool(e,t,i,s){const o=mt.tool.value();if(!this.hasState()||(0,Lt.isLineToolDrawWithoutPoints)(o)||this.state().mode()===zi.PaneMode.Widget)return;const r=this._chartUndoModel();let a=!1,l=null;(0,mt.hideAllDrawings)().value()&&(0,Ss.toggleHideMode)(),(0,mt.lockDrawings)().setValue(!1),e.isTouch&&!e.stylus&&((0,Lt.isLineToolName)(o)&&!(0,Lt.isLineDrawnWithPressedButton)(o)||r.lineBeingCreated())&&this._initToolCreationModeParams(e);const c=r.lineBeingCreated();if(c&&!(0,Lt.isLineDrawnWithPressedButton)(c.toolname)){const o=(0,n.ensure)(c.ownerSource()?.firstValue());if(e.isTouch&&!e.stylus){if(!this._startTouchPoint){this._startTouchPoint=new Vt.Point(e.pageX,e.pageY);const t=c.points(),i=t[t.length-1],s=r.timeScale().indexToCoordinate(i.index),a=(0,n.ensureNotNull)(c.priceScale()).priceToCoordinate(i.price,o);return void(this._initCrossHairPosition=new Vt.Point(s,a))}}else if(!e.isTouch){l=c;const h=r.model().paneBeingCreatedLineOn();if(h!==this._state&&null!==h){const i=this._externalPaneXCoord(h,e.localX),s=this._externalPaneYCoord(h,e.localY);a=r.continueCreatingLine({index:Math.round(r.timeScale().coordinateToIndex(i)),price:(0,n.ensure)(c.priceScale()?.coordinateToPrice(s,o))},t)}else{const e=r.model().magnet().align(s,i,this.state());a=r.continueCreatingLine({index:i,price:e},t)}}}else{const t=(0,Lt.isLineDrawnWithPressedButton)(o);if(!e.isTouch||e.stylus||t){const e=null===c||(0,zs.isBrushBasedLineTool)(c)&&c.hasOnlyOnePoint(),n={index:i,price:t&&!e?s:r.model().magnet().align(s,i,this.state())};l=r.createLineTool({ -pane:this.state(),point:n,linetool:o,actionSource:"Draw"}),this._mouseTouchDownUpInfo&&(this._mouseTouchDownUpInfo.toolCreation=!0),r.lineBeingCreated()||(a=!0)}}const h=this._dataSourceAtPoint(e.localX,e.localY);l&&r.selectionMacro((e=>{e.addSourceToSelection((0,n.ensureNotNull)(l),h?.hittest.data())})),a&&l&&(this._finishTool(l,h),e.preventDefault())}_handleSelectionMouseDownAndGetJustDeselectedSource(e,t,i){const s=this._chartUndoModel();let o=null;return(null===t||t.source.isSelectionEnabled())&&s.selectionMacro((s=>{!this._preventSourceChange&&null!==t&&(e.isTouch?t.hittest.target()>=Ut.HitTarget.MovePointBackground:t.hittest.target()>Ut.HitTarget.MovePointBackground)?(i.mod()||s.selection().isSelected(t.source)||s.clearSelection(),i.mod()&&s.selection().isSelected(t.source)?(o=t.source,s.removeSourceFromSelection(t.source)):s.addSourceToSelection(t.source,t.hittest.data()),s.selection().allSources().length>1&&(0,re.trackEvent)("GUI","Multiselect","Click Select")):i.mod()||(s.clearSelection(),this._clonningAtMoveLineTools=null,this._startCloningPoint=null)})),o}_processMouseMoveWhileZoom(e,t){this._preventCrossHairMove()||this.setCursorPosition(e.localX,e.localY,t)}_updateCommonTooltip(e,t){let i=null;if(null!==e&&null!==e.hittest){const t=e.hittest.data();t&&(i=t.tooltip||null)}if(null===this._prevTooltipData&&null===i)return;if(null===i||""===i.text)return this._prevTooltipData=null,void(0,En.hide)(t);if(this._prevTooltipData&&(0,Ot.default)(i,this._prevTooltipData))return;this._prevTooltipData=i;const s=(0,tt.clone)(i);if(void 0!==s.rect){const e=this._paneCell.getBoundingClientRect();s.rect.x+=e.left,s.rect.y+=e.top}(0,En.show)(s)}_setCursorPositionOnExternalPane(e,t,i,s){t=this._externalPaneXCoord(e,t),i=this._externalPaneYCoord(e,i);this._chart.paneByState(e).setCursorPosition(t,i,s)}_updateLastCrosshairPosition(e,t,i){const s=this.state().id();sr={x:e,y:t,envState:i,stateId:s}}_setCursorClassName(e){let t="";e&&(t="pane--cursor-"+e),this._currentCursorClassName!==t&&(this._currentCursorClassName&&this._paneCell.classList.remove(this._currentCursorClassName),t&&this._paneCell.classList.add(t),this._currentCursorClassName=t,this._paneCell.style.cursor)}_processMouseUpOrTouchEndHandler(e){const t=this._dataSourceAtPoint(e.localX,e.localY);if(null!==t){const i=this._sourceWasSelected(t);t.hittest.tryCallMouseUpOrTouchEndHandler(e,{sourceWasSelected:i})}}_crossHairShouldBeVisible(){const e=this._chartModel().crosshairSource();return(0,Lt.isLineToolName)(mt.tool.value())||(0,mt.toolIsMeasure)(mt.tool.value())||e.startMeasurePoint()&&!e.endMeasurePoint()||null!==this._firstZoomPoint||null!==this._chartModel().lineBeingEdited()||null!==this._chartModel().lineBeingCreated()}_clearCursorPosition(){sr=null,this._chartModel().clearCurrentPosition()}_dataSourceAtPoint(e,t){if(!this.hasState())return null;const i={result:null},s=this._chartUndoModel();if((0,Lt.isLineToolName)(mt.tool.value())||null!==s.lineBeingCreated())return i.result;if(this._currentChangingLineToolHitTest)return this._currentChangingLineToolHitTest -;const o=new Set;if(this._currentMovingHitTest&&this._currentMovingHitTest.sourceAtPoint.hittest.data()){if(!this._currentMovingHitTest.cancelledContainer?.cancelled)return this._currentMovingHitTest.sourceAtPoint;o.add(this._currentMovingHitTest.sourceAtPoint.source.id())}if(this._currentMovingHitTest&&this._currentMovingHitTest.sourceAtPoint.hittest.data()&&!this._currentMovingHitTest.cancelledContainer?.cancelled)return this._currentMovingHitTest.sourceAtPoint;const n=this.state(),r=(0,Kt.getBindingRenderingInfo)(this._canvasBinding);this._makeSureIsUpdated(r);const a=Jn.bind(null,i),l=new Vt.Point(e,t);if(!n.maximized().value()&&n.collapsed().value()||(0,lo.lastMouseOrTouchEventInfo)().isTouch&&(mt.activePointSelectionMode.value()!==mt.SelectPointMode.None||null!==this._startTrackPoint))return this._hitTestSources(r,[s.crosshairSource()],l,a,!1,o),i.result;const c=n.sourcesByGroup(),h=s.selection(),d=h.dataSources().filter((e=>e.isMultiPaneEnabled()||s.paneForSource(e)===n));this._hitTestSources(r,d,l,a,!1,o),this._hitTestSources(r,h.customSources(),l,a,!0,o),h.allSources().forEach((e=>o.add(e.id()))),this._hitTestSources(r,[s.crosshairSource()],l,a,!1,o),this._hitTestSources(r,n.customSources(Co.CustomSourceLayer.Topmost),l,a,!0,o),this._hitTestSources(r,c.tradingSources(),l,a,!1,o),this._hitTestSources(r,n.customSources(Co.CustomSourceLayer.Foreground),l,a,!0,o);const u=c.hitTestSources();if(this._hitTestSources(r,u,l,a,!1,o),this.containsMainSeries()){const e=s.activeStrategySource().value();if(null!==e&&!o.has(e.id())){const t=e.strategyOrdersPaneView();if(null!==t){const s=t.renderer(r);if(null!==s){const t=s.hitTest(l,r);t&&Jn(i,t,e,s,!1)}}}}return null===i.result&&this._hitTestSources(r,n.customSources(Co.CustomSourceLayer.Background),l,a,!0,o),i.result}_sourceWasSelected(e){return!!e&&this._selectionBeforeMouseDown.has(e.source)}_hitTestSources(e,t,i,s,o,r){const a=(0,n.ensureNotNull)(this._state);for(let n=t.length-1;n>=0;--n){const l=t[n];if(r.has(l.id()))continue;const c=l.paneViews(a);if(null!==c&&0!==c.length)for(let t=c.length-1;t>=0;--t){const n=c[t].renderer(e);if(n&&n.hitTest){const t=n.hitTest(i,e);null!==t&&s(t,l,n,o)}}}}_tryStartMovingLineTool(e,t,i,s){if(null===t.source||!t.source.movable()||null!==this._startTrackPoint)return!1;if(!this._preventSourceChange){const o=this._chartUndoModel(),r=(0,n.ensureNotNull)((0,n.ensureNotNull)(this._state).mainDataSource()).firstValue(),a=(0,n.ensureNotNull)(t.source.priceScale()),l=null===r?NaN:a.coordinateToPrice(e.localY,r);let c=(t.source.isSelectionEnabled()?o.selection().allSources():[t.source]).filter(Bn);const h=c.filter((e=>(0,zs.isLineTool)(e)&&!e.isSourceHidden()));c=h.length>0?h:c.includes(t.source)?[t.source]:[c[0]];const d=new Vt.Point(e.localX,e.localY),u={index:s,price:l},_=t.hittest.data()?.activeItem;return this._startMoveSourceParams={source:c,startPoint:{logical:u,screen:d},activeItem:void 0===_?null:_,envState:i},!0}return this._startMoveSourceParams=null,!1}_chartModel(){return this._chart.model().model()}_chartUndoModel(){ -return this._chart.model()}_externalPaneXCoord(e,t){t+=this._div.getBoundingClientRect().left+document.body.scrollLeft;const i=(0,n.ensureNotNull)(this._chart.paneByState(e)),s=i._div.getBoundingClientRect().left+document.body.scrollLeft;return i._correctXCoord(t-s)}_externalPaneYCoord(e,t){t+=this._div.getBoundingClientRect().top+document.body.scrollTop;const i=(0,n.ensureNotNull)(this._chart.paneByState(e)),s=i._div.getBoundingClientRect().top+document.body.scrollTop;return i._correctYCoord(t-s)}_correctXCoord(e){return Math.max(0,Math.min(e,this._size.width-1))}_correctYCoord(e){return Math.max(0,Math.min(e,this._size.height-1))}_processScroll(e){if(!this._chart.model().model().scrollEnabled())return;const t=performance.now();this._startScrollingPos||this._preventScroll()||(this._startScrollingPos={x:e.clientX,y:e.clientY,timestamp:t,localX:e.localX,localY:e.localY});const i=this._chartUndoModel();let s=this.state().defaultPriceScale();if(this._startScrollingPos&&!this._isScrolling&&(this._startScrollingPos.x!==e.clientX||this._startScrollingPos.y!==e.clientY))return i.beginUndoMacro(Un),null===this._scrollXAnimation&&this._options.useKineticScroll&&(this._scrollXAnimation=new bn(.2,7,.997,15),this._scrollXAnimation.addPosition(e.clientX,this._startScrollingPos.timestamp)),i.selection().isEmpty()||(s=i.selection().allSources()[0].priceScale()),null===s||s.isEmpty()||(this._scrollPriceScale=s,i.startScrollPrice(this.state(),s,e.localY)),i.startScrollTime(e.localX),this._isScrolling=!0,this.setCursorForTool(),void this._paneWidgetsSharedState.setScrollingPane(this);this._isScrolling&&(null!==this._scrollPriceScale&&i.scrollPriceTo(this.state(),this._scrollPriceScale,e.localY),i.scrollTimeTo(e.localX),null!==this._scrollXAnimation&&this._scrollXAnimation.addPosition(e.clientX,t))}_finishScroll(){const e=this._chartUndoModel();e.endScrollTime(),null!==this._scrollPriceScale&&e.endScrollPrice(this.state(),this._scrollPriceScale),e.endUndoMacro(),this._isScrolling=!1,this._startScrollingPos=null,this._scrollPriceScale=null,this.setCursorForTool(),this._paneWidgetsSharedState.setScrollingPane(null)}_endScroll(e){if(!this._isScrolling)return!1;this._finishScroll();const t=this._scrollUndoCommandInStack(),i=performance.now();return null!==this._scrollXAnimation&&(this._scrollXAnimation.start(e.clientX,i),this._scrollXAnimation.finished(i)||(this._chartModel().stopTimeScaleAnimation(),this._chartModel().setTimeScaleAnimation(this._scrollXAnimation),this._scrollXAnimation=null)),t}_preventScroll(){return this._trackCrosshairOnlyAfterLongTap&&this._longTap||this._contextMenuOpenedOnLastTap||(0,Lt.isLineToolName)(mt.tool.value())||Boolean(this._chartUndoModel().lineBeingCreated())||null!==this._startTrackPoint||this._preventScrollUntilNextMouseDownOrTouchStart}_isSelectPointModeEnabled(){return this._chartUndoModel().crosshairSource().selectPointMode().value()!==mt.SelectPointMode.None}_preventCrossHairMove(){ -return!!this._trackCrosshairOnlyAfterLongTap&&(null===this._chart.trackingModePaneWidget()&&(!!this._contextMenuOpenedOnLastTap||!this._crossHairShouldBeVisible()&&null===this._startTrackPoint))}_finishTool(e,t=null){const i=this._chartUndoModel(),s=e.toolname;if(s===mt.tool.value()&&(0,mt.resetToCursor)(),this._preventCrossHairMove()&&this._clearCursorPosition(),i.selectionMacro((i=>{i.addSourceToSelection(e,Xn(t,e))})),(0,zs.isEditableTextLineTool)(e)&&e.activateEditingOnCreation())e.activateTextEditingOn(this._div,!0);else if((0,Lt.isTextToolName)(s)){const t=i.createUndoCheckpoint();this._chart.showChartPropertiesForSource(e,Ns.TabNames.text,void 0,t)}this._lastFinishedToolId=e.id(),(0,ee.emit)("drawing_event",e.id(),"create"),kn()}_alignSourcesThatBeingMoved(e,t,i,s,o){const n=this._chartUndoModel(),r=2===o?NaN:n.timeScale().coordinateToIndex(t);n.model().sourcesBeingMoved().forEach((e=>{let a=r,l=e.convertYCoordinateToPriceForMoving(i,this.state().mainDataSource());if(null===l){if(1!==o)return;l=NaN}if((0,Ws.isStudy)(e)){const e=n.mainSeries(),t=e.bars().firstIndex(),i=e.bars().lastIndex();null!==t&&null!==i&&2!==o&&(a=Math.min(Math.max(r,t),i)),1!==o&&(l=this._chartModel().magnet().align(l,r,this.state()))}null!==this._currentMovingHitTest&&void 0!==this._currentMovingHitTest.sourceAtPoint.hittest.data()?.cursorType||this.setCursorForTool(),n.moveSources({screen:new Vt.Point(t,i),logical:{index:a,price:l}},s)}))}_resetMeasureIfRequired(){this._needResetMeasureLater&&((0,mt.resetToCursor)(),this._needResetMeasureLater=!1)}_makeSureIsUpdated(e){const t=this.state(),i=[...t.dataSources(),...t.customSources()];for(const s of i){const i=s.paneViews(t);if(null!==i)for(const t of i)t.makeSureIsUpdated?.(e)}}_drawBackground(e,t){const i=this._chartModel(),s=i.backgroundTopColor().value(),o=i.backgroundColor().value();if(this._state?.mode()===zi.PaneMode.Widget){const i=this._state?.model().panes().indexOf(this._state)??0,n=this._state?.model().mainPane(),r=i>(n?this._state?.model().panes().indexOf(n)??0:0)?o:s;(0,Kt.clearRect)(e,0,0,t.bitmapSize.width,t.bitmapSize.height,r)}else s===o?(0,Kt.clearRect)(e,0,0,t.bitmapSize.width,t.bitmapSize.height,o):(0,$t.clearRectWithGradient)(e,0,0,t.bitmapSize.width,t.bitmapSize.height,s,o)}_drawWatermark(e,t){const i=this._chartModel().watermarkSource();if(null===i)return;if(!this.state().containsMainSeries())return;const s=i.paneViews();for(const i of s){e.save();const s=i.renderer(t);s&&s.draw(e,t),e.restore()}}_drawCrossHair(e,t){const i=this._chartUndoModel().crosshairSource();i.invalidateLockPosition(),i.visible||null===mt.crosshairLock.value()||i.updateAllViews((0,wi.sourceChangeEvent)(i.id())),this._drawSourceImpl(e,t,$n,qn,i)}_drawActiveLineTools(e,t){const i=this._chartModel(),s=[i.lineBeingCreated(),i.lineBeingEdited(),...i.sourcesBeingMoved(),i.customSourceBeingMoved()].filter((e=>!!e));for(const o of s){(i.paneForSource(o)===this.state()||(0,Po.isDataSource)(o)&&o.isMultiPaneEnabled())&&this._drawSourceImpl(e,t,$n,qn,o)}}_drawTopViews(e,t){ -for(const i of this.state().sourcesByGroup().all())i.topPaneViews&&this._drawSourceImpl(e,t,Kn,qn,i)}_drawSources(e,t){const i=this.state(),s=i.model(),o=i.sourcesByGroup(),n=o.tradingSources(),r=o.generalSources(),a=o.phantomSources(),l=i.customSources(Co.CustomSourceLayer.Background).slice(),c=i.customSources(Co.CustomSourceLayer.Foreground).slice(),h=i.customSources(Co.CustomSourceLayer.Topmost).slice(),d=s.activeStrategySource().value(),u=s.replayStudyStrategy().value();{const e=s.panes();for(let t=e.length-1;t>=0;t--)e[t].createDrawingsCaches()}this._drawSourceImpl(e,t,$n,qn,s.gridSource()),this._drawWatermark(e,t);for(const i of l)this._drawSourceImpl(e,t,$n,Gn,i);for(const i of r)this._drawSourceImpl(e,t,$n,Gn,i);for(const i of c)this._drawSourceImpl(e,t,$n,Gn,i);for(const i of a)this._drawSourceImpl(e,t,$n,Gn,i);const _=new Set;[s.lineBeingCreated(),s.lineBeingEdited(),...s.sourcesBeingMoved(),s.customSourceBeingMoved()].filter(tt.notNull).forEach((e=>_.add(e.id())));let p=s.hoveredSource();null!==p&&((0,Po.isDataSource)(p)&&!p.showOnTopOnHovering()||_.has(p.id())||(0,Po.isDataSource)(p)&&!r.includes(p)?p=null:_.add(p.id()));const m=s.selection().allSources().filter((e=>!((0,Po.isDataSource)(e)&&!r.includes(e))&&!_.has(e.id())));m.forEach((e=>_.add(e.id())));for(const i of l)this._drawSourceImpl(e,t,$n,qn,i,_);for(const i of r)this._drawSourceImpl(e,t,$n,qn,i,_);for(const i of c)this._drawSourceImpl(e,t,$n,qn,i,_);d&&this.containsMainSeries()&&this._drawSourceImpl(e,t,Zn,qn,d,_),u&&this._drawSourceImpl(e,t,Zn,qn,u,_);for(const i of n)this._drawSourceImpl(e,t,$n,Gn,i);for(const i of h)this._drawSourceImpl(e,t,$n,Gn,i);for(const i of r)this._drawSourceImpl(e,t,Yn,qn,i,_);for(const i of c)this._drawSourceImpl(e,t,Yn,qn,i,_);for(const i of n)this._drawSourceImpl(e,t,$n,qn,i,_);for(const i of h)this._drawSourceImpl(e,t,$n,qn,i,_);for(const i of m)this._drawSourceImpl(e,t,$n,qn,i),i===d&&this.containsMainSeries()&&this._drawSourceImpl(e,t,Zn,qn,d);for(const i of m)this._drawSourceImpl(e,t,Yn,qn,i);p&&(this._drawSourceImpl(e,t,$n,qn,p),p===d&&this.containsMainSeries()&&this._drawSourceImpl(e,t,Zn,qn,d),this._drawSourceImpl(e,t,Yn,qn,p));for(const i of a)this._drawSourceImpl(e,t,$n,qn,i,_);{const e=s.panes();for(let t=e.length-1;t>=0;t--)e[t].clearDrawingCaches()}}_drawSourceImpl(e,t,i,s,o,n){if(n&&n.has(o.id()))return;const r=i(o,this.state());if(r)for(const i of r){const o=i.renderer(t);o&&(e.save(),s(o,e,t),e.restore())}}_updateByThemedColors(){null!==this._legendWidget&&this._legendWidget.updateThemedColors(this._themedTopColor),null!==this._paneControls&&this._paneControls.updateThemedColors(this._themedTopColor)}_scrollUndoCommandInStack(){const e=this._chartUndoModel().undoHistory().undoStack();if(e.isEmpty())return!1;const t=e.head();if(!(t instanceof rt))return!1;if(t.isEmpty())return!1;return t.commands()[0]instanceof xn}_onStateDestroyed(){this.setState(null)}_onDataSourcesCollectionChanged(){this._startMoveSourceParams=null}_processMouseEnterLeaveMoveHandlers(e,t){ -if(null!==this._prevHoveredHittest&&(this._prevHoveredHittest.renderer!==e?.renderer||this._prevHoveredHittest.hittest.data()?.activeItem!==e.hittest.data()?.activeItem)){const e=this._sourceWasSelected(this._prevHoveredHittest);(0,Ut.tryCallHandler)(t,{sourceWasSelected:e},this._prevHoveredHittest.hittest.data()?.mouseLeaveHandler),this._prevHoveredHittest=null}if(!t.isTouch&&null!==e){const i=this._sourceWasSelected(e);this._prevHoveredHittest?.renderer!==e.renderer&&(e.hittest.tryCallMouseEnterHandler(t,{sourceWasSelected:i}),this._prevHoveredHittest=e),e.hittest.tryCallMouseMoveHandler(t,{sourceWasSelected:i})}}_startChangeOrMoveLineToolIfNeeded(){if(null!==this._startChangeLineToolParams){const e=this._startChangeLineToolParams;(0,re.trackEvent)("chart_alert","edit","start_change_line_tool_params"),this._chartUndoModel().startChangingLinetool(e.source,e.ownerSource,e.startPoint,e.pointIndex,e.envState)}if(null!==this._startMoveSourceParams){const e=this._startMoveSourceParams;(0,re.trackEvent)("chart_alert","edit","start_moving_sources"),this._chartUndoModel().startMovingSources(e.source,e.startPoint,e.activeItem,e.envState)}this._startMoveSourceParams=null,this._startChangeLineToolParams=null}_trackingModeShouldBeActive(){return!(!this._trackCrosshairOnlyAfterLongTap||this._contextMenuOpenedOnLastTap||this._crossHairShouldBeVisible())&&this._longTap}_processOutsideClick(e,t){let i=null;const s=this._chartModel();if(null!==e&&(i=e.isCustom?s.customSourceName(e.source):e.source.id()),null!==this._lastClickedSource&&this._lastClickedSource.id!==i){const e=this._lastClickedSource.id;let i=this._lastClickedSource.isCustom?s.customSourceForName(e):s.dataSourceForId(e);null!==i||this._lastClickedSource.isCustom||(i=s.dataSourceForId(e)),null!==i&&i.onClickOutside&&(i.onClickOutside((0,Kt.getBindingRenderingInfo)(this._canvasBinding),t),this._chartModel().updateSource(i))}this._lastClickedSource=null!==i?{id:i,isCustom:e?.isCustom??!1}:null}async showConfetti(e,t){0}_mouseClickOrTapEvent(e){if(!this.hasState())return;let t=null,i=null;this._mouseTouchDownUpInfo&&this._mouseTouchDownUpInfo.toolCreation&&!this._mouseTouchDownUpInfo.mouseMove||(t=this._dataSourceAtPoint(e.localX,e.localY),i=t&&t.source);const s=this._chartUndoModel(),o=Boolean(t?.hittest.data()?.hideCrosshairLinesOnHover);this._processOutsideClick(t,e),s.model().setActivationChartFloatingTooltipHint(i),!this._isSelectPointModeEnabled()||o||e.isTouch&&this.trackingModeEnabled()&&!this._exitTrackingModeOnNextTry||s.crosshairSource().trySelectCurrentPoint();const r=this._sourceWasSelected(t);!(0,Lt.isLineToolName)(mt.tool.value())&&null!==t&&t.hittest.tryCallClickOrTapHandler(e,{sourceWasSelected:r})&&s.model().updateSource((0,n.ensureNotNull)(i)),!e.isTouch||this._isSelectPointModeEnabled()||t&&t.source===s.crosshairSource()||this._tryExitTrackingMode(),i&&(0,zs.isLineTool)(i)&&this._lastFinishedToolId!==i.id()&&(0,ee.emit)("drawing_event",i.id(),"click"),this._resetMeasureIfRequired(),this._mouseTouchDownUpInfo=null}_mouseDownOrTouchStartEvent(e,t){ -this._pressedMoveStage=1,this._preventScrollUntilNextMouseDownOrTouchStart=!1,this._selectionBeforeMouseDown=new Set(this._chartModel().selection().allSources()),e.isTouch&&(this._longTap=!1,this._exitTrackingModeOnNextTry=null!==this._startTrackPoint,this._paneWidgetsSharedState.clearDraggingSource()),this._contextMenuOpenedOnLastTap=!1,this._lastFinishedToolId=null;const i=this._chartModel();if(i.stopTimeScaleAnimation(),this._mouseTouchDownUpInfo={mouseMove:!1,toolCreation:Boolean(i.lineBeingCreated())},e.isTouch&&this._switchTrackingModeFromAnotherPaneIfNeeded(e),document.activeElement!==document.body&&document.activeElement!==document.documentElement)document.activeElement&&document.activeElement.blur?document.activeElement.blur():document.body.focus();else{const e=document.getSelection();null!==e&&e.removeAllRanges()}(0,ee.emit)("mouse_down",{clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY}),this._updateCommonTooltip(null);const s=this._chartUndoModel(),o=new To.EnvironmentState(e);s.mainSeries().clearGotoDateResult();const r=this.state().defaultPriceScale();if(s.timeScale().isEmpty())return;const a=s.crosshairSource();if(!e.isTouch&&!(0,Lt.isLineDrawnWithPressedButton)(mt.tool.value())){const t=null!==s.lineBeingCreated()?s.model().paneBeingCreatedLineOn():null;null!==t&&t!==this._state?this._setCursorPositionOnExternalPane(t,e.localX,e.localY,o):this.setCursorPosition(e.localX,e.localY,o)}e.isTouch&&(0,Lt.isLineToolName)(mt.tool.value())&&((0,Lt.isLineDrawnWithPressedButton)(mt.tool.value())||null!==a.pane?(0,Lt.isLineDrawnWithPressedButton)(mt.tool.value())&&this._clearCursorPosition():this._chart.updateCrossHairPositionIfNeeded());const l=(0,n.ensureNotNull)(this.state().mainDataSource()).firstValue();let c=null==l?null:r.coordinateToPrice(e.localY,l),h=i.timeScale().coordinateToIndex(e.localX);if(a.startMeasurePoint()&&a.endMeasurePoint()&&a.clearMeasure(),o.shift()&&(0,mt.toolIsCursor)(mt.tool.value())){const e=s.selection().isEmpty();(null===t||e&&!t.hittest.data()?.hasOwnShortcutsBehaviourFor?.shiftKey)&&(mt.tool.setValue("measure"),(0,wn.trackDrawingToolSelected)("measure","Keyboard shortcut"),e||s.selectionMacro((e=>e.clearSelection())))}if((e.isTouch&&!e.stylus||null===c||!this._tryStartMeasure(e,a,o,c,h))&&(e.isTouch&&!e.stylus||!this._tryFinishMeasure(e,a))&&!(this._tryFinishZoom(e)||null!==c&&this._tryStartZoom(e,c,h,o))){if(e.isTouch&&(null!==this._startTrackPoint?(this._initCrossHairPosition=a.currentPoint(),this._startTrackPoint=new Vt.Point(e.localX,e.localY)):this._isSelectPointModeEnabled()&&null===this._chart.trackingModePaneWidget()&&this.startTrackingMode(new Vt.Point(e.localX,e.localY),new Vt.Point(e.localX,e.localY),new To.EnvironmentState(e))),e.isTouch&&(this._preventSourceChange=null===t||!s.selection().isSelected(t.source)),!this._isSelectPointModeEnabled()&&!this._isScrolling){if(e.isTouch&&!e.stylus&&((0,mt.toolIsMeasure)(mt.tool.value())||null!==a.measurePane().value()))return void this._initToolCreationModeParams(e) -;if(null!==c&&((0,Lt.isLineToolName)(mt.tool.value())||s.lineBeingCreated()))return o.shift()||s.selectionMacro((e=>e.clearSelection())),void this._mouseDownEventForLineTool(e,o,h,c)}if((0,mt.toolIsDemonstration)(mt.tool.value())&&o.altOnly()){e.isTouch&&!this.trackingModeEnabled()&&this.startTrackingMode(new Vt.Point(e.localX,e.localY),new Vt.Point(e.localX,e.localY),new To.EnvironmentState(e));const t=this._chartModel().crosshairSource().crosshairDemonstration();t.createHighlighter();const i=this._localCoordinatesToLineDataSourcePoint(a.originX(),a.originY(),(0,n.ensureNotNull)(this.state().mainDataSource()));i&&t.addHighlighterPosition(i)}else{if(null!==t){const i=this._sourceWasSelected(t);t.hittest.tryCallMouseDownOrTouchStartHandler(e,{sourceWasSelected:i})}if(!this._chart.readOnly()){const r=this._handleSelectionMouseDownAndGetJustDeselectedSource(e,t,o);if(null!==t&&!this._preventSourceChange){const i=t.hittest.data();if(t.isCustom){if(t.hittest.hasPressedMoveHandler(e))return s.model().setMovingCustomSource(t.source,i),this._preventScrollUntilNextMouseDownOrTouchStart=!0,this._currentMovingHitTest={sourceAtPoint:t,cancelledContainer:s.model().customSourceMovingHitTestData()??void 0},void s.selectionMacro((e=>{e.clearSelection(),e.addSourceToSelection((0,n.ensureNotNull)(t.source),(0,n.ensureNotNull)(i))}))}else if(i?.areaName===Ut.AreaName.SourceItemMove){const o=i?.activeItem;if(void 0!==o)return s.startCustomMoving(t.source,o,e),this._currentMovingHitTest={sourceAtPoint:t},void s.selectionMacro((e=>{e.clearSelection(),e.addSourceToSelection((0,n.ensureNotNull)(t.source),(0,n.ensureNotNull)(i))}))}}if(null!==t&&this._tryHandleEraserMouseDown(t,o))return;const a=null!==t&&(0,zs.isLineTool)(t.source)&&t.source.isLocked&&t.source.isLocked();if(!((0,mt.lockDrawings)().value()||a)&&null!==t&&!t.isCustom){if(!t.source.userEditEnabled())return;const s=t.hittest.data()?.snappingPrice,a=t.hittest.data()?.snappingIndex;let u=e.localY,_=e.localX;const p=t.hittest.data()?.ownerSourceId,m=p?i.dataSourceForId(p):t.source.ownerSource();if(void 0!==s&&null!==l&&(u=(0,n.ensure)(m?.priceScale()).priceToCoordinate(s,l),c=s),void 0!==a&&(_=i.timeScale().indexToCoordinate(a),h=a),u===e.localY&&_===e.localX||(e={...e,localY:u,localX:_},this.setCursorPosition(e.localX,e.localY,o)),this._tryStartChangingLineTool(e,t,o,h))return void(this._currentChangingLineToolHitTest=t);if(this._currentChangingLineToolHitTest=null,(d=t.hittest.target())===Ut.HitTarget.MovePoint||d===Ut.HitTarget.MovePointBackground&&(0,lo.lastMouseOrTouchEventInfo)().isTouch){if(this._tryStartCloning(e,t,o,r))return;if(this._tryStartMovingLineTool(e,t,o,h))return void(this._currentMovingHitTest={sourceAtPoint:t});this._currentMovingHitTest=null}}if(null!==t&&(0,An.isPriceDataSource)(t.source)&&t.source.isDraggable()&&this._state?.hasDataSource(t.source)&&this._paneWidgetsSharedState.trySetDraggingSource(t.source,this))return}var d;null!==t&&t.hittest.target()===Ut.HitTarget.Regular||(this._processing=!0)}}}_mouseUpOrTouchEndEvent(e){if(!this.hasState())return -;this._pressedMoveStage=0;const t=e.isTouch&&null!==this._startTrackPoint,i=e.isTouch&&this._wasPinched;e.isTouch&&(this._wasPinched=!1,this._longTap=!1),this._startMoveSourceParams=null,this._startChangeLineToolParams=null,this._currentChangingLineToolHitTest=null,this._currentMovingHitTest=null;const s=this._chartUndoModel(),o=s.model().customSourceMovingHitTestData();null!==o||s.customMoveBeingProcessed()||this._processMouseUpOrTouchEndHandler(e),this._isSelecting=!1;const r=s.model(),a=r.crosshairSource(),l=this._dataSourceAtPoint(e.localX,e.localY);if(a.selection()&&null===this._firstZoomPoint){const e=this.state().lineToolsForArea(a.selection(),(0,Kt.getBindingRenderingInfo)(this._canvasBinding));s.selectionMacro((t=>{let i=null;e.forEach((e=>{null===i&&(i=Xn(l,e)),t.addSourceToSelection(e,i)}))})),a.clearSelection(),(0,re.trackEvent)("GUI","Multiselect","Area Select")}(0,ee.emit)("mouse_up",{clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY});const c=e.isTouch&&this._touchMove;e.isTouch&&(this._touchMove=!1);const h=new To.EnvironmentState(e),d=mt.tool.value();if(e.isTouch&&((0,mt.toolIsMeasure)(d)||null!==a.measurePane().value())){if(!c&&!e.stylus&&null===a.measurePane().value()&&a.pane!==this._state)return void this.setCursorPosition(e.localX,e.localY);if(!c&&!e.stylus&&this._tryStartMeasure(e,a,h,a.price,a.index))return;if((!c||e.stylus)&&this._tryFinishMeasure(e,a))return}if(e.isTouch&&!c&&!(0,Lt.isLineDrawnWithPressedButton)(d)&&(0,Lt.isLineToolName)(d)&&!s.lineBeingCreated()){if(this._chart.justActivated())return;if(a.pane!==this._state)return void this.setCursorPosition(e.localX,e.localY,h);const t=a.currentPoint(),i=this.state().defaultPriceScale(),o=(0,n.ensure)(this.state().mainDataSource()?.firstValue()),r={index:Math.round(s.timeScale().coordinateToIndex(t.x)),price:i.coordinateToPrice(t.y,o)},c=(0,n.ensureNotNull)(s.createLineTool({pane:this.state(),point:r,linetool:d,actionSource:"Draw"}));return this._mouseTouchDownUpInfo&&(this._mouseTouchDownUpInfo.toolCreation=!0),s.selectionMacro((e=>{e.addSourceToSelection(c)})),s.lineBeingCreated()||(this._finishTool(c,l),e.preventDefault()),void(this._startTouchPoint=null)}const u=s.lineBeingCreated();if(u&&!(0,Lt.isLineDrawnWithPressedButton)(u.toolname)&&e.isTouch&&(this._startTouchPoint||e.stylus)){if(this._startTouchPoint=null,!c||e.stylus){const t=(0,n.ensureNotNull)(u.lastPoint()),i=s.continueCreatingLine({index:t.index,price:t.price},new To.EnvironmentState(e));this._initCrossHairPosition=null,i&&(this._finishTool(u,l),e.preventDefault())}return}if(null!==this._firstZoomPoint&&this._firstZoomPoint.draggingMode)return void this._finishZoom(e);if(this._processing=!1,s.customMoveBeingProcessed())return void s.endCustomMoving();if(null!==o){if(o.beingMoved&&!o.cancelled){const t=this._sourceWasSelected(l);(0,Ut.tryCallHandler)(e,{sourceWasSelected:t},o.mouseUpHandler,o.touchEndHandler),this.setCursorForTool()}if(r.setMovingCustomSource(null,null),or(e,o))return} -if(r.lineBeingEdited())return s.endChangingLinetool(!1),void(this._preventCrossHairMove()&&this._clearCursorPosition());if((0,Lt.isLineDrawnWithPressedButton)(d)&&!this._isSelectPointModeEnabled()){const t=s.lineBeingCreated();null!==t&&(kn(),t.finish(),"LineToolBrush"===t.toolname&&(0,ee.emit)("drawing_event",t.id(),"create"));const i=this.state().defaultPriceScale();if(i.isEmpty())return;if(!t)return;const o=(0,n.ensure)(t.ownerSource()?.firstValue()),r=i.coordinateToPrice(e.localY,o),a={index:Math.round(s.timeScale().coordinateToIndex(e.localX)),price:r};return void s.continueCreatingLine(a)}const _=r.crosshairSource().crosshairDemonstration();if(_.isThereUnfinishedHighlighter())return void _.finishHighlighter();if(r.sourcesBeingMoved().length)return s.endMovingSource(!1,!1),r.sourcesBeingMoved().filter(zs.isLineTool).forEach((e=>{this.setCursorForTool(e)})),void r.invalidate(ao.InvalidationMask.cursor());if(!this._chart.readOnly()){const t=e.localX>=0&&e.localXt.projectTime(e,i)));null!==i&&this._chart.chartWidgetCollection().syncScroll(1e3*i,this._chartModel())}}}const p=this._isScrolling,m=this._endScroll(e),g=this._paneWidgetsSharedState.draggingSource();if(null!==g){const t=e.target,i=this._chart.paneByCanvas(t);i&&i!==this&&i.state().mode()===zi.PaneMode.Regular&&(m&&s.undoHistory().undo(),s.mergeToPane(g,i.state()));if(this._chart.timeAxisByCanvas(t))if(r.isUnmergeAvailableForSource(g))m&&s.undoHistory().undo(),s.unmergeToNewBottomPane(g);else{const e=r.panes(),t=(0,n.ensureNotNull)(r.paneForSource(g)),i=e.indexOf(t);i!==e.length-1&&(m&&s.undoHistory().undo(),t.maximized().value()&&s.toggleMaximizedPane(t),s.movePane(i,e.length-1))}this._paneWidgetsSharedState.clearDraggingSource();const o=this._chart.getTimeScale();o&&o.restoreDefaultCursor();const a=this._chart.paneWidgets();for(let e=0;eUt.HitTarget.MovePointBackground||(0,lo.lastMouseOrTouchEventInfo)().isTouch)&&s.selectionMacro((e=>{e.clearSelection();const t=(0,n.ensureNotNull)(l.source);e.addSourceToSelection(t,Xn(l,t))})),e.isTouch&&(this._touchMove=!1)}_mouseOrTouchMoveEvent(e){if(!this.hasState())return;this._mouseTouchDownUpInfo&&(this._mouseTouchDownUpInfo.mouseMove=!0),this._resetMeasureIfRequired();const t=this._dataSourceAtPoint(e.localX,e.localY);this._processMouseEnterLeaveMoveHandlers(t,e);const i=this._chartUndoModel();if(!i)return;const s=e.localX,o=e.localY;this._prevMoveEventPosition=new Vt.Point(s,o);const n=new To.EnvironmentState(e);if(null===this._firstZoomPoint){if(this._updateHoveredSource(t,n,e), -!e.isTouch&&i.lineBeingCreated()){const e=i.model().paneBeingCreatedLineOn();if(null!==e&&e!==this._state)return void this._setCursorPositionOnExternalPane(e,s,o,n)}e.isTouch||this.setCursorPosition(s,o,n)}else this._processMouseMoveWhileZoom(e,n)}_pressedMouseOrTouchMoveEvent(e){if(this._chartModel().dragExportEnabled().value()&&void 0!==e.buttons&&!Boolean(1&e.buttons))return;if(!this.hasState()||this._pinching||e.isTouch&&this._contextMenuOpenedOnLastTap)return;this._pressedMoveStage=2,this._mouseTouchDownUpInfo&&(this._mouseTouchDownUpInfo.mouseMove=!0),this._resetMeasureIfRequired(),this._startChangeOrMoveLineToolIfNeeded(),e.isTouch&&(this._touchMove=!0,this._preventSourceChange=!1);const t=new To.EnvironmentState(e),i=this._chartUndoModel(),s=i.crosshairSource(),o=e.localX,r=e.localY;if(this._prevMoveEventPosition=new Vt.Point(o,r),null!==this._firstZoomPoint)return this._processMouseMoveWhileZoom(e),void(this._firstZoomPoint.draggingMode=!0);const a=mt.tool.value();if(e.isTouch&&this._startTouchPoint&&(0,Lt.isLineToolName)(a)&&!(0,Lt.isLineDrawnWithPressedButton)(a)&&!i.lineBeingCreated()&&!this._isSelectPointModeEnabled())return void this._updateCrosshairPositionInToolCreationMode(e,this.state());const l=s.measurePane().value();if(e.isTouch&&(this._startTouchPoint||e.stylus)&&((0,mt.toolIsMeasure)(a)||null!==l))return void(e.stylus?this.setCursorPosition(e.localX,e.localY,new To.EnvironmentState(e)):this._updateCrosshairPositionInToolCreationMode(e,l||this.state()));const c=i.lineBeingCreated();if(e.isTouch&&!e.stylus&&c&&!(0,Lt.isLineDrawnWithPressedButton)(c.toolname)){if(this._startTouchPoint){const t=(0,n.ensureNotNull)(i.lineBeingCreated()),s=(0,n.ensureNotNull)(i.model().paneForSource(t));this._updateCrosshairPositionInToolCreationMode(e,s)}return}if(e.isTouch&&null!==this._startTrackPoint){this._exitTrackingModeOnNextTry=!1;const e=(0,n.ensureNotNull)(this._initCrossHairPosition),i=new Vt.Point(o,r).subtract(this._startTrackPoint),s=e.add(i);this.setCursorPosition(s.x,s.y,t)}else e.isTouch&&this._preventCrossHairMove()||this.setCursorPosition(o,r,t);const h=this._isSelectPointModeEnabled();if((0,Lt.isLineToolName)(a)&&!(0,Lt.isLineDrawnWithPressedButton)(a)&&!h&&!t.mod())return;if((0,Lt.isLineDrawnWithPressedButton)(a)&&!h){const t=i.lineBeingCreated();if(!t)return;const s=this._localCoordinatesToLineDataSourcePoint(e.localX,e.localY,(0,n.ensureNotNull)(t.ownerSource()));return void(s&&i.continueCreatingLine(s))}const d=i.crosshairSource().crosshairDemonstration();if(d.isThereUnfinishedHighlighter()){const e=this._localCoordinatesToLineDataSourcePoint(s.originX(),s.originY(),(0,n.ensureNotNull)(this.state().mainDataSource()));return void(e&&d.addHighlighterPosition(e))}if(null!==this._paneWidgetsSharedState.draggingSource()){const t=e.target,i=this._chart.paneByCanvas(t);i&&(i!==this?i.setDragToAnotherPaneCursor():i.setCursorForTool());const s=this._chart.timeAxisByCanvas(t);s&&s.setCursor("grabbing")}if(i.timeScale().isEmpty())return;const u=this._options.handleScroll -;if((!u.pressedMouseMove||e.isTouch)&&(!u.horzTouchDrag&&!u.vertTouchDrag||!e.isTouch))return;if(this._chartModel().dragExportEnabled().value()&&this._ignoringMouseMovement)return;if(i.customMoveBeingProcessed())return void i.processCustomMove(e);const _=i.model().customSourceMovingHitTestData();if(null!==_&&(this._updateCommonTooltip(null,!0),_.cancelled||(i.model().processingCustomSourceMove(),(0,Ut.tryCallHandler)(e,{sourceWasSelected:this._selectionBeforeMouseDown.has(i.model().customSourceBeingMoved())},_.pressedMouseMoveHandler,_.touchMoveHandler)),or(e,_)))return;if(i.model().lineBeingEdited())return void this.setCursorPosition(o,r,t);if(i.model().sourcesBeingMoved().length)return void this._alignSourcesThatBeingMoved(i.model().sourcesBeingMoved(),e.localX,e.localY,t,i.model().lastHittestData()?.possibleMovingDirections);const p=this._dataSourceAtPoint(e.localX,e.localY);if(this._tryFinishClonning(e,new To.EnvironmentState(e),p))return;const m=(0,mt.toolIsMeasure)(a)||s.startMeasurePoint()&&s.endMeasurePoint();this._chart.readOnly()||!t.mod()||(0,Lt.isLineToolName)(a)||m||h?(this._processScroll(e),this._preventScroll()&&!this._preventCrossHairMove()&&null===this._startTrackPoint&&this.setCursorPosition(e.localX,e.localY,new To.EnvironmentState(e))):this._isSelecting||(s.startSelection(this.state()),this._isSelecting=!0)}_mouseOrTouchLeaveEvent(e){if(!this.hasState())return;const t=this._chartUndoModel();if(!t)return;const i=t.crosshairSource();e.isTouch||null!==i.measurePane().value()&&null===i.endMeasurePoint()||this._clearCursorPosition();if(this._chartModel().setHoveredSource(null,null),null!==this._prevHoveredHittest){const t=this._sourceWasSelected(this._prevHoveredHittest);(0,Ut.tryCallHandler)(e,{sourceWasSelected:t},this._prevHoveredHittest.hittest.data()?.mouseLeaveHandler),this._prevHoveredHittest=null}this._updateCommonTooltip(null),this._chart.setActivePaneWidget(null)}_mouseDoubleClickOrDoubleTapEvent(e){if(!this.hasState())return;const t=!this._chart.readOnly()&&!(0,Lt.isLineToolName)(mt.tool.value())&&this._dataSourceAtPoint(e.localX,e.localY)||null,i=this._sourceWasSelected(t);if(null!==t&&t.isCustom)t.hittest.tryCallDblClickOrDblTapHandler(e,{sourceWasSelected:i});else if(null!==t&&(e.isTouch||t.hittest.target()>Ut.HitTarget.MovePointBackground))t.hittest.tryCallDblClickOrDblTapHandler(e,{sourceWasSelected:i})&&!(0,Ut.shouldDefaultActionBeExecuted)(e,(0,n.ensureNotNull)(t.hittest.data()),"doubleClickHandler","doubleTapHandler")||this.processDoubleClickOnSource(t.source,t.hittest?t.hittest:void 0);else if(!this._chart.readOnly()&&!(0,Lt.isLineToolName)(mt.tool.value())&&!this._chartUndoModel().lineBeingCreated()&&this._chartUndoModel().selection().isEmpty()){const t=this.state();new To.EnvironmentState(e).mod()&&!t.maximized().value()?(t.collapsed().value()||t.collapsingAvailable().value())&&this._chartUndoModel().toggleCollapsedPane(this.state()):this._chartUndoModel().toggleMaximizedPane(this.state())}}_contextMenuEvent(e){const t=this._chartUndoModel() -;if(t.crosshairSource().startMeasurePoint()&&!this._trackCrosshairOnlyAfterLongTap)return t.crosshairSource().clearMeasure(),void(0,mt.resetToCursor)(!0);if(this._pinching)return;if(null===this._firstZoomPoint||this._trackCrosshairOnlyAfterLongTap||this.cancelZoom(),!(0,mt.toolIsCursor)(mt.tool.value())||this._isSelectPointModeEnabled()){if(e.isTouch)return;return(0,mt.resetToCursor)(!0),this.setCursorForTool(),void(t.lineBeingCreated()&&t.cancelCreatingLine())}if(!this._options.contextMenuEnabled)return;const i=this._dataSourceAtPoint(e.localX,e.localY),s=i?i.source:null;if(e.isTouch&&null!==this._startTrackPoint){if(this._preventSourceChange)return;this._clearCursorPosition()}e.isTouch&&(this._contextMenuOpenedOnLastTap=!0,this._startTrackPoint=null),this._contextMenuX=e.localX,this._contextMenuY=e.localY;const o=i&&i.hittest?i.hittest.target():0,n=o>=Ut.HitTarget.Regular||o>=Ut.HitTarget.MovePointBackground&&e.isTouch;if(t.selectionMacro((t=>{null!==s&&n?t.selection().isSelected(s)||(t.clearSelection(),t.addSourceToSelection(s,Xn(i,s))):(this._options.contextMenu.general&&this._showContextMenu(e),t.clearSelection())})),null!==i&&n&&null!==s)if((0,Po.isDataSource)(s)&&s.hasContextMenu())s.isSelectionEnabled()?this.showContextMenuForSelection(e,void 0,i.hittest):this.showContextMenuForSources([s],e,void 0,void 0,i.hittest);else{const t=this._sourceWasSelected(i);i.hittest.tryCallContextMenuHandler(e,{sourceWasSelected:t})}}_onMouseEvent(){this._preventSourceChange=!1,this._startTrackPoint=null,this._trackCrosshairOnlyAfterLongTap=!1}_onTouchEvent(){this._trackCrosshairOnlyAfterLongTap=!0}_localCoordinatesToLineDataSourcePoint(e,t,i){const s=this.state().defaultPriceScale();if(s.isEmpty())return null;const o=new Vt.Point(e,t),r=(0,n.ensure)(i.firstValue());return o.price=s.coordinateToPrice(t,r),o.index=Math.round(this._chartUndoModel().timeScale().coordinateToIndex(e)),o}_switchTrackingModeFromAnotherPaneIfNeeded(e){const t=this._chart.trackingModePaneWidget();if(null!==t&&t!==this){const i=this._chartModel().crosshairSource().currentPoint();t._exitTrackingModeOnNextTry=!0,t._tryExitTrackingMode(!0),this.startTrackingMode(new Vt.Point(e.localX,e.localY),new Vt.Point(i.x,e.localY),new To.EnvironmentState(e))}}async _showContextMenu(e){const t=e=>e instanceof zo.Separator,i=this._customActions(),s=(await this._initActions(e)).filter((e=>null!==e));i.remove.forEach((e=>{for(let t=0;t0;e--)t(o[e])&&t(o[e-1])&&o.splice(e,1);o.length&&t(o[0])&&o.splice(0,1),o.length&&t(o[o.length-1])&&o.splice(o.length-1,1),Io.ContextMenuManager.showMenu(o,e,{statName:"ChartContextMenu"},{menuName:"ChartContextMenu"})}async _initActions(e){const t=this._chart.actions(),i=[];if(this._chart.model().model().resetScalesAvailable().value()&&(i.push(t.chartReset),i.push(new zo.Separator)), -!this.state().isEmpty()&&l.enabled("datasource_copypaste")&&this.state().mode()===zi.PaneMode.Regular){const{createPasteAction:t,createActionCopyPrice:s}=await(0,Go.actionsProviderModule)(),o=s(this.state(),e.localY),n=t(this._chart,this.state());(o||n)&&(o&&i.push(o),n&&i.push(n),i.push(new zo.Separator))}i[i.length-1]instanceof zo.Separator||i.push(new zo.Separator),i.push(this._createLockTimeAxisAction(e)),i.push(new zo.Separator),i[i.length-1]instanceof zo.Separator||i.push(new zo.Separator),this._chart.applyIndicatorsToAllChartsAvailable()&&(i.push(t.applyStudiesToAllCharts),i.push(new zo.Separator));const s=t.paneRemoveAllDrawingTools.getState().disabled;s||i.push(t.paneRemoveAllDrawingTools);const o=t.paneRemoveAllStudies.getState().disabled;return o||i.push(t.paneRemoveAllStudies),s&&o||i.push(new zo.Separator),i.push(t.hideAllMarks),i.push(new zo.Separator),l.enabled("show_chart_property_page")&&i.push(t.chartProperties),i[i.length-1]instanceof zo.Separator&&i.pop(),i}_loadAndCreateLegendWidget(){Promise.all([i.e(3644),i.e(3439),i.e(1171),i.e(2537),i.e(8752),i.e(7780),i.e(2112),i.e(7691),i.e(7369),i.e(2227),i.e(2477),i.e(8093),i.e(5093)]).then(i.bind(i,6639)).then((e=>{if(this._isDestroyed||!this._options.legendWidgetEnabled||this._legendWidget)return;const t=e.LegendWidget,i=(0,ge.deepExtend)({},this._options.legendWidget);i.canShowSourceCode=!this._chart.onWidget()&&!ze.CheckMobile.any(),i.readOnlyMode=i.readOnlyMode||this._chart.readOnly(),i.statusesWidgets={sourceStatusesEnabled:this._options.sourceStatusesWidgetEnabled,sourceStatuses:this._options.sourceStatusesWidget||{},marketStatusEnabled:this._options.marketStatusWidgetEnabled,dataUpdateModeEnabled:this._options.chartWarningWidgetEnabled,dataUpdateMode:this._options.chartWarningWidget||{},dataProblemEnabled:this._options.dataProblemWidgetEnabled,pineSourceStatusEnabled:this._options.pineSourceStatusEnabled,alertStatusEnabled:this._options.alertStatusEnabled};const s=(0,ft.combine)(((e,t)=>tr&&this._chart!==e&&!t),this._chart.chartWidgetCollection().activeChartWidget.weakReference(),this._chart.chartWidgetCollection().lock.crosshair.weakReference()),o=(0,ft.combine)(((e,t)=>null!==e?e===this._state:(0,mt.toolIsMeasure)(t)),this._chartModel().crosshairSource().measurePane().weakReference(),mt.tool.weakReference());this._legendWidget=new t(this._chartUndoModel(),this,this._chart.backgroundTopTheme().spawnOwnership(),s.ownership(),this._visuallyCollapsed.spawnOwnership(),o.ownership(),i,{showContextMenuForSelection:this.showContextMenuForSelection.bind(this),showContextMenuForSources:this.showContextMenuForSources.bind(this),showChartPropertiesForSource:this._chart.showChartPropertiesForSource.bind(this._chart),showGeneralChartProperties:this._chart.showGeneralChartProperties.bind(this._chart),showObjectsTreeDialog:this._chart.showObjectsTreeDialog.bind(this._chart),onLegendRowFocused:()=>{this._chart.chartWidgetCollection().activeChartWidget.setValue(this._chart)}}),this._div.prepend(this._legendWidget.getElement()),this._legendWidget.updateLayout(), -this._legendWidget.updateWidgetModeBySize(this._size),this._legendWidget.updateThemedColors(this._themedTopColor);for(const e of Array.from(this._customLegendWidgetsFactoryMap.keys()))this._legendWidget.addCustomWidgetToLegend(e,(0,n.ensureDefined)(this._customLegendWidgetsFactoryMap.get(e)))}))}_loadAndCreatePaneControlsWidget(e){Promise.all([i.e(3644),i.e(3439),i.e(1171),i.e(2537),i.e(8752),i.e(7780),i.e(2112),i.e(7691),i.e(7369),i.e(2227),i.e(2477),i.e(8093),i.e(5093)]).then(i.bind(i,24028)).then((t=>{if(this._isDestroyed||this._state!==e)return;const i=t.PaneControlsWidget;this._paneControls=new i(this._chartUndoModel(),e,{backgroundThemeName:this._chart.backgroundTopTheme(),anySeparatorSelected:this._anySeparatorSelected.weakReference()},this._div),this._paneControls.updateWidgetModeByWidth(this._size.width),this._paneControls.updateThemedColors(this._themedTopColor),this._paneControlsResizeObserver=new ResizeObserver(this._handleRestrictLegendWidth.bind(this)),this._paneControlsResizeObserver.observe(this._paneControls.getElement()),this._state?.collapsed().value()&&this._chartModel().fullUpdate()}))}_handleRestrictLegendWidth(e){if(null===this._legendWidget||null===this._paneControls)return;const t=e[e.length-1].contentRect.width,i=0===t?0:t+2*Wn;this._legendWidget.addMargin(i)}_onMagnetStateChanged(){this._chart.isActive().value()&&(this._isSelectPointModeEnabled()||this._isToolActionActiveOnPane(!0))&&this._chartModel().crosshairSource().visible&&this._updateLineToolUsingMagnetOrShift()}_onShiftKeyStateChanged(){this._chart.isActive().value()&&this._isToolActionActiveOnPane(!1)&&this._chartModel().crosshairSource().visible&&this._updateLineToolUsingMagnetOrShift(To.EnvironmentState.create((0,Vs.shiftPressed)().value()))}_isToolActionActiveOnPane(e){const t=this._chartModel(),i=t.lineBeingCreated()||t.lineBeingEdited()||t.sourcesBeingMoved().length>0&&t.sourcesBeingMoved()[0];return i?t.paneForSource(i)===this._state:e&&(0,Lt.isLineToolName)(mt.tool.value())&&t.crosshairSource().pane===this._state}_updateLineToolUsingMagnetOrShift(e){if(null===this._prevMoveEventPosition)return;const{x:t,y:i}=this._prevMoveEventPosition,s=this._chartModel().sourcesBeingMoved();s.length>0?(mt.isStudyEditingNow.value()&&this.setCursorPosition(t,i,e),this._alignSourcesThatBeingMoved(s,t,i,e)):this.setCursorPosition(t,i,e)}_showEditDialogForSource(e,t){if(this._options.propertyPagesEnabled&&e.userEditEnabled())if(e===this._chartUndoModel().mainSeries())this._chart.showGeneralChartProperties(Ns.TabNames.symbol);else if((0,zs.isLineTool)(e)||(0,Ws.isStudy)(e)){let i;const s=t?.data();if(null!=s){const e=s.areaName;void 0!==e&&(i=er.get(e))}this._chart.showChartPropertiesForSource(e,i).then((e=>{this._editDialog=e}))}}_initToolCreationModeParams(e){this._startTouchPoint=new Vt.Point(e.pageX,e.pageY),this._initCrossHairPosition=this._chartModel().crosshairSource().currentPoint()}_updateCrosshairPositionInToolCreationMode(e,t){if(t!==this._state){const i=this._chart.paneByState(t);return i._startTouchPoint=this._startTouchPoint, -i._initCrossHairPosition=this._initCrossHairPosition,void i._updateCrosshairPositionInToolCreationMode(e,t)}const i=this._chartModel().crosshairSource();this._chart.justActivated()&&(this._initCrossHairPosition=i.currentPoint());const s=e.pageX,o=e.pageY,r=(0,n.ensureNotNull)(this._initCrossHairPosition),a=new Vt.Point(s,o).subtract((0,n.ensureNotNull)(this._startTouchPoint)),l=r.add(a);this.setCursorPosition(l.x,l.y,new To.EnvironmentState(e))}_priceAxisesContainer(e){return"left"===e?this._lhsPriceAxisesContainer:this._rhsPriceAxisesContainer}_recalculatePriceScales(e){const t=this.state();for(const i of t.leftPriceScales())t.recalculatePriceScale(i,e);for(const i of t.rightPriceScales())t.recalculatePriceScale(i,e);for(const i of t.sourcesByGroup().overlayPriceScaleSources())(0,zs.isLineTool)(i)||t.recalculatePriceScale(i.priceScale(),e)}_createLockTimeAxisAction(e){const t=0===mt.crosshairLock.value()?.type;return new zo.Action({actionId:"Chart.Crosshair.LockVerticalCursor",options:{label:jn,statName:"LockCursorInTime",checkable:!0,checked:t,onExecute:()=>this._toggleLockTimeAxis(e.localX,!t)}})}_toggleLockTimeAxis(e,t){if(t){const t=this._chartUndoModel().timeScale(),i=t.coordinateToIndex(e),s=t.points().roughTime(i);if(null!==s)return void mt.crosshairLock.setValue({type:0,time:s})}mt.crosshairLock.setValue(null)}_preventTouchEventsExceptPinch(){return this._paneWidgetsSharedState.hasTouchesOnOtherPanes(this)||null!==this._paneWidgetsSharedState.pinchingPane()}_updateHoveredSource(e,t,i){const s=this._chartUndoModel(),o=s.model();let n=!1;const r=e&&e.source,a=this._chart.readOnly();if(o.crosshairSource().isReplaySelection())this._setCursorClassName("none");else if(!(!a||e&&(0,zs.isLineTool)(e.source))||this._editDialog&&this._editDialog.visible().value())a&&(o.setHoveredSource(null,null),this.setCursorForTool());else{const l=mt.tool.value();let c=null;if(!this._processing&&((0,mt.toolIsCursor)(l)||(0,mt.toolIsEraser)(l)&&!a||t.mod()||!s.lineBeingCreated())){const t=e?.hittest;n=Boolean(t?.data()?.hideCrosshairLinesOnHover),t&&t.target()>Ut.HitTarget.MovePointBackground?(c=r,!r?.isHoveredEnabled()||(0,mt.toolIsEraser)(l)&&r===s.mainSeries()?o.setHoveredSource(null,null):o.setHoveredSource(r,t.data(),0)):o.setHoveredSource(null,null)}a?this.setCursorForTool(c,t,ei.PaneCursorType.Default):this._options.sourceSelectionEnabled&&(this._isSelectPointModeEnabled()?this._setCursorClassName("pointer"):this.setCursorForTool(c,t,e?.hittest.data()?.cursorType));const h=o.customSourceBeingMoved(),d=null!==h?[h]:o.sourcesBeingMoved();if((!d.length||null!==e&&-1===d.indexOf(e.source))&&this._updateCommonTooltip(e),!a&&null!==e&&i&&e.hittest.hasPressedMoveHandler(i)){switch((e.hittest.data()||{}).cursorType){case ei.PaneCursorType.VerticalResize:this._setCursorClassName("ns-resize");break;case ei.PaneCursorType.HorizontalResize:this._setCursorClassName("we-resize");break;case ei.PaneCursorType.DiagonalNeSwResize:this._setCursorClassName("nesw-resize");break;case ei.PaneCursorType.DiagonalNwSeResize: -this._setCursorClassName("nwse-resize")}}}this._preventCrossHairMove()&&this._clearCursorPosition(),1!==this._pressedMoveStage&&o.crosshairSource().setLinesShouldBeHidden(n)}async _createErrorBlock(){const e=new(await Ks());return this._div.insertBefore(e.container,this._topCanvasBinding.canvasElement.nextSibling),e}_customActions(){const e={top:[],bottom:[],remove:[]},t=this._chartUndoModel().timeScale(),i=this._state&&this._state.defaultPriceScale();if(!l.enabled("custom_items_in_context_menu"))return e;const s=t.isEmpty()?void 0:t.indexToUserTime(t.coordinateToIndex(this._contextMenuX));let o;if(i&&!i.isEmpty()){const e=(0,n.ensureNotNull)(this.state().mainDataSource()).firstValue();o=i.coordinateToPrice(this._contextMenuY,(0,n.ensureNotNull)(e))}return(0,ee.emit)("onContextMenu",{unixtime:null!=s?s.getTime()/1e3:void 0,price:o,callback:t=>{[...t].forEach((t=>{if(t.text)if(t.text.length>1&&"-"===t.text[0])e.remove.push(t.text.slice(1));else{let i;i="-"===t.text?new zo.Separator:new zo.Action({actionId:"Chart.ExternalActionId",options:{label:t.text,onExecute:t.click}}),t.position&&"top"===t.position?e.top.push(i):e.bottom.push(i)}}))}}),e}_highlightPriceAxisesByLabel(e){this._state?.mode()===zi.PaneMode.Regular&&(this._lhsPriceAxisesContainer.setHighlightedPriceAxises(e),this._rhsPriceAxisesContainer.setHighlightedPriceAxises(e))}_subscribeToState(){const e=this.state();e.onDestroyed().subscribe(this,this._onStateDestroyed,!0),e.dataSourcesCollectionChanged().subscribe(this,this._onDataSourcesCollectionChanged),e.maximized().subscribe(this._updateVisuallyCollapsed,{callWithLast:!0}),e.collapsed().subscribe(this._updateVisuallyCollapsed,{callWithLast:!0}),e.maximized().subscribe(this._updateMaximized,{callWithLast:!0})}_unsubscribeFromState(){const e=this.state();e.onDestroyed().unsubscribeAll(this),e.dataSourcesCollectionChanged().unsubscribeAll(this),e.maximized().unsubscribe(this._updateVisuallyCollapsed),e.collapsed().unsubscribe(this._updateVisuallyCollapsed),e.maximized().unsubscribe(this._updateMaximized),this._maximized.setValue(!1)}_updateAccessibilityAttr(){if(this.hasState()&&this.state().isMainPane().value()){const e=this._chartModel().mainSeries(),t=e.symbol(),s=(0,ht.getTranslatedResolutionModel)(e.interval()).hint,o=a.t(null,{replace:{symbol:t,interval:s}},i(1136));this._topCanvasBinding.canvasElement.setAttribute("aria-label",o)}else this._topCanvasBinding.canvasElement.setAttribute("aria-hidden","true")}async _updateEndOfSeriesBanner(){0}_paneDblClickOrTapEvent(e){if(this._chart.readOnly())return;const t=this._dataSourceAtPoint(e.localX,e.localY);if(null!==t&&(0,zs.isEditableTextLineTool)(t.source)){const e=t.source.textEditingActivationTime();null!==e&&performance.now()-e<500&&this.processDoubleClickOnSource(t.source,t.hittest)}}}class ar{constructor(){this._draggingSource=null,this._activeTouchPanes=new Set,this._scrollingPane=null,this._pinchingPane=null}onPaneDestroyed(e){this._activeTouchPanes.delete(e),this._scrollingPane===e&&(this._scrollingPane=null), -this._pinchingPane===e&&(this._pinchingPane=null)}startTouch(e){this._activeTouchPanes.add(e)}endTouch(e){this._activeTouchPanes.delete(e)}hasTouchesOnOtherPanes(e){return this._activeTouchPanes.size>1||1===this._activeTouchPanes.size&&!this._activeTouchPanes.has(e)}trySetDraggingSource(e,t){return!this.hasTouchesOnOtherPanes(t)&&((0,n.assert)(null===this._draggingSource||this._draggingSource===e),this._draggingSource=e,!0)}clearDraggingSource(){null!==this._draggingSource&&(this._draggingSource=null)}draggingSource(){return this._draggingSource}setScrollingPane(e){(0,n.assert)(null===e||null===this._scrollingPane||this._scrollingPane===e),this._scrollingPane=e}scrollingPane(){return this._scrollingPane}setPinchingPane(e){(0,n.assert)(null===e||null===this._pinchingPane||this._pinchingPane===e),this._pinchingPane=e}pinchingPane(){return this._pinchingPane}}var lr,cr=i(19679),hr=i(95772);i(20715);!function(e){e[e.BorderSize=1]="BorderSize",e[e.OffsetSize=5]="OffsetSize"}(lr||(lr={}));const dr={contextMenuEnabled:!0,timezoneMenuEnabled:!0,pressedMouseMoveScale:!0},ur=new dt.TranslatedString("change session",a.t(null,void 0,i(87041))),_r=a.t(null,void 0,i(94031));class pr{constructor(e,t,i,s,o){this._rendererOptions=null,this._onLabelHovered=new ae.Delegate,this._mousedown=!1,this._currentCursorClassName="invalid",this._options=(0,tt.merge)((0,tt.clone)(dr),t||{}),this.chart=e,this._properties=e.properties().childs().scalesProperties,this._element=document.createElement("div"),this._element.style.display="flex",this._backgroundBasedTheme=o;const n=e.model().model().rendererOptionsProvider(),r=()=>this.backgroundColor(),a=()=>{throw new Error("Time axis does not support real price scales")},l={titlesProvider:i,stubContextMenuProvider:async(e,t)=>{const i=await s(e,t),o=this.getContextMenuActions(!0);return 0===o.length?i:i.concat(new zo.Separator,o)},backgroundBasedTheme:o.spawnOwnership(),onActiveOrHoveredChart:(0,ft.combine)(((e,t)=>e||t),this.chart.isActive().weakReference(),this.chart.isHovered().weakReference()).ownership(),rendererOptionsProvider:n,getBackgroundTopColor:r,getBackgroundBottomColor:r,requestRepaint:()=>{this.chart.model().model().invalidate(ao.InvalidationMask.timeScale(ao.InvalidationLevel.Light,!0))},showHorizontalBorder:!0};this._lhsStubContainer=new Vo(this._properties,"left",a,l,this._options.priceAxisLabelsOptions,this),this._lhsStubContainer.onLabelHovered().subscribe(this,((e,t)=>{this._onLabelHovered.fire(e,t)})),this._rhsStubContainer=new Vo(this._properties,"right",a,l,this._options.priceAxisLabelsOptions,this),this._rhsStubContainer.onLabelHovered().subscribe(this,((e,t)=>{this._onLabelHovered.fire(e,t)})),this._element.appendChild(this._lhsStubContainer.getElement()),this._cell=document.createElement("div"),this._element.appendChild(this._cell),this._cell.classList.add("chart-markup-table","time-axis"),this._cell.style.height="25px",this._dv=document.createElement("div"),this._dv.style.width="100%",this._dv.style.height="100%",this._dv.style.position="relative", -this._dv.style.overflow="hidden",this._cell.appendChild(this._dv),this._canvasConfiguredHandler=()=>this.chart.model().model().lightUpdate(),this._canvasBinding=(0,Kt.createBoundCanvas)(this._dv,(0,Ft.size)({width:16,height:16})),this._canvasBinding.subscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler);const c=this._canvasBinding.canvasElement;c.style.position="absolute",c.style.zIndex="1",c.style.left="0",c.style.top="0",this._topCanvasBinding=(0,Kt.createBoundCanvas)(this._dv,(0,Ft.size)({width:16,height:16})),this._topCanvasBinding.subscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler);const h=this._topCanvasBinding.canvasElement;h.style.position="absolute",h.style.zIndex="2",h.style.left="0",h.style.top="0",this._dv.setAttribute("aria-hidden","true"),this._element.appendChild(this._rhsStubContainer.getElement()),this.restoreDefaultCursor(),this.update(),this._minVisibleSpan=cr.MINUTE_SPAN,this._mouseEventHandler=new Wt.MouseEventHandler(this._topCanvasBinding.canvasElement,this,{treatVertTouchDragAsPageScroll:!0,treatHorzTouchDragAsPageScroll:!1}),this.size=(0,Ft.size)({width:0,height:0}),(0,mt.hideMarksOnBars)().subscribe(this,(()=>this.chart.model().model().lightUpdate()))}destroy(){this._mouseEventHandler.destroy(),this._topCanvasBinding.unsubscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler),this._topCanvasBinding.dispose(),this._canvasBinding.unsubscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler),this._canvasBinding.dispose(),this._rhsStubContainer.onLabelHovered().unsubscribeAll(this),this._lhsStubContainer.onLabelHovered().unsubscribeAll(this),this._lhsStubContainer.destroy(),this._rhsStubContainer.destroy(),this.chart.properties().childs().paneProperties.childs().background.unsubscribeAll(this),this._backgroundBasedTheme.release(),(0,mt.hideMarksOnBars)().unsubscribeAll(this)}setCursor(e){let t="";"grabbing"!==e&&"ew-resize"!==e||(t="time-axis--cursor-"+e),this._currentCursorClassName!==t&&(this._currentCursorClassName&&this._cell.classList.remove(this._currentCursorClassName),t&&this._cell.classList.add(t),this._currentCursorClassName=t,this._cell.style.cursor)}restoreDefaultCursor(){this.setCursor("")}getElement(){return this._element}optimalHeight(){const e=this.rendererOptions();return Math.ceil(e.borderSize+e.offsetSize+e.fontSize+e.paddingTop+e.paddingBottom+e.labelBottomOffset)}setSizes(e,t,i){this.size&&(0,Ft.equalSizes)(this.size,e)||(this.size=e,this._canvasBinding.resizeCanvasElement(e),this._topCanvasBinding.resizeCanvasElement(e),this._cell.style.width=e.width+"px",this._cell.style.height=e.height+"px"),this._lhsStubContainer.setSizes(e.height,t),this._rhsStubContainer.setSizes(e.height,i)}rendererOptions(){if(!this._rendererOptions||this._rendererOptions.fontSize!==this.fontSize()){const e=this.fontSize();this._rendererOptions={borderSize:1,offsetSize:5,fontSize:e,font:(0,si.makeFont)(e,m.CHART_FONT_FAMILY,""),widthCache:new Qt.TextWidthCache,paddingTop:3*e/12,paddingBottom:3*e/12,paddingHorizontal:9*e/12,labelBottomOffset:4*e/12}} -return this._rendererOptions}backgroundColor(){return this.chart.model().model().backgroundColor().value()}lineColor(){const e=this._properties.childs().lineColor.value();if(0===(0,Nt.parseRgba)(e)[3]){const e=this.chart.model().model().lastPane();if(e&&e.collapsed().value())return this.chart.properties().childs().paneProperties.childs().separatorColor.value()}return e}textColor(){return this._properties.childs().textColor.value()}fontSize(){return this._properties.childs().fontSize.value()}baseFont(){return(0,si.makeFont)(this.fontSize(),m.CHART_FONT_FAMILY)}baseBoldFont(){return(0,si.makeFont)(this.fontSize(),m.CHART_FONT_FAMILY,"","bold")}hasCanvas(e){return this._canvasBinding.canvasElement===e||this._topCanvasBinding.canvasElement===e}onLabelHovered(){return this._onLabelHovered}getScreenshotData(){return{content:this._canvasBinding.canvasElement.toDataURL(),canvas:this._canvasBinding.canvasElement,contentWidth:this.size.width,contentHeight:this.size.height,lhsStub:this._lhsStubContainer.getScreenshotData(),rhsStub:this._rhsStubContainer.getScreenshotData()}}getContextMenuActions(e){const t=this.chart,i=t.actions(),s=[];if(e||(t.model().timeScale().resetAvailable().value()&&(s.push(i.timeScaleReset),s.push(new zo.Separator)),this._options.timezoneMenuEnabled&&s.push(i.applyTimeZone),s.push(i.sessionBreaks)),!t.model().mainSeries().isDWM()){const e=t.model()?.mainSeries().symbolInfo();if(e){const i=t.model().mainSeries().properties().childs().sessionId,o=(e.subsessions||[]).filter((e=>!e.private));if(o.length>1){const e=o.map((e=>new zo.Action({actionId:"Chart.SetSession",options:{label:(0,hr.translateSessionDescription)(e.description),checkable:!0,checked:i.value()===e.id,statName:"SetSession",onExecute:()=>{t.model().setProperty(i,e.id,ur)}}}))),n=new zo.Action({actionId:"Chart.SetSession",options:{label:_r,statName:"SetSession",subItems:e}});s.push(n)}}}return!t.onWidget()&&l.enabled("show_chart_property_page")&&l.enabled("chart_property_page_scales")&&i.scalesProperties&&(s.length&&s.push(new zo.Separator),s.push(i.scalesProperties)),s}update(){if(!this.chart.hasModel())return;const e=this.chart.model().timeScale().marks();if(e){this._minVisibleSpan=cr.YEAR_SPAN;for(const t of e)this._minVisibleSpan=Math.min(t.span,this._minVisibleSpan)}}updatePriceAxisStubs(){const e=this.chart.model().model(),t=this.chart.hasMaximizedPane()?(0,n.ensureNotNull)(this.chart.maximizedPaneWidget()).state():e.paneForSource(e.mainSeries());if(!t)return;const i=e.priceScaleSlotsCount();this._lhsStubContainer.setScales([],i.left,t.leftPriceScales().length,i.left+i.right),this._rhsStubContainer.setScales([],i.right,t.rightPriceScales().length,i.left+i.right)}paint(e){if(e.level===ao.InvalidationLevel.None||0===this.size.width||0===this.size.height)return;(0,Kt.tryApplySuggestedCanvasBitmapSize)(this._canvasBinding),(0,Kt.tryApplySuggestedCanvasBitmapSize)(this._topCanvasBinding);const t=(0,Kt.getContext2D)(this._topCanvasBinding.canvasElement);if(e.level>ao.InvalidationLevel.Cursor){const i=(0, -Kt.getContext2D)(this._canvasBinding.canvasElement),s=(0,Kt.getBindingRenderingInfo)(this._canvasBinding);this.drawBackground(i,s),this.chart.hasModel()&&(this.drawBorder(i,s),this.drawTickMarks(i,s),this.drawBackLabels(i,s),this.drawCrossHairLabel(t,s)),this._lhsStubContainer.paintStubs(e),this._rhsStubContainer.paintStubs(e)}this.drawCrossHairLabel(t,(0,Kt.getBindingRenderingInfo)(this._topCanvasBinding))}drawBackground(e,t){if((0,Kt.clearRect)(e,0,0,t.bitmapSize.width,t.bitmapSize.height,this.backgroundColor()),!this.chart.hasModel())return;const i=this.chart.model();if(!i.timeScale().isEmpty()){const s=i.model().selection().lineDataSources().filter((e=>!e.isFixed())).reduce(((e,t)=>{const i=t.timeAxisPoints();return 0===i.length?e:e.concat(i)}),[]);s.length>0&&this._highlightBackground(e,s,t)}const s=i.model().crosshairSource();s.startMeasurePoint()&&this._highlightBackground(e,s.measurePoints(),t)}drawBorder(e,t){e.save(),e.fillStyle=this.lineColor();const i=Math.max(1,Math.floor(this.rendererOptions().borderSize*t.verticalPixelRatio)),s=t.bitmapSize.width;e.fillRect(0,0,s,i),e.restore()}drawTickMarks(e,t){const i=this.chart.model().timeScale().marks();if(!i||0===i.length)return;let s=i.reduce(((e,t)=>e.span>t.span?e:t),i[0]).span;s>30&&s<40&&(s=30),e.save(),e.strokeStyle=this.lineColor();const o=this.rendererOptions(),n=o.borderSize+o.offsetSize+o.paddingTop+o.fontSize/2;e.textAlign="center",e.textBaseline="middle",e.fillStyle=this.textColor(),(0,Kt.drawScaled)(e,t.horizontalPixelRatio,t.verticalPixelRatio,(()=>{e.font=this.baseFont();for(let t=0;t=s&&e.fillText(o.label,o.coord,n)}})),e.restore()}drawBackLabels(e,t){e.save();const i=new Set,s=this.chart.model().model();let o=s.dataSources();const n=s.selection().allSources();for(const e of n)i.add(e);s.hoveredSource()&&i.add(s.hoveredSource());for(const e of s.sourcesBeingMoved())i.add(e);const r=s.customSourceBeingMoved();null!==r&&i.add(r);const a=s.lineBeingEdited()??s.lineBeingCreated();a&&i.add(a),i.add(this.chart.model().crosshairSource()),o=o.concat(s.customSources());const l=this.rendererOptions();for(let s=0;s=s&&(s=a,n=r),a<=i&&(i=a,o=r)}}return n&&t.push(n),o&&t.push(o),t}_zoomAvailable(){const e=this.chart.model().model();return!e.timeScale().isEmpty()&&e.zoomEnabled()&&this._options.pressedMouseMoveScale&&!e.chartFloatingTooltipVisible().value()}_mouseDownOrTouchStartEvent(e){if(this._mousedown||!this._zoomAvailable())return;this._mousedown=!0;const t=this.chart.model();t.timeScale().isEmpty()||t.startScaleTime(e.localX)}_pressedMouseOrTouchMoveEvent(e){this._zoomAvailable()&&this.chart.model().scaleTimeTo(e.localX)}_mouseUpOrTouchEndEvent(e){this._zoomAvailable()&&(this._mousedown=!1,this.chart.model().endScaleTime(),this.restoreDefaultCursor())}_contextMenuOrTouchContextMenuEvent(e){this._options.contextMenuEnabled&&Io.ContextMenuManager.showMenu(this.getContextMenuActions(),e,{statName:"TimeScaleContextMenu"},{menuName:"TimeScaleContextMenu"})}_mouseOrTouchEnterEvent(e){this._zoomAvailable()&&this.setCursor("ew-resize")}_mouseOrTouchLeaveEvent(e){this.restoreDefaultCursor()}_mouseDoubleClickOrDoubleTapEvent(e){(0, -re.trackEvent)("GUI","Double click time scale"),this.chart.model().resetTimeScale()}}var mr,gr,fr,yr,vr=i(85459),Sr=i.n(vr),br=i(76662),wr=i(10341),Cr=i(1395);function Tr(e,t){return"period-back"===e.type&&"period-back"===t.type?e.value===t.value:"time-range"===e.type&&"time-range"===t.type&&(e.from===t.from&&e.to===t.to)}function Pr(e,t){return!!Re.Interval.isEqual(e.res,t.res)&&Tr(e.val,t.val)}!function(e){e.extractErrorReason=function(e){return e.params[1]}}(mr||(mr={})),function(e){e.Default="default",e.FullSingleSession="full_single_session"}(gr||(gr={})),function(e){e.PeriodBack="period-back",e.TimeRange="time-range"}(fr||(fr={})),function(e){e.PeriodBack="period-back",e.TimeRange="time-range"}(yr||(yr={}));var xr=i(22961);const Mr={duration:250,easing:br.easingFunc.easeOutCubic};class Ir{constructor(e){this._onFinishCalled=!1,this._options={...Mr,...e},this._startTime=performance.now()}getStartPosition(){return this._options.from}getPosition(e){const t=this._calculateProgress(e);return 1===t?(this._options.onFinish&&!this._onFinishCalled&&(this._options.onFinish(!0),this._onFinishCalled=!0),this._options.to):(0,xr.lerp)(this._options.from,this._options.to,this._options.easing(t))}finished(e){return 1===this._calculateProgress(e)}onFinish(e){this._onFinishCalled||(this._options.onFinish?.(e),this._onFinishCalled=!0)}_calculateProgress(e){const t=e-this._startTime;return t>=this._options.duration?1:t/this._options.duration}}var Ar=i(92848),Lr=i(22455);function kr(e,t,i,s){let o=null;if(i.currencyConversionEnabled()&&(0,Lr.isActingAsSymbolSource)(e)){const n=i.availableCurrencies(),r=t.currency(n),a=e.currency();null!==r&&null!==r.selectedCurrency&&!r.allCurrenciesAreOriginal&&r.selectedCurrency!==a&&(s&&null===a||null!==a&&n.convertible(a))&&(o=r.selectedCurrency)}return o}const Er=new dt.TranslatedString("toggle collapsed pane state",a.t(null,void 0,i(46054)));class Dr extends st.UndoCommand{constructor(e,t){super(Er),this._chartModel=e,this._paneIndex=t}redo(){this._chartModel.toggleCollapsedPane(this._paneIndex)}undo(){this._chartModel.toggleCollapsedPane(this._paneIndex)}}const Br=new dt.TranslatedString("toggle maximized pane state",a.t(null,void 0,i(63095)));class Vr extends st.UndoCommand{constructor(e,t){super(Br),this._model=e;const i=e.maximizedPane().value(),s=null===i?null:e.panes().indexOf(i);this._maximizedPaneIndex=t===i?null:e.panes().indexOf(t),this._prevMaximizedPaneIndex=s}redo(){this._setMaximizedPane(this._maximizedPaneIndex)}undo(){this._setMaximizedPane(this._prevMaximizedPaneIndex)}_setMaximizedPane(e){this._model.setMaximizedPane(null===e?null:this._model.panes()[e])}}const Rr=new dt.TranslatedString("move all scales to left",a.t(null,void 0,i(64077))),Nr=new dt.TranslatedString("move all scales to right",a.t(null,void 0,i(19013))),Or=(0,ne.getLogger)("Chart.MergeAllScales");class Fr extends st.UndoCommand{constructor(e,t,i,s,o,n){super(n),this._model=e,this._paneIndex=e.panes().indexOf(t),this._targetPosition=s,this._targetIndex=o,this._scaleId=i.id(), -this._sourcePosition=t.priceScalePosition(i),"overlay"!==this._sourcePosition&&(this._sourceIndex=t.priceScaleIndex(i,this._sourcePosition))}redo(){const e=this._model.panes()[this._paneIndex],t=(0,n.ensureNotNull)(e.getPriceScaleById(this._scaleId));e.movePriceScale(t,this._targetPosition,this._targetIndex),this._model.fullUpdate()}undo(){const e=this._model.panes()[this._paneIndex],t=(0,n.ensureNotNull)(e.getPriceScaleById(this._scaleId));e.movePriceScale(t,this._sourcePosition,this._sourceIndex),this._model.fullUpdate()}}var Wr=i(13896);class Hr extends st.UndoCommand{constructor(e,t,i,s){super(s,void 0,!Wr.lineToolsDoNotAffectChartInvalidation),this._createdIds=[],this._actionSourceWasSent=!1,this._model=e,this._withoutShift=i,this._origStates=t.map((e=>e.state(!0)));const o=e.lineToolsGroupModel();this._origGroups=t.map((e=>{const t=o.groupForLineTool(e);return t&&t.id}))}redo(){const e=this._model.lineToolsGroupModel();let t;this._actionSourceWasSent||(t="Clone",this._actionSourceWasSent=!0);const i=this._origStates.map(((i,s)=>{const o=(0,n.ensureNotNull)(this._model.dataSourceForId(i.id)),r=0===this._createdIds.length?void 0:(0,n.ensureDefined)(this._createdIds[s]),a=(0,zs.cloneLineTool)(this._model,o,!this._withoutShift,r,t);void 0!==i.sharingMode&&a.share(i.sharingMode);const l=(0,n.ensureNotNull)(o.priceScale());(0,n.ensureNotNull)(this._model.paneForSource(o)).addDataSource(a,l,!1);const c=this._origGroups[s];if(null!==c){const t=e.groupForId(c);t&&t.addLineTools([a])}return this._model.updateSource(a),a}));0===this._createdIds.length&&(this._createdIds=i.map((e=>e.id()))),this._model.selectionMacro((e=>{e.clearSelection(),i.forEach((t=>{e.addSourceToSelection(t)}))})),this._model.setShouldBeSavedEvenIfHidden(!0)}undo(){const e=this._model.lineToolsGroupModel();this._createdIds.forEach((t=>{const i=(0,n.ensureNotNull)(this._model.dataSourceForId(t)),s=e.groupForLineTool(i);null!==s&&s.excludeLineTool(i),this._model.removeSource(i)}))}newIds(){return this._createdIds}}class zr extends st.UndoCommand{constructor(e,t,i,s=!0){super(t,i,s),this._invalidateViaSync=!1,this._chartModel=e}redo(){this._invalidateViaSync?this._chartModel.lineToolsSynchronizer().executeSynchronizationInLayoutAction((async()=>this._redo())):this._redo()}undo(){this._invalidateViaSync?this._chartModel.lineToolsSynchronizer().executeSynchronizationInLayoutAction((async()=>this._undo())):this._undo()}}var Ur=i(97217);function jr(e,t,i){let s=[];const o=e.children(t,!1,i);for(let t=0;t{e.children(t,!1,i).forEach((e=>{s.has(e)||(s.add(e),o(e))}))};return t.forEach(o),t.filter((e=>!s.has(e))).map((t=>jr(e,t,i))).reduce(((e,t)=>e.concat(t)),[])}function qr(e,t){return Gr(e,t,!0).reduce(((e,t)=>((0,Ur.isLineTool)(t)?e[1].push(t.id()):e[0].push(t.id()),e)),[[],[]])}function $r(e,t){qr(e,t).reverse().forEach((t=>{t.map((t=>e.dataSourceForId(t))).filter(tt.notNull).forEach((t=>{e.removeSource(t)}))}))}var Kr=i(29603);class Yr extends zr{ -constructor({chartModel:e,title:t,lineDataSourceIds:i}){super(e,t,void 0,!Wr.lineToolsDoNotAffectChartInvalidation),this._excludeLineToolsFromGroupUndoCommands=[],this._undoState=[],this._lineDataSourceIds=i}_redo(){const e=this._lineDataSourceIds.map((e=>(0,n.ensureNotNull)(this._chartModel.dataSourceForId(e))));this._groupLineToolsByGroups(e).forEach(((e,t)=>{const i=new Kr.ExcludeLineToolsFromGroupUndoCommand(this._chartModel,t,e);i.redo(),this._excludeLineToolsFromGroupUndoCommands.push(i)})),e.forEach((e=>{this._undoState.push({state:e.state(!1),paneIndex:this._chartModel.panes().indexOf((0,n.ensureNotNull)(this._chartModel.paneForSource(e))),sharingMode:e.sharingMode().value()}),this._chartModel.removeSource(e)}))}_undo(){for(let e=this._undoState.shift();e;e=this._undoState.shift())this._chartModel.restoreSource(!1,e.paneIndex,null,e.state,null)?.share(e.sharingMode);this._excludeLineToolsFromGroupUndoCommands.forEach((e=>e.undo()))}_groupLineToolsByGroups(e){const t=this._chartModel.lineToolsGroupModel();return e.reduce(((e,i)=>{const s=t.groupForLineTool(i);if(null!==s){const t=e.get(s)||[];t.push(i),e.set(s,t)}return e}),new Map)}}var Zr=i(2258),Xr=i(42516);const Jr=(0,ne.getLogger)("Chart.RemoveSourcesUndoCommand"),Qr=new dt.TranslatedString("remove line data sources",a.t(null,void 0,i(38199)));class ea extends zr{constructor(e,t,i){super(e,i,void 0,(0,Xr.sourcesAffectState)(t)),this._removeLineDataSourcesUndoCommand=null,this._initialPriceScaleMode=null;const[s,o]=qr(e,t);this._sourceIds=s,this._lineDataSourceIds=o,this._sourceStates=[],this._paneIndexes=[],this._priceScalePositionIds=[],this._paneStates=[],this._restorePanes=[];const r=t[0];1===t.length&&(0,Ws.isStudy)(r)&&(this._initialPriceScaleMode=(0,n.ensureNotNull)(r.priceScale()).mode())}removedIds(){return[...this._sourceIds,...this._lineDataSourceIds]}_redo(){this._chartModel.panes().length;const e=this._sourceIds.map((e=>(0,n.ensureNotNull)(this._chartModel.dataSourceForId(e))));this._sourceStates=e.map((e=>{const t=e.state(!1);return null===t&&(0,Ws.isStudyStub)(e)?e.getDescriptor():t}));const t=e.map((e=>(0,n.ensureNotNull)(this._chartModel.paneForSource(e))));this._paneIndexes=t.map((e=>this._chartModel.panes().indexOf(e))),this._lineDataSourceIds.length>0&&(this._removeLineDataSourcesUndoCommand=new Yr({title:Qr,chartModel:this._chartModel,lineDataSourceIds:this._lineDataSourceIds}),this._removeLineDataSourcesUndoCommand.redo()),this._priceScalePositionIds=e.map(((e,i)=>{const s=e.priceScale();if(null===s)return null;const o=t[i].priceScalePosition(s);return{id:s.id(),position:o,priceScaleIndex:t[i].priceScaleIndex(s,o)}}));const i=new Set;e.forEach(((e,t)=>{i.add(this._paneIndexes[t])})),this._paneStates=e.map(((e,s)=>{const o=this._paneIndexes[s];return i.has(o)?t[s].state({includeSources:!1,withData:!0}):null})),this._restorePanes=e.map((e=>this._chartModel.removeSource(e)))}_undo(){const e=[];for(let t=this._sourceStates.length-1;t>=0;t--){const i=this._sourceStates[t];if(null!==i){let s=null;s=(0, -Zr.isStudyStubDescriptor)(i)?this._chartModel.restoreStudyStub(i):this._chartModel.restoreSource(this._restorePanes[t],this._paneIndexes[t],this._paneStates[t],i,this._priceScalePositionIds[t]),s&&e.push(s)}}e.some(((t,i)=>t.id()!==this._sourceIds[e.length-i-1]))&&Jr.logError("Source was restored improperly - source ids does not match"),null!==this._initialPriceScaleMode&&(0,n.ensureNotNull)(e[0].priceScale()).setMode(this._initialPriceScaleMode),this._removeLineDataSourcesUndoCommand&&this._removeLineDataSourcesUndoCommand.undo()}}class ta extends st.UndoCommand{constructor(e,t,i,s=!0){super(i,s,(0,Xr.sourcesAffectState)(t)),this._newStates=[],this._model=e,this._savedStates=t.map((e=>e.state(!1)))}redo(){this._applyState(this._newStates)}undo(){0===this._newStates.length&&this.saveNewState(),this._applyState(this._savedStates)}saveNewState(){const e=this._savedStates.filter(tt.notNull).map((e=>(0,n.ensureNotNull)(this._model.dataSourceForId(e.id))));this._newStates=e.map((e=>e.state(!1)))}_applyState(e){for(const t of e)if(null!==t){const e=this._model.dataSourceForId(t.id);if(null!==e)if((0,Ws.isStudy)(e)){const i=t.state.inputs,s=e.properties().childs().inputs.childs();for(const e in i)s[e]&&s[e].setValue(i[e])}else{const i=e;this._model.restoreLineToolState(i,t,!0),i.synchronizeAlert(!0)}}}}class ia extends st.UndoCommand{constructor(e,t,i){super(i),this._chartModel=e,this._sourceId=t.id();const s=(0,n.ensureNotNull)(t.priceScale());this._initialPriceScaleId=s.id(),this._initialPriceScaleState=(0,n.ensureNotNull)(t.priceScale()).state();const o=(0,n.ensureNotNull)(e.paneForSource(t));this._initialPriceScalePosition=o.priceScalePosition(s),this._initialPriceScaleIndex=o.priceScaleIndex(s,this._initialPriceScalePosition),this._initialPaneIndex=e.panes().indexOf(o)}_newPriceScaleState(e){const t={...this._initialPriceScaleState};return delete t.m_isLockScale,delete t.id,delete t.m_topMargin,delete t.m_bottomMargin,delete t.hasCalculatedPriceRange,t}_originalPriceScaleState(){return this._initialPriceScaleState}}class sa extends ia{constructor(e,t,i){super(e,t,i)}redo(){const e=(0,n.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),t=(0,n.ensureNotNull)(this._chartModel.paneForSource(e)),i=this._chartModel.children(e,!0,!0);t.bulkActionMacro((()=>{i.forEach((e=>this._chartModel.detachSource(e))),this._chartModel.detachSource(e)}));const s=this._chartModel.createPane(this.targetPaneIndex(e)),o=s.findSuitableScale(e);s.bulkActionMacro((()=>{s.addDataSource(e,o,!1),i.forEach((e=>s.addDataSource(e,o,!1)))}));const r=(0,n.ensureNotNull)(e.priceScale());r.restoreState(this._newPriceScaleState(s.isOverlay(e))),r.setHeight(s.height()),this._chartModel.fullUpdate(),this._chartModel.setShouldBeSavedEvenIfHidden(!0)}undo(){const e=(0,n.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),t=(0,n.ensureNotNull)(this._chartModel.paneForSource(e)),i=this._chartModel.children(e,!0,!0);t.bulkActionMacro((()=>{i.forEach((e=>this._chartModel.detachSource(e)));const t=this._chartModel.detachSource(e);(0, -n.assert)(t,"Undo of detaching must remove pane")}));const s=this._chartModel.panes()[this._initialPaneIndex];let o=s.getPriceScaleById(this._initialPriceScaleId);null===o&&(o=s.createPriceScaleAtPosition(this._initialPriceScalePosition,this._initialPriceScaleIndex)),s.bulkActionMacro((()=>{s.addDataSource(e,o,!0),i.forEach((e=>s.addDataSource(e,o,!1)))}));const r=(0,n.ensureNotNull)(e.priceScale());r.restoreState(this._originalPriceScaleState()),r.setHeight(s.height()),this._chartModel.fullUpdate()}}class oa extends sa{constructor(e,t,i){super(e,t,i)}targetPaneIndex(e){const t=this._chartModel.panes();if(!t[this._initialPaneIndex].containsMainSeries()||e===this._chartModel.mainSeries())return this._initialPaneIndex+1;for(let e=this._initialPaneIndex+1;e=0;e--)if(t[e].mode()===zi.PaneMode.Regular)return e>0&&t[e].containsMainSeries()&&t[e-1].mode()===zi.PaneMode.Widget?e-1:e;return 0}}class ra extends sa{constructor(e,t,i){super(e,t,i)}targetPaneIndex(){return this._chartModel.panes().length}}class aa extends ia{constructor(e,t,i,s){super(e,t,i),this._restorePane=!1,this._keepZOrder=s??!1,this._initialZOrder=t.zorder()}redo(){const e=this._chartModel.panes().length,t=this._chartModel.panes()[this._targetPaneIndex()],i=(0,n.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),s=(0,n.ensureNotNull)(this._chartModel.paneForSource(i)),o=this._chartModel.children(i,!0,!0);s.bulkActionMacro((()=>{o.forEach((e=>this._chartModel.detachSource(e))),this._restorePane=this._chartModel.detachSource(i)}));const r="overlay"===this._initialPriceScalePosition?this._initialPriceScalePosition:void 0,a=t.findSuitableScale(i,void 0,r),l=0===a.dataSources().length;if(t.bulkActionMacro((()=>{t.addDataSource(i,a,this._keepZOrder),o.forEach((e=>t.addDataSource(e,a,this._keepZOrder)))})),i===this._chartModel.mainSeries()){const e=t.priceScalePosition(a);t.movePriceScale(a,e,0)}if(l){const e=(0,n.ensureNotNull)(i.priceScale());e.restoreState(this._newPriceScaleState(t.isOverlay(i))),e.setHeight(t.height())}this._chartModel.fullUpdate(),e!==this._chartModel.panes().length&&this._chartModel.setShouldBeSavedEvenIfHidden(!0)}undo(){let e;e=this._restorePane?this._chartModel.createPane(this._initialPaneIndex):this._chartModel.panes()[this._initialPaneIndex];const t=(0,n.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),i=(0,n.ensureNotNull)(this._chartModel.paneForSource(t)),s=this._chartModel.children(t,!0,!0);i.bulkActionMacro((()=>{s.forEach((e=>this._chartModel.detachSource(e))),this._chartModel.detachSource(t)}));let o=e.getPriceScaleById(this._initialPriceScaleId) -;null===o&&(o=e.createPriceScaleAtPosition(this._initialPriceScalePosition,this._initialPriceScaleIndex)),e.bulkActionMacro((()=>{t.setZorder(this._initialZOrder),e.addDataSource(t,o,!0),s.forEach((t=>e.addDataSource(t,o,!1)))}));const r=(0,n.ensureNotNull)(t.priceScale());r.restoreState(this._originalPriceScaleState()),r.setHeight(e.height()),this._chartModel.fullUpdate()}}class la extends aa{constructor(e,t,i){super(e,t,i)}_targetPaneIndex(){const e=this._chartModel.panes();for(let t=this._initialPaneIndex-1;t>=0;t--)if(e[t].mode()===zi.PaneMode.Regular)return t;throw new Error("No regular pane found above for merging")}}class ca extends aa{constructor(e,t,i){super(e,t,i)}_targetPaneIndex(){const e=this._chartModel.panes();for(let t=this._initialPaneIndex+1;t{const i=(0,n.ensureNotNull)(e.paneForSource(t)),s=e.panes().indexOf(i),o=this._sourcesByPanes.get(s)||[];o.push(t.id()),this._sourcesByPanes.set(s,o)})),Array.from(this._sourcesByPanes.keys()).forEach((t=>{const i=e.panes()[t],s=new Map,o=new Set(i.sourcesByGroup().multipaneSources());i.sourcesByGroup().allIncludingHidden().filter((e=>!o.has(e))).forEach((e=>{s.set(e.id(),e.zorder())})),this._originalState.set(t,s)}))}undo(){this._originalState.forEach(((e,t)=>{const i=this._model.panes()[t],s=new Map;e.forEach(((e,t)=>{const o=(0,n.ensureNotNull)(i.dataSourceForId(t));s.set(o,e)})),i.setZOrders(s)}))}redo(){this._sourcesByPanes.forEach(((e,t)=>{const i=this._model.panes()[t],s=e.map((e=>(0,n.ensureNotNull)(i.dataSourceForId(e))));this._paneOperation(i,s)}))}}class Pa extends Ta{constructor(e,t){super(e,t,ma.format({title:Ca(t[0])}))}_paneOperation(e,t){e.bringToFront(t)}}class xa extends Ta{constructor(e,t){super(e,t,ga.format({title:Ca(t[0])}))}_paneOperation(e,t){e.sendToBack(t)}}class Ma extends Ta{constructor(e,t,i,s){super(e,t,s),this._targetSource=i}_paneOperation(e,t){e.insertAfter(t,this._targetSource)}}class Ia extends Ma{constructor(e,t,i){super(e,t,i,fa.format({title:Ca(t[0]),targetTitle:Ca(i)}))}}class Aa extends Ta{constructor(e,t,i,s){super(e,t,s),this._targetSource=i}_paneOperation(e,t){e.insertBefore(t,this._targetSource)}}class La extends Aa{constructor(e,t,i){super(e,t,i,ya.format({title:Ca(t[0]),targetTitle:Ca(i)}))}}function ka(e,t){const i=t[0],s=e.sourcesByGroup().all().filter((e=>e.zorder()e.zorder()>i.zorder()));if(0===s.length)throw new Error("Cannot bring forward source that alreadt on back");let o=s[0];if((0,zs.isLineTool)(o)){ -const t=e.model().lineToolsGroupModel().groupForLineTool(o);if(null!==t){const e=t.lineTools();o=e[e.length-1]}}return o}class Ba extends Ma{constructor(e,t,i){super(e,i,Da(t,i),Sa.format({title:Ca(i[0])}))}}function Va(e,t){return(0,n.ensureNotNull)(e.paneForSource(t.lineTools()[0]))}class Ra extends Aa{constructor(e,t){super(e,t.lineTools(),ka(Va(e,t),t.lineTools()),ba.format({title:t.name().value()}))}}class Na extends Ma{constructor(e,t){super(e,t.lineTools(),Da(Va(e,t),t.lineTools()),wa.format({title:t.name().value()}))}}const Oa=new dt.TranslatedString("rearrange panes",a.t(null,void 0,i(2618)));class Fa extends st.UndoCommand{constructor(e,t,i){if(super(Oa),this._chartModel=e,this._index=t,(0,tt.isNumber)(i))this._dstIndex=i;else{const s="up"===i?-1:1;this._dstIndex=t+s,e.panes()[this._dstIndex].mode()===zi.PaneMode.Widget&&(this._dstIndex=this._dstIndex+s)}}redo(){this._checkIndices()&&this._chartModel.movePane(this._index,this._dstIndex)}undo(){this._checkIndices()&&this._chartModel.movePane(this._dstIndex,this._index)}_checkIndices(){const e=this._chartModel.panes().length;return this._index>=0&&this._index=0&&this._dstIndex{e.setValue(t[i].val),(e.dependents?.()??[]).forEach((e=>Ua(e,t[i].dependenValues)))}))}function ja(e,t){return"string"==typeof t?(0,Wa.propertyByPath)(e,t):t}class Ga extends st.UndoCommand{constructor(e,t,i,s,o=!0){super(i,void 0,o);const n=e.pathToRoot();this._targetObj=(0,Wa.isRootPath)(n)?n:e,this._newValue=t,this._oldValue=e.value(),this._dependentValues=za(e),this._model=s}redo(e){(0,yi.allowSavingDefaults)(!0),ja(e.chartWidgetCollection,this._targetObj).setValue(this._newValue),(0,yi.allowSavingDefaults)(!1),this._model.recalculateAllPanes((0,wi.globalChangeEvent)()),this._model.lightUpdate()}undo(e){(0,yi.allowSavingDefaults)(!0);const t=ja(e.chartWidgetCollection,this._targetObj);t.setValue(this._oldValue),Ua(t,this._dependentValues),(0,yi.allowSavingDefaults)(!1),this._model.recalculateAllPanes((0,wi.globalChangeEvent)()),this._model.lightUpdate()}}class qa extends st.UndoCommand{constructor(e,t,i,s,o,n){super(s),this._prevPriceAxisProps={},this._dependentValues=[],this._intervalChangeWasTracked=!1,this._property=e,this._mainSeries=i,this._value=t,this._model=o,this._chartWidget=n}redo(){const e=this._mainSeries,t=e.properties().childs();this._dependentValues=za(this._property),this._prevResolution=t.interval.value(),this._prevValue=this._property.value(),this._storePriceAxisProps(),(0,yi.allowSavingDefaults)(!0);const i=t.interval.value(),s=this._model.defaultResolutions(),o=(0,ht.getResolutionByChartStyle)(this._value,i,s);de.linking.interval.setValue(o),e.setChartStyleWithIntervalIfNeeded(this._value,o),(0,xt.setLastUsedStyle)(this._value,e.symbolInfo()),(0,xt.preparePriceAxisProperties)(t),(0,yi.allowSavingDefaults)(!1),this._invalidateModel(), -this._chartWidget.screen.show(!0)}undo(){const e=this._mainSeries;(0,yi.allowSavingDefaults)(!0),e.setChartStyleWithIntervalIfNeeded(this._prevValue,this._prevResolution),this._restorePriceAxisProps(),de.linking.interval.setValue(this._prevResolution),Ua(this._property,this._dependentValues),(0,yi.allowSavingDefaults)(!1),this._invalidateModel(),this._chartWidget.screen.show(!0)}_storePriceAxisProps(){const e=this._mainSeries.priceScale();this._prevPriceAxisProps=e.mode()}_restorePriceAxisProps(){this._mainSeries.priceScale().setMode(this._prevPriceAxisProps)}_invalidateModel(){this._model&&(this._model.recalculateAllPanes((0,wi.sourceChangeEvent)(this._model.mainSeries().id())),this._model.lightUpdate())}}const $a=new dt.TranslatedString("change date range",a.t(null,void 0,i(16979)));class Ka extends st.UndoCommand{constructor(e,t){super($a),this._modelsData=[],this._rangeOptions=t,this._modelsData.push({model:e,prevResolution:e.mainSeries().properties().childs().interval.value(),barSpacing:e.timeScale().barSpacing(),rightOffset:e.timeScale().rightOffset(),rangeOptions:e.appliedTimeFrame().value()})}redo(){for(const e of this._modelsData){const t=e.model.mainSeries(),i=t.properties().childs().interval;Re.Interval.isEqual(this._rangeOptions.res,i.value())?t.loadDataTo(this._rangeOptions.val):(t.setDefaultTimeframe(this._rangeOptions.val),t.setSymbolParams({interval:this._rangeOptions.res}))}}undo(){for(const e of this._modelsData){const t=e.model.mainSeries(),i=t.properties().childs().interval;e.prevResolution!==i.value()?(null!==e.rangeOptions&&t.setDefaultTimeframe(e.rangeOptions.val),t.setSymbolParams({interval:e.prevResolution})):null!==e.rangeOptions&&t.loadDataTo(e.rangeOptions.val);const s=e.model.timeScale();s.setBarSpacing(e.barSpacing),s.setRightOffset(e.rightOffset)}}canMerge(e){return e instanceof Ka&&Pr(e._rangeOptions,this._rangeOptions)}merge(e){if(!(e instanceof Ka))throw new Error("Invalid command to merge");this._modelsData=this._modelsData.concat(e._modelsData)}}function Ya(e){return e.properties().visible.value()}function Za(e){return!Ya(e)}class Xa{constructor(e,t,i){this._instanceId=(0,fe.randomHashN)(6),this._onChanged=new ae.Delegate,this._lineToolsSet=new Set,this._lineTools=[...e],this._lineToolsSet=new Set(this._lineTools),this._name=new O.WatchedValue(t),this.id=i||(0,fe.randomHashN)(6)}instanceId(){return this._instanceId}lineTools(){return this._lineTools}name(){return this._name}setName(e){this._doAndFireOnChange((()=>{this._name.setValue(e)}))}isActualSymbol(){return this._lineTools.length>0&&this._lineTools[0].isActualSymbol()&&this._lineTools[0].isActualCurrency()&&this._lineTools[0].isActualUnit()}symbol(){return this._lineTools[0].symbol()}currencyId(){return this._lineTools[0].properties().childs().currencyId.value()??null}unitId(){return this._lineTools[0].properties().childs().unitId.value()??null}sharingMode(){return this._lineTools[0].sharingMode()}share(e){this._lineTools.forEach((t=>t.share(e)))}containsLineTool(e){return this._lineToolsSet.has(e)}addLineTools(e){ -this._doAndFireOnChange((t=>{e.forEach((e=>this._lineToolsSet.add(e))),this._lineTools.push(...e),t.push(...e.map((e=>e.id())))}))}excludeLineTool(e){this._doAndFireOnChange((t=>{this._lineToolsSet.delete(e);const i=this._lineTools.indexOf(e);this._lineTools.splice(i,1),t.push(e.id())}))}excludeLineTools(e){this._doAndFireOnChange((t=>{const i=new Set(e);e.forEach((e=>this._lineToolsSet.delete(e))),this._lineTools=this._lineTools.filter((e=>!i.has(e))),t.push(...e.map((e=>e.id())))}))}state(){return{id:this.id,name:this._name.value(),tools:this._lineTools.map((e=>e.id()))}}visibility(){const e=this._lineTools.some(Ya),t=this._lineTools.some(Za);return e&&!t?"Visible":t&&!e?"Invisible":"Partial"}locked(){const e=this._lineTools.some((e=>e.properties().frozen.value())),t=this._lineTools.some((e=>!e.properties().frozen.value()));return e&&!t?"Locked":t&&!e?"Unlocked":"Partial"}isActualInterval(){const e=this._lineTools.some((e=>e.isActualInterval())),t=this._lineTools.some((e=>!e.isActualInterval()));return e&&!t?"IsActualInterval":t&&!e?"IsNotActualInterval":"Partial"}onChanged(){return this._onChanged}static fromState(e,t){const i=[];for(const s of t.tools){const t=e.dataSourceForId(s);null!==t&&i.push(t)}return i.length>0?new Xa(i,t.name,t.id):null}_doAndFireOnChange(e){const t=[],i=this.visibility(),s=this.locked(),o=this.isActualInterval();e(t),this._onChanged.fire({affectedLineTools:t,visibilityChanged:i!==this.visibility(),lockedChanged:s!==this.locked(),isActualIntervalChanged:o!==this.isActualInterval()})}}class Ja extends st.UndoCommand{constructor(e,t,i){super(i,void 0,!Wr.lineToolsDoNotAffectChartInvalidation),this._model=e,this._groupId=t.id,this._groupName=t.name().value(),this._lineToolsIds=t.lineTools().map((e=>e.id()))}redo(){const e=(0,n.ensureNotNull)(this._model.lineToolsGroupModel().groupForId(this._groupId));this._model.lineToolsGroupModel().removeGroup(e)}undo(){const e=this._lineToolsIds.map((e=>this._model.dataSourceForId(e))),t=new Xa(e,this._groupName,this._groupId);this._model.lineToolsGroupModel().addGroup(t)}}const Qa=new dt.TranslatedString("create line tools group",a.t(null,void 0,i(46219)));class el extends st.UndoCommand{constructor(e,t){super(Qa,void 0,!Wr.lineToolsDoNotAffectChartInvalidation),this._groupId=null,this._model=e,this._sourcesIds=t.map((e=>e.id()))}redo(){const e=this._sourcesIds.map((e=>this._model.dataSourceForId(e))),t=null===this._groupId?void 0:this._groupId;this._groupId=this._model.lineToolsGroupModel().createGroup(e,this._title,t).id}undo(){const e=(0,n.ensureNotNull)(this._model.lineToolsGroupModel().groupForId((0,n.ensureNotNull)(this._groupId)));this._model.lineToolsGroupModel().removeGroup(e)}createdGroupId(){return this._groupId}}const tl=new dt.TranslatedString("add line tool(s) to group {group}",a.t(null,void 0,i(21162)));class il extends st.UndoCommand{constructor(e,t,i){super(tl.format({group:t.name().value()}),void 0,!Wr.lineToolsDoNotAffectChartInvalidation),this._model=e,this._groupId=t.id,this._lineToolsIds=i.map((e=>e.id()))}redo(){const e=(0, -n.ensureNotNull)(this._model.lineToolsGroupModel().groupForId(this._groupId)),t=this._lineToolsIds.map((e=>this._model.dataSourceForId(e)));e.addLineTools(t)}undo(){const e=this._lineToolsIds.map((e=>this._model.dataSourceForId(e)));(0,n.ensureNotNull)(this._model.lineToolsGroupModel().groupForId(this._groupId)).excludeLineTools(e)}}class sl extends st.UndoCommand{constructor(e,t,i,s){super(s,void 0,!Wr.lineToolsDoNotAffectChartInvalidation),this._chartModel=e,this._groupId=t.id,this._oldName=t.name().value(),this._newName=i}redo(){(0,n.ensureNotNull)(this._chartModel.lineToolsGroupModel().groupForId(this._groupId)).setName(this._newName)}undo(){(0,n.ensureNotNull)(this._chartModel.lineToolsGroupModel().groupForId(this._groupId)).setName(this._oldName)}}const ol=new dt.TranslatedString("create line tools group from selection",a.t(null,void 0,i(95394))),nl=new dt.TranslatedString("removing line tools group {name}",a.t(null,void 0,i(41430))),rl=new dt.TranslatedString("add line tool {lineTool} to group {name}",a.t(null,void 0,i(12570))),al=new dt.TranslatedString("make group {group} visible",a.t(null,void 0,i(45987))),ll=new dt.TranslatedString("make group {group} invisible",a.t(null,void 0,i(76709))),cl=new dt.TranslatedString("lock group {group}",a.t(null,void 0,i(20453))),hl=new dt.TranslatedString("unlock group {group}",a.t(null,void 0,i(74590))),dl=new dt.TranslatedString("rename group {group} to {newName}",a.t(null,void 0,i(80491)));class ul{constructor(e){this._environment=e}createGroupFromSelection(){const e=this._environment.model();(0,n.assert)(!e.selection().isEmpty(),"Cannot create group from empty selection");const t=(0,vi.sortSources)(e.selection().lineDataSources());(0,n.assert)(t.length===e.selection().allSources().length,"A group could contain line tools only");const i=t.length>1||null!==this._environment.model().lineToolsGroupModel().groupForLineTool(t[0]),s=t.reduce(((e,t)=>e.zorder()>t.zorder()?e:t),t[0]);let o=s;const r=e.lineToolsGroupModel().groupForLineTool(s);if(null!==r){const e=r.lineTools();o=e[e.length-1]}this._environment.beginUndoMacro(ol);const a=new Map,l=new Set;t.forEach((t=>{const i=this._groupForLineTool(t);if(null===i)return;const s=a.get(i)||[];s.push(t),a.set(i,s);const o=(0,n.ensureNotNull)(e.paneForSource(t));l.add(o)})),(0,n.assert)(l.size<=1,"All selected sources should be on the same pane"),a.forEach(((t,i)=>{const s=new Kr.ExcludeLineToolsFromGroupUndoCommand(e,i,t);this._environment.pushUndoCommand(s)}));const c=new el(e,(0,vi.sortSources)(t));if(this._environment.pushUndoCommand(c),i){const i=new Ia(e,t,o);this._environment.pushUndoCommand(i)}this._environment.endUndoMacro();const h=(0,n.ensureNotNull)(c.createdGroupId());return(0,n.ensureNotNull)(e.lineToolsGroupModel().groupForId(h))}removeGroup(e){const t=this._environment.model(),i=e.lineTools();this._environment.beginUndoMacro(nl.format({name:e.name().value()}));const s=new Ja(t,e,null);this._environment.pushUndoCommand(s);const o=new ea(t,i,null);this._environment.pushUndoCommand(o);const r=t.mainSeries().symbol() -;i.forEach((e=>{null!==e.linkKey().value()&&(0,mt.removeLineTool)({withUndo:!0,model:t,symbol:r,sourceTitle:new dt.TranslatedString(e.name(),e.title(pa.TitleDisplayTarget.DataWindow)),lineToolState:e.state(!1),linkKey:(0,n.ensureNotNull)(e.linkKey().value())})})),this._environment.endUndoMacro()}groups(){return this._environment.model().lineToolsGroupModel().groups()}excludeLineToolFromGroup(e,t){const i=this._environment.model(),s=new Kr.ExcludeLineToolsFromGroupUndoCommand(i,e,[t]);this._environment.pushUndoCommand(s)}addLineToolToGroup(e,t){const i=this._environment.model(),s=i.lineToolsGroupModel().groupForLineTool(t);if(s===e)return;const o=rl.format({lineTool:new dt.TranslatedString(t.name(),t.title(pa.TitleDisplayTarget.StatusLine)),name:e.name().value()});this._environment.beginUndoMacro(o),null!==s&&this._environment.pushUndoCommand(new Kr.ExcludeLineToolsFromGroupUndoCommand(i,s,[t]));if(l.enabled("saveload_separate_drawings_storage")){const s=e.sharingMode().value();t.sharingMode().value()!==s&&this._environment.pushUndoCommand(new SetLineSharingModeUndoCommand(t,s,i,null))}this._environment.pushUndoCommand(new il(i,e,[t])),this._environment.endUndoMacro()}bringToFront(e){const t=this._environment.model(),i=new Pa(t,e.lineTools());this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])}sendToBack(e){const t=this._environment.model(),i=new xa(t,e.lineTools());this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])}bringForward(e){const t=this._environment.model(),i=new Na(t,e);this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])}sendBackward(e){const t=this._environment.model(),i=new Ra(t,e);this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])}insertAfter(e,t){const i=this._environment.model();let s;if(t instanceof Xa){const e=t.lineTools();s=e[e.length-1]}else s=t;const o=new Ia(i,e.lineTools(),s);this._environment.pushUndoCommand(o),this._environment.emitEvent("changeZOrder",[e.lineTools()])}insertBefore(e,t){const i=this._environment.model();let s;if(t instanceof Xa){s=t.lineTools()[0]}else s=t;const o=new La(i,e.lineTools(),s);this._environment.pushUndoCommand(o),this._environment.emitEvent("changeZOrder",[e.lineTools()])}availableZOrderOperations(e){const t=this._environment.model(),i=e.lineTools(),s=i[0],o=i[i.length-1],r=(0,n.ensureNotNull)(t.paneForSource(i[0])).sourcesByGroup().allExceptSpecialSources(),a=r[0],l=r[r.length-1];return{bringForwardEnabled:o!==l,bringToFrontEnabled:o!==l,sendBackwardEnabled:s!==a,sendToBackEnabled:s!==a}}setGroupVisibility(e,t){const i=(t?al:ll).format({group:e.name().value()}),s=this._environment.model();this._environment.beginUndoMacro(i),e.lineTools().forEach((e=>{const i=e.properties().visible,o=new Ga(i,t,null,s,!Wr.lineToolsDoNotAffectChartInvalidation);this._environment.pushUndoCommand(o)})),this._environment.endUndoMacro()}setGroupLock(e,t){const i=(t?cl:hl).format({group:e.name().value() -}),s=this._environment.model();this._environment.beginUndoMacro(i),e.lineTools().forEach((e=>{const i=e.properties().frozen,o=new Ga(i,t,null,s,!Wr.lineToolsDoNotAffectChartInvalidation);this._environment.pushUndoCommand(o)})),this._environment.endUndoMacro()}setGroupName(e,t){const i=this._environment.model(),s=dl.format({group:e.name().value(),newName:t}),o=new sl(i,e,t,s);this._environment.pushUndoCommand(o)}canBeGroupped(e){const t=this._environment.model();return new Set(e.map((e=>t.paneForSource(e)))).size<=1}_groupForLineTool(e){return this._environment.model().lineToolsGroupModel().groups().find((t=>t.containsLineTool(e)))||null}}var _l=i(61710);const pl=new dt.TranslatedString("apply study template {template}",a.t(null,void 0,i(69604)));function ml(e){for(const t of e.panes)for(const e of t.sources)if((0,wt.isMainSeriesState)(e))return e.id;return null}class gl extends st.UndoCommand{constructor(e,t,i){super(pl.format({template:i})),this._newSymbolParams={},this._model=e,this._templateContent=function(e,t){const i=(0,Qe.default)({},e),s=(0,n.ensureNotNull)(ml(i));for(const e of i.panes){e.mainSourceId===s&&(e.mainSourceId=t);for(const i of e.sources)if(i.id===s){i.id=t;const o=e=>{const i=e.indexOf(s);-1!==i&&e.splice(i,1,t)};if(e.leftAxisesState&&e.rightAxisesState?(e.leftAxisesState.forEach((e=>o(e.sources))),e.rightAxisesState.forEach((e=>o(e.sources)))):(o(e.leftAxisSources),o(e.rightAxisSources)),e.overlayPriceScales){const i=e.overlayPriceScales[s];i&&(delete e.overlayPriceScales[s],e.overlayPriceScales[t]=i)}}else i.ownerSource===s&&(i.ownerSource=t)}return i}(t,e.mainSeries().id()),this._initialState=e.studyTemplate(!0,!0,!0);const s=e.mainSeries();t.symbol&&(this._newSymbolParams={symbol:t.symbol,currency:t.currency??null,unit:t.unit??null}),t.interval&&(this._newSymbolParams.interval=t.interval,this._newSymbolParams.style=(0,xt.getChartStyleByResolution)(t.interval,s.style())),this._initialSymbolParams={symbol:s.symbol(),currency:s.currency(),unit:s.unit(),interval:s.interval(),style:s.style()},this._initialState=e.studyTemplate(),this._initialGroupsState=e.lineToolsGroupModel().state()}redo(){this._model.mainSeries().setSymbolParams(this._newSymbolParams);const e=this._merge(this._templateContent).filter(zs.isLineTool);this._model.lineToolsGroupModel().removeLineTools(e);const t=this._model.mainSeries().properties();(0,xt.preparePriceAxisProperties)(t),this._model.recalcVisibleRangeStudies(Co.RecalcVisibleRangeStudiesReason.StudyCreation),this._model.setShouldBeSavedEvenIfHidden(!0)}undo(){this._model.mainSeries().setSymbolParams(this._initialSymbolParams),this._merge(this._initialState)}_merge(e){const t=e.version||0,i=this._model,s=i.mainSeries();(0,n.assert)(s.id()===ml(e)),s.priceScale().properties().childs().lockScale.setValue(!1);const o=i.panes(),r=[],a=s.properties().childs().tpoStyle.childs(),l=e.panes.reduce(((e,t)=>{const i=t.sources.find((e=>(0,wt.isMainSeriesState)(e)));if(i&&i.state&&18===i.state.style){const e=i.state.tpoStyle.summary.visible -;return i.state.tpoStyle.summary.visible=!1,e}return e}),void 0)??false,c=s.properties().childs().volFootprintStyle.childs(),h=e.panes.reduce(((e,t)=>{const i=t.sources.find((e=>(0,wt.isMainSeriesState)(e)));if(i&&i.state&&17===i.state.style){const e=i.state.volFootprintStyle.showSummary;return i.state.volFootprintStyle.showSummary=!1,e}return e}),void 0)??false,d=s.style();18===d?a.summary.childs().visible.setValue(!1):17===d&&c.showSummary.setValue(!1);for(let e=o.length;e--;){const t=o[e],i=t.containsMainSeries(),s=t.dataSources();for(let e=s.length;e--;){const t=s[e];(!i||((0,Ws.isStudy)(t)||(0,Ws.isStudyStub)(t))&&t.isRemovedByStudyTemplates())&&r.push(t)}}i.resetDeferredStudies();const u=Gr(i,r,!0);for(let e=0;ee.zorder-t.zorder));for(let e=0;e-1,a=r?o[e]:i.createPane(e);r&&t<3&&(0,_l.reorderDataSourcesStateZOrder)(n.sources),a.restoreState({state:n,withData:!1,version:t}),null!==a.mainDataSource()||i.removePane(a)}return i.syncLollipopSources(),s.priceScale().setMode({autoScale:!0}),18===d?a.summary.childs().visible.setValue(l):17===d&&c.showSummary.setValue(h),i.startNotStartedStudies(),i.recalculateAllPanes((0,wi.globalChangeEvent)()),i.fullUpdate(),u}}const fl=(0,ne.getLogger)("Chart.ChartUndoModel");var yl;!function(e){e[e.PasteYCoordOffset=-40]="PasteYCoordOffset"}(yl||(yl={}));const vl=new dt.TranslatedString("paste drawing",a.t(null,void 0,i(62192)));class Sl extends st.UndoCommand{constructor(e,t,i,s,o){super(vl,void 0,!Wr.lineToolsDoNotAffectChartInvalidation),this._needCopyToOtherCharts=!1,this._sourceState=null,this._actionSourceWasSent=!1,this._model=e,this._clipboardData=t,this._paneIndex=this._model.panes().indexOf(i||(0,n.ensureNotNull)(this._model.paneForSource(this._model.mainSeries()))),this._pasteWithData=!!s,this._keepZIndex=!!o}redo(){const e=this._model.panes()[this._paneIndex],t=(0,n.ensureNotNull)(e.clipboardLineToolOwnerSource(this._clipboardData.source.id)),i=t===this._model.mainSeries();let s;null===this._sourceState&&(this._sourceState=this._getSourceState(t,i)),this._actionSourceWasSent||(s="Paste",this._actionSourceWasSent=!0);const o=(0,n.ensureNotNull)(e.restoreLineTool({state:this._sourceState,withData:this._pasteWithData,keepZOrder:this._keepZIndex,ownerSource:t,actionSource:s}));(0,n.ensureNotNull)(t.priceScale()).addDataSource(o),this._clipboardData.centeredOnChart&&o.centerPosition&&o.centerPosition(),o.restoreFixedPoint(),o.createServerPoints(),this._needCopyToOtherCharts=Boolean(i&&o.isSynchronizable()&&0!==o.sharingMode().value()),this._model.setShouldBeSavedEvenIfHidden(!0)}undo(){if(!this._sourceState)return void fl.logError("This command was never executed - nothing to undo");const e=this.source();this._clipboardData.centeredOnChart&&(this._clipboardData.centeredOnChart=!1,this._sourceState.points=e.normalizedPoints()), -this._model.removeSource(e)}source(){return(0,n.ensureNotNull)(this._model.dataSourceForId((0,n.ensureNotNull)(this._sourceState).id))}needCopyToOtherCharts(){return this._needCopyToOtherCharts}_getSourceState(e,t){const i=(0,tt.clone)(this._clipboardData.source);delete i.state.symbol,t?(null!=i.linkKey||void 0!==i.sharingMode&&0!==i.sharingMode)&&(i.linkKey=(0,fe.randomHash)()):(i.linkKey=null,i.sharingMode=0);const s=(0,n.ensureNotNull)(e.priceScale()),o=this._model,{symbol:r,currencyId:a,unitId:l}=this._clipboardData.source.state,c=(0,n.ensureNotNull)(e.symbolSource());let h=!1;!c.symbolSameAsCurrent(r)||(null!==a?a!==(0,xt.symbolCurrency)(c.symbolInfo(),void 0,!0):c.isConvertedToOtherCurrency())||(null!==l?l!==(0,xt.symbolUnit)(c.symbolInfo(),this._model.unitConversionEnabled()):c.isConvertedToOtherUnit())||((0,Lr.isActingAsSymbolSource)(e)?h=!0:(0,Ws.isStudy)(e)&&(h=Boolean(e.metaInfo().is_price_study))),i.state.currencyId=o.currencyConversionEnabled()&&c.isConvertedToOtherCurrency()?c.currency():null,i.state.unitId=o.unitConversionEnabled()&&c.isConvertedToOtherUnit()?c.unit():null;const d=e=>{const t=e.x*o.timeScale().width(),i=e.y*s.height()-40;return new Vt.Point(t,i)},u=(0,n.ensureNotNull)(e.firstValue());if(this._model.id()===this._clipboardData.modelId||!h){for(let e=0;e{(0,n.ensureNotNull)(this._chartModel.dataSourceForId(t)).setCurrency(e)})),this._chartModel.selectionMacro((e=>{e.clearSelection()})),this._showFade&&this._chartModel.undoModel().loadingScreen().show(!0)}}class wl extends st.UndoCommand{constructor(e,t,i,s){super(s),this._newSourcesUnits=new Map,this._oldSourcesUnits=new Map,this._showFade=!1,this._chartModel=e;const o=e.mainSeries();for(const e of t.seriesLikeSources()){if(!e.isVisible()||!e.isActingAsSymbolSource().value())continue;const t=i||(0,xt.symbolOriginalUnit)((0,n.ensureNotNull)(e.symbolInfo()),this._chartModel.unitConversionEnabled());this._newSourcesUnits.set(e.id(),t),this._oldSourcesUnits.set(e.id(),e.unit()), -this._showFade=this._showFade||e===o&&e.unit()!==t}}redo(){this._applyUnits(this._newSourcesUnits)}undo(){this._applyUnits(this._oldSourcesUnits)}_applyUnits(e){e.forEach(((e,t)=>{(0,n.ensureNotNull)(this._chartModel.dataSourceForId(t)).setUnit(e)})),this._chartModel.selectionMacro((e=>{e.clearSelection()})),this._showFade&&this._chartModel.undoModel().loadingScreen().show(!0)}}class Cl extends ia{constructor(e,t,i,s){super(e,t,s),this._sourcePaneRemoved=!1,this._targetPaneIndex=e.panes().indexOf(i)}redo(){const e=this._chartModel.panes()[this._initialPaneIndex],t=this._chartModel.panes()[this._targetPaneIndex],i=e!==t,s=this._targetPriceScale(t),o=(0,n.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),r=this._chartModel.children(o,!0,!0);for(const e of r)i?(this._chartModel.detachSource(e),t.addDataSource(e,s,!1)):t.move(e,s);i?(this._sourcePaneRemoved=this._chartModel.detachSource(o),t.addDataSource(o,s,!1)):t.move(o,s);const a=t.priceScalePosition(s);t.movePriceScale(s,a,this._targetPriceScaleIndex(o)),this._chartModel.fullUpdate()}undo(){this._sourcePaneRemoved&&this._chartModel.createPane(this._initialPaneIndex);const e=this._chartModel.panes()[this._initialPaneIndex],t=e!==this._chartModel.panes()[this._targetPaneIndex],i=(0,n.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId));let s=e.getPriceScaleById(this._initialPriceScaleId);null===s&&(s=e.createPriceScaleAtPosition(this._initialPriceScalePosition,this._initialPriceScaleIndex));const o=this._chartModel.children(i,!0,!0);for(const i of o)t?(this._chartModel.detachSource(i),e.addDataSource(i,s,!1)):e.move(i,s);t?(this._chartModel.detachSource(i),e.addDataSource(i,s,!1)):e.move(i,s);const r=(0,n.ensureNotNull)(i.priceScale());r.restoreState(this._originalPriceScaleState()),r.setHeight(e.height()),this._chartModel.fullUpdate()}}class Tl extends Cl{constructor(e,t,i,s,o){super(e,t,i,o),this._targetPriceScalePosition=s}_targetPriceScale(e){const t=e.createPriceScaleAtPosition(this._targetPriceScalePosition);return t.restoreState(this._newPriceScaleState("overlay"===this._targetPriceScalePosition)),t.setHeight(e.height()),t}_targetPriceScaleIndex(e){return e===this._chartModel.mainSeries()?0:void 0}}class Pl extends Cl{constructor(e,t,i,s,o){super(e,t,i,o),this._targetPriceScaleId=s.id()}_targetPriceScale(e){return(0,n.ensureNotNull)(e.getPriceScaleById(this._targetPriceScaleId))}_targetPriceScaleIndex(e){}}class xl extends st.UndoCommand{constructor(e,t,i,s){super(e),this._charts=new Map,this._firstRedo=!0,this._creationTime=performance.now(),this._linkingGroupIndex=s.linkingGroupIndex().value(),this._charts.set(s,{sourceId:t.id(),newSymbolParams:i,prevSymbolParams:t.symbolParams(),showFade:this._showFade(t,s),chartWidget:s})}redo(){this._firstRedo||(0,it.muteLinkingGroup)(this._linkingGroupIndex,!0),this._charts.forEach((e=>{const t=this._symbolSource(e).setSymbolParams(e.newSymbolParams);e.showFade&&e.chartWidget.screen.show(!0,t)})),this._firstRedo||(0,it.muteLinkingGroup)(this._linkingGroupIndex,!1),this._firstRedo=!1}undo(){(0, -it.muteLinkingGroup)(this._linkingGroupIndex,!0),this._charts.forEach((e=>{const t=this._symbolSource(e).setSymbolParams(e.prevSymbolParams);e.showFade&&e.chartWidget.screen.show(!0,t)})),(0,it.muteLinkingGroup)(this._linkingGroupIndex,!1)}canMerge(e){if(!(e instanceof xl)||e._linkingGroupIndex!==this._linkingGroupIndex||!this._containsMainSeriesOnly()||!e._containsMainSeriesOnly()||e._creationTime-this._creationTime>500)return!1;for(const[t]of e._charts)if(this._charts.has(t))return!1;return!0}merge(e){if(e instanceof xl)for(const[t,i]of e._charts)this._charts.set(t,i)}_showFade(e,t){return e===t.model().mainSeries()}_symbolSource(e){return(0,n.ensureNotNull)(e.chartWidget.model().model().dataSourceForId(e.sourceId))}_containsMainSeriesOnly(){for(const[e,t]of this._charts)if(t.sourceId!==e.model().mainSeries().id())return!1;return!0}}const Ml=new dt.TranslatedString("change symbol",a.t(null,void 0,i(35400)));class Il extends xl{constructor(e,t,i){super(Ml,e,{symbol:t,currency:null,unit:null},i),this._symbol=t}canMerge(e){return e instanceof Il&&e._symbol===this._symbol&&super.canMerge(e)}}var Al=i(90054);const Ll=(0,ne.getLogger)("Chart.ChartUndoModel"),kl=new dt.TranslatedString("paste indicator",a.t(null,void 0,i(1064)));class El extends st.UndoCommand{constructor(e,t,i){super(kl),this._sourceState=null,this._model=e,this._clipboardData=t,this._paneId=i}redo(){if(!this._sourceState){const e=(0,Al.default)(this._clipboardData.source);e.id=(0,fe.randomHashN)(6),this._sourceState=e}let e,t;e=this._paneId?(0,n.ensureNotNull)(this._model.paneForId(this._paneId)):this._sourceState.metaInfo.is_price_study?(0,n.ensureNotNull)(this._model.paneForSource(this._model.mainSeries())):this._model.createPane();const i=!e.mainDataSource();this._sourceState.zorder=e.newStudyZOrder();const s=(0,n.ensureNotNull)(e.restoreStudy(this._sourceState,!1));i||(t=this._sourceState.metaInfo.is_price_study?t=this._model.mainSeries().priceScale():this._paneId?e.findSuitableScale(s):e.defaultPriceScale(),t!==s.priceScale()&&e.move(s,t)),(0,Ws.isStudy)(s)&&s.start()}undo(){if(null===this._sourceState)return void Ll.logError("This command was never executed - nothing to undo");const e=(0,n.ensureNotNull)(this._model.dataSourceForId(this._sourceState.id));this._model.removeSource(e)}state(){return this._sourceState}}class Dl extends st.UndoCommand{constructor(e,t,i,s,o){super(null,!1),this._model=e,this._paneA=t,this._paneB=i,this._prevStretchA=s,this._currStretchA=o}redo(){const e=this._paneA.stretchFactor()+this._paneB.stretchFactor();this._paneA.setStretchFactor(this._currStretchA),this._paneB.setStretchFactor(e-this._currStretchA),this._model.fullUpdate()}undo(){const e=this._paneA.stretchFactor()+this._paneB.stretchFactor();this._paneA.setStretchFactor(this._prevStretchA),this._paneB.setStretchFactor(e-this._prevStretchA),this._model.fullUpdate()}}const Bl=new dt.TranslatedString("move",a.t(null,void 0,i(98277)));class Vl extends st.UndoCommand{constructor(e,t,i,s){super(Bl,!1),this._endEvent=null,this._model=e,this._sourceId=t.id(), -this._itemIndex=i,this._startEvent=s}move(e){this._endEvent=e,this._move(e)}hasChanges(){return null!==this._endEvent}undo(){this._move(this._startEvent)}redo(){this._move((0,n.ensureNotNull)(this._endEvent))}_move(e){const t=(0,n.ensureNotNull)(this._model.dataSourceForId(this._sourceId));(0,n.assert)(void 0!==t.moveItem,'The method "moveItem" is not defined'),t.moveItem&&t.moveItem(new Vt.Point(e.localX,e.localY),this._itemIndex,new To.EnvironmentState(e))}}class Rl extends st.UndoCommand{constructor(e){const{chartModel:t,studyMetaInfo:i,inputs:s,props:o,addAsOverlay:n,parentSources:r,preferredPriceScale:a,allowChangeCurrency:l,allowChangeUnit:c,paneSize:h,targetZOrder:d,studyId:u,targetScaleMode:_,undoText:p}=e;super(p??null),this._paneState=null,this._studyInserResult=null,this._additionalStudiesInsertResults=[],this._chartModel=t,this._studyMetaInfo=i,this._props=o,this._addAsOverlay=n,this._parentIds=r.map((e=>e.id())),this._inputs=s,this._targetZOrder=d,this._preferredPriceScale=a,this._allowChangeCurrency=l,this._allowChangeUnit=c,this._paneSize=h,this._studyId=u??null,this._targetScaleMode=_??null}redo(){const e=this._parentIds.map((e=>this._chartModel.dataSourceForId(e)));this._studyInserResult=this._chartModel.insertStudyWithParams(this._studyMetaInfo,this._inputs,this._targetZOrder,this._props,this._addAsOverlay,e,this._preferredPriceScale,this._allowChangeCurrency,this._allowChangeUnit,this._paneSize,this._targetScaleMode??void 0,this._studyId??void 0),this._studyInserResult.study.then((e=>{if(this._studyId=e.id(),e.childStudyByRebind().subscribe(null,(()=>(0,re.trackEvent)("SOS","Apply SOS","Rebind SOS"))),this._chartModel.setShouldBeSavedEvenIfHidden(!0),null!==this._paneState){(0,n.ensureNotNull)(this._chartModel.paneForSource(e)).restoreState({state:this._paneState,withData:!1,version:this._chartModel.version()}),this._paneState=null}}))}undo(){const e=(0,n.ensureNotNull)(this._studyInserResult),t=e.entityId();let i=null,s=null;if(null!==t){i=(0,n.ensureNotNull)(this._chartModel.dataSourceForId(t));const o=e.originalScaleMode();null!==o&&i.priceScale()?.setMode(o),(0,Lr.isSymbolSource)(i)&&i.symbolResolved().unsubscribeAll(this),s=(0,n.ensureNotNull)(this._chartModel.paneForSource(i)).state()}else e.cancel();this._studyInserResult?.cancel();for(const e of this._additionalStudiesInsertResults){const t=e.entityId();null!==t?this._chartModel.removeSource((0,n.ensureNotNull)(this._chartModel.dataSourceForId(t))):e.cancel()}this._additionalStudiesInsertResults=[],null!==i&&this._chartModel.removeSource(i)&&(this._paneState=s)}insertedStudy(){return(0,n.ensureNotNull)(this._studyInserResult)}_createCopiesOfNewFundamentalForAllStocks(e){}_createCopiesOfExistingFundamentalsForNewStock(e){}}class Nl extends st.UndoCommand{constructor(e,t,i,s){super(i),this._newMode=e,this._priceScaleId=t.id(),this._model=s,this._oldMode=t.mode()}redo(){this._applyMode(this._newMode)}undo(){this._applyMode(this._oldMode)}_applyMode(e){const t=this._findPriceScaleById();null!==t&&((0,yi.allowSavingDefaults)(!0),t.setMode(e),(0, -yi.allowSavingDefaults)(!1),this._model&&(this._model.recalculateAllPanes((0,wi.viewportChangeEvent)()),this._model.lightUpdate()))}_findPriceScaleById(){const e=this._model.panes();for(let t=0;t{const t=(0,Ws.useSameColorRotationComparator)(e);return this._chartModel.dataSources().filter((i=>(0,Ws.isStudy)(i)&&t(e,i.metaInfo()))).length},this._chartModel=e}getColorRotator(e){if(this._rotators.has(e)){const t=this._rotators.get(e);if(void 0!==t)return t}const t=this._createColorRotator(e);return this._rotators.set(e,t),t}_createColorRotator(e){const t=()=>this._calcDefaultColorsOffset(e);switch((0,Ws.studyColorRotationMode)(e)){case"sexyColors":return new Ul(t,zl);case"loop":return new Ul(t);case"shift":return new jl(t,this._chartModel.getStudyShiftColorStartOffset());case null:case"noRotations":return null}}} -function ql(e){return(0,zs.isLineTool)(e)&&e.boundToSymbol()||!1}class $l{constructor(){this._items=[],this._set=new Set,this._dataSourcesCache=null,this._customSourcesCache=null,this._lineSourcesCache=null}isEmpty(){return 0===this._items.length}add(e){if(this._items.length>0&&!ql(this._items[0])&&this.clear(),ql(e)){const t=(0,Pt.lowerbound)(this._items,e,((e,t)=>e.zorder()!(0,Po.isDataSource)(e)))),this._customSourcesCache}checkLineToolSelection(){this._items.forEach((e=>(0,zs.isLineTool)(e)&&e.calcIsActualSymbol())),this._items=this._items.filter((e=>!(0,zs.isLineTool)(e)||e.isActualSymbol())),this._invalidateCache()}remove(e){this._items=this._items.filter((t=>t!==e)),this._set.delete(e),this._invalidateCache()}clear(){this._items=[],this._set.clear(),this._invalidateCache()}_invalidateCache(){this._customSourcesCache=null,this._dataSourcesCache=null,this._lineSourcesCache=null}}var Kl,Yl,Zl=i(23502);!function(e){e[e.BorderSize=1]="BorderSize"}(Kl||(Kl={})),function(e){e[e.AdditionalInnerPadding=4]="AdditionalInnerPadding",e[e.HorzPadding=4]="HorzPadding",e[e.VertPadding=2.5]="VertPadding",e[e.LineSpacing=2]="LineSpacing"}(Yl||(Yl={}));class Xl{constructor(e){this._rendererOptions={borderSize:1,additionalPaddingInner:0,fontSize:NaN,font:"",color:"",paneBackgroundColor:"",paddingBottom:0,paddingInner:0,paddingOuter:0,paddingTop:0,lineSpacing:0},this._chartModel=e}options(){const e=this._rendererOptions,t=this._chartModel.properties().childs(),i=t.scalesProperties.childs().fontSize.value();return e.fontSize!==i&&(e.fontSize=i,e.font=(0,si.makeFont)(i,m.CHART_FONT_FAMILY,""),e.paddingTop=i/12*2.5,e.paddingBottom=i/12*2.5,e.paddingInner=i/12*4,e.additionalPaddingInner=i/12*4,e.paddingOuter=i/12*4,e.lineSpacing=i/12*2),e.color=t.scalesProperties.childs().textColor.value(),e.paneBackgroundColor=t.paneProperties.childs().background.value(),this._rendererOptions}}var Jl=i(43229),Ql=i(57511);const ec=(0,yi.extractThemedColors)(ms.lightTheme.content.sessions,ms.darkTheme.content.sessions);const tc=["graphics","sessionHighlight.backgrounds.preMarket.visible","sessionHighlight.backgrounds.preMarket.available","sessionHighlight.backgrounds.postMarket.visible","sessionHighlight.backgrounds.postMarket.available","sessionHighlight.backgrounds.electronic.visible","sessionHighlight.backgrounds.electronic.available","sessionHighlight.vertLines.sessBreaks.available"] -;class ic extends yi.DefaultProperty{constructor(e){super({defaultName:"sessions",themedColors:ec,excludedDefaultsKeys:[...tc],excludedStateKeys:[...tc],excludedTemplateKeys:[...tc]}),this._symbolInfo=e,this._symbolInfo.subscribe((()=>this._updateGraphicsProps())),this.hasChild("graphics")||this.addProperty("graphics",{}),this.merge({sessionHighlight:{vertlines:{sessBreaks:{available:!0}},backgrounds:{preMarket:{visible:!0,available:!0},postMarket:{visible:!0,available:!0},electronic:{visible:!0,available:!0},outOfSession:{visible:!0,available:!0}}}}),this._updateGraphicsProps(),this.childs().sessionHighlight.subscribe(this,(()=>{this._updateGraphicsProps()}))}destroy(){this._symbolInfo.release(),super.destroy()}restoreState(e){const t=e.properties;!function(e){const t=e,i="graphics"in e?e.graphics.backgrounds:void 0;if(void 0!==i){const e=(0,n.ensureDefined)(i.outOfSession);e.color===Ql.sessionsPreferencesDefault.sessionHighlight.backgrounds.outOfSession.color||"postMarket"in i?(t.sessionHighlight=t.sessionHighlight??{},t.sessionHighlight.backgrounds=i):(t.sessionHighlight=t.sessionHighlight??{},t.sessionHighlight.backgrounds={...t.sessionHighlight?.backgrounds??{},postMarket:{color:e.color,transparency:e.transparency,visible:!0,available:!0},preMarket:{color:e.color,transparency:e.transparency,visible:!0,available:!0}})}const s="graphics"in e?e.graphics.vertlines:void 0;s&&(t.sessionHighlight??={},t.sessionHighlight.vertlines=s),(0,yi.cleanUpStateKeys)(t,tc)}(t),"graphics"in e.properties&&((0,Qe.default)(e.properties.sessionHighlight,e.properties.graphics),delete e.properties.graphics),this.mergeAndFire(t),this.removeDuplicateProperties()}loadThemeState(e){"graphics"in e&&((0,Qe.default)(e.sessionHighlight,e.graphics),delete e.graphics),this.mergeAndFire(e)}removeDuplicateProperties(){this.hasChild("properties")&&(this.removeProperty("properties"),(0,yi.allowSavingDefaults)(!0),this.fireChanged(),(0,yi.allowSavingDefaults)(!1))}_userSettings(){const e=super._userSettings();return e&&!e.sessionHighlight&&(e.sessionHighlight=e.graphics),delete e?.graphics,e}_updateGraphicsProps(){const e=this._symbolInfo.value();e&&(this.childs().graphics.mergeAndFire(this.childs().sessionHighlight.state()),function(e){const t=e.subsessions?.filter((e=>!e.private)).map((e=>e.id))??[];return"futures"===e.type&&t.includes("regular")&&t.includes("us_regular")}(e)&&((0,n.ensureDefined)(this.childs().graphics.childs().backgrounds).childs().preMarket.mergeAndFire(this.childs().sessionHighlight.childs().backgrounds.childs().electronic.state()),(0,n.ensureDefined)(this.childs().graphics.childs().backgrounds).childs().postMarket.mergeAndFire(this.childs().sessionHighlight.childs().backgrounds.childs().electronic.state())))}}class sc extends Jl.AsyncResourceWrapper{constructor(e,t,i){super(e,(e=>e.destroy())),this._sessionsStateData=null,this._model=t,this._properties=i,t.mainSeries().dataEvents().symbolResolved().subscribe(this,this._updateVisibleOfPreAndPostMarketBackground),this._updateVisibleOfPreAndPostMarketBackground(),e.then((e=>{ -!this._destroyed&&this._sessionsStateData&&(e.restoreStateData(this._sessionsStateData),this._sessionsStateData=null)}))}destroy(){this._model.mainSeries().dataEvents().symbolResolved().unsubscribeAll(this),super.destroy()}properties(){return this._properties}applyOverrides(e){(0,h.applyPropertiesOverrides)(this._properties.childs().sessionHighlight,void 0,!1,e,"sessions");const t=this.get();t&&this._model.updateSource(t)}state(e){const t={properties:this._properties.state()};return e&&(t.data=this.get()?.stateData()??this._sessionsStateData??void 0),t}restoreState(e,t){if(e.oldState&&(e=function(e,t){const i={properties:{graphics:e.state.graphics}};return void 0!==e.data&&void 0!==e.metaInfo&&t&&(i.data={metaInfo:e.metaInfo,graphics:e.data.graphics}),i}(e,t)),this._properties.restoreState(e),this._updateVisibleOfPreAndPostMarketBackground(),this._sessionsStateData=null,void 0!==e.data&&t){const t=this.get();t?t.restoreStateData(e.data):this._sessionsStateData=e.data}}_updateVisibleOfPreAndPostMarketBackground(){const e=this._model.mainSeries().symbolInfo();if(e){const t=this._properties.childs().sessionHighlight.childs(),{preMarket:i,postMarket:s,electronic:o,outOfSession:n}=t.backgrounds.childs(),{sessBreaks:r}=t.vertlines.childs(),a=e.subsession_id,l=a&&(0,xt.isRegularSessionId)(a,e),c=(0,xt.symbolHasPreOrPostMarket)(e),h=!1;i.childs().available.setValue(c&&!l),s.childs().available.setValue(c&&!l),o.childs().available.setValue(h&&!l),n.childs().available.setValue((c||h)&&!l),r.childs().available.setValue(!0)}}}var oc=i(55114);const nc="symbolWatermark",rc={ticker:!1,interval:!1,description:!1,custom:!1,replay:!0,color:""},ac="rgba(80, 83, 94, 0.25)",lc=["rgba(80, 83, 94, 0.20)","rgba(80, 83, 94, 0.30)"];function cc(){const e=d.getJSON(nc)||{};return{...rc,...hc(e)}}function hc(e){const{color:t,visibility:i,...s}=e,o={...s};return void 0!==i&&(o.ticker=s.ticker??i,o.interval=s.interval??i,o.description=s.description??i,o.custom=s.custom??i),(0,et.default)(t)&&t!==ac&&(o.color=t),o}class dc extends Ps.Property{constructor(e,t){super(e),this._defaultColors=t}value(e){const t=super.value();return void 0===e||t&&t.length>0?t:this._getDefaultColor(e)}_getDefaultColor(e){const[t,i]=this._defaultColors;return e===$s.StdTheme.Light?t:i}}const uc=(0,s.default)((()=>{const{color:e,...t}=cc(),i=new Ps.Property(t,(0,oc.createPropertySchema)(rc));return i.addChild("color",new dc(e,lc)),d.onSync.subscribe(null,(()=>i.mergeAndFire(cc()))),i.subscribe(null,(()=>d.setJSON(nc,i.state()))),i}));var _c=i(59332),pc=i(19e3),mc=i(75641),gc=i(88987);const fc=768;var yc,vc=i(20820);!function(e){e[e.LineOffset=4]="LineOffset",e[e.LinePadding=8]="LinePadding"}(yc||(yc={}));class Sc extends vc.MediaCoordinatesPaneRenderer{constructor(){super(...arguments),this._data=null,this._widthCache=new Qt.TextWidthCache}setData(e){this._data=e}hitTest(e){return null}_drawImpl(e){if(!this._data)return;const{lines:t,color:i}=this._data,{context:s,mediaSize:{width:o,height:n}}=e;let r=0;const a=[],l=t.filter((e=>!!e.text)),c=l.length;for(let e=0;eo?o/d:1;a.push(u),r+=n*u+4}let h=Math.max((n-r)/2,0);s.fillStyle=i;for(let e=0;e({text:e.text,font:(0,si.makeFont)(e.fontSize,Ic),lineHeight:e.lineHeight,vertOffset:e.vertOffset})));return void this._renderer.setData({color:Ac(this._watermark.properties().childs().color,n),lines:t??[]})}let h=a.name;if(/QUANDL/.test(a.exchange)){const e=h.split(/\//);e.length&&(h=e[e.length-1])}const d={description:a.description,short_description:a.short_description,pro_name:a.pro_name,short_name:a.name,local_description:a.local_description,language:a.language},u=[e?h:null,t?(0,mc.translatedIntervalString)(r.interval()):null].filter(tt.notNull),_=[{text:h?u.join(", "):""},{text:i&&(0,pc.getTranslatedSymbolDescription)(d)||""},{text:"",icon:kc}].filter((e=>e.text.length>0)).map((({text:e,icon:t})=>({text:e,icon:t,getFontMetrics:Ec})));this._renderer.setData({color:Ac(this._watermark.properties().childs().color,n),lines:_})}}const kc=(0,_c.default)((function(e,t){return t?e?{path:xc,width:44,paddingRight:12}:{path:Mc,width:28,paddingRight:8}:e?{path:Pc,width:56,paddingRight:16}:{path:Mc,width:28,paddingRight:12}}),((e,t)=>`${e}-${t}`));const Ec=(0,_c.default)((function(e,t){const[i,s,o]=Bc[t?e?2:3:e?0:1];return{font:(0,si.makeFont)(i,Ic),lineHeight:s,vertOffset:o}}),((e,t)=>`${e}-${t}`));var Dc;!function(e){e[e.FirstLine=0]="FirstLine",e[e.OtherLines=1]="OtherLines", -e[e.FirstLineMobile=2]="FirstLineMobile",e[e.OtherLinesMobile=3]="OtherLinesMobile"}(Dc||(Dc={}));const Bc={0:[80,80,6],1:[36,44,8],2:[48,48,4],3:[28,36,6]},Vc="symbolWatermark";class Rc extends bi.DataSource{constructor(e){super(),this._updateSource=()=>{this._model.updateSource(this)},this._model=e,this._properties=uc(),(0,h.applyDefaultsOverrides)(this._properties,void 0,!1,Vc),this._properties.subscribe(this,this._updateSource),this._model.backgroundTheme().subscribe(this._updateSource),this._paneView=new Lc(e,this)}destroy(){this._model.backgroundTheme().unsubscribe(this._updateSource),this._properties.unsubscribe(this,this._updateSource),super.destroy()}model(){return this._model}name(){return"watermark"}properties(){return this._properties}restorePropertiesDefaults(){uc().mergeAndFire(rc)}applyOverrides(e){(0,h.applyPropertiesOverrides)(this._properties,void 0,!1,function(e){const{visibility:t,...i}=e,s={...i};return void 0!==t&&(s.ticker=t,s.interval=t,s.description=t,s.custom=t),s}(e),Vc)}paneViews(){return[this._paneView]}updateAllViews(e){super.updateAllViews(e),this._paneView.update()}contextMenuStatName(){return"WatermarkContextMenu"}}var Nc,Oc=i(38486),Fc=i(79603);!function(e){e[e.StepForChangeValue=.1]="StepForChangeValue",e[e.MinValue=1e-7]="MinValue",e[e.MaxValue=99999999]="MaxValue"}(Nc||(Nc={}));class Wc extends Fc.PropertyBase{constructor(e){super(),this._model=e}destroy(){this._listeners.destroy()}getStepChangeValue(){return.1}getMinValue(){return 1e-7}getMaxValue(){return 99999999}value(){return this._model.mainSeriesScaleRatio()}setValue(e,t){(e!==this.value()||t)&&(this._model.setMainSeriesScaleRatio(e),this.fireChanged())}setValueSilently(e){e!==this.value()&&this._model.setMainSeriesScaleRatio(e)}state(){return null}clone(){return new Wc(this._model)}storeStateIfUndefined(){return!0}weakReference(){return(0,Oc.weakReference)(this)}ownership(){return(0,Oc.ownership)(this)}}var Hc=i(18113),zc=i(28450);class Uc{constructor(e,t){this._map1=new Map,this._map2=new Map,this._getter1=e,this._getter2=t}add(e){const t=this._getter1(e),i=this._getter2(e);this._map1.set(t,e),this._map2.set(i,t)}getByKey1(e){return this._map1.get(e)??null}getByKey2(e){const t=this._map2.get(e);return void 0===t?null:this._map1.get(t)??null}removeByKey1(e){const t=this._map1.get(e);void 0!==t&&(this._map1.delete(e),this._map2.delete(this._getter2(t)))}removeByKey2(e){const t=this._map2.get(e);void 0!==t&&(this._map2.delete(e),this._map1.delete(t))}}var jc,Gc=i(27593),qc=i(6652);function $c(e,t,i){return i.hasDataSource(t)?Zc(t,i)===e:!!i.isMainPane().value()&&Zc(i.model().mainSeries(),i)===e}!function(e){e.Trading="trading",e.Drawing="drawing",e.DrawingForAllSymbols="drawingsForAllSymbols",e.Phantom="phantom",e.RestRowSources="restRowSources",e.LegendViewSources="legendViewSources",e.LeftPriceScale="leftPriceScale",e.RightPriceScale="rightPriceScale",e.OverlayPriceScale="overlayPriceScale",e.MultipaneSources="multipane",e.AllWithoutMultipane="allWithoutMultipane", -e.AllWithoutMultipaneWithHidden="allWithoutMultipaneWithHidden",e.PlotSource="plotSource",e.ObjectTree="objectTree",e.HitTest="hitTest",e.General="general",e.Price="price",e.ExceptSpecial="exceptSpecial",e.AllSorted="allSorted",e.VisibleSorted="visibleSorted"}(jc||(jc={}));const Kc=new Map([["price",e=>(0,An.isPriceDataSource)(e)],["trading",e=>(0,zs.isTrading)(e)],["drawing",e=>(0,zs.isLineTool)(e)&&!(0,zs.isTrading)(e)&&!e.isPhantom()],["drawingsForAllSymbols",e=>(0,zs.isLineTool)(e)&&!(0,zs.isTrading)(e)&&!e.isPhantom()],["phantom",e=>(0,zs.isLineTool)(e)&&e.isPhantom()],["restRowSources",e=>!(0,zs.isLineTool)(e)&&!(0,zs.isTrading)(e)],["legendViewSources",(e,t)=>t.hasDataSource(e)&&((0,An.isPriceDataSource)(e)||(0,Us.isStudyLineTool)(e))],["leftPriceScale",$c.bind(null,"left")],["rightPriceScale",$c.bind(null,"right")],["overlayPriceScale",$c.bind(null,"overlay")],["multipane",(e,t)=>!t.hasDataSource(e)],["allWithoutMultipane",(e,t)=>t.hasDataSource(e)],["allWithoutMultipaneWithHidden",(e,t)=>t.hasDataSource(e)],["plotSource",(e,t)=>(0,qc.isSeries)(e)||(0,Ws.isStudy)(e)&&t.hasDataSource(e)&&!e.isSpeciallyZOrderedSource()],["objectTree",(e,t)=>{if((0,zs.isLineTool)(e)){const i=e.targetSignature().value();if(null!==i)return t.hasDataSourceWithSignature(i)}return t.hasDataSource(e)}]]),Yc=new Map([["price","visibleSorted"],["trading","visibleSorted"],["drawing","visibleSorted"],["drawingsForAllSymbols","allSorted"],["phantom","visibleSorted"],["restRowSources","visibleSorted"],["legendViewSources","visibleSorted"],["leftPriceScale","visibleSorted"],["rightPriceScale","visibleSorted"],["overlayPriceScale","visibleSorted"],["multipane","visibleSorted"],["allWithoutMultipane","visibleSorted"],["allWithoutMultipaneWithHidden","allSorted"],["plotSource","visibleSorted"],["objectTree","visibleSorted"]]);function Zc(e,t){const i=e.priceScale();return null===i?"overlay":t.priceScalePosition(i)}function Xc(e){let t=null;return{sources:e,hasSource:i=>(null===t&&(t=new Map(e.map((e=>[e.id(),e])))),t.has(i.id()))}}class Jc{constructor(e){this._groupedSources=new Map,this._sources=null,this._pane=e}clear(){this._groupedSources.clear(),this._sources=null}destroy(){this.clear()}all(){return this._groupedSources.has("visibleSorted")||this._sortSources(),(0,n.ensureDefined)(this._groupedSources.get("visibleSorted")).sources}allIncludingHidden(){return this._groupedSources.has("allSorted")||this._sortSources(),(0,n.ensureDefined)(this._groupedSources.get("allSorted")).sources}allWithoutMultipane(){return this._getSourcesByGroupType("allWithoutMultipane")}allWithoutMultipaneWithHidden(){return this._getSourcesByGroupType("allWithoutMultipaneWithHidden")}objectTreeSources(){return this._getSourcesByGroupType("objectTree")}hasObjectTreeSource(e){return this._getGroupedSourcesByGroupType("objectTree").hasSource(e)}allExceptSpecialSources(){if(!this._groupedSources.has("exceptSpecial")){const e=this.allIncludingHidden().filter((e=>!e.isSpeciallyZOrderedSource()));this._groupedSources.set("exceptSpecial",Xc(e))}return(0, -n.ensureDefined)(this._groupedSources.get("exceptSpecial")).sources}tradingSources(){return this._getSourcesByGroupType("trading")}priceSources(){return this._getSourcesByGroupType("price")}plotSources(){return this._getSourcesByGroupType("plotSource")}lineSources(){return this._getSourcesByGroupType("drawing")}hasLineSource(e){return this._getGroupedSourcesByGroupType("drawing").hasSource(e)}lineSourcesForAllSymbols(){return this._getSourcesByGroupType("drawingsForAllSymbols")}phantomSources(){return this._getSourcesByGroupType("phantom")}allExceptLineAndTradingSources(){return this._getSourcesByGroupType("restRowSources")}hitTestSources(){if(!this._groupedSources.has("hitTest")){const e=this.allExceptLineAndTradingSources().concat(this.lineSources());this._groupedSources.set("hitTest",Xc((0,vi.sortSources)(e,this._pane)))}return(0,n.ensureDefined)(this._groupedSources.get("hitTest")).sources}generalSources(){if(!this._groupedSources.has("general")){const e=this.allExceptLineAndTradingSources().concat(this.lineSources());this._groupedSources.set("general",Xc((0,vi.sortSources)(e,this._pane)))}return(0,n.ensureDefined)(this._groupedSources.get("general")).sources}leftPriceScalesSources(){return this._getSourcesByGroupType("leftPriceScale")}rightPriceScalesSources(){return this._getSourcesByGroupType("rightPriceScale")}overlayPriceScaleSources(){return this._getSourcesByGroupType("overlayPriceScale")}multipaneSources(){return this._getSourcesByGroupType("multipane")}legendViewSources(){return this._getSourcesByGroupType("legendViewSources")}_getSourcesByGroupType(e){return this._getGroupedSourcesByGroupType(e).sources}_getGroupedSourcesByGroupType(e){const t=(0,n.ensureDefined)(Yc.get(e));return this._groupedSources.has(t)?this._groupedSources.has(e)||this._groupSources(e):(this._sortSources(),this._groupSources(e)),(0,n.ensureDefined)(this._groupedSources.get(e))}_sortSources(){null===this._sources&&(this._sources=this._pane.dataSources());const e=this._pane.model().multiPaneSources(this._pane),t=(0,vi.sortSources)(this._sources.concat(e),this._pane),i=t.filter((e=>!(0,zs.isLineTool)(e)||e.isActualSymbol()&&e.isActualCurrency()&&e.isActualUnit()));this._groupedSources.set("allSorted",Xc(t)),this._groupedSources.set("visibleSorted",Xc(i))}_groupSources(e){const t=(0,n.ensureDefined)(Yc.get(e)),i=Kc.get(e);if(void 0!==i){const s=(0,n.ensureDefined)(this._groupedSources.get(t)).sources.filter((e=>i(e,this._pane)));this._groupedSources.set(e,Xc(s))}}}var Qc=i(24062),eh=i(52945);function th(e,t,i){const s=(0,xt.symbolUnitConvertibleGroupsIfExist)(e,!0);if(null!==s)return s;const o=i.unitGroupById(t);return null===o?[]:[o]}function ih(e,t,i,s){let o=null;if(i.unitConversionEnabled()&&(0,Lr.isSymbolSource)(e)){const n=i.availableUnits(),r=t.unit(n),a=e.unit(),l=null===a?[]:th(e.symbolInfo(),a,n);null!==r&&null!==r.selectedUnit&&!r.allUnitsAreOriginal&&r.selectedUnit!==a&&(s&&null===a||null!==a&&n.convertible(a,l))&&(o=r.selectedUnit)}return o}var sh=i(60521);function oh(e,t,i){const s=e.div(t).toNumber() -;return Math.abs(Math.round(s)-s)100)throw new Error("something wrong with base")}}}tickSpan(e,t,i){const s=0===this._base?0:1/this._base,o=Math.min(1e-14,(e-t)/1e3);let n=Math.pow(10,Math.max(0,Math.ceil((0,fo.log10)(e-t))));if(!isFinite(n))return 1e305;let r=0,a=this._integralDividers[0];for(;;){const e=(0,fo.greaterOrEqual)(n,s,o)&&n>s+o,t=(0,fo.greaterOrEqual)(n,i*a,o),l=(0,fo.greaterOrEqual)(n,1,o),c=new sh.Big(n).div(a),h=0===s||oh(c,s,o);if(!(e&&t&&l&&h))break;n=c.toNumber(),a=this._integralDividers[++r%this._integralDividers.length]}if(n<=s+o&&(n=s),n=Math.max(1,n),this._fractionalDividers.length>0&&(0,fo.equal)(n,1,o))for(r=0,a=this._fractionalDividers[0];;){const e=(0,fo.greaterOrEqual)(n,i*a,o)&&n>s+o,t=new sh.Big(n).div(a),l=0===s||oh(t,s,o);if(!e||!l)break;n=t.toNumber(),a=this._fractionalDividers[++r%this._fractionalDividers.length]}return n}}class lh{constructor(e,t,i,s){this._marks=null,this._priceScale=e,this._base=t,this._coordinateToLogicalFunc=i,this._logicalToCoordinateFunc=s}base(){return this._base}setBase(e){if(e<0)throw new Error("base < 0");this._base=e}tickSpan(e,t,i=0){if(e{const r=o.tickSpan(e,t,n);return r>i?Math.min(r,s):s}),1/0);return r>0&&isFinite(r)?r:e-t}rebuildTickMarks(){this._marks=null}marks(){return null===this._marks&&(this._marks=this._rebuildTickMarksImpl()),this._marks}_fontHeight(){return this._priceScale.fontSize()}_tickMarkHeight(){return Math.ceil(2.5*this._fontHeight())}_rebuildTickMarksImpl(){const e=this._priceScale,t=[],i=e.mainSource();if(e.isEmpty()||!e.hasCalculatedPriceRange()||null===i)return t;let s=i.firstValue();null===s&&(s=0);const o=e.height(),n=this._coordinateToLogicalFunc(o-1,s),r=this._coordinateToLogicalFunc(0,s),a=Math.max(n,r),l=Math.min(n,r);if(a===l)return t;let c=this.tickSpan(a,l),h=a%c;h+=h<0?c:0;const d=a>=l?1:-1;let u=null;const _=e.formatter();let p=NaN;for(let i=a-h;i>l;i-=c){i===p&&(c=this.tickSpan(a,l,c)),p=i;const o=this._logicalToCoordinateFunc(i,s);null!==u&&Math.abs(o-u){const e=this.mainSource();if(e&&e.model()){const t=e.model().paneForSource(e);t&&e.model().updatePane(t)}})),this._scalesProperties.subscribe(this,(()=>{this._marksCache=null})),this._properties.childs().lockScale.subscribe(this,this._updateResetAvailableValue),this._properties.childs().autoScale.subscribe(this,this._updateResetAvailableValue),this._updateResetAvailableValue(),this.setId((0,fe.randomHash)())}id(){return this._id}setId(e){this._id=e}isLog(){return this._properties.childs().log.value()}isPercentage(){return this._properties.childs().percentage.value()}isInverted(){return this._properties.childs().isInverted.value()}isIndexedTo100(){return this._properties.childs().indexedTo100.value()}isAutoScale(){return this._properties.childs().autoScale.value()&&!this.isLockScale()}isLockScale(){return this._properties.childs().lockScale.value()}isRegular(){return!this.isPercentage()&&!this.isLog()&&!this.isIndexedTo100()}isScaleSeriesOnly(){return this._scaleSeriesOnly}properties(){return this._properties}height(){return this.m_height}setHeight(e){this.m_height!==e&&(this.m_height=e,this._invalidateInternalHeightCache(),this._marksCache=null)}internalHeight(){if(this._internalHeightCache)return this._internalHeightCache -;const e=this.height()-this.topPixelMargin()-this.bottomPixelMargin();return this._internalHeightCache=e,e}fontSize(){return this._scalesProperties.childs().fontSize.value()}priceRange(){return this._makeSureItIsValid(),this._priceRange}setPriceRange(e,t,i){if(!(e instanceof Qc.PriceRange))throw new TypeError("incorrect price range");const s=this._priceRange;if(!t&&Qc.PriceRange.compare(s,e))return;const o=null!==this._maxPriceRange&&this._maxPriceRange.containsStrictly(e),n=null!==this._minPriceRange&&e.containsStrictly(this._minPriceRange);this.isLockScale()&&!t&&(o||n)||(this._marksCache=null,this._priceRange=e,i||this._priceRangeChanged.fire(s,e),this.updateAllViews((0,wi.viewportChangeEvent)()))}setMinPriceRange(e){this._minPriceRange=e}setMaxPriceRange(e){this._maxPriceRange=e}recalculatePriceRangeOnce(){this._recalculatePriceRangeOnce=!0}priceRangeShouldBeRecalculatedOnce(){if(!this._recalculatePriceRangeOnce||this.isLockScale())return!1;const e=this.mainSource();return null!==e&&e.priceRangeReady()}priceRangeChanged(){return this._priceRangeChanged}mode(){const e=this._properties.childs();return{autoScale:e.autoScale.value(),lockScale:e.lockScale.value(),percentage:e.percentage.value(),indexedTo100:e.indexedTo100.value(),log:e.log.value()}}setMode(e){const t={},i=this.mode(),s=this._properties.state();let o=null;void 0!==e.autoScale&&e.autoScale!==s.autoScale&&(t.autoScale=e.autoScale,this._setAutoScaleValueWithDependentProperties(e.autoScale)),void 0!==e.lockScale&&e.lockScale!==s.lockScale&&(t.lockScale=e.lockScale,this._setLockScaleValueWithDependentProperties(e.lockScale)),void 0!==e.percentage&&e.percentage!==s.percentage&&(t.percentage=e.percentage,this._setPercentageValueWithDependentProperties(e.percentage),this._invalidatedForRange.isValid=!1),void 0!==e.indexedTo100&&e.indexedTo100!==s.indexedTo100&&(t.indexedTo100=e.indexedTo100,this._setIndexedTo100ValueWithDependentProperties(e.indexedTo100),this._invalidatedForRange.isValid=!1),void 0!==e.log&&e.log!==s.log&&(t.log=e.log,this._setLogValueWithDependentProperties(e.log));const n=this._properties.childs();s.log&&!n.log.value()&&(this._canConvertPriceRangeFromLog(this._priceRange)?(o=this._convertPriceRangeFromLog(this._priceRange),null!==o&&this.setPriceRange(o)):n.autoScale.setValue(!0)),!s.log&&n.log.value()&&(o=this._convertPriceRangeToLog(this._priceRange),null!==o&&this.setPriceRange(o)),s.autoScale!==n.autoScale.value()&&n.autoScale.fireChanged(),s.autoScaleDisabled!==n.autoScaleDisabled.value()&&n.autoScaleDisabled.fireChanged(),s.lockScale!==n.lockScale.value()&&n.lockScale.fireChanged(),s.percentage!==n.percentage.value()&&(n.percentage.fireChanged(),this.updateFormatter()),s.indexedTo100!==n.indexedTo100.value()&&(n.indexedTo100.fireChanged(),this.updateFormatter()),s.percentageDisabled!==n.percentageDisabled.value()&&n.percentageDisabled.fireChanged(),s.log!==n.log.value()&&n.log.fireChanged(),s.logDisabled!==n.logDisabled.value()&&n.logDisabled.fireChanged(), -void 0===t.log&&void 0===t.percentage&&void 0===t.lockScale&&void 0===t.autoScale&&void 0===t.indexedTo100||this._modeChanged.fire(i,this.mode())}modeChanged(){return this._modeChanged}isEmpty(){return this._makeSureItIsValid(),0===this.m_height||!this._priceRange||this._priceRange.isEmpty()}hasCalculatedPriceRange(){return this._hasCalculatedPriceRange}canDetachSource(e){return this.m_dataSources.some((t=>t!==e&&(0,An.isPriceDataSource)(t)&&!((0,Ws.isStudy)(t)&&t.isLinkedToSeries())))}updateAllViews(e){const t=this._getSourcesToUpdateViews();for(const i of t)i.updateAllViews(e)}logFormula(){return this._logFormula}state(){const e=this._properties.childs();return{id:this._id,m_priceRange:this.isAutoScale()?null:this.priceRange()?.serialize()||null,m_isAutoScale:this.isAutoScale(),m_isPercentage:e.percentage.value(),m_isIndexedTo100:e.indexedTo100.value(),m_isLog:e.log.value(),m_isLockScale:this.isLockScale(),m_isInverted:this.isInverted(),m_topMargin:this._margins.top,m_bottomMargin:this._margins.bottom,alignLabels:e.alignLabels.value(),logFormula:(0,tt.clone)(this._logFormula),hasCalculatedPriceRange:this._hasCalculatedPriceRange}}restoreState(e){let t=e.m_priceRange;if(void 0===t)throw new TypeError("invalid state");if(void 0===e.m_isAutoScale)throw new TypeError("invalid state");void 0!==e.id&&(this._id=e.id);const i={autoScale:e.m_isAutoScale};void 0!==e.m_isPercentage&&(i.percentage=e.m_isPercentage),void 0!==e.m_isIndexedTo100&&(i.indexedTo100=e.m_isIndexedTo100),void 0!==e.m_isLog&&(i.log=e.m_isLog),void 0!==e.m_isLockScale&&(i.lockScale=e.m_isLockScale),void 0!==e.m_isInverted&&this._properties.childs().isInverted.setValue(e.m_isInverted),this.setMode(i),this._hasCalculatedPriceRange=e.hasCalculatedPriceRange??null!==t,t?(t instanceof Qc.PriceRange||(t=new Qc.PriceRange(t)),this.setPriceRange(t,!0)):this.clearPriceRange(),e.logFormula&&(this._logFormula=e.logFormula),void 0!==e.m_topMargin&&(this._margins.top=e.m_topMargin),void 0!==e.m_bottomMargin&&(this._margins.bottom=e.m_bottomMargin),void 0!==e.alignLabels&&this._properties.childs().alignLabels.setValue(e.alignLabels),this._mainSource=null,this._scaleSeriesOnly=!1}priceToLogical(e){return this.isLog()&&e?(0,eh.toLog)(e,this._logFormula):e}logicalToPrice(e){return this.isLog()?(0,eh.fromLog)(e,this._logFormula):e}positionPercentToCoordinate(e){return this.height()*e}priceToCoordinate(e,t){const i=this._priceToPercentOrIndexedTo100IfNeeded(e,t);return this._logicalToCoordinate(i)}coordinateToPrice(e,t){let i=this._coordinateToLogical(e);return this.isPercentage()?i=(0,eh.fromPercent)(i,t):this.isIndexedTo100()&&(i=(0,eh.fromIndexedTo100)(i,t)),i}mainSource(){if(null!==this._mainSource)return this._mainSource;let e;for(const t of this._priceDataSources){if((0,qc.isSeries)(t)){e=t;break}e||(e=t)}return this._mainSource=e||null,this._correctedMarginsCache=null,this._mainSource}priceToCoordinateFn(e){this._makeSureItIsValid();const t=this.bottomPixelMargin(),i=(0, -n.ensureNotNull)(this.priceRange()),s=i.minValue(),o=i.maxValue(),r=this.internalHeight()-1,a=this.isInverted(),l=r/(o-s),c=this.m_height,h=e=>{const i=t+l*(e-s);return a?i:c-1-i};return this.isPercentage()?t=>h((0,eh.toPercent)(t,e)):this.isIndexedTo100()?t=>h((0,eh.toIndexedTo100)(t,e)):this.isLog()?e=>h((0,eh.toLog)(e,this._logFormula)):e=>h(e)}pricesArrayToCoordinates(e,t,i){this._makeSureItIsValid();const s=this.bottomPixelMargin(),o=(0,n.ensureNotNull)(this.priceRange()),r=o.minValue(),a=o.maxValue(),l=this.internalHeight()-1,c=this.isInverted(),h=l/(a-r);void 0===i&&(i=e.length);const d=this.isPercentage(),u=this.isIndexedTo100(),_=this.isLog(),p=this.m_height;let m,g;for(let o=0;oe?(0,eh.toLog)(e,this._logFormula):e),0===s.length)return;const h="open"in s[0],d="close"in s[0];if(null!==c)for(let e=0;e0){const t=th(u,p,e);c=(0,Pt.intersect)(c,new Set(t))}d+=1,a.add((0,xt.proSymbol)(u,n.symbol()))}if(null!==t)for(const i of this._priceDataSources){if(_.includes(i))continue;const a=i;if(!a.isUnitSource()||!a.isVisible()||a.isFailed())continue;const h=a.unit();if(null===h){t=null;break}s.add(h),u+=1;const d=(0,n.ensureNotNull)(a.symbolSource()),p=d.symbolInfo();if(null===p){t=null;break}if(c.size>0){const t=th(p,h,e);c=(0,Pt.intersect)(c,new Set(t))}if(o.set(h,e.name(h)),r.set(h,e.description(h)),_.includes(d)||(c=new Set),void 0===l)l=h;else if(null!==l&&l!==h){l=null;break}}if(void 0===t)if(0===d&&0===u)t=null;else{t={availableGroups:c,selectedUnit:l||null,units:s,originalUnits:i,symbolSourceCount:d,allUnitsAreOriginal:h,names:o,descriptions:r,symbols:a}}return this._unitCache={value:t, -availableUnitsCount:e.size()},t}measureUnitId(e){if(null!==this._measureUnitIdCache&&e.size()===this._measureUnitIdCache.availableUnitsCount)return this._measureUnitIdCache.value;let t,i;const s=new Map,o=new Map,n=new Set;let r=0;const a=this._seriesLikeSources.filter(Lr.isActingAsSymbolSource);for(const l of a){if(!l.isVisible())continue;const a=l.measureUnitId();if(null===a){t=null;break}n.add(a),s.set(a,e.name(a)),o.set(a,e.description(a)),void 0===i?i=a:null!==i&&i!==a&&(i=null),r+=1}return void 0===t&&(t=0===r?null:{selectedMeasureUnitId:i||null,measureUnitIds:n,names:s,descriptions:o,symbolSourceCount:r}),this._measureUnitIdCache={value:t,availableUnitsCount:e.size()},t}setMargins(e){if(!(0,tt.isNumber)(e.top)||!(0,tt.isNumber)(e.bottom))throw new TypeError("invalid margin");if(e.top<0||e.top>30||e.bottom<0||e.bottom>30)throw new RangeError("invalid margin");this._margins.top===e.top&&this._margins.bottom===e.bottom||(this._margins=e,this._correctedMarginsCache=null,this._invalidateInternalHeightCache(),this._marksCache=null)}topMargin(){return this._correctedMargins().top}bottomMargin(){return this._correctedMargins().bottom}invalidateMargins(){this._correctedMarginsCache=null}topPixelMargin(){return this.isInverted()?this.bottomMargin()*this.height()+this._bottomPixelMargin:this.topMargin()*this.height()+this._topPixelMargin}bottomPixelMargin(){return this.isInverted()?this.topMargin()*this.height()+this._topPixelMargin:this.bottomMargin()*this.height()+this._bottomPixelMargin}marks(){return this.isEmpty()?(this._marksCache=null,[]):(null===this._marksCache&&(this._markBuilder.rebuildTickMarks(),this._marksCache=this._markBuilder.marks(),this._onMarksChanged.fire()),this._marksCache)}onMarksChanged(){return this._onMarksChanged}priceRangeInPrice(){if(this.isEmpty())return null;const e=this.mainSource()?.firstValue()??null;if(null===e)return null;const t=this.height();return{from:this.coordinateToPrice(t-1,e),to:this.coordinateToPrice(0,e)}}setPriceRangeInPrice(e){if(this.isPercentage()||this.isIndexedTo100())return;const t=this.isInverted(),i=t?this.bottomMargin():this.topMargin(),s=t?this.topMargin():this.bottomMargin(),o=this.isLog();let n=o?(0,eh.toLog)(e.from,this._logFormula):e.from,r=o?(0,eh.toLog)(e.to,this._logFormula):e.to;const a=r-n;n+=s*a,r-=i*a,this.setMode({autoScale:!1}),this.setPriceRange(new Qc.PriceRange(n,r)),this._marksCache=null,this._onMarksChanged.fire()}hasMainSeries(){return this._hasSeries}getStudies(){return this.dataSources().filter(Ws.isStudy)}lastSourceRemoved(){return this._lastSourceRemoved}sourcesForAutoscale(){return this._mainSource&&this._scaleSeriesOnly!==this._scalesProperties.childs().scaleSeriesOnly.value()&&(this._sourcesForAutoscale=null),this._sourcesForAutoscale||(this._sourcesForAutoscale=this._recalculateSourcesForAutoscale()),this._sourcesForAutoscale}recalculatePriceRange(e){this._invalidatedForRange={visibleBars:e,isValid:!1}}internalHeightChanged(){return this._internalHeightChanged}orderedSources(){ -if(this._cachedOrderedSoruces)return this._cachedOrderedSoruces;let e=this.m_dataSources.slice();return e=(0,vi.sortSources)(e),this._cachedOrderedSoruces=e,this._cachedOrderedSoruces}invalidateSourcesCache(){this._cachedOrderedSoruces=null,this._sourcesToUpdateViews=null}startScale(e){this.isEmpty()||this.isPercentage()||this.isIndexedTo100()||null!==this._scaleStartPoint||null!==this._priceRangeSnapshot||(this._scaleStartPoint=this.m_height-e,this._priceRangeSnapshot=this.priceRange()?.clone()??null)}scaleTo(e){if(this.isPercentage()||this.isIndexedTo100()||null===this._scaleStartPoint)return;this.setMode({autoScale:!1}),(e=this.m_height-e)<0&&(e=0);let t=(this._scaleStartPoint+.2*(this.m_height-1))/(e+.2*(this.m_height-1));const i=(0,n.ensureNotNull)(this._priceRangeSnapshot).clone();t=Math.max(t,.1),i.scaleAroundCenter(t),this.setPriceRange(i)}endScale(){this.isPercentage()||this.isIndexedTo100()||null!==this._scaleStartPoint&&(this._scaleStartPoint=null,this._priceRangeSnapshot=null)}startTwoPointsScale(e,t){if(this.isEmpty()||this.isPercentage()||this.isIndexedTo100()||null!==this._twoPointsScaleStartPosition)return;const i=Math.min(e,t),s=Math.max(e,t);this._twoPointsScaleStartPosition={topLogical:this._coordinateToLogical(i),bottomLogical:this._coordinateToLogical(s)}}twoPointsScale(e,t){if(this.isPercentage()||this.isIndexedTo100()||null===this._twoPointsScaleStartPosition)return;this.setMode({autoScale:!1});const i=Math.min(e,t),s=Math.max(e,t),{topLogical:o,bottomLogical:n}=this._twoPointsScaleStartPosition,r=this.bottomPixelMargin(),a=this.internalHeight()-1,l=(this._invertedCoordinate(i)-r)/a,c=(n-o)/((this._invertedCoordinate(s)-r)/a-l);if(!Number.isFinite(c))return;const h=o-c*l,d=h+c;this.setPriceRange(new Qc.PriceRange(this.priceToLogical(h),this.priceToLogical(d)))}endTwoPointsScale(){this._twoPointsScaleStartPosition=null}startScroll(e){this.isAutoScale()||null===this._scrollStartPoint&&null===this._priceRangeSnapshot&&(this.isEmpty()||(this._scrollStartPoint=e,this._priceRangeSnapshot=this.priceRange()?.clone()??null))}scrollTo(e){if(this.isAutoScale())return;if(null===this._scrollStartPoint||null===this._priceRangeSnapshot)return;const t=this.priceRange();if(null===t)return;let i=e-this._scrollStartPoint;this.isInverted()&&(i*=-1);const s=i*(t.length()/(this.internalHeight()-1)),o=this._priceRangeSnapshot.clone();o.shift(s),this.setPriceRange(o,!0),this._marksCache=null}endScroll(){this.isAutoScale()||null!==this._scrollStartPoint&&(this._scrollStartPoint=null,this._priceRangeSnapshot=null)}clearPriceRange(){this._priceRange=null,this.recalculatePriceRangeOnce()}isVisible(){return this._isVisible}_addDataSourceImpl(e,t,i){if(t||-1===this.m_dataSources.indexOf(e)){if((0,An.isPriceDataSource)(e)){if(void 0===i?this._priceDataSources.push(e):this._priceDataSources.splice(i,0,e),e.currencyChanged().subscribe(this,(()=>this._currencyCache=null)),e.unitChanged().subscribe(this,(()=>this._unitCache=null)),(0,Lr.isSymbolSource)(e)&&(this._seriesLikeSources.push(e),e.symbolResolved().subscribe(this,(()=>{ -this._currencyCache=null,this._unitCache=null,this._measureUnitIdCache=null,this._updateLogFormula()})),e.isActingAsSymbolSource().subscribe(this._boundOnSourceIsActingAsSymbolSourceChanged),(0,qc.isSeries)(e))){const t=e.properties();this._hasSeries||(t.childs().lockScale&&(this.setMode({lockScale:t.childs().lockScale.value()}),t.removeProperty("lockScale")),t.childs().pnfStyle.hasChild("lockScale")&&t.childs().pnfStyle.removeProperty("lockScale")),this._hasSeries=!0}e.isSpeciallyZOrderedSource()||(this._sourcesThatAffectVisibility.push(e),e.properties().childs().visible.subscribe(this,this._onSourceVisibilityChanged))}(0,Ws.isStudy)(e)&&(e.onIsActualIntervalChange().subscribe(this,this._dropScaleCache),e.onHibernationStateChange().subscribe(this,this._dropScaleCache),e.properties().childs().styles.subscribe(this,this._dropScaleCache),0===this._studiesCount&&(0,mt.hideAllIndicators)().subscribe(this,this._dropScaleCache),this._studiesCount++),(0,zs.isLineTool)(e)&&(0===this._drawingCount&&(0,mt.hideAllDrawings)().subscribe(this,this._dropScaleCache),this._drawingCount++),this.m_dataSources.push(e),this._mainSource=null,this.mainSource()===e&&(this._correctedMarginsCache=null,this._internalHeightCache=null,this._marksCache=null),this._dropScaleCache(),this.updateFormatter(),this._initScaleProperties(),this.invalidateSourcesCache(),this._updateIsVisible(),this._updateLogFormula()}}_recalculateSourcesForAutoscale(){this._mainSource&&(this._scaleSeriesOnly=this._scalesProperties.childs().scaleSeriesOnly.value());const e=this._scaleSeriesOnly&&this._hasSeries;return this.m_dataSources.filter((t=>!(!t.properties().visible.value()&&!(0,qc.isSeries)(t))&&(e?(0,qc.isSeries)(t):(0,Ws.isStudy)(t)?!t.isSourceHidden()&&t.isIncludedInAutoScale():t.isIncludedInAutoScale())))}_updateAutoScaleDisabledProperty(e){const t=this._properties.childs(),i=t.indexedTo100.value()||t.percentage.value()||t.lockScale.value();e?t.autoScaleDisabled.setValueSilently(i):t.autoScaleDisabled.setValue(i)}_setAutoScaleValueWithDependentProperties(e){const t=this._properties.childs();t.autoScale.setValueSilently(e),e&&(t.percentage.setValueSilently(!1),t.indexedTo100.setValueSilently(!1),t.lockScale.setValueSilently(!1),t.logDisabled.setValueSilently(!1)),this._updateAutoScaleDisabledProperty(!0)}_setLockScaleValueWithDependentProperties(e){const t=this._properties.childs();t.lockScale.setValueSilently(e),e&&(t.autoScale.setValueSilently(!1),t.percentage.setValueSilently(!1),t.indexedTo100.setValueSilently(!1),t.log.setValueSilently(!1)),t.percentageDisabled.setValueSilently(e),t.logDisabled.setValueSilently(e),this._updateAutoScaleDisabledProperty(!0)}_setPercentageValueWithDependentProperties(e){const t=this._properties.childs();t.percentage.setValueSilently(e),e&&(t.autoScale.setValueSilently(!0),t.log.setValueSilently(!1),t.lockScale.setValueSilently(!1),t.indexedTo100.setValueSilently(!1)),this._updateAutoScaleDisabledProperty(!0)}_setIndexedTo100ValueWithDependentProperties(e){const t=this._properties.childs();t.indexedTo100.setValueSilently(e), -e&&(t.autoScale.setValueSilently(!0),t.log.setValueSilently(!1),t.lockScale.setValueSilently(!1),t.percentage.setValueSilently(!1)),this._updateAutoScaleDisabledProperty(!0)}_setLogValueWithDependentProperties(e){const t=this._properties.childs();t.log.setValueSilently(e),e&&(t.lockScale.setValueSilently(!1),t.percentage.setValueSilently(!1),t.indexedTo100.setValueSilently(!1)),this._updateAutoScaleDisabledProperty(!0)}_recalculatePriceRangeImpl(){const e=this._invalidatedForRange.visibleBars;if(null===e)return;let t=null;const i=this.sourcesForAutoscale(),s=this.isPercentage(),o=this.isIndexedTo100();let n=0,r=0;const a={targetPriceScale:this,scaleSeriesOnly:this._scaleSeriesOnly};for(const l of i){if(!l.properties().visible.value())continue;const i=l.firstValue();if(null===i||s&&0===i)continue;const c=e.firstBar(),h=e.lastBar(),d=l.autoScaleInfo(c,h,a);let u=d.range;u&&(s?u=(0,eh.toPercentRange)(u,i):o&&(u=(0,eh.toIndexedTo100Range)(u,i)),t=null===t?u:t.merge(u)),void 0!==d.topPixelMargin&&(n=Math.max(n,d.topPixelMargin)),void 0!==d.bottomPixelMargin&&(r=Math.max(r,d.bottomPixelMargin))}(Math.abs(n-this._topPixelMargin)>0||Math.abs(r-this._bottomPixelMargin)>0)&&(this._bottomPixelMargin=r,this._topPixelMargin=n,this._marksCache=null,this._invalidateInternalHeightCache()),t?(this._hasCalculatedPriceRange=!0,t.minValue()===t.maxValue()&&(t=new Qc.PriceRange(t.minValue()-.5,t.maxValue()+.5)),this.setPriceRange(t)):this._priceRange||this.setPriceRange(new Qc.PriceRange(-.5,.5)),this._invalidatedForRange.isValid=!0;const l=this.mainSource();null!==l&&this._recalculatePriceRangeOnce&&(this._recalculatePriceRangeOnce=!l.priceRangeReady())}_makeSureItIsValid(){this._invalidatedForRange.isValid||(this._invalidatedForRange.isValid=!0,this._recalculatePriceRangeImpl())}_invalidateInternalHeightCache(){this._internalHeightCache=null,this._internalHeightChanged.fire()}_coordinateToLogical(e){if(this._makeSureItIsValid(),this.isEmpty())return 0;const t=this._invertedCoordinate(e),i=(0,n.ensureNotNull)(this.priceRange()),s=i.minValue()+(i.maxValue()-i.minValue())*((t-this.bottomPixelMargin())/(this.internalHeight()-1));return this.logicalToPrice(s)}_logicalToCoordinate(e){if(this._makeSureItIsValid(),this.isEmpty())return 0;e=this.priceToLogical(e);const t=(0,n.ensureNotNull)(this.priceRange()),i=this.bottomPixelMargin()+(this.internalHeight()-1)*(e-t.minValue())/(t.maxValue()-t.minValue());return this._invertedCoordinate(i)}_convertPriceRangeFromLog(e){if(null===e)return null;const t=(0,eh.fromLog)(e.minValue(),this._logFormula),i=(0,eh.fromLog)(e.maxValue(),this._logFormula);return new Qc.PriceRange(t,i)}_convertPriceRangeToLog(e){if(null===e)return null;const t=(0,eh.toLog)(e.minValue(),this._logFormula),i=(0,eh.toLog)(e.maxValue(),this._logFormula);return new Qc.PriceRange(t,i)}_canConvertPriceRangeFromLog(e){if(null===e)return!1;const t=(0,eh.fromLog)(e.minValue(),this._logFormula),i=(0,eh.fromLog)(e.maxValue(),this._logFormula);return isFinite(t)&&isFinite(i)}_onSourceVisibilityChanged(){this._dropScaleCache(), -this._updateIsVisible()}_dropScaleCache(){this._sourcesForAutoscale=null,this._currencyCache=null,this._unitCache=null,this._measureUnitIdCache=null}_updateIsVisible(){if(!dh)return void this._isVisible.setValue(!0);const e=this._sourcesThatAffectVisibility.some((e=>e.isVisible()));this._isVisible.setValue(e)}_updateLogFormula(){const e=this.isLog()?this._convertPriceRangeFromLog(this.priceRange()):null,t=this.mainSource();if(null===t)this._logFormula=(0,eh.logFormulaForBase)(null);else{const e=t.base()||null,i=(0,eh.logFormulaForBase)(e);(0,eh.logFormulasAreSame)(i,this._logFormula)||(this._logFormula=i)}e&&this.setPriceRange(this._convertPriceRangeToLog(e))}_invertedCoordinate(e){return this.isInverted()?e:this.height()-1-e}_initScaleProperties(){const e=this.isLockScale(),t=this.properties().childs();e&&(t.percentage.setValue(!1),t.indexedTo100.setValue(!1),t.log.setValue(!1),t.autoScale.setValue(!1)),t.percentageDisabled.setValue(e),t.logDisabled.setValue(e),this._updateAutoScaleDisabledProperty(!1),t.percentage.value()&&(t.log.setValue(!1),t.indexedTo100.setValue(!1)),t.indexedTo100.value()&&(t.log.setValue(!1),t.percentage.setValue(!1))}_correctedMargins(){if(null===this._correctedMarginsCache){const e=this.mainSource();this._correctedMarginsCache=null!==e?e.correctScaleMargins(this._margins):this._margins}return this._correctedMarginsCache}_getSourcesToUpdateViews(){return this._sourcesToUpdateViews||(this._sourcesToUpdateViews=this.m_dataSources.filter((e=>!(0,zs.isLineTool)(e)||e.isActualSymbol()&&e.isActualCurrency()))),this._sourcesToUpdateViews}_mainSourceFormatter(){const e=this.mainSource();return e?.formatter()||_h}_priceToPercentOrIndexedTo100IfNeeded(e,t){return this.isPercentage()?(0,eh.toPercent)(e,t):this.isIndexedTo100()?(0,eh.toIndexedTo100)(e,t):e}_onSourceIsActingAsSymbolSourceChanged(){this._dropScaleCache()}_onIsInvertedChanged(){this._marksCache=null,this._markBuilder.rebuildTickMarks()}_updateResetAvailableValue(){this._resetScaleAvailable.setValue(!this.isLockScale()&&!this.isAutoScale())}}var gh=i(86252);const fh=[],yh=[];class vh{constructor(e){this._studies={},this._deferreds={},this._container=e,fh.push(e),yh.push(this)}add(e,t){this._deferreds[e]&&(this._deferreds[e].resolve(t),delete this._deferreds[e]),this._studies[e]=t}get(e){return this._studies[e]?Promise.resolve(this._studies[e]):(this._deferreds[e]||(this._deferreds[e]=(0,me.createDeferredPromise)()),this._deferreds[e].promise)}delete(e){delete this._studies[e],delete this._deferreds[e]}reset(){const e=fh.indexOf(this._container);~e&&(fh.splice(e,1),yh.splice(e,1))}static instance(e){const t=fh.indexOf(e);return~t?yh[t]:new vh(e)}static ready(){for(const e of yh)if(Object.keys(e._deferreds).length>0)return!1;return!0}}var Sh=i(10544);var bh=i(81922),wh=i(54370),Ch=i(15219);function Th(e){e.wickUpColor=e.wickUpColor??e.wickColor,e.wickDownColor=e.wickDownColor??e.wickColor,delete e.wickColor}function Ph(e){e&&(e.colorType??=co.ColorType.Solid)}const xh=l.enabled("clear_price_scale_on_error_or_empty_bars"),Mh=(0, -ne.getLogger)("Chart.Pane");var Ih;function Ah(e,t,i){e.setMargins({top:t,bottom:i})}!function(e){e[e.DefaultStretchFactor=1e3]="DefaultStretchFactor",e[e.LargePaneSizeRatio=1]="LargePaneSizeRatio",e[e.MediumPaneSizeRatio=.6]="MediumPaneSizeRatio",e[e.SmallPaneSizeRatio=.3]="SmallPaneSizeRatio",e[e.TinyPaneSizeRatio=.15]="TinyPaneSizeRatio"}(Ih||(Ih={}));const Lh="chart.pane";class kh{constructor(e,t,i,s,o){this.m_dataSources=[],this._sourceWatchedValuesSubscriptions=new Map,this.m_mainDataSource=null,this._cachedOrderedSources=new Jc(this),this._sourcesById=new Map,this._priceSourcesById=new Map,this._sourcePropertiesChanged=new ae.Delegate,this._sourcesZOrderChanged=new ae.Delegate,this._tagsChanged=new ae.Delegate,this._stretchFactor=1e3,this._isInInsertManyDataSourcesState=!1,this._lastLineDataSourceZOrder=null,this._rightPriceScales=[],this._leftPriceScales=[],this._lockedPriceScale=null,this._currentPriceScaleRatio=null,this._onPriceScalesChanged=new ae.Delegate,this._isRecalculatingScales=!1,this._priceDataSources=[],this._symbolSources=[],this._studySources=[],this._lollipopDataSources=[],this._symbolSourceResolved=new ae.Delegate,this._symbolSourceResolvingActive=new O.WatchedValue(!1),this._bulkActions={activeCounter:0},this._height=0,this._width=0,this._sizeChanged=new ae.Delegate,this._dataSourcesCollectionChanged=new ae.Delegate,this._dataSourcesZOrdersChanged=new ae.Delegate,this._symbolSourceCollectionChanged=new ae.Delegate,this._priceSourcesCollectionChanged=new ae.Delegate,this._isMainPane=new O.WatchedValue(!1),this._collapsed=new O.WatchedValue(!1),this._resetPriceScalesAvailable=new O.WatchedValue(!1),this._destroyed=new ae.Delegate,this._executionsPositionController=null,this._seriesDisplayError=null,this._onPriceScaleIsVisibleChanged=()=>{this._model.fullUpdate()},this._recalcSymbolSourceResolvingActive=()=>{for(const e of this._symbolSources)if(e.symbolResolvingActive().value())return void this._symbolSourceResolvingActive.setValue(!0);this._symbolSourceResolvingActive.setValue(!1)},this._onSymbolSourceCollectionChanged=()=>{0===this._bulkActions.activeCounter?this._symbolSourceCollectionChanged.fire():this._bulkActions.symbolSourceCollectionChanged=!0},this._onSeriesDisplayError=e=>{if(null!==e){for(const e of this._leftPriceScales)e.clearPriceRange();for(const e of this._rightPriceScales)e.clearPriceRange()}},this._updateResetPriceScalesAvailableValue=()=>{const e=e=>e.resetScaleAvailable().value(),t=this._leftPriceScales.some(e)||this._rightPriceScales.some(e);this._resetPriceScalesAvailable.setValue(t)},this._priceScaleSelectionStrategy=(0,zc.createPriceScaleSelectionStrategy)(i.properties().childs().priceScaleSelectionStrategyName.value()),this._id=s??(0,fe.randomHashN)(6),this._mode=o??zi.PaneMode.Regular,this._timeScale=e,this.m_mainDataSource=null,this._properties=t,this._model=i,this._maximized=(0,ft.combine)((e=>e===this),i.maximizedPane().spawnOwnership()),this._collapsingAvailable=(0, -ft.combine)(((e,t)=>t),this._isMainPane.weakReference(),i.paneCollapsingAvailable().weakReference()),i.properties().childs().priceScaleSelectionStrategyName.subscribe(null,(e=>{this._priceScaleSelectionStrategy=(0,zc.createPriceScaleSelectionStrategy)(e.value()),this._priceScaleSelectionStrategy.apply(this)})),this._timeScale.barSpacingChanged().subscribe(this,(()=>{this.m_mainDataSource===this._model.mainSeries()&&this._recalculatePriceScaleByScaleRatio(this.m_mainDataSource.priceScale())})),xh&&(this._seriesDisplayError=(0,xt.getSeriesDisplayErrorWV)(this._model.mainSeries()),this._seriesDisplayError.subscribe(this._onSeriesDisplayError)),i.onMultipaneSourcesCollectionChanged().subscribe(this,this._invalidateSourcesCache),i.panesCollectionChanged().subscribe(this,this._invalidateSourcesCache),t.childs().topMargin.subscribe(this,this._updateMargins),t.childs().bottomMargin.subscribe(this,this._updateMargins),this._lineToolsByLinkKey=new Uc((e=>e.linkKey().value()),(e=>e.id())),this._updateMargins()}destroy(){if(this._properties.childs().topMargin.unsubscribeAll(this),this._properties.childs().bottomMargin.unsubscribeAll(this),this._model.properties().childs().priceScaleSelectionStrategyName.unsubscribeAll(this),this._timeScale.barSpacingChanged().unsubscribeAll(this),this._leftPriceScales.concat(this._rightPriceScales).forEach((e=>{e.modeChanged().unsubscribeAll(this),e.priceRangeChanged().unsubscribeAll(this),e.internalHeightChanged().unsubscribeAll(this),e.isVisible().unsubscribe(this._onPriceScaleIsVisibleChanged),e.resetScaleAvailable().unsubscribe(this._updateResetPriceScalesAvailableValue)})),this._mode===zi.PaneMode.Regular)for(const e of this.m_dataSources)this.removeSourceFromPriceScale(e),e.destroy&&e.destroy();this._seriesDisplayError?.destroy(),this._model.onMultipaneSourcesCollectionChanged().unsubscribeAll(this),this._model.panesCollectionChanged().unsubscribeAll(this),this._maximized.destroy(),this._collapsingAvailable.destroy(),this._destroyed.fire()}id(){return this._id}mode(){return this._mode}bulkActionMacro(e){this.beginBulkAction(),e(),this.endBulkAction()}beginBulkAction(){this._bulkActions.activeCounter+=1}endBulkAction(){this._bulkActions.activeCounter-=1,this._processAfterBulkAction()}defaultPriceScale(){const e=this.m_mainDataSource?.priceScale()??null;if(null!==e)return e;const t=this.properties().childs().axisProperties.state();return t.autoScale=!0,new mh(this._model.properties().childs().scalesProperties,t)}leftPriceScales(){return this._leftPriceScales}rightPriceScales(){return this._rightPriceScales}visibleLeftPriceScales(){const e=this._model.priceScaleSlotsCount(),t=this._leftPriceScales.filter((e=>e.isVisible().value())),i=this.mainDataSource()?.priceScale();if(t.length>e.left&&i?.isVisible().value()){const s=(0,Pt.moveToHead)(t,i);return s.splice(e.left),s}return t}visibleRightPriceScales(){const e=this._model.priceScaleSlotsCount(),t=this._rightPriceScales.filter((e=>e.isVisible().value())),i=this.mainDataSource()?.priceScale();if(t.length>e.right&&i?.isVisible().value()){ -const s=(0,Pt.moveToHead)(t,i);return s.splice(e.right),s}return t}clearSeries(e){const t=this._model.mainSeries();for(let i=this.m_dataSources.length-1;i>=0;i--)this.m_dataSources[i]===t&&this._removeSourceFromCollections(i,e)}sourcesByGroup(){return this._cachedOrderedSources}dataSourceForId(e){return this._sourcesById.get(e)||null}lineToolByLinkKey(e){return this._lineToolsByLinkKey.getByKey1(e)}changeSourceId(e,t){e===this._model.mainSeries()&&(0,Hc.getPersistentLogger)()?.addPersistentLogEntry(`changeSourceId for series from ${e.id()} to ${t}`,ne.LOGLEVEL.INFO,Lh),(0,n.assert)(this.hasDataSource(e));const i=e.id();e.setId(t),this._sourcesById.delete(i),this._sourcesById.set(t,e),(0,An.isPriceDataSource)(e)&&(this._priceSourcesById.delete(i),this._priceSourcesById.set(t,e))}movePriceScale(e,t,i){const s=this.priceScalePosition(e);if(s!==t)this.removePriceScale(e),this._placePriceScale(e,t,i),e.invalidateMargins(),this._invalidateSourcesCache();else if(void 0!==i&&"overlay"!==s){const t="left"===s?this._leftPriceScales:this._rightPriceScales,o=t.indexOf(e);t.splice(o,1),t.splice(i,0,e)}}mainDataSource(){return this.m_mainDataSource}isEmpty(){return null===this.m_mainDataSource}recalculatePriceScale(e,t){if(!e)return;let i=e.sourcesForAutoscale();if(e===this._model.mainSeries().priceScale()&&(i=[...i,...this._cachedOrderedSources.multipaneSources()]),(e.isAutoScale()||e.priceRangeShouldBeRecalculatedOnce()||null===e.priceRange())&&i.length>0&&!this.timeScale().isEmpty()){const i=e.priceRange(),s=this.timeScale().visibleBarsStrictRange();e.recalculatePriceRange(s),Qc.PriceRange.compare(i,e.priceRange())||e.updateAllViews(t)}}onSourceTagsChanged(){this._tagsChanged.fire()}insertDataSource(e,t,i,s){e.setZorder(i),t||(s=!1,t=this.findSuitableScale(e)),this._addSourceToCollections(e);let o=!1;e===this.model().mainSeries()?(this.m_mainDataSource=this.model().mainSeries(),o=!0):null===this.m_mainDataSource&&(0,An.isPriceDataSource)(e)&&(this.m_mainDataSource=e,o=!0),s||t.addDataSource(e,this._isInInsertManyDataSourcesState),e.setPriceScale(t),t.invalidateMargins(),e.onTagsChanged&&e.onTagsChanged().subscribe(this,this.onSourceTagsChanged),o&&this._mode===zi.PaneMode.Regular&&this._processMainSourceChange(),this._tagsChanged.fire(),(0,An.isPriceDataSource)(e)&&this.recalculatePriceScale(t,(0,wi.sourceChangeEvent)(e.id())),this._invalidateSourcesCache()}addDataSource(e,t,i){let s=e.zorder();i||((0,zs.isLineTool)(e)&&!e.isSpeciallyZOrderedSource()?(s=null!==this._lastLineDataSourceZOrder?this._lastLineDataSourceZOrder+1:this.newLineToolZOrder(),this._isInInsertManyDataSourcesState&&(this._lastLineDataSourceZOrder=s)):(0,Ws.isStudy)(e)&&!e.isSpeciallyZOrderedSource()&&(s=this.newStudyZOrder())),this.insertDataSource(e,t,s)}removeDataSource(e,t=!1,i=!1,s=!1){let o=this.m_dataSources.indexOf(e);if(-1===o)return void Mh.logDebug("removeDataSource: invalid data source");this._removeSourceFromCollections(o,i),e!==this.m_mainDataSource||t||(this.m_mainDataSource=null);const n=e.priceScale();s||this.removeSourceFromPriceScale(e), -e.onTagsChanged&&e.onTagsChanged().unsubscribe(this,this.onSourceTagsChanged),(0,An.isPriceDataSource)(e)&&!t&&this._processMainSourceChange(),(0,Ws.isStudy)(e)&&e.metaInfo().hasForceOverlayPlots()&&this._model.removeMultiPaneSource(e),this._tagsChanged.fire(),n&&(0,An.isPriceDataSource)(e)&&this.recalculatePriceScale(n,(0,wi.sourceChangeEvent)(e.id())),this._invalidateSourcesCache()}hasDataSource(e){return this._sourcesById.has(e.id())}hasDataSourceWithSignature(e){return this._priceDataSources.some((t=>t.signature().value()===e))}hasPriceDataSource(e){return this._priceSourcesById.has(e.id())}dataSources(){return this.m_dataSources}priceDataSources(){return this._priceDataSources}studySources(){return this._studySources}lollipopDataSources(){return this._lollipopDataSources}symbolSources(){return this._symbolSources}replaceSource(e,t,i){const s=this.m_mainDataSource===e,o=i?.replaceSource(e,t);this.removeDataSource(e,s,void 0,o),this.insertDataSource(t,i,e.zorder(),o),this._sourcesById.set(t.id(),t),(0,An.isPriceDataSource)(t)&&this._priceSourcesById.set(t.id(),t),s&&(this.m_mainDataSource=t,this._processMainSourceChange())}findSuitableScale(e,t,i){return this._priceScaleSelectionStrategy.findSuitableScale(this,e,t,i)}createNewPriceScaleIfPossible(){return this._priceScaleSelectionStrategy.createNewPriceScaleIfPossible(this)}canCreateNewPriceScale(){return this._priceScaleSelectionStrategy.canCreateNewPriceScale(this)}isOverlay(e){const t=e.priceScale();return null===t||"overlay"===this.priceScalePosition(t)}recalculate(e){this._leftPriceScales.forEach((t=>this.recalculatePriceScale(t,e))),this._rightPriceScales.forEach((t=>this.recalculatePriceScale(t,e)));for(const t of this.m_dataSources)this.isOverlay(t)&&!(0,zs.isLineTool)(t)&&this.recalculatePriceScale(t.priceScale(),e);this.updateAllViews(e),this._model.updatePane(this)}updateAllViews(e){const t=this._cachedOrderedSources.all();for(const i of t)i.updateAllViews(e);for(const t of this.model().customSources())t.updateViewsForPane(this,e)}updateLollipopViews(e){}priceScalePosition(e){return this._leftPriceScales.includes(e)?"left":this._rightPriceScales.includes(e)?"right":"overlay"}createPriceScaleAtPosition(e,t){const i=this.properties().childs().axisProperties.state();i.autoScale=!0;const s=new mh(this.model().properties().childs().scalesProperties,i);return s.setHeight(this.height()),Ah(s,this._defaultTopMargin(),this._defaultBottomMargin()),this._placePriceScale(s,e,t),s}removePriceScale(e){e.modeChanged().unsubscribeAll(this),e.priceRangeChanged().unsubscribeAll(this),e.internalHeightChanged().unsubscribeAll(this),e.isVisible().unsubscribe(this._onPriceScaleIsVisibleChanged),e.resetScaleAvailable().unsubscribe(this._updateResetPriceScalesAvailableValue),e===this._lockedPriceScale&&(this._lockedPriceScale=null,this._currentPriceScaleRatio=null);const t=this._leftPriceScales.indexOf(e);-1!==t&&(this._leftPriceScales[t].invalidateMargins(),this._leftPriceScales.splice(t,1));const i=this._rightPriceScales.indexOf(e) -;if(-1!==i&&(this._rightPriceScales[i].invalidateMargins(),this._rightPriceScales.splice(i,1)),null===e.mainSource()){const t=e.dataSources().length;0!==t&&Mh.logError("Invalid priceScale state: empty mainSource but non-empty data sources="+t)}this._onPriceScalesChanged.fire(),this._updateResetPriceScalesAvailableValue()}priceScaleIndex(e,t){switch(t){case"left":return this.leftPriceScales().indexOf(e);case"right":return this.rightPriceScales().indexOf(e)}}move(e,t,i){const s=e.priceScale();this.removeSourceFromPriceScale(e),t.addDataSource(e),e.setPriceScale(t),t.invalidateMargins(),this._processMainSourceChange(),this._invalidateSourcesCache(),e.isIncludedInAutoScale()&&(null!==s&&this.recalculatePriceScale(s,(0,wi.sourceChangeEvent)(e.id())),this.recalculatePriceScale(t,(0,wi.sourceChangeEvent)(e.id()))),this._onPriceScalesChanged.fire()}setZOrders(e){e.forEach(((e,t)=>{t.setZorder(e)})),this._invalidateSourcesCache(),this._onDataSourcesZOrdersChanged(),0===this._bulkActions.activeCounter&&this._dataSourcesCollectionChanged.fire(),this.model().fullUpdate()}isMainPane(){return this._isMainPane.readonly()}isLast(){const e=this.model().panes();return e[e.length-1]===this}newStudyZOrder(){return(0,_l.newStudyZOrder)(this._priceDataSources)}newLineToolZOrder(e){return(0,_l.newLineToolZOrder)(this.m_dataSources,e)}model(){return this._model}containsMainSeries(){return this._sourcesById.has(this.model().mainSeries().id())}applyPriceScaleRatio(e,t){null!==this._lockedPriceScale&&this._lockedPriceScale!==e||this._currentPriceScaleRatio===t||!this.isMainPane().value()||null===this._lockedPriceScale&&e!==this.mainDataSource()?.priceScale()||(this._setNewPriceRangeByScaleRatio(e,t,this._mainSourceVisiblePriceRange(e),!0,!0),null!==this._lockedPriceScale?this._tryToApplyNewPriceScaleRatio():e.isLog()||this.model().mainSeriesScaleRatioPropertyOnChanged())}sendToBack(e){const t=this.sourcesByGroup().allExceptSpecialSources();this._batchReorder(e,t[0],_l.moveBeforeSource)}bringToFront(e){const t=this.sourcesByGroup().allExceptSpecialSources();this._batchReorder(e,t[t.length-1],_l.moveAfterSource)}sendBackward(e){const t=this.sourcesByGroup().allIncludingHidden(),i=t.indexOf(e[0]);if(0===i)this.bringToFront(e);else{const s=t[i-1];this.insertBefore(e,s)}}bringForward(e){const t=this.sourcesByGroup().allExceptSpecialSources(),i=t.indexOf(e[e.length-1]);if(i===t.length-1)this.sendToBack(e);else{const s=t[i+1];this.insertAfter(e,s)}}insertAfter(e,t){this._batchReorder(e,t,_l.moveAfterSource)}insertBefore(e,t){this._batchReorder(e,t,_l.moveBeforeSource)}maximized(){return this._maximized}collapsed(){return this._collapsed}collapsingAvailable(){return this._collapsingAvailable}getPriceScaleById(e){const t=this.m_dataSources.find((t=>t.priceScale()?.id()===e));return void 0===t?null:t.priceScale()}priceScaleSelectionStrategy(){return this._priceScaleSelectionStrategy}setPriceScaleSelectionStrategy(e){this._priceScaleSelectionStrategy=e,e.apply(this)}findTargetPriceAxisViews(e,t,i,s){if((0, -Po.isDataSource)(e)&&this.model().paneForSource(e)!==this)return[];const o=e.priceScale();if(t===o)return i;if(null===o)return[];if("overlay"===this.priceScalePosition(o))return t===this.defaultPriceScale()?i:[];const n=this.priceScalePosition(t);if(n!==this.priceScalePosition(o))return[];const r="left"===n?this.leftPriceScales():this.rightPriceScales();return r.indexOf(t)1}properties(){return this._properties}setPriceAutoScale(e,t){e.setMode({autoScale:t}),this.timeScale().isEmpty()||this.recalculatePriceScale(e,(0,wi.viewportChangeEvent)())}state(e){const{withData:t,skipLineToolsFromOtherSymbols:i,wipeSensitiveData:s,skipLineTools:o,skipNonSharedLineTools:n,skipHiddenSources:r,includeSources:a,isStudyTemplate:l}=e??{},c={sources:[],mainSourceId:this.m_mainDataSource?.id(),stretchFactor:this._stretchFactor,leftAxisesState:[],rightAxisesState:[],overlayPriceScales:{},priceScaleRatio:this._currentPriceScaleRatio,isCollapsed:this._collapsed.value(),isMaximized:this._maximized.value(),mode:this._mode},h=new Map,d=new Map,u=e=>{if(h.has(e))return h.get(e);let t=!1;if((0,Ws.isStudy)(e))t=!(e.isVisible()||e.hasChildren()&&e.getAllChildren().some((e=>e.isVisible())));else if((0,zs.isLineTool)(e))if(e.isVisible()){const i=e.ownerSource();t=!!i&&u(i)}else t=!0;return h.set(e,t),t},_=e=>{if(d.has(e))return d.get(e);let a=null;const c=l&&!e.isSavedInStudyTemplates()||!e.state||(0,zs.isLineTool)(e)&&o||r&&u(e)||!e.isSavedInChart(Boolean(t))||!(a=e.state(t,s))||i&&(0,zs.isLineTool)(e)&&e.isActualSymbol&&!e.isActualSymbol()||n&&(0,zs.isLineTool)(e)&&0===e.sharingMode().value()||e.isPhantom()?null:a;return d.set(e,c),c};if(a){c.sources=[];for(let e=0;enull!==d.get(e),m=e=>!o||!(0,zs.isLineTool)(e);c.leftAxisesState=this._leftPriceScales.map((e=>({state:e.state(),sources:e.dataSources().filter(p).filter(m).map((e=>e.id()))}))),c.rightAxisesState=this._rightPriceScales.map((e=>({state:e.state(),sources:e.dataSources().filter(p).filter(m).map((e=>e.id()))}))),c.overlayPriceScales={};for(const e of this.m_dataSources)if(this.isOverlay(e)&&e.isSavedInChart(Boolean(t))){const t=e.priceScale();c.overlayPriceScales[e.id()]=t?.state()??null}return c}restoreState(e){const{state:t,withData:i,version:s,seriesId:o=this._model.mainSeries().id(),settingsMigration:r={},contentOverrides:a,restoreSilently:l,reason:c=0}=e;(0,Hc.getPersistentLogger)()?.addPersistentLogEntry(`Restoring pane with seriesId ${o}`,ne.LOGLEVEL.INFO,Lh),this._mode=t.mode??zi.PaneMode.Regular,t.stretchFactor&&(this._stretchFactor=t.stretchFactor);const d={};if(t.sources){const e=t.sources.filter((e=>!!e&&("MainSeries"===e.type||(!e.points?.some((e=>null===e.time_t||!isFinite(e.time_t)))||(Mh.logNormal("Dropped invalid "+e.type+". Reason: non-numeric point time"),!1))))),n=e.findIndex(wt.isMainSeriesState) -;-1!==n&&this.model().mainSeries().setObsoleteZOrder(e[n].zorder),s<3&&(0,_l.reorderDataSourcesStateZOrder)(e);const h=-1!==this.m_dataSources.indexOf(this._model.mainSeries());this.clearSeries(Boolean(l)),this.m_mainDataSource=null,h&&this._addSourceToCollections(this._model.mainSeries(),l),(()=>{const i=e.find((e=>e.id===t.mainSourceId));if(void 0===i)return void Mh.logWarn("There is no main source with id "+t.mainSourceId+", total sources="+e.length);if(!window.TradingView[i.type]||!(0,Lt.isLineToolName)(i.type))return void Mh.logNormal("The type of main source is not line tool - fix is unnecessary");let s=null;for(const t of e)if(!window.TradingView[i.type]||!(0,Lt.isLineToolName)(t.type)){if(null!==s)return void Mh.logWarn("Pane contains more than 1 possibly main sources - auto fix cannot be applied");s=t}if(null===s)return void Mh.logWarn("Pane contains only line tools - possible we need to remove this pane?");const o=t.mainSourceId;let n=0;t.mainSourceId=s.id,e.forEach((e=>{e.ownerSource===o&&(e.ownerSource=s?.id,n+=1)})),Mh.logNormal("Auto fix broken pane is applied, changed line tools="+n+", changed from="+o+" to="+s.id)})();for(const t of e)if("study_Sessions"===t.type){const e=t;e.oldState=!0,this.model().sessions().restoreState(e,i);break}for(const t of e)"study_Sessions"!==t.type&&(null===this._model.dataSourceForId(t.id)||"MainSeries"===t.type?(d[t.id]=t.ownerSource,(0,wt.isMainSeriesState)(t)?this._restoreMainSeries(t,i,h,r,a,l):(0,wt.isStudyState)(t)?this.restoreStudy(t,i,o,r,l,c):(0,wt.isLineToolState)(t)&&(t.state&&(t.state.zOrderVersion=2),this.restoreLineTool({state:t,withData:i,restoreSilently:l}))):Mh.logError("Duplicate id while restoring pane: "+t.type+","+t.id))}const u=new Set,_=(e,t)=>{e.priceScale()!==t&&(this.removeSourceFromPriceScale(e),e.setPriceScale(t),t.addDataSource(e))},p=(e,i,s)=>{if(u.has(e))return;u.add(e);const o=s.m_showSymbolLabels;void 0!==o&&e===this.model().mainSeries()&&this.model().properties().childs().scalesProperties.childs().showSymbolLabels.setValue(o),this._model.children(e,!0,!0).forEach((e=>{t.overlayPriceScales?.[e.id()]||p(e,i,s)})),_(e,i)},m=e=>{const t=(0,h.defaults)("chartproperties").paneProperties.axisProperties,i=new mh(this.model().properties().childs().scalesProperties,t);return i.restoreState(e.state),i.setHeight(this._height),e.sources.forEach((e=>{const s=this.dataSourceForId(e);s&&p(s,i,t)})),0===i.dataSources().length?null:i},g=e=>e.map(m).filter((e=>null!==e));let f;if(t.leftAxisesState)f=g(t.leftAxisesState);else{const e=m({state:t.leftAxisState,sources:t.leftAxisSources});f=null!==e?[e]:[]}let y;if(this._leftPriceScales.slice().forEach((e=>this.removePriceScale(e))),this._leftPriceScales=[],f.forEach((e=>this._placePriceScale(e,"left"))),t.rightAxisesState)y=g(t.rightAxisesState);else{const e=m({state:t.rightAxisState,sources:t.rightAxisSources});y=null!==e?[e]:[]}this._rightPriceScales.slice().forEach((e=>this.removePriceScale(e))),this._rightPriceScales=[],y.forEach((e=>this._placePriceScale(e,"right"))), -this._currentPriceScaleRatio=t.priceScaleRatio||t.leftPriceScaleRatio||t.rightPriceScaleRatio||null;const v=new Map;for(const e of this.m_dataSources){if(u.has(e))continue;let i;if(t.overlayPriceScales&&t.overlayPriceScales[e.id()]){let s=t.overlayPriceScales[e.id()];v.has(s?.id)?i=v.get(s?.id):(s=(0,n.ensure)(s),i=new mh(this._model.properties().childs().scalesProperties),i.setHeight(this._height),s.m_isAutoScale=!0,s.m_isLog=!1,s.m_isPercentage=!1,s.m_isLockScale=!1,i.restoreState(s),v.set(s.id,i))}else i=new mh(this._model.properties().childs().scalesProperties),i.setHeight(this._height);_(e,i)}for(const e of Object.keys(d)){const t=d[e],i=this.dataSourceForId(e);t&&i&&null===i.ownerSource()&&i.setOwnerSource(this.dataSourceForId(t))}if(t.mainSourceId&&!this.containsMainSeries()&&(this.m_mainDataSource=this.dataSourceForId(t.mainSourceId)),!this.m_mainDataSource)for(const e of this.m_dataSources)if((0,An.isPriceDataSource)(e)){this.m_mainDataSource=e;break}for(const e of this.m_dataSources)(0,zs.isLineTool)(e)?(e.ownerSource()||e.setOwnerSource(this.mainDataSource()),e.isFixed()&&e.restoreFixedPoint()):(0,Ws.isStudy)(e)&&!e.ownerSource()&&e.isLinkedToSeries()&&e.setOwnerSource(this.model().mainSeries());this._collapsed.setValue(t.isCollapsed??!1),t.isMaximized&&this._model.setMaximizedPane(this),this._updateMargins(),this._cachedOrderedSources.clear()}onPriceScalesChanged(){return this._onPriceScalesChanged}setPaneSize(e){let t;switch(e){case"large":t=1;break;case"medium":t=.6;break;case"small":t=.3;break;case"tiny":t=.15;break;default:throw new Error("Unknown size enum value: "+e)}this._stretchFactor=1e3*t}stretchFactor(){return this._stretchFactor}setStretchFactor(e){this._stretchFactor=e}customSources(e){return this.model().customSources(e)}createDrawingsCaches(){Gc.ExecutionsPositionController.recreateOrderedByBarsSourcesCache(this)}clearDrawingCaches(){Gc.ExecutionsPositionController.clearOrderedByBarsSourcesCache()}executionsPositionController(){return this._executionsPositionController||(this._executionsPositionController=new Gc.ExecutionsPositionController(this)),this._executionsPositionController}width(){return this._width}height(){return this._height}setHeight(e){if(this._height!==e&&(this._height=e,this._mode===zi.PaneMode.Regular)){this._leftPriceScales.forEach((t=>t.setHeight(e))),this._rightPriceScales.forEach((t=>t.setHeight(e)));for(let t=0;t(e.paneViews(this)||[]).some((e=>{const s=e.renderer(t);return s&&s.doesIntersectWithBox&&s.doesIntersectWithBox(i,t)}))))}logicalRectToPixels(e){const t=this.defaultPriceScale(),i=this.timeScale(),s=(0,n.ensureNotNull)((0,n.ensureNotNull)(t.mainSource()).firstValue()),o=t.priceToCoordinate(e.p1.price,s),r=i.indexToCoordinate(e.p1.index),a=t.priceToCoordinate(e.p2.price,s),l=i.indexToCoordinate(e.p2.index),c=new Vt.Point(Math.min(r,l),Math.min(o,a)),h=new Vt.Point(Math.max(r,l),Math.max(o,a));return(0,Vt.box)(c,h)}timeScale(){return this._timeScale}restoreLineTool(e){const{withData:t,restoreSilently:i,actionSource:s,ownerSource:o}=e;let{keepZOrder:r,state:a}=e;if((0,Lt.isMtpPredictorToolName)(a.type))return Mh.logWarn(`No longer supported tool ${a.type} is skipped while restoring state`),null;const l=o??(a.ownerSource?this._model.dataSourceForId(a.ownerSource):null);delete a.state.lastUpdateTime,a.state.intervalsVisibilities=(0,bh.mergeIntervalVisibilitiesDefaults)(a.state.intervalsVisibilities),r=void 0===r||r,Sh.LineToolElliott.migrateState(a),function(e){"LineToolGannComplex"!==e.type||void 0!==e.version&&1!==e.version||(e.type="LineToolGannFixed")}(a),Array.isArray(a.positionPercents)&&(a.positionPercents=a.positionPercents[0]);const c=a.type,h=a.id,d=a.state,u=r?a.zorder:this.newLineToolZOrder();(0,n.assert)((0,Lt.isLineToolName)(c),"invalid data source type:"+c+" (expected to be a Line Tool)");let _,p,m=null;if((0,wt.isStudyLineToolState)(a)){m=this._model.isSnapshot()?new Ch.StudyVersioning([],[]):(0,os.studyMetaInfoRepository)().studyVersioning();const e=Ch.StudyVersioning.patchPointsBasedStudyState(a);a=e;const t=new ns.StudyMetaInfo(e.metaInfo);0;const i=m.updateMetaInfo(t)??t;p=(0,zs.createStudyLineToolProperties)(this._model.backgroundTheme().spawnOwnership(),c,t,i,d,m),_=(0,zs.createLineTool)(c,this._model,p,i,!0,void 0,s)}else p=(0,zs.createLineToolProperties)(this._model.backgroundTheme().spawnOwnership(),c,!this._model.readOnly(),d),_=(0,zs.createLineTool)(c,this._model,p,null,!0,void 0,s);_.setId(h),_.linkKey().setValue(a.linkKey||null);a.alertId&&_.canHasAlert();let g=a.indexes??[];if(g=g.slice(0,a.points?.length??g.length),_.isFixed()?void 0!==a.positionPercents?_.restorePositionPercents(a.positionPercents):_.restorePositionPercents({x:.5,y:.5}):a.points&&_.restorePoints(a.points,g,t),(0,zs.isLineTool)(_)&&["LineToolBarsPattern","LineToolCallout","LineToolTrendAngle","LineToolGhostFeed","LineToolParallelChannel"].includes(_.toolname))_.restoreData?.(a);else if(t&&(0, -wt.isStudyLineToolState)(a)&&_.restoreData){const e=a;m&&(e.graphics=Ch.StudyVersioning.patchPointsBasedStudyData(new ns.StudyMetaInfo(e.metaInfo),e.graphics)),_.restoreData?.(e)}const f=null==a.version?1:a.version,y=null==_.version?1:_.version;return f!==y&&_.migrateVersion?.(f,y,{pane:this,model:this._model,properties:p}),void 0!==u&&_.setZorder(u),o&&(0,zs.prepareLineToolPropertiesByOwnerSource)(p,o),_.setOwnerSource(l),_.isFixed()&&_.restoreFixedPoint(),void 0!==a.userEditEnabled&&_.setUserEditEnabled(a.userEditEnabled),void 0!==a.isSelectionEnabled&&_.setSelectionEnabled(a.isSelectionEnabled),this._addSourceToCollections(_,i),this._cachedOrderedSources.clear(),_}restoreStudy(e,t,s,o,n,r){if(t&&void 0===e.data&&void 0===e.nonSeriesData&&void 0===e.indexes)return Mh.logError("Cannot restore (skipping) study without data "+e.id+", "+e.metaInfo.id),null;const l=e.id,c=e.state,h=e.zorder;s=s??this._model.mainSeries().id();const d=(e.parentSources??(e.ownerSource?[e.ownerSource]:[])).filter((e=>e!==s)),u=new ns.StudyMetaInfo(e.metaInfo),_=e.metaInfoPatch?(0,Qe.default)((0,Al.default)(e.metaInfo),e.metaInfoPatch):e.metaInfo;let p=new ns.StudyMetaInfo(_);if(function(e){return"Script$TV_EARNINGS@tv-scripting"===e||"Script$TV_DIVIDENDS@tv-scripting"===e||"Script$TV_SPLITS@tv-scripting"===e||"ESD$TV_EARNINGS@tv-scripting"===e||"ESD$TV_DIVIDENDS@tv-scripting"===e||"ESD$TV_SPLITS@tv-scripting"===e||"Earnings@tv-basicstudies"===e||"Dividends@tv-basicstudies"===e||"Splits@tv-basicstudies"===e||"BarSetContinuousRollDates@tv-corestudies"===e}(p.id)&&!t)return Mh.logNormal("Skipping study "+p.id),null;let m=c;const g=new Zr.StudyStub(this._model,e,p.shortDescription??p.name);g.setId(l),g.setZorder(h);const f=vh.instance(this._model);f.get(l);let y=!1;const v=(i,s,o)=>{if(y&&this._model.dataSourceForId(l)!==g)return;g.setStatus({type:gh.StudyStatusType.Undefined});const n=async n=>{const a=(0,Zl.prepareStudyPropertiesForLoadChart)(p,i,m,o),c=i??p,h=s??u,d=!t&&c.isTVScript&&e.metaInfo.isTVScript&&c._serverMetaInfoVersion!==e.metaInfo._serverMetaInfoVersion,_=await(0,Ws.createStudy)(this._model,a,n,c,h,void 0,r,d);if(_.setId(l),_.setOwnFirstValue(e.ownFirstValue??null),e.customFields&&_.restoreStateCustomFields(e.customFields),t){const t=e,{data:i,nsData:s,indexes:o}=Ch.StudyVersioning.patchStudyData(p,t.data,t.nonSeriesData,t.indexes);_.restoreData(i,s,o)}this._model.replaceStudyStub(g,_),f.add(l,_)};if(d.length>0){const e=d.map((e=>f.get(e)));Promise.all(e).then(n)}else n([])},S=(0,Al.default)(c);let b;if(t){const e=Ch.StudyVersioning.patchPropsStateAndMetaInfo(c,p,{oldShowStudyLastValueProperty:!o?.showStudyLastValueProperty}),t=Ch.StudyVersioning.patchPropsStateAndMetaInfo(S,u,{oldShowStudyLastValueProperty:!o?.showStudyLastValueProperty});b=[Promise.resolve(new ns.StudyMetaInfo(e.metaInfo)),Promise.resolve(new ns.StudyMetaInfo(t.metaInfo))]}else{const e=(0,os.studyMetaInfoRepository)().requestMetaInfo();b=[p,u].map(((i,s)=>e.then((()=>{const e=Ch.StudyVersioning.patchPropsStateAndMetaInfo(0===s?c:S,i,{ -oldShowStudyLastValueProperty:t&&!o?.showStudyLastValueProperty});return m=e.propsState,new ns.StudyMetaInfo(e.metaInfo)}))))}Promise.all(b).then((([e,t])=>{const s=this._model.isSnapshot()?new Ch.StudyVersioning([],[]):(0,os.studyMetaInfoRepository)().studyVersioning();if(this._model.isSnapshot())return void v(e,t,s);const o=[e,t].map(((e,t)=>s.updateMetaInfoAsync(e,1===t))).map((e=>e.sync?Promise.resolve(e.result):e.result));Promise.all(o).then((i=>v(i[0]??e,i[1]??t,s))).catch((e=>{"To use it, ask the author to publish the script."===e?g.setFailed(e,a.t(null,void 0,i(33599))):g.setFailed("error: "+e)}))})).catch((()=>g.setFailed(a.t(null,void 0,i(63183))))),g.setZorder(h);const w=e.metaInfo.linkedToSeries?this._model.mainSeries():d.length?this.dataSourceForId(d[0]):null;return g.setOwnerSource(w),this._addSourceToCollections(g,n),y=!0,this._processMainSourceChange(),this._cachedOrderedSources.clear(),g}clipboardLineToolOwnerSource(e){const t=this.dataSourceForId(e);if(null!==t){const e=t.ownerSource();if(null!==e&&null!==e.firstValue())return e}const i=this.mainDataSource();if(null!==i&&null!==i.firstValue())return i;for(const e of this.dataSources())if((0,An.isPriceDataSource)(e)&&null!==e.firstValue())return e;return null}realignLineTools(e){let t=!1;for(const i of this.m_dataSources)!(0,zs.isLineTool)(i)||void 0!==e&&i?.ownerSource()?.symbolSource()!==e&&(0,Lr.isActingAsSymbolSource)(e)||(i.realign(),i.updateAllViews((0,wi.sourceChangeEvent)(i.id())),t=!0);return t&&this._invalidateSourcesCache(),t}startScalePrice(e,t){e.startScale(t)}scalePriceTo(e,t){e.scaleTo(t),this.updateAllViews((0,wi.viewportChangeEvent)())}endScalePrice(e){e.endScale()}startScrollPrice(e,t){e.startScroll(t)}scrollPriceTo(e,t){e.scrollTo(t),this.updateAllViews((0,wi.viewportChangeEvent)())}endScrollPrice(e){e.endScroll()}resetPriceScale(e){const t=this.timeScale().visibleBarsStrictRange();e.resetScaleAvailable().value()&&e.resetScale(),e.recalculatePriceRange(t),this.updateAllViews((0,wi.viewportChangeEvent)())}resetPriceScalesAvailable(){return this._resetPriceScalesAvailable.readonly()}restorePriceScaleState(e,t){e.restoreState(t),this.updateAllViews((0,wi.viewportChangeEvent)())}beginInsertManyLineDataSources(){this._isInInsertManyDataSourcesState=!0,this._lastLineDataSourceZOrder=null}endInsertManyLineDataSources(){this._isInInsertManyDataSourcesState=!1,this._lastLineDataSourceZOrder=null}removeSourceFromPriceScale(e){const t=e.priceScale();if(null!==t){const i=t.dataSources();i.indexOf(e)>=0&&t.removeDataSource(e),0===i.length&&this.removePriceScale(t)}}_invalidateSourcesCache(){this._cachedOrderedSources.clear(),this._leftPriceScales.forEach((e=>e.invalidateSourcesCache())),this._rightPriceScales.forEach((e=>e.invalidateSourcesCache()))}_processMainSourceChange(){let e=!1;if(null===this.m_mainDataSource)for(const t of this.m_dataSources)if((0,An.isPriceDataSource)(t)&&!this.isOverlay(t)&&(!(0,Ws.isStudy)(t)||!t.isLinkedToSeries())){this.m_mainDataSource=t,e=!0;break}if(this.m_mainDataSource&&e){ -let e=this.m_dataSources.filter(zs.isLineTool);e=(0,vi.sortSources)(e);for(const t of e)this.move(t,(0,n.ensureNotNull)(this.m_mainDataSource.priceScale()),!0)}else if(!this.m_mainDataSource||this.isOverlay(this.m_mainDataSource)&&0===this._nonOverlayPricesSourcesCount()){let e=null;if(this.m_dataSources.includes(this._model.mainSeries()))e=this._model.mainSeries();else for(const t of this.m_dataSources)if((0,An.isPriceDataSource)(t)&&this.isOverlay(t)&&t.showInObjectTree()){e=t;break}if(null!==e){const t=this.m_mainDataSource===e;this.m_mainDataSource=e;const i=this.createNewPriceScaleIfPossible();if(t&&e===this._model.mainSeries()){const t=(0,n.ensureNotNull)(e.priceScale());this._model.children(e,!0,!0).forEach((e=>{this.removeSourceFromPriceScale(e),i.addDataSource(e),e.setPriceScale(i)})),this.removePriceScale(t)}this.move(e,i,!0),this.recalculatePriceScale(e.priceScale(),(0,wi.globalChangeEvent)())}}}_addSourceToCollections(e,t){this.m_dataSources.push(e),this._sourcesById.set(e.id(),e),this._invalidateSourcesCache();const i=()=>{this._sourcePropertiesChanged.fire(e)};if(e.properties().subscribe(this,i),e.zOrderChanged().subscribe(this,(t=>this._sourcesZOrderChanged.fire(e,t))),(0,zs.isLineTool)(e)){e.normalizedPointsChanged().subscribe(this,i),e.fixedPointChanged().subscribe(this,i),e.onIsActualSymbolChange().subscribe(this,(()=>this._invalidateSourcesCache())),e.hasAlert().subscribe(i),e.sharingMode().subscribe(i);const t=()=>{this._lineToolsByLinkKey.removeByKey2(e.id()),this._lineToolsByLinkKey.add(e)};e.linkKey().subscribe(t),this._sourceWatchedValuesSubscriptions.set(e.id(),{linkKeyCallback:t,commonCallback:i}),this._lineToolsByLinkKey.add(e)}const s=(0,Lr.isSymbolSource)(e)?e:null;(0,An.isPriceDataSource)(e)&&(this._priceSourcesById.set(e.id(),e),e.currencyChanged().subscribe(this,(()=>this._invalidateSourcesCache())),e.unitChanged().subscribe(this,(()=>this._invalidateSourcesCache())),this._priceDataSources.push(e),(0,Ws.isStudy)(e)&&this._studySources.push(e),this._onPriceSourcesCollectionChanged(),null!==s&&(this._symbolSources.push(s),s.symbolResolved().subscribe(this,(()=>this._symbolSourceResolved.fire(e))),s.symbolResolvingActive().subscribe(this._recalcSymbolSourceResolvingActive),s.symbolHibernated().subscribe(this._onSymbolSourceCollectionChanged),this._recalcSymbolSourceResolvingActive(),this._onSymbolSourceCollectionChanged(),s===this._model.mainSeries()&&this._isMainPane.setValue(!0))),e.isMultiPaneAvailable()&&this.model().addMultiPaneSource(e),t||0!==this._bulkActions.activeCounter||this._dataSourcesCollectionChanged.fire()}_removeSourceFromCollections(e,t){const i=this.m_dataSources[e],s=i.id();if(i.properties().unsubscribeAll(this),i.zOrderChanged().unsubscribeAll(this),this.m_dataSources.splice(e,1),this._sourcesById.delete(i.id()),(0,zs.isLineTool)(i)){if(i.normalizedPointsChanged().unsubscribeAll(this),i.fixedPointChanged().unsubscribeAll(this),i.onIsActualSymbolChange().unsubscribeAll(this),this._sourceWatchedValuesSubscriptions.has(s)){ -const e=this._sourceWatchedValuesSubscriptions.get(s);e&&(i.hasAlert().unsubscribe(e.commonCallback),i.linkKey().unsubscribe(e.linkKeyCallback)),this._sourceWatchedValuesSubscriptions.delete(s)}this._lineToolsByLinkKey.removeByKey2(i.id())}this._invalidateSourcesCache();const o=(0,Lr.isSymbolSource)(i)?i:null;(0,An.isPriceDataSource)(i)&&(this._priceSourcesById.delete(i.id()),i.currencyChanged().unsubscribeAll(this),i.unitChanged().unsubscribeAll(this),(0,Pt.removeItemFromArray)(this._priceDataSources,i),(0,Ws.isStudy)(i)&&(0,Pt.removeItemFromArray)(this._studySources,i),this._onPriceSourcesCollectionChanged(),null!==o&&((0,Pt.removeItemFromArray)(this._symbolSources,o),o.symbolResolved().unsubscribeAll(this),o.symbolResolvingActive().unsubscribe(this._recalcSymbolSourceResolvingActive),o.symbolHibernated().unsubscribe(this._onSymbolSourceCollectionChanged),this._recalcSymbolSourceResolvingActive(),this._onSymbolSourceCollectionChanged(),o===this._model.mainSeries()&&this._isMainPane.setValue(!1))),i.isMultiPaneAvailable()&&this.model().removeMultiPaneSource(i),t||0!==this._bulkActions.activeCounter||this._dataSourcesCollectionChanged.fire()}_recalculatePriceScaleByScaleRatio(e){this.isMainPane().value()&&e===this._lockedPriceScale&&(null!==this._currentPriceScaleRatio?this._applyOldScaleRatioToPriceScale():this._tryToApplyNewPriceScaleRatio())}_defaultBottomMargin(){return.01*this.properties().childs().bottomMargin.value()}_defaultTopMargin(){return.01*this.properties().childs().topMargin.value()}_updateMargins(){const e=this._defaultTopMargin(),t=this._defaultBottomMargin();for(const i of this._leftPriceScales)Ah(i,e,t);for(const i of this._rightPriceScales)Ah(i,e,t);for(const i of this.m_dataSources)if(this.isOverlay(i)){const s=i.priceScale();null!==s&&(Ah(s,e,t),this.recalculatePriceScale(s,(0,wi.viewportChangeEvent)()))}for(const e of this._leftPriceScales)this.recalculatePriceScale(e,(0,wi.viewportChangeEvent)());for(const e of this._rightPriceScales)this.recalculatePriceScale(e,(0,wi.viewportChangeEvent)());this.updateAllViews((0,wi.viewportChangeEvent)())}_batchReorder(e,t,i){i(this.sourcesByGroup().allExceptSpecialSources(),e,t),this._invalidateSourcesCache(),this._dataSourcesCollectionChanged.fire(),this._onDataSourcesZOrdersChanged(),this.model().fullUpdate()}_placePriceScale(e,t,i){if("overlay"===t)return void e.invalidateMargins();const s="left"===t?this._leftPriceScales:this._rightPriceScales,o=void 0===i?s.length:i;s.splice(o,0,e),e.modeChanged().subscribe(this,this._onPriceScaleModeChanged.bind(this,e)),e.internalHeightChanged().subscribe(this,this._recalculatePriceScaleByScaleRatio.bind(this,e)),e.priceRangeChanged().subscribe(this,this._recalculateTimeScaleByScaleRatio.bind(this,e)),e.priceRangeChanged().subscribe(this,this._onPriceScaleSetMinMaxPriceRange.bind(this,e)),e.isVisible().subscribe(this._onPriceScaleIsVisibleChanged),e.resetScaleAvailable().subscribe(this._updateResetPriceScalesAvailableValue),e.isLockScale()&&((0,n.assert)(null===this._lockedPriceScale),this._lockedPriceScale=e, -this._currentPriceScaleRatio=null),e.invalidateMargins(),this._onPriceScalesChanged.fire(),this._updateResetPriceScalesAvailableValue()}_onPriceScaleModeChanged(e,t,i){if(i.lockScale&&(this._lockedPriceScale!==e&&null!==this._lockedPriceScale&&this._lockedPriceScale.setMode({lockScale:!1}),this._lockedPriceScale=e,this._currentPriceScaleRatio=(0,Wl.scaleRatio)(this.timeScale(),e)),t.lockScale&&!i.lockScale&&(this._lockedPriceScale=null,this._currentPriceScaleRatio=null),t.percentage===i.percentage&&t.indexedTo100===i.indexedTo100)return;const s=this.timeScale().visibleBarsStrictRange();null!==s&&(e.recalculatePriceRange(s),e.updateAllViews((0,wi.viewportChangeEvent)()))}_applyOldScaleRatioToPriceScale(){this._isRecalculatingScales||null===this._currentPriceScaleRatio||null===this._lockedPriceScale||(this._isRecalculatingScales=!0,this._setNewPriceRangeByScaleRatio(this._lockedPriceScale,this._currentPriceScaleRatio,this._mainSourceVisiblePriceRange(this._lockedPriceScale)),this._isRecalculatingScales=!1)}_setNewPriceRangeByScaleRatio(e,t,i,s,o){const n=(0,Wl.priceRangeByScaleRatio)(e,this.timeScale().barSpacing(),t);e.setPriceRange(null!==n?n:i,s,o)}_applyOldScaleRatioToTimeScale(){this._isRecalculatingScales||null===this._currentPriceScaleRatio||(this._isRecalculatingScales=!0,this._setNewBarSpacingByScaleRatio(),this._isRecalculatingScales=!1)}_tryToApplyNewPriceScaleRatio(){const e=(0,n.ensureNotNull)(this._lockedPriceScale),t=(0,Wl.scaleRatio)(this.timeScale(),e);this._currentPriceScaleRatio===t||e.isLog()||(this._currentPriceScaleRatio=t,this.model().mainSeriesScaleRatioPropertyOnChanged())}_recalculateTimeScaleByScaleRatio(e){e===this._lockedPriceScale&&(null!==this._currentPriceScaleRatio?this._applyOldScaleRatioToTimeScale():this._tryToApplyNewPriceScaleRatio())}_setNewBarSpacingByScaleRatio(){const e=this.timeScale().getValidBarSpacing((0,Wl.barSpacingByScaleRatio)((0,n.ensureNotNull)(this._lockedPriceScale),this._currentPriceScaleRatio));this.timeScale().isValidBarSpacing(e)&&this.timeScale().setBarSpacing(e)}_mainSourceVisiblePriceRange(e){const t=this.timeScale().visibleBarsStrictRange();return null!==t?(0,n.ensureNotNull)((0,n.ensureNotNull)(e.mainSource()).priceRange(t.firstBar(),t.lastBar(),{targetPriceScale:e,scaleSeriesOnly:e.isScaleSeriesOnly()})):new Qc.PriceRange(-.5,.5)}_setMinMaxPriceRange(){const e=(0,n.ensureNotNull)(this._lockedPriceScale),t=(0,Wl.priceRangeByScaleRatio)(e,this.timeScale().maxBarSpacing(),this._currentPriceScaleRatio),i=(0,Wl.priceRangeByScaleRatio)(e,this.timeScale().minBarSpacing(),this._currentPriceScaleRatio);null!==t&&e.setMaxPriceRange(t),null!==i&&e.setMinPriceRange(i)}_onPriceScaleSetMinMaxPriceRange(e){e===this._lockedPriceScale&&this._setMinMaxPriceRange()}_onDataSourcesZOrdersChanged(){0===this._bulkActions.activeCounter?this._dataSourcesZOrdersChanged.fire():this._bulkActions.dataSourcesZOrdersChanged=!0}_onPriceSourcesCollectionChanged(){ -0===this._bulkActions.activeCounter?this._priceSourcesCollectionChanged.fire():this._bulkActions.priceSourcesCollectionChanged=!0}_nonOverlayPricesSourcesCount(){return this.m_dataSources.filter((e=>(!(0,Ws.isStudy)(e)||!e.isLinkedToSeries())&&((0,An.isPriceDataSource)(e)&&e.showInObjectTree()&&!this.isOverlay(e)))).length}_restoreMainSeries(e,t,i,s,o,r){const a=e.id,l=e.state;if(l&&o&&(l.style=o.style??l.style,l.interval=o.interval||l.interval,o.symbol&&o.symbol!==l.symbol&&(l.symbol=o.symbol,delete l.currencyId,delete l.unitId)),l&&["candleStyle","hollowCandleStyle","haStyle"].forEach((e=>{l[e]&&(l[e].wickUpColor=l[e].wickUpColor||l[e].wickColor,l[e].wickDownColor=l[e].wickDownColor||l[e].wickColor)})),l&&(l.statusViewStyle=l.statusViewStyle||{},!l.statusViewStyle.symbolTextSource)){const e=!!l.statusViewStyle.showSymbolAsDescription;l.statusViewStyle.symbolTextSource=e?"ticker":"description"}if(l){l.extendedHours?l.sessionId="extended":l.sessionId||(l.sessionId="regular"),delete l.extendedHours,(0,wh.allChartStyles)().includes(l.style)||(l.style=2);const e=l.lineStyle.styleType;let t;delete l.lineStyle.styleType,0===e&&(t=14,l.lineWithMarkersStyle=(0,tt.clone)(l.lineStyle)),1===e&&(t=15,l.steplineStyle=(0,tt.clone)(l.lineStyle)),void 0!==t&&2===l.style&&(l.style=t)}if(l)for(const e of["lineStyle","lineWithMarkersStyle","steplineStyle"])Ph(l[e]);if(!i){const e=this._model.mainSeries();(0,n.ensureNotNull)(this._model.mainPane()).removeDataSource(e,!1,r),this._addSourceToCollections(e,r)}const c=this.model().mainSeries(),h=c.properties().childs();this.m_mainDataSource=c;const d=l&&l.style?l.style:void 0;6===d&&"ATR"===h.pnfStyle.childs().inputs.childs().style.value()?h.pnfStyle.childs().inputs.childs().style.setValueSilently("Traditional"):4===d&&"ATR"===h.renkoStyle.childs().inputs.childs().style.value()&&h.renkoStyle.childs().inputs.childs().style.setValueSilently("Traditional"),l&&!l.hasOwnProperty("showSessions")&&(l.showSessions=!1),l&&void 0===l.settlementAsClose&&(l.settlementAsClose=!1),l&&t&&(l.showCountdown=!1),l&&(t&&!("showSeriesLastValueProperty"in s)&&"showLastValue"in l&&this._model.properties().childs().scalesProperties.childs().showSeriesLastValue.setValue(l.showLastValue),delete l.showLastValue),l&&this._restoreMainSeriesStudyInputs(e,c.styleStudyInfos());const u=c.sessionId();(0,Hc.getPersistentLogger)()?.addPersistentLogEntry(`Restore series. source.id: ${e.id} id: ${a}`,ne.LOGLEVEL.INFO,Lh),c.restoreState(e,t),this.changeSourceId(c,a),(0,Hc.getPersistentLogger)()?.addPersistentLogEntry(`Series has been successfully restored. id: ${c.id()}`,ne.LOGLEVEL.INFO,Lh),c.sessionId()!==u&&h.sessionId.fireChanged()}async _restoreMainSeriesStudyInputs(e,t){await(0,os.studyMetaInfoRepository)().requestMetaInfo();const i=(0,os.studyMetaInfoRepository)().studyVersioning(),s={haStyle:(0,xt.chartStyleStudyId)(8,!0),renkoStyle:(0,xt.chartStyleStudyId)(4,!0),pbStyle:(0,xt.chartStyleStudyId)(7,!0),kagiStyle:(0,xt.chartStyleStudyId)(5,!0),pnfStyle:(0,xt.chartStyleStudyId)(6,!0),rangeStyle:(0, -xt.chartStyleStudyId)(11,!0),volFootprintStyle:(0,xt.chartStyleStudyId)(17,!0),tpoStyle:(0,xt.chartStyleStudyId)(18,!0),svpStyle:(0,xt.chartStyleStudyId)(20,!0)},o={},r=(0,n.ensureDefined)(e.state);for(const[n]of Object.entries(bt.SYMBOL_STRING_DATA)){const a=`${bt.STYLE_SHORT_NAMES[n]}Style`,l=r[a]?.inputs;if(null==l)continue;const c=a in e?e[a].studyId:s[a],h=ns.StudyMetaInfo.parseIdString(c),d=t[a].studyId,u=ns.StudyMetaInfo.parseIdString(d),_=i.updateStudyInputs(h.id,h.version,u.version,l.inputs,null);o[a]={inputs:_}}this.model().mainSeries().properties().mergeAndFire(o)}_restoreSpecialSource(e,t,i){}_processAfterBulkAction(){const e=this._bulkActions;0===e.activeCounter&&(this._dataSourcesCollectionChanged.fire(),e.symbolSourceCollectionChanged&&(this._symbolSourceCollectionChanged.fire(),e.symbolSourceCollectionChanged=!1),e.priceSourcesCollectionChanged&&(this._priceSourcesCollectionChanged.fire(),e.priceSourcesCollectionChanged=!1),e.dataSourcesZOrdersChanged&&(this._dataSourcesZOrdersChanged.fire(),e.dataSourcesZOrdersChanged=!1))}}var Eh,Dh=i(28001);!function(e){e[e.Contains=0]="Contains",e[e.PlacedBefore=1]="PlacedBefore",e[e.PlacedAfter=2]="PlacedAfter"}(Eh||(Eh={}));class Bh{constructor(e,t){(0,n.assert)(e<=t,"The left value should be greater than or equal to the right value"),this._left=e,this._right=t}left(){return this._left}right(){return this._right}length(){return this._right-this._left+1}contains(e,t){return ethis._right+.5?!0===t&&2:!0!==t||0}before(e){return ethis._right+.5}intersects(e){return!(this.after(e.left())||this.before(e.right()))}equals(e){return this._left===e.left()&&this._right===e.right()}static compare(e,t){return null===e||null===t?e===t:e.equals(t)}}const Vh=(0,ne.getLogger)("Chart.TimePoints");function Rh(e,t){return null===e||null===t?e===t:e.firstIndex===t.firstIndex&&e.lastIndex===t.lastIndex}var Nh;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Nearest=2]="Nearest"}(Nh||(Nh={}));class Oh{constructor(){this._zoffset=0,this._items=[],this._range=new yt.WatchedObject(null,Rh)}clear(){this._zoffset=0,this._items=[],this._range.setValue(null)}size(){return this._items.length}range(){return this._range.readonly()}merge(e,t,i){const s=this._mergeImpl(e,t,i);return this._updateFirstAndLastIndex(),s}addTail(e,t){for(let i=t?1:0;ithis._items[this._items.length-1])return t?this._validOffsetToIndex(this._items.length-1):null;for(let i=0;ir){const i=e-r;if(i<500&&null!=t)return t(l,i);return l+i*c}return null}roughIndex(e,t=null,i=0){const s=this._items;if(!s.length||s.length<2)return null;const o=s.length-1,n=this._validOffsetToIndex(0),r=this._validOffsetToIndex(o),a=s[0],l=s[o];if(e>=a&&e<=l)return this._closestIndex(e,i);const c=(l-a)/(r-n);if(el){const i=e-l;let s=Math.trunc(i/c);if(s<500&&null!==t){const i=t(l,e);i.success&&(s=i.result)}return r+s}return null}closestIndexLeft(e){return this._closestIndex(e,0)}firstPoint(){return 0===this._items.length?null:this._items[0]}lastPoint(){return 0===this._items.length?null:this._items[this._items.length-1]}_closestIndex(e,t){const i=this._items;if(!i.length)return null;if(Number.isNaN(e))return null;const s=i.length-1;if(e>=i[s])return this._validOffsetToIndex(s);const o=(0,Pt.lowerbound)(this._items,e,((e,t)=>es?null:this._validOffsetToIndex(o);const n=e-(this._items[o-1]??-1/0),r=(this._items[o]??1/0)-e;return this._validOffsetToIndex(nthis._zoffset&&e+t>0)return Vh.logError("merge: when the first time point index is updated, we should fill the time points starting from the first one"),[];if(0===this._items.length)return this._items=i.slice(),this._zoffset=t,[{change:"rebuild",index:this._validOffsetToIndex(0)}];const s=e+this._zoffset;if(s<0){const o=Math.abs(s);if(i.lengththis._items.length){const e=r-this._items.length;for(let t=n;t(0,si.parseFont)(e)?.size??12));function sd(e,t,i,s){const o=od(e,t),n=Math.max(e.width,s);return{left:o-n/2-i,right:o+n/2+i}}function od(e,t){return e.index*t}function nd(e,t){return t===e.length?null:e[t]}function rd(e,t,i,s,o){const n=sd(e,i,s,o),r=sd(t,i,s,o);return n.right>r.left}function ad(e){return new Date(1e3*e)}function ld(e){if(e.span>=cr.MONTH_SPAN&&e.span=cr.MINUTE_SPAN&&e.span=cr.HOUR_SPAN&&e.span=cr.WEEK_SPAN&&e.span{let t=s.get(e.time);return void 0===t&&(t=function(e,t){return null!==_e.customFormatters.tickMarkFormatter?_e.customFormatters.tickMarkFormatter(e,t):td(e,t)}(ad(e.time),i),s.set(e.time,t)),t}}class hd{constructor(e,t,i){this._marksByIndex=new Map,this._marksByTime=new Map,this._marksBySpan=[],this._cache=null,this._labelsInvalidated=!0,this._widthsInvalidated=!0,this._skipIntraDayMarksSparseCache=null,this._changed=new ae.Delegate,this._formatterBySpan=new Map,this._textWidthCache=new Qt.TextWidthCache(1e4),this._timeVisible=e,this._sparseMarks=t,this._font=i;we.timeHoursFormatProperty.subscribe(this,(()=>{this._labelsInvalidated=!0,this._formatterBySpan.clear(),this._cache=null})),this._font.subscribe((()=>{this._textWidthCache.reset(),this._widthsInvalidated=!0,this._cache=null})),this._sparseMarks.subscribe((()=>{this._cache=null}))}destroy(){we.timeHoursFormatProperty.unsubscribeAll(this),this._timeVisible.release(),this._sparseMarks.release(),this._font.release()}reset(){this._resetImpl(),this._changed.fire()}indexToTime(e){const t=this._marksByIndex.get(e);return t?new Date(1e3*t.time):null}nearestIndex(e){let t=this.minIndex??0,i=this.maxIndex??0;for(;i-t>2;){if(1e3*(0,n.ensureDefined)(this._marksByIndex.get(t)).time===e)return t;if(1e3*(0,n.ensureDefined)(this._marksByIndex.get(i)).time===e)return i;const s=Math.round((t+i)/2);1e3*(0,n.ensureDefined)(this._marksByIndex.get(s)).time>e?i=s:t=s}return t}estimateLeft(e){const t=this._density();if(void 0===this.minIndex||!t)return 0;return(1e3*(0,n.ensureDefined)(this._marksByIndex.get(this.minIndex)).time-e)/t}merge(e,t){if(0===e.length)return;const i=e[0].index,s=e[e.length-1].index,o=i<=(this.minIndex??0)&&s>=(this.maxIndex??0);(t||o)&&this._resetImpl();const n=this._marksBySpan,r=new Set;if(this._marksByIndex.size>0)for(const t of e){const e=t.index,i=this._marksByIndex.get(e);i&&(i.index===e&&i.overriddenSpan===ld(t)&&i.time===t.time||this._removeTickmark(i));const s=this._marksByTime.get(t.time);s&&s.index!==e&&this._removeTickmark(s)}for(const t of e){const e=t.index;if(this._marksByIndex.has(e))continue;const i=ld(t),s=this._formatLabel(t),o={...t,label:s,overriddenSpan:i,width:(0,Kt.measureText)(s,this._font.value(),this._textWidthCache).width};this._marksByIndex.set(e,o),this._marksByTime.set(t.time,o);let a=n[i];void 0===a&&(a=[],n[i]=a);const l=0===a.length||a[a.length-1].timee.time-t.time)));this._cache=null,this._skipIntraDayMarksSparseCache=null,this._changed.fire()}build(e){if(this._labelsInvalidated&&(this._marksByIndex.forEach((e=>{e.label=this._formatLabel(e)})),this._labelsInvalidated=!1),this._widthsInvalidated&&(this._marksByIndex.forEach((e=>{e.width=(0,Kt.measureText)(e.label,this._font.value(),this._textWidthCache).width})),this._widthsInvalidated=!1),this._cache?.barSpacing===e)return this._cache.marks;const t=id(this._font.value()),i=5/14*t,s=50/14*t;let o=[];for(let t=this._marksBySpan.length;t--;){if(!this._marksBySpan[t])continue;const r=this._marksBySpan[t];if(0===r.length)continue;const a=t2?ed[t]:void 0;let u=null,_=-1/0,p=null,m=0;for(;cp.index?u:p,i=od(a,e)-od(t,e);_=Math.max(_,i)}u=a}null!==t?null!==a?t.index0&&m/r.length>(Qh[t]??.5)&&!a){o=l;break}if(void 0!==d&&Number.isFinite(_)&&_<=d)break}return this._cache={marks:o,barSpacing:e},o}marksBySpan(){const e={};for(let t=this._marksBySpan.length;t--;)if(this._marksBySpan[t]){const i=[];e[t]=i;for(const e of this._marksBySpan[t])i.push([e.index,e.time,e.overriddenSpan])}return e}state(e){let t=[];for(let e=this._marksBySpan.length;e--;)this._marksBySpan[e]&&(t=t.concat(this._marksBySpan[e]));if(null!==e){const i=e.firstBar(),s=e.lastBar();t=t.filter((e=>e.index>=i&&e.index<=s))}return{marks:t.map((e=>[e.span,e.time,e.index])),version:2}}restoreState(e){if(this._marksByIndex=new Map,this._marksByTime=new Map,this._marksBySpan=[],this.maxIndex=void 0,this.minIndex=void 0,e&&e.marks&&e.marks.length)if(2===e.version){const t=e.marks.map((e=>({span:e[0],time:e[1],index:e[2]})));this.merge(t)}else this.merge(e.marks)}removeTail(e){let t=-1/0;for(const i of this._marksByIndex.values())i.time>e?this._removeTickmark(i):t=Math.max(t,i.index);this.maxIndex=Number.isFinite(t)?t:void 0,void 0===this.maxIndex&&(this.minIndex=void 0),this._skipIntraDayMarksSparseCache=null}addTail(e){if(void 0!==this.maxIndex)for(let t=0;te.time=0&&oe+t),0)/t.length;return t.reduce(((e,t)=>e+Math.abs(t-s)))/t.length/s*100}(e)>=25}return this._skipIntraDayMarksSparseCache}}var dd=i(5471);class ud{constructor(){this._baseIndex=0}setBaseIndex(e){this._baseIndex=e}indexToTotalWeight(e){return e-this._baseIndex}totalWeightToIndex(e){return this._baseIndex+e}indexRangeToWeights(e,t,i){const s=e-this._baseIndex;return[{left:s-.5,center:s,right:s+.5,timePointIndex:e}]}state(e){return{type:"constant",state:{baseIndex:this._baseIndex}}}restoreState(e){this._baseIndex=e.state.baseIndex}needAdjustingOnDataRestoring(){return!1}}var _d=i(67455);const pd={preserveBarSpacing:!1,lockVisibleTimeRangeOnResize:!1,rightBarStaysOnScroll:!0,minBarSpacing:.5},md=l.enabled("low_density_bars"),gd=md?1:2,fd=(0,ne.getLogger)("Chart.TimeScale");var yd;!function(e){e[e.DefaultRightOffset=10]="DefaultRightOffset",e[e.DefaultBarSpacing=6]="DefaultBarSpacing",e[e.UnplottableIndexCoord=-500]="UnplottableIndexCoord",e[e.DefaultRightOffsetPercentage=5]="DefaultRightOffsetPercentage",e[e.MaxIterationsForDynamicBarSpacingAdjust=20]="MaxIterationsForDynamicBarSpacingAdjust"}(yd||(yd={}));class vd{constructor(e,t){this._width=0,this._widthChanged=new ae.Delegate,this._rightOffset=10,this._rightOffsetChanged=new ae.Delegate,this._maxRightOffsetChanged=new ae.Delegate,this._defaultRightOffset=new O.WatchedValue(10),this._defaultRightOffsetPercentage=new O.WatchedValue(5),this._usePercentageRightOffset=new O.WatchedValue(!1),this._lastDefaultRightOffset=void 0,this._baseIndex=null,this._leftEdgeIndex=null,this._barSpacingChanged=new ae.Delegate,this._barSpacing=6,this._snapshotBarSpacing=null,this._visibleBars=Hh.invalid(),this._visibleBarsInvalidated=!0,this._visibleBarsChanged=new ae.Delegate,this._logicalRangeChanged=new ae.Delegate,this._points=new Oh,this._onScroll=new ae.Delegate,this._resetDelegate=new ae.Delegate,this._scrollData=null,this._scaleStartPoint=null,this._commonTransitionStartState=null,this._requestingMoreData=!1,this._requestedTickmarksCount=0,this._endOfData=!1,this._lockBarsAndLogicalRangeEvents=!1,this._resetAvailable=new O.WatchedValue(!1),this._pointWeights=new ud,this._weightedPointsCache=[], -this._throttleRequestMoreDataOnScroll=(0,o.default)(this._requestMoreData,300),this._options=(0,ge.deepExtend)({},pd,t),this._model=e,this._scalesProperties=e.properties().childs().scalesProperties,this._tickMarks=new hd((0,ft.combine)((e=>!e.isDWM()),e.mainSeries().intervalObj().weakReference()).ownership(),(0,ft.combine)(((e,t)=>!e.isTicks()&&!e.isSeconds()&&!(0,xt.isRangeBasedStyle)(t)),e.mainSeries().intervalObj().weakReference(),(0,ye.convertPropertyToWatchedValue)(e.mainSeries().properties().childs().style).ownership()).ownership(),(0,_d.createWVFromGetterAndSubscription)((()=>(0,si.makeFont)(this._scalesProperties.childs().fontSize.value(),m.CHART_FONT_FAMILY)),this._scalesProperties.childs().fontSize).ownership()),this._defaultRightOffset.subscribe((()=>{this._usePercentageRightOffset.setValue(!1),this._defaultRightOffsetOptionsUpdated()})),this._defaultRightOffsetPercentage.subscribe((e=>{if(e>=100||e<0){const t=Math.max(0,Math.min(e,99));this._defaultRightOffsetPercentage.setValue(t)}else this._usePercentageRightOffset.setValue(!0),this._defaultRightOffsetOptionsUpdated()})),this._usePercentageRightOffset.subscribe((()=>{this._defaultRightOffsetOptionsUpdated()})),this._options.preserveBarSpacing&&(this._barSpacing=this._scalesProperties.childs().barSpacing.value()||6),this._barSpacingChanged.subscribe(this,this._maxRightOffsetOnChanged),this._barSpacingChanged.subscribe(this,this._updateResetAvailableValue),this._rightOffsetChanged.subscribe(this,this._updateResetAvailableValue),this._widthChanged.subscribe(this,this._maxRightOffsetOnChanged),this._updateResetAvailableValue()}destroy(){this._barSpacingChanged.unsubscribeAll(this),this._barSpacingChanged.destroy(),this._widthChanged.unsubscribeAll(this),this._widthChanged.destroy(),this._tickMarks.destroy()}isEmpty(){return 0===this._width||!this.canNormalize()}canNormalize(){return this._points.size()>0}update(e,t,i,s,o){this._visibleBarsInvalidated=!0,i.length>0&&this._points.merge(e,t,i),this._tickMarks.merge(s,o),this.correctOffset()}addTail(e,t,i){this._tickMarks.removeTail(t);const s=e.params,o=(0,n.ensureDefined)(this._tickMarks.maxIndex)+(i?0:1);for(let e=0;e0&&(i*=this._width/e.width)),t&&this._pointWeights.needAdjustingOnDataRestoring()){this._tryToUpdateBarSpacing(this._barSpacing,i);const e=this._points.range().value();if(e){const t=e.firstIndex;let s=i,o=i,n=0;(()=>{n=this.indexToCoordinate(t),n<0?(o=i,s=i/10):(s=i,o=10*i)})();for(let e=0;e<20&&Math.abs(n)>2;e++){const e=(o+s)/2;this._tryToUpdateBarSpacing(this._barSpacing,e),n=this.indexToCoordinate(t),n<0?o=e:s=e}}}else this._tryToUpdateBarSpacing(this._barSpacing,i);this.correctOffset(),this._usePercentageRightOffset.value()&&(this._rightOffset=this.percentsToBarIndexLength(this._defaultRightOffsetPercentage.value())),this._rightOffsetChanged.fire(this._rightOffset)}marks(){if(this.isEmpty())return null;const e=this._barSpacing,t=5*((this._scalesProperties.childs().fontSize.value()||0)+4),i=Math.round(t/e),s=(0,n.ensureNotNull)(this.visibleBarsStrictRange()),o=Math.max(s.firstBar(),s.firstBar()-i),r=Math.max(s.lastBar(),s.lastBar()-i),a=this._tickMarks.build(e),l=[];for(const e of a)o<=e.index&&e.index<=r&&l.push({coord:this.indexToCoordinate(e.index),label:e.label,span:e.span,major:!1});return l}visibleBarsStrictRange(){return this._visibleBarsInvalidated&&(this._visibleBarsInvalidated=!1,this._updateVisibleBars()),this._visibleBars.strictRange()}visibleBarsStrictRangeChanged(){return this._visibleBarsChanged}visibleStrictDataRange(e){const t=this.visibleBarsStrictRange();if(null===t)return null;const i=e.search(t.firstBar(),dd.PlotRowSearchMode.NearestRight),s=e.search(t.lastBar(),dd.PlotRowSearchMode.NearestLeft);return null===i||null===s?null:new Dh.BarsRange(i.index,s.index)}visibleExtendedDataRange(e,t){const i=this.visibleBarsStrictRange();if(null===i)return null;let s=1===t?null:e.search(i.firstBar()-1,dd.PlotRowSearchMode.NearestLeft),o=0===t?null:e.search(i.lastBar()+1,dd.PlotRowSearchMode.NearestRight);return null===s&&(s=e.search(i.firstBar(),dd.PlotRowSearchMode.NearestRight)),null===o&&(o=e.search(i.lastBar(),dd.PlotRowSearchMode.NearestLeft)), -null===s||null===o?null:new Dh.BarsRange(s.index,o.index)}logicalRangeChanged(){return this._logicalRangeChanged}tickMarks(){return this._tickMarks}points(){return this._points}width(){return this._width}setWidth(e,t){if(!Number.isFinite(e)||e<=0)return void fd.logWarn(`setWidth: invalid argument: ${e}`);if(this._width===e)return;const i=this._usePercentageRightOffset.value()&&this._rightOffset>0?this.barIndexLengthToPercents(this._rightOffset):-1;if(this._visibleBarsInvalidated=!0,(t||this._options.lockVisibleTimeRangeOnResize)&&this._width){const t=this._barSpacing*e/this._width;this._tryToUpdateBarSpacing(this._barSpacing,t)}else this._width&&this.setBarSpacing(this._barSpacing);if(null!==this._leftEdgeIndex){if((0,n.ensureNotNull)(this.visibleBarsStrictRange()).firstBar()<=this._leftEdgeIndex){const t=this._width-e;this._rightOffset-=Math.round(t/this._barSpacing)+1}}this._width=e,this._widthChanged.fire(e);const s=this._rightOffset;i>0?this._rightOffset=this.percentsToBarIndexLength(i):this.correctOffset(),this._rightOffset!==s&&this._rightOffsetChanged.fire(this._rightOffset),this._requestMoreData()}setLeftEdgeFix(e){this._leftEdgeIndex=e;const t=this.visibleBarsStrictRange();if(null===t)return;const i=t.firstBar()-e;if(i<0){const e=this._rightOffset-i-1;this.scrollToOffsetAnimated(e,500)}}positionPercentToCoordinate(e){return this.width()*e}indexToCoordinate(e){if(this.isEmpty())return 0;const t=this.baseIndex(),i=this._pointWeights.indexToTotalWeight(t+this._rightOffset+.5)-this._pointWeights.indexToTotalWeight(e);return this._width-i*this._barSpacing}indexToUserTime(e){return this._tickMarks.indexToTime(e)}timePointToIndex(e,t){switch(t){case 0:return this._points.indexOf(e,!1);case 1:return this._points.closestIndexLeft(e);default:return this._points.indexOf(e,!0)}}indexToTimePoint(e){return this._points.valueAt(e)}timeToCoordinate(e){const t=this._points.closestIndexLeft(e);if(null===t)return null;const i=(0,n.ensureNotNull)(this._points.valueAt(t)),s=this.indexToCoordinate(t);if(s<=0||s>=this._width)return null;const o=this.barSpacing(),r=this.baseIndex();let a;a=0===r?this._model.mainSeries().intervalObj().value().inMilliseconds()/1e3:(0,n.ensureNotNull)(this._points.valueAt(r))-(0,n.ensureNotNull)(this._points.valueAt(r-1));const l=s+(e-i)/a*o+1;return l<=0||l>=this._width?null:l}barBorders(e){const t={timePointIndex:e,left:NaN,center:NaN,right:NaN};return this.fillBarBorders([t]),t}fillBarBorders(e,t,i){if(0===e.length)return;let s=t?.startItemIndex??0;const o=(t?.endItemIndex??e.length)-1;if(!0===i&&(s=(0,Pt.upperbound)(e,Fh.UNPLOTTABLE_TIME_POINT_INDEX,((e,t)=>eo)return;const r=this._pointWeights.indexToTotalWeight(this.baseIndex()+this._rightOffset+.5),a=this._pointWeights.indexRangeToWeights(e[s].timePointIndex,e[o].timePointIndex,this._weightedPointsCache);let l=0,c=a[l];const h=c,d=a[a.length-1];let u=NaN,_=NaN,p=NaN,m=!0;for(let t=s;t<=o;t+=1){const i=e[t];if(i.timePointIndexd.timePointIndex)p=d.right+(i.timePointIndex-d.timePointIndex),_=p-.5,u=p-1;else for(m&&(u=c.left,_=c.center,p=c.right,m=!1);c.timePointIndexe{void 0!==t&&t(),this._requestMoreData()};if(e){const e=this.logicalRange(),t=this._model.mainSeries().bars().lastIndex();if(null===e||null===t)return;const i=this.indexToCoordinate(e.right()+.5),o=this.indexToCoordinate(t+this._defaultRightOffset.value()+.5);return this._model.stopTimeScaleAnimation(),void this._model.setTimeScaleAnimation(new Ir({from:0,to:i-o,duration:1e3,easing:br.easingFunc.easeInOutQuint,onFinish:s}))}this._visibleBarsInvalidated=!0,this._updateRightOffset(i),this._onScroll.fire(),s()}scrollToFirstBar(e=()=>{}){this._model.gotoTime(new Date("1800-01-01").getTime()).then(e),this._onScroll.fire()}scrollToOffsetAnimated(e,t){if(!isFinite(e))throw new RangeError("offset is required and must be finite number");const i=void 0===t?400:t;if(!isFinite(i)||i<=0)throw new RangeError("animationDuration (optional) must be finite positive number");const s=this._rightOffset,o=Date.now(),n=()=>{this._visibleBarsInvalidated=!0;const t=(Date.now()-o)/i;if(t>=1)return this._updateRightOffset(e),this._visibleBarsInvalidated=!0,this._model.recalculateAllPanes((0,wi.viewportChangeEvent)()),void this._model.lightUpdate();const r=s+(e-s)*t;this._updateRightOffset(r),this._model.recalculateAllPanes((0,wi.viewportChangeEvent)()),setTimeout(n,20)};n()}defaultRightOffset(){return this._defaultRightOffset}rightOffsetDefaultValue(){return 10}defaultRightOffsetPercentage(){return this._defaultRightOffsetPercentage}usePercentageRightOffset(){return this._usePercentageRightOffset}barSpacing(){return this._barSpacing}barSpacingScaleRatio(){return null===this._snapshotBarSpacing?1:this._barSpacing/this._snapshotBarSpacing}setBarSpacing(e){if(!Number.isFinite(e))return void fd.logWarn(`setBarSpacing: invalid argument: ${e}`);e=this.getValidBarSpacing(e);const t=this._barSpacing>e;this._tryToUpdateBarSpacing(this._barSpacing,e)&&(this.correctOffset(),this._options.preserveBarSpacing&&((0, -yi.allowSavingDefaults)(!0),this._scalesProperties.childs().barSpacing.setValue(this._barSpacing),(0,yi.allowSavingDefaults)(!1)),this._model.recalculateAllPanes((0,wi.viewportChangeEvent)()),this._model.lightUpdate(),t&&this.requestHistoryPointsIfNeeded())}barSpacingChanged(){return this._barSpacingChanged}getValidBarSpacing(e){return null==e&&(e=this.barSpacing()),ethis.maxBarSpacing()?this.maxBarSpacing():e}isValidBarSpacing(e){return e>=this.minBarSpacing()&&e<=this.maxBarSpacing()}preserveBarSpacing(){return this._options.preserveBarSpacing}normalizeBarIndex(e){let t=0,i=0;const s=this.baseIndex(),o=(0,n.ensureNotNull)(this._points.range().value()).firstIndex;return es?(t=(0,n.ensureNotNull)(this._points.valueAt(s)),i=e-s):(t=(0,n.ensureNotNull)(this._points.valueAt(e)),i=0),{time_t:t,offset:i}}denormalizeTimePoint(e){const t=this._points.indexOf(e.time_t,!1);if(null!==t)return t+e.offset}rightOffset(){return this._rightOffset}rightOffsetChanged(){return this._rightOffsetChanged}minRightOffset(){const e=this.points().range().value()?.firstIndex,t=this._baseIndex;if(void 0===e||null===t)return null;if(null!==this._leftEdgeIndex){const e=this.width()/this._barSpacing;return this._leftEdgeIndex-t+e-1}return e-t-1+gd}maxRightOffset(){return this.width()/this._barSpacing-gd}maxRightOffsetChanged(){return this._maxRightOffsetChanged}onReset(){return this._resetDelegate}baseIndex(){return this._baseIndex||0}zoom(e,t,i){if(!Number.isFinite(e)||!Number.isFinite(t))return void fd.logWarn(`zoom: invalid arguments: ${e}, ${t}, ${i}`);const s=this.rightOffset(),o=void 0!==i?!i:this._options.rightBarStaysOnScroll,n=o&&this.usePercentageRightOffset().value()&&s>=0,r=n?this.barIndexLengthToPercents(s):void 0,a=this.coordinateToIndex(e),l=this.barSpacing(),c=l+t*(l/10);this.setBarSpacing(c),o||(this.startScroll(this.indexToCoordinate(a)),this.scrollTo(e),this.endScroll()),n&&void 0!==r&&this.setRightOffset(this.percentsToBarIndexLength(r)),this._requestMoreData()}zoomToBarsRange(e,t){if(null!==this._leftEdgeIndex&&(e=Math.max(e,this._leftEdgeIndex)),tthis._options.minBarSpacing}minBarSpacing(){return this._options.minBarSpacing}maxBarSpacing(){const e=this.width();return md?e:e/gd}minVisibleBarCount(){return gd}resetRightOffset(){this.setRightOffset(this.targetDefaultRightOffset())}reset(){this._visibleBarsInvalidated=!0,this._points.clear(),this._scrollData=null,this._scaleStartPoint=null,this._clearCommonTransitionsStartState(),this._tickMarks.reset(),this._leftEdgeIndex=null,this._resetDelegate.fire(),this.disconnect()}resetAvailable(){return this._resetAvailable.readonly()}disconnect(){this._requestingMoreData=!1,this._requestedTickmarksCount=0,this._endOfData=!1}setBaseIndex(e){if(!Number.isFinite(e))return void fd.logDebug(`setBaseIndex: invalid argument: ${e}`);const t=this._baseIndex!==e;this._visibleBarsInvalidated=!0,this._baseIndex=e,this._pointWeights.setBaseIndex(this._baseIndex),this.correctOffset(),t&&(this._model.recalculateAllPanes((0,wi.viewportChangeEvent)()),this._model.lightUpdate())}resetBaseIndex(){this._visibleBarsInvalidated=!0,this._baseIndex=null}setRightOffset(e){Number.isFinite(e)?(this._visibleBarsInvalidated=!0,this._updateRightOffset(e)):fd.logWarn(`setRightOffset: invalid argument: ${e}`)}correctBarSpacing(){this.isEmpty()||this.points().size()e&&(this._rightOffset=e,this._visibleBarsInvalidated=!0);const t=this.minRightOffset();null!==t&&this._rightOffset=0&&this.setRightOffset(this.percentsToBarIndexLength(s))}endScale(){null!==this._scaleStartPoint&&(this._scaleStartPoint=null,this._clearCommonTransitionsStartState(),this._requestMoreData())}startScroll(e){null===this._scrollData&&null===this._commonTransitionStartState&&(this.isEmpty()||(this._scrollData={startCoordinate:e,startRightEdgeLogical:this.baseIndex()+this._rightOffset+.5,startBaseIndex:this.baseIndex()},this._saveCommonTransitionsStartState()))}scrollTo(e){if(this._visibleBarsInvalidated=!0,null===this._scrollData)return;const{startCoordinate:t,startRightEdgeLogical:i,startBaseIndex:s}=this._scrollData,o=e-t,n=i+(this.baseIndex()-s),r=this.indexToCoordinate(n),a=this.coordinateToFloatIndex(r-o)-.5-this.baseIndex();this._updateRightOffset(a),this._onScroll.fire()}endScroll(){null!==this._scrollData&&(this._scrollData=null,this._clearCommonTransitionsStartState(),this._throttleRequestMoreDataOnScroll())}isBeingScrolled(){return null!==this._scrollData}isBeingScaled(){return null!==this._scaleStartPoint}onScroll(){return this._onScroll}invalidateVisibleBars(){this._visibleBarsInvalidated=!0}onTimeScaleCompleted(e){if(this._requestingMoreData=!1,this._endOfData=e,l.enabled("fix_left_edge")&&this._endOfData){const e=this._points.range().value()?.firstIndex;void 0!==e&&this.setLeftEdgeFix(e)}this._requestMoreData()}requestMoreHistoryPoints(e){this._requestHistoryPoints(e)}targetDefaultRightOffset(){return this.usePercentageRightOffset().value()?this.percentsToBarIndexLength(this._defaultRightOffsetPercentage.value()):this._defaultRightOffset.value()}percentsToBarIndexLength(e){return.01*e*this._width/this._barSpacing}barIndexLengthToPercents(e){return 100*e*this._barSpacing/this._width}requestHistoryPointsIfNeeded(){if(this.isEmpty())return;if(this._endOfData)return void fd.logNormal("Skipping loading more data due end of data state");const e=this.visibleBarsStrictRange();if(null===e)return;const t=(0,n.ensureNotNull)(this._points.range().value()).firstIndex-e.firstBar();t<=0||this._requestHistoryPoints(t)}_requestMoreData(){this._requestFutureTickmarksIfNeeded(),this.requestHistoryPointsIfNeeded()}_requestFutureTickmarksIfNeeded(){if(this.isEmpty()||!this._model.chartApi().isConnected().value())return;const e=this.visibleBarsStrictRange();if(null===e)return;const t=e.lastBar()-(0,n.ensureNotNull)(this._points.range().value()).lastIndex;if(t<=this._requestedTickmarksCount)return;const i=t-this._requestedTickmarksCount;this._requestedTickmarksCount=t,this._model.chartApi().requestMoreTickmarks((0,n.ensureNotNull)(this._model.mainSeries().seriesSource().instanceId()),i)}_requestHistoryPoints(e){this._model.chartApi().isConnected().value()&&(this._requestingMoreData?fd.logNormal("Skipping loading more data due active loading"):(this._requestingMoreData=!0,this._model.chartApi().requestMoreData(e)))}_updateVisibleBars(){const e=this._visibleBars -;if(this.isEmpty())return void(this._visibleBars.isValid()&&(this._visibleBars=Hh.invalid(),this._visibleBarsChanged.fire(null,e.strictRange()),this._logicalRangeChanged.fire(null,e.logicalRange())));const t=this.width()/this.barSpacing(),i=this.baseIndex(),s=i+this._rightOffset,o=s+.5,n=this._pointWeights.indexToTotalWeight(o)-t,r=Math.min(o-1,this._pointWeights.totalWeightToIndex(n))+.5;Number.isFinite(r)&&Number.isFinite(s)?(this._visibleBars=new Hh(new Bh(r,s),this._model.mainSeries().style()),this._lockBarsAndLogicalRangeEvents||this._fireVisibleBarsChangedIfRequired(e,this._visibleBars)):fd.logWarn(`updateVisibleBars error: baseIndex: ${i}, barSpacing: ${this._barSpacing}, rightOffset: ${this._rightOffset}`)}_fireVisibleBarsChangedIfRequired(e,t){Dh.BarsRange.compare(e.strictRange(),t.strictRange())||this._visibleBarsChanged.fire(t.strictRange(),e.strictRange()),Bh.compare(e.logicalRange(),t.logicalRange())||this._logicalRangeChanged.fire(t.logicalRange(),e.logicalRange())}_baseIndexBarCenterCoordinate(){const e=this.baseIndex()+this._rightOffset+.5,t=this._pointWeights.indexToTotalWeight(e);return this._width-t*this._barSpacing}_tryToUpdateBarSpacing(e,t){return e!==t&&(this._visibleBarsInvalidated=!0,this._barSpacing=t,this._barSpacingChanged.fire(t),!0)}_saveCommonTransitionsStartState(){this._commonTransitionStartState={barSpacing:this.barSpacing(),rightOffset:this.rightOffset()}}_clearCommonTransitionsStartState(){this._commonTransitionStartState=null}_maxRightOffsetOnChanged(){this._maxRightOffsetChanged.fire(this.maxRightOffset())}_updateRightOffset(e){const t=this._rightOffset;this._rightOffset=e,this.correctOffset(),this._rightOffset!==t&&this._rightOffsetChanged.fire(this._rightOffset),this._model.recalculateAllPanes((0,wi.viewportChangeEvent)()),this._model.lightUpdate()}_defaultRightOffsetOptionsUpdated(){const e=this.rightOffset();if(l.enabled("lock_visible_range_when_adjusting_percentage_right_margin")&&e>=0){const e=this._defaultRightOffsetPercentage.value(),t=this._usePercentageRightOffset.value()&&this._rightOffset>=0?Math.round(this.barIndexLengthToPercents(this._rightOffset)):-1;if(this._lastDefaultRightOffset!==e&&t===this._lastDefaultRightOffset){const t=this._barSpacing*(100-e)/(100-this._lastDefaultRightOffset);this._tryToUpdateBarSpacing(this._barSpacing,t)}}this.setRightOffset(this.targetDefaultRightOffset()),this._updateResetAvailableValue(),this._lastDefaultRightOffset=this._defaultRightOffsetPercentage.value()}_updateResetAvailableValue(){this._resetAvailable.setValue(6!==this.barSpacing()||this.rightOffset()!==this.targetDefaultRightOffset())}}var Sd=i(86957),bd=i(60336);class wd{constructor(e){this._onChanged=new ae.Delegate,this._groups=[],this._groups=e||[],this._groups.forEach((e=>{e.onChanged().subscribe(null,(t=>this._onChanged.fire(e.id,t)))}))}groups(){return this._groups.filter((e=>e.isActualSymbol()))}groupsForAllSymbols(){return this._groups}createGroup(e,t,i){t=t||this._generateNextName();const s=new Xa(e,t,i);this._groups.push(s), -s.onChanged().subscribe(null,(e=>this._onChanged.fire(s.id,e)));const o={visibilityChanged:!1,lockedChanged:!1,isActualIntervalChanged:!1,affectedLineTools:e.map((e=>e.id()))};return this._onChanged.fire(s.id,o),s}addGroup(e){this._groups.push(e),e.onChanged().subscribe(null,(t=>this._onChanged.fire(e.id,t))),this._onChanged.fire(e.id)}removeGroup(e){const t=this._groups.findIndex((t=>t.id===e.id));this._groups.splice(t,1),this._onChanged.fire(e.id)}groupForId(e){return this._groups.find((t=>t.id===e))||null}groupForLineTool(e){return this._groups.find((t=>t.containsLineTool(e)))||null}removeLineTools(e){const t=new Set;this._groups.forEach((i=>{const s=e.filter(i.containsLineTool.bind(i));s.length&&(i.excludeLineTools(s),t.add(i.id))}));return this._groups.filter((e=>0===e.lineTools().length)).forEach((e=>this.removeGroup(e))),Array.from(t)}state(e){return{groups:(e?this._groups.filter((e=>e.isActualSymbol())):this._groups).map((e=>e.state()))}}onChanged(){return this._onChanged}fireChangedAll(){this._groups.forEach((e=>{this._onChanged.fire(e.id)}))}static fromState(e,t){const i=[];for(const s of t.groups){const t=Xa.fromState(e,s);null!==t&&i.push(t)}return new wd(i)}_generateNextName(){const e=new Set(this.groups().map((e=>e.name().value())));for(let t=1;;t++){const i=`Group ${t}`,s=`Group_${t}`;if(!e.has(i)&&!e.has(s))return i}}}var Cd=i(47312),Td=i(51101);function Pd(e){return Boolean(e.session.timezone)&&Boolean(e.session.spec)}class xd{constructor(e,t){var i,s;this._sourceTargetBarBuilder=null,this._cache=new Map,this._source=e,this._target=t,this._sourceSession=Cd.SessionInfo.fromState(e.session),this._targetSession=Cd.SessionInfo.fromState(t.session),this._isResolutionTheSame=Re.Interval.isEqual(e.resolution,t.resolution)||Re.Interval.isTicks(e.resolution)&&Re.Interval.isTicks(t.resolution),this._isSessionTheSame=(i=e.session,s=t.session,i.timezone===s.timezone&&i.spec===s.spec&&i.holidays===s.holidays&&i.corrections===s.corrections)}sourceTimeToTargetTime(e){if(this._isSessionTheSame&&this._isResolutionTheSame)return e;if(!Pd(this._source)||!Pd(this._target))return e;let t=this._cache.get(e);if(void 0===t){const i=1e3*e,s=this._sourceTargetBuilder();s.moveTo(i);const o=s.indexOfBar(i);t=s.startOfBar(Math.max(0,o))/1e3,this._cache.set(e,t)}return t}_sourceTargetBuilder(){return null===this._sourceTargetBarBuilder&&(this._sourceTargetBarBuilder=(0,Td.newBarBuilder)(this._target.resolution,this._targetSession,this._sourceSession)),this._sourceTargetBarBuilder}}var Md=i(40153),Id=i(69555),Ad=i(66786),Ld=i(30693);class kd extends Ld.PriceLineAxisView{constructor(e,t){super(),this._model=e,this._source=t}_value(){const e=this._model.mainSeries(),t=e.priceScale(),i=e.firstValue();if(null===i)return{noData:!0};const s=this._source.price(),o=this._source.currentSession();if(null===s||"pre_market"!==o&&"post_market"!==o)return{noData:!0};const n=t.priceToCoordinate(s,i);return{noData:!1,floatCoordinate:n,coordinate:n,color:"",formattedPricePercentage:"",formattedPriceAbsolute:"",formattedPriceIndexedTo100:"", -text:"",index:0}}_priceLineColor(e){const t=this._source.properties().childs();return"pre_market"===this._source.currentSession()?t.preMarketColor.value():t.postMarketColor.value()}_lineWidth(){return this._source.properties().childs().lineWidth.value()}_lineStyle(){return this._source.properties().childs().lineStyle.value()}_isVisible(){if(!this._source.canBeVisibleOnSymbolAndInterval()||!this._model.properties().childs().scalesProperties.childs().showPrePostMarketPriceLabel.value())return!1;const e=this._source.price(),t=this._source.currentSession();return null!==e&&("pre_market"===t||"post_market"===t)}}var Ed=i(36281);class Dd extends Ed.PriceAxisView{constructor(e,t){super(),this._model=e,this._source=t}_updateRendererData(e,t,s){if(e.visible=!1,t.visible=!1,!this._model.properties().childs().scalesProperties.childs().showPrePostMarketPriceLabel.value())return;const o=this._model.mainSeries(),n=o.priceScale(),r=o.firstValue();if(null===r)return;if(!this._source.canBeVisibleOnSymbolAndInterval())return;const l=this._source.price(),c=this._source.currentSession();if(null==l||"pre_market"!==c&&"post_market"!==c)return;const h=this._source.properties().childs(),d="pre_market"===c?(0,Ro.resetTransparency)(h.preMarketColor.value()):(0,Ro.resetTransparency)(h.postMarketColor.value());e.visible=!0,t.visible=!0,e.text=n.formatPriceAbsolute(l),t.text="pre_market"===c?a.t(null,{context:"market_status"},i(93866)):a.t(null,{context:"market_status"},i(35359)),s.coordinate=n.priceToCoordinate(l,r),s.background=d,s.textColor=this.generateTextColor(d)}}var Bd=i(40738);class Vd extends Bd.HorizontalLinePaneView{constructor(e,t,i){super(),this._model=e,this._source=t;const s={doubleClickHandler:i,doubleTapHandler:i};this._lineRenderer.setHitTest(new Ut.HitTestResult(Ut.HitTarget.Regular,s))}_updateImpl(){const e=this._lineRendererData;e.visible=!1;const t=this._model.mainSeries(),i=this._source.properties().childs();if(!i.visible.value()||!t.isVisible())return;const s=t.priceScale(),o=t.firstValue();if(null===o)return;if(!this._source.canBeVisibleOnSymbolAndInterval())return;const n=this._source.price(),r=this._source.currentSession();null===n||"pre_market"!==r&&"post_market"!==r||(e.visible=!0,e.y=s.priceToCoordinate(n,o),e.linestyle=i.lineStyle.value(),e.linewidth=i.lineWidth.value(),e.color="pre_market"===r?i.preMarketColor.value():i.postMarketColor.value())}}qt.LINESTYLE_DOTTED,Rt.colorsPalette["color-tv-blue-500"];class Rd extends Ad.CustomSourceBase{constructor(e,t,i){super(e,t),this._extraHoursPrice=null,this._currentSession="holiday",this._quotesProvider=t.mainSeries().quotesProvider(),this._prePostMarketLinePaneView=new Vd(t,this,i),this._prePostPriceAxisView=new Dd(t,this),this._prePostLabelPaneView=new Id.PanePriceAxisView(this._prePostPriceAxisView,t.mainSeries(),t),this._prePostPriceLineAxisView=new kd(t,this),this._quotesProvider.quotesUpdate().subscribe(this,this._updateQuotes),this._updateQuotes()}destroy(){this._quotesProvider.quotesUpdate().unsubscribeAll(this)}paneViews(e){ -return this._areViewsAvailableForPane(e)?[this._prePostMarketLinePaneView]:[]}labelPaneViews(e){return this._areViewsAvailableForPane(e)?[this._prePostLabelPaneView]:[]}priceAxisViews(e,t){return this._areViewsAvailableForPane(e)?e.findTargetPriceAxisViews(this,t,[this._prePostPriceAxisView],[this._prePostPriceLineAxisView]):[]}priceScale(){return this._model.mainSeries().priceScale()}updateAllViews(e){this._prePostMarketLinePaneView.update(e),this._prePostPriceAxisView.update(e),this._prePostPriceLineAxisView.update(e),this._prePostLabelPaneView.update(e)}price(){return this._extraHoursPrice}currentSession(){return this._currentSession}canBeVisibleOnSymbolAndInterval(){return this._model.mainSeries().isPrePostMarketPricesAvailableProperty().value()}properties(){return this._model.mainSeries().properties().childs().prePostMarket}_updateQuotes(){const e=this._quotesProvider.quotes();null===e?this._extraHoursPrice=null:(this._extraHoursPrice=e.rtc,void 0!==e.current_session&&(this._currentSession=e.current_session));const t=this._model.mainSeries().properties().childs().prePostMarket.childs().visible.value(),i=this._model.properties().childs().scalesProperties.childs().showPrePostMarketPriceLabel.value();this.canBeVisibleOnSymbolAndInterval()&&(t||i)&&(this.updateAllViews((0,wi.sourceChangeEvent)(this.id())),this._model.updateSource(this))}_areViewsAvailableForPane(e){return!this._model.isInReplay().value()&&!this._model.isSnapshot()&&this._model.paneForSource(this._model.mainSeries())===e}}var Nd=i(67225);function Od(e,t){return e.codet.code?1:0}class Fd{constructor(e){this._convertibleItems=e,this._idsToItems=new Map;for(const t of e)this._idsToItems.set(t.id,t)}convertible(e){return void 0!==this._idsToItems.get(e)}item(e){return this._idsToItems.get(e)??null}size(){return this._convertibleItems.length}filterConvertible(e,t){const i=this._convertibleItems.filter(function(e,t){return i=>!e.has(i.id)&&t(i.id)}(e,t));return i.sort(Od),i}getItems(){return this._convertibleItems.map((e=>e.id))}}class Wd{constructor(e){this._allGroups=new Set,this._idToName=new Map,this._idToDescription=new Map,this._groupedUnitIds=new Map,this._groupedUnits=new Map,this._groupById=new Map,this._size=0,this._units=e;for(const t in e)if(e.hasOwnProperty(t)){this._allGroups.add(t),this._groupedUnitIds.set(t,new Set(e[t].map((e=>e.id)))),this._groupedUnits.set(t,e[t]);for(const i of e[t])this._size++,this._idToName.set(i.id,i.name),this._idToDescription.set(i.id,i.description),this._groupById.set(i.id,t)}}unitsChanged(e){return this._units!==e}size(){return this._size}name(e){return this._idToName.get(e)||e}description(e){return this._idToDescription.get(e)||e}unitGroupById(e){return this._groupById.get(e)||null}allGroups(){return new Set(this._allGroups)}unitsByGroups(e){const t=[];return e.forEach((e=>{const i=this._groupedUnits.get(e);void 0!==i&&t.push({name:e,units:i})})),t}convertible(e,t){for(const i of t){const t=this._groupedUnitIds.get(i);if(void 0!==t&&t.has(e))return!0}return!1}}var Hd=i(50335);class zd{ -constructor(e){this._source=null,this._sourcePane=null,this._currentToolSupportsPhantomMode=!1,this._model=e}destroy(){this._source=null,this._sourcePane=null}source(){return this._source}onToolChanged(){this._removeSource(),this._currentToolSupportsPhantomMode=(0,Lt.isLineToolName)(mt.tool.value())&&(0,zs.supportsPhantomMode)(mt.tool.value())}onCursorPositionUpdated(){if(!this._currentToolSupportsPhantomMode)return;const e=this._model.crosshairSource();if(this._sourcePane!==e.pane&&this._removeSource(),null===e.pane||!(0,Hd.isNumber)(e.index)||!(0,Hd.isNumber)(e.price))return void this._removeSource();const t={index:e.index,price:e.price};null!==this._source?this._source.setPoint(0,t):(this._source=this._model.createLineTool({pane:e.pane,point:t,linetool:mt.tool.value()}),this._sourcePane=e.pane)}_removeSource(){null!==this._source&&(this._model.removeSource(this._source),this._source=null,this._sourcePane=null)}}var Ud=i(7024),jd=i(4359);const Gd=(e,t)=>!0,qd=(e,t)=>!t.isPlotForceOverlay(e.id),$d=(e,t)=>t.isPlotForceOverlay(e.id);function Kd(e,t){const i=e.priceScale(),s=e.firstValue();if(null===i||null===s)return;const o=e.bars().valueAt(t);if(null===o)return;let r;if(null!==e.priceSource())r=[e.barFunction()(o)];else switch(e.style()){case 12:r=[(0,n.ensure)(o[2]),(0,n.ensure)(o[3])];break;case 16:case 21:r=[(0,n.ensure)(o[2]),(0,n.ensure)(o[4]),(0,n.ensure)(o[3])];break;default:r=[(0,n.ensure)(o[1]),(0,n.ensure)(o[2]),(0,n.ensure)(o[3]),(0,n.ensure)(o[4])]}return r.map((e=>({y:i.priceToCoordinate(e,s),price:e})))}var Yd;!function(e){e[e.MagnetTolerance=50]="MagnetTolerance"}(Yd||(Yd={}));class Zd{constructor(){this._lastValue=null}align(e,t,i){this._lastValue=null;let s=e;if(!(0,Dn.magnetEnabled)().value())return s;const o=i.mainDataSource();if(null===o)return s;const r=o.priceScale();if(!r||r.isEmpty())return s;const a=o.model().mainSeries(),l=(0,Dn.magnetSnapsToIndicators)().value();if(!l&&o!==a)return s;const c=(0,n.ensure)(o.firstValue()),h=r.priceToCoordinate(e,c),d=i.containsMainSeries()?function(e,t){return Kd(e,t)}(a,t)??[]:[];if(l){i.model().allStudies(!0).filter((e=>e.isVisible())).forEach((e=>{const s=function(e,t,i){const s=e.model(),o=s.paneForSource(e),n=s.mainPane(),r=s.mainSeries();if((0,Ws.isOverlayStudy)(e))return i===o?Kd(e,t):void 0;const a=e.metaInfo();if(!a)return;const l=e.data().valueAt(t);if(null===l)return;const c=a.hasForceOverlayPlots();if(!(i===o||c&&i===n))return;const h=e.priceScale(),d=r.priceScale(),u=e.firstValue(),_=r.firstValue();if(!h||!d||null===u||null===_)return;let p,m,g;o===n?(p=Gd,m=d,g=_):i===o?(p=qd,m=h,g=u):(p=$d,m=d,g=_);const f=a.plots,y=f.filter((t=>!(0,jd.isPlotWithTechnicalValues)(t)&&e.isPlotVisibleAt(t.id,1)&&p(t,a))),v=[];for(const e of y){const t=l[f.indexOf(e)+1];if(null!=t){const i=a.isPlotForceOverlay(e.id),s=(i?d:h).priceToCoordinate(t,i?_:u);v.push({y:s,price:m.coordinateToPrice(s,g)})}}return v}(e,t,i);s&&d.push(...s)}))}if(0===d.length)return s;d.sort(((e,t)=>Math.abs(e.y-h)-Math.abs(t.y-h)));const u=d[0];return((0, -Dn.magnetMode)().value()===Ud.MagnetMode.StrongMagnet||Math.abs(u.y-h)<50)&&(s=u.price,this._lastValue=s),s}lastValue(){return this._lastValue}resetLastValue(){this._lastValue=null}}class Xd{constructor(e){this._appliedTimeFrame=new yt.WatchedObject(null),this._appliedTimeFrameInfo=null,this._appliedTimeFrameChangedBound=this._appliedTimeFrameChanged.bind(this),this._model=e,e.mainSeries().dataEvents().seriesTimeFrame().subscribe(this,this._onSeriesTimeFrame),this._appliedTimeFrame.subscribe(this._appliedTimeFrameChangedBound)}destroy(){this._appliedTimeFrame.unsubscribe(this._appliedTimeFrameChangedBound),this._model.timeScale().logicalRangeChanged().unsubscribeAll(this),this._model.mainSeries().dataEvents().seriesTimeFrame().unsubscribeAll(this)}appliedTimeFrame(){return this._appliedTimeFrame}_appliedTimeFrameChanged(){this._model.timeScale().logicalRangeChanged().unsubscribe(this,this._invalidateAppliedTimeFrame)}_onSeriesTimeFrame(e,t,i,s){if(s){const e=this._model.timeScale();this._appliedTimeFrameInfo={logicalRange:e.logicalRange(),baseIndex:e.baseIndex()},e.logicalRangeChanged().subscribe(this,this._invalidateAppliedTimeFrame)}}_invalidateAppliedTimeFrame(){if(null===this._appliedTimeFrameInfo)return;const e=this._model.timeScale(),t=e.logicalRange(),i=e.baseIndex(),s=this._appliedTimeFrameInfo.logicalRange,o=this._appliedTimeFrameInfo.baseIndex;(null===t||null===s||Math.abs(i-t.left()-(o-s.left()))>=.01||Math.abs(i-t.right()-(o-s.right()))>=.01)&&this._appliedTimeFrame.setValue(null)}}var Jd=i(32955),Qd=i(10307);class eu extends Qd.BitmapCoordinatesPaneRenderer{constructor(){super(...arguments),this._data=null}setData(e){this._data=e}hitTest(e){return null}_drawImpl(e){if(null===this._data)return;const{context:t,verticalPixelRatio:i,horizontalPixelRatio:s,bitmapSize:o}=e,n=Math.max(1,Math.floor(s));t.lineWidth=n;const r=Math.ceil(o.height*i),a=Math.ceil(o.width*s);if(t.lineCap="butt",this._data.vertLinesVisible){t.strokeStyle=this._data.vertLinesColor,(0,$t.setLineStyle)(t,this._data.vertLineStyle);for(const e of this._data.timeMarks){const i=Math.round(e.coord*s);(0,$t.drawVerticalLine)(t,i,0,r)}}if(this._data.horzLinesVisible){t.strokeStyle=this._data.horzLinesColor,(0,$t.setLineStyle)(t,this._data.horzLineStyle);for(const e of this._data.priceMarks){const s=Math.round(e.coord*i);(0,$t.drawHorizontalLine)(t,s,0,a)}}}}class tu{constructor(e){this._renderer=new eu,this._pane=e}update(){}renderer(){const e=this._pane.defaultPriceScale(),t=this._pane.model().timeScale();if(e.isEmpty()||t.isEmpty())return null;const i=this._pane.model().properties().childs().paneProperties.childs(),s=t.marks(),o=i.gridLinesMode.value(),n={horzLinesVisible:"both"===o||"horz"===o,vertLinesVisible:"both"===o||"vert"===o,horzLinesColor:i.horzGridProperties.childs().color.value(),vertLinesColor:i.vertGridProperties.childs().color.value(),horzLineStyle:i.horzGridProperties.childs().style.value(),vertLineStyle:i.vertGridProperties.childs().style.value(),priceMarks:e.marks(),timeMarks:null!==s?s:[]};return this._renderer.setData(n), -this._renderer}}class iu extends bi.DataSource{constructor(e){super(),this._model=e}id(){return"grid"}paneViews(e){return e.mode()===zi.PaneMode.Regular?[new tu(e)]:null}name(){return"Grid"}model(){return this._model}contextMenuStatName(){return"GridContextMenu"}}class su extends Ed.PriceAxisView{constructor(e,t,i,s){super(),this._source=e,this._pane=t,this._priceScale=i,this._priceProvider=s,this._properties=e.model().properties().childs().scalesProperties}setHitTestData(e){this._hitTestData=e}setXCoord(e){this._xCoord=e}additionalPadding(e){return 0}_updateRendererData(e,t,i){if(e.visible=!1,t.visible=!1,this._pane.model().chartFloatingTooltipVisible().value())return;const s=this._priceScale,o=s.mainSource(),n=null!==o?o.firstValue():null;if(!this._isVisible()||s.isEmpty()||null===n)return;const r=this._currentPrice(s);if(null===r)return;i.background=(0,Ro.resetTransparency)(this._bgColor()),i.textColor=this.generateTextColor(i.background);const a=this.additionalPadding(s.fontSize());i.additionalPaddingTop=a,i.additionalPaddingBottom=a,i.coordinate=s.priceToCoordinate(r,n),e.text=s.formatPrice(r,n),e.visible=!0,t.visible=!0,t.hitTestData=this._hitTestData,t.xCoord=this._xCoord}_currentPrice(e){return this._priceProvider(e)}}class ou extends su{additionalPadding(e){return 2/12*e}_isVisible(){const e=this._source.lockedPane();return this._properties.childs().showPriceScaleCrosshairLabel.value()&&(this._source.visible||null!==e)&&(e??this._source.pane)===this._pane}_currentPrice(e){const t=mt.crosshairLock.value();return null!==t&&1===t.type?this._pane===this._source.lockedPane()?t.price:null:super._currentPrice(e)}_bgColor(){const e=this._properties.childs();return this._source.model().dark().value()?e.crosshairLabelBgColorDark.value():e.crosshairLabelBgColorLight.value()}_updateRendererData(e,t,i){const s=t.visible;super._updateRendererData(e,t,i),this._source.isHovered()?t.backgroung=this._source.model().dark().value()?Rt.colorsPalette["color-cold-gray-600"]:Rt.colorsPalette["color-cold-gray-650"]:t.backgroung=void 0,s||(t.visible=s)}}class nu extends su{_isVisible(){return null!==this._source.measurePane().value()}_bgColor(){return this._properties.childs().axisLineToolLabelBackgroundColorCommon.value()}}var ru,au,lu=i(33718);function cu(e){const t=e.priceScale();return null===t?0:t.isPercentage()||t.isIndexedTo100()?2:1}!function(e){e[e.NotDefined=0]="NotDefined",e[e.Regular=1]="Regular",e[e.Unregular=2]="Unregular"}(ru||(ru={}));class hu extends Id.PanePriceAxisView{constructor(e,t,i,s,o){super(e,t,s),this._crossHairMenuCachedState=null,this._hasActions=!1,this._gaOrigin="CH menu",this._crosshairPriceAxisView=e,e.setPaneRendererLabelIcon(0),this._crosshair=t,this._scale=i,this._options=o,this._updateGaOrigin()}_updateImpl(e){ -const t=this._crosshair.y,i=this._chartModel.properties().childs().scalesProperties.childs().fontSize.value(),s=this._chartModel.timeScale().width(),o=this._crosshair.model().priceAxisRendererOptions(),n=i+2*this._crosshairPriceAxisView.additionalPadding(i)+o.paddingTop+o.paddingBottom,r=n,a=t-n/2,c=this._crosshair.pane,h=this._mainDataSourceOnPane(),d=h&&h.symbolSource(),u=!!d&&(d.isConvertedToOtherCurrency()||d.isConvertedToOtherUnit());if(this._updateGaOrigin(),null!==h){const e=cu(h),t=h.idForAlert(),i=this._chartModel.isInReplay().value(),s=this._crossHairMenuCachedState,o=l.enabled("chart_crosshair_menu");null!==s&&s.id===t&&s.priceScale===e&&s.isCurrencyOrUnitConverted===u&&s.isInReplay===i&&s.isMenuEnabled===o||(this._updateTooltipAndActionsAvailability(h,e,u),this._crossHairMenuCachedState={id:t,priceScale:e,isCurrencyOrUnitConverted:u,isInReplay:i,isMenuEnabled:o})}const _=null!==h&&(0,Lr.isActingAsSymbolSource)(h)?h.symbol():null,p=null!==c&&(c.maximized().value()||!c.collapsed().value())&&(Boolean(_)||!1);this._crosshairPriceAxisView.setPaneLabelVisible(p);const m=this._position();if(null!==m){const e=0,t=s-r,i=Boolean(lu.showPlusButtonOnCursor.value()),o=i?this._crosshair.x:void 0,l=void 0!==o?o-r/2:"left"===m?e:t,c=void 0!==o?o+r/2:"left"===m?e+r:t+r,h=(0,Vt.box)(new Vt.Point(l,a),new Vt.Point(c,a+n));this._data={itemBox:h,clickHandler:this._handleClick.bind(this,m,i,h)},this._crosshairPriceAxisView.setHitTestData(this._data),this._crosshairPriceAxisView.setXCoord(o)}super._updateImpl(e)}_priceScale(){return this._scale}_updateGaOrigin(){this._gaOrigin=Boolean(lu.showPlusButtonOnCursor.value())?"CH menu cursor":"CH menu"}_updateTooltipAndActionsAvailability(e,t,i){this._hasActions=!1;if(!(1===t))return;this._chartModel.isInReplay().value();this._hasActions=!1}_handleClick(e,t,i,s,o){(0,re.trackEvent)(this._gaOrigin,"click");const n=this._mainDataSourceOnPane(),r=null!==n&&(0,Lr.isActingAsSymbolSource)(n)?n.symbol():null,a={pageX:o.pageX,pageY:o.pageY,clientX:o.clientX,clientY:o.clientY,screenX:o.screenX,screenY:o.screenY,price:this._crosshair.price,symbol:r};ee.emit("onPlusClick",a)}async _getMenuItems(e){return Promise.resolve([])}_createAlertMenuItems(e){return Promise.resolve([])}_getAddAlertActionOptions(e,t,i){return{dataSource:e,y:t,disabled:i,analyticsOpt:{method:"crosshair_menu",source:"chart",actionSource:"crosshair_menu",gaOrigin:this._gaOrigin}}}_createTradingMenuItems(){return Promise.resolve([])}async _createAddHorizontalLineMenuItem(){return[]}async _getActionAddHorizontalLine(e){return null}_getValue(e,t){const i=e.priceScale(),s=e.firstValue();if(null===i||null===s)return null;return i.isPercentage()||i.isIndexedTo100()?null:i.coordinateToPrice(t,s)}_showContextMenu(e,t,i,s,o){const r="left"===o;setTimeout((()=>{const o=s.clientX-s.localX,a=s.clientY-s.localY,l=i.min.x+o,c=i.max.x+o,h=i.min.y+a,d=c-l,u=i.max.y+a-h,_=t?mt.crosshairLock.value():void 0;if(void 0!==_){const e=(0,n.ensureNotNull)(this._chartModel.timeScale().points().roughTime(this._crosshair.index)) -;mt.crosshairLock.setValue({type:1,price:this._crosshair.price,time:e,modelId:this._chartModel.id(),paneId:(0,n.ensureNotNull)(this._crosshair.pane).id()})}Io.ContextMenuManager.showMenu(e,{clientX:s.clientX,clientY:s.clientY,box:{x:l,w:d,y:h,h:u},attachToXBy:t?"auto":r?"left":"right",attachToYBy:"auto-strict",marginX:t?0:-d},void 0,{menuName:"CrosshairMenuView"},(()=>{void 0!==_&&mt.crosshairLock.setValue(_)}))}))}_mainDataSourceOnPane(){const e=this._crosshair.pane;return null!==e?e.mainDataSource():null}}class du extends Qd.BitmapCoordinatesPaneRenderer{constructor(e){super(),this._data=e}hitTest(e){return void 0===this._data.clickHandler?null:new Ut.HitTestResult(Ut.HitTarget.Custom,{clickHandler:this._data.clickHandler,tapHandler:this._data.clickHandler})}_drawImpl(e){const t=this._data.vertLinesVisible,i=this._data.horzLinesVisible;if(!t&&!i)return;const{context:s,horizontalPixelRatio:o,verticalPixelRatio:n,bitmapSize:r}=e;s.lineWidth=Math.max(1,Math.floor(this._data.lineWidth*o)),s.strokeStyle=this._data.color,s.fillStyle=this._data.color,s.lineCap="butt",(0,$t.setLineStyle)(s,this._data.lineStyle);const a=Math.round(this._data.x*o),l=Math.round(this._data.y*n),c=Math.ceil(r.width*o),h=Math.ceil(r.height*n);t&&a>=0&&(0,$t.drawVerticalLine)(s,a,0,h),i&&l>=0&&(0,$t.drawHorizontalLine)(s,l,0,c),this._data.drawCenter&&(s.beginPath(),s.arc(a,l,Math.round(3*o),0,2*Math.PI,!0),s.fillStyle=this._data.color,s.fill()),this._data.scissors&&function(e,t,i){const{context:s,bitmapSize:o,horizontalPixelRatio:n,verticalPixelRatio:r}=e,a=24*n,l=Math.round(t-a/2);let c=Math.round(i-a/2);if(c<0)c=0;else{const e=o.height-a;c>e&&(c=e)}s.translate(l,c),s.scale(n,r),s.fillStyle="#0f0f0f",s.fill(uu),s.strokeStyle="#fff",s.lineWidth=1,s.stroke(uu)}(e,a,l)}}!function(e){e.Path="m15.68 3.72-3.82 5.52-3.83-5.52-.28-.42-.42.3a2.84 2.84 0 0 0-.68 3.92l3.27 4.73-1.16 1.68a3.34 3.34 0 0 0-4.26 3.22 3.34 3.34 0 0 0 3.32 3.35 3.34 3.34 0 0 0 3.08-4.6l1-1.44 1.13 1.62a3.34 3.34 0 0 0 3.15 4.42c1.84 0 3.32-1.5 3.32-3.35a3.34 3.34 0 0 0-4.42-3.17l-1.23-1.78 3.22-4.65a2.86 2.86 0 0 0-.69-3.96l-.41-.29-.29.42ZM7.82 16.27c.47 0 .86.39.86.88 0 .48-.39.87-.86.87a.87.87 0 0 1-.86-.87c0-.5.4-.88.86-.88Zm8.36 0c.47 0 .86.39.86.88 0 .48-.4.87-.86.87a.87.87 0 0 1-.86-.87c0-.5.39-.88.86-.88Z",e[e.Size=24]="Size",e.FillColor="#0f0f0f",e.StrokeColor="#fff",e[e.StrokeWidth=1]="StrokeWidth"}(au||(au={}));const uu=new Path2D("m15.68 3.72-3.82 5.52-3.83-5.52-.28-.42-.42.3a2.84 2.84 0 0 0-.68 3.92l3.27 4.73-1.16 1.68a3.34 3.34 0 0 0-4.26 3.22 3.34 3.34 0 0 0 3.32 3.35 3.34 3.34 0 0 0 3.08-4.6l1-1.44 1.13 1.62a3.34 3.34 0 0 0 3.15 4.42c1.84 0 3.32-1.5 3.32-3.35a3.34 3.34 0 0 0-4.42-3.17l-1.23-1.78 3.22-4.65a2.86 2.86 0 0 0-.69-3.96l-.41-.29-.29.42ZM7.82 16.27c.47 0 .86.39.86.88 0 .48-.39.87-.86.87a.87.87 0 0 1-.86-.87c0-.5.4-.88.86-.88Zm8.36 0c.47 0 .86.39.86.88 0 .48-.4.87-.86.87a.87.87 0 0 1-.86-.87c0-.5.39-.88.86-.88Z");const _u=Rt.colorsPalette["color-tv-blue-500"];class pu{constructor(e,t){this._rendererData={},this._renderer=new du(this._rendererData), -this._source=e,this._pane=t}update(){}renderer(){const e=this._source.selectPointMode().value()!==mt.SelectPointMode.None,t=this._source.lockedPane(),i=(this._source.visible||null!==t)&&(this._source.areLinesVisible||e)&&!this._source.linesShouldBeHidden(),s=this._rendererData;if(!i||null===this._pane)return null;const o=this._source.paneForPointSelect(),r=this._source.isReplaySelection(),a=t??this._source.pane,l=this._pane===a,c=r||(null!==o?a===o&&this._pane===o:l);if(s.scissors=!1,e&&(r||this._source.isOnHoveredChartWidget())&&c){const e=(0,n.ensureNotNull)(this._source.pointToSelect());s.color=this._source.lineColor()||_u,r?(s.lineWidth=2,s.scissors=l):s.lineWidth=1,s.lineStyle=qt.LINESTYLE_SOLID,s.horzLinesVisible=!0,s.vertLinesVisible=!0,s.drawCenter=!1,"time"===e?s.horzLinesVisible=!1:"price"===e&&(s.vertLinesVisible=!1)}else{const e=this._source.properties(),t=mt.tool.value(),i=(0,lo.lastMouseOrTouchEventInfo)(),o=i.isTouch&&!i.stylus&&((0,Lt.isLineToolName)(t)||(0,mt.toolIsMeasure)(t));let n;n=o?_u:e.childs().color.value();const r=e.childs().transparency.value();!o&&r>0&&(n=(0,Ro.generateColor)(n,r)),s.color=n,s.horzLinesVisible=!this._pane.model().chartFloatingTooltipVisible().value()&&this._pane===a&&(this._pane.maximized().value()||!this._pane.collapsed().value()),s.vertLinesVisible=!0,s.lineWidth=e.childs().width.value(),s.lineStyle=e.childs().style.value(),s.drawCenter=o&&this._pane===a}return s.x=this._source.lockedX()??this._source.x,s.y=this._source.lockedY()??this._source.y,this._renderer}}var mu=i(86228);const gu={backgroundColor:(0,Ro.generateColor)(Rt.colorsPalette["color-tv-blue-500"],70),borderColor:(0,Ro.generateColor)(Rt.colorsPalette["color-tv-blue-500"],20)};class fu{constructor(e){this._renderer=new mu.RectangleRenderer,this._rectangle=null,this._crosshair=e}update(){const e=this._crosshair.selection();null!==e&&null!==this._crosshair.pane?this._rectangle=this._crosshair.pane.logicalRectToPixels(e):this._rectangle=null}renderer(){if(!this._rectangle)return null;const e={backcolor:gu.backgroundColor,color:gu.borderColor,fillBackground:!0,linewidth:1,points:[this._rectangle.min,this._rectangle.max],extendLeft:!1,extendRight:!1};return this._renderer.setData(e),this._renderer}}var yu=i(24640),vu=i(50605),Su=i(18185),bu=i(80819),wu=i(4753),Cu=i(25672);const Tu=a.t(null,void 0,i(41643)),Pu=a.t(null,{context:"study"},i(24261)),xu=(0,hh.getPercentageFormatter)(),Mu=new Su.TimeSpanFormatter,Iu=(0,hh.getVolumeFormatter)(),Au=(0,Rt.getHexColorByName)("color-tv-blue-500"),Lu=(0,Rt.getHexColorByName)("color-ripe-red-400"),ku={bgColorPositive:(0,Ro.generateColor)(Au,80),bgColorNegative:(0,Ro.generateColor)(Lu,80),colorPositive:(0,Rt.getHexColorByName)("color-tv-blue-600"),colorNegative:(0,Rt.getHexColorByName)("color-ripe-red-400"),labelBgColorPositive:Au,labelBgColorNegative:Lu};var Eu;!function(e){e[e.MinArrowDistance=50]="MinArrowDistance"}(Eu||(Eu={}));class Du{constructor(e,t){this._horzTrenRenderer=new bu.TrendLineRenderer,this._vertTrenRenderer=new bu.TrendLineRenderer, -this._bgRenderer=new mu.RectangleRenderer,this._labelRenderer=new wu.TextRenderer,this._p1=null,this._p2=null,this._source=e,this._pane=t}update(e){const[t,i]=this._source.measurePoints();if(void 0===i)return this._p1=null,void(this._p2=null);const s=(0,n.ensureNotNull)(this._source.measurePane().value()),o=t.price,r=i.price,a=i.index-t.index,l=(0,yu.forceLTRStr)(""+a),c=(0,n.ensureNotNull)(s.mainDataSource()),h=c.firstValue();if(null===h)return this._p1=null,void(this._p2=null);const d=this._source.model().timeScale().indexToCoordinate(t.index),u=this._source.model().timeScale().indexToCoordinate(i.index),_=s.defaultPriceScale().priceToCoordinate(o,h),p=s.defaultPriceScale().priceToCoordinate(r,h);this._p1=new Vt.Point(d,_),this._p2=new Vt.Point(u,p);const g=this._source.model().timeScale().indexToUserTime(t.index),f=this._source.model().timeScale().indexToUserTime(i.index);let y=null;null!==g&&null!==f&&(y=(f.valueOf()-g.valueOf())/1e3);const v=r-o,S=100*v/Math.abs(o),b=this._pane.model().mainSeries().symbolInfo(),w=b&&(0,hh.getPipFormatter)(b),C=(0,n.ensureNotNull)(c.formatter()),T=(C.formatChange?.(r,o)??C.format(v))+" ("+xu.format(Math.round(100*S)/100)+") "+(w?w.format(v):""),P=null!==y?Mu.format(y):null,x=null!==P?", "+(0,yu.startWithLTR)(P):"";let M=(0,yu.forceLTRStr)(T)+"\n"+Tu.format({count:l})+x;const I=this._source.measureVolume();Number.isNaN(I)||(M+=`\n${Pu} ${Iu.format(I)}`);const A=r=50?Cu.LineEnd.Arrow:Cu.LineEnd.Normal};this._horzTrenRenderer.setData(s)}{const e=Math.round(D.x),t=new Vt.Point(e,this._p1.y),i=new Vt.Point(e,this._p2.y),s={points:[t,i],color:L,linewidth:1,linestyle:qt.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:Cu.LineEnd.Normal,rightend:Math.abs(t.y-i.y)>=50?Cu.LineEnd.Arrow:Cu.LineEnd.Normal};this._vertTrenRenderer.setData(s)}const B={x:0,y:10},V=.5*(this._p1.x+this._p2.x),R=this._p2.y,N=new Vt.Point(V,R),O={points:[N],text:M,color:"#FFFFFF",horzAlign:vu.HorizontalAlign.Center,vertAlign:vu.VerticalAlign.Middle,font:m.CHART_FONT_FAMILY,offsetX:B.x,offsetY:B.y,bold:!1,italic:!1,fontsize:12,lineSpacing:8,backgroundColor:k,backgroundTransparency:10,boxPaddingVert:9,boxPaddingHorz:9,backgroundRoundRect:4};this._labelRenderer.setData(O);const F=this._labelRenderer.measure(),W=(0,wu.calculateLabelPosition)(F,this._p1,this._p2,B,this._pane.height());this._labelRenderer.setPoints([W])}renderer(){if(null===this._p1||null===this._p2)return null;const e=new jt.CompositeRenderer;return e.append(this._bgRenderer),e.append(this._horzTrenRenderer), -e.append(this._vertTrenRenderer),e.append(this._labelRenderer),e}}var Bu,Vu=i(99875);!function(e){e[e.Light=0]="Light",e[e.Dark=1]="Dark"}(Bu||(Bu={}));class Ru extends vc.MediaCoordinatesPaneRenderer{constructor(e){super(),this._svgMap=new Map,this._data=e,this._svgMap.set(e.theme,this._createSvgRenderer(e.theme))}hitTest(){return null}setData(e){this._svgMap.has(e.theme)||this._svgMap.set(e.theme,this._createSvgRenderer(e.theme)),this._data=e}_drawImpl(e){const{context:t,mediaSize:i}=e,{theme:s,x:o}=this._data,n=this._svgMap.get(s);if(!n)return;const r=n.viewBox(),{width:a,height:l}=r,c=a/2;o+c<0||o-c>i.width||(t.translate(o-c,i.height-l),n.render(t,{targetViewBox:r}))}_createSvgRenderer(e){const t=1===e?Vu.replace("backgroundColor",(0,Rt.getHexColorByName)("color-cold-gray-900")).replace("lineColor",(0,Rt.getHexColorByName)("color-cold-gray-450")):Vu.replace("backgroundColor",(0,Rt.getHexColorByName)("color-white")).replace("lineColor",(0,Rt.getHexColorByName)("color-cold-gray-550"));return(0,Mo.svgRenderer)(t)}}class Nu{constructor(e){this._source=e,this._renderer=new Ru(this._getRenderData(0))}update(){}renderer(){const e=this._source.visible&&this._source.areLinesVisible,t=this._source.lockedX(),i=0===mt.crosshairLock.value()?.type;return e&&i&&null!==t?(this._renderer.setData(this._getRenderData(t+1)),this._renderer):null}_getRenderData(e){return{x:e,theme:this._source.model().dark().value()?1:0}}}var Ou=i(40137),Fu=i(53660);class Wu extends Ou.DataWindowView{constructor(e){super(),this._invalidated=!0,this._dateItem=new Ou.DataWindowItem("",a.t(null,void 0,i(22677)),""),this._timeItem=new Ou.DataWindowItem("",a.t(null,void 0,i(12806)),""),this._model=e,this._items.push(this._dateItem),this._items.push(this._timeItem)}update(){this._invalidated=!0}items(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._items}_updateImpl(){const e=this._model.mainSeries().isDWM();if(this._timeItem.setVisible(!e),this._timeItem.setValue(Fu.notAvailable),this._dateItem.setValue(Fu.notAvailable),this._model.timeScale().isEmpty())return;let t=this._model.crosshairSource().appliedIndex();if(!(0,Hd.isNumber)(t)){const e=this._model.mainSeries().data().last();if(null===e)return;t=e.index}const i=this._model.timeScale().indexToUserTime(t);null!==i&&(this._dateItem.setValue(this._model.dateFormatter().format(i)),e||this._timeItem.setValue(this._model.timeFormatter().format(i)))}}var Hu=i(23752);const zu=Rt.colorsPalette["color-tv-blue-500"],Uu=a.t(null,{context:"Replay"},i(53310));class ju extends Hu.TimeAxisView{constructor(e,t,i,s=!1){super(e),this._indexProvider=i,this._highlighted=s,this._source=t,this._properties=e.properties().childs().scalesProperties}_getText(e){if(this._source.isReplaySelection()){const t=this._model.timeScale().indexToUserTime(e);return null!==t?`${Uu}: ${this._model.dateTimeFormatter().format(t)}`:""}return super._getText(e)}_getBgColor(){if(this._source.isReplaySelection())return zu;const e=this._properties.childs() -;return this._highlighted?e.axisLineToolLabelBackgroundColorCommon.value():this._model.dark().value()?e.crosshairLabelBgColorDark.value():e.crosshairLabelBgColorLight.value()}_getIndex(){return this._model.crosshairSource().visible||null!==this._source.lockedPane()?this._indexProvider():null}_isVisible(){return this._properties.childs().showTimeScaleCrosshairLabel.value()}}var Gu,qu=i(19233),$u=i(39697),Ku=i(49156);!function(e){e[e.LineWidth=36]="LineWidth",e[e.CircleBorderWidth=1]="CircleBorderWidth",e[e.AnimationDuration=4e3]="AnimationDuration"}(Gu||(Gu={}));const Yu=(0,Ro.applyAlpha)(Ku.colors.colorRipeRed500,.25),Zu=(0,Ro.applyAlpha)(Ku.colors.colorRipeRed500,.03);class Xu{constructor(e){this._invalidated=!0,this._circleRenderer=new $u.CircleRenderer,this._source=e}update(e){this._invalidated=!0}renderer(e){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._circleRenderer}_updateImpl(){const e=this._source.originX(),t=this._source.originY();Number.isFinite(e)&&Number.isFinite(t)?this._circleRenderer.setData({center:(0,Vt.point)(e,t),radius:18,lineWidth:1,color:Zu,backColor:Yu,disableInteractions:!0}):this._circleRenderer.setData(null)}}class Ju{constructor(e){this._activeHighlighter=null,this._highlighters=new Map,this._toolsFactory=null,this._throttleUpdateHighlighters=(0,o.default)((()=>{const e=(0,wi.sourceChangeEvent)(this._crosshair.id());let t=!1;const i=Array.from(this._highlighters.keys());for(const s of i){const i=[];for(const t of(0,n.ensureDefined)(this._highlighters.get(s)))t.animationProgress()<1?(t.updateAllViews(e),i.push(t)):t.destroy?.();i.length>0?(this._highlighters.set(s,i),t=!0):this._highlighters.delete(s)}t&&this._crosshair.model().updateSource(this._crosshair)}),20,{leading:!0}),this._crosshair=e,this._view=new Xu(e),this._currentTool=mt.tool.spawn(),this._currentTool.subscribe((e=>{(0,mt.toolIsDemonstration)(e)&&null===this._toolsFactory&&(this._toolsFactory=new Jl.AsyncResourceWrapper((async()=>{const e=await i.e(360).then(i.bind(i,76196));return(t,i,s,o)=>new e.LineToolDemonstrationHighlighter(t,i,s,o)})()))}),{callWithLast:!0})}destroy(){for(const[,e]of this._highlighters)for(const t of e)t.destroy?.();this._currentTool.destroy()}update(e){this._view.update(e);for(const[,t]of this._highlighters)for(const i of t)i.updateAllViews(e)}paneViews(e){const t=[];e===this._crosshair.pane&&(0,mt.toolIsDemonstration)(mt.cursorTool.value())&&t.push(this._view);for(const i of this._highlighters.get(e)??[]){const s=i.paneViews(e);s&&t.push(...s)}return this._highlighters.size>0&&this._throttleUpdateHighlighters(),t}createHighlighter(){const e=this._toolsFactory?.get();if(!e)return;this._activeHighlighter=e(this._crosshair.model(),Yu,36,4e3);const t=(0,n.ensureNotNull)(this._crosshair.pane),i=(0,n.ensureNotNull)(t.mainDataSource());(0,zs.prepareLineToolPropertiesByOwnerSource)(this._activeHighlighter.properties(),i),this._activeHighlighter.setOwnerSource(i);const s=this._highlighters.get(t)??[];s.push(this._activeHighlighter),this._highlighters.set(t,s)} -addHighlighterPosition(e){this._activeHighlighter?.addPoint(e),this.update((0,wi.sourceChangeEvent)(this._crosshair.id()))}isThereUnfinishedHighlighter(){return null!==this._activeHighlighter}finishHighlighter(){this._activeHighlighter?.finish(),this._activeHighlighter=null,this._throttleUpdateHighlighters()}}const Qu={menuEnabled:!1,menuForMainSourceOnly:!1,disableTradingMenuActions:!1,disableDrawHorizLineMenuAction:!1};let e_=0;const t_=(0,ne.getLogger)("Chart.Crosshair");class i_ extends bi.DataSource{constructor(e,t,i){super(),this.pane=null,this.price=NaN,this.index=NaN,this.visible=!0,this.areLinesVisible=!0,this.x=NaN,this.y=NaN,this._lockData=null,this._crosshairDemonstration=new Ju(this),this._measurePane=new O.WatchedValue(null),this._measurePaneViewCache=new WeakMap,this._startMeasurePoint=null,this._endMeasurePoint=null,this._lastValidMeasurePoint=null,this._normalizedMeasurePoints=null,this._linesShouldBeHidden=!1,this._isOnHoveredChartWidget=!1,this._crossHairSelectPointMode=new O.WatchedValue(mt.SelectPointMode.None),this._selectionPane=null,this._selectionView=new fu(this),this._selectionStartPoint=null,this._timeLockPaneView=null,this._crosshairPaneViewCache=new WeakMap,this._pointSelectionPaneViewCache=new WeakMap,this._priceAxisViews=new Map,this._panePriceAxisViews=new Map,this._startMeasurePriceAxisViews=new Map,this._endMeasurePriceAxisViews=new Map,this._originX=NaN,this._originY=NaN,this._subscribed=!1,this._movedDelegate=new ae.Delegate,this._pointSelectedDelegate=new ae.Delegate,this._requestedPoint=null,this._paneForRequestedPoint=null,this._selectLineColor=null,this._volumeCalculator=null,this._selectFromAllChartsIfOutOfData=null,this._currentMeasurePointsetAndSymbolId=null,this._model=e,this._options=Object.assign({},Qu,i||{}),this._dataWindowView=new Wu(e),this.setSelectionEnabled(!1);const s=e=>t=>t===(0,n.ensureNotNull)(this._measurePane.value()).defaultPriceScale()?e():null;this._currentPosPriceProvider=e=>{const t=(0,n.ensureNotNull)(this.pane);if(e===t.defaultPriceScale())return this.price;const i=(0,n.ensureNotNull)(t.defaultPriceScale().mainSource()).firstValue();if(null===i)return null;const s=t.defaultPriceScale().priceToCoordinate(this.price,i),o=(0,n.ensureNotNull)(e.mainSource()).firstValue();return null===o?null:e.coordinateToPrice(s,o)},this._startMeasurePriceProvider=s((()=>(0,n.ensureNotNull)(this._startMeasurePoint).price)),this._endMeasurePriceProvider=s((()=>(0,n.ensureNotNull)(this._lastMeasurePoint()).price)),this._properties=t;this._timeAxisView=new ju(e,this,(()=>this.appliedIndex()),!1),this._startMeasureTimeAxisView=new ju(e,this,(()=>(0,n.ensureNotNull)(this._startMeasurePoint).index),!0),this._endMeasureTimeAxisView=new ju(e,this,(()=>(0,n.ensureNotNull)(this._lastMeasurePoint()).index),!0),this._cursorTool=mt.cursorTool.spawn(),e.readOnly()||this._cursorTool.subscribe((e=>this.areLinesVisible="arrow"!==e),{callWithLast:!0}),this._crosshairLock=mt.crosshairLock.spawn(),this._showPlusButtonOnCursor=lu.showPlusButtonOnCursor.spawn();const o=()=>{ -this.updateAllViews((0,wi.sourceChangeEvent)(this.id())),this._model.lightUpdate()};this._crosshairLock.subscribe(o),this._showPlusButtonOnCursor.subscribe(o)}destroy(){null!==this._volumeCalculator&&this._volumeCalculator.destroy(),this._measurePane.setValue(null),this._crosshairLock.destroy(),this._showPlusButtonOnCursor.destroy(),this._cursorTool.destroy(),this._removeMeasurePointset(),this._crosshairDemonstration.destroy(),super.destroy()}name(){return"Crosshair"}moved(){return this._movedDelegate}originX(){return this._originX}originY(){return this._originY}saveOriginCoords(e,t){this._originX=e,this._originY=t}clearOriginCoords(){this._originX=NaN,this._originY=NaN}currentPoint(){return new Vt.Point(this.x,this.y)}model(){return this._model}appliedIndex(){return this._getLockData().index??this.index}lockedX(){return this._getLockData().xCoord??null}lockedY(){return this._getLockData().yCoord??null}lockedPane(){const e=mt.crosshairLock.value();return null===e||1!==e.type?null:this._model.id()===e.modelId?this._model.paneForId(e.paneId):this._model.mainPane()}invalidateLockPosition(){this._lockData=null}startMeasurePoint(){return this._startMeasurePoint||null}endMeasurePoint(){return this._endMeasurePoint||null}measureVolume(){if(null===this._volumeCalculator)return NaN;const[e,t]=this.measurePoints();return void 0===t?NaN:this._volumeCalculator.volume(e.index,t.index)}measurePane(){return this._measurePane.readonly()}crosshairDemonstration(){return this._crosshairDemonstration}startMeasuring(e,t){this._startMeasurePoint=e,this._measurePane.setValue(t),t.containsMainSeries()&&((0,n.assert)(null===this._volumeCalculator),this._volumeCalculator=new qu.SeriesTimeRangeVolumeCalculator(this.model().mainSeries())),this._model.updatePane(t)}finishMeasure(e){this._endMeasurePoint=e,this._createMeasurePointset((0,n.ensureNotNull)(this._startMeasurePoint),this._endMeasurePoint)}clearMeasure(){this._removeMeasurePointset(),this._measurePane.setValue(null),delete this._startMeasurePoint,delete this._endMeasurePoint,delete this._lastValidMeasurePoint,this._model.lightUpdate(),null!==this._volumeCalculator&&(this._volumeCalculator.destroy(),this._volumeCalculator=null)}measurePoints(){const e=[(0,n.ensureNotNull)(this._startMeasurePoint)],t=this._lastMeasurePoint();return null!==t&&e.push(t),e}startSelection(e){this._selectionStartPoint=this.currentLogicalPoint(),this._selectionPane=e}clearSelection(){this._selectionStartPoint=null,this._selectionPane=null}selection(){return this._selectionStartPoint?{p1:this._selectionStartPoint,p2:this.currentLogicalPoint()}:null}currentLogicalPoint(){return{index:this.appliedIndex(),price:this.price}}selectPointMode(){return this._crossHairSelectPointMode}lineColor(){return this._selectLineColor}cancelRequestSelectPoint(){this._crossHairSelectPointMode.value()!==mt.SelectPointMode.None&&this._setSelectPointModeState(mt.SelectPointMode.None),this._selectFromAllChartsIfOutOfData=null}requestSelectPoint(e){(0, -n.assert)(this._crossHairSelectPointMode.value()===mt.SelectPointMode.None,"Point already requested");const{pointType:t,pane:i,lineColor:s=null,selectFromAllChartsIfOutOfData:o,selectPointMode:r=mt.SelectPointMode.Study}=e;i&&((0,n.assert)(-1!==this._model.panes().indexOf(i),"Chartmodel doesn't contains specified pane"),this._paneForRequestedPoint=i,this._model.panesCollectionChanged().subscribe(this,this._paneCollectionChanged)),this._selectLineColor=s,this._requestedPoint=t,this._selectFromAllChartsIfOutOfData=o??null,this._setSelectPointModeState(r)}onPointSelected(){return this._pointSelectedDelegate}trySelectCurrentPoint(){const e=this.pane;if(!e)return;const t=(0,n.ensureNotNull)(this._requestedPoint);let i=null;if(!this._model.mainSeries().bars().search(this.index,dd.PlotRowSearchMode.Exact)&&"price"!==t&&(this._selectFromAllChartsIfOutOfData&&(i=Math.min(...Array.from(mt.barTimesUnderCursor.values()))??null),null===i))return;if(this._paneForRequestedPoint&&this._paneForRequestedPoint!==e)return;let s,o=i;if("price"===t||null!==i||(o=this._model.timeScale().indexToTimePoint(this.index),null!==o)){if("time"!==t){const t=e.mainDataSource();if(null===t)return;const i=t.firstValue(),o=t.priceScale();if(null===i||null===o)return;s=o.coordinateToPrice(this.y,i)}this._setSelectPointModeState(mt.SelectPointMode.None),this._pointSelectedDelegate.fire({time:o??void 0,price:s},e)}}isOnHoveredChartWidget(){return this._isOnHoveredChartWidget}setOnHoveredChartWidget(e){this._isOnHoveredChartWidget=e}isReplaySelection(){return!1}clearPosition(){this.visible=!1,this.index=NaN,this.price=NaN,this.x=NaN,this.y=NaN,this.pane=null,this.clearOriginCoords(),this._updateVisibilityDependentPaneViews()}setPosition(e,t,i){this._subscribed||(this._model.mainSeries().onRestarted().subscribe(this,this.clearMeasure),this._subscribed=!0),this.visible=!0;const s=this._model.id(),o=this._model.mainSeries().bars().search(this.index,dd.PlotRowSearchMode.NearestRight);return o&&mt.barTimesUnderCursor.set(s,o.value[0]),this._tryToUpdateViews(e,t,i)}setLinesShouldBeHidden(e){this._linesShouldBeHidden=e}linesShouldBeHidden(){return this._linesShouldBeHidden}handleContextMenuEvent(e){this._crossHairSelectPointMode.value()!==mt.SelectPointMode.None&&this._setSelectPointModeState(mt.SelectPointMode.None)}properties(){return this._properties}priceAxisViews(e,t){const i=null===this._requestedPoint||"time"!==this._requestedPoint||!this._isOnHoveredChartWidget,s=[];return(this.lockedPane()??this.pane)===e&&i&&s.push(this._createPriceAxisViewOnDemand(this._priceAxisViews,this._panePriceAxisViews,e,t,this._currentPosPriceProvider,ou,!0)[0]),this._startMeasurePoint&&s.push(this._createPriceAxisViewOnDemand(this._startMeasurePriceAxisViews,null,e,t,this._startMeasurePriceProvider,nu)[0]),this._lastMeasurePoint()&&s.push(this._createPriceAxisViewOnDemand(this._endMeasurePriceAxisViews,null,e,t,this._endMeasurePriceProvider,nu)[0]),s}timeAxisViews(){const e=[],t=null===this._requestedPoint||"price"!==this._requestedPoint||!this._isOnHoveredChartWidget -;return this._linesShouldBeHidden||!this.visible&&null===mt.crosshairLock.value()||!t||e.push(this._timeAxisView),this._startMeasurePoint&&e.push(this._startMeasureTimeAxisView),this._lastMeasurePoint()&&e.push(this._endMeasureTimeAxisView),e}paneViews(e){if(void 0===e||e.mode()!==zi.PaneMode.Regular)return null;const t=[];if(this.isReplaySelection()){let i=this._pointSelectionPaneViewCache.get(e);i||(i=new CrosshairPointSelectionPaneView(this,e,this._model),this._pointSelectionPaneViewCache.set(e,i)),t.push(i)}let i=this._crosshairPaneViewCache.get(e);if(i||(i=new pu(this,e),this._crosshairPaneViewCache.set(e,i)),t.push(i),e===this._selectionPane&&t.push(this._selectionView),e===this._measurePane.value()){let i=this._measurePaneViewCache.get(e);i||(i=new Du(this,e),this._measurePaneViewCache.set(e,i)),i.update((0,wi.sourceChangeEvent)(this.id())),t.push(i)}if((lu.addPlusButtonProperty.value()||this._showPlusButtonOnCursor.value())&&1!==mt.crosshairLock.value()?.type){const i=e===this.pane,s=!ze.CheckMobile.any()||window.screen.width>=320,o=mt.tool.value(),n=(0,Lt.isLineToolName)(o),r=null!==this._model.lineBeingEdited()||null!==this._model.lineBeingCreated()||this._model.sourcesBeingMoved().length>0||null!==this._model.customSourceBeingMoved()||(0,mt.toolIsMeasure)(o);if(i&&this._isOnHoveredChartWidget&&this._crossHairSelectPointMode.value()===mt.SelectPointMode.None&&s&&!n&&!r){const i=e.mainDataSource();if(null!==i){const s=i.priceScale();if(null!==s){const i=this._createPriceAxisViewOnDemand(this._priceAxisViews,this._panePriceAxisViews,e,s,this._currentPosPriceProvider,ou,!0)[1];null!==i&&t.push(i)}}}}return 0===mt.crosshairLock.value()?.type&&(null===this._timeLockPaneView&&(this._timeLockPaneView=new Nu(this)),t.push(this._timeLockPaneView)),t.push(...this._crosshairDemonstration.paneViews(e)),t}dataWindowView(){return this._dataWindowView}updateAllViews(e){this._priceAxisViews.forEach((t=>{t.forEach((t=>t.update(e)))})),this._panePriceAxisViews.forEach((t=>{t.forEach((t=>t.update(e)))})),this._startMeasurePoint&&(this._startMeasurePriceAxisViews.forEach((t=>{t.forEach((t=>t.update(e)))})),this._startMeasureTimeAxisView.update(e)),this._lastMeasurePoint()&&(this._endMeasurePriceAxisViews.forEach((t=>{t.forEach((t=>t.update(e)))})),this._endMeasureTimeAxisView.update(e)),this._timeAxisView.update(e),this._selectionView.update(),this._dataWindowView.update(),this._crosshairDemonstration.update(e),this._updateVisibilityDependentPaneViews()}isMenuEnabled(){return!0}isHoveredEnabled(){return lu.addPlusButtonProperty.value()||this._showPlusButtonOnCursor.value()}isHovered(){return this._model.hoveredSource()===this}pointToSelect(){return this._requestedPoint}paneForPointSelect(){return this._paneForRequestedPoint}contextMenuStatName(){return"CrossHairContextMenu"}restart(){this._currentMeasurePointsetAndSymbolId=null,this._normalizedMeasurePoints&&this._createMeasurePointsetWithNormalizedPoints(this._normalizedMeasurePoints)}_lastMeasurePoint(){ -return this._endMeasurePoint?this._endMeasurePoint:(null!==this.pane&&this._measurePane.value()===this.pane&&(this._lastValidMeasurePoint={price:this._model.magnet().align(this.price,this.index,this.pane),index:this.index}),this._lastValidMeasurePoint||null)}_createPriceAxisViewOnDemand(e,t,i,s,o,r,a=!1){let l=e.get(i),c=null!==t?t.get(i):void 0;void 0===l&&(l=new Map,e.set(i,l),this.isMenuEnabled()&&null!==t&&(c=new Map,t.set(i,c)),a&&i.onDestroyed().subscribe(this,(()=>this._onPaneDestroyed(i))));let h=l.get(s);if(void 0===h){if(h=new r(this,i,s,o),l.set(s,h),void 0!==c){const e=new hu(h,this,s,this._model,this._options);c.set(s,e)}a&&s.lastSourceRemoved().subscribe(this,(()=>this._onPriceScaleCleared(s)))}let d=null;return void 0!==c&&(d=(0,n.ensureDefined)(c.get(s))),[h,d]}_onPaneDestroyed(e){e.onDestroyed().unsubscribeAll(this),this._priceAxisViews.delete(e),this._panePriceAxisViews.delete(e),this._startMeasurePriceAxisViews.delete(e),this._endMeasurePriceAxisViews.delete(e)}_onPriceScaleCleared(e){e.lastSourceRemoved().unsubscribeAll(this),this._priceAxisViews.forEach((t=>t.delete(e))),this._panePriceAxisViews.forEach((t=>t.delete(e))),this._startMeasurePriceAxisViews.forEach((t=>t.delete(e))),this._endMeasurePriceAxisViews.forEach((t=>t.delete(e)))}_tryToUpdateViews(e,t,i){return!!this._tryToUpdateData(e,t,i)&&(this.updateAllViews((0,wi.sourceChangeEvent)(this.id())),this._movedDelegate.fire({index:this.index,price:this.price}),!0)}_tryToUpdateData(e,t,i){const s=this.x,o=this.y,r=this.price,a=this.index,l=this.pane,c=this._priceScaleByPane(i);if(this.index=e,this.x=isNaN(e)?NaN:this._model.timeScale().indexToCoordinate(e),null!==c&&null!==i){this.pane=i,this.price=t;const e=(0,n.ensureNotNull)(i.mainDataSource()).firstValue();this.y=null===e?NaN:c.priceToCoordinate(t,e)}else this.pane=null,this.price=NaN,this.y=NaN;return s!==this.x||o!==this.y||a!==this.index||r!==this.price||l!==this.pane}_priceScaleByPane(e){return e&&!e.defaultPriceScale().isEmpty()?e.defaultPriceScale():null}_setSelectPointModeState(e){e===mt.SelectPointMode.None&&(this._requestedPoint=null,this._selectLineColor=null,this._paneForRequestedPoint&&(this._paneForRequestedPoint=null,this._model.panesCollectionChanged().unsubscribe(this,this._paneCollectionChanged))),mt.activePointSelectionMode.setValue(e),this._crossHairSelectPointMode.setValue(e),this._model.lightUpdate()}_paneCollectionChanged(e){const t=this._paneForRequestedPoint;null!==t&&-1===e.indexOf(t)&&this.cancelRequestSelectPoint()}_updateVisibilityDependentPaneViews(){for(const e of this.model().panes())this._pointSelectionPaneViewCache.get(e)?.update()}_getLockData(){if(null===this._lockData){const e=mt.crosshairLock.value();if(null===e)this._lockData={};else{const t=this._model.timeScale(),i=t.points().roughIndex(e.time)??void 0,s=void 0===i?void 0:t.indexToCoordinate(i);switch(e.type){case 0:this._lockData={index:i,xCoord:s};break;case 1:{let t;const o=this.lockedPane();if(null!==o){const i=o.mainDataSource();if(null!==i){const s=i.firstValue(),o=i.priceScale() -;null!==o&&null!==s&&(t=o.priceToCoordinate(e.price,s))}}this._lockData={index:i,xCoord:s,yCoord:t}}}}}return this._lockData}_createMeasurePointsetWithNormalizedPoints(e){const t=this._model.mainSeries().seriesSource().symbolInstanceId();if(null===t)return;this._removeMeasurePointset(),++e_,this._currentMeasurePointsetAndSymbolId={measurePointsetId:e_,symbolId:t},this._normalizedMeasurePoints=e;const i=(0,Ai.getServerInterval)(this._model.mainSeries().interval());this._model.chartApi().createPointset(this._currentMeasurePointsetIdWithPrefix(),"turnaround",this._currentMeasurePointsetAndSymbolId.symbolId,i,e,this._onPointsetResponse.bind(this))}_createMeasurePointset(e,t){const i=this._normalizePoint(e),s=this._normalizePoint(t),o=[[i.time_t,i.offset],[s.time_t,s.offset]];this._createMeasurePointsetWithNormalizedPoints(o)}_removeMeasurePointset(){null!==this._currentMeasurePointsetAndSymbolId&&this._model.chartApi().isConnected().value()&&this._model.chartApi().removePointset(this._currentMeasurePointsetIdWithPrefix()),this._currentMeasurePointsetAndSymbolId=null,this._normalizedMeasurePoints=null}_currentMeasurePointsetIdWithPrefix(){return"pointsetMeasure_"+(0,n.ensureNotNull)(this._currentMeasurePointsetAndSymbolId).measurePointsetId}_normalizePoint(e){return{...this._model.timeScale().normalizeBarIndex(e.index),price:e.price}}_onPointsetResponse(e){if("pointset_error"===e.method)return void t_.logError(`Error getting pointset: ${e.params[0]} ${e.params[1]}`);if(e.params.customId!==this._currentMeasurePointsetIdWithPrefix())return;if(null===this._startMeasurePoint||null===this._endMeasurePoint)return;const t=e.params.plots;if(2!==t.length)return;const i=t[0].value[0],s=t[1].value[0];this._startMeasurePoint.index=i,this._endMeasurePoint.index=s,this.updateAllViews((0,wi.sourceChangeEvent)(this.id())),this._model.updateSource(this)}}var s_=i(45720),o_=i(22033),n_=i(97902);const r_=(0,ne.getLogger)("Chart.ApplyPreferencesToAllCharts"),a_={color:"",style:0},l_={autoScale:!1,autoScaleDisabled:!1,lockScale:!1,percentage:!1,percentageDisabled:!1,log:!1,logDisabled:!1,alignLabels:!1,isInverted:!1,indexedTo100:!1},c_={backgroundType:co.ColorType.Solid,background:"",backgroundGradientStartColor:"",backgroundGradientEndColor:"",topMargin:0,bottomMargin:0,gridLinesMode:"both",horzGridProperties:(0,ge.deepExtend)({},a_),vertGridProperties:(0,ge.deepExtend)({},a_),crossHairProperties:(0,ge.deepExtend)({},{color:"",style:0,transparency:0,width:0}),legendProperties:(0,ge.deepExtend)({},{showStudyArguments:!1,showStudyTitles:!1,showStudyValues:!1,showSeriesTitle:!1,showSeriesOHLC:!1,showLegend:!1,showLastDayChange:!1,showBarChange:!0,showVolume:!1,showPriceSource:!1,showBackground:!0,backgroundTransparency:0,showLogo:!0,showTradingButtons:!0,showTradingButtonsMobile:!0,showSeriesLegendCloseOnMobile:!0}),axisProperties:(0,ge.deepExtend)({},l_),separatorColor:""},h_={lineColor:"",textColor:"",fontSize:0,scaleSeriesOnly:!1,showSeriesLastValue:!1,seriesLastValueMode:n_.PriceAxisLastValueMode.LastValueAccordingToScale, -showSeriesPrevCloseValue:!1,showStudyLastValue:!1,showSymbolLabels:!1,showStudyPlotLabels:!1,showBidAskLabels:!1,showPrePostMarketPriceLabel:!0,showFundamentalLastValue:!1,showFundamentalNameLabel:!1,showPriceScaleCrosshairLabel:!0,showTimeScaleCrosshairLabel:!0},d_={...h_},u_={visible:!1,futureOnly:!1,breaks:(0,ge.deepExtend)({},{color:"",visible:!1,style:0,width:0})},__={style:0,minTick:"",showPriceLine:!1,priceLineWidth:0,priceLineColor:"",baseLineColor:"",showPrevClosePriceLine:!1,showCountdown:!0,prevClosePriceLineWidth:0,sessionId:"regular",prevClosePriceLineColor:"",esdShowDividends:!1,esdShowSplits:!1,esdShowEarnings:!1,esdShowBreaks:!1,showContinuousContractSwitches:!1,showContinuousContractSwitchesBreaks:!1,showFuturesContractExpiration:!1,showLastNews:!1,dividendsAdjustment:!1,backAdjustment:!1,settlementAsClose:!0,statusViewStyle:(0,ge.deepExtend)({},{fontSize:16,showExchange:!0,showInterval:!0,symbolTextSource:"description"}),priceAxisProperties:(0,ge.deepExtend)({},l_),highLowAvgPrice:(0,ge.deepExtend)({},{highLowPriceLinesVisible:!1,highLowPriceLabelsVisible:!1,averageClosePriceLabelVisible:!1,averageClosePriceLineVisible:!1,highLowPriceLinesColor:"",highLowPriceLinesWidth:0,averagePriceLineColor:"",averagePriceLineWidth:0}),candleStyle:(0,ge.deepExtend)({},o_.candleStylePreferencesDefault),hollowCandleStyle:(0,ge.deepExtend)({},o_.hollowCandlePreferencesStyleDefault),barStyle:(0,ge.deepExtend)({},o_.barStylePreferencesDefault),lineStyle:(0,ge.deepExtend)({},o_.lineStyleDefault),lineWithMarkersStyle:(0,ge.deepExtend)({},o_.lineStyleDefault),steplineStyle:(0,ge.deepExtend)({},o_.lineStyleDefault),areaStyle:(0,ge.deepExtend)({},o_.areaStylePreferencesDefault),hlcAreaStyle:(0,ge.deepExtend)({},o_.hlcAreaStylePreferencesDefault),baselineStyle:(0,ge.deepExtend)({},o_.baselineStylePreferencesDefault),hiloStyle:(0,ge.deepExtend)({},o_.hiloStylePreferencesDefault),haStyle:(0,ge.deepExtend)({},o_.haStylePreferencesDefault),renkoStyle:(0,ge.deepExtend)({},o_.renkoStylePreferencesDefault),pbStyle:(0,ge.deepExtend)({},o_.pbStylePreferencesDefault),kagiStyle:(0,ge.deepExtend)({},o_.kagiStylePreferencesDefault),pnfStyle:(0,ge.deepExtend)({},o_.pnfStylePreferencesDefault),rangeStyle:(0,ge.deepExtend)({},o_.rangeStylePreferencesDefault),columnStyle:(0,ge.deepExtend)({},o_.columnStylePreferencesDefault),hlcBarsStyle:(0,ge.deepExtend)({},o_.hlcBarsStylePreferencesDefault)},p_={priceScaleSelectionStrategyName:"auto",timeScale:(0,ge.deepExtend)({},{defaultRightOffset:0,defaultRightOffsetPercentage:5,usePercentageRightOffset:!1}),mainSeries:(0,ge.deepExtend)({},__),sessions:(0,ge.deepExtend)({},Ql.sessionsPreferencesDefault),paneProperties:(0,ge.deepExtend)({},c_),chartEventsSourceProperties:(0,ge.deepExtend)({},u_),tradingProperties:(0,ge.deepExtend)({},Co.tradingPreferencesDefault)},m_={timezone:"",inactivityGaps:!1,scalesProperties:(0,ge.deepExtend)({},d_),...p_},g_={scalesProperties:(0,ge.deepExtend)({},h_),...p_};function f_(e,t,i,s,o=!0){ -if(void 0===t[e])return r_.logDebug(`We haven't had this property ${s}.${e} yet, please, remove it from whiteList`),null;if((0,tt.isObject)(i[e])){const n=Object.keys(i[e]);let r="";return n.map((n=>({[n]:f_(n,t[e],i[e],`${s}.${e}`,o)}))).reduce(((e,t)=>(r=Object.keys(t)[0],e[r]=t[r],e)),{})}return o?t[e].value():t[e]}var y_,v_=i(37293);!function(e){e.StudyCannotBeChild="cannot_be_child",e.StubWasRemoved="stub_was_removed",e.CannotGetMetainfo="cannot_get_metainfo",e.CannotCompilePub="cannot_compile_pub",e.Cancelled="cancelled",e.Unknown="unknown"}(y_||(y_={}));const S_=(0,ne.getLogger)("Chart.Studies.StudyInserter"),b_=/^PUB;.*/;class w_{constructor(e,t){this._parentSources=[],this._propsState=void 0,this._preferredPriceScale=void 0,this._allowChangeCurrency=!1,this._allowChangeUnit=!1,this._paneSize=void 0,this._forceOverlay=!1,this._inserterImpl=t,this._studyDescriptor=e}setParentSources(e){this._parentSources=e}setPaneSize(e){this._paneSize=e}setPreferredPriceScale(e){this._preferredPriceScale=e}setAllowChangeCurrency(e){this._allowChangeCurrency=e}setAllowChangeUnit(e){this._allowChangeUnit=e}setForceOverlay(e){this._forceOverlay=e}setPropertiesState(e){this._propsState=e}setTargetPriceScaleMode(e){this._targetPriceScaleMode=e}async insert(e,t,i){let s=null;var o;i||(s=void 0!==(o=this._inserterImpl).createStub&&void 0!==o.removeStub?this._inserterImpl.createStub():null);const n=(e,t)=>{if(i){const s=(0,et.default)(e)?{error:e}:{error:e.message,editorError:e};i.setStatus({type:gh.StudyStatusType.Error,errorDescription:s}),t&&i.setMetaInfo(t),this._inserterImpl.storeFailedStub(i)}};let r,a,l=!0;try{r=await(0,os.studyMetaInfoRepository)().findById(this._studyDescriptor)}catch(e){S_.logWarn(`Cannot get study ${JSON.stringify(this._studyDescriptor)}`);const t=this._studyDescriptor.pineId;b_.test(t);return n("Error: cannot compile script"),Promise.reject(y_.CannotGetMetainfo)}finally{null!==s&&(l=this._inserterImpl.removeStub(s))}if(!l)return Promise.reject(y_.StubWasRemoved);if(void 0!==t&&t.cancelled)return Promise.reject(y_.Cancelled);if(!this._canApplyStudyToParent(r))return n("Error: cannot be child"),Promise.reject(y_.StudyCannotBeChild);const c={...r.defaults.inputs};let d={};if(void 0!==e){const t=ns.StudyMetaInfo.getStudyPropertyRootName(r),i=(0,tt.clone)((0,h.defaults)(t));(0,tt.merge)(c,i.inputs);const s=await e(c,r.inputs,r);d=s.inputs,this._parentSources=s.parentSources??[]}if(void 0!==t&&t.cancelled)return Promise.reject(y_.Cancelled);const u=this._insertStudy(r,d,i);if(null===u)return n("Error: unknown error"),Promise.reject(y_.Unknown);await u.startPromise;const _=await u.study;return a?Promise.reject(a):_}_insertStudy(e,t,i){return this._inserterImpl.createStudy(e,t,null,i,this._propsState,this._forceOverlay,this._parentSources,this._preferredPriceScale,this._allowChangeCurrency,this._allowChangeUnit,this._paneSize,this._targetPriceScaleMode)}_canApplyStudyToParent(e){return 0===this._parentSources.length||ns.StudyMetaInfo.canBeChild(e)}}class C_{constructor(e){this._priceSourceNamesById=new Map, -e.forEach((e=>this._priceSourceNamesById.set(e.id,e.name)))}name(e){return this._priceSourceNamesById.get(e)??null}priceSourcesChanged(e){return e.length!==this._priceSourceNamesById.size}}var T_=i(2072);class P_{constructor(){this._widgets=null,this._provider=new T_.WatchedValue(null),this._watermarkProperties=uc();const e=(0,n.ensureDefined)(this._watermarkProperties.child("color"));this._colorWatchedValue=(0,ye.convertPropertyToWatchedValue)(e);const t=(0,n.ensureDefined)(this._watermarkProperties.child("ticker"));this._tickerVisibilityWatchedValue=(0,ye.convertPropertyToWatchedValue)(t);const i=(0,n.ensureDefined)(this._watermarkProperties.child("interval"));this._intervalVisibilityWatchedValue=(0,ye.convertPropertyToWatchedValue)(i);const s=(0,n.ensureDefined)(this._watermarkProperties.child("description"));this._descriptionVisibilityWatchedValue=(0,ye.convertPropertyToWatchedValue)(s);const o=(0,n.ensureDefined)(this._watermarkProperties.child("custom"));this._customVisibilityWatchedValue=(0,ye.convertPropertyToWatchedValue)(o);let r=!1;const a=()=>{r=!0,this._visibilityWatchedValue.setValue(this._tickerVisibilityWatchedValue.value()||this._intervalVisibilityWatchedValue.value()||this._descriptionVisibilityWatchedValue.value()),r=!1};this._visibilityWatchedValue=new T_.WatchedValue(!1),a(),this._tickerVisibilityWatchedValue.subscribe(a),this._intervalVisibilityWatchedValue.subscribe(a),this._descriptionVisibilityWatchedValue.subscribe(a),this._visibilityWatchedValue.subscribe((e=>{r||(this._tickerVisibilityWatchedValue.setValue(e),this._intervalVisibilityWatchedValue.setValue(e),this._descriptionVisibilityWatchedValue.setValue(e))}))}setWidgetCollection(e){this._widgets=e}setContentProvider(e){this._provider.setValue(e),this._widgets&&this._widgets.getAll().forEach((e=>{e.model().model().lightUpdate()}))}provider(){return this._provider}ready(){return null!==this._widgets}destroy(){this._colorWatchedValue.destroy(),this._visibilityWatchedValue.destroy(),this._tickerVisibilityWatchedValue.destroy(),this._intervalVisibilityWatchedValue.destroy(),this._descriptionVisibilityWatchedValue.destroy()}visibility(){return this._visibilityWatchedValue}tickerVisibility(){return this._tickerVisibilityWatchedValue}intervalVisibility(){return this._intervalVisibilityWatchedValue}descriptionVisibility(){return this._descriptionVisibilityWatchedValue}customVisibility(){return this._customVisibilityWatchedValue}color(){return this._colorWatchedValue}static getInstance(){return null===this._instance&&(this._instance=new P_),this._instance}}P_._instance=null;var x_=i(19136);class M_ extends Ad.CustomSourceBase{constructor(e,t){super(e,t),this._studySource=null,this._metaInfo=null,this._destroyed=!1,this._isStarted=!1,this._session="session",this._requestAndProcessMetaInfo(),t.timeScale().onReset().subscribe(this,this._clearData)}start(){this._isStarted=!0,null!==this._studySource&&this._studySource.start()}restart(){this._clearData(),l.enabled("stop_study_on_restart")&&this.stop(),this.start()}isStarted(){return this._isStarted} -stop(){this._isStarted=!1,null!==this._studySource&&this._studySource.stop()}isHoveredEnabled(){return!1}updateAllViews(e){}destroy(){this._destroyed=!0,null!==this._studySource&&(this._studySource.dataCleared().unsubscribeAll(this),this._studySource.dataUpdated().unsubscribeAll(this),this._studySource.destroy(),this._studySource=null),this._model.timeScale().onReset().unsubscribeAll(this)}series(){return this._model.mainSeries()}priceScale(){return this.series().priceScale()}valueAt(){return null}metaInfo(){return(0,n.ensureNotNull)(this._metaInfo)}setSession(e){this._session=e||"session",null!==this._studySource&&this._studySource.setInputs({display_session:e})}async _requestAndProcessMetaInfo(){if(this._model.isSnapshot())return;const e=await(0,os.studyMetaInfoRepository)().findById({type:"java",studyId:"InactivityGaps@tv-basicstudies"});this._destroyed||(this._setMetaInfo(e),null!==this._metaInfo&&(this._studySource=new x_.StudyDataSource(this._model.chartApi(),this._model.mainSeries().seriesSource(),"inactivitygaps_",this._metaInfo),this._studySource.dataCleared().subscribe(this,this.updateAllViews.bind(this,(0,wi.sourceChangeEvent)(this.id()))),this._studySource.dataUpdated().subscribe(this,this.updateAllViews.bind(this,(0,wi.sourceChangeEvent)(this.id()))),this._studySource.setInputs({display_session:this._session})))}_setMetaInfo(e){this._metaInfo=e}_clearData(){this._studySource?.clearData()}}const I_=new dt.TranslatedString("remove deselected empty line tools",a.t(null,void 0,i(27171))),A_=l.enabled("auto_enable_symbol_labels"),L_=l.enabled("saveload_separate_drawings_storage"),k_=(0,ne.getLogger)("Chart.ChartModel");function E_(e,t){const i=e.indexOf(t);return-1!==i&&(e.splice(i,1),!0)}function D_(e){const t=(0,wi.crosshairMoveEvent)();for(let i=e.length;i--;){const s=e[i].dataSources();for(let e=s.length;e--;)s[e].dataWindowView()?.update(t),s[e].chartFloatingTooltipView?.()?.update(t);const o=e[i].priceDataSources();for(let e=o.length;e--;)o[e].legendView()?.update(t)}}const B_={isSnapshot:!1,readOnly:!1,watermarkEnabled:!0,shiftVisibleRangeOnNewBar:!0,currencyConversionEnabled:!1,unitConversionEnabled:!1,countdownEnabled:!0,lastPriceAnimationEnabled:!0,onWidget:!1,hideIdeas:!1};var V_;!function(e){e[e.MnPaneHeight=30]="MnPaneHeight",e[e.RecalcVisibleRangeStudiesTimeout=2e3]="RecalcVisibleRangeStudiesTimeout",e[e.RecalcVisibleRangeStudiesLargeTimeout=5e3]="RecalcVisibleRangeStudiesLargeTimeout",e[e.RecalcVisibleRangeStudiesTimeoutLibrary=500]="RecalcVisibleRangeStudiesTimeoutLibrary",e[e.RecalcColorStudiesTimeout=250]="RecalcColorStudiesTimeout"}(V_||(V_={}));const R_={throttle:o.default,debounce:Ol.default},N_=new Map([[Co.RecalcVisibleRangeStudiesReason.ViewportChangeUserAction,{timeout:500,adapter:"debounce"}],[Co.RecalcVisibleRangeStudiesReason.DataUpdate,{timeout:500,adapter:"throttle"}],[Co.RecalcVisibleRangeStudiesReason.SeriesRestart,{timeout:500,adapter:"debounce"}],[Co.RecalcVisibleRangeStudiesReason.SeriesCompleted,{timeout:500,adapter:"debounce" -}],[Co.RecalcVisibleRangeStudiesReason.StudyCreation,{timeout:500,adapter:"debounce"}]]),O_=Array.from(N_.values());function F_(e){return e.reduce(((e,t)=>{if(!(0,zs.isLineTool)(t)||!t.isSynchronizable())return e;const i=t.linkKey().value();return i?(e[0].add(i),e[1].add(t.toolname),e):e}),[new Set,new Set])}function W_(e){return e.sourcesByGroup().allWithoutMultipane()}function H_(e){return e.sourcesByGroup().allWithoutMultipaneWithHidden()}class z_{constructor(e,t,i,s,o,n,r,a,c,d,u,_){this._onRearrangePanes=new ae.Delegate,this._lineToolsGroupModel=new wd,this._sourcesBeingMoved=[],this._activeItemBeingMoved=null,this._lineBeingEdited=null,this._customSourceBeingMovedHitTestData=null,this._customSourceBeingMoved=null,this._dataSourceCollectionChanged=new ae.Delegate,this._sourceProperitesChanged=new ae.Delegate,this._sourceZOrderChanged=new ae.Delegate,this._symbolSourceResolved=new ae.Delegate,this._symbolSourceResolvingActive=new O.WatchedValue(!1),this._adjustForDividendsAvailability=new O.WatchedValue(0),this._adjustForDividendsEnabled=new O.WatchedValue(!1),this._inactivityGapsWatchedValue=null,this._allowedAdjustment=new O.WatchedValue("none"),this._currentTool=mt.tool.spawn(),this._linesBeingCreated=[],this._lineCancelled=new ae.Delegate,this._phantomSourceContainer=new zd(this),this._destroyed=!1,this._restoringState=!1,this._isSettingsExternalPosition=!1,this._isTimeScrolling=!1,this._magnet=new Zd,this._scrollingState=null,this._modelIntervals=[],this._rendererOptionsProvider=new Xl(this),this._studyInserted=new ae.Delegate,this._cachedStudiesMaxOffset=0,this._replayStatus=new O.WatchedValue(0),this._panes=[],this._maximizedPane=new O.WatchedValue(null),this._tagsChanged=new ae.Delegate,this._strategySources=[],this._strategySourcesChange=new ae.Delegate,this._activeStrategySource=new O.WatchedValue(null),this._symbolIntervalChanged=new ae.Delegate,this._paneCollapsingAvailable=new O.WatchedValue(!1),this._panesCollectionChanged=new ae.Delegate,this._scrollEnabled=l.enabled("chart_scroll"),this._zoomEnabled=l.enabled("chart_zoom"),this._lollipopSourcesWatcher=null,this._alertsWatcher=null,this._hoveredSource=null,this._hoveredSourceChanged=new ae.Delegate,this._lastHoveredHittestData=null,this._hoveredSourceOrigin=null,this._lastSelectedHittestData=null,this._topmostCustomSources=[],this._fgCustomSources=[],this._bgCustomSources=[],this._allCustomSources=[],this._customSourcesMap=new Map,this._dragExportEnabled=new O.WatchedValue(!1),this._multiPaneSources=[],this._showLegendProperty=new Ps.Property,this._id=(0,fe.guid)(),this._chartSaveTime=null,this._availableCurrenciesList=null,this._availableCurrencies=new Fd([]),this._availablePriceSources=new C_([]),this._availableUnitsObject=null,this._availableUnits=new Wd({}),this._availablePriceSourcesBySymbol=new Map,this._shouldBeSavedEvenIfHidden=!1,this._watchedThemeSpawn=k.watchedTheme.spawn(),this._backgroundColorAtYPercentFromTop=new Nd.GradientColorCache,this._studiesWV=new yt.WatchedObject([],Pt.compareTwoCollectionsByIds), -this._studiesExcludeInternalWV=new yt.WatchedObject([],Pt.compareTwoCollectionsByIds),this._resetScalesAvailable=new O.WatchedValue(!1),this._recalcVRStudiesParams={reasons:new Set},this._recalcColorStudiesParams={},this._replayStudyStrategy=new O.WatchedValue(null),this._studyColorRotatorFactory=new Gl(this),this._mainSeriesScaleRatioProperty=new Wc(this),this._recalcVisibleRangeStudiesImplDebouncedByAdapter=new Map(Object.keys(R_).map((e=>[e,new Map(O_.filter((t=>t.adapter===e)).map((e=>[e.timeout,R_[e.adapter](this._recalcVisibleRangeStudiesImpl.bind(this,this._recalcVRStudiesParams),e.timeout)])))]))),this._recalcColorStudiesImplDebounced=(0,Ol.default)(this._recalcColorStudiesImpl.bind(this,this._recalcColorStudiesParams),250),this._width=0,this._resetScales=new ae.Delegate,this._chartThemeLoaded=new ae.Delegate,this._selection=new $l,this._selectedSourceChanged=new ae.Delegate,this._symbolSourceCollectionChanged=new ae.Delegate,this._gridSource=new iu(this),this._visibleRangeStudiesInputs=new yt.WatchedObject(null),this._syncPointCache=new Map,this._lastAppliedGotoTimeRange=null,this._lastGotoTimeRange=null,this._alertsCollection=new O.WatchedValue(null),this._lollipopSourcesWatcherLoader=null,this._sessions=null,this._onMultipaneSourcesCollectionChanged=new ae.Delegate,this._replayStudyStrategyInputs=null,this._studyShiftColorStartOffset=void 0,this._chartFloatingTooltipVisible=new O.WatchedValue(!1),this._activationChartFloatingTooltipHint=new O.WatchedValue(!1),this._lineToolsSyncBlock=0,this._clearSelection=()=>{this._lastSelectedHittestData=null,this._selection.clear()},this._removeSourceFromSelection=e=>{this._selection.remove(e)},this._addSourceToSelection=(e,t)=>{const i=this._selection.isSelected(e);i&&this._lastSelectedHittestData===t||e&&!e.isSelectionEnabled()||(this._lastSelectedHittestData=t||null,i||this._selection.add(e))},this._recalcSymbolResolvingActive=()=>{for(const e of this._panes)if(e.symbolSourceResolvingActive().value())return void this._symbolSourceResolvingActive.setValue(!0);this._symbolSourceResolvingActive.setValue(!1)},this._recalcAdjustForDividendsAvailability=()=>{if(this._symbolSourceResolvingActive.value())return;const e=this.mainSeries();switch(e.symbolInfo()?.allowed_adjustment??"none"){case"dividends":return void this._adjustForDividendsAvailability.setValue(2);case"splits":return void this._adjustForDividendsAvailability.setValue(1);case"any":return void this._adjustForDividendsAvailability.setValue(3)}for(const t of this.symbolSources().filter(Lr.isActingAsSymbolSource)){if(t.symbolHibernated().value()||t===e)continue;if("any"===(t.symbolInfo()?.allowed_adjustment??"none"))return void this._adjustForDividendsAvailability.setValue(3)}this._adjustForDividendsAvailability.setValue(0)},this._recalcAllowedAdjustment=()=>{const e=this.mainSeries(),t=e.symbolInfo()?.allowed_adjustment??"none";if("dividends"===t||"splits"===t)return void this._allowedAdjustment.setValue(t);let i="none";for(const e of this.symbolSources().filter(Lr.isActingAsSymbolSource)){ -if(e.symbolHibernated().value())continue;const t=e.symbolInfo()?.allowed_adjustment??"none";if("any"===t)return void this._allowedAdjustment.setValue("any");"splits"===t&&"dividends"!==i&&(i="splits"),"dividends"===t&&(i="dividends")}this._allowedAdjustment.setValue(i)},this._recalcAdjustForDividendsEnabled=()=>{switch(this._adjustForDividendsAvailability.value()){case 2:return void this._adjustForDividendsEnabled.setValue(!0);case 0:case 1:return void this._adjustForDividendsEnabled.setValue(!1)}this._adjustForDividendsEnabled.setValue(this.mainSeries().properties().childs().dividendsAdjustment.value())},this._recalcPaneCollapsingAvailable=e=>{let t=this._panes.filter((e=>!e.collapsed().value())).length;0===t&&e&&this._panes.length>0&&(this._panes[0].collapsed().setValue(!1),t=1),this._paneCollapsingAvailable.setValue(t>1)},this._updateResetScalesAvailableValue=()=>{const e=this._timeScale.resetAvailable().value()||this._panes.some((e=>e.resetPriceScalesAvailable().value()));this._resetScalesAvailable.setValue(e)},this._onDrawingsVisibilityChanged=e=>{const t=!e.value();for(const e of this.dataSources()){const i=(0,zs.isLineTool)(e)&&e.properties().visible.value();t&&i?(0,ee.emit)("drawing_event",e.id(),"show"):!t&&i&&(0,ee.emit)("drawing_event",e.id(),"hide")}this.selectionMacro((e=>e.clearSelection()))},this._onIndicatorsVisibilityChanged=()=>{this.allStudies().some((e=>e.canBeHiddenByGlobalFlag()&&e.properties().childs().visible.value()&&this.selection().isSelected(e)))?this.selectionMacro((e=>e.clearSelection())):this.lightUpdate()},this._chartSession=e,this._invalidateHandler=t,this._undoModel=n,this._properties=i,this._options=(0,tt.merge)((0,tt.clone)(B_),a),this._hibernateWV=c,this._linkingGroupIndex=d,this._isAutoSaveEnabled=u,this._readOnly=this._options.readOnly,this._isSnapshot=this._options.isSnapshot,this._symbolAliasService=_,this._symbolAliasService?.onAliasChanged().subscribe(this,(()=>this.lightUpdate())),this.onWidget()||Md.withWeekdayProperty.subscribe(this,(()=>this._updateDateTimeFormatter())),this._chartSaveTime=(new Date).valueOf(),this._backgroundColor=new O.WatchedValue(this._getBackgroundColor()),this._backgroundTopColor=new O.WatchedValue(this._getBackgroundColor(!0)),this._properties.childs().paneProperties.childs().background.subscribe(this,this._updateBackgroundColor),this._properties.childs().paneProperties.childs().backgroundType.subscribe(this,this._updateBackgroundColor),this._properties.childs().paneProperties.childs().backgroundGradientStartColor.subscribe(this,this._updateBackgroundColor),this._properties.childs().paneProperties.childs().backgroundGradientEndColor.subscribe(this,this._updateBackgroundColor),this._properties.childs().paneProperties.childs().legendProperties.childs().showLegend.subscribe(this,this._updateShowLegendProperty),this._properties.childs().scalesProperties.subscribe(this,this.fullUpdate),this._backgroundColor.subscribe(this.recalcColorStudies.bind(this,!1)),this._backgroundTopColor.subscribe(this.recalcColorStudies.bind(this,!1)), -this._backgroundCounterColor=new O.WatchedValue(this._getBackgroundCounterColor()),this._backgroundColor.subscribe((()=>this._backgroundCounterColor.setValue(this._getBackgroundCounterColor()))),this._backgroundTheme=(0,ft.combine)((e=>"white"===e?$s.StdTheme.Dark:$s.StdTheme.Light),this._backgroundCounterColor.weakReference()),this._isDark=(0,ft.combine)((e=>e===$s.StdTheme.Dark),this._backgroundTheme.weakReference()),this._watchedThemeSpawn.subscribe(this._updateBackgroundColor.bind(this)),this._symbolSourceResolvingActive.subscribe((()=>{this._recalcAdjustForDividendsAvailability(),this._recalcAllowedAdjustment()})),(0,mt.init)();const p=this._readOnly?new Ps.Property((0,tt.merge)((0,tt.clone)(ms.lightTheme.content.chartProperties.paneProperties.crossHairProperties),(0,h.defaults)("chartproperties.paneProperties.crossHairProperties"))):this._properties.childs().paneProperties.childs().crossHairProperties;this._crossHairSource=new i_(this,p,this._options.crossHair),this._crossHairSelectPointMode=this._crossHairSource.selectPointMode().spawn(),this._crossHairSelectPointMode.subscribe((e=>{if(e!==mt.SelectPointMode.None&&this.lineBeingCreated()){const e=mt.tool.value();this.cancelCreatingLine(),mt.tool.setValue(e)}})),this._tagsChanged=new ae.Delegate;const m={countdownEnabled:this._options.countdownEnabled,lastPriceAnimationEnabled:this._options.lastPriceAnimationEnabled};this._mainSeries=new Vn.Series(this,s,m,o),this._timeScale=new vd(this,this._options.timeScale),this._timeScale.resetAvailable().subscribe(this._updateResetScalesAvailableValue),this._appliedTimeFrame=new Xd(this),this._mainSeries.onStyleChanged().subscribe(this._timeScale,this._timeScale.invalidateVisibleBars);const g=()=>this.fullUpdate();this._mainSeries.properties().childs().showCountdown.subscribe(this,(()=>{this._mainSeries.updateAllViews((0,wi.sourceChangeEvent)(this._mainSeries.id())),g()})),(0,Be.currencyUnitVisibilityProperty)().subscribe(this,g),(0,$o.autoLogButtonsVisibilityProperty)().subscribe(this,g),this._timeScale.visibleBarsStrictRangeChanged().subscribe(this._mainSeries,this._mainSeries.clearHighLowPriceCache),this._timeScale.visibleBarsStrictRangeChanged().subscribe(this._mainSeries,this._mainSeries.clearAveragePriceCache),this.createPane(void 0,{axisProperties:s.childs().priceAxisProperties.state(["autoScale"])}),this._adjustForDividendsAvailability.subscribe(this._recalcAdjustForDividendsEnabled),this.mainSeries().properties().childs().dividendsAdjustment.subscribe(this,this._recalcAdjustForDividendsEnabled),this._recalcAdjustForDividendsEnabled(),this._boundUpdateStudiesMaxOffset=this._updateStudiesMaxOffset.bind(this),this.mainSeries().dataEvents().seriesTimeFrame().subscribe(this,((e,t,i,s)=>{if(null!==this._lastAppliedGotoTimeRange&&null!==i&&s&&Tr(this._lastAppliedGotoTimeRange.range,i)){const e=this.appliedTimeFrame().value();null!==e&&!this._lastAppliedGotoTimeRange.actual&&Tr(this._lastAppliedGotoTimeRange.range,e.val)&&this.appliedTimeFrame().setValue(null),this._lastAppliedGotoTimeRange=null}})), -this.mainSeries().dataEvents().completed().subscribe(this,(e=>{null===this._lastAppliedGotoTimeRange&&null!==this._lastGotoTimeRange&&this.gotoTimeRange(this._lastGotoTimeRange.from,this._lastGotoTimeRange.to,this._lastGotoTimeRange)}));const f=this._panes[0];f.setStretchFactor(2*f.stretchFactor()),this._properties.subscribe(this,this.lightUpdate),this._properties.childs().timezone.subscribe(null,(()=>{this._chartSession&&this._chartSession.isConnected().value()&&this._chartSession.switchTimezone(this.timezone())})),f.addDataSource(this._mainSeries,f.findSuitableScale(this._mainSeries),!1),this._barsMarksSources=r(this);for(const e of this._barsMarksSources)e.setOwnerSource(this._mainSeries),f.addDataSource(e,this._mainSeries.priceScale(),!0);if(this._mainSeries.symbolResolved().subscribe(this,this._clearAvailablePriceSources),this._mainSeries.onSymbolIntervalChanged().subscribe(this,this._onSymbolIntervalChanged),this._createLollipopSourcesWatcher(),this._watermarkSource=this._options.watermarkEnabled?new Rc(this):null,this._timezoneExceptExchange=(0,ft.combine)(((e,t)=>"exchange"!==e?e:t),(0,_d.createWVFromProperty)(this._properties.childs().timezone).ownership(),(0,_d.createWVFromGetterAndSubscription)((()=>this.mainSeries().symbolInfo()?.timezone??null),this.mainSeries().symbolResolved()).ownership()),this._updateDateTimeFormatter(),this._mainSeries.dataEvents().completed().subscribe(this,(()=>{this._scrollingState&&this.gotoTime(void 0,{targetPointAlignment:this._scrollingState.targetPointAlignment,autoscaleAfterScroll:this._scrollingState.autoscaleAfterScroll})})),this._mainSeries.onIntervalChanged().subscribe(this,(()=>{this._recalcVRStudiesParams.oldStartVisibleIndex=NaN,this._recalcVRStudiesParams.oldEndVisibleIndex=NaN})),!this._readOnly){this._mainSeries.properties().addChild("priceAxisProperties",this._mainSeries.priceScale().properties());const e=this._properties.childs().paneProperties.childs().legendProperties.childs();e.showStudyTitles.subscribe(this,(t=>{t.value()||e.showStudyArguments.setValue(!1)}))}this._mainSeries.properties().childs().interval.subscribe(this,this._updateDateTimeFormatter),this._mainSeries.onTimeFrameApplied().subscribe(this,(e=>{const t=e?{res:this._mainSeries.interval(),val:e}:null;this.appliedTimeFrame().setValue(t)})),this._maximizedPane.subscribe((()=>n.model().fullUpdate())),this._dataSourceCollectionChanged.subscribe(this,this._updateShowLegendProperty),(0,mt.hideAllDrawings)().subscribe(this,this._onDrawingsVisibilityChanged),(0,mt.hideAllIndicators)().subscribe(this,this._onIndicatorsVisibilityChanged),be.dateFormatProperty.subscribe(this,this._updateDateTimeFormatter),we.timeHoursFormatProperty.subscribe(this,this._updateDateTimeFormatter),this._currentTool.subscribe((e=>{(0,Lt.isLineToolName)(e)&&this.selectionMacro((e=>{e.clearSelection()})),!(0,xo.isLineToolLoaded)(e)&&(0,xo.isAsyncGenericLineToolName)(e)?(0,xo.loadLineTool)(e).then((()=>this._phantomSourceContainer.onToolChanged())):this._phantomSourceContainer.onToolChanged()})),this._initialiseInactivityGaps(), -this._signatureSources=this._studiesExcludeInternalWV.spawn();const y=(0,ft.combine)((e=>e.map((e=>e.signature().weakReference()))),this._signatureSources.weakReference());this._sourcesSignatures=(0,ft.accumulate)((e=>e.filter(tt.notNull)),y.ownership())}destroy(){this.clearIntervals(),this.resetDeferredStudies(),this._symbolAliasService?.onAliasChanged().unsubscribeAll(this),this.allStudies().forEach((e=>this.removeSource(e))),be.dateFormatProperty.unsubscribe(this,this._updateDateTimeFormatter),we.timeHoursFormatProperty.unsubscribe(this,this._updateDateTimeFormatter),(0,mt.hideAllIndicators)().unsubscribe(this,this._onIndicatorsVisibilityChanged),(0,mt.hideAllDrawings)().unsubscribe(this,this._onDrawingsVisibilityChanged),this._dataSourceCollectionChanged.unsubscribeAll(this),this._phantomSourceContainer.destroy(),this._hoveredSourceChanged.destroy(),null!==this._watermarkSource&&(this._watermarkSource.destroy(),this._watermarkSource=null),Array.from(this._customSourcesMap.keys()).forEach(this._removeCustomSource,this),(0,n.assert)(0===this._topmostCustomSources.length),(0,n.assert)(0===this._fgCustomSources.length),(0,n.assert)(0===this._bgCustomSources.length),(0,n.assert)(0===this._allCustomSources.length),(0,n.assert)(0===this._customSourcesMap.size),this._panes.forEach((e=>e.destroy())),this._panes.length=0,this._sessions=null,null!==this._lollipopSourcesWatcher&&(this._lollipopSourcesWatcher.destroy(),this._lollipopSourcesWatcher=null),null!==this._alertsWatcher&&this._alertsWatcher.destroy(),this.onWidget()||Md.withWeekdayProperty.unsubscribeAll(this),this._properties.childs().paneProperties.childs().legendProperties.childs().showLegend.unsubscribeAll(this),this._properties.childs().paneProperties.childs().background.unsubscribeAll(this),this._properties.childs().paneProperties.childs().backgroundType.unsubscribeAll(this),this._properties.childs().paneProperties.childs().backgroundGradientEndColor.unsubscribeAll(this),this._properties.childs().paneProperties.childs().backgroundGradientStartColor.unsubscribeAll(this),this._watchedThemeSpawn.destroy(),this._lastHoveredHittestData=null,this._lastSelectedHittestData=null,(0,Be.currencyUnitVisibilityProperty)().unsubscribeAll(this),(0,$o.autoLogButtonsVisibilityProperty)().unsubscribeAll(this),this._mainSeries.properties().childs().interval.unsubscribe(this,this._updateDateTimeFormatter),this._mainSeries.properties().childs().showCountdown.unsubscribeAll(this),this._crossHairSelectPointMode.destroy(),this._mainSeries.onIntervalChanged().unsubscribeAll(this),this._mainSeries.onTimeFrameApplied().unsubscribeAll(this),this._mainSeries.symbolResolved().unsubscribe(this,this._clearAvailablePriceSources),this._mainSeries.onSymbolIntervalChanged().unsubscribe(this,this._onSymbolIntervalChanged),this._mainSeries.onStyleChanged().unsubscribe(this._timeScale,this._timeScale.invalidateVisibleBars),this._timeScale.visibleBarsStrictRangeChanged().unsubscribe(this._mainSeries,this._mainSeries.clearHighLowPriceCache), -this._timeScale.visibleBarsStrictRangeChanged().unsubscribe(this._mainSeries,this._mainSeries.clearAveragePriceCache),this._timeScale.barSpacingChanged().unsubscribeAll(this),this._timeScale.onScroll().unsubscribeAll(this),this._timeScale.destroy(),this._timezoneExceptExchange.destroy(),this._lollipopSourcesWatcherLoader?.destroy(),this._appliedTimeFrame.destroy(),this._crossHairSource.destroy(),this._currentTool.destroy(),this._signatureSources.destroy(),this._sourcesSignatures.destroy(),this._destroyed=!0}restart(){this._chartSession.switchTimezone(this.timezone()),this._timeScale.reset(),this._mainSeries.restart();for(const e of this.dataSources())e.restart&&e!==this._mainSeries&&e.restart();this._sessions?.get()?.restart()}version(){return 3}collapsed(){return this._hibernateWV}visibleRangeStudiesInputs(){return this._visibleRangeStudiesInputs.readonly()}chartSaveTime(){return this._chartSaveTime}setChartSaveTime(e){this._chartSaveTime=e}startNotStartedStudies(){if(!this._mainSeries.isStarted())throw new Error("Cannot start studies: main series is not started");for(const e of this.dataSources())(0,Ws.isStudy)(e)&&!e.isStarted()&&e.restart?.()}undoModel(){return this._undoModel}onData(e){switch(e.method){case"timescale_update":{const t=e.params;this._updateTimeScale({index:t.index,zoffset:t.zoffset,values:t.changes,indexDiffs:t.index_diff,baseIndex:t.baseIndex,marks:t.marks,clearFlag:t.clear,clearTickMarks:t.clearTickMarks});break}case"timescale_completed":{const t=Boolean(e.params[0]);this._timeScale.onTimeScaleCompleted(t);break}}}addStrategySource(e,t){1!==t&&-1===this._strategySources.indexOf(e)&&(this._strategySources.push(e),this._strategySourcesChange.fire(t),this.setActiveStrategySource(e))}removeStrategySource(e,t){if(1===t)return;const i=this._strategySources.indexOf(e);if(-1!==i){if(this._strategySources.splice(i,1)[0]===this._activeStrategySource.value()&&this.unsetActiveStrategySource(),this._strategySources.length>0){const e=this._strategySources[this._strategySources.length-1];this.setActiveStrategySource(e)}this._strategySourcesChange.fire(t)}}setActiveStrategySource(e){-1!==this._strategySources.indexOf(e)&&this._activeStrategySource.setValue(e)}unsetActiveStrategySource(){this._activeStrategySource.setValue(null)}activeStrategySource(){return this._activeStrategySource.readonly()}strategySources(){return this._strategySources}strategySourcesChange(){return this._strategySourcesChange}replayStudyStrategy(){return this._replayStudyStrategy}setReplayStudyStrategy(e){this._replayStudyStrategy.setValue(e)}async replayStudyStrategyProperties(){if(null===this._replayStudyStrategyInputs){const e=await getReplayStrategyMetaInfo();if(null!==this._replayStudyStrategyInputs)return this._replayStudyStrategyInputs;this._replayStudyStrategyInputs=new yi.DefaultProperty({defaultName:"replayStudyStrategyInputs",factoryDefaultsSupplier:()=>(0,tt.clone)(e.defaults.inputs)})}return this._replayStudyStrategyInputs}clearReplayStudyStrategyProperties(){this._replayStudyStrategyInputs=null}setScrollEnabled(e){ -this._scrollEnabled=e}scrollEnabled(){return this._scrollEnabled}setZoomEnabled(e){this._zoomEnabled=e}zoomEnabled(){return this._zoomEnabled}dragExportEnabled(){return this._dragExportEnabled}async setDragExportEnabled(e){l.enabled("charting_library_export_chart_data")?(await async function(){if(null===Rn){const e=await Promise.all([i.e(2578),i.e(9498)]).then(i.bind(i,99207));Rn=e}}(),this._dragExportEnabled.setValue(e)):console.error("feature is not enabled")}zoomToViewport(e,t,i,s,o){this.setTimeViewport(e,t);let n=Math.min(i,s),r=Math.max(i,s);const a=o.defaultPriceScale();a.isPercentage()||a.setMode({autoScale:!1}),a.isLog()&&(n=a.priceToLogical(n),r=a.priceToLogical(r)),a.setPriceRange(new Qc.PriceRange(n,r)),this.recalculateAllPanes((0,wi.viewportChangeEvent)()),this.invalidate(this._paneInvalidationMask(o,ao.InvalidationLevel.Light))}setTimeViewport(e,t){const i=this.appliedTimeFrame().value();null!==this._lastAppliedGotoTimeRange&&null!==i&&Tr(this._lastAppliedGotoTimeRange.range,i.val)&&!this._lastAppliedGotoTimeRange.actual||(this.timeScale().zoomToBarsRange(e,t),this.recalculateAllPanes((0,wi.viewportChangeEvent)()),this.recalcVisibleRangeStudies(Co.RecalcVisibleRangeStudiesReason.ViewportChangeUserAction),this.lightUpdate())}onTagsChanged(){return this._tagsChanged}canZoomIn(){return this._timeScale.canZoomIn()&&this._zoomEnabled}canZoomOut(){return this._timeScale.canZoomOut()&&this._zoomEnabled}onPaneTagsChanged(){this._tagsChanged.fire()}panesCollectionChanged(){return this._panesCollectionChanged}dataSourceCollectionChanged(){return this._dataSourceCollectionChanged}symbolSourceCollectionChanged(){return this._symbolSourceCollectionChanged}symbolSourceResolved(){return this._symbolSourceResolved}symbolSourceResolvingActive(){return this._symbolSourceResolvingActive}adjustForDividendsAvailability(){return this._adjustForDividendsAvailability}adjustForDividendsEnabled(){return this._adjustForDividendsEnabled}allowedAdjustment(){return this._allowedAdjustment}paneCollapsingAvailable(){return this._paneCollapsingAvailable}sourcePropertiesChanged(){return this._sourceProperitesChanged}sourceZOrderChanged(){return this._sourceZOrderChanged}zoomTime(e,t,i){if(!this._zoomEnabled)return;const s=this.timeScale();if(s.isEmpty()||0===t)return;const o=s.width();e=Math.max(1,Math.min(e,o-2)),s.zoom(e,t,i),this.recalculateAllPanes((0,wi.viewportChangeEvent)()),this.lightUpdate(),this.recalcVisibleRangeStudies(Co.RecalcVisibleRangeStudiesReason.ViewportChangeUserAction)}lineBeingEdited(){return this._lineBeingEdited?.lineDataSource??null}linePointBeingEdited(){return this._lineBeingEdited?.pointIndex??null}linePointBeingChanged(){return this._lineBeingEdited?.startChangingPoint??null}activeItemBeingMoved(){return this._activeItemBeingMoved}mainSeries(){return this._mainSeries}updateAllPaneViews(e){for(const t of this._panes)t.updateAllViews(e);this._watermarkSource?.updateAllViews(e)}dataSources(){const e=[this.crosshairSource()];for(const t of this._panes)for(const i of t.dataSources())e.push(i);return e} -priceDataSources(){const e=[];for(const t of this._panes)for(const i of t.priceDataSources())e.push(i);return e}symbolSources(){const e=[];for(const t of this._panes)for(const i of t.symbolSources())e.push(i);return e}orderedDataSources(e){let t=[this._crossHairSource];for(let i=0;ie.updateAllViews((0,wi.selectionChangeEvent)())));let n=[];if(s.forEach((e=>{(0,zs.isLineTool)(e)&&!t&&((0,zs.isEditableTextLineTool)(e)&&e.deactivateTextEditing(),e.shouldBeRemovedOnDeselect()&&n.push(e))})),1===o.length){const[e]=o;(0,zs.isLineTool)(e)&&e.hasAlert().value()&&0===e.alertStatus().value()&&e.synchronizeAlert().catch((()=>{}))}n=n.filter((e=>null!==this.dataSourceForId(e.id()))),n.length>0&&this._undoModel.removeSources(n,!1,I_),this.lightUpdate(),(s.length>0||o.length>0)&&this._selectedSourceChanged.fire()}onSelectedSourceChanged(){return this._selectedSourceChanged}checkLineToolSelection(){const e=this.selection().allSources();this._selection.checkLineToolSelection(),e.length!==this.selection().allSources().length&&this._selectedSourceChanged.fire()}lineToolsGroupModel(){return this._lineToolsGroupModel}restoreLineToolsGroups(e){this._lineToolsGroupModel=wd.fromState(this,e)}realignLineTools(e){for(const t of this._panes)(void 0===e||t.hasDataSource(e))&&t.realignLineTools(e)&&this._dataSourceCollectionChanged.fire(t)}copyToOtherCharts(e,t){const i=this.mainSeries(),s=i.syncModel(),o=this.timeScale();if(s)for(const r of e){if(!r.isSynchronizable())continue;const e=r.linkKey().value()||(0,fe.randomHash)();r.linkKey().setValue(e);const a=r.state(!1),l=r.normalizedPoints(),c=r.normalizedPointsForCreating(),h=r.properties().interval.value(),d=i.interval(),u=e=>{if(Re.Interval.isEqual(h,d))return e.map((e=>{const t=(0,n.ensureNotNull)(o.timePointToIndex(e.time_t))+e.offset;return{price:e.price,timeStamp:(0,n.ensureNotNull)(this.externalTimeStamp(t))}}));{const t=s.createNewModelWithResolution(h);return e.map((e=>({price:e.price,timeStamp:0===e.offset?e.time_t:t.projectTime(e.time_t,e.offset)})))}},_=u(l),p=u(c),m={...a,id:r.id(),linkKey:e,points:_,pointsForCreating:p,linetool:r.toolname,model:this,symbol:i.symbol(),withUndo:t,zOrder:r.zorder(),finalState:{points:l,interval:h},pointPositionPercents:r.isFixed()?r.calcPositionPercents():void 0,sharingMode:r.sharingMode().value()};(0,mt.copyLineTool)(m)}}isSnapshot(){return this._isSnapshot}onWidget(){ -return this._options.onWidget}hideIdeas(){return this._options.hideIdeas}updateSource(e){const t=this._invalidationMaskForSource(e);null!==t&&this.invalidate(t)}updateSourcePriceScale(e){const t=this._invalidationMaskForSourcePriceScale(e);null!==t&&this.invalidate(t)}updatePane(e){this.invalidate(this._paneInvalidationMask(e))}updateTimeScaleBaseIndex(e){const t=this.mainSeries().bars(),i=(t.firstIndex()??1/0)<(e?.index??-1/0),s=this._timeScale.baseIndex();if(t.isEmpty()||this._updateBaseIndex((0,n.ensureNotNull)(t.lastIndex()),!!(e&&e.index>0)),i&&!this._timeScale.isBeingScrolled()&&!this._timeScale.isBeingScaled()){const e=this._timeScale.baseIndex()-s,t=this._timeScale.rightOffset();t-this.studyAwareDefaultRightOffset()>e&&this._timeScale.setRightOffset(t-e)}}setInterval(e,t){const i=setInterval(e,t);return this._modelIntervals.push(i),i}clearInterval(e){clearInterval(e);const t=this._modelIntervals.indexOf(e);t>-1&&this._modelIntervals.splice(t,1)}clearIntervals(){for(let e=0;ethis.insertStudyWithParams(e,t,i,o,n,r,a,l,c,h,d,u),storeFailedStub:e=>{}})}insertStudyWithParams(e,t,i,s,o,r,a,l,c,h,u,_){let p=null;if(!o&&void 0!==e.groupingKey){const t=this.findNonOverlayStudyWithGroupingKey(e.groupingKey);null!==t&&(p=t.pane)}null===p&&(o||e.is_price_study?p=(0,n.ensureNotNull)(this.paneForSource(r?.[0]??this._mainSeries)):(p=this.createPane(),void 0!==h&&p.setPaneSize(h))),"Compare@tv-basicstudies"===e.id&&this._mainSeries.priceScale().setMode({log:!1,percentage:!0});const m=(0,tt.merge)((0,Al.default)(s??{}),{inputs:t,parentSources:[]});let g=!1,f=null,y=null;const v=r??[],S=(0,Zl.prepareStudyProperties)(e,m,p,(0,os.studyMetaInfoRepository)().studyVersioning(),v),b=(0,Ws.createStudy)(this,S,v,new ns.StudyMetaInfo(e.state(),e.useVersionFromMetaInfo),new ns.StudyMetaInfo(e.state(),e.useVersionFromMetaInfo),_,void 0),w=(0,me.createDeferredPromise)();return b.then((e=>{if(g)return e.stop(),void e.destroy?.();f=e.id();const t=p.findSuitableScale(e,r?.[0]??this.mainSeries(),a);if(y=t.mode(),t===this.mainSeries().priceScale()&&(0,Lr.isSymbolSource)(e)){const i=l?kr(e,t,this,!0):null,s=c?ih(e,t,this,!0):null;null===i&&null===s||e.setSymbolParams({currency:i||void 0,unit:s||void 0})}if((0,Lr.isSymbolSource)(e)&&(0,n.ensureNotNull)(p).hasDataSource(this.mainSeries())&&A_&&!d.getBool("enable_symbol_labels_on_inserting_compare_once",!1)&&((0,yi.allowSavingDefaults)(!0),this.properties().childs().scalesProperties.childs().showSymbolLabels.setValue(!0),(0,yi.allowSavingDefaults)(!1),d.setValue("enable_symbol_labels_on_inserting_compare_once",!0)),w.resolve(e.start()),i&&p.id()===i.paneId)p.insertDataSource(e,t,i.zorder);else{p.addDataSource(e,t,!1);null!==e.preferredZOrder()&&p.insertAfter([e],this.mainSeries())}void 0!==u&&t.setMode(u),e.isLinkedToSeries()&&e.setOwnerSource(this.mainSeries()),this.recalculatePane(p,(0,wi.sourceChangeEvent)(e.id())), -this.fullUpdate(),this._invalidateBarColorerCaches(),this._recalcVisibleRangeStudiesImpl({studies:[e],reasons:new Set([Co.RecalcVisibleRangeStudiesReason.StudyCreation])}),this._recalcColorStudiesImpl({studies:[e],force:!0}),this._studyInserted.fire(e),e.maxOffset().subscribe(this._boundUpdateStudiesMaxOffset,{callWithLast:!0})})),{study:b,startPromise:w.promise,cancel:()=>g=!0,entityId:()=>f,originalScaleMode:()=>y}}replaceStudyStub(e,t){const i=this.paneForSource(e);if(null===i)return!1;const s=e.priceScale(),o=e.zorder(),n=e.ownerSource();return this.paneForSource(e)===i?i.replaceSource(e,t,s):(i.insertDataSource(t,s,o),this.removeSource(e)),t.setOwnerSource(n),this.dataSources().forEach((i=>{i.ownerSource()===e&&i.setOwnerSource(t)})),this._invalidateBarColorerCaches(),t.start(),this.recalculatePane(i,(0,wi.sourceChangeEvent)(t.id())),this.fullUpdate(),!0}insertStudyStub(e,t,i,s){const o=void 0!==t,r=new Zr.StudyStub(this,i??null,e,t,s??null);let a;if(t||!o){a=(0,n.ensureNotNull)(this.mainPane());const e=!0===t?this.mainSeries().priceScale():a.createPriceScaleAtPosition("overlay");a.addDataSource(r,e,!1)}else a=this.createPane(),a.addDataSource(r,null,!1);return r.setZorder(a.newStudyZOrder()),this.recalculatePane(a,(0,wi.sourceChangeEvent)(r.id())),this.fullUpdate(),r}removeStudyStub(e){const t=this.dataSourceForId(e);return null===t?(k_.logNormal("StudyStub id="+e+" is not found in chart model"),!1):(this.removeSource(t),!0)}restoreStudyStub(e){const t=this.insertStudyStub(e.title,e.isOverlay,e.descriptor);return this.paneForSource(t)?.changeSourceId(t,e.id),t.setStatus(e.status),t}bulkActionMacro(e){const t=this._panes;t.forEach((e=>e.beginBulkAction())),e(),t.forEach((e=>e.endBulkAction()))}allLineTools(){return this._getAllSources(zs.isLineTool)}allLineToolsIncludingHidden(){return this._getAllSources(zs.isLineTool,H_)}setHoveredSource(e,t=null,i){const s=this._hoveredSource!==e;this._hoveredSourceOrigin=i??null,!s&&(0,Ut.hitTestResultDataAreEqual)(this._lastHoveredHittestData,t)||(this._lastHoveredHittestData=t,this._hoveredSource&&(this._hoveredSource.updateAllViews((0,wi.hoverChangeEvent)()),this.updateSource(this._hoveredSource)),this._hoveredSource=e,this._hoveredSource&&(this._hoveredSource.updateAllViews((0,wi.hoverChangeEvent)()),this.updateSource(this._hoveredSource)),s&&this._hoveredSourceChanged.fire(e))}properties(){return this._properties}chartApi(){return this._chartSession}disconnect(){this._sessions?.get()?.stop();for(const e of this.dataSources())e.disconnect&&e.disconnect();this._timeScale.disconnect()}crosshairSource(){return this._crossHairSource}gridSource(){return this._gridSource}publishedChartsTimelineSource(){return null}hoveredSource(){return this._hoveredSource}hoveredSourceOrigin(){return this._hoveredSourceOrigin}hoveredSourceChanged(){return this._hoveredSourceChanged}lastHittestData(){return this._lastHoveredHittestData}lastSelectedHittestData(){return this._lastSelectedHittestData}lightUpdate(){this.invalidate(ao.InvalidationMask.light())}fullUpdate(){ -this.invalidate(ao.InvalidationMask.full())}async syncTimeWithModel(e,t,i){const s=this.mainSeries().syncModel();if(null===s)return;const o=1e3*this.createSyncPoint(e,s.syncSourceTarget()).sourceTimeToTargetTime(t/1e3),r=(0,Ce.get_timezone)((0,n.ensureNotNull)(this.timezoneExceptExchange().value()));let a=(0,Ce.utc_to_cal)(r,o);return this.mainSeries().isDWM()&&(a=s.getSession().spec.correctTradingDay(a),(0,Ce.set_hms)(a,0,0,0,0,(0,Ce.get_timezone)("Etc/UTC"))),this._gotoTimeImpl(a.getTime(),{targetPointAlignment:"center",alignIfTargetPointIsVisible:!1,autoscaleAfterScroll:!1,...i}).catch((()=>{}))}gotoTime(e,t){return this._gotoTimeImpl(e,{targetPointAlignment:"center",alignIfTargetPointIsVisible:!0,autoscaleAfterScroll:!0,...t}).catch((()=>{}))}recalculatePane(e,t){e?.recalculate(t)}recalculateAllPanes(e){this._panes.forEach((t=>t.recalculate(e))),this.updateAllPaneViews(e),this.crosshairSource().updateAllViews(e)}async gotoTimeRange(e,t,i){const s=this.timeScale(),o=s.tickMarks(),r=this.mainSeries();if(i||this._lastGotoTimeRange?.deferred.reject(),void 0===o.minIndex)return void(i||(this._lastGotoTimeRange={from:e,to:t,deferred:(0,me.createDeferredPromise)()}));let a=e,l=t;if(null!==r.symbolInfo()){const i=(0,n.ensureNotNull)(this.timezoneExceptExchange().value()),s=(0,Ce.get_timezone)(i),o=(0,Ce.utc_to_cal)(s,e),c=(0,Ce.utc_to_cal)(s,t);if(r.isDWM()){const e=(0,Ce.get_timezone)("Etc/UTC");(0,Ce.set_hms)(o,0,0,0,0,e),(0,Ce.set_hms)(c,0,0,0,0,e)}a=o.getTime(),l=c.getTime()}const c=(0,n.ensureDefined)(o.maxIndex),h=(0,n.ensureDefined)(o.minIndex);if(!(a>=(0,n.ensureNotNull)(o.indexToTime(h)).valueOf()||r.endOfData()||i)){const s={type:"time-range",from:e/1e3,to:t/1e3};return null===this._lastAppliedGotoTimeRange&&(this._lastAppliedGotoTimeRange={range:s,actual:!0},r.loadDataTo(s)),i||(i=this._lastGotoTimeRange={from:e,to:t,deferred:(0,me.createDeferredPromise)()}),i.deferred.promise}{const e=(e,t)=>e(0,n.ensureNotNull)(o.indexToTime(e)).valueOf(),d=(0,Pt.lowerboundExt)(t,a,e,o.nearestIndex(a),c);let u=a===l?d:(0,Pt.lowerboundExt)(t,l,e,o.nearestIndex(l),c);this._lastGotoTimeRange=null,null!==this._lastAppliedGotoTimeRange&&(this._lastAppliedGotoTimeRange.actual=!1);const _=s.baseIndex();if(d+Math.max(u-d+1,s.minVisibleBarCount())>_){const e=s.targetDefaultRightOffset();u-_=0;t--)if(this._panes[t].hasDataSource(e))return this._panes[t];return e instanceof xi?this.paneForSource(this.mainSeries()):null}mainPane(){return this._panes.find((e=>e.isMainPane().value()))??null}lastPane(){return this._panes[this._panes.length-1]}removeSource(e,t){ -this.selectionMacro((t=>t.removeSourceFromSelection(e)),!0),this._hoveredSource===e&&(this._hoveredSource=null,this._lastHoveredHittestData=null),this._sourcesBeingMoved.includes(e)&&(this._sourcesBeingMoved=this._sourcesBeingMoved.filter((t=>t!==e)),this._sourcesBeingMoved.length||(this._activeItemBeingMoved=null)),e===this._lineBeingEdited?.lineDataSource&&(this._lineBeingEdited=null,mt.isToolEditingNow.setValue(!1)),e===this.lineBeingCreated()&&(this._linesBeingCreated.shift(),0===this._linesBeingCreated.length&&mt.isToolCreatingNow.setValue(!1)),!t&&e.stop&&e.stop();const i=this.detachSource(e),s=this.mainSeries().priceScale();return(0,Ws.isStudy)(e)&&(0,Lr.isActingAsSymbolSource)(e)&&e.priceScale()===s&&s.isPercentage()&&1===s.seriesLikeSources().filter(Lr.isActingAsSymbolSource).length&&s.setMode({percentage:!1}),this.fullUpdate(),this._invalidateBarColorerCaches(),(0,Ws.isStudy)(e)&&((0,ee.emit)("study_event",e.id(),"remove"),e.isChildStudy()&&e.parentSources().forEach((t=>t.unsetChild(e))),e.maxOffset().unsubscribe(this._boundUpdateStudiesMaxOffset)),!t&&e.destroy&&e.destroy(),(0,zs.isLineTool)(e)&&(e.removeAlert(),(0,ee.emit)("drawing_event",e.id(),"remove")),i}mainSeriesScaleRatio(){return(0,Wl.scaleRatio)(this._timeScale,this.mainSeries().priceScale())}setMainSeriesScaleRatio(e){(0,n.ensureNotNull)(this.paneForSource(this._mainSeries)).applyPriceScaleRatio(this._mainSeries.priceScale(),e)}timezone(){return this._properties.childs().timezone.value()}timezoneExceptExchange(){return this._timezoneExceptExchange}allStudies(e){const t=e?e=>(0,Ws.isStudy)(e)&&!0:Ws.isStudy;return this._getAllSources(t)}studiesWV(e){return e?this._studiesExcludeInternalWV.readonly():this._studiesWV.readonly()}signatureSources(){return this._signatureSources}sourcesSignatures(){return this._sourcesSignatures}listUserStudies(e){const t=[];for(const i of this._panes)for(const s of i.priceDataSources())if(!(0,Ws.isFundamentalStudy)(s)&&(0,Ws.isStudy)(s)&&s.showInObjectTree()){const{id:i,shortDescription:o}=s.metaInfo();if(e.dontCountVolume&&"Volume@tv-basicstudies"===i||e.dontCountCompare&&"Compare@tv-basicstudies"===i||e.dontCountOverlay&&"Overlay@tv-basicstudies"===i)continue;t.push(o)}return t}findNonOverlayStudyWithGroupingKey(e,t){const i=void 0!==t?[t]:this._panes;for(const t of i){const i=t.dataSources().find((i=>(0,Ws.isStudy)(i)&&i.metaInfo().groupingKey===e&&!t.isOverlay(i)));if(void 0!==i)return{pane:t,study:i}}return null}canMovePaneUp(e){if(0===e)return!1;const t=this._panes[e],i=this._panes[e-1];return t.mode()===zi.PaneMode.Widget?i.containsMainSeries():i.mode()!==zi.PaneMode.Widget||!t.containsMainSeries()||1!==e}movePaneUp(e){this.movePane(e,e-1)}canMovePaneDown(e){if(e===this._panes.length-1)return!1;const t=this._panes[e],i=this._panes[e+1];return t.mode()===zi.PaneMode.Widget?i.containsMainSeries():i.mode()!==zi.PaneMode.Widget||!t.containsMainSeries()||e!==this._panes.length-2}movePaneDown(e){this.movePane(e,e+1)}movePane(e,t){const i=this._panes[e];this._panes.splice(e,1),this._panes.splice(t,0,i), -this._panesCollectionChanged.fire(this._panes),this._onRearrangePanes.fire(),this._invalidateBarColorerCaches(),this.invalidate(ao.InvalidationMask.panesOrder())}toggleCollapsedPane(e){const t=this._panes[e];t.collapsed().setValue(!t.collapsed().value()),this.fullUpdate()}sendToBack(e){this._sendTo(e,((e,t)=>e.sendToBack(t)))}bringToFront(e){this._sendTo(e,((e,t)=>e.bringToFront(t)))}backgroundColor(){return this._backgroundColor}backgroundTopColor(){return this._backgroundTopColor}backgroundColorAtYPercentFromTop(e){const t=this.backgroundColor().value(),i=this.backgroundTopColor().value();return this._backgroundColorAtYPercentFromTop.gradientColor(i,t,e)}backgroundCounterColor(){return this._backgroundCounterColor.readonly()}dark(){return this._isDark}backgroundTheme(){return this._backgroundTheme}readOnly(){return this._readOnly}defaultResolutions(){return this.chartApi().defaultResolutions()}availableCurrencies(){const e=this._getAvailableCurrencies();return e.length!==this._availableCurrencies.size()&&(this._availableCurrencies=new Fd(e)),this._availableCurrencies}currencyConversionEnabled(){return this._options.currencyConversionEnabled}availableUnits(){const e=this._getAvailableUnits();return this._availableUnits.unitsChanged(e)&&(this._availableUnits=new Wd(e)),this._availableUnits}unitConversionEnabled(){return this._options.unitConversionEnabled}availablePriceSources(e){const t=this._getAvailablePriceSources(e);return null!==t&&this._availablePriceSources.priceSourcesChanged(t)&&(this._availablePriceSources=new C_(t)),this._availablePriceSources}resetDeferredStudies(){vh.instance(this).reset()}waitForStudy(e){const t=this.dataSourceForId(e);return t&&(0,Ws.isStudy)(t)?Promise.resolve(t):vh.instance(this).get(e)}resetWaitForStudy(e){vh.instance(this).delete(e)}isJustClonedChart(){return this._undoModel.isJustClonedChart()}studyTemplate(e,t,i){const s={panes:[],version:this.version()};for(const e of this.panes())s.panes.push(e.state({includeSources:!0,isStudyTemplate:!0}));const o=this.mainSeries();return e&&(s.symbol=o.symbol(),this.currencyConversionEnabled()&&i&&(s.currency=o.currency()),this.unitConversionEnabled()&&i&&(s.unit=o.unit())),t&&(s.interval=o.interval()),s}dataSourceForId(e){for(const t of this._panes){const i=t.dataSourceForId(e);if(i)return i}return null}getStudyById(e){const t=this.dataSourceForId(e);return null!==t&&(0,Ws.isStudy)(t)?t:null}getLineToolById(e){const t=this.dataSourceForId(e);return null!==t&&(0,zs.isLineTool)(t)?t:null}restoreLineToolState(e,t,i){t.positionPercents?e.restorePositionPercents(t.positionPercents):(e.clearFixedPoint(),e.restorePoints(t.points,t.indexes||[])),t.state.intervalsVisibilities=(0,bh.mergeIntervalVisibilitiesDefaults)(t.state.intervalsVisibilities),e.linkKey().setValue(t.linkKey||null),e.properties().mergeAndFire(t.state),e.restoreData&&e.restoreData(t),e.createServerPoints(),e.setZorder(t.zorder??e.zorder()),this.fullUpdate();const s=e.linkKey().value();null!==s&&i&&!this._lineToolsSyncBlock&&(0,mt.restoreLineToolState)({model:this,linkKey:s,state:t -})}restoreFactoryDefaults(e){e.restoreFactoryDefaults(),this.recalcVisibleRangeStudies(Co.RecalcVisibleRangeStudiesReason.ViewportChangeUserAction)}preferences(){return function(e,t,i=m_){const s={timezone:"",priceScaleSelectionStrategyName:"auto",inactivityGaps:!1,timeScale:{defaultRightOffset:e.timeScale().defaultRightOffset().value(),defaultRightOffsetPercentage:e.timeScale().defaultRightOffsetPercentage().value(),usePercentageRightOffset:e.timeScale().usePercentageRightOffset().value()},mainSeries:{},sessions:{},paneProperties:{},scalesProperties:{},chartEventsSourceProperties:{},tradingProperties:{}},o=["timeScale","mainSeries","sessions"],n=i.mainSeries,r=Object.keys(i),a=Object.keys(n),l=t.properties(),c=e.sessions().properties(),h=e.properties(),d=i.sessions,u=Object.keys(d);return a.forEach((e=>{s.mainSeries[e]=f_(e,l,n,"mainSeries")})),u.forEach((e=>{s.sessions[e]=f_(e,c,d,"sessions")})),r.forEach((e=>{o.includes(e)||(s[e]=f_(e,h,i,"preferences"))})),s}(this,this.mainSeries())}applyPreferences(e){for(const[t,i]of Object.entries(e)){const e=this._properties.child(t);void 0!==i&&void 0!==e&&e.mergeAndFire(i)}if(void 0!==e.timeScale){const t=e.timeScale;this._timeScale.defaultRightOffset().setValue(t.defaultRightOffset),this._timeScale.defaultRightOffsetPercentage().setValue(t.defaultRightOffsetPercentage),this._timeScale.usePercentageRightOffset().setValue(t.usePercentageRightOffset)}this._properties.saveDefaults(),this._mainSeries.applyPreferences(e.mainSeries),this.sessions().restoreState({properties:e.sessions},!1),this.recalculateAllPanes((0,wi.globalChangeEvent)()),this.fullUpdate()}restoreTheme(e,t,i){e.mainSourceProperties.hollowCandleStyle||(e.mainSourceProperties.hollowCandleStyle=e.mainSourceProperties.candleStyle),this._undoModel.chartLoadTheme(e,t,i)}updateScales(){this.mainSeries().properties().childs().priceAxisProperties.fireChanged()}onResetScales(){return this._resetScales}startMovingSources(e,t,i,s,o,r){this._sourcesBeingMoved=e,this._activeItemBeingMoved=i;let a=!1;if(this._sourcesBeingMoved.forEach((e=>{!a&&(0,Ws.isStudy)(e)&&(a=!0);const l=(0,n.ensureNotNull)(this.paneForSource(e)),c=(0,zs.isLineTool)(e),h=c&&e.linkKey().value();if(!1!==h&&null!==h&&s.has(h)&&c&&e.isFixed()){const t=(0,n.ensureDefined)(s.get(h)),a={screen:this._percentPositionToPoint(t,l)};e.startMoving(a,i,o,r)}else e.startMoving(t,i,o,r);const d=this._paneInvalidationMask(l,ao.InvalidationLevel.Light);this.invalidate(d)})),!r){const[s,r]=F_(e);if(s.size&&t.logical){const a=this.externalTimeStamp(t.logical.index),l={linkKeys:[...s],toolNames:[...r],model:this,symbol:this.mainSeries().symbol(),point:{price:t.logical.price,timeStamp:a},activeItem:null!==i?i:void 0,envState:o,pointPositionPercents:new Map};e.forEach((e=>{if((0,zs.isLineTool)(e)){const i=e.linkKey().value();if(i&&e.isSynchronizable()&&e.isFixed()){const s=(0,n.ensureNotNull)(this.paneForSource(e));l.pointPositionPercents.set(i,this._pointToPercentPosition((0,n.ensureDefined)(t.screen),s))}}})),(0,mt.startMovingLineTool)(l)}}mt.isToolMovingNow.setValue(!0), -a&&mt.isStudyEditingNow.setValue(!0)}moveSources(e,t,i,s){if(this._sourcesBeingMoved.filter((e=>!e.isLocked||!e.isLocked())).forEach((o=>{const r=(0,zs.isLineTool)(o)?o.linkKey().value():null;if(null!==r&&t.has(r)){const e=(0,n.ensureNotNull)(this.paneForSource(o)),a=(0,n.ensureDefined)(t.get(r)),l={screen:this._percentPositionToPoint(a,e)};o.move(l,this._activeItemBeingMoved,i,s)}else o.move(e,this._activeItemBeingMoved,i,s)})),this.lightUpdate(),!s&&e.logical&&!this._lineToolsSyncBlock){const[t,s]=F_(this._sourcesBeingMoved),o=this.externalTimeStamp(e.logical.index),r={linkKeys:[...t],toolNames:[...s],model:this,point:{price:e.logical.price,timeStamp:o},envState:i,pointPositionPercents:new Map};this._sourcesBeingMoved.filter(zs.isLineTool).forEach((t=>{if(t.linkKey().value()&&t.isSynchronizable()&&t.isFixed()){const i=(0,n.ensureNotNull)(this.paneForSource(t));r.pointPositionPercents.set(t.linkKey().value(),this._pointToPercentPosition((0,n.ensureDefined)(e.screen),i))}})),(0,mt.moveLineTool)(r)}}endMovingSources(e,t,i){const s=this._sourcesBeingMoved.map((s=>{const o=(0,n.ensureNotNull)(this.paneForSource(s)),r=s.endMoving(e,t,i),a=this._paneInvalidationMask(o,ao.InvalidationLevel.Light);return a.invalidateAll(ao.InvalidationLevel.Light),this.invalidate(a),r}));if(!t&&!this._lineToolsSyncBlock){const[e,t]=F_(this._sourcesBeingMoved),i=this._sourcesBeingMoved.filter(zs.isLineTool).filter((e=>e.isSynchronizable()&&!!e.linkKey)).map((e=>{const t={points:e.normalizedPoints(),interval:this.mainSeries().interval()};return e.isFixed()&&(t.pointPositionPercents=e.calcPositionPercents()),t}));e.size&&(0,mt.finishMovingLineTool)({linkKeys:[...e],toolNames:[...t],model:this,finalStates:i,changes:s})}this._sourcesBeingMoved=[],this._activeItemBeingMoved=null,mt.isToolMovingNow.setValue(!1),mt.isStudyEditingNow.setValue(!1)}sourcesBeingMoved(){return this._sourcesBeingMoved}setMovingCustomSource(e,t){this._customSourceBeingMoved=e,this._customSourceBeingMovedHitTestData=null!==t?{beingMoved:!1,cancelled:!1,...t}:null}processingCustomSourceMove(){null!==this._customSourceBeingMovedHitTestData&&(this._customSourceBeingMovedHitTestData.beingMoved=!0)}customSourceMovingHitTestData(){return this._customSourceBeingMovedHitTestData}customSourceBeingMoved(){return null!==this._customSourceBeingMovedHitTestData&&this._customSourceBeingMovedHitTestData.beingMoved?this._customSourceBeingMoved:null}lineToolsSynchronizer(){return this._lineToolsSynchronizer}setLineToolsSynchronizer(e){this._lineToolsSynchronizer=e}width(){return this._width}setWidth(e,t){(this._panes.reduce(((t,i)=>i.setWidth(e)||t),!1)||this._width!==e)&&(this._width=e,this._timeScale.setWidth(e,t),this.recalculateAllPanes((0,wi.viewportChangeEvent)()),this.recalcVisibleRangeStudies(Co.RecalcVisibleRangeStudiesReason.ViewportChangeUserAction))}setPaneHeight(e,t){e.setHeight(t),this.recalculateAllPanes((0,wi.viewportChangeEvent)()),this.lightUpdate()}resetScalesAvailable(){return this._resetScalesAvailable.readonly()}maximizedPane(){return this._maximizedPane.readonly()} -setMaximizedPane(e){(0,n.assert)(null===e||this._panes.includes(e),"The pane is not part of this chart"),this._maximizedPane.setValue(e)}panes(){return this._panes}paneForId(e){return this._panes.find((t=>t.id()===e))||null}createPane(e,t,i,s){this._restoringState||this._maximizedPane.setValue(null);const o=this._properties.childs().paneProperties;t&&o.merge(t);const n=new kh(this._timeScale,o,this,i,s??zi.PaneMode.Regular);return void 0!==e?this._panes.splice(e,0,n):this._panes.push(n),n.onTagsChanged().subscribe(this,(()=>this.onPaneTagsChanged())),n.dataSourcesCollectionChanged().subscribe(this,(()=>this._dataSourceCollectionChanged.fire(n))),n.dataSourcesZOrdersChanged().subscribe(this,(()=>this._invalidateBarColorerCaches())),n.symbolSourceCollectionChanged().subscribe(this,(()=>this._onSymbolSourceCollectionChanged(n))),n.priceSourcesCollectionChanged().subscribe(this,(()=>this._onPriceSourcesCollectionChanged(n))),n.sourcePropertiesChanged().subscribe(this,(e=>this._sourceProperitesChanged.fire(n,e))),n.sourceZOrderChanged().subscribe(this,(e=>this._sourceZOrderChanged.fire(n,e))),n.symbolSourceResolved().subscribe(this,(e=>this._symbolSourceResolved.fire(n,e))),n.symbolSourceResolvingActive().subscribe(this._recalcSymbolResolvingActive),n.collapsed().subscribe(this._recalcPaneCollapsingAvailable),n.resetPriceScalesAvailable().subscribe(this._updateResetScalesAvailableValue,{callWithLast:!0}),this._recalcPaneCollapsingAvailable(),this._panesCollectionChanged.fire(this._panes),this._invalidateBarColorerCaches(),this.invalidate(ao.InvalidationMask.panesOrder()),n}removePane(e){e===this._maximizedPane.value()&&this._maximizedPane.setValue(null),e.destroy();const t=this._panes.indexOf(e);-1!==t&&(this._panes.splice(t,1),e.dataSourcesCollectionChanged().unsubscribeAll(this),e.dataSourcesZOrdersChanged().unsubscribeAll(this),e.symbolSourceCollectionChanged().unsubscribeAll(this),e.priceSourcesCollectionChanged().unsubscribeAll(this),e.sourcePropertiesChanged().unsubscribeAll(this),e.onTagsChanged().unsubscribeAll(this),e.symbolSourceResolved().unsubscribeAll(this),e.symbolSourceResolvingActive().unsubscribe(this._recalcSymbolResolvingActive),e.collapsed().unsubscribe(this._recalcPaneCollapsingAvailable),e.resetPriceScalesAvailable().unsubscribe(this._updateResetScalesAvailableValue),this._recalcPaneCollapsingAvailable(!0)),this._updateResetScalesAvailableValue();this.crosshairSource().pane===e&&this.clearCurrentPosition(),this._panesCollectionChanged.fire(this._panes),this._invalidateBarColorerCaches(),this.invalidate(ao.InvalidationMask.panesOrder())}changePanesHeight(e,t){if(this._panes.length<2)return;(0,n.assert)(e>=0&&ee+t.stretchFactor()),0),o=this._panes.reduce(((e,t)=>e+t.height()),0),r=o-30*(this._panes.length-1);t=Math.min(r,Math.max(30,t));const a=s/o,l=i.height();i.setStretchFactor(t*a);let c=t-l,h=this._panes.length-1;for(const e of this._panes)if(e!==i){const t=Math.min(r,Math.max(30,e.height()-c/h)) -;c-=e.height()-t,h-=1;const i=t*a;e.setStretchFactor(i)}this.fullUpdate()}clearCurrentPosition(){const e=this.crosshairSource();e.clearPosition(),(0,n.ensureNotNull)(e.dataWindowView()).update((0,wi.sourceChangeEvent)(e.id())),D_(this._panes),this.invalidate(ao.InvalidationMask.cursor()),this._undoModel.syncCrosshair(null),this._phantomSourceContainer.onCursorPositionUpdated()}getTpoSummaryPane(){throw new Error("Not implemented")}getVolumeFootprintSummaryPane(){throw new Error("Not implemented")}setAndSaveCurrentPosition(e,t,i,s){this.crosshairSource().saveOriginCoords(e,t),this.setCurrentPosition(e,t,i,s)}setCurrentPosition(e,t,i,s){let o=NaN;const r=this._timeScale.coordinateToVisibleIndex(e),a=(this._lineBeingEdited??this._linesBeingCreated[0])?.ownerSource.priceScale()??i.defaultPriceScale();let l=null;!a.isEmpty()&&Number.isFinite(t)&&(l=(0,n.ensureNotNull)(i.mainDataSource()).firstValue(),null!==l&&(o=a.coordinateToPrice(t,l)));const c=this._crossHairSelectPointMode.value()!==mt.SelectPointMode.None,h=mt.tool.value(),d=this.mainSeries(),u=this.crosshairSource(),_=u.index,p=u.price,m=c||mt.isStudyEditingNow.value();let g=!1;const f=(0,Dn.magnetSnapsToIndicators)().value();if(a===this._mainSeries.priceScale()||f)if((0,Lt.isLineDrawnWithPressedButton)(h)){const e=this.lineBeingCreated();g=null===e||(0,zs.isBrushBasedLineTool)(e)&&e.hasOnlyOnePoint()}else{g=Boolean(this.lineBeingCreated()||this._lineBeingEdited||(0,Lt.isLineToolName)(h)||(0,mt.toolIsMeasure)(h))||m}!this._isSettingsExternalPosition&&g?(o=this._magnet.align(o,r,i),null!==l&&this._setCorrectedPositionToCrosshair(r,o,i)):this._magnet.resetLastValue();let y=null;if(isNaN(o)||(y=i),this._isTimeScrolling){if(!this._isSettingsExternalPosition&&c){const e=d.bars().firstIndex(),t=d.bars().lastIndex();if(null!==e&&null!==t){const s=Math.min(Math.max(r,e),t);s!==r&&this._setCorrectedPositionToCrosshair(s,o,i)}}else u.setPosition(u.index,o,y);return}u.setOnHoveredChartWidget(!0),u.setPosition(r,o,y),(0,n.ensureNotNull)(u.dataWindowView()).update((0,wi.sourceChangeEvent)(u.id())),D_(this._panes);const v=d.syncModel(),S=this.lineBeingCreated();if(this.crosshairSource().startMeasurePoint()||S?this.lightUpdate():this.invalidate(ao.InvalidationMask.cursor()),S){const e=S.linkKey().value();if(!this._isSettingsExternalPosition){const t=S.setLastPoint({index:r,price:o},s);if(S.updateAllViews((0,wi.sourceChangeEvent)(S.id())),t.price===o&&t.index===r||this._setCorrectedPositionToCrosshair(t.index,t.price,i),v&&e&&!this._lineToolsSyncBlock){const i=this._timeScale.points().roughTime(t.index,v.projectTime.bind(v));(0,mt.setLineToolLastPoint)({model:this,linkKey:e,point:{timeStamp:(0,n.ensureNotNull)(i),price:t.price}})}}}if(!this._isSettingsExternalPosition&&null!==this._lineBeingEdited&&null!==this._lineBeingEdited.pointIndex){const e={index:r,price:o},{lineDataSource:t,pointIndex:n,startChangingPoint:a}=this._lineBeingEdited;if(a?.nonDiscreteIndex){const t=this.crosshairSource().originX();Number.isFinite(t)&&(e.index=this._timeScale.coordinateToFloatIndex(t))} -this.changeLinePoint(e,s);const l=t.alignCrossHairToAnchor(n)?t.getPoint(n):e;null!==l&&this._setCorrectedPositionToCrosshair(l.index,l.price,i)}if(!this._isSettingsExternalPosition&&1===this._sourcesBeingMoved.length){const e=this._sourcesBeingMoved[0];if(e.alignCrossHairToMovePoint?.()){const t=e.currentMovingPoint?.();t&&t.logical&&this._setCorrectedPositionToCrosshair(t.logical.index,t.logical.price,i)}}if(!this._isSettingsExternalPosition&&m){const e=d.bars().firstIndex(),t=d.bars().lastIndex();if(null!==e&&null!==t){const s=Math.min(Math.max(r,e),t);s!==r&&this._setCorrectedPositionToCrosshair(s,o,i)}}(_!==r||p!==o)&&this._syncCrosshair(s)}setExternalPosition(e,t){let i;const s=this.crosshairSource();if(s.setOnHoveredChartWidget(!1),null!==e&&(0,tt.isNumber)(e.timeStamp)){const t=this.mainSeries().syncModel();if(t){const s=this.createSyncPoint(e.syncSourceTarget,t.syncSourceTarget()).sourceTimeToTargetTime(e.timeStamp);i=this._timeScale.points().roughIndex(s,t.distance.bind(t),1)}}if(null!==e&&null!=i&&Number.isFinite(i)){this._isSettingsExternalPosition=!0;const o=(0,n.ensureNotNull)(this.paneForSource(this.mainSeries())),r=this._timeScale.indexToCoordinate(i),a=(0,n.ensureNotNull)(o.mainDataSource()).firstValue();if(null!==a){let i=NaN;void 0!==e.price&&Number.isFinite(e.price)&&(i=this.mainSeries().priceScale().priceToCoordinate(e.price,a)),s.clearOriginCoords(),this.setCurrentPosition(r,i,o,t)}return s.setOnHoveredChartWidget(!1),void(this._isSettingsExternalPosition=!1)}s.clearPosition(),(0,n.ensureNotNull)(s.dataWindowView()).update((0,wi.sourceChangeEvent)(s.id())),D_(this._panes),this.invalidate(ao.InvalidationMask.cursor())}startScaleTime(e){this._timeScale.startScale(e)}scaleTimeTo(e){this._timeScale.scaleTo(e),this.recalculateAllPanes((0,wi.viewportChangeEvent)()),this.lightUpdate()}endScaleTime(){this._timeScale.endScale(),this.lightUpdate(),this.recalcVisibleRangeStudies(Co.RecalcVisibleRangeStudiesReason.ViewportChangeUserAction)}resetTimeScale(){this._timeScale.restoreDefault(),this.recalculateAllPanes((0,wi.viewportChangeEvent)()),this.recalcVisibleRangeStudies(Co.RecalcVisibleRangeStudiesReason.ViewportChangeUserAction),this.lightUpdate(),this._resetScales.fire()}startScalePrice(e,t,i){e.startScalePrice(t,i)}scalePriceTo(e,t,i){e.scalePriceTo(t,i),this.mainSeries().priceScale().isLockScale()?this.lightUpdate():this.invalidate(this._paneInvalidationMask(e,ao.InvalidationLevel.Light))}endScalePrice(e,t){e.endScalePrice(t),this.invalidate(this._paneInvalidationMask(e,ao.InvalidationLevel.Light))}startTwoPointsScalePrice(e,t,i,s){t.startTwoPointsScale(i,s)}twoPointsScalePriceTo(e,t,i,s){t.twoPointsScale(i,s),t.updateAllViews((0,wi.viewportChangeEvent)()),this.invalidate(this._paneInvalidationMask(e))}endTwoPointsScalePrice(e,t){t.endTwoPointsScale(),this.invalidate(this._paneInvalidationMask(e))}resetPriceScale(e,t){e.resetPriceScale(t),this.invalidate(this._paneInvalidationMask(e,ao.InvalidationLevel.Light))}restorePriceScaleState(e,t,i){e.restorePriceScaleState(t,i), -this.invalidate(this._paneInvalidationMask(e,ao.InvalidationLevel.Light))}detachSource(e){const t=this.paneForSource(e);return!!t&&(t.removeDataSource(e),t.isEmpty()?(this.lineBeingCreated()&&t===this.paneBeingCreatedLineOn()&&this.cancelCreatingLine(),this.removePane(t),!0):(this.fullUpdate(),!1))}restoreSource(e,t,i,s,o){const n=e?this.createPane(t):this.panes()[t],r=(0,wt.isStudyState)(s),a=r?n.restoreStudy(s):(0,wt.isLineToolState)(s)?n.restoreLineTool({state:s}):null;if(!a)return null;let l=null;if(o?(l=n.getPriceScaleById(o.id),l||(l=n.createPriceScaleAtPosition(o.position,o.priceScaleIndex),l.setId(o.id))):l=a.ownerSource()?.priceScale()??l,l&&(a.setPriceScale(l),l.addDataSource(a)),!e&&i&&i.overlayPriceScales){const e=this.dataSources().filter((e=>void 0!==i.overlayPriceScales[e.id()]));e.forEach((e=>n.removeSourceFromPriceScale(e)));const t=new Map;e.forEach((e=>{const s=i.overlayPriceScales[e.id()];if(!s)return;let o;t.has(s.id)?o=t.get(s.id):(o=n.createPriceScaleAtPosition("overlay"),o.restoreState(s),t.set(s.id,o)),e.setPriceScale(o),o.addDataSource(e)}))}return e&&i&&n.restoreState({state:i,withData:!1,version:this.version()}),r&&(this.recalculateAllPanes((0,wi.sourceChangeEvent)(a.id())),this._invalidateBarColorerCaches(),this.fullUpdate()),a}children(e,t,i){return this.dataSources().filter((s=>(0,Ws.isStudy)(s)?!t&&s.parentSources().includes(e):!((0,zs.isLineTool)(s)&&i&&s.supportsTargetSignature()&&null!==s.targetSignature())&&s.ownerSource()===e))}onRearrangePanes(){return this._onRearrangePanes}studyInserted(){return this._studyInserted}finishLineTool(e){const t=e.linkKey().value();(0,mt.drawOnAllCharts)().value()&&null!==t&&e.isSynchronizable()&&!this._lineToolsSyncBlock&&(0,mt.finishLineTool)({linkKey:t,model:this})}startChangingLinetool(e,t,i,s,o,r){this._lineBeingEdited={lineDataSource:e,ownerSource:t,startChangingPoint:i??null,pointIndex:s??null},e.startChanging(s,i,r),mt.isToolEditingNow.setValue(!0);const a=(0,n.ensureNotNull)(this.paneForSource(e));e.startDragPoint&&void 0!==s&&void 0!==i&&e.startDragPoint(s,i),r||void 0===s||void 0===i||e.setPoint(s,i,o,r),e.updateAllViews((0,wi.sourceChangeEvent)(e.id()));const l=this._paneInvalidationMask(a,ao.InvalidationLevel.Light);this.invalidate(l);const c=e.linkKey().value();if(c&&e.isSynchronizable()&&void 0!==s&&void 0!==i&&!this._lineToolsSyncBlock){const t=(0,n.ensureNotNull)(this.externalTimeStamp(i.index));(0,mt.startChangingLineTool)({linkKey:c,model:this,symbol:this.mainSeries().symbol(),point:{price:i.price,timeStamp:t},positionPercents:e.positionPercents(),pointIndex:s,envState:o||null})}}createLineTool(e){const{point:t,linetool:i,linkKey:s=null,sharingMode:o=0,id:r,fromExternalModel:a,actionSource:l,pane:c}=e;let{properties:h,ownerSource:d}=e;d=(0,n.ensureDefined)(d||(0,n.ensureNotNull)(c.mainDataSource()));let u=c;if((0,n.assert)((0,Lt.isLineToolName)(i),`Cannot create unknown line tool: ${i}`),h){const e={...v_.intervalsVisibilitiesDefaults},t=h.childs().intervalsVisibilities.state();(0,tt.merge)(e,t??{});const s=h.state() -;s.intervalsVisibilities=e,h=(0,zs.createLineToolProperties)(this.backgroundTheme().spawnOwnership(),i,!this.readOnly(),s)}const _=(0,zs.createLineTool)(i,this,h,null,void 0,r,l);if("LineToolExecution"!==i){let e;switch(i){case"LineToolIcon":e=_.properties().childs().icon.value().toString(16).toUpperCase();break;case"LineToolEmoji":e=_.properties().childs().emoji.value();break;case"LineToolSticker":e=_.properties().childs().sticker.value()}(0,re.trackEvent)("drawings","Study_Drawing_"+i,e)}(0,Us.isStudyLineTool)(_)&&(0,re.trackEvent)("studies",`Study_${_.metaInfo().id}`,_.metaInfo().description);const p=!_.linkKey().value()&&!s;h||(0,zs.prepareLineToolPropertiesByOwnerSource)(_.properties(),d),_.setOwnerSource(d);const m=d.priceScale();if(_.setPriceScale(m),L_&&d===this.mainSeries()&&_.share(o),u.addDataSource(_,m,!1),null!==_.preferredZOrder()&&u.insertAfter([_],this.mainSeries()),(0,mt.drawOnAllCharts)().value()){const e=_.isSynchronizable()?s||(0,fe.randomHash)():null;_.linkKey().setValue(e)}else _.linkKey().setValue(s);let g;if(p&&_.enableCurrentIntervalVisibility(),_.isFixed()){const e=(0,n.ensureNotNull)((0,n.ensureNotNull)(c.mainDataSource()).firstValue()),i=this._timeScale.indexToCoordinate(t.index),s=(0,n.ensureNotNull)(m).priceToCoordinate(t.price,e);g=_.addFixedPoint(new Vt.Point(i,s))}else g=_.addPoint(t);return g||(this._linesBeingCreated.unshift({lineDataSource:_,fromExternal:!!a,ownerSource:d,pane:c}),mt.isToolCreatingNow.setValue(!0)),this.fullUpdate(),_}endChangingLinetool(e,t){const i=(0,n.ensureNotNull)(this._lineBeingEdited).lineDataSource,s=i.endChanging(!1,e,t);this._lineBeingEdited=null,mt.isToolEditingNow.setValue(!1),this.lightUpdate();const o={points:i.normalizedPoints(),interval:this.mainSeries().interval()},r=i.linkKey().value();null===r||!i.isSynchronizable()||t||this._lineToolsSyncBlock||(0,mt.finishChangingLineTool)({model:this,linkKey:r,symbol:this.mainSeries().symbol(),finalState:o,changes:s})}continueCreatingLine(e,t,i,s,o){const r=(0,n.ensureNotNull)(this.lineBeingCreated()),a=r.addPoint(e,t,i,o);r.updateAllViews((0,wi.sourceChangeEvent)(r.id()));const l=new ao.InvalidationMask(ao.InvalidationLevel.Light);return a&&(this._linesBeingCreated.shift(),0===this._linesBeingCreated.length&&mt.isToolCreatingNow.setValue(!1)),this.invalidate(l),a}cancelCreatingLine(){const e=this.lineBeingCreated();e&&(this.removeSource(e),this._linesBeingCreated.shift(),this._lineCancelled.fire(),0===this._linesBeingCreated.length&&mt.isToolCreatingNow.setValue(!1),(0,mt.drawOnAllCharts)().value()&&e.isSynchronizable()&&!this._lineToolsSyncBlock&&(0,mt.cancelLineTool)({model:this}))}lineBeingCreated(){return this._linesBeingCreated[0]?.lineDataSource??null}lineBeingCreateFromExternal(){return this._linesBeingCreated[0]?.fromExternal??!1}paneBeingCreatedLineOn(){return this._linesBeingCreated[0]?.pane??null}lineCancelled(){return this._lineCancelled}isPhantomLine(e){return this._phantomSourceContainer.source()===e}alignTo45Degrees(e,t,i){const[s,o]=i,n={...o};e.snapPoint45Degree(s,n), -this.startChangingLinetool(e,t,o,o.pointIndex),this.changeLinePoint(n,To.EnvironmentState.create(!0)),this.endChangingLinetool(!1)}changeLinePoint(e,t,i){const s=(0,n.ensureNotNull)(this._lineBeingEdited),o=s.lineDataSource,r=(0,n.ensureNotNull)(s.pointIndex);let a=e.price,l=e.index;if(o.setPoint(r,e,t,i),!i){const t=o.alignCrossHairToAnchor(r)?o.getPoint(r):e;null!==t&&(l=t.index,a=t.price)}o.updateAllViews((0,wi.sourceChangeEvent)(o.id())),this.lightUpdate();const c=o.linkKey().value();if(!i&&null!==c&&o.isSynchronizable()&&!this._lineToolsSyncBlock){const e=(0,n.ensureNotNull)(s.startChangingPoint),i={indexesChanged:l!==e.index,pricesChanged:a!==e.price},h=o.getChangePointForSync(r);if(null!==h){const e=this.externalTimeStamp(l);null!==e&&(a=h.price,(0,mt.changeLineTool)({linkKey:c,model:this,symbol:this.mainSeries().symbol(),point:{price:a,timeStamp:e},positionPercents:o.positionPercents(),envState:t,changes:i}))}}}changeLinePoints(e,t,i){const s=e.points(),o=e.linkKey().value();!i&&o&&e.isSynchronizable()&&!this._lineToolsSyncBlock&&t.forEach(((t,i)=>{const r=s[i],a=r.price!==t.price,l=r.index!==t.index;if(e.getChangePointForSync(i)){const i=(0,n.ensureNotNull)(this.externalTimeStamp(t.index));(0,mt.changeLineTool)({linkKey:o,model:this,symbol:this.mainSeries().symbol(),point:{price:t.price,timeStamp:i},positionPercents:e.positionPercents(),changes:{pricesChanged:a,indexesChanged:l}})}})),e.setPoints(t),e.updateAllViews((0,wi.sourceChangeEvent)(e.id())),this.lightUpdate()}startScrollTime(e){this._timeScale.startScroll(e),this._isTimeScrolling=!0,this.mainSeries().clearGotoDateResult()}scrollTimeTo(e){this._timeScale.scrollTo(e),this.recalculateAllPanes((0,wi.viewportChangeEvent)()),this.lightUpdate()}endScrollTime(){this._timeScale.endScroll(),this.lightUpdate(),this.recalcVisibleRangeStudies(Co.RecalcVisibleRangeStudiesReason.ViewportChangeUserAction),this._isTimeScrolling=!1}startScrollPrice(e,t,i){e.startScrollPrice(t,i)}scrollPriceTo(e,t,i){e.scrollPriceTo(t,i),this.invalidate(this._paneInvalidationMask(e,ao.InvalidationLevel.Light))}endScrollPrice(e,t){e.endScrollPrice(t),this.invalidate(this._paneInvalidationMask(e,ao.InvalidationLevel.Light))}addCustomSource(e,t,i=Co.CustomSourceLayer.Foreground){this._customSourcesMap.has(e)&&k_.logWarn(`Attempt to add the same custom source multiple time "${e}"`),k_.logNormal(`Adding custom source "${e}"`);const s=t(e,this);switch(i){case Co.CustomSourceLayer.Background:this._bgCustomSources.push(s);break;case Co.CustomSourceLayer.Foreground:this._fgCustomSources.push(s);break;case Co.CustomSourceLayer.Topmost:this._topmostCustomSources.push(s);break;default:throw new Error(`Unknown custom sources layer ${i}`)}this._allCustomSources.push(s),this._customSourcesMap.set(e,s),this.lightUpdate()}removeCustomSource(e){this._removeCustomSource(e),this.lightUpdate()}hasCustomSource(e){return this._customSourcesMap.has(e)}customSourceForName(e){return this._customSourcesMap.get(e)||null}customSourceName(e){let t=null;return this._customSourcesMap.forEach(((i,s)=>{i===e&&(t=s) -})),t}customSources(e){switch(e){case Co.CustomSourceLayer.Background:return this._bgCustomSources;case Co.CustomSourceLayer.Foreground:return this._fgCustomSources;case Co.CustomSourceLayer.Topmost:return this._topmostCustomSources;default:return this._allCustomSources}}addMultiPaneSource(e){this._multiPaneSources.push(e),this._onMultipaneSourcesCollectionChanged.fire(),this.lightUpdate()}removeMultiPaneSource(e){const t=this._multiPaneSources.indexOf(e);-1===t?k_.logWarn("Attempt to remove multi-pane source which does not exist in the model"):(this._onMultipaneSourcesCollectionChanged.fire(),this._multiPaneSources.splice(t,1)),this.lightUpdate()}multiPaneSources(e){return this._multiPaneSources.filter((t=>!e.hasDataSource(t)))}onMultipaneSourcesCollectionChanged(){return this._onMultipaneSourcesCollectionChanged}rendererOptionsProvider(){return this._rendererOptionsProvider}magnet(){return this._magnet}priceAxisRendererOptions(){return this._rendererOptionsProvider.options()}priceScaleSlotsCount(){let e=0,t=0;this._panes.forEach((i=>{e=Math.max(i.leftPriceScales().length,e),t=Math.max(i.rightPriceScales().length,t)}));const i=e+t;if(ze.CheckMobile.any()){const e=(0,n.ensureNotNull)(this.paneForSource(this.mainSeries())),t=e.priceScalePosition(this.mainSeries().priceScale());return("overlay"===t?e.rightPriceScales().length>0:"right"===t)?{left:0,right:1,totallySlots:i}:{left:1,right:0,totallySlots:i}}return{left:e,right:t,totallySlots:i}}dateTimeFormatter(){return this._dateTimeFormatter}dateFormatter(){return this._dateFormatter}timeFormatter(){return this._timeFormatter}isUnmergeAvailableForSource(e){if(!this._unmergeAvailable(e))return!1;return(0,n.ensureNotNull)(this.paneForSource(e)).dataSources().filter(this._unmergeAvailable,this).length>1}isMergeDownAvailableForSource(e){if(!this._unmergeAvailable(e))return!1;const t=this.paneForSource(e),i=this.panes().filter((e=>e.mode()===zi.PaneMode.Regular));return t!==i[i.length-1]}isMergeUpAvailableForSource(e){if(!this._unmergeAvailable(e))return!1;return this.paneForSource(e)!==this.panes().filter((e=>e.mode()===zi.PaneMode.Regular))[0]}isPriceScaleVisible(e){const t=e.mainSource();if(!t)return!1;const i=(0,n.ensureNotNull)(this.paneForSource(t)),s=i.priceScalePosition(e);if("overlay"===s)return!0;const o=i.priceScaleIndex(e,s),r=this.priceScaleSlotsCount()[s];return void 0!==o&&o{const s=await Promise.all([i.e(8736),i.e(6025),i.e(9378),i.e(1485),i.e(5456),i.e(7539)]).then(i.bind(i,52973));return this.addCustomSource("sessions",((i,o)=>{const n=new s.Sessions(i,o,t,e);return n.start(),n -}),Co.CustomSourceLayer.Background),this.customSourceForName("sessions")})(),this,t)}}createPrePostMarket(e){this.addCustomSource("prePostMarket",((t,i)=>new Rd(t,i,e)))}createInactivityGaps(){this.addCustomSource("inactivityGaps",((e,t)=>new M_(e,t)))}inactivityGaps(){if(!l.enabled("inactivity_gaps"))throw new Error("inactivity_gaps featureset is not enabled");return(0,n.ensureNotNull)(this._inactivityGapsWatchedValue)}setInactivityGapsSession(e){(0,n.ensureNotNull)(this.customSourceForName("inactivityGaps")).setSession(e||"session")}watermarkSource(){return this._watermarkSource}watermarkContentProvider(){return P_.getInstance().provider()}studiesColorRotatorFactory(){return this._studyColorRotatorFactory}replayStatus(){return this._replayStatus}setReplayStatus(e){this._replayStatus.setValue(e)}isInReplay(){return this._mainSeries.isInReplay()}getSymbolString(){return this._mainSeries.getSymbolString()}interval(){return this._mainSeries.interval()}onInReplayStateChanged(){return new ae.Delegate}switchToReplay(e,t){0}switchToRealtime(){0}canChangeResolution(e){return this._mainSeries.canChangeResolution(e)}canChangeSymbol(e){return this._mainSeries.canChangeSymbol(e)}onReplayModified(){return(0,n.assert)(!1,"Replay not implemented"),this._mainSeries.onReplayModified()}mainSeriesScaleRatioProperty(){return this._mainSeriesScaleRatioProperty}mainSeriesScaleRatioPropertyOnChanged(){this._mainSeriesScaleRatioProperty.fireChanged()}getThemeNameIfStdTheme(){const e=this.sessions().properties(),t=this.properties(),i=this.mainSeries().properties();return e.allThemePropertiesAreDefault($s.StdTheme.Light)&&t.allThemePropertiesAreDefault($s.StdTheme.Light)&&i.allThemePropertiesAreDefault($s.StdTheme.Light)?$s.StdTheme.Light:e.allThemePropertiesAreDefault($s.StdTheme.Dark)&&t.allThemePropertiesAreDefault($s.StdTheme.Dark)&&i.allThemePropertiesAreDefault($s.StdTheme.Dark)?$s.StdTheme.Dark:null}theme(){return{chartProperties:this.properties().themeState(),sessions:this.sessions().properties().themeState(),mainSourceProperties:this.mainSeries().properties().themeState(),version:this.version()}}template(){return{chartProperties:this.properties().template(),sessions:this.sessions().properties().template(),mainSourceProperties:this.mainSeries().properties().template(),version:this.version()}}onChartThemeLoaded(){return this._chartThemeLoaded}chartThemeLoaded(){this._chartThemeLoaded.fire()}async colorStudiesPropertiesReady(){this._recalcColorStudiesImpl(this._recalcVRStudiesParams);const e=this.allStudies(!0).filter((e=>e.metaInfo().inputs.filter(Ts.isStudyInputDependsOnChartColors).length>0));await Promise.all(e.map((e=>e.propertiesPatched())))}state(e){const{withData:t,skipLineToolsFromOtherSymbols:i,skipLineTools:s}=e,o=this.publishedChartsTimelineSource(),n=this.properties().childs(),r=n.tradingProperties.state(),a={panes:this._panes.map((t=>t.state({...e,includeSources:!0}))),timeScale:this._timeScale.state(t),chartProperties:{paneProperties:n.paneProperties.state(["horzGridProperties.style","vertGridProperties.style"]), -scalesProperties:n.scalesProperties.state(),publishedChartsTimelineProperties:o?o.state(t):void 0,chartEventsSourceProperties:n.chartEventsSourceProperties?.state(),tradingProperties:r,priceScaleSelectionStrategyName:n.priceScaleSelectionStrategyName.value(),inactivityGaps:n.inactivityGaps.value()},sessions:this.sessions().state(t),version:this.version(),timezone:this.timezone(),shouldBeSavedEvenIfHidden:this._shouldBeSavedEvenIfHidden,linkingGroup:this._linkingGroupIndex.value()};return s||(a.lineToolsGroups=this.lineToolsGroupModel().state(i)),a}isInRestoreState(){return this._restoringState}restoreState(e,t,i){vh.instance(this).reset();const s={};if(!e.panes)return void k_.logDebug("ChartModel.restoreState: invalid state");if(!Array.isArray(e.panes))return void k_.logDebug("ChartModel.restoreState: invalid state");if(e.panes.length<1)return void k_.logDebug("ChartModel.restoreState: invalid state");this._restoringState=!0;for(const e of this._barsMarksSources)this.detachSource(e);if(this._shouldBeSavedEvenIfHidden=e.shouldBeSavedEvenIfHidden??!0,e.chartProperties&&!e.chartProperties.timezone&&(e.chartProperties.timezone=e.timezone),e.chartProperties){const i=(0,h.factoryDefaults)("chartproperties").scalesProperties;(0,tt.merge)(i,e.chartProperties.scalesProperties),!("showLastValue"in i)||"showSeriesLastValue"in i||"showStudyLastValue"in i||(i.showSeriesLastValueProperty=i.showLastValue,i.showStudyLastValueProperty=i.showLastValue),"showSeriesLastValue"in i&&(s.showSeriesLastValueProperty=!0),"showStudyLastValue"in i&&(s.showStudyLastValueProperty=!0),(!this.isSnapshot()&&!this.readOnly()&&"showCurrency"in i||"showUnit"in i)&&((0,Be.migrateShowCurrencyAndShowUnitProperties)(i.showCurrency,i.showUnit),delete i.showCurrency,delete i.showUnit);{const{paneProperties:t}=e.chartProperties;t.vertGridProperties=t.vertGridProperties||(0,tt.clone)(t.gridProperties),t.horzGridProperties=t.horzGridProperties||(0,tt.clone)(t.gridProperties),"backgroundType"in t||(t.backgroundType=co.ColorType.Solid),"separatorColor"in t||(t.separatorColor=(0,L.getThemedColor)("color-chart-page-bg")),this._properties.childs().paneProperties.mergeAndFire(t)}this._properties.childs().scalesProperties.mergeAndFire(i),e.chartProperties.timezone&&this._properties.childs().timezone.setValue(e.chartProperties.timezone),e.chartProperties.chartEventsSourceProperties&&this._properties.hasChild("chartEventsSourceProperties")&&this._properties.childs().chartEventsSourceProperties.mergeAndFire(e.chartProperties.chartEventsSourceProperties),e.chartProperties.tradingProperties&&this._properties.hasChild("tradingProperties")&&(void 0===e.chartProperties.tradingProperties.horizontalAlignment&&(e.chartProperties.tradingProperties.horizontalAlignment=(o=e.chartProperties.tradingProperties.lineLength)<=40?Co.TradedGroupHorizontalAlignment.Right:o>=60?Co.TradedGroupHorizontalAlignment.Left:Co.TradedGroupHorizontalAlignment.Center),this._properties.childs().tradingProperties.mergeAndFire(e.chartProperties.tradingProperties)), -this._timeScale.restoreState(e.timeScale,t),this._updateDateTimeFormatter()}var o;if(e.timeScale&&this._timeScale.restoreState(e.timeScale,t),!this.readOnly()){const t=this._getExceedingChildStudies(e.panes);if(t.length){for(let i=e.panes.length-1;i>=0;--i){const s=e.panes[i];for(let e=s.sources.length-1;e>=0;--e){const i=s.sources[e];~t.indexOf(i)&&s.sources.splice(e,1)}s.sources.length||s.mode!==zi.PaneMode.Regular||e.panes.splice(i,1)}0}}const r=e.version||0,a=e.panes;let l="_seriesId",c=1;for(const e of a){const t=e.sources.find((e=>"MainSeries"===e.type));if(t){l=t.id,t.state&&(c=t.state.style);break}}const d=!0,u=a[0];this.panes()[0].restoreState({state:u,withData:t,version:r,seriesId:l,settingsMigration:s,contentOverrides:i,restoreSilently:d,reason:2,targetSeriesStyle:c}),this.panes()[0].mainDataSource()||this.removePane(this.panes()[0]);let _=1;for(let o=1;of&&m%100==0?{lines_limit_exceeded:!0,line_tools_count:m}:(this.panes().forEach((e=>this._dataSourceCollectionChanged.fire(e))),this._lineToolsGroupModel.fireChangedAll(),this._linkingGroupIndex.setValue(e.linkingGroup??null),this._restoringState=!1,{})}shouldBeSavedEvenIfHidden(){return this._shouldBeSavedEvenIfHidden}setShouldBeSavedEvenIfHidden(e){this._shouldBeSavedEvenIfHidden=e}externalTimeStamp(e){const t=this.mainSeries().syncModel();return this.timeScale().points().roughTime(e,t&&t.projectTime.bind(t))}syncLollipopSources(){this._lollipopSourcesWatcherLoader?.callFunction((()=>{null!==this._lollipopSourcesWatcher&&this._lollipopSourcesWatcher.syncSources()}))}restoreChartEvents(e){this._lollipopSourcesWatcherLoader?.callFunction((()=>{null!==this._lollipopSourcesWatcher&&this._options.chartEventsEnabled&&this._lollipopSourcesWatcher.restoreChartEvents(e)}))} -recalcVisibleRangeStudies(e){if(this._recalcVRStudiesParams.reasons.add(e),this._mainSeries.isStarted()&&this._mainSeries.isCompleted()){const t=(0,n.ensureDefined)(N_.get(e)).adapter,i=Math.min(...Array.from(this._recalcVRStudiesParams.reasons).map((e=>(0,n.ensureDefined)(N_.get(e)))).filter((e=>e.adapter===t)).map((e=>e.timeout)));(0,n.ensureDefined)(this._recalcVisibleRangeStudiesImplDebouncedByAdapter.get(t)?.get(i))()}else this._recalcVisibleRangeStudiesImpl(this._recalcVRStudiesParams)}recalcColorStudies(e){this._recalcColorStudiesParams.force=this._recalcColorStudiesParams.force||Boolean(e),this._recalcColorStudiesImplDebounced()}recalcStudyBasedLineTools(){this.dataSources().forEach((e=>{(0,Us.isStudyLineTool)(e)&&e.recalcStudyIfNeeded()}))}alertsWatcher(){return this._alertsWatcher}alertsCollection(){return this._alertsCollection.readonly()}showLegend(){return this._showLegendProperty}id(){return this._id}selectPointMode(){return this._crossHairSelectPointMode}cancelRequestSelectPoint(){this._crossHairSource.cancelRequestSelectPoint()}requestSelectPoint(e){return this._crossHairSource.requestSelectPoint(e)}onPointSelected(){return this._crossHairSource.onPointSelected()}recalculatePriceRangeOnce(){const e=this.mainSeries();for(const t of this._panes)for(const i of t.priceDataSources())i.symbolSource()===e&&i.disablePriceRangeReady()}invalidate(e){this._invalidateHandler?.(e)}appliedTimeFrame(){return this._appliedTimeFrame.appliedTimeFrame()}barsMarksSources(){return this._barsMarksSources}createSyncPoint(e,t){return(0,s_.getDefault2Lazy)(this._syncPointCache,e.uniqueId,t.uniqueId,(()=>new xd(e,t)))}isAutoSaveEnabled(){return this._isAutoSaveEnabled}linkingGroupIndex(){return this._linkingGroupIndex}studyAwareDefaultRightOffset(){return this._timeScale.usePercentageRightOffset().value()?this._timeScale.percentsToBarIndexLength(this.studyAwareDefaultRightOffsetPercentage()):Math.max(this._timeScale.defaultRightOffset().value(),this._cachedStudiesMaxOffset)}studyAwareDefaultRightOffsetPercentage(){return this._timeScale.usePercentageRightOffset().value()?Math.max(this._timeScale.defaultRightOffsetPercentage().value(),this._timeScale.barIndexLengthToPercents(this._cachedStudiesMaxOffset)):this._timeScale.barIndexLengthToPercents(this.studyAwareDefaultRightOffset())}clearAllStudies(){this.dataSources().forEach((e=>e.clearData?.()))}setTimeScaleAnimation(e,t){const i=ao.InvalidationMask.light(),s=this._timeScale;i.setTimeScaleAnimation(e,t??s.width()-s.indexToCoordinate(s.baseIndex())),this.invalidate(i)}stopTimeScaleAnimation(){this._timeScale.endScroll();const e=ao.InvalidationMask.light();e.stopTimeScaleAnimation(),this.invalidate(e)}lollipopSourcesOptions(){const e=this._options;return{chartEventsEnabled:!this._options.isSnapshot&&this._options.chartEventsEnabled,esdEnabled:e.esdEnabled,newsNotificationsEnabled:e.newsNotificationsEnabled,continuousContractSwitchesEnabled:e.continuousContractSwitchesEnabled,futuresContractExpirationEnabled:e.futuresContractExpirationEnabled, -latestUpdatesEnabled:e.latestUpdatesEnabled}}onSymbolIntervalChanged(){return this._symbolIntervalChanged}setPriceAutoScale(e,t,i){e.setPriceAutoScale(t,i),this.invalidate(this._paneInvalidationMask(e,ao.InvalidationLevel.Light))}calculateDefaultTags(){return this.dataSources().reduce(((e,t)=>(t.tags&&e.push(...t.tags()),e)),[])}setActivationChartFloatingTooltipHint(e){this.isSnapshot()||null!==e&&e!==this.mainSeries()&&(!(0,Ws.isStudy)(e)||(0,Ws.isESDStudy)(e))||this._activationChartFloatingTooltipHint.setValue(!0)}activationChartFloatingTooltipHint(){return this._activationChartFloatingTooltipHint.readonly()}setChartFloatingTooltipVisible(e){this._chartFloatingTooltipVisible.setValue(e),this._crossHairSource.updateAllViews((0,wi.crosshairMoveEvent)()),this.lightUpdate()}chartFloatingTooltipVisible(){return this._chartFloatingTooltipVisible.readonly()}async withoutLineToolsSyncAction(e){try{this._lineToolsSyncBlock++,await e()}finally{this._lineToolsSyncBlock--}}symbolAliasService(){return this._symbolAliasService}_initAlertsList(){throw new Error("Not implemented")}_updateStudiesMaxOffset(){const e=Math.max(...this.allStudies().map((e=>e.maxOffset().value())));this._cachedStudiesMaxOffset=e;const t=this._timeScale.rightOffset();if(t<0)return;if(e<=t)return;const i=this._timeScale.logicalRange();i?this._timeScale.zoomToBarsRange(i.left(),this._timeScale.baseIndex()+Math.max(this._timeScale.rightOffset(),e)):this._timeScale.setRightOffset(Math.max(t,e))}_updateBaseIndex(e,t){const i=this._timeScale,s=i.baseIndex(),o=i.logicalRange();if(null!==o&&t){const t=o.contains(s),n=e-s,r=t?null:i.rightOffset()-n;if(!this._options.shiftVisibleRangeOnNewBar&&t){const e=i.width()/i.barSpacing(),t=e/(e+n),s=Math.max(i.minBarSpacing(),i.barSpacing()*t);i.setBarSpacing(s)}null!==r&&i.setRightOffset(r)}i.setBaseIndex(e)}async _createLollipopSourcesWatcher(){}_updateDateTimeFormatter(){const e=be.dateFormatProperty.value(),t=this.onWidget()?void 0:Md.withWeekdayProperty.value();if(this._dateFormatter=new bd.DateFormatter(e,t),this.mainSeries().isDWM())this._dateTimeFormatter=new bd.DateFormatter(e,t),this._timeFormatter=new Uh.TimeFormatter((0,jh.getHourMinuteFormat)(we.timeHoursFormatProperty.value()));else{const i=Re.Interval.parse(this.mainSeries().interval()),s=(0,jh.getTimeFormatForInterval)(i,we.timeHoursFormatProperty.value());this._dateTimeFormatter=new Sd.DateTimeFormatter({dateFormat:e,withWeekday:t,timeFormat:s,dateTimeSeparator:" "}),this._timeFormatter=new Uh.TimeFormatter(s)}}_invalidationMaskForSource(e,t=ao.InvalidationLevel.Light){if(e===this.crosshairSource())return ao.InvalidationMask.cursor();if(this._watermarkSource===e)return this._paneInvalidationMask((0,n.ensureNotNull)(this.paneForSource(this.mainSeries())),t);if(-1!==this._allCustomSources.indexOf(e)){const e=new ao.InvalidationMask;return e.invalidateAll(t),e}if(!(0,Po.isDataSource)(e))return null;if(e.isMultiPaneEnabled())return new ao.InvalidationMask(t);const i=this.paneForSource(e);return null!==i?this._paneInvalidationMask(i,t):null} -_paneInvalidationMask(e,t=ao.InvalidationLevel.Light){const i=new ao.InvalidationMask,s=this._panes.indexOf(e);return i.invalidateAllPane(s,t),i}_invalidationMaskForSourcePriceScale(e,t=ao.InvalidationLevel.Light){if(!(0,Po.isDataSource)(e))return new ao.InvalidationMask(t);const i=this.paneForSource(e);if(null===i)return null;let s=e.priceScale();if(null===s)return null;const o=this._panes.indexOf(i);let n=i.priceScalePosition(s);if("overlay"===n){const e=this._panes[o].defaultPriceScale();s=e,n=i.priceScalePosition(e)}const r=i.priceScaleIndex(s,n);if(void 0===r)return null;const a=new ao.InvalidationMask;return a.invalidatePriceScale(o,n,r,t),a}_removeCustomSource(e){const t=this._customSourcesMap.get(e);if(void 0===t)return void k_.logWarn(`Attempt to remove custom source which does not exist in the model - "${e}"`);k_.logNormal(`Removing custom source "${e}"`),this.selectionMacro((e=>{e.removeSourceFromSelection(t)})),this._hoveredSource===t&&this.setHoveredSource(null),this._customSourceBeingMoved===t&&this.setMovingCustomSource(null,null);const i=E_(this._bgCustomSources,t),s=E_(this._fgCustomSources,t),o=E_(this._topmostCustomSources,t),r=E_(this._allCustomSources,t);(0,n.assert)(i||s||o,"Source should be presented in one of the layers"),(0,n.assert)(r,"Source should be presented in the array"),this._customSourcesMap.delete(e),t.destroy()}_updateShowLegendProperty(){const e=this._properties.childs().paneProperties.childs().legendProperties.childs().showLegend,t=this._showLegendProperty;if(e.value())t.setValue(!0);else{for(const e of this._panes){let i=0;for(const s of e.priceDataSources())if(null!==s.statusView()&&(i++,i>=2))return void t.setValue(!1)}t.setValue(!0)}}_pointToPercentPosition(e,t){return{x:e.x/this._timeScale.width(),y:e.y/(0,n.ensureNotNull)((0,n.ensureNotNull)(t.mainDataSource()).priceScale()).height()}}_percentPositionToPoint(e,t){const i=e.x*this._timeScale.width(),s=e.y*(0,n.ensureNotNull)((0,n.ensureNotNull)(t.mainDataSource()).priceScale()).height();return new Vt.Point(i,s)}_recalcVisibleRangeStudiesImpl(e){if(!this._mainSeries.isStarted()||!this._mainSeries.isCompleted())return void this._visibleRangeStudiesInputs.setValue(null);if(this.timeScale().isEmpty())return;const t=this.timeScale().visibleBarsStrictRange();if(null===t)return;const i=this._mainSeries.bars(),s=i.search(t.firstBar(),dd.PlotRowSearchMode.NearestRight),o=i.search(t.lastBar(),dd.PlotRowSearchMode.NearestLeft),n=i.lastIndex(),r=s?s.index:void 0,a=o?o.index:void 0,l=r===e.oldStartVisibleIndex,c=a===e.oldEndVisibleIndex,h=[Co.RecalcVisibleRangeStudiesReason.SeriesRestart,Co.RecalcVisibleRangeStudiesReason.SeriesCompleted,Co.RecalcVisibleRangeStudiesReason.StudyCreation].some((t=>e.reasons.has(t)));l&&c&&!h||(e.reasons.clear(),e.oldStartVisibleIndex=void 0!==r?r:NaN,e.oldEndVisibleIndex=void 0!==a?a:NaN,this._visibleRangeStudiesInputs.setValue({firstVisibleBarTime:1e3*(s?.value[0]??0),lastVisibleBarTime:1e3*(o?.value[0]??0),subscribeRealtime:o?.index===n}))}_recalcColorStudiesImpl(e){ -const t=this.backgroundColorAtYPercentFromTop(.5),i=this.dark().value()?Rt.colorsPalette["color-cold-gray-200"]:Rt.colorsPalette["color-cold-gray-900"],s=t===e.oldBgColor,o=i===e.oldFgColor;if(s&&o&&!e.force)return;e.force=!1,e.oldBgColor=t,e.oldFgColor=i;const n=e.studies??this.priceDataSources();e.studies=void 0;for(const e of n)if((0,Ws.isStudy)(e)){const s=e.metaInfo().inputs.filter(Ts.isStudyInputDependsOnChartColors),o=e.properties().childs().inputs;s.forEach((e=>{const s=e.id===Ts.ChartColorDependentStudyInputNames.FgColor?i:t;o.childs()[e.id].setValueSilently(s)})),s.length>0&&o.fireChanged()}}_getAllSources(e,t=W_){const i=[];for(const s of this._panes){const o=t(s);for(const t of o)e(t)&&i.push(t)}return i}_invalidateBarColorerCaches(){this.mainSeries().invalidateBarColorerCache()}_addAlertLabelToChart(e){throw new Error("Not implemented")}_removeAlertLabelFromChart(e){throw new Error("Not implemented")}_removeAllAlertLabelsFromChart(){throw new Error("Not implemented")}_updateTimeScale(e){const{index:t,zoffset:i,values:s,indexDiffs:o,baseIndex:n,marks:r,clearFlag:a,clearTickMarks:l}=e;if(a){this._timeScale.reset();for(const e of this.dataSources())e.clearData?.()}if(o.length>0)for(const e of this.dataSources())e.moveData?.(o);const c=this._timeScale.indexToTimePoint(this._timeScale.baseIndex()),h=this._timeScale.canNormalize();this._timeScale.update(t,i,s,r,l||!1);const d=this._timeScale.points().range().value();let u="ChartModel.prototype._updateTimeScale("+t+","+i+","+s.length+","+o.length+","+r.length+","+a+")";if(u+="TimeScale: {first:"+(d?.firstIndex??null)+",last:"+(d?.lastIndex??null)+"}",null===n){this._timeScale.resetBaseIndex();const e=this._timeScale.rightOffset();e<0?this._timeScale.setRightOffset(this.studyAwareDefaultRightOffset()):this._timeScale.setRightOffset(Math.max(e,this._cachedStudiesMaxOffset))}else if(void 0!==n){const e=this._timeScale.indexToTimePoint(n),t=null!==c&&null!==e&&e>c;this._updateBaseIndex(n,t)}if(k_.logDebug(u),!h&&h!==this._timeScale.canNormalize())for(const e of this.dataSources())!(0,zs.isLineTool)(e)||e.isFixed()||e.isSourceHidden()||e.processHibernate();for(const e of this.dataSources())e.updateAllViews({type:"data-source-change",sourceId:e.id(),clearData:!0});this.recalculateAllPanes((0,wi.globalChangeEvent)()),this.lightUpdate()}_getAvailableCurrencies(){return!this.currencyConversionEnabled()||this.isSnapshot()?[]:(0,tt.isArray)(this._availableCurrenciesList)?this._availableCurrenciesList:(null!==this._availableCurrenciesList||(this._availableCurrenciesList=this.chartApi().availableCurrencies(),this._availableCurrenciesList.then((e=>{this._destroyed||(this._availableCurrenciesList=e,this.fullUpdate())})).catch((e=>{k_.logWarn(`An error occurred while getting currencies config: ${e}`)}))),[])}_getAvailableUnits(){return!this.unitConversionEnabled()||this.isSnapshot()?{}:this._availableUnitsObject instanceof Promise||null===this._availableUnitsObject?(null!==this._availableUnitsObject||(this._availableUnitsObject=this.chartApi().availableUnits(), -this._availableUnitsObject.then((e=>{this._destroyed||(this._availableUnitsObject=e,this.fullUpdate())})).catch((e=>{k_.logWarn(`An error occurred while getting units config: ${e}`)}))),{}):this._availableUnitsObject}_getAvailablePriceSources(e){const t=this._availablePriceSourcesBySymbol.get(e);if(Array.isArray(t))return t;if((0,tt.isPromise)(t))return[];const i=this.chartApi().availablePriceSources(e);return this._availablePriceSourcesBySymbol.set(e,i),i.then((t=>{this._destroyed||(this._availablePriceSourcesBySymbol.set(e,t),this.fullUpdate())})).catch((e=>{k_.logWarn(`An error occurred while getting price sources config: ${e}`)})),[]}_clearAvailablePriceSources(){this._availablePriceSourcesBySymbol.clear()}_onSymbolIntervalChanged(){this._symbolIntervalChanged.fire()}_getBackgroundColor(e){const t=this._properties.childs().paneProperties.childs();if(t.backgroundType.value()===co.ColorType.Gradient){const i=t.backgroundGradientStartColor.value(),s=t.backgroundGradientEndColor.value();return e?i:s}return t.background.value()}_getBackgroundCounterColor(){const e=this.backgroundColor().value();return"black"===(0,Nt.rgbToBlackWhiteString)((0,Nt.parseRgb)(e),150)?"white":"black"}_updateBackgroundColor(){this._backgroundColor.setValue(this._getBackgroundColor()),this._backgroundTopColor.setValue(this._getBackgroundColor(!0))}_syncCrosshair(e){if(!this._isSettingsExternalPosition){const t=this._undoModel.mainSeries(),i=t.syncModel(),s=this._undoModel.crosshairSource(),o=s.pane;if(null!==i&&null!==o){const n={timeStamp:this._timeScale.points().roughTime(s.index,i.projectTime.bind(i)),syncSourceTarget:i.syncSourceTarget()};o.mainDataSource()===t&&(n.price=s.price,n.symbol=t.symbol()),this._undoModel.syncCrosshair(n,e)}this._phantomSourceContainer.onCursorPositionUpdated()}}_gotoTimeImpl(e,t){const i=this.timeScale(),s=this.mainSeries();let o;if(void 0!==e){if(this._scrollingState&&this._scrollingState.deferred.reject(),o=(0,me.createDeferredPromise)(),!s.isDWM()){const t=s.symbolInfo();if(null!==t){const i=(0,n.ensureNotNull)(this.timezoneExceptExchange().value()),o=(0,Ce.cal_to_utc)((0,Ce.get_timezone)(i),new Date(e)),r=(0,Jd.createTimeToBarTimeAligner)(s.interval(),t)(o);e=(0,Ce.utc_to_cal)((0,Ce.get_timezone)(i),r).getTime()}}this._scrollingState={targetDate:e,deferred:o,targetPointAlignment:t.targetPointAlignment,autoscaleAfterScroll:t.autoscaleAfterScroll}}else{if(!this._scrollingState)return k_.logError("scrollTo called without an argument"),Promise.reject();e=this._scrollingState.targetDate,o=this._scrollingState.deferred}if(void 0===i.tickMarks().minIndex)return o.resolve(void 0),o.promise;this.stopTimeScaleAnimation();let r=((e,o)=>{if((e=>(0,n.ensureNotNull)(i.tickMarks().indexToTime((0,n.ensureDefined)(i.tickMarks().minIndex))).valueOf()-e)(o)<0){let r=i.tickMarks().nearestIndex(o);const a=s.bars().lastIndex();if(null===a)return"no_data";r=Math.min(r,a);let l=(0,n.ensureNotNull)(i.tickMarks().indexToTime(r)).valueOf();for(;le.hasDataSource(this._mainSeries)))&&(this._studiesWV.setValue(this.allStudies()),this._studiesExcludeInternalWV.setValue(this.allStudies(!0)))}_unmergeAvailable(e){return e===this._mainSeries||(0,Ws.isStudy)(e)&&!e.isLinkedToSeries()&&e.showInObjectTree()}_getExceedingChildStudies(e){let t=[];for(let i=0;i1&&s.push(e)),n=(n+1)%t.length}return s}_sendTo(e,t){const i=new Map;e.forEach((e=>{const t=this.paneForSource(e);if(!t)return;const s=this._panes.indexOf(t);i.has(s)||i.set(s,[]),i.get(s)?.push(e)}));for(const[e,s]of i.entries())t(this._panes[e],s);this.fullUpdate()}_initialiseInactivityGaps(){if(!l.enabled("inactivity_gaps"))return;this.createInactivityGaps();const e=async e=>{const t=this.customSourceForName("inactivityGaps");e?t.start():t.stop()};if(null===this._inactivityGapsWatchedValue){const t=this.properties().childs().inactivityGaps;this._inactivityGapsWatchedValue=(0,ye.convertPropertyToWatchedValue)(t),this._inactivityGapsWatchedValue.subscribe((t=>{e(t)})),e(t.value())}}_getWidgetPane(e,t){throw new Error("Not implemented")}}var U_=i(14715);class j_ extends st.UndoCommand{constructor(e,t,i,s){super(s,void 0,!Wr.lineToolsDoNotAffectChartInvalidation),this._model=i,this._id=e.id(), -this._targetSharingMode=t,this._originSharingMode=e.sharingMode().value()}redo(){const e=this._model.dataSourceForId(this._id);e&&(e.share(this._targetSharingMode),0!==this._targetSharingMode&&0===this._originSharingMode&&(e.linkKey().setValue((0,fe.randomHash)()),this._model.copyToOtherCharts([e],!1)))}undo(){const e=this._model.dataSourceForId(this._id);e&&(e.share(this._originSharingMode),0===this._originSharingMode&&((0,mt.removeLineTool)({withUndo:!1,model:this._model,symbol:e.symbol(),linkKey:(0,n.ensureNotNull)(e.linkKey().value()),sourceTitle:(0,bi.getTranslatedStringForSource)(pa.TitleDisplayTarget.StatusLine,e),lineToolState:e.state(!1),unlink:!0}),e.linkKey().setValue(null)))}}const G_=new dt.TranslatedString("zoom",a.t(null,void 0,i(91084)));class q_ extends st.UndoCommand{constructor(e,t,i,s,o,n){super(G_),this._barSpacing=null,this._rightBarsOffset=null,this._leftBarsOffset=null,this._priceMode=null,this._model=e,this._startBar=t,this._endBar=i,this._startPrice=s,this._endPrice=o,this._pane=n}redo(){const e=(0,n.ensureNotNull)(this._model.timeScale().visibleBarsStrictRange());this._leftBarsOffset=e.firstBar()-this._startBar,this._rightBarsOffset=e.lastBar()-this._endBar,this._barSpacing=this._model.timeScale().barSpacing(),this._priceMode=this._pane.defaultPriceScale().mode(),this._model.zoomToViewport(this._startBar,this._endBar,this._startPrice,this._endPrice,this._pane)}undo(){const e=this._model.timeScale(),t=this._pane.defaultPriceScale(),i=(0,n.ensureNotNull)(e.visibleBarsStrictRange());e.setBarSpacing((0,n.ensureNotNull)(this._barSpacing)),e.zoomToBarsRange(i.firstBar()+(0,n.ensureNotNull)(this._leftBarsOffset),i.lastBar()+(0,n.ensureNotNull)(this._rightBarsOffset)),t.setMode((0,n.ensureNotNull)(this._priceMode)),t.recalculatePriceRange((0,n.ensureNotNull)(e.visibleBarsStrictRange())),this._model.recalculateAllPanes((0,wi.viewportChangeEvent)()),this._model.lightUpdate()}}const $_=(0,ne.getLogger)("Chart.ChartUndoModel"),K_=new dt.TranslatedString("zoom",a.t(null,void 0,i(91084)));class Y_ extends st.UndoCommand{constructor(e,t,i){super(K_),this._baseCmd=e,this._zoomStack=t,this._inOut=i}undo(e){if(this._inOut){if(this._baseCmd!==this._zoomStack.head())return void $_.logDebug("zoom stack inconsistency");this._baseCmd.undo(e),this._zoomStack.pop()}else this._baseCmd.redo(e),this._zoomStack.push(this._baseCmd)}redo(e){if(this._inOut)this._baseCmd.redo(e),this._zoomStack.push(this._baseCmd);else{if(this._baseCmd!==this._zoomStack.head())return void $_.logDebug("zoom stack inconsistency");this._baseCmd.undo(e),this._zoomStack.pop()}}}const Z_=new dt.TranslatedString("stop syncing drawing",a.t(null,void 0,i(3350)));class X_ extends st.UndoCommand{constructor(e,t){super(Z_,void 0,!Wr.lineToolsDoNotAffectChartInvalidation),this._model=e,this._sourceId=t.id(),this._linkKey=t.linkKey().value()}redo(){(0,n.ensureNotNull)(this._model.dataSourceForId(this._sourceId)).linkKey().setValue(null)}undo(){(0,n.ensureNotNull)(this._model.dataSourceForId(this._sourceId)).linkKey().setValue(this._linkKey)}} -const J_=new dt.TranslatedString("restore defaults",a.t(null,void 0,i(85815)));class Q_ extends st.UndoCommand{constructor(e,t,i=J_,s=!0){super(i,void 0,s),this._chartModel=e;const o=t.pathToRoot();this._targetObj=(0,Wa.isRootPath)(o)?o:t,this._state=t.state()}redo({chartWidgetCollection:e}){this._chartModel.restoreFactoryDefaults(this._getProperty(e))}undo({chartWidgetCollection:e}){this._getProperty(e).mergeAndFire(this._state),this._chartModel.mainSeries().onChartStyleChanged()}_getProperty(e){const t=this._targetObj;return"string"==typeof t?(0,Wa.propertyByPath)(e,t):t}}class ep extends Q_{constructor(e,t,i,s){super(e,t,i,s??!Wr.lineToolsDoNotAffectChartInvalidation)}redo(e){this._getProperty(e.chartWidgetCollection).child("intervalsVisibilities")?.mergeAndFire(v_.intervalsVisibilitiesDefaults),super.redo(e)}}const tp=new dt.TranslatedString("restore study defaults",a.t(null,void 0,i(96881)));class ip extends ep{constructor(e,t,i=tp){super(e,t.properties(),i,!0),this._studyId=t.id()}redo(e){super.redo(e),this._chartModel.recalcColorStudies(!0),this._patchProperties()}undo(e){super.undo(e),this._chartModel.recalcColorStudies(!0),this._patchProperties()}_patchProperties(){0}}function sp(e,t){return(0,yi.extractState)(e,t.map((e=>e.path)))}const op=new dt.TranslatedString("apply chart theme",a.t(null,void 0,i(68231)));class np extends st.UndoCommand{constructor(e,t,i){super(op),this._model=e,t.sessions&&(this._newSessionProps=i?t.sessions:sp(t.sessions,(0,yi.extractThemedColors)(ms.lightTheme.content.sessions,ms.darkTheme.content.sessions))),Th(t.mainSourceProperties.candleStyle),Th(t.mainSourceProperties.hollowCandleStyle),Th(t.mainSourceProperties.haStyle);const s=t;s.chartProperties=s.chartProperties??{paneProperties:{},scalesProperties:void 0};const o=s.chartProperties.paneProperties.gridProperties;s.chartProperties.paneProperties.vertGridProperties=s.chartProperties.paneProperties.vertGridProperties??o,s.chartProperties.paneProperties.horzGridProperties=s.chartProperties.paneProperties.horzGridProperties??o;const n=this._model.properties().state().paneProperties.legendProperties;delete n.backgroundTransparency;const r=s.chartProperties.paneProperties;i&&(r.legendProperties={...r.legendProperties,...n});const a=(0,Al.default)((0,h.factoryDefaults)("chartproperties"));if(delete a.timezone,i){const e=a.paneProperties;e&&(delete e.topMargin,delete e.bottomMargin)}const l=(0,ge.deepExtend)({},a,t.chartProperties);this._newChartProps=i?l:sp(l,(0,yi.extractThemedColors)(ms.lightTheme.content.chartProperties,ms.darkTheme.content.chartProperties)),e.timeScale().preserveBarSpacing()&&"barSpacing"in this._newChartProps.scalesProperties&&delete this._newChartProps.scalesProperties.barSpacing,Ph(t.mainSourceProperties.lineStyle),Ph(t.mainSourceProperties.lineWithMarkersStyle),Ph(t.mainSourceProperties.steplineStyle);const c=(0,h.factoryDefaults)("chartproperties.mainSeriesProperties"),d=(0,ge.deepExtend)({},c,t.mainSourceProperties);i&&(delete d.visible,delete d.symbol,delete d.shortName,delete d.timeframe, -delete d.interval,delete d.currencyId,delete d.unitId,delete d.sessionId,delete d.esdBreaksStyle),this._newSeriesProps=i?d:sp(d,(0,yi.extractThemedColors)(ms.lightTheme.content.mainSourceProperties,ms.darkTheme.content.mainSourceProperties)),this._oldChartProps=i?e.properties().state():e.properties().themeState(),this._oldSeriesProps=i?e.mainSeries().properties().state():e.mainSeries().properties().themeState(),this._oldSessionProps=i?this._model.sessions().properties().state():this._model.sessions().properties().themeState()}undo(){this._merge(this._oldChartProps,this._oldSeriesProps,this._oldSessionProps),this._model.mainSeries().onChartStyleChanged(),this._model.updateScales(),this._model.chartThemeLoaded()}redo(){this._merge(this._newChartProps,this._newSeriesProps,this._newSessionProps),this._model.mainSeries().onChartStyleChanged(),this._model.updateScales(),this._model.chartThemeLoaded()}_merge(e,t,i){const s=this._model;(0,yi.allowSavingDefaults)(!0);const o=s.properties(),n=s.mainSeries().properties(),r=s.sessions().properties();o.applyDefaultThemedProperties(k.watchedTheme.value()),o.mergeAndFire(e),o.saveDefaults(),"priceAxisProperties"in t&&s.mainSeries().priceScale().setMode({autoScale:t.priceAxisProperties?.autoScale,percentage:t.priceAxisProperties?.percentage,log:t.priceAxisProperties?.log,lockScale:t.priceAxisProperties?.lockScale}),n.applyDefaultThemedProperties(k.watchedTheme.value()),n.mergeAndFire(t),n.saveDefaults(),s.mainSeries().createPaneView(),s.mainSeries().invalidateBarStylesCache(),s.recalculateAllPanes((0,wi.globalChangeEvent)()),i&&(r.applyDefaultThemedProperties(k.watchedTheme.value()),r.loadThemeState(i),r.saveDefaults()),s.fullUpdate(),(0,yi.allowSavingDefaults)(!1)}}const rp=new dt.TranslatedString("change resolution",a.t(null,void 0,i(32829)));class ap extends xl{constructor(e,t,i){super(rp,e,function(e,t){let i;const s=(0,xt.isRangeStyle)(e.style()),o=Re.Interval.isRange(t);return!s&&o?i=11:s&&!o&&(i=(0,xt.getLastUsedStyle)()),{interval:t,style:i}}(e,t),i),this._resolution=t}canMerge(e){return e instanceof ap&&e._resolution===this._resolution&&super.canMerge(e)}_showFade(e,t){return!0}}class lp extends lt{constructor(){super(...arguments),this._firstRedo=!0}redo(){this._firstRedo||(0,it.muteLinkingGroup)(this._newValue,!0),(0,it.muteLinkingGroup)(this._oldValue,!0),super.redo(),this._firstRedo||(0,it.muteLinkingGroup)(this._newValue,!1),(0,it.muteLinkingGroup)(this._oldValue,!1),this._firstRedo=!1}undo(){(0,it.muteLinkingGroup)(this._newValue,!0),(0,it.muteLinkingGroup)(this._oldValue,!0),super.undo(),(0,it.muteLinkingGroup)(this._newValue,!1),(0,it.muteLinkingGroup)(this._oldValue,!1)}}var cp=i(91111);class hp extends st.UndoCommand{constructor(e,t,i){super(i),this._chartModel=e,this._stubDescriptor=(0,n.ensureNotNull)(t.getDescriptor())}redo(){this._chartModel.dataSourceForId(this._stubDescriptor.id)||this._chartModel.restoreStudyStub(this._stubDescriptor)}undo(){this._chartModel.removeStudyStub(this._stubDescriptor.id)}}class dp extends st.UndoCommand{constructor(e,t,i){ -super(i,void 0,!Wr.lineToolsDoNotAffectChartInvalidation),this._source=e,this._newState=t,this._oldState=e.properties().state()}redo(){this._source.applyTemplate(this._newState)}undo(){this._source.applyTemplate(this._oldState)}}var up=i(87911),_p=i(49470);const pp=new dt.TranslatedString("apply all chart properties",a.t(null,void 0,i(99551)));class mp extends st.UndoCommand{constructor(e){super(pp),this._trading=null,this._oldNoConfirmEnabled=null,this._oldShowOnlyRejectionNotifications=null,this._oldShowPricesWithZeroVolume=null,this._oldShowPricesWithSpread=null,this._oldOrderExecutedSoundEnabled=null,this._prevWatermarkPreferences=null,this._prevAlertLabelsPreferences=null,this._prevAlertNotificationsPreferences=null,this._model=e,this._trading=(0,_p.tradingService)(),null!==this._trading&&(this._oldNoConfirmEnabled=this._trading.noConfirmEnabled.value(),this._oldShowOnlyRejectionNotifications=this._trading.showOnlyRejectionNotifications.value(),this._oldShowPricesWithZeroVolume=this._trading.showPricesWith().zeroVolume.value(),this._oldShowPricesWithSpread=this._trading.showPricesWith().spread.value(),this._oldOrderExecutedSoundEnabled=this._trading.orderExecutedSoundParams.enabled.value()),this._defaultsPreferences=function(e,t,i=g_,s=!0){const o={timeScale:{defaultRightOffset:e.timeScale().rightOffsetDefaultValue(),defaultRightOffsetPercentage:e.timeScale().defaultRightOffsetPercentage().value(),usePercentageRightOffset:e.timeScale().usePercentageRightOffset().value()},mainSeries:{},sessions:{},paneProperties:{},scalesProperties:{},chartEventsSourceProperties:{},tradingProperties:{},priceScaleSelectionStrategyName:"auto"},n=["timeScale","mainSeries","sessions"],r=i.mainSeries,a=Object.keys(i),l=Object.keys(r),c=i.sessions,h=Object.keys(c),d=e.mainSeries().properties().factoryDefaults(),u=e.properties().factoryDefaults(),_=e.sessions().properties().factoryDefaults();return l.forEach((e=>{s&&"style"===e||(o.mainSeries[e]=f_(e,d,r,"mainSeries",!1))})),a.forEach((e=>{n.includes(e)||(o[e]=f_(e,u,i,"preferences",!1))})),h.forEach((e=>{o.sessions[e]=f_(e,_,c,"sessions",!1)})),o}(this._model,this._model.mainSeries()),this._oldPreferences=e.preferences(),this._prevDateFormat=be.dateFormatProperty.value(),this._model.onWidget()||(this._prevWithWeekday=Md.withWeekdayProperty.value()),this._prevTimeHoursFormat=we.timeHoursFormatProperty.value(),this._prevAddPlusButton=lu.addPlusButtonProperty.value(),this._prevShowOpenMarkerStatus=up.showMarketOpenStatusProperty.value(),this._prevCurrencyUnitVisibility=(0,Be.currencyUnitVisibilityProperty)().value(),this._prevAutoLogButtonsVisibility=(0,$o.autoLogButtonsVisibilityProperty)().value(),this._prevNavigationButtonsVisibility=(0,ve.property)().value(),this._prevPaneButtonsVisibility=(0,Se.property)().value();const t=this._model.watermarkSource();null!==t&&(this._prevWatermarkPreferences=t.properties().state())}redo(){null!==this._trading&&(this._trading.noConfirmEnabled.setValue(!1),this._trading.showOnlyRejectionNotifications.setValue(!1), -this._trading.showPricesWith().zeroVolume.setValue(!0),this._trading.showPricesWith().spread.setValue(!0),this._trading.orderExecutedSoundParams.enabled.setValue(!1),this._trading.orderExecutedSoundParams.volume.setValue(.5)),this._model.applyPreferences(this._defaultsPreferences),this._model.updateScales(),(0,be.restoreDateFormatSettingsValue)(),(0,we.restoreTimeHoursFormatSettingsValue)(),(0,lu.restoreAddPlusButtonSettingsValue)(),(0,up.restoreShowMarketOpenStatusProperty)(),(0,Be.restoreCurrencyUnitVisibilitySettingsValue)(),(0,$o.restoreAutoLogButtonsVisibilitySettingsValue)(),(0,ve.restoreNavigationButtonsVisibilitySettingsValue)(),(0,Se.restorePaneButtonsVisibilitySettingsValue)();const e=this._model.watermarkSource();null!==e&&e.restorePropertiesDefaults()}undo(){null!==this._trading&&(this._trading.noConfirmEnabled.setValue((0,n.ensureNotNull)(this._oldNoConfirmEnabled)),this._trading.showOnlyRejectionNotifications.setValue((0,n.ensureNotNull)(this._oldShowOnlyRejectionNotifications)),this._trading.showPricesWith().zeroVolume.setValue((0,n.ensureNotNull)(this._oldShowPricesWithZeroVolume)),this._trading.showPricesWith().spread.setValue((0,n.ensureNotNull)(this._oldShowPricesWithSpread)),this._trading.orderExecutedSoundParams.enabled.setValue((0,n.ensureNotNull)(this._oldOrderExecutedSoundEnabled))),this._model.applyPreferences(this._oldPreferences),this._model.updateScales(),be.dateFormatProperty.setValue(this._prevDateFormat),we.timeHoursFormatProperty.setValue(this._prevTimeHoursFormat),up.showMarketOpenStatusProperty.setValue(this._prevShowOpenMarkerStatus),lu.addPlusButtonProperty.setValue(this._prevAddPlusButton),(0,Be.currencyUnitVisibilityProperty)().setValue(this._prevCurrencyUnitVisibility),(0,$o.autoLogButtonsVisibilityProperty)().setValue(this._prevAutoLogButtonsVisibility),(0,ve.property)().setValue(this._prevNavigationButtonsVisibility),(0,Se.property)().setValue(this._prevPaneButtonsVisibility),this._model.onWidget()||Md.withWeekdayProperty.setValue(this._prevWithWeekday);const e=this._model.watermarkSource();null!==e&&null!==this._prevWatermarkPreferences&&e.properties().mergeAndFire(this._prevWatermarkPreferences)}}class gp extends st.UndoCommand{constructor(e,t,i,s){super(i),this._property=e,this._newValue=t,this._model=s,this._priceScale=this._model.mainSeries().priceScale(),this._oldValue=this._property.value(),this._oldMode=this._priceScale.mode()}redo(){this._oldValue=this._property.value(),this._oldMode=this._priceScale.mode(),(0,yi.allowSavingDefaults)(!0),this._priceScale.setMode({autoScale:!1,percentage:!1,log:!1}),this._property.setValue(this._newValue),(0,yi.allowSavingDefaults)(!1),this._model.recalculateAllPanes((0,wi.viewportChangeEvent)()),this._model.lightUpdate()}undo(){(0,yi.allowSavingDefaults)(!0),this._property.setValue(this._oldValue),this._priceScale.setMode(this._oldMode),(0,yi.allowSavingDefaults)(!1),this._model.recalculateAllPanes((0,wi.viewportChangeEvent)()),this._model.lightUpdate()}}class fp{constructor(e){this._leftScales=e.leftPriceScales().map((e=>e.id())), -this._rightScales=e.rightPriceScales().map((e=>e.id()))}restorePane(e){this._leftScales.reverse().map((t=>(0,n.ensureNotNull)(e.getPriceScaleById(t)))).forEach((t=>e.movePriceScale(t,"left"))),this._rightScales.reverse().map((t=>(0,n.ensureNotNull)(e.getPriceScaleById(t)))).forEach((t=>e.movePriceScale(t,"right")))}}class yp extends st.UndoCommand{constructor(e,t,i){super(i),this._chartModel=e,this._targetStrategy=(0,zc.createPriceScaleSelectionStrategy)(t),this._initialState=e.panes().map((e=>new fp(e)))}redo(){this._chartModel.panes().forEach((e=>e.setPriceScaleSelectionStrategy(this._targetStrategy))),this._chartModel.fullUpdate()}undo(){const e=this._chartModel.panes();for(let t=0;t{"use strict";i.d(t,{getErrorFromUnsupportedResolutionState:()=>c,getResolutionUnsupportedReason:()=>h});var s=i(11542),o=i(46082),n=i(87296);const r=s.t(null,void 0,i(64818)),a=s.t(null,void 0,i(80254)),l=s.t(null,void 0,i(80185));function c(e,t=!1){const i=t?`${e.ticker}`:e.ticker;switch(e.reason){case"unsupported_resolution":{const s=t?`${e.supportedResolutions.join(", ")}`:e.supportedResolutions.join(", ");return r.format({ticker:i,availableResolutions:s})}case"unsupported_ticks":return a.format({ticker:i});case"less_than_frequency":{const s=t?`${e.applicableResolution}`:e.applicableResolution;return l.format({ticker:i,resolution:s})}}}function h(e,t){if(null===e)return null;const i=e.data_frequency;if(void 0!==i){if((0,n.getApplicableIntervalForFrequency)(i,t)!==t)return"less_than_frequency"}if(o.Interval.isIntraday(t)&&!e.has_intraday)return"unsupported_resolution";if(o.Interval.isTicks(t)&&!e["is-tickbars-available"])return"unsupported_ticks";{const i=o.Interval.isSeconds(t)&&!e.has_seconds,s=o.Interval.isDays(t)&&!e.has_daily,n=o.Interval.isTicks(t)&&!e?.supported_resolutions?.includes(t);if(i||s||n)return"unsupported_resolution"}return null}},3885:(e,t,i)=>{"use strict";i.d(t,{SeriesValuesProvider:()=>A,calculateColor:()=>M,changesData:()=>I});var s=i(50151),o=i(50335),n=i(24377),r=i(11542),a=i(49483),l=i(37103),c=i(52859),h=i(24640),d=i(5471),u=i(78861),_=i(56265),p=i(70859),m=i(95059);function g(e,t){return 100*(t-e)/Math.abs(e||1)}var f=i(63903),y=i(11946),v=i(53660),S=i(17161);const b=S.lastDayChangeAvailable||S.alwaysShowLastPriceAndLastDayChange,w=a.CheckMobile.any(),C=(0,_.getPercentageFormatter)(),T=(0,_.getVolumeFormatter)(2),P=`${v.notAvailable} (${v.notAvailable}%)`;var x;function M(e,t){const i=(0,n.parseRgb)(t),s=(0,n.parseRgb)(e);return(0,n.distanceRgb)(i,s)<70?(0,n.rgbToHexString)((0,n.invertRgb)(i)):t}function I(e,t,i,s,o){let n,r;if(null!==t){const e=o[4],i=t.change||0;r={change:i,currentPrice:e,prevPrice:e-i,percentChange:t.change_percent||0}}const a=i[4],l=e.search(s-1,d.PlotRowSearchMode.NearestLeft,1),c=l?.value[4]??null;return null!==c&&null!=a&&(n={change:a-c,currentPrice:a,prevPrice:c,percentChange:g(c,a)}),{barChange:n,lastDayChange:r}}!function(e){e[e.Open=0]="Open",e[e.High=1]="High",e[e.Low=2]="Low",e[e.Close=3]="Close",e[e.Source=4]="Source",e[e.LastPrice=5]="LastPrice",e[e.Change=6]="Change",e[e.Volume=7]="Volume",e[e.LastDayChange=8]="LastDayChange"}(x||(x={}));class A{constructor(e,t,s=!0){this._series=e,this._model=t,this._searchNearestLeftValue=s,this._emptyValues=[{title:r.t(null,void 0,i(16610)),visible:!1,value:"",index:0,orderIndex:0,id:"open"},{ +title:r.t(null,void 0,i(78254)),visible:!1,value:"",index:1,orderIndex:1,id:"high"},{title:r.t(null,void 0,i(65318)),visible:!1,value:"",index:2,orderIndex:2,id:"low"},{title:r.t(null,{context:"input"},i(51408)),visible:!1,value:"",index:3,orderIndex:3,id:"close"},{title:"",visible:!1,value:"",index:4,orderIndex:4,id:"source"},{title:"",visible:!1,value:"",index:5,orderIndex:5,id:"lastPrice"},{title:r.t(null,void 0,i(37276)),visible:!1,value:"",index:6,orderIndex:6,id:"change"},{title:r.t(null,{context:"study"},i(24261)),visible:!1,value:"",index:7,orderIndex:7,id:"volume"},{title:r.t(null,void 0,i(63815)),visible:!1,value:"",index:8,orderIndex:8,id:"lastDayChange"}]}getItems(){return this._emptyValues}getValues(e){const t=this._showLastPriceAndChangeOnly(),i=this._emptyValues.map(((e,i)=>({...e,value:6===i||8===i?P:v.notAvailable,visible:5!==i&&4!==i&&!t})));if(this._model.timeScale().isEmpty()||0===this._series.bars().size()||this._series.priceScale().isEmpty())return i;const n=(0,s.ensureNotNull)(this._series.data().bars().last());(0,o.isNumber)(e)||(e=n.index);const r=this._searchNearestLeftValue?d.PlotRowSearchMode.NearestLeft:d.PlotRowSearchMode.Exact,a=this._series.nearestIndex(e,r);if(void 0===a)return i;const u=this._series.data().valueAt(a),_=this._model.backgroundTopColor().value();if(null===u)return i;const p=u[1],m=u[2],g=u[3],y=u[4],{barChange:S,lastDayChange:w}=I(this._series.data(),this._series.quotes(),u,a,n.value),x=(0,f.getPriceValueFormatterForSource)(this._series);if((0,f.shouldBeFormattedAsPercent)(this._series)||(0,f.shouldBeFormattedAsIndexedTo100)(this._series))i[6].value="",i[8].value="";else{const e=this._series.formatter(),t={signPositive:!0};if(void 0!==S){const{currentPrice:s,prevPrice:o,change:n,percentChange:r}=S,a=e.formatChange?.(s,o,t)??e.format(n,t);i[6].value=(0,h.forceLTRStr)(`${a} (${C.format(r,t)})`)}if(void 0!==w){const{currentPrice:s,prevPrice:o,change:n,percentChange:r}=w,a=e.formatChange?.(s,o,t)??e.format(n,t);i[8].value=(0,h.forceLTRStr)(`${a} (${C.format(r,t)})`)}}let A=null;if(t)i[5].value=null==y?v.notAvailable:x(y),i[5].visible=!0,A=this._getChangeColor(S?.change,a),i[6].visible=void 0!==S,i[8].visible=void 0!==w||b;else{i[0].value=null==p?v.notAvailable:x(p),i[1].value=null==m?v.notAvailable:x(m),i[2].value=null==g?v.notAvailable:x(g),i[3].value=null==y?v.notAvailable:x(y),i[4].value=x(this._series.barFunction()(u));const e=u[5];(0,o.isNumber)(e)?i[7].value=T.format(e):i[7].visible=!1;const t=this._series.intervalObj().value().is1Tick(),s=21!==this._series.style();i[0].visible=!t&&s,i[1].visible=!t,i[2].visible=!t,i[8].visible=void 0!==w||b,i[6].visible=void 0!==S;const n=this._series.barColorer().barStyle(a,!1);A=M(_,n.barBorderColor??n.barColor)}A=(0,c.resetTransparency)(M(_,A));for(const e of i)e.color||(e.color=A);{const e=this._series.model().properties().childs().paneProperties.childs().legendProperties.childs();i[6].visible&&l.enabled("legend_bar_change_colors_based_on_value")&&e.useBarChangeCustomColors&&(i[6].color=(0, +c.resetTransparency)(M(_,this._getChangeColor(S?.change,a))))}return i[8].visible&&(i[8].color=(0,c.resetTransparency)(M(_,this._getChangeColor(w?.change,n.index)))),i}_mobileNonTrackingMode(){return w&&(null===this._model.crosshairSource().pane||(0,y.isLineToolName)(u.tool.value())||null!==this._model.lineBeingEdited())}_showLastPriceAndChangeOnly(){return S.alwaysShowLastPriceAndLastDayChange||this._mobileNonTrackingMode()}_getChangeColor(e,t){const i=this._series.style();{const t=this._series.model().properties().childs().paneProperties.childs().legendProperties.childs();if(((0,m.isHLCBasedStyle)(i)||(0,m.isSingleValueBasedStyle)(i))&&l.enabled("legend_bar_change_colors_based_on_value")&&t&&t.useBarChangeCustomColors&&t.useBarChangeCustomColors.value()){const i=void 0===e||e>=0?t.barChangeUpColor&&t.barChangeUpColor.value():t.barChangeDownColor&&t.barChangeDownColor.value();if(i)return i}}if(2===i||15===i||14===i)return this._series.barColorer().barStyle(t,!1).barColor;const s=void 0===e||e>=0?p.SeriesBarColorer.upColor(this._series.properties()):p.SeriesBarColorer.downColor(this._series.properties());return s.barBorderColor??s.barColor}}},57511:(e,t,i)=>{"use strict";i.d(t,{sessionsPreferencesDefault:()=>o});var s=i(58978);const o={sessionHighlight:{backgrounds:{preMarket:{color:"#FF9800",transparency:92},postMarket:{color:s.colorsPalette["color-tv-blue-500"],transparency:92},electronic:{color:s.colorsPalette["color-tv-blue-500"],transparency:92},outOfSession:{color:s.colorsPalette["color-tv-blue-500"],transparency:92}},vertlines:{sessBreaks:{color:"#4985e7",style:2,visible:!1,width:1}}}}},42516:(e,t,i)=>{"use strict";i.d(t,{sourcesAffectState:()=>n});var s=i(97217),o=i(13896);function n(e){return!o.lineToolsDoNotAffectChartInvalidation||e.some((e=>!(0,s.isLineTool)(e)))}},52479:(e,t,i)=>{"use strict";i.d(t,{StatusProviderBase:()=>s});class s{size(){return"13px"}bold(){return!1}titleTooltip(){}}},13651:(e,t,i)=>{"use strict";i.d(t,{StatusView:()=>s});class s{constructor(e){this._text="",this._color="",this._size="13px",this._bold=!1,this._statusProvider=e}text(){return this._text}getSplitTitle(){return[this._text]}getInputsTitles(){return null}titleTooltip(){return this._statusProvider.titleTooltip()}bold(){return this._bold}size(){return this._size}}},23502:(e,t,i)=>{"use strict";i.d(t,{prepareStudyProperties:()=>w,prepareStudyPropertiesForLoadChart:()=>g});var s=i(16738),o=i(30551),n=i(9343),r=i(87465),a=i(19844),l=i(69558),c=i(60973),h=i(15219),d=i(37293),u=i(78176),_=i(97719),p=i(4359);const m=(0,n.getLogger)("Chart.Study");function g(e,t,i,o,n,l){return function(e,t,i,o,n,l,h){const d=function(e,t,i,o,n){e.version&&i.version&&e.version!==i.version&&m.logWarn("Serialized metaInfo version "+e.version+" is not equal to the saved state version "+i.version);const l=t||e,h=(0,r.clone)(l.defaults)??{},d=a.StudyMetaInfo.getStudyPropertyRootName(l),u=a.StudyMetaInfo.getStudyPropertyRootName(e);let _=y();(0,s.default)(_,f(e)),(0,s.default)(_,(0,r.clone)(e.defaults)),(0,s.default)(_,h),(0,s.default)(_,(0, +c.factoryDefaults)(d)),(0,s.default)(_,(0,c.factoryDefaults)(u)),(0,s.default)(_,v(l,o,d)),(0,s.default)(_,v(e,o,u)),(0,s.default)(_,i),_=o.updateStudyState(_,e,t),void 0!==n&&t&&(_=n(i,_,e,t));a.StudyMetaInfo.versionOf(l)>=1&&(0,s.default)(_,S(h,_));return _}(e,t,i,o,l);return T(t||e,n,d,h,!0)}(e,t,i,o,a.StudyMetaInfo.getStudyPropertyRootName(e),n,l)}function f(e){const t={};if(e.plots)for(let i=0;i= 1");const l=a.StudyMetaInfo.getStudyPropertyRootName(e),h=(0,r.clone)(e.defaults),d=(0,c.factoryDefaults)(l),u=y();if((0,s.default)(u,f(e)),(0,s.default)(u,h),(0,s.default)(u,d),(0,s.default)(u,v(e,n,l)),(0,s.default)(u,t),(0,s.default)(u,S(h,u)),null!==i){const t=i.model().studiesColorRotatorFactory().getColorRotator(e);null!==t&&("Overlay@tv-basicstudies"===e.id?u.lineStyle.color=t.getColor(u.lineStyle.color,d.lineStyle.color===u.lineStyle.color):(0,s.default)(u,function(e,t){for(const i of Object.keys(e.styles)){const s=e.styles[i];if((0,o.isObject)(s)&&"color"in s){const e=s.color;s.color=t.getColor(e)}}return e}(u,t)))}return n.updateStudyInputsIfNeeded(u,u.version??e.version,e),u}function w(e,t,i,s,o){return function(e,t,i,s,o,n){const l=b(e,t,i,s),c=a.StudyMetaInfo.getSourceInputIds(e);return c.forEach(((e,t)=>{const i=l.inputs[e];t{"use strict";i.d(t,{containsBackgroundTimePointIndexes:()=>r,dematerializeBackground:()=>l,isBackgroundInBarsRange:()=>c,materializeBackground:()=>a});var s=i(50151),o=i(82284),n=i(33952);const r=!0;function a(e,t){if(e.start>=t.length||e.stop>=t.length)return null;const i=t[e.start],n=t[e.stop];return n===o.INVALID_TIME_POINT_INDEX?null:((0,s.assert)(i===o.INVALID_TIME_POINT_INDEX||i<=n,"start should not exceed stop"),{start:i===o.INVALID_TIME_POINT_INDEX?null:i,stop:n})}function l(e,t,i){return{id:t,start:(0,n.ensureTimePointIndexIndex)(i.indexOf(null!==e.start?e.start:o.INVALID_TIME_POINT_INDEX)),stop:(0,n.ensureTimePointIndexIndex)(i.indexOf(e.stop))}}function c(e,t){if(null===e.start)return t.firstBar()<=e.stop;const i=Math.min(e.start,e.stop),s=Math.max(e.start,e.stop);return t.contains(i)||t.contains(s)||it.lastBar()}},45530:(e,t,i)=>{"use strict";i.d(t,{LiveStudyGraphics:()=>r.LiveStudyGraphics,createGraphicsPaneViews:()=>_,createGraphicsPriceAxisViews:()=>m,emptyStudyGraphics:()=>n.emptyStudyGraphics,isStudyGraphicsEmpty:()=>o.isStudyGraphicsEmpty,loadStudyGraphics:()=>n.loadStudyGraphics,saveStudyGraphics:()=>n.saveStudyGraphics});var s=i(9343),o=i(82130),n=i(39488),r=i(24437),a=i(36281),l=i(52859);class c extends a.PriceAxisView{constructor(e,t){super(),this._source=e,this._data=t}_updateRendererData(e,t,i){e.visible=!1;const s=this._source.priceScale(),o=this._source.properties().childs(),n=o.visible.value();if(!s||s.isEmpty()||!n)return;const r=o.graphics.childs()[this._data.lineType]?.childs()[this._data.styleId]?.childs();if(!(void 0!==r&&r.visible&&r.visible.value()&&r.showPrice&&r.showPrice.value()&&this._isLabelVisibleAccordinglyToProperties()))return;const a=this._source.firstValue();if(null===a)return;const c=this._data.line.level,h=(0,l.resetTransparency)(r.color.value());i.background=h,i.textColor=this.generateTextColor(h),i.coordinate=s.priceToCoordinate(c,a),e.text=s.formatPrice(c,a,{signPositive:s.isPercentage()}),e.visible=!0}_isLabelVisibleAccordinglyToProperties(){ +return!!this._source.model().properties().childs().scalesProperties.childs().showStudyLastValue.value()&&this._source.properties().childs().showLabelsOnPriceScale.value()}}const h=(0,s.getLogger)("Chart.StudyGraphics"),d=new Set(["dwgtablecells","tpoBlockSets","tpoLevels","tpoVolumeRows","logs","performance"]);async function u(e,t,s,o){const n=e=>({regularPaneView:new e(t,s,o)});switch(e){case"hhists":return n((await i.e(507).then(i.bind(i,70588))).HHistPaneView);case"horizlines":return n((await i.e(507).then(i.bind(i,65212))).HorizLinePaneView);case"vertlines":return n((await i.e(507).then(i.bind(i,14832))).VertLinePaneView);case"polygons":return n((await i.e(507).then(i.bind(i,94053))).PolygonPaneView);case"backgrounds":return n((await i.e(507).then(i.bind(i,97173))).BackgroundPaneView)}return null}async function _(e,t,i){const s=[],o=[],n=Object.keys(e.graphicsInfo());n.sort(((e,t)=>p(e)-p(t)));for(const r of n){const n=await u(r,e,t,i);null!==n?(s.push(n.regularPaneView),n.forceOverlayPaneView&&o.push(n.forceOverlayPaneView)):d.has(r)||h.logWarn(`${r} is not supported by this build of graphics subsystem, skipping`)}return{regularPaneViews:s,forceOverlayPaneViews:o}}function p(e){return o.primitivesZOrders.get(e)??0}function m(e){const t=Object.keys(e.graphicsInfo()),i=[];for(const s of t)switch(s){case"hlines":e.graphics().hlines().forEach(((t,o)=>{t.forEach((t=>{void 0!==t.level&&i.push(new c(e,{line:{level:t.level},styleId:o,lineType:s}))}))}));break;case"horizlines":e.graphics().horizlines().forEach(((t,o)=>{t.forEach((t=>{void 0!==t.level&&i.push(new c(e,{line:{level:t.level},styleId:o,lineType:s}))}))}))}return i}},99481:(e,t,i)=>{"use strict";i.d(t,{HHistDirection:()=>s,HHistLocation:()=>o,HHistVolumeMode:()=>n,containsHHistTimePointIndexes:()=>c,dematerializeHHist:()=>d,isHHistInBarsRange:()=>u,materializeHHist:()=>h});var s,o,n,r=i(50151),a=i(82284),l=i(33952);!function(e){e.LeftToRight="left_to_right",e.RightToLeft="right_to_left"}(s||(s={})),function(e){e.Relative="relative",e.Absolute="absolute"}(o||(o={})),function(e){e.UpDown="Up/Down",e.Total="Total",e.Delta="Delta"}(n||(n={}));const c=!0;function h(e,t){if(e.lastBarTime>=t.length)return null;const i=t[e.firstBarTime],s=t[e.lastBarTime];return s===a.INVALID_TIME_POINT_INDEX?null:((0,r.assert)(i<=s,"firstBarTime should not exceed lastBarTime"),(0,r.assert)(e.priceLow<=e.priceHigh,"priceLow should not exceed priceHigh"),{firstBarTime:i===a.INVALID_TIME_POINT_INDEX?null:i,lastBarTime:s,rate:e.rate,priceHigh:e.priceHigh,priceLow:e.priceLow})}function d(e,t,i){const s=(0,l.ensureTimePointIndexIndex)(i.indexOf(e.firstBarTime??a.INVALID_TIME_POINT_INDEX)),o=(0,l.ensureTimePointIndexIndex)(i.indexOf(e.lastBarTime));return{id:t,...e,firstBarTime:s,lastBarTime:o}}function u(e,t){const i=Math.min(e.firstBarTime??a.INVALID_TIME_POINT_INDEX,e.lastBarTime),s=Math.max(e.firstBarTime??a.INVALID_TIME_POINT_INDEX,e.lastBarTime);return t.contains(i)||t.contains(s)||it.lastBar()}},60661:(e,t,i)=>{"use strict";i.d(t,{ +containsHorizLineTimePointIndexes:()=>r,dematerializeHorizLine:()=>l,isHorizLineInBarsRange:()=>c,materializeHorizLine:()=>a});var s=i(50151),o=i(82284),n=i(33952);const r=!0;function a(e,t){if(e.startIndex>=t.length||e.endIndex>=t.length)return null;const i=t[e.startIndex],n=t[e.endIndex];return n===o.INVALID_TIME_POINT_INDEX?null:((0,s.assert)(i<=n,"startIndex should not exceed endIndex"),{startIndex:i===o.INVALID_TIME_POINT_INDEX?null:i,endIndex:n,level:e.level,extendLeft:e.extendLeft,extendRight:e.extendRight})}function l(e,t,i){const s=(0,n.ensureTimePointIndexIndex)(i.indexOf(e.startIndex??o.INVALID_TIME_POINT_INDEX)),r=(0,n.ensureTimePointIndexIndex)(i.indexOf(e.endIndex));return{id:t,...e,startIndex:s,endIndex:r}}function c(e,t){if(null===e.startIndex)return t.firstBar()<=e.endIndex;const i=Math.min(e.startIndex,e.endIndex),s=Math.max(e.startIndex,e.endIndex);if(t.contains(i)||t.contains(s)||it.lastBar())return!0;const o=e.startIndext.lastBar()&&o}},24437:(e,t,i)=>{"use strict";i.d(t,{LiveStudyGraphics:()=>_});var s=i(50151),o=i(12217),n=i(48096),r=i(99481),a=i(60661),l=i(58554),c=i(30798),h=i(69866),d=i(82130),u=i(39488);class _{constructor(e={}){this._indexes=[],this._hhistsByTimePointIndex=new Map,this._primitivesCollection=function(e){const t={};for(const i of d.primitiveNames){t[i]=new Map;const s=e[i];if(void 0!==s)for(const e in s)if(s.hasOwnProperty(e))switch(i){case"horizlines":t[i].set(e,v.horizlines());break;case"vertlines":t[i].set(e,v.vertlines());break;case"backgrounds":t[i].set(e,v.backgrounds());break;case"polygons":t[i].set(e,v.polygons());break;case"hhists":t[i].set(e,v.hhists())}}0;return t}(e)}horizlines(){return this._primitivesCollection.horizlines}vertlines(){return this._primitivesCollection.vertlines}lines(){return this._primitivesCollection.lines}hlines(){return this._primitivesCollection.hlines}textmarks(){return this._primitivesCollection.textmarks}shapemarks(){return this._primitivesCollection.shapemarks}backgrounds(){return this._primitivesCollection.backgrounds}polygons(){return this._primitivesCollection.polygons}trendchannels(){return this._primitivesCollection.trendchannels}hhists(){return this._primitivesCollection.hhists}dwglabels(){return this._primitivesCollection.dwglabels}dwglines(){return this._primitivesCollection.dwglines}dwgpolylines(){return this._primitivesCollection.dwgpolylines}dwgboxes(){return this._primitivesCollection.dwgboxes}dwgtables(){return this._primitivesCollection.dwgtables}dwgtablecells(){return this._primitivesCollection.dwgtablecells}dwglinefills(){return this._primitivesCollection.dwglinefills}tpos(){return this._primitivesCollection.tpos}tpoBlockSets(){return this._primitivesCollection.tpoBlockSets}tpoLevels(){return this._primitivesCollection.tpoLevels}tpoVolumeRows(){return this._primitivesCollection.tpoVolumeRows}tpoSummaryInfo(){return this._primitivesCollection.tpoSummaryInfo}logs(){ +return this._primitivesCollection.logs}observableLogs(){return this._primitivesCollection.logs}performance(){return this._primitivesCollection.performance}observablePerformance(){return this._primitivesCollection.performance}footprints(){return this._primitivesCollection.footprints}footprintLevels(){return this._primitivesCollection.footprintLevels}hhistsByTimePointIndex(){return this._hhistsByTimePointIndex}clear(){this._indexes=[];for(const e of d.regularPrimitiveNames)this._primitivesCollection[e].forEach((e=>e.clear()));for(const e of d.groupedPrimitiveNames)this._primitivesCollection[e].forEach((e=>{e.forEach((e=>e.clear()))}));this._hhistsByTimePointIndex=new Map}extract(){const e={indexes:this._indexes,horizlines:g(this._primitivesCollection.horizlines),vertlines:g(this._primitivesCollection.vertlines),lines:g(this._primitivesCollection.lines),hlines:g(this._primitivesCollection.hlines),textmarks:g(this._primitivesCollection.textmarks),shapemarks:g(this._primitivesCollection.shapemarks),backgrounds:g(this._primitivesCollection.backgrounds),polygons:g(this._primitivesCollection.polygons),trendchannels:g(this._primitivesCollection.trendchannels),hhists:g(this._primitivesCollection.hhists),dwglabels:f(this._primitivesCollection.dwglabels),dwglines:f(this._primitivesCollection.dwglines),dwgpolylines:f(this._primitivesCollection.dwgpolylines),dwgboxes:f(this._primitivesCollection.dwgboxes),dwgtables:f(this._primitivesCollection.dwgtables),dwgtablecells:g(this._primitivesCollection.dwgtablecells),dwglinefills:g(this._primitivesCollection.dwglinefills),tpos:g(this._primitivesCollection.tpos),tpoBlockSets:f(this._primitivesCollection.tpoBlockSets),tpoLevels:f(this._primitivesCollection.tpoLevels),tpoVolumeRows:f(this._primitivesCollection.tpoVolumeRows),tpoSummaryInfo:f(this._primitivesCollection.tpoSummaryInfo),logs:new Map,performance:new Map,footprints:g(this._primitivesCollection.footprints),footprintLevels:g(this._primitivesCollection.footprintLevels)};return this._hhistsByTimePointIndex=new Map,new u.StaticStudyGraphics("data",e)}replaceIndexesTo(e){this._indexes=e;const t=e=>e.replaceIndexesTo(this._indexes);for(const e of d.regularPrimitiveNames)this._primitivesCollection[e].forEach(t);for(const e of d.groupedPrimitiveNames)this._primitivesCollection[e].forEach((e=>{e.forEach(t)}));this._hhistsByTimePointIndex=(0,d.splitHHistsByTimePointIndex)(this._primitivesCollection.hhists)}processCommands(e){void 0!==e.erase&&this._processEraseCommands(e.erase),void 0!==e.create&&this._processCreateCommands(e.create)}_processCreateCommands(e){for(const t in e){if(!e.hasOwnProperty(t))continue;const i=t;switch(i){case"hhists":y(this._indexes,this._primitivesCollection.hhists,e[i]);break;case"horizlines":y(this._indexes,this._primitivesCollection.horizlines,e[i]);break;case"vertlines":y(this._indexes,this._primitivesCollection.vertlines,e[i]);break;case"polygons":y(this._indexes,this._primitivesCollection.polygons,e[i]);break;case"backgrounds":y(this._indexes,this._primitivesCollection.backgrounds,e[i])}} +this._hhistsByTimePointIndex=(0,d.splitHHistsByTimePointIndex)(this._primitivesCollection.hhists)}_processEraseCommands(e){for(const t of e)if("all"===t.action){for(const e of d.regularPrimitiveNames)this._primitivesCollection[e].forEach((e=>e.clearPrimitives()));for(const e of d.groupedPrimitiveNames)this._primitivesCollection[e].forEach((e=>{e.forEach((e=>e.clearPrimitives()))}))}else{const e=e=>e.deleteById(t.id);(0,d.isRegularPrimiriveName)(t.type)?this._primitivesCollection[t.type].forEach(e):this._primitivesCollection[t.type].forEach((t=>{t.forEach(e)}))}this._hhistsByTimePointIndex=(0,d.splitHHistsByTimePointIndex)(this._primitivesCollection.hhists)}}class p{constructor(e,t){this._primitivesDataById=new Map,this._primitiveById=new Map,this._changed=new n.Delegate,this._cleared=new n.Delegate,this._materializePrimitive=e,this._isRematerializationRequiredWithNewIndexes=t}changed(){return this._changed}cleared(){return this._cleared}forEach(e,t){this._primitiveById.forEach((i=>{e.call(t,i,i,this)}))}has(e){let t=!1;return this._primitiveById.forEach((i=>{t=t||i===e})),t}get size(){return this._primitiveById.size}[Symbol.iterator](){return this._primitiveById.values()}entries(){throw new Error("Not implemented")}keys(){throw new Error("Not implemented")}union(){throw new Error("Not implemented")}intersection(){throw new Error("Not implemented")}difference(){throw new Error("Not implemented")}symmetricDifference(){throw new Error("Not implemented")}isSubsetOf(){throw new Error("Not implemented")}isSupersetOf(){throw new Error("Not implemented")}isDisjointFrom(){throw new Error("Not implemented")}values(){return this._primitiveById.values()}hasId(e){return this._primitiveById.has(e)}addData(e,t){const i=[];e.forEach((e=>{this._primitivesDataById.set(e.id,e);const s=this._tryMaterialize(t,e);null!==s&&i.push(s)})),i.length>0&&this._changed.fire({created:i,removed:[]})}deleteById(e){const t=this._primitiveById.get(e);t&&(this._primitiveById.delete(e),this._primitivesDataById.delete(e),this._changed.fire({created:[],removed:[t]}))}clear(){this.clearPrimitives()}clearPrimitives(){this._primitivesDataById.clear(),this._primitiveById.clear(),this._cleared.fire()}replaceIndexesTo(e){if(!this._isRematerializationRequiredWithNewIndexes)return;const t=Array.from(this._primitiveById.values());this._primitiveById.clear(),this._primitivesDataById.forEach(this._tryMaterialize.bind(this,e),this);const i=Array.from(this._primitiveById.values());this._changed.fire({created:i,removed:t})}extract(){const e=new Set(this._primitivesDataById.values());return this.clearPrimitives(),e}_tryMaterialize(e,t){const i=this._materializePrimitive(t,e);return null!==i&&((0,s.assert)(!this._primitiveById.has(t.id),"primitive with specified id should not exist"),this._primitiveById.set(t.id,i)),i}}function m(e){const t=new Map;for(const[n,r]of e)t.set(n,(i=r,(s=t.get(n))?(0,o.join)(s,i.extract()):i.extract()));var i,s;return t}function g(e){return m((0,o.mapEntriesGenerator)(e))}function f(e){return m((0,o.nestedMapGenerator)(e))} +function y(e,t,i=[]){for(const o of i){const i=o.styleId,n=t.get(i);(0,s.assert)(void 0!==n,"Every style used by graphics primitive should be declared in study metainfo"),n.addData(o.data,e)}}const v={horizlines:()=>new p(a.materializeHorizLine,a.containsHorizLineTimePointIndexes),vertlines:()=>new p(l.materializeVertLine,l.containsVertLineTimePointIndexes),lines:()=>new p(materializeLine,containsLineTimePointIndexes),hlines:()=>new p(materializeLevel,containsLevelTimePointIndexes),textmarks:()=>new p(materializeTextMark,containsTextMarkTimePointIndexes),shapemarks:()=>new p(materializeShapeMark,containsShapeMarkTimePointIndexes),backgrounds:()=>new p(h.materializeBackground,h.containsBackgroundTimePointIndexes),polygons:()=>new p(c.materializePolygon,c.containsPolygonTimePointIndexes),trendchannels:()=>new p(materializeTrendChannel,containsTrendChannelTimePointIndexes),hhists:()=>new p(r.materializeHHist,r.containsHHistTimePointIndexes),dwglines:()=>new p(materializeDwgLine,containsDwgLineTimePointIndexes),dwglinefills:()=>new p(materializeDwgLineFill,containsDwgLineFillTimePointIndexes),dwglabels:()=>new p(materializeDwgLabel,containsDwgLabelTimePointIndexes),dwgtablecells:()=>new p(materializeDwgTableCell,containsDwgTableCellTimePointIndexes),dwgpolylines:()=>new p(materializeDwgPolyline,containsDwgPolylineTimePointIndexes),dwgboxes:()=>new p(materializeDwgBox,containsDwgBoxTimePointIndexes),dwgtables:()=>new p(materializeDwgTable,containsDwgTableTimePointIndexes),tpos:()=>new p(materializeTpo,containsTpoTimePointIndexes),tpoBlockSets:()=>new p(materializeTpoBlockSet,containsTpoBlockSetTimePointIndexes),tpoLevels:()=>new p(materializeTpoLevelGroup,containsTpoLevelGroupTimePointIndexes),tpoVolumeRows:()=>new p(materializeTpoVolumeRow,containsTpoVolumeRowTimePointIndexes),tpoSummary:()=>new p(materializeTpoSummary,containsTpoSummaryTimePointIndexes),logs:()=>new p(materializeLog,containsLogTimePointIndexes),footprints:()=>new p(materializeVolumeFootprint,containsFootprintTimePointIndexes),footprintLevels:()=>new p(materializeVolumeFootprintPriceLevel,containsFootprintPriceLevelTimePointIndexes)}},30798:(e,t,i)=>{"use strict";i.d(t,{containsPolygonTimePointIndexes:()=>n,dematerializePolygon:()=>a,isPolygonInBarsRange:()=>l,materializePolygon:()=>r});var s=i(82284),o=i(33952);const n=!0;function r(e,t){for(const i of e.points){if(i.index>=t.length)return null;if(t[i.index]===s.INVALID_TIME_POINT_INDEX)return null}return{points:e.points.map((e=>({index:t[e.index],offset:e.offset,level:e.level})))}}function a(e,t,i){return{id:t,points:e.points.map((e=>({...e,index:(0,o.ensureTimePointIndexIndex)(i.indexOf(e.index))})))}}function l(e,t){if(e.points.some((e=>t.contains(e.index+(e.offset??0)))))return!0;let i=!1,s=!1;const o=t.firstBar();for(const t of e.points)t.index+(t.offset??0){"use strict";function s(e){if(e<0)throw new Error("TimePointIndexIndex should be non-negative integer");return e}i.d(t,{ensureTimePointIndexIndex:()=>s})},39488:(e,t,i)=>{"use strict";i.d(t,{ +StaticStudyGraphics:()=>d,emptyStudyGraphics:()=>g,loadStudyGraphics:()=>f,saveStudyGraphics:()=>y});var s=i(82284),o=i(60661),n=i(58554),r=i(99481),a=i(30798),l=i(69866),c=i(82130),h=i(87465);class d{constructor(e,t){if(this._indexes=[],this._horizlines=new Map,this._vertlines=new Map,this._lines=new Map,this._hlines=new Map,this._textmarks=new Map,this._shapemarks=new Map,this._backgrounds=new Map,this._polygons=new Map,this._trendchannels=new Map,this._hhists=new Map,this._dwglabels=new Map,this._dwglines=new Map,this._dwgpolylines=new Map,this._dwgboxes=new Map,this._dwgtables=new Map,this._dwgtablecells=new Map,this._dwglinefills=new Map,this._tpos=new Map,this._tpoBlockSets=new Map,this._tpoLevelGroups=new Map,this._tpoVolumeRows=new Map,this._tpoSummaryInfo=new Map,this._logs=new Map,this._performance=new Map,this._footprints=new Map,this._footprintLevels=new Map,"data"===e){const e=t;this._indexes=e.indexes,this._vertlines=u(e.vertlines,this._indexes,n.materializeVertLine),this._horizlines=u(e.horizlines,this._indexes,o.materializeHorizLine),this._polygons=u(e.polygons,this._indexes,a.materializePolygon),this._hhists=u(e.hhists,this._indexes,r.materializeHHist),this._backgrounds=u(e.backgrounds,this._indexes,l.materializeBackground)}else if("state"===e){const e=t;this._indexes=e.indexes||[],this._vertlines=_(e.vertlines,this._indexes,n.materializeVertLine),this._horizlines=_(e.horizlines,this._indexes,o.materializeHorizLine),this._polygons=_(e.polygons,this._indexes,a.materializePolygon),this._hhists=_(e.hhists,this._indexes,r.materializeHHist),this._backgrounds=_(e.backgrounds,this._indexes,l.materializeBackground)}this._hhistsByTimePointIndex=(0,c.splitHHistsByTimePointIndex)(this._hhists)}horizlines(){return this._horizlines}vertlines(){return this._vertlines}lines(){return this._lines}hlines(){return this._hlines}textmarks(){return this._textmarks}shapemarks(){return this._shapemarks}backgrounds(){return this._backgrounds}polygons(){return this._polygons}trendchannels(){return this._trendchannels}hhists(){return this._hhists}dwglabels(){return this._dwglabels}dwglines(){return this._dwglines}dwgpolylines(){return this._dwgpolylines}dwgboxes(){return this._dwgboxes}dwgtables(){return this._dwgtables}dwgtablecells(){return this._dwgtablecells}dwglinefills(){return this._dwglinefills}tpos(){return this._tpos}tpoBlockSets(){return this._tpoBlockSets}tpoLevels(e){return this._tpoLevelGroups}tpoVolumeRows(e){return this._tpoVolumeRows}tpoSummaryInfo(e){return this._tpoSummaryInfo}logs(){return this._logs}performance(){return this._performance}footprints(){return this._footprints}footprintLevels(){return this._footprintLevels}hhistsByTimePointIndex(){return this._hhistsByTimePointIndex}}function u(e,t,i){return new Map(Array.from(e.entries()).map((e=>[e[0],new Set(Array.from(e[1]).map((e=>i(e,t))).filter(h.notNull))])))}function _(e,t,i){const s=new Map;if(void 0===e)return s;for(const o of e){const e=o.styleId,n=s.get(e)||new Set;o.data.forEach((e=>{const s=i(e,t);null!==s&&n.add(s)})),s.set(e,n)}return s} +function p(e,t,i){let s=null;for(const i of e)i.styleId===t&&(s=i);null===s&&(s={styleId:t,data:[]},e.push(s)),s.data.push(i)}function m(e,t,i,s,o,n){const r=[];return e.forEach(((e,a)=>{e.forEach((e=>{(null===o||s(e,o))&&p(r,a,n(e,t(e),i))}))})),r.length>0?r:void 0}function g(){return new d}function f(e){return new d("state",e)}function y(e,t){const i=function(e){const t=new Set,i=e=>{null!=e&&t.add(e)};e.horizlines().forEach(((e,i)=>{e.forEach((e=>{t.add(e.startIndex??s.INVALID_TIME_POINT_INDEX),t.add(e.endIndex)}))})),e.vertlines().forEach(((e,i)=>{e.forEach((e=>{t.add(e.index)}))})),e.lines().forEach(((e,i)=>{e.forEach((e=>{t.add(e.startIndex),t.add(e.endIndex)}))})),e.textmarks().forEach(((e,i)=>{e.forEach((e=>{t.add(e.time)}))})),e.shapemarks().forEach(((e,i)=>{e.forEach((e=>{t.add(e.time)}))})),e.backgrounds().forEach(((e,i)=>{e.forEach((e=>{t.add(null!==e.start?e.start:s.INVALID_TIME_POINT_INDEX),t.add(e.stop)}))})),e.polygons().forEach(((e,i)=>{e.forEach((e=>{e.points.forEach((e=>{t.add(e.index)}))}))})),e.trendchannels().forEach(((e,i)=>{e.forEach((e=>{t.add(e.startIndex),t.add(e.endIndex)}))})),e.hhists().forEach(((e,i)=>{e.forEach((e=>{t.add(e.firstBarTime??s.INVALID_TIME_POINT_INDEX),t.add(e.lastBarTime)}))})),e.dwglabels().forEach((e=>{e.forEach((e=>{e.forEach((e=>{t.add(e.x)}))}))})),e.dwglines().forEach((e=>{e.forEach((e=>{e.forEach((e=>{t.add(e.x1??s.INVALID_TIME_POINT_INDEX),t.add(e.x2??s.INVALID_TIME_POINT_INDEX)}))}))})),e.dwgpolylines().forEach((e=>{e.forEach((e=>{e.forEach((e=>{for(const i of e.points)t.add(i.x??s.INVALID_TIME_POINT_INDEX)}))}))})),e.dwgboxes().forEach((e=>{e.forEach((e=>{e.forEach((e=>{t.add(e.left??s.INVALID_TIME_POINT_INDEX),t.add(e.right??s.INVALID_TIME_POINT_INDEX)}))}))})),e.tpos().forEach((e=>{e.forEach((e=>{t.add(e.firstBarTime),t.add(e.lastBarTime)}))})),e.tpoLevels().forEach((e=>{e.forEach((e=>{e.forEach((e=>{i(e.poorHighExtendTo),i(e.poorLowExtendTo),i(e.tpoPocExtendTo),(e.singleprints??[]).map((e=>e.extendTo)).map(i)}))}))})),e.footprints().forEach((e=>{e.forEach((e=>{t.add(e.index)}))})),e.footprintLevels().forEach((e=>{e.forEach((e=>{t.add(e.startIndex),i(e.extendTo)}))}));const o=Array.from(t);return o.sort(((e,t)=>e-t)),o}(e),c={indexes:i};let h=0;const d=()=>++h;return c.vertlines=m(e.vertlines(),d,i,n.isVertLineInBarsRange,t,n.dematerializeVertLine),c.horizlines=m(e.horizlines(),d,i,o.isHorizLineInBarsRange,t,o.dematerializeHorizLine),c.polygons=m(e.polygons(),d,i,a.isPolygonInBarsRange,t,a.dematerializePolygon),c.hhists=m(e.hhists(),d,i,r.isHHistInBarsRange,t,r.dematerializeHHist),c.backgrounds=m(e.backgrounds(),d,i,l.isBackgroundInBarsRange,t,l.dematerializeBackground),c}},18330:(e,t,i)=>{"use strict";var s,o,n,r;i.d(t,{HAlign:()=>o,LineStyle:()=>r,MarkLocation:()=>s}),function(e){e.AboveBar="AboveBar",e.BelowBar="BelowBar",e.Top="Top",e.Bottom="Bottom",e.Right="Right",e.Left="Left",e.Absolute="Absolute",e.AbsoluteUp="AbsoluteUp",e.AbsoluteDown="AbsoluteDown"}(s||(s={})),function(e){e.Left="left",e.Center="center",e.Right="right"}(o||(o={})),function(e){ +e.Top="top",e.Middle="middle",e.Bottom="bottom"}(n||(n={})),function(e){e[e.Solid=0]="Solid",e[e.Dotted=1]="Dotted",e[e.Dashed=2]="Dashed"}(r||(r={}))},82130:(e,t,i)=>{"use strict";i.d(t,{groupedPrimitiveNames:()=>n,hasForceOverlayPrimitives:()=>d,isRegularPrimiriveName:()=>a,isStudyGraphicsEmpty:()=>c,primitiveNames:()=>r,primitivesZOrders:()=>l,regularPrimitiveNames:()=>o,splitHHistsByTimePointIndex:()=>h});const s=["dwglines","dwgboxes","dwglabels","dwgpolylines","dwgtables"];const o=["horizlines","vertlines","lines","hlines","textmarks","shapemarks","backgrounds","polygons","trendchannels","hhists","dwgtablecells","dwglinefills","tpos","logs","performance","footprints","footprintLevels"],n=s.concat(["tpoBlockSets","tpoLevels","tpoVolumeRows","tpoSummaryInfo"]),r=o.concat(n);function a(e){return o.includes(e)}const l=new Map([["logs",-4],["performance",-4],["polygons",-4],["trendchannels",-3],["textmarks",-2],["shapemarks",-2],["backgrounds",-1],["footprints",1],["footprintLevels",1],["hlines",1],["horizlines",1],["hhists",1],["dwglinefills",2],["vertlines",3],["lines",3],["dwglines",3],["dwgpolylines",3],["dwgboxes",4],["dwglabels",5],["dwgtables",6],["dwgtablecells",6],["tpos",7],["tpoBlockSets",7],["tpoLevels",7],["tpoVolumeRows",7],["tpoSummaryInfo",1]]);function c(e){return!r.some((t=>{const i=e[t]();for(const[,e]of i)if(e.size>0)return!0;return!1}))}function h(e){const t=new Map;return e.forEach(((e,i)=>{e.forEach((e=>{const s={...e,styleId:i},o=e.firstBarTime;let n=t.get(o);void 0===n&&(n=new Set,t.set(o,n)),n.add(s)}))})),t}function d(e){return!!(e.graphics.dwglines||e.graphics.dwgboxes||e.graphics.dwglabels||e.graphics.dwgpolylines||e.graphics.dwgtables)}},58554:(e,t,i)=>{"use strict";i.d(t,{containsVertLineTimePointIndexes:()=>n,dematerializeVertLine:()=>a,isVertLineInBarsRange:()=>l,materializeVertLine:()=>r});var s=i(82284),o=i(33952);const n=!0;function r(e,t){if(e.index>=t.length)return null;const i=t[e.index];return i===s.INVALID_TIME_POINT_INDEX?null:{startPrice:e.startPrice,endPrice:e.endPrice,index:i,extendTop:e.extendTop,extendBottom:e.extendBottom}}function a(e,t,i){const s=(0,o.ensureTimePointIndexIndex)(i.indexOf(e.index));return{id:t,...e,index:s}}function l(e,t){return t.contains(e.index)}},40080:(e,t,i)=>{"use strict";var s,o,n;!function(e){e.BuyAndSell="Buy and sell",e.Delta="Delta",e.Total="Total",e.Ladder="Ladder"}(s||(s={})),function(e){e[e.Cluster=0]="Cluster",e[e.Profile=1]="Profile"}(o||(o={})),function(e){e[e.InfoBox=0]="InfoBox",e[e.Table=1]="Table"}(n||(n={}))},63681:(e,t,i)=>{"use strict";var s;i.d(t,{StudyStatusType:()=>s}),function(e){e[e.Undefined=0]="Undefined",e[e.Loading=1]="Loading",e[e.Completed=2]="Completed",e[e.Error=3]="Error"}(s||(s={}))},87163:(e,t,i)=>{"use strict";i.d(t,{makeNextStudyId:()=>r,makeNextSymbolId:()=>o});let s=0;function o(){return s++,"ss_"+s}let n=0;function r(){return n++,"st"+n}},43046:(e,t,i)=>{"use strict";i.d(t,{migrateMetaInfoAndPropState:()=>p});var s=i(50151),o=i(19844),n=i(87465) +;const r=["Moving Average@tv-basicstudies","Moving Average Exponential@tv-basicstudies"];class a{targetMetaInfoVersion(){return 53}migrateMetaInfo(e){const t=e;e._metainfoVersion=53,r.includes(t.id)}migratePropState(e){r.includes(e.id)&&(e.inputs.length=e.inputs.length??e.inputs.in_0,e.inputs.source=e.inputs.source??e.inputs.in_1,e.inputs.offset=e.inputs.offset??e.inputs.in_2,delete e.inputs.in_0,delete e.inputs.in_1,delete e.inputs.in_2,e.plots[1]={id:"smoothedMA",type:"line"},e.styles.smoothedMA={display:0,linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#0496ff",histogramBase:0,joinPoints:!1,title:"Smoothed MA"})}}const l=["Volume@tv-basicstudies"];class c{targetMetaInfoVersion(){return 53}migrateMetaInfo(e){const t=e;e._metainfoVersion=53,l.includes(t.id)}migratePropState(e){l.includes(e.id)&&(e.inputs.maLength=e.inputs.length??e.inputs.maLength,delete e.inputs.length,delete e.inputs.offset,delete e.inputs.source,e.plots[1]={id:"smoothedMA",type:"line"},e.styles.smoothedMA={display:0,linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#0496ff",histogramBase:0,joinPoints:!1,title:"Smoothed MA"})}}const h=["Relative Strength Index@tv-basicstudies","Commodity Channel Index@tv-basicstudies","On Balance Volume@tv-basicstudies"];class d{targetMetaInfoVersion(){return 53}migrateMetaInfo(e){const t=e,i=e;i._metainfoVersion=53,h.includes(t.id)&&(i.styles[t.id]={title:"Smoothed MA",histogramBase:0,joinPoints:!1})}migratePropState(e){h.includes(e.id)&&(e.plots[1]={id:"smoothedMA",type:"line"},e.styles.smoothedMA={display:0,linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#0496ff"})}}var u;!function(e){e[e.InMetaInfoVersion=52]="InMetaInfoVersion",e[e.OutMetaInfoVersion=53]="OutMetaInfoVersion"}(u||(u={}));const _=[new class{targetMetaInfoVersion(){return 47}migrateMetaInfo(e){const t=e,i=e;if(i._metainfoVersion=47,!t.defaults||void 0===t.defaults.precision)return void(i.format={type:"inherit"});const s=t.defaults&&t.defaults.precision,o=(0,n.isNumber)(s)?s:parseInt(s);0===o?i.format={type:"volume"}:isFinite(o)?i.format={type:"price",precision:o}:i.format={type:"inherit"},delete t.defaults.precision}migratePropState(e){}},new class{targetMetaInfoVersion(){return 50}migrateMetaInfo(e){const t=e,i=e;if(i._metainfoVersion=50,void 0===t.defaults||void 0===t.defaults.ohlcPlots||void 0===t.ohlcPlots)return;const o=t.ohlcPlots,n=t.defaults.ohlcPlots,r=(0,s.ensureDefined)((0,s.ensureDefined)(i.defaults).ohlcPlots);for(const e of Object.keys(n)){const t=n[e];if("ohlc_candles"===t.plottype){let i=!1;const s=o[e];void 0!==s&&(i=!!s.drawBorder,delete s.drawBorder),r[e]={borderColor:"#000000",drawBorder:i,...t}}}}migratePropState(e){}},new class{targetMetaInfoVersion(){return 53}migrateMetaInfo(e){const t=e,i=e;if(i._metainfoVersion=53,void 0!==t.defaults){if(void 0!==t.defaults.ohlcPlots&&void 0!==t.ohlcPlots){const e=Object.keys(t.ohlcPlots),o=t.defaults.ohlcPlots,n=(0,s.ensureDefined)((0,s.ensureDefined)(i.defaults).ohlcPlots);for(const t of e){const e=o[t] +;if(void 0===e||void 0===e.visible)continue;const i=e.visible?15:0;delete e.visible,n[t]={display:i,...e}}}if(void 0!==t.defaults.styles&&void 0!==t.plots){const e=t.plots.map((e=>e.id)),o=t.defaults.styles,n=(0,s.ensureDefined)((0,s.ensureDefined)(i.defaults).styles);for(const t of e){const e=o[t];if(void 0===e||void 0===e.visible)continue;const i=e.visible?15:0;delete e.visible,n[t]={display:i,...e}}}}}migratePropState(e){if(e.ohlcPlots)for(const t of Object.keys(e.ohlcPlots)){const i=(0,s.ensureDefined)(e.ohlcPlots[t]);void 0!==i.visible&&(i.display=i.visible?15:0,delete i.visible)}if(e.styles)for(const t of Object.keys(e.styles)){const i=(0,s.ensureDefined)(e.styles[t]);void 0!==i.visible&&(i.display=i.visible?15:0,delete i.visible)}}}];function p(e,t){const i=o.StudyMetaInfo.versionOf(e),n=e;void 0===n._serverMetaInfoVersion&&(n._serverMetaInfoVersion=i);const r=["PennantCP@tv-basicstudies","WedgeCP@tv-basicstudies"].includes(e.id);_.forEach((o=>{(i<0||i>=o.targetMetaInfoVersion())&&!r||(o.migrateMetaInfo(e),void 0!==t&&o.migratePropState(t),(0,s.assert)(e._metainfoVersion===o.targetMetaInfoVersion()))}))}_.push(new a),_.push(new c),_.push(new d),_.sort((function(e,t){return e.targetMetaInfoVersion()-t.targetMetaInfoVersion()}))},93387:(e,t,i)=>{"use strict";i.d(t,{PaneRendererColumns:()=>n});var s=i(10307),o=i(2383);class n extends s.BitmapCoordinatesPaneRenderer{constructor(e){super(),this._data=null,this._precalculatedCache=[],this.setData(e)}setData(e){this._data=e,this._precalculatedCache=[]}hitTest(e){if(null===this._data)return null;const t=this._data.visibleItemsRange?.startItemIndex??0,i=(this._data.visibleItemsRange?.endItemIndex??this._data.items.length)-1;for(let s=t;s<=i;s++){const t=this._data.items[s];if(e.x>=t.left&&e.x<=t.right){const i=t.y;if(e.y>=Math.min(i,this._data.histogramBase)&&e.y<=Math.max(i,this._data.histogramBase))return new o.HitTestResult(o.HitTarget.Regular)}}return null}_drawImpl(e){if(null===this._data||0===this._data.items.length)return;const{context:t,horizontalPixelRatio:i,verticalPixelRatio:s}=e;this._precalculatedCache.length||this._fillPrecalculatedCache(i);const o=Math.max(1,Math.floor(i)),n=Math.max(1,Math.floor(s)),r=Math.round(this._data.histogramBase*s)-Math.floor(o/2),a=r+o,l=this._data.lineColor,c=this._data.visibleItemsRange?.startItemIndex??0,h=(this._data.visibleItemsRange?.endItemIndex??this._data.items.length)-1;for(let e=c;e<=h;e++){const i=this._data.items[e],o=this._precalculatedCache[e-c],h=Math.round(i.y*s);let d,u;t.fillStyle=i.style?i.style.color:l,h<=r?(d=h,u=a):(d=r,u=h-Math.floor(n/2)+n),t.fillRect(o.left,d,o.right-o.left+1,u-d)}}_fillPrecalculatedCache(e){if(null===this._data||0===this._data.items.length)return void(this._precalculatedCache=[]);const{barSpacing:t,visibleItemsRange:i,items:s}=this._data,o=Math.ceil(t*e)<=1?0:Math.max(1,Math.floor(e)),n=i?.startItemIndex??0,r=(i?.endItemIndex??s.length)-1,a=r-n+1;if(a<=0)return void(this._precalculatedCache=[]);this._precalculatedCache=new Array(a);for(let t=n;t<=r;t++){ +const i=s[t],r=Math.round(i.center*e);let a,l;const c=Math.round((i.right-i.left)*e)-o;if(c%2){const e=(c-1)/2;a=r-e,l=r+e}else{const e=c/2;a=r-e,l=r+e-1}this._precalculatedCache[t-n]={left:a,right:l,roundedCenter:r,center:i.center*e,time:i.timePointIndex}}for(let e=n+1;e<=r;e++){const t=this._precalculatedCache[e-n],i=this._precalculatedCache[e-n-1];t.time===i.time+1&&(t.left-i.right!==o+1&&(i.roundedCenter>i.center?i.right=t.left-o-1:t.left=i.right+o+1))}let l=Math.ceil(t*e);for(let e=n+1;e<=r;e++){const t=this._precalculatedCache[e-n];t.right0&&l<4)for(let e=n+1;e<=r;e++){const t=this._precalculatedCache[e-n];t.right-t.left+1>l&&(t.roundedCenter>t.center?t.right-=1:t.left+=1)}}}},4359:(e,t,i)=>{"use strict";var s,o,n,r,a,l,c;function h(e){return"line"===e.type}function d(e){return"shapes"===e.type}function u(e){return"chars"===e.type}function _(e){return"arrows"===e.type}function p(e){return"data"===e.type}function m(e){return"dataoffset"===e.type}function g(e){return"ohlc_open"===e.type}function f(e){return"ohlc_high"===e.type}function y(e){return"ohlc_low"===e.type}function v(e){return"ohlc_close"===e.type}function S(e){return g(e)||f(e)||y(e)||v(e)}function b(e){return"colorer"===e.type&&"palette"in e}function w(e){return"colorer"===e.type&&!("palette"in e)}function C(e){return"colorer"===e.type}function T(e){return"bar_colorer"===e.type}function P(e){return"bg_colorer"===e.type}function x(e){return"text_colorer"===e.type}function M(e){return"ohlc_colorer"===e.type}function I(e){return"wick_colorer"===e.type}function A(e){return"border_colorer"===e.type}function L(e){return"up_colorer"===e.type}function k(e){return"down_colorer"===e.type}function E(e){return"alertcondition"===e.type}function D(e){return h(e)||d(e)||u(e)||_(e)}function B(e){return"Plot"!==e}function V(e){return"ohlc_bars"===e.plottype}function R(e){return"ohlc_candles"===e.plottype}function N(e){return C(e)||T(e)||P(e)||p(e)||m(e)||M(e)||E(e)||L(e)||k(e)||A(e)||I(e)||x(e)}function O(e){return C(e)||x(e)||T(e)||p(e)||m(e)||M(e)||I(e)||A(e)||L(e)||k(e)||E(e)}function F(e){return[s.Line,s.LineWithBreaks,s.StepLine,s.StepLineWithBreaks,s.StepLineWithDiamonds,s.Area,s.AreaWithBreaks].includes(e)}i.r(t),i.d(t,{InternalStudyPlotType:()=>n,LineStudyPlotStyle:()=>s,OhlcStudyPlotStyle:()=>l,PlotSymbolSize:()=>c,STUDYPLOTDISPLAYTARGET:()=>a,StudyPlotDisplayTarget:()=>r,StudyPlotType:()=>o,doesLinePlotStyleSupportLineStyle:()=>F,isAlertConditionPlot:()=>E,isArrowsPlot:()=>_,isBarColorerPlot:()=>T,isBgColorerPlot:()=>P,isCandleBorderColorerPlot:()=>A,isCandleWickColorerPlot:()=>I,isCharsPlot:()=>u,isColorerPlot:()=>C,isDataOffsetPlot:()=>m,isDataPlot:()=>p,isDownColorerPlot:()=>k,isLinePlot:()=>h,isNonVisualPlot:()=>O,isOhlcClosePlot:()=>v,isOhlcColorerPlot:()=>M,isOhlcHighPlot:()=>f,isOhlcLowPlot:()=>y,isOhlcOpenPlot:()=>g,isOhlcPlot:()=>S,isOhlcPlotStyleBars:()=>V,isOhlcPlotStyleCandles:()=>R,isPaletteColorerPlot:()=>b,isPlotSupportDisplay:()=>D,isPlotTitleDefined:()=>B, +isPlotWithTechnicalValues:()=>N,isRgbaColorerPlot:()=>w,isShapesPlot:()=>d,isTextColorerPlot:()=>x,isUpColorerPlot:()=>L}),function(e){e[e.Line=0]="Line",e[e.Histogram=1]="Histogram",e[e.Cross=3]="Cross",e[e.Area=4]="Area",e[e.Columns=5]="Columns",e[e.Circles=6]="Circles",e[e.LineWithBreaks=7]="LineWithBreaks",e[e.AreaWithBreaks=8]="AreaWithBreaks",e[e.StepLine=9]="StepLine",e[e.StepLineWithDiamonds=10]="StepLineWithDiamonds",e[e.StepLineWithBreaks=11]="StepLineWithBreaks"}(s||(s={})),function(e){e.Line="line",e.Colorer="colorer",e.BarColorer="bar_colorer",e.BgColorer="bg_colorer",e.TextColorer="text_colorer",e.OhlcColorer="ohlc_colorer",e.CandleWickColorer="wick_colorer",e.CandleBorderColorer="border_colorer",e.UpColorer="up_colorer",e.DownColorer="down_colorer",e.Shapes="shapes",e.Chars="chars",e.Arrows="arrows",e.Data="data",e.DataOffset="dataoffset",e.OhlcOpen="ohlc_open",e.OhlcHigh="ohlc_high",e.OhlcLow="ohlc_low",e.OhlcClose="ohlc_close"}(o||(o={})),function(e){e.AlertCondition="alertcondition"}(n||(n={})),function(e){e[e.None=0]="None",e[e.Pane=1]="Pane",e[e.DataWindow=2]="DataWindow",e[e.PriceScale=4]="PriceScale",e[e.StatusLine=8]="StatusLine",e[e.All=15]="All"}(r||(r={})),function(e){e[e.None=0]="None",e[e.Pane=1]="Pane",e[e.DataWindow=2]="DataWindow",e[e.PriceScale=4]="PriceScale",e[e.StatusLine=8]="StatusLine",e[e.All=15]="All"}(a||(a={})),function(e){e.OhlcBars="ohlc_bars",e.OhlcCandles="ohlc_candles"}(l||(l={})),function(e){e.Auto="auto",e.Tiny="tiny",e.Small="small",e.Normal="normal",e.Large="large",e.Huge="huge"}(c||(c={}))},62312:(e,t,i)=>{"use strict";function s(e,t="shift",i){return{studyConstructorAsyncGetter:e,colorRotationMode:t,colorRotationComparator:i}}i.d(t,{addStudyInfoToMap:()=>n,createStudyInfo:()=>s,getStudyClassName:()=>a,getStudyInfoByName:()=>r});const o=new Map;function n(e,t){o.set(e,t)}function r(e){return o.get(e)}function a(e){for(const[t,i]of o.entries())if(i.studyConstructor===e)return t;return null}},2088:(e,t,i)=>{"use strict";i.d(t,{createStudy:()=>w,hasConfirmInputs:()=>x,hasPendingStudiesModuleLoading:()=>b,isCompareOrOverlayStudy:()=>v,isESDStudy:()=>f,isFundamentalStudy:()=>g,isOverlayStudy:()=>y,isStudy:()=>_,isStudyStrategy:()=>p,isStudyStub:()=>m,isSymbolicStudy:()=>I,studyColorRotationMode:()=>C,useSameColorRotationComparator:()=>P});var s=i(88987),o=i(50151),n=i(37103),r=i(19844),a=i(2258);const l="study_Internal$STD;Fund_";function c(e){const t="study_"+(e.classId||e.shortId);return t.startsWith(l)?l:t}var h=i(62312);i(72207);const d=(0,h.createStudyInfo)((()=>Promise.all([i.e(8736),i.e(6025),i.e(9378),i.e(1485),i.e(5456),i.e(7539)]).then(i.bind(i,11485)).then((e=>e.Study))));(0,h.addStudyInfoToMap)("Study",d),(0,h.addStudyInfoToMap)("study_PivotPointsStandard",(0,h.createStudyInfo)((()=>Promise.all([i.e(8736),i.e(6025),i.e(9378),i.e(1485),i.e(5456),i.e(7539)]).then(i.bind(i,96664)).then((e=>e.study_PivotPointsStandard))))),(0,h.addStudyInfoToMap)("study_Overlay",(0, +h.createStudyInfo)((()=>Promise.all([i.e(8736),i.e(6025),i.e(9378),i.e(1485),i.e(5456),i.e(7539)]).then(i.bind(i,34771)).then((e=>e.study_Overlay))),"sexyColors")),(0,h.addStudyInfoToMap)("study_Compare",(0,h.createStudyInfo)((()=>Promise.all([i.e(8736),i.e(6025),i.e(9378),i.e(1485),i.e(5456),i.e(7539)]).then(i.bind(i,55456)).then((e=>e.StudyCompare))),"sexyColors")),(0,h.addStudyInfoToMap)("study_Volume",(0,h.createStudyInfo)((()=>Promise.all([i.e(8736),i.e(6025),i.e(9378),i.e(1485),i.e(5456),i.e(7539)]).then(i.bind(i,51106)).then((e=>e.VolumeStudy))))),(0,h.addStudyInfoToMap)("study_VbPVisible",(0,h.createStudyInfo)((()=>Promise.all([i.e(8736),i.e(6025),i.e(9378),i.e(1485),i.e(5456),i.e(7539)]).then(i.bind(i,10635)).then((e=>e.VbPVisibleWrapper))),"noRotations")),(0,h.addStudyInfoToMap)("study_VbPFixed",(0,h.createStudyInfo)((()=>Promise.all([i.e(8736),i.e(6025),i.e(9378),i.e(1485),i.e(5456),i.e(7539)]).then(i.bind(i,10635)).then((e=>e.VolumeProfileStudyWithThemedColors))),"noRotations")),(0,h.addStudyInfoToMap)("study_ScriptWithDataOffset",(0,h.createStudyInfo)((()=>Promise.all([i.e(8736),i.e(6025),i.e(9378),i.e(1485),i.e(5456),i.e(7539)]).then(i.bind(i,75848)).then((e=>e.study_ScriptWithDataOffset))))),n.enabled("moving_average_study_changable_currency_unit")&&(0,h.addStudyInfoToMap)("study_Moving Average",(0,h.createStudyInfo)((()=>Promise.all([i.e(7598),i.e(6025),i.e(9378),i.e(1485),i.e(5248)]).then(i.bind(i,45135)).then((e=>e.study_MovingAverage)))));const u=["studyName","guiPlotName","isLinkedToSeries"];function _(e){return u.every((t=>t in e))}function p(e){return!1}function m(e){return e instanceof a.StudyStub}function g(e){return!1}function f(e){return!1}function y(e){return _(e)&&"Overlay@tv-basicstudies"===e.metaInfo().id}function v(e){return y(e)||_(e)&&"Compare@tv-basicstudies"===e.metaInfo().id}let S=0;function b(){return S>0}async function w(e,t,i,s,n,r,a,l){let u;const _=2===a;if(!u){const e=c(s);u=(0,h.getStudyInfoByName)(e??"Study")??d}u.studyConstructor||(S+=1,u.studyConstructor=await(0,o.ensureDefined)(u.studyConstructorAsyncGetter)(),S-=1);const p=new((0,o.ensureDefined)(u?.studyConstructor))(e,t,i,s,n,_,!!l);return void 0!==r&&p.setId(r),p}function C(e){const t=c(e),i=(0,h.getStudyInfoByName)(t);return i?(0,s.default)(i.colorRotationMode)?i.colorRotationMode(e):i.colorRotationMode:void 0===e.pine||r.StudyMetaInfo.isStandardPine(e.id)?1!==e.plots.length?"shift":"loop":null}function T(e,t){return e.id===t.id&&(s=t,((i=e).pine?i.pine.version:void 0)===(s.pine?s.pine.version:void 0));var i,s}function P(e){const t=c(e),i=(0,h.getStudyInfoByName)(t);if(i){const e=i.colorRotationComparator;if(void 0!==e)return e}return T}function x(e){return(e??[]).some((e=>e.confirm))}const M=["Overlay@tv-basicstudies","CorrelationCoefficient@tv-basicstudies","Correlation Coeff@tv-basicstudies","Spread@tv-basicstudies","Ratio@tv-basicstudies"];function I(e){return M.includes(e.id)}},19136:(e,t,i)=>{"use strict";i.d(t,{StudyDataSource:()=>p}) +;var s=i(50151),o=i(48096),n=i(72187),r=i(29806),a=i(19844),l=i(87163),c=i(64717),h=i(24437),d=i(63681);const u=(0,i(9343).getLogger)("Chart.StudyDataSource");var _;!function(e){e[e.Idle=0]="Idle",e[e.AwaitingConnection=1]="AwaitingConnection",e[e.AwaitingParent=2]="AwaitingParent",e[e.AwaitingFirstDataUpdate=3]="AwaitingFirstDataUpdate",e[e.Active=4]="Active"}(_||(_={}));class p{constructor(e,t,i,s,r=!1){this._inputs=null,this._status=_.Idle,this._studyId=null,this._turnaroundCounter=1,this._studyStatus={type:d.StudyStatusType.Undefined},this._studyStatusChanged=new o.Delegate,this._dataCleared=new o.Delegate,this._dataUpdated=new o.Delegate,this._boundOnGatewayIsConnectedChanged=this._onGatewayIsConnectedChanged.bind(this),this._ongoingDataUpdate=Promise.resolve(),this._gateway=e,this._metaInfo=s,this._forceUseExclamationMark=r,this._seriesSource=t,this._turnaroundPrefix=i,this._plots=new n.PlotList((0,c.studyPlotFunctionMap)(s),c.studyEmptyPlotValuePredicate),this._gateway.isConnected().subscribe(this._boundOnGatewayIsConnectedChanged),this._graphics=new h.LiveStudyGraphics(s.graphics)}destroy(){this.stop(),this._gateway.isConnected().unsubscribe(this._boundOnGatewayIsConnectedChanged),this._seriesSource.dataEvents().created().unsubscribeAll(this)}metaInfo(){return this._metaInfo}inputs(){return this._inputs}setInputs(e){this._inputs=e,null!==this._studyId&&(this._turnaroundCounter++,this._onStudyStatusChangedTo({type:d.StudyStatusType.Undefined}),this._gateway.modifyStudy(this._studyId,this._turnaround(),e,this._onMessage.bind(this)),this._status===_.Active&&this._changeStatusTo(_.AwaitingFirstDataUpdate))}isStarted(){return this._status!==_.Idle}isActive(){return this._status===_.Active}start(){this.isStarted()?u.logNormal("start: data source is already started, nothing to do"):((0,s.assert)(null!==this._inputs,"Inputs should be defined when starting a study data source"),this._gateway.isConnected().value()?this._createStudy():this._changeStatusTo(_.AwaitingConnection))}stop(){this.isStarted()?(null!==this._studyId&&(this._gateway.isConnected().value()&&this._gateway.removeStudy(this._studyId),this._studyId=null,this._onStudyStatusChangedTo({type:d.StudyStatusType.Undefined})),this._changeStatusTo(_.Idle)):u.logNormal("stop: data source is already stopped, nothing to do")}studyId(){return this._studyId}studyStatus(){return this._studyStatus}studyStatusChanged(){return this._studyStatusChanged}plots(){return this._plots}graphics(){return this._graphics}clearData(){this._plots.clear(),this._graphics.clear(),this._dataCleared.fire()}stopAndStealData(){(0,s.assert)(this._status===_.Active,"Couldn't steal data from non-active data source"),this.stop();const e=this._plots,t=this._graphics.extract();return this._plots=new n.PlotList((0,c.studyPlotFunctionMap)(this._metaInfo),c.studyEmptyPlotValuePredicate),{plots:e,graphics:t}}dataCleared(){return this._dataCleared}dataUpdated(){return this._dataUpdated}moveData(e){this._ongoingDataUpdate=this._ongoingDataUpdate.then((()=>{this._plots.move(e)}))}pendingUpdatesReady(){ +return this._ongoingDataUpdate}_createStudyError(e){return{type:d.StudyStatusType.Error,errorDescription:this._getStudyErrorDescription(e)}}_getStudyErrorDescription(e){return"string"==typeof e?{error:e.split(":",2)[0]}:e}_changeStatusTo(e){(0,s.assert)(this._status!==e,"Source and destination status should be distinct"),u.logNormal(`Status changed from ${_[this._status]} to ${_[e]}`),this._status=e}_createStudy(){const e=this._seriesSource.instanceId();null!==e?this._createStudyUsingParentId(e):(this._changeStatusTo(_.AwaitingParent),this._seriesSource.dataEvents().created().subscribe(this,this._onSeriesCreated,!0))}_createStudyUsingParentId(e){(0,s.assert)(this._status!==_.Active,'Status should not be "Active" when creating a study'),(0,s.assert)(this._studyStatus.type===d.StudyStatusType.Undefined,'Study status should be "Undefined" when creating a study'),(0,s.assert)(null===this._studyId,"Study id should be empty when creating a study"),this._studyId=(0,l.makeNextStudyId)(),this._gateway.createStudy(this._studyId,this._turnaround(),e,a.StudyMetaInfo.getStudyIdWithLatestVersion(this.metaInfo(),this._forceUseExclamationMark),(0,s.ensureNotNull)(this._inputs),this._onMessage.bind(this),{id:this._metaInfo.id}),this._changeStatusTo(_.AwaitingFirstDataUpdate)}_onGatewayIsConnectedChanged(e){e?this._onGatewayConnected():this._onGatewayDisconnected()}_onGatewayConnected(){this._status===_.AwaitingConnection&&this._createStudy()}_onGatewayDisconnected(){this._status!==_.Idle&&this._status!==_.AwaitingConnection&&(this._studyId=null,this._changeStatusTo(_.AwaitingConnection),this._studyStatus.type!==d.StudyStatusType.Undefined&&this._onStudyStatusChangedTo({type:d.StudyStatusType.Undefined})),this._turnaroundCounter=1}_onSeriesCreated(){this._status===_.AwaitingParent&&this._createStudyUsingParentId((0,s.ensure)(this._seriesSource.instanceId()))}_onStudyStatusChangedTo(e){const t=this._studyStatus;this._studyStatus=e,u.logNormal(`Study status type changed from ${d.StudyStatusType[t.type]} to ${d.StudyStatusType[e.type]}`),this._studyStatusChanged.fire(t,e)}_onMessage(e){if("data_update"===e.method){const{customId:t,turnaround:i,plots:o,nonseries:n}=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onDataUpdate(o,(0,s.ensureDefined)(n))}else if("study_loading"===e.method){const[t,i]=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onStudyLoading(e.time)}else if("study_completed"===e.method){const[t,i]=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onStudyCompleted(e.time)}else if("study_error"===e.method){const[t,i,s,o]=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onStudyError(s,o,e.time)}else"clear_data"===e.method&&this._checkTurnaround(e.params.turnaround)&&this.clearData()}_onDataUpdate(e,t){const i=(0,r.unpackNonSeriesData)(t.d);return this._ongoingDataUpdate=this._ongoingDataUpdate.then((()=>i),(()=>i)).then(this._onDataUnpacked.bind(this,e,t.indexes)),this._ongoingDataUpdate}_onDataUnpacked(e,t,i){ +this._status!==_.Idle&&(this._status===_.AwaitingFirstDataUpdate&&(this._changeStatusTo(_.Active),this.clearData()),this._mergePlots(e),null!==i&&(i.indexes_replace?((0,s.assert)("nochange"!==t),this._graphics.replaceIndexesTo(t)):("nochange"!==t&&this._graphics.replaceIndexesTo(t),void 0!==i.graphicsCmds&&this._graphics.processCommands(i.graphicsCmds))),this._dataUpdated.fire(e,i,t))}_onStudyLoading(e){this._onStudyStatusChangedTo({type:d.StudyStatusType.Loading,startTime:Date.now()})}_onStudyError(e,t,i){this.clearData(),this._onStudyStatusChangedTo(this._createStudyError(e))}_onStudyCompleted(e){this._onStudyStatusChangedTo({type:d.StudyStatusType.Completed})}_mergePlots(e){this._plots.merge(e)}_turnaround(){return`${this._turnaroundPrefix}${this._turnaroundCounter}`}_checkTurnaround(e){const t=this._turnaround();return e===t||e===this._seriesSource.turnaround()||e===`${this._seriesSource.turnaround()}_${t}`}}},64717:(e,t,i)=>{"use strict";function s(e){const t=new Map;return e.plots.forEach(((e,i)=>{t.set(e.id,(e=>e[i+1]))})),t}function o(e,t){return null==e[t]}i.d(t,{studyEmptyPlotValuePredicate:()=>o,studyPlotFunctionMap:()=>s})},69422:(e,t,i)=>{"use strict";i.d(t,{ChartColorDependentStudyInputNames:()=>c,InputDisplayFlags:()=>o,RangeDependentStudyInputNames:()=>l,areStudyInputsEqual:()=>_,editableStudyInputs:()=>m,getInputValue:()=>d,isStudyInputDependsOnChart:()=>f,isStudyInputDependsOnChartColors:()=>g,isStudyInputOptionsInfo:()=>u,isTimeOrPriceNotHiddenInput:()=>p});var s,o,n,r,a,l,c,h=i(82433);function d(e){return function(e){return(0,h.default)(e)}(e)?e.v:e}function u(e){return["text","integer","float","price","session","resolution"].includes(e.type)&&e.hasOwnProperty("options")}function _(e,t,i){for(const s of e)if(t[s.id]!==i[s.id])return!1;return!0}function p(e){return("time"===e.type||"price"===e.type)&&!0!==e.isHidden}function m(e){return[]}function g(e){return Object.values(c).map((e=>e)).includes(e.id)}function f(e){return!!g(e)||Object.values(l).map((e=>e)).includes(e.id)}!function(e){e.Integer="integer",e.Float="float",e.Price="price",e.Bool="bool",e.Text="text",e.Symbol="symbol",e.Session="session",e.Source="source",e.Resolution="resolution",e.Time="time",e.BarTime="bar_time",e.Color="color",e.Textarea="text_area"}(s||(s={})),function(e){e[e.None=0]="None",e[e.DataWindow=2]="DataWindow",e[e.StatusLine=8]="StatusLine",e[e.All=15]="All"}(o||(o={})),function(e){e.InitialCapital="initial_capital",e.Currency="currency",e.DefaultQTYValue="default_qty_value",e.DefaultQTYType="default_qty_type",e.Pyramiding="pyramiding",e.ComissionValue="commission_value",e.ComissionType="commission_type",e.BacktestFillLimitsAssumtion="backtest_fill_limits_assumption",e.Slippage="slippage",e.CalcOnOrderFills="calc_on_order_fills",e.CalcOnEveryTick="calc_on_every_tick",e.MarginLong="margin_long",e.MarginShort="margin_short",e.UseBarMagnifier="use_bar_magnifier",e.ProcessOrdersOnClose="process_orders_on_close",e.FillOrdersOnStandardOHLC="fill_orders_on_standard_ohlc"}(n||(n={})),function(e){e.Fixed="fixed", +e.CashPerOrder="cash_per_order",e.PercentOfEquity="percent_of_equity"}(r||(r={})),function(e){e.Percent="percent",e.CashPerContract="cash_per_contract",e.CashPerOrder="cash_per_order"}(a||(a={})),function(e){e.FirstBar="first_visible_bar_time",e.LastBar="last_visible_bar_time",e.Realtime="subscribeRealtime"}(l||(l={})),function(e){e.FgColor="__chart_fgcolor",e.BgColor="__chart_bgcolor"}(c||(c={}))},72972:(e,t,i)=>{"use strict";i.d(t,{isStudyDescriptor:()=>u,studyMetaInfoRepository:()=>g});var s=i(81251),o=i(11542),n=i(50151),r=i(19844),a=i(43046),l=i(9787),c=i(15219),h=i(9343),d=i(88723);(0,h.getLogger)("Chart.Studies.StudyMetaInfoRepository",{color:"#606"});function u(e){return"object"==typeof e&&null!==e&&"type"in e&&("java"===e.type&&"studyId"in e||"pine"===e.type&&"pineId"in e)}class _{constructor(e){this._isReady=!1,this._studyVersioning=null,this._rawStudiesMetaInfo=[],this._rawStudiesMetaInfoDeferredPromise=null,this._javaStudiesMetaInfo=[],this._pineMetaInfoCache=[],this._compileErrors=new WeakMap,this._studiesMigrations=[],this._chartApi=e}async requestMetaInfo(){if(null===this._rawStudiesMetaInfoDeferredPromise){this._rawStudiesMetaInfoDeferredPromise=(0,d.createDeferredPromise)();const e=(await this._chartApi.requestMetadata()).params[1].metainfo.slice();this._processLibraryMetaInfo(e),this._studyVersioning=new c.StudyVersioning(this._javaStudiesMetaInfo,this._studiesMigrations),this._requestFinished(),this._rawStudiesMetaInfoDeferredPromise.resolve(this._rawStudiesMetaInfo)}return this._rawStudiesMetaInfoDeferredPromise.promise}async findById(e){this._isReady||await this.requestMetaInfo();const t=this._findStudyMetaInfo(e);if(null!==t){const e=this._compileErrors.get(t);return e?Promise.reject(e):Promise.resolve(t)}return"pine"===e.type?this._compilePine(e):Promise.reject(`unexpected study id=${e.studyId} with type=${e.type}`)}findByIdSync(e){return this._findStudyMetaInfo(e)}isReady(){return this._isReady}async findAllJavaStudies(){return this._isReady||await this.requestMetaInfo(),this._javaStudiesMetaInfo}studyVersioning(){return(0,n.ensureNotNull)(this._studyVersioning)}getInternalMetaInfoArray(){return this._javaStudiesMetaInfo}addPineMetaInfo(e,t){const i=m(this._pineMetaInfoCache,e);return t&&(!Array.isArray(t)||t.length>0)&&(t=Array.isArray(t)?new PineCompileFailErrorImpl({warnings:[],errors:t},e):t,this._compileErrors.set(i,t)),i}async getLatestMetaInfoForPineStudy(e,t){return null}_processMigrations(e){throw new Error("not implemented")}_processSiteMetaInfo(e,t){throw new Error("not implemented")}_processLibraryMetaInfo(e){for(const t of e)p(t),m(this._javaStudiesMetaInfo,t);this._javaStudiesMetaInfo=this._javaStudiesMetaInfo.sort(((e,t)=>{const i=e.description_localized||e.description,s=t.description_localized||t.description;return i>s?1:it.id===e.studyId))||null):this._pineMetaInfoCache.find((t=>t.scriptIdPart===e.pineId&&(void 0===e.pineVersion||(0,n.ensureDefined)(t.pine).version===e.pineVersion)))||null}_compilePine(e){throw new Error("unsupported")}}function p(e){e.description_localized=o.t(e.description,{context:"study"},i(83477))}function m(e,t){const i=new r.StudyMetaInfo(t).state();(0,a.migrateMetaInfoAndPropState)(i);const s=new r.StudyMetaInfo(i);let o=!0;const n=e.findIndex((e=>e.id===s.id));if(-1===n)e.push(s);else{const t=e[n],i=void 0!==t.pine?l.Version.parse(t.pine.version):null,r=void 0!==s.pine?l.Version.parse(s.pine.version):null;null===r||null===i||r.isGreaterOrEqual(i)?(t.removeDefaults(),e[n]=s):o=!1}return o&&s.createDefaults(),s}const g=(0,s.default)((()=>new _(window.ChartApiInstance)))},35990:(e,t,i)=>{"use strict";i.d(t,{StudyStatusProviderBase:()=>l});var s=i(52479),o=i(86252),n=i(36313);const r={NONE:"Default"},a=!1;class l extends s.StatusProviderBase{constructor(e){super(),this._source=e}getSplitTitle(){return this._source.titleInParts(n.TitleDisplayTarget.StatusLine,!0,r,void 0,a)}getInputsTitles(){return this._source.inputsInParts(n.TitleDisplayTarget.StatusLine,!0,r,a)}titleTooltip(){const e=this._source.metaInfo();if(null!==e&&e.shortDescription!==e.description)return this._source.titleInParts(n.TitleDisplayTarget.StatusLine,!1,r,!0,a).join(" ")}text(){const e=this._source.title(n.TitleDisplayTarget.StatusLine,!0,r,void 0,a);return this._source.isActualInterval()?this._source.isFailed()?`${e}: ${this.sourceStatusText()}`:`${e} ${this.sourceStatusText()}`:e}sourceStatusText(){return(0,o.convertStudyStatusToString)(this._source.status(),!0)}errorStatus(){if(!this._source.isActualInterval()||this._source.isSymbolInvalid())return null;const e=this._source.status();return e.type===o.StudyStatusType.Error?{showReportItButton:e.errorDescription.showReportItButton,error:this.sourceStatusText(),solutionId:(0,o.studyStatusSolutionId)(e),title:(0,o.studyStatusTitle)(e),studyFeature:(0,o.studyStatusFeature)(e),stackTrace:(0,o.studyErrorStatusStackTrace)(e.errorDescription.stack_trace),editorError:e.errorDescription.editorError}:null}}},80671:(e,t,i)=>{"use strict";i.d(t,{StudyStatusView:()=>o});var s=i(13651);class o extends s.StatusView{constructor(e){super(e.statusProvider())}getSplitTitle(){return this._statusProvider.getSplitTitle()}titleTooltip(){return this._statusProvider.titleTooltip()}getInputsTitles(){return this._statusProvider.getInputsTitles()}update(e){this._text=this._statusProvider.text()}}},86252:(e,t,i)=>{"use strict";i.d(t,{StudyStatusType:()=>h,convertStudyStatusToString:()=>d,createStudyError:()=>g,studyErrorStatusStackTrace:()=>m,studyStatusFeature:()=>p,studyStatusSolutionId:()=>u,studyStatusTitle:()=>_});var s=i(11542),o=i(55014);const n=s.t(null,void 0,i(50910));const r=new Map,a=new Map,l="loading...",c=s.t(null,void 0,i(62011));var h;function d(e,t){if(e.type===h.Loading)return t?c:l;if(e.type===h.Error){const i=e.errorDescription,s=t?(0, +o.triesTranslateError)(i.error):i.error;if(i.ctx){const e={};return Object.entries(i.ctx).forEach((([t,i])=>{e[t]=i.toString()})),s.format(e)}return s}return""}function u(e){if(e.type===h.Error)return e.errorDescription.solution_id?e.errorDescription.solution_id:function(e){for(const t of Array.from(r.keys()))if(e.includes(t))return r.get(t)}(e.errorDescription.error)}function _(e){if(e.type===h.Error)return function(e){const t=e.toLowerCase();return t.includes("the data vendor doesn't provide volume data for this symbol.")||t.includes("no volume is provided by the data vendor")}(e.errorDescription.error)?n:(0,o.triesTranslateError)(e.errorDescription.title??"Runtime error")}function p(e){const{errorDescription:{error:t}}=e;for(const[e,i]of a)if(t.startsWith(e))return i}function m(e){if(void 0===e)return;const t=[];for(const i of e){const e={functionOrScopeName:i.n,lineNumber:i.p};"id"in i&&(e.id=i.id),"v"in i&&(e.versionScript=i.v),t.push(e)}return t}function g(e,t){const i="check study unexpected error"===e.error;return{type:h.Error,errorDescription:{...e,showReportItButton:i}}}!function(e){e[e.Undefined=0]="Undefined",e[e.Loading=1]="Loading",e[e.Completed=2]="Completed",e[e.Error=3]="Error"}(h||(h={}))},2258:(e,t,i)=>{"use strict";i.d(t,{StudyStub:()=>b,isStudyStubDescriptor:()=>w});var s=i(50279),o=i(30551),n=i(50151),r=i(52499),a=(i(48943),i(51304)),l=i(80671),c=i(67135),h=i(67563),d=i(48096),u=i(43337),_=i(35990),p=i(36313);class m extends _.StudyStatusProviderBase{text(){return this._source.isActualInterval()?`${this._source.title(p.TitleDisplayTarget.StatusLine)} ${this.sourceStatusText()}`:this._source.title(p.TitleDisplayTarget.StatusLine)}}var g=i(86252),f=i(29447),y=i(72972);class v{getItems(){return[]}getValues(e){return[]}}const S=new d.Delegate;class b extends c.PriceDataSource{constructor(e,t,i,s,o=null){super(e),this._priceStep=.01,this._origState=null,this._descriptor=null,this._status={type:g.StudyStatusType.Undefined},this._statusChanged=new d.Delegate,this._descriptorChanged=new d.Delegate,this._formatter=new h.PriceFormatter({priceScale:100}),this._showPineVersionInStatusLine=new r.WatchedValue(!1).spawn(),this._pineSourceCodeModel=null,(0,y.isStudyDescriptor)(t)?this._descriptor=t:this._origState=t,this._title=i,this._alwaysShowInLegend=void 0!==s,this._isOverlay=s,this._studyMetaInfo=o;this._properties=new u.Property({visible:!0}),this._statusView=new l.StudyStatusView(this)}destroy(){this._pineSourceCodeModel?.destroy(),this._showPineVersionInStatusLine.destroy(),super.destroy()}barColorer(){return null}properties(){return this._properties}statusView(){return this._statusView}legendView(){return null}state(e){return this._origState}getDescriptor(){return null===this._descriptor?null:{descriptor:this._descriptor,title:this._title,isOverlay:this._isOverlay,id:this.id(),status:this._status}}updateDescriptor(e){(0,s.default)(this._descriptor,e)||(this._descriptor=e,this._descriptorChanged.fire())}onDescriptorChanged(){return this._descriptorChanged}metaInfo(){return this._studyMetaInfo} +setMetaInfo(e){this._studyMetaInfo=e}setStatus(e){const t=this.isDisplayedInLegend();if(this._status=e,this._statusChanged.fire(),this.isDisplayedInLegend()!==t){const e=this._model.paneForSource(this);if(e){const t=this._model.panes().indexOf(e),i=a.InvalidationMask.invalidateLegendWidgetLayout(t);this.model().invalidate(i)}}}formatter(){return this._formatter}name(){return this._title}title(){return this.titleInParts().join(" ")}titleInParts(){const e=[this._title];return this._showPineVersionInStatusLine.value()&&e.push((0,n.ensureDefined)(this._studyMetaInfo?.pine).version),e}inputsInParts(){return null}isFailed(){return this._status.type===g.StudyStatusType.Error}isLoading(){return this._status.type===g.StudyStatusType.Loading}isDisplayedInLegend(){return this._alwaysShowInLegend||this.isFailed()}setFailed(e,t){this.setStatus({type:g.StudyStatusType.Error,errorDescription:{error:e,title:t}}),this._model.updateSource(this)}isSymbolInvalid(){return!1}isActualInterval(){return!0}onIsActualIntervalChange(){return S}start(){}status(){return this._status}onStatusChanged(){return this._statusChanged}firstValue(){return null}currency(){return null}sessionId(){return this._model.mainSeries().sessionId()}sessionIdChanged(){return this._model.mainSeries().sessionIdChanged()}unit(){return null}symbolSource(){return this._model.mainSeries()}symbolSourceWV(){return this._model.mainSeries().symbolSourceWV()}barsProvider(){return this._model.mainSeries()}valuesProvider(){return new v}legendValuesProvider(){return new v}statusProvider(e){return new m(this)}isRemovedByStudyTemplates(){return null!==this._origState&&(0,f.isStudyState)(this._origState)}pineSourceCodeModel(){return Promise.resolve(null)}contextMenuStatName(){return"StudyStubContextMenu"}}function w(e){return(0,o.isObject)(e)&&"descriptor"in e&&(0,y.isStudyDescriptor)(e.descriptor)}},44862:(e,t,i)=>{"use strict";i.d(t,{applyOverridesToStudy:()=>d,applyOverridesToStudyDefaults:()=>u});var s=i(50151),o=i(4359),n=i(9343);const r={line:o.LineStudyPlotStyle.Line,histogram:o.LineStudyPlotStyle.Histogram,cross:o.LineStudyPlotStyle.Cross,area:o.LineStudyPlotStyle.Area,columns:o.LineStudyPlotStyle.Columns,circles:o.LineStudyPlotStyle.Circles,line_with_breaks:o.LineStudyPlotStyle.LineWithBreaks,area_with_breaks:o.LineStudyPlotStyle.AreaWithBreaks,step_line:o.LineStudyPlotStyle.StepLine,step_line_with_breaks:o.LineStudyPlotStyle.StepLineWithBreaks,step_line_with_diamonds:o.LineStudyPlotStyle.StepLineWithDiamonds},a=(0,n.getLogger)("Chart.Model.StudyPropertiesOverrider");var l,c;function h(e,t,i,s){const o=i.split(".");if(0===o.length||0===o[0].length)return;const n=function(e){const t=e.split(":");return{name:t[0],type:2===t.length?t[1]:null}}(o[0]),r=n.name,h=n.type,d=null!==h,u=!d||"band"===h,_=!d||"area"===h,p=!d||"input"===h,m=!d||"plot"===h?c.getPlotIdByTitle(e,r):null,g=u?c.getBandIndexByName(e,r):null,f=_?c.getFilledAreaIdByTitle(e,r):null,y=p?c.getInputByName(e,r):null,v=t.hasOwnProperty(r) +;if((null!==m?1:0)+(null!==g?1:0)+(null!==f?1:0)+(null!==y?1:0)+(v?1:0)>1)return void a.logWarn(`Study '${e.description}' has ambiguous identifier '${r}'`);const S=o[1];if(null!==m){if(1===o.length)return void a.logWarn(`Path of sub-property of '${r}' plot for study '${e.description}' must be not empty`);const i=o.slice(1);l.applyPlotProperty(e,t,m,i,s)}else if(null!==y)l.applyInputValue(t,y,s);else if(null!==g){if(void 0===S)return void a.logWarn(`Property name of '${r}' band for study '${e.description}' must be set`);l.applyBandProperty(t,g,S,s)}else if(null!==f){if(void 0===S)return void a.logWarn(`Property name of '${r}' area for study '${e.description}' must be set`);l.applyFilledAreaProperty(t,f,S,s)}else v?l.setRootProperty(t,o,s):a.logWarn(`Study '${e.description}' has no plot or input '${r}'`)}function d(e,t){const i=e.properties(),s=i.state();for(const i in t)t.hasOwnProperty(i)&&h(e.metaInfo(),s,i,t[i]);i.mergeAndFire(s)}function u(e,t,i){for(const s in e){if(!e.hasOwnProperty(s))continue;const o=s.indexOf(".");if(-1===o)continue;const n=s.substring(0,o),r=c.getMetaInfoByDescription(t,n);if(null===r){a.logWarn(`There is no such study ${n}`);continue}const l=i(r);null!==l?h(r,l,s.substring(o+1),e[s]):a.logWarn(`Cannot apply overrides for study ${n}`)}}!function(e){e.applyPlotProperty=function(e,t,i,n,l){if(void 0===t.styles)return void a.logWarn("Study does not have styles");const c=n[0];if("color"===c){const r=function(e,t,i){if(void 0===e.plots)return null;for(const s of e.plots){if(!(0,o.isPaletteColorerPlot)(s)||void 0===t.palettes)continue;const e=t.palettes[s.palette];if(s.target===i&&void 0!==e)return e}return null}(e,t,i);return void function(e,t,i,o,n){void 0!==e.styles?null===t&&!isNaN(o)&&o>0?a.logWarn(`Study plot does not have color #${o}`):((0===o||isNaN(o))&&((0,s.ensureDefined)(e.styles[i]).color=String(n),o=0),null!==t&&((0,s.ensureDefined)(t.colors?.[o]).color=String(n))):a.logWarn("Study does not have styles")}(t,r,i,n.length>1?parseInt(n[1]):NaN,l)}const h=t.styles[i];if(void 0!==h&&h.hasOwnProperty(c)){if("plottype"===c){const e=r[String(l)];if(void 0===e)return void a.logWarn(`Unsupported plot type for plot: ${l}`);l=e}h[c]=l}else a.logWarn(`Study plot does not have property '${c}'`)},e.applyBandProperty=function(e,t,i,s){if(void 0===e.bands)return void a.logWarn("Study does not have bands");const o=e.bands[t];if(void 0!==o&&o.hasOwnProperty(i)){if("plottype"===i){const e=r[String(s)];if(void 0===e)return void a.logWarn(`Unsupported plot type for band: ${s}`);s=e}o[i]=s}else a.logWarn(`Study band does not have property '${i}'`)},e.applyFilledAreaProperty=function(e,t,i,s){if(void 0===e.filledAreasStyle)return void a.logWarn("Study does not have areas");const o=e.filledAreasStyle[t];void 0!==o&&o.hasOwnProperty(i)?o[i]=s:a.logWarn(`Study area does not have property '${i}'`)},e.applyInputValue=function(e,t,i){void 0!==e.inputs&&e.inputs.hasOwnProperty(t)?e.inputs[t]=i:a.logWarn(`Study does not have input '${t}'`)},e.setRootProperty=function(e,t,i){if(0===t.length)return;let s=e +;for(const e of t.slice(0,-1)){if(null==s||!s.hasOwnProperty(e))break;s=s[e]}const o=t[t.length-1];null!=s&&s.hasOwnProperty(o)?s[o]=i:a.logWarn(`Study does not have property ${t.join(".")}`)}}(l||(l={})),function(e){e.getInputByName=function(e,t){if(void 0===e.inputs)return null;t=t.toLowerCase();for(const i of e.inputs)if(i.name.toLowerCase()===t)return i.id;return null},e.getPlotIdByTitle=function(e,t){if(void 0===e.styles)return null;t=t.toLowerCase();for(const i in e.styles){const s=e.styles[i];if((void 0!==s&&void 0!==s.title?s.title:i).toLowerCase()===t)return i}return null},e.getFilledAreaIdByTitle=function(e,t){if(void 0===e.filledAreas)return null;t=t.toLowerCase();for(const i of e.filledAreas)if(i.title.toLowerCase()===t)return i.id;return null},e.getBandIndexByName=function(e,t){if(void 0===e.bands)return null;t=t.toLowerCase();for(let i=0;i{"use strict";const{clone:s}=i(87465);var o=i(9787).Version,n=i(9343).getLogger("Chart.StudyMigration");function r(e){this._studyId=e,this._maxToVers=o.ZERO,this._maxFromVers=o.ZERO,this._migrs=[]}r.prototype.addMigration=function(e,t,i){var s=o.parse(e),n=o.parse(t);s.isGreater(this._maxFromVers)&&(this._maxFromVers=s),n.isGreater(this._maxToVers)&&(this._maxToVers=n),this._migrs.push({fromVers:s,toVers:n,rules:i})},r.prototype.updateInputs=function(e,t,i){if(!i)return i;for(var o=s(i),r=e;r.isLess(t);){var a=this._findMigration(r);if(null==a)break;if(n.logNormal("Migrating study inputs from "+a.fromVers+" to "+a.toVers+" version, studyId: "+this._studyId+", migration: "+JSON.stringify(a)+", inputs: "+JSON.stringify(i)),o=this._applyMigration(o,a),!r.isLess(a.toVers))throw new Error("Problems in study migration process... Possible infinite cycle has been detected and stopped.");r=a.toVers}return r>e&&n.logNormal("Study inputs migration is done, studyId: "+this._studyId+", inputs: "+JSON.stringify(o)),o},r.prototype._findMigration=function(e){for(var t=-1,i=this._maxFromVers,s=0;s=0||t.indexOf(e)>=0},r._applyInputChangedMinMaxRule=function(e,t){if("adjustValIfNeeded"!==t.action)throw new Error("Unknown action "+t.action+" for rule with type "+t.type);var i=e[t.inputId];return it.maxVal&&(e[t.inputId]=t.maxVal),n.logNormal("Input "+t.inputId+"="+i+" adjusted to value "+e[t.inputId]),e},r._applyInputChangedOptionsRule=function(e,t){if(!(["text"].indexOf(t.inputType)>=0&&"resetToDefValIfNeeded"===t.action))throw new Error("Unexpected rule.inputType="+t.inputType+" in rule.action="+t.action);var i=e[t.inputId];return t.options.indexOf(i)<0&&(e[t.inputId]=t.defVal,n.logNormal("Input "+t.inputId+"="+i+" reset to default value "+t.defVal)),e},e.exports=r},15219:(e,t,i)=>{"use strict";i.d(t,{StudyVersioning:()=>m});var s=i(16738),o=i(50151),n=i(19844),r=i(86821),a=i.n(r),l=i(9343),c=i(9787),h=i(43046),d=i(87465);const u=(0,l.getLogger)("Chart.Study.Versioning"),_=1e12;var p;!function(e){e[e.VersionStudyArgSource=41]="VersionStudyArgSource",e[e.MetaInfoFormatVersionSosV2=42]="MetaInfoFormatVersionSosV2",e[e.VersionPineProtectTv4164=43]="VersionPineProtectTv4164",e[e.VersionNewStudyPrecisionFormat=46]="VersionNewStudyPrecisionFormat",e[e.CurrentMetaInfoFormatVersion=54]="CurrentMetaInfoFormatVersion"}(p||(p={}));class m{constructor(e,t){if(this._migrations={},!e)throw new Error("No studies metainfo");if(this._studiesMetainfo=e,!t)throw new Error("No studies migrations");this._studiesMigrations=t;for(let e=0;e{if(0===this._studiesMetainfo.length||!e.isTVScript||e.version>=22)return t;const i={};let s=0,o=0,n=t[o];for(;void 0!==n;){const e=t[n.id];n.isFake&&(n.id="in_"+s++),i[o]=n,i[n.id]=e,o++,n=t[o]}return i}]}updateMetaInfoAsync(e,t){n.StudyMetaInfo.versionOf(e);{let t=null +;const i=this._studiesMetainfo;for(let s=0;s=12&&s<=26){const s={};for(let e=0;et.id===e))).version}updateMetaInfo(e){if(!e)return e;(0,o.assert)(e instanceof n.StudyMetaInfo),(0,o.assert)(!e.isTVScript,"This method should update only built-in java indicators metaInfo. For Pine indicators use updateMetaInfoAsync");const t=this._studiesMetainfo.find((t=>e.id===t.id));return t?new n.StudyMetaInfo(t.state()):null}static patchPointsBasedStudyState(e){return this._fixInputsMaxValue(e.state,e.metaInfo),e}static patchStudyData(e,t,i,s){return{data:t,nsData:i,indexes:s??void 0}}static patchPointsBasedStudyData(e,t){return t}static patchPropsStateAndMetaInfo(e,t,i){let o=t.state();"Script$BOOKER"!==t.productId||o.alerts||delete e.alerts,this._fixInputsOrder(e,o),this._fixInputsMaxValue(e,o);const r=this.splitInputs(e.inputs);e.inputs=r.obj;const a=n.StudyMetaInfo.versionOf(t);a<42&&o.isChildStudy&&(e.isChildStudy=o.isChildStudy);if(t.isTVScript&&t.version<60&&("Script$TV_EARNINGS@tv-scripting"!==t.id&&"Script$TV_DIVIDENDS@tv-scripting"!==t.id&&"Script$TV_SPLITS@tv-scripting"!==t.id||delete o.TVScriptSourceCode),"Volume"!==t.id&&"Volume@tv-basicstudies"!==t.id||0!==t.inputs.length||(o.inputs=[{id:"length",type:"integer",defval:20,min:1,max:1e3}],o.plots.push({id:"vol_ma",type:"line"})),"Volume@tv-basicstudies"===t.id&&t.version&&t.version<=46&&void 0===e.styles.vol.transparency&&(e.styles.vol.transparency=e.transparency||87), +"PivotPointsStandard@tv-basicstudies"===t.id&&(0===o.inputs.length?(e.inputs={kind:"Traditional",showHistoricalPivots:!0},o.inputs=[{defval:"Traditional",id:"kind",type:"text",options:["Traditional","Fibonacci","Woodie","Classic","DeMark","Camarilla"]},{id:"showHistoricalPivots",type:"bool",defval:!0}]):1===o.inputs.length&&(e.inputs={kind:"Traditional"},o.inputs=[{defval:"Traditional",id:"kind",type:"text",options:["Traditional","Fibonacci","Woodie","Classic","DeMark","Camarilla"]},{id:"showHistoricalPivots",type:"bool",defval:!0}]),void 0===e._hardCodedDefaultsVersion)){e._hardCodedDefaultsVersion=1;const t=e.color;delete e.color,e.levelsStyle={colors:{P:t,"S1/R1":t,"S2/R2":t,"S3/R3":t,"S4/R4":t,"S5/R5":t}}}"CMF"===t.shortId&&2===o.inputs.length&&(e.inputs={length:e.inputs["length fast"]},o.inputs=o.inputs.splice(0,1),o.inputs[0].id="length"),o.defaults&&void 0===o.defaults.precision&&a<46&&(-1!==["Volume@tv-basicstudies","VbPVisible@tv-volumebyprice","VbPSessions@tv-volumebyprice"].indexOf(t.id)?o.defaults.precision=0:o.defaults.precision=4);let l=t.id;if(t.version<60){const e=["TV_DIVIDENDS","TV_SPLITS","TV_EARNINGS"],i=6;for(let s=0;s_&&u.logWarn("Bad integer input max value in metaInfo id="+e.id+" title="+e.description)}static mergeInputsObjPart(e,t){const i=this.splitInputs(t);(0,s.default)(e,i.obj)}static _fixInputsOrder(e,t){const i=this._getOrderedInputIds(t),o=this.splitInputs(e.inputs),n=o.arr,r=o.obj,a=(0,s.default)({},r);for(let e=0;ei&&(e.max=i);if(!e||!e.inputs)return;const o=this.splitInputs(e.inputs),n=o.arr;for(const[,e]of Object.entries(n))"integer"===e.type&&e.max&&e.max>i&&(e.max=i);e.inputs=(0,s.default)(o.obj,o.arr)}static _findInputKeyById(e,t){let i=null;for(const s in e)if((0,d.isNumber)(parseInt(s,10))&&e[s].id===t){i=s;break}return i}static _getOrderedInputIds(e){const t=[];for(const i of e.inputs)t.push(i.id);return t}static _patchOldVolumeProfiles(e,t){if(!t?.hhists)return;const i=t.hhists[e].data,s=[];for(const[,e]of Object.entries(i))s.push(e);t.hhists[0].data=s}}},77380:(e,t,i)=>{"use strict";function s(e,t,i){return e===t||e===i}i.d(t,{symbolSameAsResolved:()=>s})},95772:(e,t,i)=>{"use strict";i.d(t,{translateSessionDescription:()=>r,translateSessionShortDescription:()=>l});var s,o=i(11542);!function(e){e.RegularTradingHours="regular trading hours",e.ExtendedTradingHours="extended trading hours",e.ElectronicTradingHours="electronic trading hours", +e.Premarket="premarket",e.Postmarket="postmarket"}(s||(s={}));const n=new Map([["premarket",o.t(null,{context:"sessions"},i(59330))],["postmarket",o.t(null,{context:"sessions"},i(50434))],["regular trading hours",o.t(null,{context:"sessions"},i(84246))],["extended trading hours",o.t(null,{context:"sessions"},i(36862))],["electronic trading hours",o.t(null,{context:"sessions"},i(34647))]]);function r(e){return n.get(e.toLowerCase())??e}const a=new Map([["premarket",o.t(null,{context:"sessions"},i(46273))],["postmarket",o.t(null,{context:"sessions"},i(7807))],["regular trading hours",o.t(null,{context:"sessions"},i(92158))],["extended trading hours",o.t(null,{context:"sessions"},i(8029))],["electronic trading hours",o.t(null,{context:"sessions"},i(8029))]]);function l(e){return a.get(e.toLowerCase())??e}},36597:(e,t,i)=>{"use strict";i.d(t,{areEqualSymbols:()=>a,compareSymbolParams:()=>d,symbolParams:()=>h,symbolSameAsCurrent:()=>c});var s=i(37103),o=i(95059),n=i(46082);const r=s.enabled("uppercase_instrument_names");function a(e,t){return void 0===e?void 0===t:void 0!==t&&(r?e.toUpperCase()===t.toUpperCase():e===t)}function l(e,t){return e.some((e=>a(t,e)))}function c(e,t){if(null===t)return!1;if(t){if(a(t.full_name,e)||a(t.pro_name,e))return!0;if(a(t.ticker,e))return!0;if(t.aliases&&l(t.aliases,e))return!0;if(t.alternatives&&l(t.alternatives,e))return!0;if(0===e.indexOf("FRA:")&&a(t.pro_name,e.replace("FRA:","FWB:")))return!0}return!1}function h(e){return{symbol:e.symbol(),currency:e.currency(),unit:e.unit(),interval:e.interval(),style:e.style()}}function d(e,t,i){const{symbol:s,currency:r,unit:a,style:l,interval:c}=t,h=void 0!==s&&!e.symbolSameAsResolved(s);let d,u;const _=e.symbolInfo();null!==_?(d=void 0!==r&&!function(e,t){return null===e&&!(0,o.isConvertedToOtherCurrency)(t)||e===(0,o.symbolCurrency)(t)}(r,_),u=void 0!==a&&!function(e,t,i){return null===e&&!(0,o.isConvertedToOtherUnit)(t,i)||e===(0,o.symbolUnit)(t,i)}(a,_,i)):(d=void 0!==r&&r!==e.currency(),u=void 0!==a&&a!==e.unit());return{symbolChanged:h,intervalChanged:void 0!==c&&!n.Interval.isEqual(e.interval(),c),currencyChanged:d,unitChanged:u,styleChanged:void 0!==l&&l!==e.style(),styleChangeRequiresRestart:void 0!==l&&(0,o.styleChangeRequiresRestart)(l,e.style())}}},57658:(e,t,i)=>{"use strict";i.d(t,{TextWidthCache:()=>n,getMinTextMetrics:()=>o});var s=i(16659);function o(e){return{width:e.width,actualBoundingBoxAscent:e.actualBoundingBoxAscent,actualBoundingBoxDescent:e.actualBoundingBoxDescent,fontBoundingBoxAscent:e.fontBoundingBoxAscent,fontBoundingBoxDescent:e.fontBoundingBoxDescent}}class n{constructor(e=150){this._fontStyle="",this._cache=new s.CircularCacheBuffer(e,1.5)}reset(){this._cache.clear()}measureText(e,t){return this.getMetrics(e,t).width}yMidCorrection(e,t){const i=this.getMetrics(e,t);return void 0!==i.actualBoundingBoxAscent&&void 0!==i.actualBoundingBoxDescent?(i.actualBoundingBoxAscent-i.actualBoundingBoxDescent)/2:0}getMetrics(e,t){e.font!==this._fontStyle&&(this.reset(),this._fontStyle=e.font);const i=this._cache.get(t) +;if(void 0!==i)return i;const s=e.textBaseline;e.textBaseline="middle";const n=o(e.measureText(t));return e.textBaseline=s,0===n.width&&t.length||this._cache.set(t,n),n}}},23752:(e,t,i)=>{"use strict";i.d(t,{TimeAxisView:()=>r});var s=i(52859),o=i(33350);class n{constructor(){this._data=null}setData(e){this._data=e}draw(e,t,i){if(null===this._data||!this._data.visible||0===this._data.text.length)return;const s=this._data;e.font=i.font;const n=Math.round(i.widthCache.measureText(e,s.text));if(n<=0)return;e.save();const r=i.paddingHorizontal,a=n+2*r,l=a/2;let c=s.coordinate,h=Math.floor(c-l)+.5;if(s.alwaysInViewPort){const e=s.width;h<0?(c+=Math.abs(0-h),h=Math.floor(c-l)+.5):h+a>e&&(c-=Math.abs(e-(h+a)),h=Math.floor(c-l)+.5)}const d=h+a,u=Math.ceil(0+i.borderSize+i.offsetSize+i.paddingTop+i.fontSize+i.paddingBottom),{horizontalPixelRatio:_,verticalPixelRatio:p}=t;e.fillStyle=s.background;const m=Math.round(h*_),g=Math.round(0*p),f=Math.round(d*_),y=Math.round(u*p),v=Math.round(2*_);e.beginPath(),e.moveTo(m,g),e.lineTo(m,y-v),e.arcTo(m,y,m+v,y,v),e.lineTo(f-v,y),e.arcTo(f,y,f,y-v,v),e.lineTo(f,g),e.fill();const S=0+i.borderSize+i.offsetSize+i.paddingTop+i.fontSize/2;e.textAlign="left",e.textBaseline="middle",e.fillStyle=s.color;const b=i.widthCache.yMidCorrection(e,"Apr0");e.translate((h+r)*_,(S+b)*p),(0,o.drawScaled)(e,_,p,(()=>e.fillText(s.text,0,0))),e.restore()}}class r{constructor(e){this._renderer=new n,this._rendererData={background:"",color:"",coordinate:0,text:"",visible:!1,width:0,alwaysInViewPort:!0},this._invalidated=!0,this._model=e,this._renderer.setData(this._rendererData)}update(){this._invalidated=!0}renderer(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._renderer}coordinate(){return this._rendererData.coordinate}_getAlwaysInViewPort(){return!0}_getText(e){const t=this._model.timeScale().indexToUserTime(e);return null!==t?this._model.dateTimeFormatter().format(t):""}_updateImpl(){const e=this._rendererData;if(e.visible=!1,this._model.timeScale().isEmpty()||!this._isVisible())return;const t=this._getIndex();null!==t&&Number.isFinite(t)&&(e.visible=!0,e.width=this._model.timeScale().width(),e.background=this._getBgColor(),e.color=(0,s.colorFromBackground)(e.background),e.coordinate=this._model.timeScale().indexToCoordinate(t),e.alwaysInViewPort=this._getAlwaysInViewPort(),e.text=this._getText(t),this._invalidated=!1)}}},82284:(e,t,i)=>{"use strict";i.d(t,{INVALID_TIME_POINT_INDEX:()=>s,UNPLOTTABLE_TIME_POINT_INDEX:()=>o});const s=-2e6,o=-1e6},3190:(e,t,i)=>{"use strict";i.d(t,{restoreTimeHoursFormatSettingsValue:()=>l,timeHoursFormatProperty:()=>a});var s=i(1765),o=i(41072);const n="time_hours_format";function r(){return s.getValue(n,"24-hours")}const a=(0,o.createPrimitiveProperty)(r());function l(){a.setValue("24-hours"),s.remove(n)}s.onSync.subscribe(null,(()=>a.setValue(r()))),a.subscribe(null,(()=>s.setValue(n,a.value())))},19679:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DAY_SPAN:()=>a,DEFAULT_BAR_SPACING:()=>d,HOUR_SPAN:()=>r,MILLISECOND_SPAN:()=>s,MINUTE_SPAN:()=>n, +MONTH_SPAN:()=>c,SECOND_SPAN:()=>o,WEEK_SPAN:()=>l,YEAR_SPAN:()=>h});const s=5,o=10,n=20,r=30,a=40,l=50,c=60,h=70,d=6},20512:(e,t,i)=>{"use strict";i.d(t,{getHourMinuteFormat:()=>o,getHourMinuteSecondFormat:()=>n,getTimeFormatForInterval:()=>r});var s=i(82087);function o(e){return"12-hours"===e?s.twelveHourMinuteFormat:s.hourMinuteFormat}function n(e){return"12-hours"===e?s.twelveHourMinuteSecondFormat:s.hourMinuteSecondFormat}function r(e,t){if(e.isRange())return function(e){return"12-hours"===e?s.twelveHourMinuteNonZeroSecondFormat:s.hourMinuteNonZeroSecondFormat}(t);if(e.isTicks())return s.hourMinuteSecondMillisecFormat;return e.isSeconds()||e.isTicks()?n(t):o(t)}},75641:(e,t,i)=>{"use strict";i.d(t,{translatedIntervalString:()=>o});var s=i(87296);function o(e){const t=(0,s.getTranslatedResolutionModel)(e,!0);return null===t?e:t.multiplier+(t.mayOmitShortKind?"":t.shortKind)}},29603:(e,t,i)=>{"use strict";i.d(t,{ExcludeLineToolsFromGroupUndoCommand:()=>h});var s=i(50151),o=(i(40167),i(11542)),n=i(95804),r=i(87465),a=i(72270),l=i(13896);const c=new n.TranslatedString("exclude line tools from group {group}",o.t(null,void 0,i(99395)));class h extends a.UndoCommand{constructor(e,t,i){super(c.format({group:t.name().value()}),void 0,!l.lineToolsDoNotAffectChartInvalidation),this._model=e,this._groupId=t.id,this._groupName=t.name().value(),this._lineToolsIds=i.map((e=>e.id()))}redo(){const e=(0,s.ensureNotNull)(this._model.lineToolsGroupModel().groupForId(this._groupId)),t=this._lineToolsIds.map((e=>this._model.dataSourceForId(e))).filter(r.notNull);e.excludeLineTools(t),0===e.lineTools().length&&this._model.lineToolsGroupModel().removeGroup(e)}undo(){const e=this._lineToolsIds.map((e=>this._model.dataSourceForId(e))),t=this._model.lineToolsGroupModel().groupForId(this._groupId);null!==t?t.addLineTools(e):this._model.lineToolsGroupModel().createGroup(e,this._groupName,this._groupId)}}},72270:(e,t,i)=>{"use strict";i.d(t,{UndoCommand:()=>o});var s=i(95804);class o{constructor(e,t=!0,i=!0){this._text=e||new s.TranslatedString("",""),this._executeOnPush=t,this._affectsState=i}text(){return this._text}executeOnPush(){return this._executeOnPush}affectsState(){return this._affectsState}canMerge(e){return!1}merge(e){throw new Error("Should be re-implemented in child classes")}}},64876:(e,t,i)=>{"use strict";i.d(t,{createVisibilityController:()=>d});var s,o=i(11542),n=i(32563),r=i(41072),a=i(1765);!function(e){e.AlwaysOn="alwaysOn",e.VisibleOnMouseOver="visibleOnMouseOver",e.AlwaysOff="alwaysOff"}(s||(s={}));const l="visibleOnMouseOver";function c(e){return"alwaysOn"===e||"alwaysOff"===e?e:l}var h;function d(e,t){let s,h;function d(){if(!s){s=(0,r.createPrimitiveProperty)();let i=a.getValue(e);void 0===i&&void 0!==t&&(i=a.getValue(t)),s.setValue(c(i)),s.subscribe(s,(t=>{a.setValue(e,c(t.value()))}))}return s}return{property:d,availableValues:function(){return[{id:"visibleOnMouseOver",value:"visibleOnMouseOver",title:n.mobiletouch?o.t(null,void 0,i(58302)):o.t(null,void 0,i(10309))},{id:"alwaysOn",value:"alwaysOn", +title:o.t(null,void 0,i(36299))},{id:"alwaysOff",value:"alwaysOff",title:o.t(null,void 0,i(40452))}]},actualBehavior:function(){if(!h){h=(0,r.createPrimitiveProperty)();const e=d(),t=()=>{const t=function(e){switch(e){case"alwaysOn":return"alwaysOn";case"alwaysOff":return"alwaysOff";case"visibleOnMouseOver":return n.mobiletouch?"visibleOnTapSelection":"visibleOnMouseOver";default:throw new Error(`Unknown visibility type: ${e}`)}}(e.value());h&&h.setValue(t)};e.subscribe(h,t),t()}return h},restoreDefaultValue:function(){d().setValue(l),a.remove(e)}}}!function(e){e.AlwaysOn="alwaysOn",e.VisibleOnMouseOver="visibleOnMouseOver",e.VisibleOnTapSelection="visibleOnTapSelection",e.AlwaysOff="alwaysOff"}(h||(h={}))},40153:(e,t,i)=>{"use strict";i.d(t,{withWeekdayProperty:()=>a});var s=i(1765),o=i(41072);const n="date_format_with_weekday";function r(){return s.getBool(n,!0)}const a=(0,o.createPrimitiveProperty)(r());a.subscribe(null,(()=>s.setValue(n,a.value()))),s.onSync.subscribe(null,(()=>a.setValue(r())))},61710:(e,t,i)=>{"use strict";i.d(t,{moveAfterSource:()=>B,moveBeforeSource:()=>V,newLineToolZOrder:()=>P,newStudyZOrder:()=>x,prepareZOrderFixIfRequired:()=>R,reorderDataSourcesStateZOrder:()=>w});var s,o=i(68192),n=i(50151),r=i(26610),a=i(2088),l=i(6652),c=i(29447),h=i(12217);function d(e){return(0,r.isLineTool)(e)&&!e.isSpeciallyZOrderedSource()}function u(e){return(0,a.isStudy)(e)&&!e.isSpeciallyZOrderedSource()||(0,a.isStudyStub)(e)}function _(e,t){return e.zorder-t.zorder}function p(e,t){(0,c.isMainSeriesState)(e)?e.zorder=0:e.zorder=t}function m(e,t){e.setZorder(t)}function g(e){return e.zorder()}function f(e){return Math.round(1e3*e)/1e3}function y(e,t){const i=Math.max(e,t),s=Math.min(e,t);return Math.max(0,Math.ceil(i)-Math.floor(s)-1)}function v(e,t,i){let s=0;const o=function(e,t){const i=1e3;return Math.abs(t*i-e*i)/i}(t,e);var n;return o>i?(e=Math.trunc(e),s=Math.floor(o/(i+1))):(n=o/(i+1),s=Math.floor(1e3*n)/1e3),{startZOrder:e,zOrderStep:s}}function S(e,t,i,s){let o=e.length,n=t;for(let t=e.length-1;t>=-1;t--)if(-1===t||s(e[t])){const s=t;let r=I(n);if(o-1===s)s>=0&&i(e[s],r);else{const t=y(o,s);let a=0;for(;0===a;){const e=v(n,r,t);n=e.startZOrder,a=e.zOrderStep,0===a&&(r-=1e4,0===r&&(r-=1e4))}let l=o-1;for(;l>s;){const t=f(n-a);i(e[l],t),n=t,l--}s>=0&&i(e[s],r)}n=r,o=s}}function b(e,t,i,s){let o=-1,n=t;for(let t=0;t<=e.length;t++)if(t===e.length||s(e[t])){const s=t;let r=M(n);if(o+1===s)s<=e.length-1&&i(e[s],r);else{const t=y(o,s);let a=0;for(;0===a;){const e=v(n,r,t);n=e.startZOrder,a=e.zOrderStep,0===a&&(r+=1e4,0===r&&(r+=1e4))}let l=o+1;for(;l<=s-1;){const t=f(n+a);i(e[l],t),n=t,l++}s<=e.length-1&&i(e[s],r)}n=r,o=s}}function w(e){!function(e,t,i,s,o,n){let r=null;const a=[];for(const o of e)t(o)?(a.push(o),r=o):(i(o)||s(o))&&a.push(o);a.sort(n),null!==r&&o(r,0);const l=null===r?-1:a.indexOf(r);-1!==l?(S(a.slice(0,l),0,o,i),b(a.slice(l+1),0,o,i)):b(a,0,o,i)}(e,c.isMainSeriesState,c.isStudyState,c.isLineToolState,p,_)}function C(e,t){const i=Math.floor(e/1e4);let s=t.get(i);return void 0===s&&(s=[], +t.set(i,s)),s}function T(e,t,i,s,o,n){let r=-1/0,a=1/0,l=-1/0,c=0;const h=new Map;for(let s=0;so(e)-o(t)));let _=I(o(u[0]));const p=M(_),m=v(_,p,u.length+1).zOrderStep;return 0!==m?(u.forEach((e=>{const t=f(_+m);s(e,t),_=t})),f(_+m)):f(p+5e3)}function P(e,t){return T(e,d,u,m,g,t)}function x(e){let t=-1e4;for(const i of e)u(i)&&(t=Math.min(t,i.zorder()-1e4));return 0===t?-1e4:t}function M(e){const t=1e4*Math.ceil(e/1e4);return t===e?t+1e4:t}function I(e){const t=1e4*Math.floor(e/1e4);return t===e?t-1e4:t}function A(e,t,i,s,o,n,r){const a=t.length,{newItems:l,movedItemsStartIndex:c}=i>0?(0,h.moveAfter)(e,t,i-1):(0,h.moveBefore)(e,t,0);let d=!1;for(let t=c;to(e)))?function(e,t,i,s,o,n){let r,a,l=-1,c=-1;0===i?(c=L(e,i+t,s),a=n(e[c])):i+t===e.length?(l=k(e,i-1,s),r=n(e[l])):(l=k(e,i-1,s),r=n(e[l]),c=L(e,i+t,s),a=n(e[c]));if((void 0===r||r<0)&&void 0!==a&&a<=0)S(e.slice(0,c),a,o,s);else if((void 0===a||a>0)&&void 0!==r&&r>=0)b(e.slice(l+1),r,o,s);else{i+t0)&&void 0!==a&&a>=0){c=a;const e=v(c,void 0!==l?l:M(a),t);c=e.startZOrder,_=e.zOrderStep,d=i,u=d+t,h=1}if(0!==_)for(;d!==u;){const t=f(c+h*_);n(e[d],t),c=t,d+=h}else{const t=e.findIndex((e=>o(e)));-1!==t?(S(e.slice(0,t),0,n,s),b(e.slice(t+1),0,n,s)):b(e,0,n,s)}}(l,a,c,o,s,n,r)}function L(e,t,i){for(;t=0&&i(e[t]);)t--;return Math.max(0,t)}function E(e,t,i,s,o,n,r){const a=e.indexOf(i)+1;A(e,t,a,s,o,n,r)}function D(e,t,i,s,o,n,r){const a=e.indexOf(i);A(e,t,a,s,o,n,r)}function B(e,t,i){E(e,t,i,l.isSeries,u,m,g)}function V(e,t,i){D(e,t,i,l.isSeries,u,m,g)}function R(e){const t=function(e){const t=new Map;for(const i of e.panes)for(const e of i.lines)t.set(e.id,{pane:i,line:e});return t}(e),i=new Map;for(const s of e.groups){const e=new Set(s.tools),r=s.tools.map((e=>(0,n.ensureDefined)(t.get(e)))).map((e=>e.line.zOrder)),a=Math.max(...r),l=(0,n.ensureDefined)(t.get(s.tools[0])).pane,c=(0,o.default)(l.lines,(t=>t.zOrder(0,n.ensureDefined)(t.get(e)).line.zOrders&&(a=e),r>=0&&a>=0)break}l.lines.splice(-1===a?1/0:a,0,o.line),l.lines.splice(r,1)}}return i}!function(e){e[e.MainSeriesZOrder=0]="MainSeriesZOrder",e[e.StudyBaseZOrder=1e4]="StudyBaseZOrder",e[e.MaxFractionLength=3]="MaxFractionLength"}(s||(s={}))},48961:(e,t,i)=>{"use strict";i.d(t,{getSymbolSearchCompleteOverrideFunction:()=>n,setSymbolSearchCompleteOverrideFunction:()=>o});let s=(e,t)=>Promise.resolve({symbol:e,name:t?.symbol??e});function o(e){s=e}function n(){return s}},19844:(e,t,i)=>{"use strict";i.d(t,{StudyMetaInfo:()=>S,getStudyIdWithVersion:()=>v});var s=i(83873),o=i(90054),n=i(87465),r=i(9343),a=i(18113),l=i(4359),c=i(69422),h=i(60973),d=i(44862);const u=(0,r.getLogger)("Chart.Study.MetaInfo"),_=new Set(["CorrelationCoefficient@tv-basicstudies","Correlation - Log@tv-basicstudies-1"]),p=new Set([]),m=new Set(["line","shapes","chars","arrows","alertcondition"]),g=new Map([["AnchoredVWAP@tv-basicstudies","linetoolanchoredvwap"],["RegressionTrend@tv-basicstudies","linetoolregressiontrend"],["VbPAnchored@tv-basicstudies","linetoolanchoredvp"]]),f=/^([^\$]+)\$\d+$/,y=["bool","color","time","text_area"];function v(e){return S.cutDollarHash(e.id)+"-"+e.version}class S{constructor(e,t=!1){(0,n.merge)(this,{palettes:{},inputs:[],plots:[],graphics:{},defaults:{}}),(0,n.merge)(this,e);const i=e.fullId||e.id;(0,n.merge)(this,S.parseIdString(i)),this._updateInputDisplayDefaults(),this.useVersionFromMetaInfo=t}defaultInputs(){return this.inputs.map((e=>e.defval)).filter(n.isExistent)}state(){const e={};for(const[t,i]of Object.entries(this))"useVersionFromMetaInfo"!==t&&this.hasOwnProperty(t)&&(e[t]=(0,o.default)(i),"id"===t&&(e[t]+="-"+this.version));return e}symbolInputId(){return this.inputs.find((e=>"symbol"===e.type))?.id||null}createDefaults(){if(this.defaults){const e=(0,n.clone)(this.defaults);e.precision="default";const t=S.getStudyPropertyRootName(this);(0,h.createDefaults)(t,e)}}removeDefaults(){(0,h.removeDefaults)(S.getStudyPropertyRootName(this))}isPlotForceOverlay(e){const t=this.styles?.[e],i=this.plots.find((t=>t.id===e));return!!t?.forceOverlay||i&&(0,l.isOhlcPlot)(i)&&this.ohlcPlots?.[i.target]?.forceOverlay||!!this.ohlcPlots?.[e]?.forceOverlay}hasForceOverlayPlots(){return this.plots.some((e=>this.isPlotForceOverlay(e.id)))||Object.values(this.ohlcPlots??{}).some((e=>!!e?.forceOverlay))}static getSourceIdsByInputs(e,t){if(!Array.isArray(e)||!t)return[];const i=[];for(const o of e)if(S.isSourceInput(o)&&(0,s.default)(t[o.id])){const e=t[o.id];e.includes("$")&&i.push(e.split("$")[0])}return i}static isSourceInput(e){return Boolean(e.id&&(("source"===e.id||"src"===e.id)&&("text"===e.type||"source"===e.type)||"source"===e.type))}static getSourceInputIds(e){const t=[];for(const i of e.inputs)S.isSourceInput(i)&&t.push(i.id);return t}static setChildStudyMetaInfoPropertiesSourceId(e,t,i){for(const s of e.inputs){if(!S.isSourceInput(s))continue +;const e=i.childs().inputs&&i.childs().inputs.childs()[s.id];if(e){const i=e.value(),s=f.exec(i);if(2===s?.length){if("{pid}"===s[1]){const s=i.replace(/^[^\$]+/,t);e.setValue(s)}}}}}static canBeChild(e){if((0,s.default)(e))return!0;if(!e)return!1;if(e.extra&&!S.isAllowedSourceInputsCount(e.extra.sourceInputsCount)||!0===e.canNotBeChild||!1===e.canBeChild||_.has(e.id))return!1;let t=0;for(const i of e.inputs)S.isSourceInput(i)&&(t+=1);return S.isAllowedSourceInputsCount(t)}static isAllowedSourceInputsCount(e){return 1===e}static canHaveChildren(e){if(e){if(e.isTVScriptStrategy||e.TVScriptSourceCode&&isStrategy(e.TVScriptSourceCode))return!1;if(e.id&&!p.has(e.id)&&Array.isArray(e.plots))for(const t of e.plots)if(m.has(t.type))return!0}return!1}static getChildSourceInputTitles(e,t,i){const s={};if(t.plots&&t.plots.length&&e.options&&e.options.length)for(const o of e.options){const e=o?+o.split("$")[1]:NaN,n=isFinite(e)&&t.plots[e];n&&m.has(n.type)&&(s[o]=t.styles&&t.styles[n.id]&&t.styles[n.id]?.title||n.id,i&&(s[o]=i+": "+s[o]))}return s}static canPlotBeSourceOfChildStudy(e){return m.has(e)}static getStudyPropertyRootName(e){const t=g.get(e.id);if(void 0!==t)return t;let i="study_"+e.id;return e.pine&&e.pine.version&&(i+="_"+e.pine.version.replace(".","_")),i}static getStudyPropertyRootNameById(e){const t=g.get(e);return void 0!==t?t:"study_"+e}static isScriptStrategy(e){return!1}static isReplayStrategy(e){return"ReplayStrategy@tv-scripting"===e.id}static parseIdString(e){return function(e){const t={};if(-1===e.indexOf("@"))t.shortId=e,t.packageId="tv-basicstudies",t.id=e+"@"+t.packageId,t.version=1;else{const i=e.split("@");t.shortId=i[0];const s=i[1].split("-");if(3===s.length)t.packageId=s.slice(0,2).join("-"),t.id=t.shortId+"@"+t.packageId,t.version=parseInt(s[2]);else if(1===s.length&&"decisionbar"===s[0])t.packageId="les-"+s[0],t.id=t.shortId+"@"+t.packageId,t.version=1;else{if(1!==s.length)throw new Error("unexpected study id:"+e);t.packageId="tv-"+s[0],t.id=t.shortId+"@"+t.packageId,t.version=1}}if(t.fullId=t.id+"-"+t.version,"tv-scripting"===t.packageId){const e=t.shortId;if(0===e.indexOf("Script$")||0===e.indexOf("StrategyScript$")){const i=e.indexOf("_");t.productId=i>=0?e.substring(0,i):t.packageId}else t.productId=t.packageId}else t.productId=t.packageId;return t}(e)}static versionOf(e){const t="_metainfoVersion"in e&&(0,n.isNumber)(e._metainfoVersion)?e._metainfoVersion:0;return t<0&&u.logError("Metainfo format version cannot be negative: "+t),t}static getPackageName(e){const t=/^[^@]+@([^-]+-[^-]+)/.exec(e||"");t?.[1]||(0,a.getPersistentLogger)()?.addPersistentLogEntry(`getStudyPackageName: study id ${e} with stack ${(new Error).stack}`,r.LOGLEVEL.INFO,"chart.StudyMetaInfo");const[,i="tv-basicstudies"]=t||[];return i}static cutDollarHash(e){const t=e.indexOf("$");if(-1===t)return e;const i=e.indexOf("@"),s=i>=0?e.substring(i):"";return e.substring(0,t)+s}static hasPubSuffix(e){return/^PUB;.+$/.test(e)}static hasStdSuffix(e){return/^STD;.+$/.test(e)}static isStandardPine(e){ +return/^(Strategy)?Script\$STD;.*@tv-scripting$/.test(e)}static getStudyIdWithLatestVersion(e,t){const i=S.cutDollarHash(e.id);let s=i;return i.indexOf("Portfolio@tv-scripting")>=0?s+=t?"!":"":"ReplayStrategy@tv-scripting"===s?s+="-581!":i.indexOf("@tv-scripting")>=0?s+="-101!":i.endsWith("CP@tv-basicstudies")?s+="-"+Math.min(e.version,207):i.endsWith("CP@tv-chartpatterns")?s+="-"+Math.min(e.version,9):i.endsWith("@tv-volumebyprice")||t?s+="-"+e.version+"!":s+="-"+e.version,s}static overrideDefaults(e){0!==e.length&&(0,d.applyOverridesToStudyDefaults)(this.savedStudiesOverrides,e,(e=>window.TradingView.defaultProperties[S.getStudyPropertyRootName(e)]||null))}static mergeDefaultsOverrides(e){(0,n.merge)(this.savedStudiesOverrides,e)}static findStudyMetaInfoByDescription(e,t){if(e){const i=t.toLowerCase();for(const t of e)if(t.description.toLowerCase()===i)return t;throw new Error("unexpected study id:"+t)}throw new Error("There is no studies metainfo")}_updateInputDisplayDefaults(){this.inputs.filter((e=>void 0===e.display)).forEach((e=>{y.includes(e.type)?e.display=c.InputDisplayFlags.None:e.display=c.InputDisplayFlags.All}))}}S.savedStudiesOverrides={},window.TradingView.StudyMetaInfo=S},94078:(e,t,i)=>{"use strict";window.TradingView=window.TradingView||{},i(32563).setClasses(),i(57298),i(56186).install(),i(49483),i(40167),i(11417),i(29063),i(1765),i(68659)},37150:(e,t,i)=>{"use strict";var s=i(81251),o=i(20057),n=i(50151),r=i(52959),a=i(11542),l=(i(18092),i(32517),i(5992),i(87457),i(34907),i(37103));const c=(0,r.getChartingLibraryGlobalContext)();JSON.parse(c.urlParams.disabledFeatures).forEach((e=>{l.setEnabled(e,!1)})),JSON.parse(c.urlParams.enabledFeatures).forEach((e=>{l.setEnabled(e,!0)}));i(94078);var h=i(60973),d=(i(48480),i(1765));const u=(0,r.getChartingLibraryGlobalContext)(),_=(0,r.getChartingLibraryOwner)();u.__settingsOverrides=_.settingsOverrides||{};const p=_.settingsAdapter;null!=p?(d.setSettingsAdapter(p),d.sync()):l.enabled("use_localstorage_for_settings")&&d.sync();var m=i(84617);const g=(0,r.getChartingLibraryGlobalContext)();g.urlParams.customFontFamily&&(0,m.setChartFontFamily)(g.urlParams.customFontFamily);var f=i(38881);class y extends f.ChunkLoader{_startLoading(){return Promise.all([i.e(5700),i.e(8185),i.e(1681),i.e(3439),i.e(8933),i.e(6032),i.e(3672),i.e(3359),i.e(4587),i.e(8260),i.e(1979),i.e(7780),i.e(4495),i.e(7827),i.e(844),i.e(9836),i.e(683),i.e(6697),i.e(1166),i.e(3946),i.e(6956),i.e(3014),i.e(4240),i.e(2227),i.e(8402),i.e(3179),i.e(6193),i.e(917),i.e(5516)]).then(i.bind(i,92024)).then((e=>e.getRestrictedToolSet()))}}var v,S,b=i(9753),w=i(72877);function C(e=[],t=[]){const i=document.createElement("div"),s=document.createElement("div");return i.appendChild(s),i.classList.add(w.container),s.classList.add(w.inner),e.forEach((e=>{i.classList.add(w[e])})),t.forEach((e=>{i.classList.add(w[e])})),i}!function(e){e.Top="border-top",e.Right="border-right",e.Bottom="border-bottom",e.Left="border-left"}(v||(v={})),function(e){e.TopLeft="top-left-radius",e.TopRight="top-right-radius", +e.BottomLeft="bottom-left-radius",e.BottomRight="bottom-right-radius"}(S||(S={}));class T extends f.ChunkLoader{constructor(e,t){super(),this._toolsBootloader=e,this._headerProps=t,this._headerProps.resizerBridge.negotiateHeight(b.HEADER_TOOLBAR_HEIGHT_EXPANDED),this._headerProps.resizerBridge.container.value().appendChild(C())}_startLoading(){return Promise.all([this._toolsBootloader.load(),this._loadHeaderToolbar()]).then((([e,t])=>new t(this._headerProps.resizerBridge.container.value(),{...this._headerProps,tools:e})))}_loadHeaderToolbar(){return Promise.all([i.e(8370),i.e(9297),i.e(2227),i.e(3005)]).then(i.bind(i,38254)).then((e=>e.HeaderToolbarRenderer))}}var P=i(55308),x=i(66593);class M extends f.ChunkLoader{constructor(e){super(),this._opts=e,P.isDrawingToolbarVisible.value()&&(this._opts.resizerBridge.negotiateWidth(x.TOOLBAR_WIDTH_EXPANDED),this._opts.resizerBridge.container.value().appendChild(C()))}_startLoading(){return Promise.all([i.e(3721),i.e(8185),i.e(1681),i.e(3439),i.e(8933),i.e(6032),i.e(3359),i.e(4587),i.e(8260),i.e(4495),i.e(7827),i.e(9323),i.e(844),i.e(6697),i.e(1166),i.e(6178),i.e(9468),i.e(2227),i.e(4931),i.e(3179),i.e(769),i.e(1890),i.e(1727),i.e(2878)]).then(i.bind(i,7314)).then((e=>new e.DrawingToolbarRenderer(this._opts.resizerBridge.container.value(),{...this._opts})))}}var I=i(14411),A=i(32563),L=i(22489),k=i(45345);var E=i(34840),D=i(26709),B=i(3343);function V(e){if("number"==typeof e)return e;switch(e.toLowerCase()){case"ctrl":return B.Modifiers.Control;case"shift":return B.Modifiers.Shift;case"alt":return B.Modifiers.Alt;default:return e.length>1&&console.warn(`Unsupported key name: "${e}", Only single-letter key names are supported.`),console.warn("Starting from v31, string key names are no longer supported. Please use key codes instead."),e.toUpperCase().charCodeAt(0)}}function R(e){let t=0;for(let i=0;i{if(!G)return void this._actionHandler(e,t,s,o) +;const{newValue:n,dialogClose:r}=e,l=(await this._doLoad()).find((e=>e.name===n));r(),void 0!==l?this._hide=await(0,j.showConfirm)({title:a.t(null,void 0,i(7219)),text:a.t(null,void 0,i(67635)),onConfirm:({dialogClose:e})=>{e(),this._doOverwriteExistingLayout(l.id,n,t,s,o)},onCancel:({dialogClose:e})=>{e(),this._showDialog(n,t,s,o)}}):this._actionHandler({newValue:n,dialogClose:r},t,s,o)},onClose:()=>this._visibility.setValue(!1)})}_doSaveCurrentLayout(e,t,i,s){const o=this._chartWidgetCollection.metaInfo.name.value();this._chartWidgetCollection.metaInfo.name.setValue(e),this._doSave(t,i,(()=>{this._chartWidgetCollection.metaInfo.name.setValue(o),s?.()}))}_doOverwriteExistingLayout(e,t,i,s,o){const n=this._chartWidgetCollection.metaInfo.name.value();this._chartWidgetCollection.metaInfo.id.setValue(e),this._chartWidgetCollection.metaInfo.name.setValue(t),this._doSave(i,s,(()=>{this._chartWidgetCollection.metaInfo.name.setValue(n),o?.()}))}}class $ extends q{cloneChart(){this._cloneChart().then((()=>this._visibility.setValue(!0)))}show(){W((()=>this.cloneChart()),{source:"Clone chart"})}_dialogTitle(){return a.t(null,void 0,i(66134))}_dialogText(){return a.t(null,void 0,i(9541))+":"}_actionHandler({newValue:e,dialogClose:t}){l.enabled("saveload_storage_customization")&&this._doCloneCurrentLayout(e),t()}async _cloneChart(){let e;try{e=await U()}catch{return void showErrorDialog({content:a.t(null,void 0,i(73013))})}e&&(this._hide=await this._showDialog(this._getInitialRenameDialogInput()))}_doCloneCurrentLayout(e){const t=this._chartWidgetCollection.metaInfo.name.value();this._chartWidgetCollection.metaInfo.uid.deleteValue(),this._chartWidgetCollection.metaInfo.id.setValue(null),this._chartWidgetCollection.metaInfo.name.setValue(e),this._doSave(void 0,void 0,(()=>{this._chartWidgetCollection.metaInfo.name.setValue(t)}))}_getInitialRenameDialogInput(){return a.t(null,{context:"ex: AAPL chart copy"},i(97559)).format({title:this._chartWidgetCollection.metaInfo.name.value()})}}class K extends q{show(e,t,i){const s="function"==typeof e?e:void 0;this._saveNewChart(s,t,i).then((()=>this._visibility.setValue(!0)))}_dialogTitle(){return a.t(null,void 0,i(43047))}_dialogText(){return a.t(null,void 0,i(9541))+":"}_actionHandler({newValue:e,dialogClose:t},i,s,o){this._doSaveCurrentLayout(e,i,s,o),t()}async _saveNewChart(e,t,s){let o;try{o=await U()}catch{return void showErrorDialog({content:a.t(null,void 0,i(73013))})}const n=this._chartWidgetCollection.metaInfo.name.value();this._hide=await this._showDialog(n,e,t,s)}}class Y extends q{show(){W((()=>this._show()),{source:"Rename chart"})}_dialogTitle(){return a.t(null,void 0,i(22584))}_dialogText(){return a.t(null,void 0,i(9541))+":"}_actionHandler({newValue:e,dialogClose:t}){this._doSaveCurrentLayout(e),t()}async _show(){await this._renameChart(),this._visibility.setValue(!0)}async _renameChart(){const e=this._chartWidgetCollection.metaInfo.name.value();this._hide=await this._showDialog(e)}}class Z{constructor(e,t,i){if(this._autosaveTimer=null, +this._watchedAutoSaveEnabled=new O.WatchedValue,this._toggleAutoSaveEnabledHandler=this._toggleAutoSaveEnabled.bind(this),this._doSave=(e,t,i,s)=>{void 0!==e&&e();const o=this._chartChangesWatcher.changes();this._chartSaver.saveChartSilently((e=>{var i;e&&e.uid===this.layoutId()&&(i=e.uid,"/chart/"===location.pathname&&(location.href="/chart/"+i)),void 0!==t&&t(e)}),(()=>{void 0!==i&&i()}),{autoSave:Boolean(s),changes:o})},this._doLoad=()=>z.backend.getCharts(),this._chartWidgetCollection=e,this._chartSaver=t,this._createController=new K(e,this._doSave,this._doLoad),this._renameController=new Y(e,this._doSave,this._doLoad),this._saveAsController=new $(e,this._doSave,this._doLoad),this._chartChangesWatcher=i,e.saveKeysPressed().subscribe(this,this.saveChartOrShowTitleDialog),this._chartChangesWatcher.getOnChange().subscribe(this,this._onStateChanged),l.enabled("saveload_separate_drawings_storage")){const e=!0;e&&this._enableAutoSave(),this._watchedAutoSaveEnabled.setValue(e),this._watchedAutoSaveEnabled.subscribe(this._toggleAutoSaveEnabledHandler),this._autoSaveEnabledSetting?.getOnChange().subscribe(this,this._autoSaveEnabledSettingHandler)}}autoSaveEnabled(){return this._watchedAutoSaveEnabled}destroy(){l.enabled("saveload_separate_drawings_storage")&&(this._watchedAutoSaveEnabled.unsubscribe(),delete this._watchedAutoSaveEnabled,this._autoSaveEnabledSetting?.destroy(),delete this._autoSaveEnabledSetting)}getCreateController(){return this._createController}getRenameController(){return this._renameController}getSaveAsController(){return this._saveAsController}cloneChart(){this._saveAsController.cloneChart()}createEmptyChart(){this._createEmptyController?.show()}saveChartAs(){this._saveAsController.show()}renameChart(){this._renameController.show()}saveNewChart(e,t,i){this._createController.show(e,t,i)}saveExistentChart(e,t,i){this._doSave(e,t,i)}changes(){return this._chartChangesWatcher.changes()}hasChanges(){return 0!==this._chartChangesWatcher.changes()}hasChangesWV(){return this._chartChangesWatcher.hasChangesWV()}getOnChanges(){return this._chartChangesWatcher.getOnChange()}saveChartOrShowTitleDialog(e,t,i){const s=window.saver.isSaveInProcess(),o=this._chartChangesWatcher.hasChanges(),n=!!this.layoutId();window.is_authenticated&&(s||!o&&n)||W((()=>{null!=this._chartWidgetCollection.metaInfo.id.value()?this.saveExistentChart(e,t,i):this._chartWidgetCollection.readOnly()?this.cloneChart():this.saveNewChart(e,t,i)}),{source:"Save chart",sourceMeta:"Chart"})}saveToJSON(e){return this._chartSaver.saveToJSON(e)}saveChartSilently(e,t,i){this._chartSaver.saveChartSilently(e,t,i)}setAutoSaveEnabled(e){window.is_authenticated&&window.saver.isSaveInProcess()||W((()=>{this._watchedAutoSaveEnabled.setValue(e)}),{source:"AutoSave chart"})}saveChartLineTools(e,t,i,s){return this._chartSaver.saveChartLineTools(e,t,i,s)}layoutId(){return this._chartWidgetCollection.metaInfo.uid.value()}chartSaved(){return this._chartSaver.chartSaved()}_autoSaveEnabledSettingHandler(e){0}_toggleAutoSaveEnabled(e){0}_enableAutoSave(){0} +_disableAutoSave(){0}_onStateChanged(e){e?this._startAutosave():this._stopAutosave()}_startAutosave(){l.enabled("charts_auto_save")&&null===this._autosaveTimer&&(this._autosaveTimer=setTimeout((()=>{this._autosaveTimer=null,this._chartWidgetCollection.metaInfo.id.value()&&this._doSave(void 0,void 0,void 0,!0)}),6e4))}_stopAutosave(){null!==this._autosaveTimer&&(clearInterval(this._autosaveTimer),this._autosaveTimer=null)}}var X=i(38414),J=i(95406),Q=i(21097),ee=i(76422),te=i(67763);class ie extends te.CommonJsonStoreService{constructor(e,t){super(e,t,"FAVORITE_CHARTS_CHANGED","loadChartDialog.favorites",{})}}function se(){return!(l.enabled("saveload_requires_authentication")&&!window.is_authenticated)}class oe extends X.DialogRenderer{constructor(e=null){super(),this._chartWidgetCollection=null,this._promise=null,this._dialog=null,this._onLoginStateChange=()=>{se()||this._setState({chartList:[],favorites:{},recents:[]})},this._onActiveChartNameChange=e=>{const{chartList:t}=this._state.value(),i=this._chartWidgetCollection;if(!i)return;const s=[];let o;t.forEach((t=>{if(t.id===i.metaInfo.id.value())return o=t,void s.push({...t,name:e});s.push(t)})),o&&this._setState({chartList:s})},this._subscribe=e=>{this._setVisibility(e)},this._getChartEntry=e=>({id:e.id,url:e.url,name:e.name,symbol:e.short_symbol,interval:e.interval,toolsCount:0,modified:e.modified_iso,favorite:void 0,active:()=>this._isActiveChart(e.id),openAction:(t,i)=>this.loadChart(e,t,i),deleteAction:()=>this._deleteChart(e),favoriteAction:()=>this._handleFavorite(e)}),this._isActiveChart=e=>null!==this._chartWidgetCollection&&e===this._chartWidgetCollection.metaInfo.id.value(),this._deleteChart=e=>z.backend.removeChart(e.image_url).then((()=>{const{chartList:t,favorites:i}=this._state.value(),s=t.filter((t=>t.id!==e.id));if(this._favoriteChartsService){const t={...i};t[e.id]&&delete t[e.id],this._favoriteChartsService.set(t)}se()&&this._setState({chartList:s}),this._isActiveChart(e.id)&&(l.enabled("saveload_storage_customization")||isSymphonyEmbed()?null!==this._chartWidgetCollection&&this._chartWidgetCollection.clearChartMetaInfo():location.href="/chart/"+location.search)})),this._chartWidgetCollection=e,this._favoriteChartsService=new ie(Q.TVXWindowEvents,d);const t=this._favoriteChartsService?.get()||{};this._state=new O.WatchedValue({chartList:[],recents:[],favorites:t}),this._chartWidgetCollection?.metaInfo.name.subscribe(this._onActiveChartNameChange),window.loginStateChange.subscribe(null,this._onLoginStateChange)}showLoadDialog(){W(this._showLoadDialog.bind(this),{source:"Load chart",sourceMeta:"Chart"})}show(){this.showLoadDialog()}hide(){this._dialog?.hide(),this._dialog?.visible().unsubscribe(this._subscribe)}state(){return this._state.readonly()}refreshChartList(e){return(se()?z.backend.getCharts():Promise.resolve([])).then((t=>{if(!se())return;const i=t.map(this._getChartEntry);this._setState({chartList:i,favorites:this._initFavorites(i)}),void 0!==e&&e()}))}getRecentCharts(e){}async deleteAllFavorites(){return Promise.resolve()} +async loadChart(e,t,i){{const t=await z.backend.loadLayout(e);ee.emit("chart_load_requested",t.chartWidgetCollectionState)}}async loadChartByUrl(e,t,i){let s=this._state.value().chartList.find((t=>t.url===e));s||(await this.refreshChartList(),s=this._state.value().chartList.find((t=>t.url===e))),await(s?.openAction(t,i))}async _handleFavorite(e){const{favorites:t}=this._state.value(),i={...t};i[e.id]?delete i[e.id]:i[e.id]=!0,this._favoriteChartsService?.set(i),se()&&this._setState({favorites:i})}_showLoadDialog(){this.refreshChartList((()=>{const e=this._promise=Promise.all([i.e(5121),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(8933),i.e(2537),i.e(8894),i.e(1697),i.e(8260),i.e(1979),i.e(4495),i.e(7827),i.e(9970),i.e(683),i.e(1450),i.e(7463),i.e(4),i.e(2227),i.e(4931),i.e(9418),i.e(3179),i.e(917),i.e(5386),i.e(6864),i.e(5009)]).then(i.bind(i,3650)).then((t=>{this._promise===e&&(this._dialog&&(this._dialog.hide(),this._dialog.visible().unsubscribe(this._subscribe)),this._dialog=new t.LoadChartDialogRenderer({chartWidgetCollection:this._chartWidgetCollection,serviceState:this.state()}),this._dialog.visible().subscribe(this._subscribe),this._dialog.show())}))}))}_setState(e){this._state.setValue({...this._state.value(),...e})}async _changeFavoriteState(e,t,i){return Promise.resolve()}_initFavorites(e){if(this._favoriteChartsService)return this._favoriteChartsService.get();const t={};return e.filter((e=>e.favorite)).forEach((e=>{t[e.id]=!0})),t}}var ne=i(9343),re=(i(10892),i(51768)),ae=i(48096);const le=(0,ne.getLogger)("Platform.StudyTemplates"),ce=a.t(null,void 0,i(15096));class he{constructor(e){this._chartWidgetCollection=e.chartWidgetCollection,this._recentStudyTemplatesService=e.recentStudyTemplatesService,window.loginStateChange.subscribe(null,z.backend.invalidateStudyTemplatesList),this._list=new O.WatchedValue([]),this._onChange=new ae.Delegate,this._list.subscribe((()=>this._onChange.fire()))}findRecordByName(e){return this._list.value().find((t=>t.name===e))||null}showSaveAsDialog(e){const t=this._chartWidgetCollection.activeChartWidget.value().model();Promise.all([i.e(7336),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(1171),i.e(6032),i.e(3672),i.e(2537),i.e(8894),i.e(5743),i.e(3425),i.e(7780),i.e(4495),i.e(9487),i.e(9323),i.e(6052),i.e(159),i.e(683),i.e(6633),i.e(7519),i.e(2227),i.e(4931),i.e(9418),i.e(3179),i.e(769),i.e(5705),i.e(6631)]).then(i.bind(i,13657)).then((i=>{new i.StudyTemplateSaver({controller:t,onSave:(e,t)=>{t&&this._recentStudyTemplatesService?.add(t),this._list.setValue(e)}}).show(e)}))}applyTemplate(e){const t=this.findRecordByName(e);null!==t?window.runOrSignIn((async()=>{const{id:e,name:i,is_default:s}=t,o=this._chartWidgetCollection.activeChartWidget.value(),n=e=>{(0,re.trackEvent)("GUI","Load Study Template");const t=JSON.parse(e.content),s=t.symbol;t.interval,Boolean(s)&&o.model().mainSeries().symbolSameAsCurrent(s);o.model().applyStudyTemplate(t,i)} +;s&&"number"==typeof e?await z.backend.getStandardStudyTemplateById(e,n):await z.backend.getStudyTemplateById(e).then(n)}),{source:"Study templates apply"}):le.logNormal(`Template ${e} not found in cache`)}deleteStudyTemplate(e,t,i){const s=this.findRecordByName(e);null!==s?this._removeTemplate(s,t,i):le.logNormal(`Template ${e} not found in cache`)}list(){return this._list.value()}getOnChange(){return this._onChange}refreshStudyTemplateList(e){z.backend.getStudyTemplatesList().then((t=>{this._list.setValue(t),void 0!==e&&e()}))}invalidate(){z.backend.invalidateStudyTemplatesList()}_removeTemplate(e,t,i){window.runOrSignIn((()=>{(0,j.showConfirm)({text:ce.format({name:e.name}),onConfirm:({dialogClose:t})=>new Promise((s=>{z.backend.invalidateStudyTemplatesList(),z.backend.removeStudyTemplate(e.id).then((()=>{this.refreshStudyTemplateList((()=>{const o=this.list();this._list.setValue(o.filter((t=>t!==e))),this._recentStudyTemplatesService&&this._recentStudyTemplatesService.remove(e.id),s(),t(),i?.()}))}))}))},t)}),{source:"Study templates delete"})}}var de=i(29803),ue=i(26010),_e=i(35727);class pe{constructor(e,t){this._visibility=new O.WatchedValue(!1),this._dialogPromise=null,this._dialog=null,this._chartWidgetCollection=e,this._options=t}visible(){return this._visibility.readonly()}show(e,t,i){const s=Array.isArray(e)?e:[],o=Array.isArray(e)?void 0:e;null===this._dialog&&this._requestDialog(s??[],t,i,o),this._dialog?.open(s??[],this._options?.indicatorsPreloader?.getIndicatorPromises(),t,i,o)}hide(){this._dialog?.hide()}getDialog(){return this._dialog}resetAllPages(){this._dialog?.resetAllStudies()}_requestDialog(e,t,s,o){if(null===this._dialogPromise){let n;n=Promise.all([i.e(2346),i.e(8185),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(2537),i.e(1697),i.e(7833),i.e(8260),i.e(509),i.e(7463),i.e(3853),i.e(2227),i.e(9418),i.e(6864),i.e(6456)]).then(i.bind(i,86682)).then((e=>new e.IndicatorsLibraryContainer(this._chartWidgetCollection,this._options))),this._dialogPromise=n.then((i=>{this._dialog=i,this._dialog.visible().subscribe((e=>{this._visibility.setValue(e)})),this._dialog.open(e,this._options?.indicatorsPreloader?.getIndicatorPromises(),t,s,o)}))}return this._dialogPromise}}var me=i(88723),ge=i(39527),fe=i(4226),ye=i(18712),ve=i(23714),Se=i(61786),be=i(97363),we=i(3190),Ce=i(37236),Te=i(87453),Pe=i(10845);const xe=/^Etc\/GMT([+-])(\d{1,2}):?(\d\d)?$/,Me=new Map;function Ie(e){if(Me.has(e))return Me.get(e);const t=xe.test(e);return Me.set(e,t),t}const Ae=new Map;function Le(e){if(Ae.has(e))return Ae.get(e);const t=function(e){const t=e.match(xe);if(!t)return 0;const i="+"===t[1]?-1:1;return 60*(60*parseInt(t[2],10)+parseInt(t[3]||"0",10))*i}(e),i={time:[1924992e3+t],offset:[t]};return Ae.set(e,i),i}let ke=null;const Ee=new Map;class De{constructor(){this._customTimezones=new Map}addTimezones(e){e.forEach((e=>{const{id:t,...i}=e;this._addTimezone(t,i)})),this.updateChartTimezones()}listTimezoneIds(){return[...this._customTimezones.keys()]}listTimezones(){return[...this._customTimezones.entries()].map((([e,t])=>({ +id:e,...t})))}getTimezoneInfo(e){if(!this.timezoneIsAvailable(e))throw new Error("Provided timezone alias is not within the list of supported timezones.");return(0,n.ensure)(this._customTimezones.get(e))}getAllTimezoneInfo(){return this.listTimezones()}getAliasTimezone(e){return this.getTimezoneInfo(e).alias}timezoneIsAvailable(e){return this._customTimezones.has(e)}updateChartTimezones(){(0,Pe.updateAvailableTimezones)(this.getAllTimezoneInfo())}getTimezoneData(e){if(Ee.has(e))return Ee.get(e);let t=null;if(Ie(e))t=Le(e);else if(this.timezoneIsAvailable(e)){const i=this.getAliasTimezone(e);Te.tzData[i]&&(t=Te.tzData[i]),!t&&Ie(i)&&(t=Le(i))}return t&&Ee.set(e,t),t}static instance(){return null===ke&&(ke=new De),ke}_addTimezone(e,t){try{if((0,n.ensure)(e,"Custom timezone ID"),(0,n.ensure)(t.alias,"Custom timezone alias"),(0,n.ensure)(t.title,"Custom timezone title"),(0,Pe.timezoneIsAvailable)(e)&&!this.timezoneIsAvailable(e))throw new Error("Custom timezone id already exists.");if(!(0,Pe.timezoneIsSupported)(t.alias)&&!Ie(t.alias))throw new Error("Custom timezone alias is not a supported timezone.");if(e.length<1)throw new Error("Custom timezone id is empty");if(t.title.length<1)throw new Error("Custom timezone title is empty");this._customTimezones.set(e,t)}catch(e){console.warn(`Unable to add custom timezone. ${e}`)}}}(0,Ce.setCustomTimezones)(De);var Be=i(91106);let Ve=null;var Re=i(46082);class Ne{constructor(e){this._alive=new O.WatchedValue,this._container=new O.WatchedValue,this._width=new O.WatchedValue,this._height=new O.WatchedValue,this._fullscreen=new O.WatchedValue,this._detachable=new O.WatchedValue,this._fullscreenable=new O.WatchedValue,this._visible=new O.WatchedValue,this._availWidth=new O.WatchedValue,this._availHeight=new O.WatchedValue,this._owner=new O.WatchedValue,this._ownersStack=[],this.owner=this._owner.readonly(),this._bridge={alive:this._alive.readonly(),container:this._container.readonly(),width:this._width.readonly(),height:this._height.readonly(),fullscreen:this._fullscreen.readonly(),detachable:this._detachable.readonly(),fullscreenable:this._fullscreenable.readonly(),visible:this._visible.readonly(),availWidth:this._availWidth.readonly(),availHeight:this._availHeight.readonly(),remove:()=>{const e=this._owner.value();e&&e.remove&&e.remove()},negotiateWidth:e=>{const t=this._owner.value();t&&t.negotiateWidth&&t.negotiateWidth(e)},negotiateHeight:e=>{const t=this._owner.value();t&&t.negotiateHeight&&t.negotiateHeight(e)},requestFullscreen:()=>{const e=this._owner.value();e&&e.requestFullscreen&&e.requestFullscreen()},exitFullscreen:()=>{const e=this._owner.value();e&&e.exitFullscreen&&e.exitFullscreen()},detach:e=>{const t=this._owner.value();t&&t.detach&&t.detach(e)},attach:()=>{const e=this._owner.value();e&&e.attach&&e.attach()}},e&&this.pushOwner(e)}destroy(){for(const e of this._ownersStack)this._unsubscribeOwner(e)}bridge(){return this._bridge}pushOwner(e){if(!e.alive.value())return;for(const e of this._ownersStack)this._unsubscribeOwner(e);const t={owner:e} +;this._ownersStack.push(t),this._subscribeOwner(t)}_subscribeOwner(e){const t=e.owner;if(e.deathWatcher||(this._alive.setValue(!0),e.deathWatcher=t.alive.spawn(),e.deathWatcher.subscribe((t=>{t||this._deadHandler(e)}))),this._owner.setValue(t),!e.subscriptions){const i=e.subscriptions=[];this._visible.setValue(!1);const s=(e,t)=>{if(e){const s=e.spawn();i.push(s),s.subscribe((e=>{t.setValue(e)}),{callWithLast:!0})}else t.deleteValue()};s(t.container,this._container),s(t.width,this._width),s(t.height,this._height),s(t.fullscreen,this._fullscreen),s(t.detachable,this._detachable),s(t.fullscreenable,this._fullscreenable),s(t.availWidth,this._availWidth),s(t.availHeight,this._availHeight),s(t.visible,this._visible)}}_unsubscribeOwner(e,t){if(e.subscriptions){for(const t of e.subscriptions)t.unsubscribe();e.subscriptions=null}t&&e.deathWatcher&&(e.deathWatcher.unsubscribe(),e.deathWatcher=null)}_deadHandler(e){const t=this._ownersStack.indexOf(e);(0,n.assert)(-1!==t,"sanitized owner should be in stack");for(let e=this._ownersStack.length-1;e>=t;e--)this._unsubscribeOwner(this._ownersStack[e],!0);this._ownersStack.length=t,t>0?this._subscribeOwner(this._ownersStack[t-1]):(this._alive.setValue(!1),this._owner.deleteValue())}}class Oe{constructor(e){this._document=e,this.isFullscreen=new O.WatchedValue;const t=()=>{const e=["fullscreenElement","webkitFullscreenElement","mozFullscreenElement","mozFullScreenElement","msFullscreenElement"];for(let t=0;t{this.isVisible.setValue(!e[o])},i(),e.addEventListener(t,i,!1);break}}this.destroy=()=>{i&&(e.removeEventListener(t,i,!1),i=null)}}}var We,He=i(84015),ze=i(49483);!function(e){e.Quirks="quirks",e.Visual="visual"}(We||(We={}));function Ue(e,t){let i=0;for(const{min:s,max:o}of t){if(e0&&t.push({min:e,max:s})}return t.sort(((e,t)=>e.min-t.min||e.max-t.max)),t}function Ge(e,t){if(e.length!==t.length)return!1;for(let i=e.length;i--;){ +if(e[i].min!==t[i].min)return!1;if(e[i].max!==t[i].max)return!1}return!0}const qe=l.enabled("no_min_chart_width");var $e;!function(e){e[e.MinChartHeight=300]="MinChartHeight",e[e.MinChartWidth=300]="MinChartWidth",e[e.DefaultOffset=4]="DefaultOffset",e[e.ThinOffset=1]="ThinOffset",e[e.TopToolbarMargin=0]="TopToolbarMargin"}($e||($e={}));const Ke=l.enabled("bypass_chart_height_check");function Ye(e){const t=l.enabled("side_toolbar_in_fullscreen_mode"),i=l.enabled("header_in_fullscreen_mode");return"center"===e||"left"===e&&t||"top"===e&&i}var Ze=i(32544),Xe=i(60709),Je=i(16216),Qe=(i(7304),i(16738)),et=i(83873),tt=i(87465),it=i(69109),st=i(72270);const ot=(0,ne.getLogger)("Common.UndoStack");class nt{constructor(){this._commands=[],this._onChange=new ae.Delegate}onChange(){return this._onChange}isEmpty(){return 0===this._commands.length}size(){return this._commands.length}clear(){this.isEmpty()||(this._commands.length=0,this._onChange.fire())}push(e){if(!(e instanceof st.UndoCommand))throw new TypeError("argument must be an instance of UndoCommand");this._commands.push(e),this._onChange.fire(e)}pop(){if(this.isEmpty())return void ot.logDebug("pop: undo stack is empty");const e=this._commands.pop();return this._onChange.fire(e),e}head(){if(!this.isEmpty())return this._commands[this._commands.length-1]}}class rt extends st.UndoCommand{constructor(e){super(e,!1),this._subcommands=[]}addCommand(e){this._subcommands.push(e)}isEmpty(){return 0===this._subcommands.length}redo(e){for(let t=0;t=0;t--)this._subcommands[t].undo(e)}commands(){return this._subcommands}affectsState(){return this._subcommands.some((e=>e.affectsState()))}}class at extends st.UndoCommand{constructor(e,t,i,s,o=!0){super(s,void 0,o),this._setter=e,this._oldValue=t,this._newValue=i}redo(){this._setter(this._newValue)}undo(){this._setter(this._oldValue)}}class lt extends at{constructor(e,t,i,s,o=!0){super((e=>this._vwState.setValue(e)),t,i,s,o),this._vwState=e}}const ct=(0,ne.getLogger)("Common.UndoHistory");var ht=i(87296),dt=i(95804),ut=i(3354);const _t=new dt.TranslatedString("change chart layout to {title}",a.t(null,void 0,i(68846)));class pt extends st.UndoCommand{constructor(e,t){super(_t.format({title:ut.layouts[t].title})),this._chartWidgetCollection=e,this._newLayoutType=t,this._oldLayoutType=e.layout.value()}redo(){this._chartWidgetCollection.setLayout(this._newLayoutType)}undo(){this._chartWidgetCollection.setLayout(this._oldLayoutType)}}var mt=i(78861),gt=i(68335),ft=i(48943),yt=i(62773);function vt(e){const t={};return{promise:new Promise(((i,s)=>{e.subscribe(t,i,!0)})),destroy:()=>{e.unsubscribeAll(t)}}}var St=i(26867),bt=i(82095),wt=i(29447);class Ct extends X.DialogRenderer{constructor(e){super(),this._dialog=null,this._subscribe=e=>{this._setVisibility(e)},this._chartWidgetCollection=e}show(e){const t=this._chartWidgetCollection,s=t.activeChartWidget.value() +;return s.generalPropertiesDefinitions().then((o=>Promise.all([i.e(7871),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(1171),i.e(8933),i.e(6032),i.e(3672),i.e(2537),i.e(3359),i.e(8894),i.e(5743),i.e(3425),i.e(1697),i.e(4587),i.e(7833),i.e(8752),i.e(1979),i.e(4495),i.e(9487),i.e(445),i.e(846),i.e(7827),i.e(9323),i.e(8220),i.e(3329),i.e(9970),i.e(6052),i.e(844),i.e(9590),i.e(4678),i.e(159),i.e(9965),i.e(9742),i.e(6043),i.e(1488),i.e(509),i.e(3014),i.e(4422),i.e(2227),i.e(4931),i.e(9418),i.e(4426),i.e(9026),i.e(769),i.e(9928),i.e(8604),i.e(5893),i.e(624),i.e(7078)]).then(i.bind(i,56080)).then((i=>{const n=new i.GeneralChartPropertiesDialogRenderer({chartWidgetCollection:t,propertyPages:o,activePageId:this._activePageId,model:s.model()});return this._dialog?.hide(),this._dialog?.visible().unsubscribe(this._subscribe),this._dialog=n,n.visible().subscribe(this._subscribe),n.show(e),this._activePageId=void 0,n}))))}hide(){this._dialog?.hide()}isVisible(){return this.visible().value()}focusOnText(){}setActivePage(e){this._activePageId=e}}class Tt extends X.DialogRenderer{constructor(e){super(),this._dialog=null,this._subscribe=e=>{this._setVisibility(e)},this._chartWidgetCollection=e}show(e){this._load().then((t=>{this._dialog?.hide(),this._dialog?.visible().unsubscribe(this._subscribe),this._dialog=t,t.visible().subscribe(this._subscribe),t.show(e),ee.emit("compare_add")}))}hide(){this._dialog?.hide()}_load(){return Promise.all([Promise.all([i.e(4040),i.e(7271)]).then(i.bind(i,43900)),Promise.all([i.e(8955),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(1171),i.e(8933),i.e(6032),i.e(3672),i.e(3359),i.e(3425),i.e(1697),i.e(4587),i.e(7833),i.e(8752),i.e(445),i.e(846),i.e(6956),i.e(9002),i.e(2227),i.e(4931),i.e(9418),i.e(3179),i.e(4426),i.e(9026),i.e(731)]).then(i.bind(i,14283))]).then((([e,t])=>{const i=new e.CompareModel(this._chartWidgetCollection);return t.getCompareDialogRenderer(i)}))}}var Pt=i(12217),xt=i(95059);const Mt=()=>i.e(4389).then(i.bind(i,67090));function It(e,t={}){return Mt().then((i=>i.copyToClipboardImageOfChart(e,t)))}function At(e,t={}){return Mt().then((i=>i.getImageOfChartSilently(e,t)))}var Lt=i(11946);function kt(e){const t=e.querySelector("#chart-aria-description");if(null!==t)return t;const i=e.createElement("div");return i.id="chart-aria-description",i.tabIndex=-1,i.role="alert",i.ariaLive="assertive",e.body.appendChild(i),i}function Et(e,t){const i={weekday:"long",year:"numeric",month:"long",day:"numeric",hour:t?"2-digit":void 0,minute:t?"2-digit":void 0,hour12:!0};return new Date(1e3*e).toLocaleString(void 0,i)}class Dt{constructor(){this._ariaElement=null,this._customProvider=null,this._lastDescription=null,this._locale="en"}createElement(e){this._ariaElement=kt(e)}setCustomProvider(e){this._customProvider=e}setLocale(e){this._locale=e}async updateChartDescription(e,t,i){const s=function(e){const t=ut.layouts[e];return t?.count??1}(i),o=await this._buildChartContext(e,t,s);if(null===o)return;if(this._customProvider){ +const e=await this._customProvider(o);if(null!==e)return void this._setChartDescription(e)}if("en"!==this._locale)return;const n=function(e){const t=function(e){if(!l.enabled("aria_detailed_chart_descriptions")||!e.visibleData)return"";let t;try{t=function(e){let t=e.schema.findIndex((e=>"userTime"===e.type));t<0&&(t=e.schema.findIndex((e=>"time"===e.type)));if(t<0)throw new Error("Exported Data should contain `time`.");const i=Bt(e,(e=>"value"===e.type&&"series"===e.sourceType&&"close"===e.plotTitle),-1);if(i<0)throw new Error("Exported Data should contain `close`.");const s=Bt(e,(e=>"value"===e.type&&"series"===e.sourceType&&"low"===e.plotTitle),i),o=Bt(e,(e=>"value"===e.type&&"series"===e.sourceType&&"high"===e.plotTitle),i),n=Bt(e,(e=>"value"===e.type&&"series"===e.sourceType&&"open"===e.plotTitle),i),r=e.data.map((e=>({time:e[t],open:e[n],high:e[o],low:e[s],close:e[i]}))),a={start:r[0],close:r[r.length-1],low:r[0],high:r[0]};for(const e of r)e.high>a.high.high&&(a.high=e),e.low=0?s:i}Dt._instance=null;var Vt=i(10555),Rt=i(58978),Nt=i(24377),Ot=i(50279),Ft=i(27714),Wt=i(62153);class Ht{constructor(e,t){this._isDestroyed=!1,this._lollipopTooltipRenderer=null,this._activeLollipop=e,this._cardType=t,this._activeLollipop.subscribe((e=>{null===e&&this._destroyTooltip()}))}destroy(){this._destroyTooltip(),this._activeLollipop.release(),this._isDestroyed=!0}tryToHideTooltipByClickOutside(e,t,i){if(!this._isClickInsideTooltip(i)){if(void 0!==i){const s=t(e,i);if(null!==s&&(0,Ot.default)(s,this._activeLollipop.value()))return}this._activeLollipop.setValue(null)}}async showTooltip(e,t,s,o,r){const a=s();if(null===a||0===a.length)return;const{showLollipopTooltip:l}=await Promise.all([i.e(1681),i.e(1171),i.e(6032),i.e(2641),i.e(2227),i.e(3179),i.e(9039)]).then(i.bind(i,92892)),c=await o();this._isDestroyed||((0,n.assert)(null===this._lollipopTooltipRenderer,"Lollipop tooltip renderer should be null before creating a new one"),this._lollipopTooltipRenderer=l({items:a,position:t,customCloseSubscriptions:r.customCloseSubscriptions,onClose:()=>r.onClose(e),onClickOutside:t=>r.onClickOutside(e,t),onSizeChanged:r.onSizeChanged,showScrollFades:!0,cardType:this._cardType,theme:c}))}_isClickInsideTooltip(e){return null!==this._lollipopTooltipRenderer&&void 0!==e&&this._lollipopTooltipRenderer.isClickInside(e)}_destroyTooltip(){this._lollipopTooltipRenderer?.hide(),this._lollipopTooltipRenderer=null}}var zt,Ut=i(2383),jt=i(94602),Gt=i(6453),qt=i(69558),$t=i(58221),Kt=i(33350),Yt=i(4539);!function(e){e[e.SizeDelta=1]="SizeDelta"}(zt||(zt={}));class Zt{constructor(e,t,i){this._data=e,this._hittest=t,this._textWidthCache=i}draw(e,t){const{horizontalPixelRatio:i,verticalPixelRatio:s}=t,o=this._data.centerPoint,n=Math.round(o.x*i),r=Math.round(o.y*s),a=Math.max(1,Math.floor(i))%2/2,l=Math.max(1,Math.floor(s))%2/2,c=new Vt.Point(n+a,r-l);this._drawLollipop(e,c,t),this._drawLabel(e,c,t)}hitTest(e){const t=(0,Yt.interactionTolerance)().esd,i=this._data.centerPoint.y-this._data.style.lollipop.height/2-t,s=this._data.centerPoint.x-this._data.style.lollipop.width/2-t,o=(0,Vt.box)(new Vt.Point(s,i),new Vt.Point(s+this._data.style.lollipop.width+2*t,i+this._data.style.lollipop.height+2*t));return(0,Gt.pointInBox)(e,o)?this._hittest:null}_drawLollipop(e,t,i){const s=this._data.style,{horizontalPixelRatio:o}=i,n=this._fillRadius(o);s.lollipop.fillCircle&&s.lollipop.backgroundColor&&this._drawFilledCircle(e,t,n,s.lollipop.backgroundColor);const r=Math.round(s.lollipop.lineWidth*o),a=n-Math.round(1*o+r/2);this._drawBorderLine(e,t,r,a), +s.lollipop.fillCircle&&s.lollipop.fillStyle&&this._drawFilledCircle(e,t,a,s.lollipop.fillStyle)}_drawLabel(e,t,i){const s=this._data.style.lollipop.text,o=s.label;if(""===o)return;const{horizontalPixelRatio:n,verticalPixelRatio:r}=i;e.textAlign="center",e.textBaseline="middle",e.fillStyle=s.strokeStyle,e.font=s.font;const a=this._textWidthCache.yMidCorrection(e,o);e.translate(t.x,t.y+((s.deltaY||0)+a)*r),(0,Kt.drawScaled)(e,n,r,(()=>{e.fillText(o,0,0)}))}_fillRadius(e){const t=this._data.style,i=Math.max(1,Math.floor(e));let s=Math.round(t.lollipop.width*e);return s%2!=i%2&&(s+=1),s/2}_drawBorderLine(e,t,i,s){const o=this._data.style;e.strokeStyle=o.lollipop.strokeStyle,e.lineWidth=i,(0,$t.setLineStyle)(e,qt.LINESTYLE_SOLID),(0,$t.createCircle)(e,t.x,t.y,s),e.stroke()}_drawFilledCircle(e,t,i,s){e.fillStyle=s,(0,$t.createCircle)(e,t.x,t.y,i),e.fill()}}var Xt,Jt=i(64960),Qt=i(57658),ei=i(43838);!function(e){e[e.SpaceBetweenRows=25]="SpaceBetweenRows",e[e.TooltipTopMargin=15]="TooltipTopMargin",e[e.SpaceBetweenCardAndLollipop=8]="SpaceBetweenCardAndLollipop"}(Xt||(Xt={}));class ti{constructor(e,t){this._invalidated=!1,this._renderer=new jt.CompositeRenderer,this._textWidthCache=new Qt.TextWidthCache,this._stylesCache=null,this._lollipops={},this._lollipopsCounter=0,this._activeLollipopInfo=new yt.WatchedObject(null),this.onPaneBgChange=()=>{this._recreateStyles(this._model)},this._model=e,this._source=t,this._recreateStyles(e),e.backgroundColor().subscribe(this.onPaneBgChange),e.mainSeries().onSymbolIntervalChanged().subscribe(this,this._onSymbolOrIntervalChanged),this._lollipopTooltip=new Ht(this._activeLollipopInfo.spawnOwnership()),this._activeLollipopInfo.subscribe((()=>{this._source.updateAllViewsAndRepaint()}))}destroy(){this._model.backgroundColor().unsubscribe(this.onPaneBgChange),this._model.mainSeries().onSymbolIntervalChanged().unsubscribeAll(this),this._lollipopTooltip.destroy()}processClickInside(e,t,i){const s=this._lollipops[i];return!(!s||!s.visible)&&(this._lollipopMouseClickHandler(e,this._getLollipopRendererData(s),(0,Ft.size)({width:t.clientWidth,height:t.clientHeight}),{preventDefault:()=>{},target:t}),!0)}processClickOutside(e,t){this._lollipopTooltip.tryToHideTooltipByClickOutside(e,this._getActiveLollipopTooltipInfo.bind(this),t)}update(e){this._invalidated=!0}afterUpdate(e,t,i,s){}getStyle(e,t){let i=t;if(e.stack&&(i+="_stack:"+e.stack),"active"===i)return this._activeStyle;if("hovered"===i)return this._hoveredStyle;if("default"===i)return this._defaultStyle;if(this._stylesCache||(this._stylesCache={}),!this._stylesCache[i]){const s=(0,tt.clone)("active"===t?this._activeStyle:"hovered"===t?this._hoveredStyle:this._defaultStyle);e.stack&&(s.lollipop.incHeight=25*e.stack),this._stylesCache[i]=s}return this._stylesCache[i]}hasTooltip(e){return!0}clearActiveLollipop(){this._activeLollipopInfo.setValue(null)}async _specialTooltipStyles(e){}_getY(){let e=0;const t=this._model.panes();for(let i=t.length;i--;){const s=t[i];s.containsMainSeries()&&(e+=s.height())}return e}_showBarLine(e){ +return this.hasTooltip(e)&&(e.hovered||this._isLollipopActive(e))}_getLollipopRendererData(e){const t=this._getLollipopStatus(e),i=this.getStyle(e,t);return{id:e.id,itemIndex:e.itemIndex,centerPoint:new Vt.Point(e.basePoint.x,e.basePoint.y-i.lollipop.bottom-i.lollipop.height/2-(i.lollipop.incHeight||0)),style:i,status:t}}_createRenderers(e){const{mediaSize:t}=e;for(const i of Object.values(this._lollipops))if(void 0!==i&&i.visible){const s=this._getLollipopStatus(i),o=this.getStyle(i,s),n={id:i.id,itemIndex:i.itemIndex,centerPoint:new Vt.Point(i.basePoint.x,i.basePoint.y-o.lollipop.bottom-o.lollipop.height/2-(o.lollipop.incHeight||0)),style:o,status:s},r={cursorType:ei.PaneCursorType.Default,activeItem:{id:i.id,itemIndex:i.itemIndex},hideCrosshairLinesOnHover:!0,clickHandler:(i,s)=>this._lollipopMouseClickHandler(e,n,t,i),tapHandler:(i,s)=>this._lollipopMouseClickHandler(e,n,t,i)};if(this._renderer.append(this._createRendererForLollipop(n,r)),this._showBarLine(i)){const{strokeStyle:e,lineStyle:t,lineWidth:s}=o.barLine,n={color:e,linestyle:t,linewidth:s,x:i.basePoint.x,top:0,bottom:i.basePoint.y-o.lollipop.bottom-o.lollipop.height},r=new Jt.VerticalLineRenderer;r.setData(n),this._renderer.insert(r,0)}}}_recreateStyles(e){this._stylesCache=null}_createRendererForLollipop(e,t){return new Zt(e,new Ut.HitTestResult(Ut.HitTarget.Custom,t),this._textWidthCache)}_onSymbolOrIntervalChanged(){this._lollipops={},this._lollipopsCounter=0,this._renderer.clear(),this._activeLollipopInfo.setValue(null)}async _lollipopMouseClickHandler(e,t,i,s){s.preventDefault();const o={id:t.id,itemIndex:t.itemIndex};if((0,Ot.default)(this._activeLollipopInfo.value(),o))return void this._activeLollipopInfo.setValue(null);this._activeLollipopInfo.setValue(o);const r={target:s.target,targetSize:i,point:new Vt.Point(t.centerPoint.x,t.centerPoint.y-t.style.lollipop.height/2-8),marginTop:15},a=(0,n.ensureDefined)(this._lollipops[t.id]),l=this._model.timeScale();this._lollipopTooltip.showTooltip(e,r,(()=>this._createTooltipContent(a)),(()=>this._specialTooltipStyles(a)),{onClose:this.processClickOutside.bind(this),onClickOutside:(e,t)=>{this._source.onClickOutside?.(e,(0,n.ensureDefined)(t))},customCloseSubscriptions:[l.onScroll(),l.barSpacingChanged(),this._model.mainSeries().onSymbolIntervalChanged()],onSizeChanged:(0,n.ensureNotNull)(this._model.paneForSource(this._source)).onSizeChanged()})}_getLollipopStatus(e){return this._isLollipopActive(e)?"active":e.hovered?"hovered":"default"}_isLollipopActive(e){return null!==this._activeLollipopInfo.value()&&(0,Ot.default)(this._activeLollipopInfo.value(),{id:e.id,itemIndex:e.itemIndex})}_getActiveLollipopTooltipInfo(e,t){const i=(0,Wt.getClickPosition)(t);if(null===i)return null;const s=this.renderer(e)?.hitTest(new Vt.Point(i.x,i.y),e)?.data()?.activeItem??null;return null===s?null:s}}var ii,si=i(49251);class oi extends Zt{_drawLollipop(e,t,i){if(!this._imageLoaded())return void super._drawLollipop(e,t,i);const s=this._data.style,{horizontalPixelRatio:o}=i,n=this._fillRadius(o) +;let r=Math.round(s.lollipop.lineWidth*o),a=n-Math.round(1*o+r/2);if(s.lollipop.fillCircle&&(s.lollipop.backgroundColor&&this._drawFilledCircle(e,t,n,s.lollipop.backgroundColor),s.lollipop.fillStyle&&this._drawFilledCircle(e,t,a,s.lollipop.fillStyle)),this._data.style.lollipop.image?.imageElement){const i=n-Math.round(1*o+2*r),s=2*i;e.save(),e.imageSmoothingEnabled=!0,e.imageSmoothingQuality="high",(0,$t.createCircle)(e,t.x,t.y,i),e.clip(),e.drawImage(this._data.style.lollipop.image.imageElement,t.x-i,t.y-i,s,s),e.restore()}"active"===this._data.status&&(a-=r/2,r*=1.5),this._drawBorderLine(e,t,r,a)}_drawLabel(e,t,i){this._imageLoaded()&&!this._data.style.lollipop.text.showWhenImageLoaded||super._drawLabel(e,t,i)}_imageLoaded(){return Boolean(this._data.style.lollipop.image&&this._data.style.lollipop.image.imageElement&&this._data.style.lollipop.image.imageElement.complete&&this._data.style.lollipop.image.imageElement.naturalWidth)}}function ni(e,t,i){Array.isArray(t)?t.forEach((t=>{ni(e,t,i)})):"fill"===t.mode?(e.fillStyle=i,e.fill(t.path)):"stroke"===t.mode&&(e.strokeStyle=i,e.stroke(t.path))}function ri(e,t){return{background:{bodyPath:{path:new Path2D(e),mode:"fill"}},foreground:{bodyPath:{path:new Path2D(t),mode:"fill"},borderPath:{path:new Path2D(t),mode:"stroke"}}}}!function(e){e.PositiveEarningFillPath="M8.961.92a3 3 0 0 1 3.078 0l7.5 4.48A3 3 0 0 1 21 7.975V20a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V7.975A3 3 0 0 1 1.461 5.4l7.5-4.48z",e.PositiveEarningStrokePath="M9.867 2.742c.39-.23.875-.23 1.266 0l7.5 4.406c.382.225.617.635.617 1.078V20c0 .69-.56 1.25-1.25 1.25H3c-.69 0-1.25-.56-1.25-1.25V8.226c0-.443.235-.853.617-1.078l7.5-4.406z",e.NegativeEarningFillPath="M8.961 23.08a3 3 0 0 0 3.078 0l7.5-4.48A3 3 0 0 0 21 16.025V4a3 3 0 0 0-3-3H3a3 3 0 0 0-3 3v12.025A3 3 0 0 0 1.461 18.6l7.5 4.48z",e.NegativeEarningStrokePath="M9.866 21.257c.391.23.877.23 1.268 0l7.5-4.414a1.25 1.25 0 0 0 .616-1.078V4c0-.69-.56-1.25-1.25-1.25H3c-.69 0-1.25.56-1.25 1.25v11.765c0 .443.234.853.616 1.078l7.5 4.414z",e.DefaultEarningFillPath="M3 0h15c1.662 0 3 1.338 3 3v15c0 1.662-1.338 3-3 3H3c-1.662 0-3-1.338-3-3V3c0-1.662 1.338-3 3-3z",e.DefaultEarningStrokePath="M3 1.75h15c.693 0 1.25.557 1.25 1.25v15c0 .693-.557 1.25-1.25 1.25H3c-.692 0-1.25-.558-1.25-1.25V3c0-.692.558-1.25 1.25-1.25z"}(ii||(ii={})) +;const ai=ri("M8.961.92a3 3 0 0 1 3.078 0l7.5 4.48A3 3 0 0 1 21 7.975V20a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V7.975A3 3 0 0 1 1.461 5.4l7.5-4.48z","M9.867 2.742c.39-.23.875-.23 1.266 0l7.5 4.406c.382.225.617.635.617 1.078V20c0 .69-.56 1.25-1.25 1.25H3c-.69 0-1.25-.56-1.25-1.25V8.226c0-.443.235-.853.617-1.078l7.5-4.406z"),li=ri("M8.961 23.08a3 3 0 0 0 3.078 0l7.5-4.48A3 3 0 0 0 21 16.025V4a3 3 0 0 0-3-3H3a3 3 0 0 0-3 3v12.025A3 3 0 0 0 1.461 18.6l7.5 4.48z","M9.866 21.257c.391.23.877.23 1.268 0l7.5-4.414a1.25 1.25 0 0 0 .616-1.078V4c0-.69-.56-1.25-1.25-1.25H3c-.69 0-1.25.56-1.25 1.25v11.765c0 .443.234.853.616 1.078l7.5 4.414z"),ci=ri("M3 0h15c1.662 0 3 1.338 3 3v15c0 1.662-1.338 3-3 3H3c-1.662 0-3-1.338-3-3V3c0-1.662 1.338-3 3-3z","M3 1.75h15c.693 0 1.25.557 1.25 1.25v15c0 .693-.557 1.25-1.25 1.25H3c-.692 0-1.25-.558-1.25-1.25V3c0-.692.558-1.25 1.25-1.25z");new Path2D("M3 0h15a3 3 0 0 1 3 3v15a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3z"),new Path2D("M.08 13.1c.87 0 1.77.9 2.79.9.74 0 1.28-.3 1.63-.7V7.2c-.35.44-.89.7-1.58.7-.87 0-1.77-.9-2.79-.9-.74 0-1.28.31-1.63.7v6.1c.35-.43.88-.7 1.58-.7Z"),new Path2D("M 17.25 1.7 a 2 2 0 0 1 2 2 v 13.5 a 2 2 0 0 1 -2 2 h -14 a 2 2 0 0 1 -2 -2 v -4.4 L 1.75 13.8 C 1.17 13.44 0.62 13.1 0.08 13.1 C -0.62 13.1 -1.15 13.37 -1.5 13.8 V 7.7 C -1.15 7.31 -0.61 7 0.13 7 C 0.7 7 1.23 7.28 1.75 7.53 L 1.25 7.95 V 3.7 a 2 2 0 0 1 2 -2 z"),new Path2D("M1.75 7.2v-3.5a2 2 0 0 1 2-2h13.5a2 2 0 0 1 2 2v13.5a2 2 0 0 1-2 2h-13.5a2 2 0 0 1-2-2v-3.5"),new Path2D("M2.87 10.3c-1.02 0-1.92-.9-2.79-.9-.7 0-1.23.26-1.58.7V8.7c.35-.39.89-.7 1.63-.7 1.02 0 1.92.91 2.79.91.69 0 1.23-.26 1.58-.71v1.4c-.35.4-.89.7-1.63.7Zm0 2.7c-1.02 0-1.92-.91-2.79-.91-.7 0-1.23.26-1.58.71v-1.35c.35-.4.89-.7 1.63-.7 1.02 0 1.92.9 2.79.9.69 0 1.23-.26 1.58-.7v1.34c-.35.4-.89.71-1.63.71Z"),new Path2D("M2.87 10.3c-1.02 0-1.92-.9-2.79-.9-.7 0-1.23.26-1.58.7V8.7c.35-.39.89-.7 1.63-.7 1.02 0 1.92.91 2.79.91.69 0 1.23-.26 1.58-.71v1.4c-.35.4-.89.7-1.63.7Zm0 2.7c-1.02 0-1.92-.91-2.79-.91-.7 0-1.23.26-1.58.71v-1.35c.35-.4.89-.7 1.63-.7 1.02 0 1.92.9 2.79.9.69 0 1.23-.26 1.58-.7v1.34c-.35.4-.89.71-1.63.71Z");function hi(e,t,i,s,o){const{horizontalPixelRatio:n,verticalPixelRatio:r}=i;e.save(),e.translate(t.x-s.lollipop.width*n/2,t.y-s.lollipop.height*r/2),e.scale(n,r),s.lollipop.fillCircle&&s.lollipop.backgroundColor&&ni(e,o.background.bodyPath,s.lollipop.backgroundColor),s.lollipop.fillCircle&&s.lollipop.fillStyle&&ni(e,o.foreground.bodyPath,s.lollipop.fillStyle),e.lineWidth=Math.round(s.lollipop.lineWidth*n)/n,(0,$t.setLineStyle)(e,qt.LINESTYLE_SOLID),o.foreground.borderPath&&ni(e,o.foreground.borderPath,s.lollipop.strokeStyle),s.lollipop.active&&o.foreground.activePath&&ni(e,o.foreground.activePath,s.lollipop.text.strokeStyle),e.restore()}function di(e,t,i,s){hi(e,t,i,s,ai)}function ui(e,t,i,s){hi(e,t,i,s,li)}function _i(e,t,i,s){hi(e,t,i,s,ci)}class pi extends Zt{_drawLollipop(e,t,i){const s=this._data.style;switch(s.shape){case"earningUp":di(e,t,i,s);break;case"earningDown":ui(e,t,i,s);break;case"earning":_i(e,t,i,s);break;default: +super._drawLollipop(e,t,i)}}}var mi;!function(e){e[e.HoveredColorTransparency=85]="HoveredColorTransparency",e.ActiveTextColor="rgba(255, 255, 255, 0.92)"}(mi||(mi={}));const gi={backgroundDark:(0,Rt.getHexColorByName)("color-cold-gray-900"),backgroundLight:(0,Rt.getHexColorByName)("color-white")};class fi extends ti{constructor(e,t){super(e,t),this.stylesCache={},this.templatesCache={},this._itemIndexToId=new Map,this.source=t}clearCaches(){this._activeLollipopInfo.setValue(null),this._lollipops={},this._lollipopsCounter=0}renderer(e){return this._invalidated&&(this._createLollipops(e),this._invalidated=!1),this._renderer}getStyle(e){const t=this._isLollipopActive(e)?"active":e.hovered?"hovered":"default";return this._generateStyle(t,e)}hasTooltip(e){return Boolean(e.items&&e.items.length)}_createTooltipContent(e){const t=e.items;return t?[{style:{color:e.color},main:{type:"common",title:Array.isArray(t)?t.map((e=>({value:e}))):[{value:t}]}}]:null}_createRendererForLollipop(e,t){return new(e.style.lollipop.image?oi:pi)(e,new Ut.HitTestResult(Ut.HitTarget.Custom,t),this._textWidthCache)}async _lollipopMouseClickHandler(e,t,i,s){(0,ee.emit)("onTimescaleMarkClick",t.id),await super._lollipopMouseClickHandler(e,t,i,s)}_createLollipops(e){this._renderer.clear();const t=this._model.timeScale(),i=super._getY(),s=this._model.lastHittestData(),o=this._model.hoveredSource(),n=this.source.marks(),r=new Map;Object.keys(n).forEach((e=>{const a=n[e],l=a.id,c=a.index;if(null!=c){const e=this._lollipops[l],n=void 0!==e?e.itemIndex:this._lollipopsCounter++;this._itemIndexToId.has(n)||this._itemIndexToId.set(n,l);const h=o===this.source&&null!==s&&void 0!==s.activeItem&&s.activeItem.itemIndex===n,d=(r.get(c)??-1)+1;r.set(c,d),this._lollipops[l]={id:l,itemIndex:n,basePoint:new Vt.Point(t.indexToCoordinate(c)+1,i),hovered:h,label:a.label,color:a.color,items:a.tooltip,visible:!0,stack:d,shape:a.shape,image:this._getImageForUrl(a.imageUrl),showLabelWhenImageLoaded:a.showLabelWhenImageLoaded,textColor:a.labelFontColor}}})),this._createRenderers(e)}_getImageForUrl(e){if(e)return this.source.getImageElement(e)}_generateStyle(e,t){const{color:i,label:s,stack:o,shape:n,image:r,textColor:a}=t;let l=e+i+s+(this._model.dark().value()?"dark":"light");if(void 0!==o&&(l+="_stack"+o),!(l in this.stylesCache)){const c=this._model.dark().value()?gi.backgroundDark:gi.backgroundLight;let h,d=i;if("active"===e)h=i,d="rgba(255, 255, 255, 0.92)";else if("hovered"===e){const e=(0,Nt.tryParseRgba)(i);if(null!==e){const t=e[3]*(1-.85);h=(0,Nt.rgbaToString)((0,Nt.rgba)(e[0],e[1],e[2],t))}}a&&(d=a);let u=23,_=23,p=1,g=0;"earning"===n?(_=21,u=21,p=2):"earningUp"===n?(u=21,g=1,p=2):"earningDown"===n&&(u=21,g=-.5,p=.5);const f={barLine:{lineStyle:qt.LINESTYLE_DASHED,lineWidth:1,strokeStyle:i},lollipop:{width:u,height:_,bottom:p,backgroundColor:c,lineWidth:1.5,fillStyle:h,strokeStyle:i,fillCircle:!0,text:{label:s,deltaY:g,strokeStyle:d,font:(0,si.makeFont)(12,m.CHART_FONT_FAMILY,"bold"),showWhenImageLoaded:t.showLabelWhenImageLoaded},image:r},shape:n} +;void 0!==o&&(f.lollipop.incHeight=25*o),this.stylesCache[l]=f}return this.stylesCache[l]}}var yi=i(78176),vi=i(67777),Si=i(64971),bi=i(72207),wi=i(40472);const Ci=(0,ne.getLogger)("Chart.BarsMarksContainer"),Ti=Math.round(new Date(2037,0,1).getTime()/1e3);var Pi;!function(e){e[e.MaxPlatesPerBar=10]="MaxPlatesPerBar"}(Pi||(Pi={}));class xi extends bi.DataSource{constructor(e,t,i){const s=e.onWidget();let o;o=s?!e.hideIdeas():!!l.enabled("bars_marks")&&d.default.getBool("BarsMarksContainer.visibile",!1),t.merge({visible:o}),t.childs().visible.subscribe(null,(t=>{s||e.isSnapshot()||!l.enabled("bars_marks")||d.default.setValue("BarsMarksContainer.visibile",!!t.value())})),super(i),this._paneViews=[],this._model=e,this._properties=t,this._requests=[],this._marks={},this._loadedRange=null,this._getDataTimeout=null,this._collectedRange=null,this._lastRange=null;const r=this._model.mainSeries();r.onSymbolIntervalChanged().subscribe(this,this.clearMarks),r.dataEvents().symbolResolved().subscribe(this,this.clearMarks),r.dataEvents().completed().subscribe(this,(()=>{const e=r.data();if(0===e.size())return;const t=(0,n.ensureNotNull)(e.first()).index,i=(0,n.ensureNotNull)(e.last()).index,s=this.timeScale();this.getData({start:s.indexToTimePoint(t)??1/0,end:s.indexToTimePoint(i)??-1/0})})),this._initialize(),this._pinnedTooltips={}}destroy(){const e=this._model.mainSeries();e.onSymbolIntervalChanged().unsubscribeAll(this),e.dataEvents().symbolResolved().unsubscribeAll(this),e.dataEvents().completed().unsubscribeAll(this),super.destroy()}model(){return this._model}properties(){return this._properties}marks(){return this._marks}pinTooltip(e,t){this._pinnedTooltips[e]=t}timeScale(){return this._model.timeScale()}getIntervalInTicks(){const e=this._model.mainSeries().properties().childs().interval.value(),t=Re.Interval.parse(e);if(!t.isValid())throw new TypeError("Unexpected interval");return t.isRange()?60:t.inMilliseconds()/1e3}getVisibleTickMarksRange(){if(this.timeScale().isEmpty())return{start:0,end:0};const e=(0,n.ensureNotNull)(this.timeScale().visibleBarsStrictRange()),{firstIndex:t,lastIndex:i}=(0,n.ensureNotNull)(this.timeScale().points().range().value());if(!(e.lastBar()>t&&e.firstBar(){const o=this._marks[s],n=o.tickmark;n>=(t.start??1/0)&&n<=(t.end??-1/0)+i&&e.push(o)})),e}getPublishedPlates(){const e={};return window.is_authenticated?(this.getVisibleRangePlates().forEach((t=>{t.is_public&&(this._pinnedTooltips[t.id]||t.user__id===window.user.id)&&(e[t.id]=t)})),e):e}filterDisplayedPlates(e){const t=e.reduce(((e,t)=>{const i=this._getIndex(t.tickmark);return null!==i&&(e[i]=e[i]||[],e[i].push(t)),e}),{});return Object.keys(t).reduce(((e,i)=>{let s=t[i] +;return s=s.sort(((e,t)=>t.views_count-e.views_count)),s=s.slice(0,10),e.concat(s)}),[])}getPlatesViewData(){const e=this._model.mainSeries();if(e.data().isEmpty())return[];const t=(0,xt.isPriceSourceStyle)(e.style())?e.barFunction():null,i=this.filterDisplayedPlates(this.getVisibleRangePlates()),s={},o=this._model.lastHittestData()??this._model.lastSelectedHittestData();let r=null;null!==o&&this._model.hoveredSource()===this&&(r=o.activeItem??null);const a=[];for(const e of i){const i=(0,n.ensureNotNull)(this._getIndex(e.tickmark)),o=this._getBar(i);if(null===o)continue;const l=this._layout(e.direction),c=this._theme(e.direction),h=r===e.id,d=this.timeScale().indexToCoordinate(i),u=this._offset(l,o,t),_=(0,n.ensureNotNull)(this.priceScale()).isInverted();let p=0;i in s||(s[i]={up:0,down:0}),p=s[i][l]++,a.push({id:e.id,x:d,y:u,yInverted:_,order:p,direction:l,theme:c,hovered:h,pinned:!0===this._pinnedTooltips[e.id],user__id:e.user__id,label:e.label,labelFontColor:e.labelFontColor||"#444",minSize:e.minSize||5,...this._plateViewData(e)})}const l=a.filter((e=>!0===e.hovered));for(let e=0;ee.hovered&&!t.hovered?1:0)),a}priceAxisViews(){return null}updateAllViews(e){for(const t of this._paneViews)t.update(e)}updateAllViewsAndRepaint(){this.updateAllViews((0,wi.sourceChangeEvent)(this.id())),this._model.updateSource(this)}roundRange(e){return{start:Math.round(e.start),end:Math.round(e.end)}}refreshData(){null!==this._lastRange&&this.getData(this._lastRange)}getData(e){(0,tt.isNumber)(e.start)&&(0,tt.isNumber)(e.end)?(this._lastRange=e,e.end=Ti,this._pushGetDataStack(Object.assign({},e))):Ci.logError("Wrong range")}clearMarks(){this._abortAllRequests(),this._marks={},this._loadedRange=null}isUserDeletable(){return!1}isSavedInChart(e){return!1}isSpeciallyZOrderedSource(){return!0}showInObjectTree(){return!1}_plateViewData(e){return{}}_layout(e){switch(e){default:case 0:case 2:case 3:case 4:case 5:case 6:return"up";case 1:return"down"}}_theme(e){switch(e){default:case 0:return"neutral";case 1:case 5:return"green";case 2:case 6:return"red";case 3:return"yellow";case 4:return"blue"}}_offset(e,t,i){let s;switch(e){default:case"up":s=null===i?t[2]:i(t);break;case"down":s=null===i?t[3]:i(t)}return(0,n.ensureNotNull)(this.priceScale()).priceToCoordinate(s,(0,n.ensureNotNull)((0,n.ensureNotNull)(this.ownerSource()).firstValue()))}_getIndex(e){return this.timeScale().timePointToIndex(e)}_getBar(e){return this._model.mainSeries().data().valueAt(e)}_rangeDifference(e){return e=Object.assign({start:1/0,end:-1/0},e),this._loadedRange&&(e.startthis._loadedRange.end&&(e.start=this._loadedRange.end)),e}_rangeUnion(e,t){return e=Object.assign({start:1/0,end:-1/0},e),t&&(e.start=Math.min(t.start,e.start),e.end=Math.max(t.end,e.end)),e}_pushGetDataStack(e){(0,tt.isNumber)(e.start)&&(0,tt.isNumber)(e.end)?(this._getDataTimeout&&clearTimeout(this._getDataTimeout), +this._collectedRange=this._rangeUnion(e,this._collectedRange),this._getDataTimeout=setTimeout((()=>{this._getData(this._collectedRange),this._getDataTimeout=this._collectedRange=null}),300)):Ci.logError("Wrong tickmark range")}_abortAllRequests(){this._requests.forEach((e=>{e.cancel()})),this._requests=[],this._getDataTimeout&&clearTimeout(this._getDataTimeout),this._getDataTimeout=this._collectedRange=null}}const Mi=(0,ne.getLogger)("Chart.UserDefinedImageMarks");class Ii extends xi{constructor(){super(...arguments),this._imageItems=new Map,this._destroyed=!1}destroy(){this._destroyed=!0,super.destroy()}getImageElement(e){return this._imageItems.has(e)||this.addImageToStore(e),this._imageItems.get(e)}addImageToStore(e){this._imageItems.has(e)||this._loadNewImage(e)}_loadNewImage(e){const t={imageElement:null};(0,Si.getImage)(e,e).then((e=>{this._destroyed||(t.imageElement=e,this.updateAllViewsAndRepaint(),this._model.updateSource(this))})).catch((()=>{Mi.logWarn(`An error ocurred while loading image ${e}`)})),this._imageItems.set(e,t)}}var Ai=i(12178);class Li extends Ii{constructor(e){super(e,new yi.DefaultProperty({defaultName:"UserDefinedTimescaleMarks",state:{visible:!0}})),this._requestedPointsets=new Set,(0,mt.hideMarksOnBars)().subscribe(this,(()=>this._properties.childs().visible.setValue(!(0,mt.hideMarksOnBars)().value()))),this._paneView=new fi(e,this),this._paneViews=[this._paneView]}destroy(){(0,mt.hideMarksOnBars)().unsubscribeAll(this),this._paneView.destroy(),super.destroy()}zorder(){return vi.sortSourcesPreOrdered.TimeScaleMarks}name(){return"UserDefinedTimescaleMarks"}userEditEnabled(){return!1}clearMarks(e=0){if(1===e)return;const t=this._model.chartApi();t.isConnected().value()&&Object.keys(this._marks).forEach((e=>{const i=this._getPointsetId(e);t.removePointset(i)})),this._requestedPointsets.clear(),super.clearMarks(),this._paneView.clearCaches(),this.updateAllViewsAndRepaint()}hasContextMenu(){return!1}paneViews(){return this._properties.childs().visible.value()?this._paneViews:[]}updateAllViews(e){this._paneView.update(e)}onClickOutside(e,t){this._paneView.processClickOutside(e,t)}isVisible(){return this.properties().childs().visible.value()}lollipopsAtIndex(e){throw new Error("Method not implemented.")}contextMenuStatName(){return"UserDefinedTimescaleMarksContextMenu"}_initialize(){this._properties.childs().visible.setValue(!(0,mt.hideMarksOnBars)().value())}_plateViewData(e){return{text:e.text}}_getData(e){const t=this._model.mainSeries().symbolInfo();if(!t)return;const i=this.roundRange(this._rangeDifference(e)),s=this._model.mainSeries(),o=s.seriesSource().symbolInstanceId(),r=(0,Ai.getServerInterval)(s.properties().childs().interval.value());window.ChartApiInstance.getTimescaleMarks(t,i.start,i.end,(t=>{const i=this._model.chartApi();for(const e of t){e.index=null;const t=e.id,s=this._getPointsetId(t.toString()),a=this._marks[t];if(a&&null!==a.index&&(a.tickmark===e.tickmark?e.index=a.index:this._requestedPointsets.has(s)&&i.isConnected().value()&&(i.removePointset(s), +this._requestedPointsets.delete(s))),e.imageUrl&&this.addImageToStore(e.imageUrl),this._marks[t]=e,null===e.index&&i.isConnected().value()){this._requestedPointsets.add(s);const t=[[e.tickmark,0]];i.createPointset(s,"turnaround",(0,n.ensureNotNull)(o),r,t,(e=>this._onPointsetData(e)))}}this._loadedRange=this._rangeUnion(e,this._loadedRange),this.updateAllViewsAndRepaint()}),r)}_getPointsetId(e){return"pointsetMark_"+e}_onPointsetData(e){if("data_update"===e.method){const t=e.params.customId.split(/_(.+)/)[1]??"",i=this._marks[t],s=e.params.plots;i&&1===s.length&&(i.index=s[0].value[0])}this.updateAllViewsAndRepaint()}}var ki,Ei,Di=i(71382);function Bi(e,t){const{horizontalPixelRatio:i,verticalPixelRatio:s}=t,o=Math.max(1,Math.floor(i)),n=Math.round(e.x*i)+o%2/2;let r=Math.round(e.size*i);(n+r/2)%1!=0&&(r+=1);const a=Math.min(Math.max(1,Math.round(i*e.borderWidth)),r/2);let l;const c=("up"===e.direction?-1:1)*(e.yInverted?-1:1),h=c*(Math.round(e.size*s/2)+o%2);if(void 0!==e.fixedSpaceYPosition){const t=Math.round(e.fixedSpaceYPosition.itemSpacing*s),i=e.fixedSpaceYPosition.order,o=c*(r*i+t*(i+1));l=Math.round(e.fixedSpaceYPosition.basePosition*s)+o+h}else l=Math.round(e.y*s)+h;return{x:n,y:l,size:r,borderWidth:a,tickSize:o}}function Vi(e,t,i,s){if(e.save(),i&&!s.highlightByAuthor&&(e.globalAlpha=.4),s.mine)!function(e,t,i){const{borderColor:s,backgroundColor:o,doNotFill:n,direction:r,yInverted:a}=i,{x:l,y:c,borderWidth:h,size:d,tickSize:u}=Bi(i,t);e.strokeStyle=s,e.fillStyle=o,e.lineWidth=h;const _="up"===r!==a?-1:1;let p=Math.round(d/2/Math.tan(Math.PI/6))+u%2/2;(l+p/2)%1!=0&&(p-=1);e.translate(l,c+p/2*_),e.beginPath();const m=h/2;e.moveTo(0,-_*(p-m)),e.lineTo(d/2-m,h/2),e.lineTo(-d/2+m,h/2),e.lineTo(0,-_*(p-h/2)),e.closePath(),n||e.fill();e.stroke()}(e,t,s);else{let i=!1;{const e=s.image&&(o=s.image,Boolean(o&&o.imageElement&&o.imageElement.complete&&o.imageElement.naturalWidth));i=Boolean(e&&!s.showLabelWhenImageLoaded)}!function(e,t,i,s,o){const{borderColor:n,backgroundColor:r,label:a}=i,{x:l,y:c,borderWidth:h,size:d}=Bi(i,t);e.strokeStyle=n,e.fillStyle=r,e.lineWidth=h,e.beginPath();const u=d/2-h/2;e.arc(l,c,u,0,2*Math.PI,!0),e.closePath(),e.fill(),o&&function(e,t,i,s,o){if(t){const n=2*i;e.save(),e.imageSmoothingEnabled=!0,e.imageSmoothingQuality="high",(0,$t.createCircle)(e,s,o,i),e.clip(),e.drawImage(t,s-i,o-i,n,n),e.restore()}}(e,o,u,l,c);e.stroke(),!s&&a&&d/2>=7&&(e.textAlign="center",e.textBaseline="middle",e.font=a.font,e.fillStyle=a.fontColor,(0,Kt.drawScaled)(e,t.horizontalPixelRatio,t.verticalPixelRatio,(()=>{e.fillText(a.text,l/t.horizontalPixelRatio,c/t.verticalPixelRatio)})))}(e,t,s,i,s.image?.imageElement??void 0)}var o;e.restore()}!function(e){e[e.MinRadiusToDrawText=7]="MinRadiusToDrawText"}(ki||(ki={}));class Ri{constructor(e,t,i,s){this._canvas=null,this._clickHandler=e,this._enterHandler=t,this._leaveHandler=i,this._data=s??null}setData(e){this._data=e}hitTest(e,t){if(null===this._data)return null;for(let i=this._data.items.length-1;i>=0;--i){const s=this._hitTestDot(this._data.items[i],e,t) +;if(s)return s}return null}draw(e,t){this._canvas=e.canvas,null!==this._data&&this._data.items.forEach(Vi.bind(null,e,t,this._data.highlightByAuthor))}_hitTestDot(e,t,i){const s=new Vt.Point(e.x,Bi(e,i).y/i.verticalPixelRatio);if((0,Gt.pointInCircle)(t,s,Math.max(e.size/2,8))){const t=this._canvas,i=null===t?void 0:{mouseEnterHandler:()=>this._enterHandler(e,s.y,t),mouseLeaveHandler:()=>this._leaveHandler(),clickHandler:i=>this._clickHandler(e,s.y,t,i),tapHandler:i=>this._clickHandler(e,s.y,t,i)};return new Ut.HitTestResult(Ut.HitTarget.Regular,{activeItem:e.originalItem.id,cursorType:ei.PaneCursorType.Default,...i})}return null}}!function(e){e[e.BarSpacingToSizeRatio=.8]="BarSpacingToSizeRatio",e[e.MinSize=7]="MinSize",e[e.MaxSize=553]="MaxSize"}(Ei||(Ei={}));const Ni={green:{border:(0,Rt.getHexColorByName)("color-minty-green-700"),background:(0,Rt.getHexColorByName)("color-minty-green-a600")},red:{border:(0,Rt.getHexColorByName)("color-ripe-red-700"),background:(0,Rt.getHexColorByName)("color-ripe-red-500")},neutral:{border:(0,Rt.getHexColorByName)("color-tan-orange-700"),background:(0,Rt.getHexColorByName)("color-tan-orange-500")},yellow:{border:"#EAC300",background:"#FFD400"},blue:{border:"#047ACE",background:"#0496FF"}};class Oi{constructor(e,t){this._tooltip=null,this._hoveredBarsMarkData=null,this._destroyed=!1,this._invalidated=!0,this._originalData=[],this._source=e,this._model=t,this._renderer=new Ri(this._onItemClicked.bind(this),this._showItem.bind(this),this._hideItem.bind(this)),this._createTooltipRenderer().then((e=>{this._destroyed?e?.destroy():this._tooltip=e})),e.properties().childs().visible.subscribe(null,(()=>{this._tooltip?.hide(!0)}))}destroy(){this._destroyed=!0,this._tooltip?.destroy()}source(){return this._source}update(){this._invalidated=!0}renderer(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._renderer}onClickOutside(e,t){t&&((0,Wt.isTouchMouseEvent)(t)?t.isTouch:(0,Di.isTouchEvent)(t))&&null!==this._tooltip&&!this._tooltip.contains(t.target)&&this._tooltip.hide(!0)}_extractBarMarksRendererItemData(e,t){const i=t.overridedTheme??Ni[t.theme],s=this._calculateSize(e,t),o=this._calculateY(e,s,t);return null===this._hoveredBarsMarkData||this._hoveredBarsMarkData.id!==t.id||this._hoveredBarsMarkData.x===t.x&&this._hoveredBarsMarkData.y===Math.round(o)||(this._tooltip?.hide(!0),this._hoveredBarsMarkData=null),{x:t.x,y:this._calculateY(e,s,t),direction:t.direction,borderColor:i.border,borderWidth:Fi(t),backgroundColor:i.background,size:s,doNotFill:!t.public,yInverted:t.yInverted,label:void 0===t.label?void 0:{text:t.label,fontColor:t.labelFontColor,font:(0,si.makeFont)(Math.ceil(Math.max(10,Math.min(s/2,20))),m.CHART_FONT_FAMILY,"bold")},originalItem:t}}_onItemClicked(e,t,i,s){s.isTouch&&this._showItem(e,t,i)}async _showItem(e,t,i){const s=await this._tooltipProps(e);if(null===s)return;const o=this._model.timeScale().barSpacing(),r=this._calculateSize(o,e.originalItem);this._hoveredBarsMarkData={x:e.x,y:Math.round(this._calculateY(o,r,e.originalItem)), +id:e.originalItem.id},this._tooltip?.show({itemSize:r,container:(0,n.ensureNotNull)(i.parentElement),x:e.x,y:t,factoryProps:s,onClickOutside:()=>this._tooltip?.hide(!0)})}_hideItem(){this._tooltip?.hide()}_calculateSize(e,t){return Math.min(553,Math.max(7,t.minSize,.8*e))}_updateImpl(){this._originalData=this._source.getPlatesViewData();const e=this._model.timeScale().barSpacing(),t=this._originalData.map(this._extractBarMarksRendererItemData.bind(this,e));this._renderer.setData({items:t,barSpacing:e,highlightByAuthor:!1})}}function Fi(e){return e.hovered||e.highlightByAuthor?e.overrideBorderWidth?.hoveredWidth??4:e.overrideBorderWidth?.width??2}class Wi extends Oi{async _createTooltipRenderer(){const[{TooltipRenderer:e},{UserDefinedBarsMarksTooltip:t}]=await Promise.all([Promise.all([i.e(6094),i.e(2227),i.e(8020)]).then(i.bind(i,72233)),Promise.all([i.e(6094),i.e(2227),i.e(8020)]).then(i.bind(i,60430))]);return new e(t)}_calculateY(e,t,i){const s=Math.max(1.4*i.minSize,e+4),o=("up"===i.direction?-1:1)*(i.yInverted?-1:1)*(s*(i.order+.6)+.25*s);return i.y+o}_onItemClicked(e,t,i,s){super._onItemClicked(e,t,i,s),e.originalItem.onClicked?.()}_tooltipProps(e){const t=e.originalItem.text;return t?Promise.resolve({text:t}):Promise.resolve(null)}_extractBarMarksRendererItemData(e,t){return{...super._extractBarMarksRendererItemData(e,t),showLabelWhenImageLoaded:t.showLabelWhenImageLoaded,image:t.image}}}class Hi extends Ii{constructor(e){super(e,new yi.DefaultProperty({defaultName:"UserDefinedBarsMarks",state:{visible:!0}})),this._paneView=new Wi(this,e),this._paneViews=[this._paneView],(0,mt.hideMarksOnBars)().subscribe(this,(()=>{this.properties().childs().visible.setValue(!(0,mt.hideMarksOnBars)().value())}))}destroy(){(0,mt.hideMarksOnBars)().unsubscribeAll(this),this._paneView.destroy(),super.destroy()}zorder(){return vi.sortSourcesPreOrdered.BarMarks}name(){return"UserDefinedBarsMarks"}userEditEnabled(){return!1}clearMarks(e=0){2!==e&&(super.clearMarks(),this.updateAllViewsAndRepaint())}hasContextMenu(){return!1}paneViews(){return this._properties.childs().visible.value()?this._paneViews:[]}isVisible(){return this.properties().childs().visible.value()}onClickOutside(e,t){this._paneView.onClickOutside(e,t)}contextMenuStatName(){return"UserDefinedBarsMarksContextMenu"}_initialize(){this.properties().childs().visible.setValue(!(0,mt.hideMarksOnBars)().value())}_plateViewData(e){const t={text:e.text,onClicked:e.onClicked};"object"==typeof e.color&&(t.theme="user_defined_theme",t.overridedTheme={},t.overridedTheme.border=e.color.border,t.overridedTheme.background=e.color.background);const i=(0,tt.isNumber)(e.borderWidth)?e.borderWidth:void 0,s=(0,tt.isNumber)(e.hoveredBorderWidth)?e.hoveredBorderWidth:void 0;if(void 0===i&&void 0===s||(t.overrideBorderWidth={width:i,hoveredWidth:s}),e.showLabelWhenImageLoaded&&(t.showLabelWhenImageLoaded=!0),e.imageUrl){const i=this.getImageElement(e.imageUrl);t.image=i}return t}_getData(e){const t=this._model.mainSeries().symbolInfo();if(!t)return +;const i=this.roundRange(this._rangeDifference(e)),s=(0,Ai.getServerInterval)(this._model.mainSeries().properties().childs().interval.value());window.ChartApiInstance.getMarks(t,i.start,i.end,(t=>{for(const e of t)this._marks[e.id]=e,e.imageUrl&&this.addImageToStore(e.imageUrl);this._loadedRange=this._rangeUnion(e,this._loadedRange),this.updateAllViewsAndRepaint()}),s)}}var zi=i(55396);class Ui extends st.UndoCommand{constructor(e,t){super(null),this._chartModel=e,this._targetIndex=t}redo(){const e=this._chartModel.createPane(this._targetIndex,void 0,this._paneId);this._paneId=e.id()}undo(){const e=(0,n.ensureDefined)(this._paneId),t=this._chartModel.panes().find((t=>t.id()===e));void 0!==t&&this._chartModel.removePane(t)}createdPaneId(){return this._paneId}}var ji=i(91682),Gi=i(56616);const qi=(0,ne.getLogger)("Clipboard");var $i;!function(e){e.MagicAttrName="data-tradingview-clip"}($i||($i={}));class Ki{constructor(e){this._e=e}write(e){return(0,Gi.writeImpl)(this._toRaw(e),this._e)}_toRaw(e){const t={files:[]};t.text=e.text,void 0!==e.app?t.html=this._serializeAppData(e.app,e.text):e.html&&(t.html=e.html);for(const i of e.files||[])t.files.push(i);return t}_serializeAppData(e,t){return`${t?(0,ji.htmlEscape)(t.slice(0,256)):"📈"}`}}class Yi{constructor(e){this._e=e}async read(){this._e&&0===this._e.eventPhase&&(qi.logWarn("Cannot use an already dispatched ClipboardEvent for reading"),this._e=null);const e=this._e?this._readUsingEvent(this._e):await this._readUsingApi();return this._fromRaw(e)}_readUsingEvent(e){const t=(0,n.ensure)(e.clipboardData);e.preventDefault();const i={files:[]};for(let e=0;e0&&(t.files=e.files),t}_parseAppData(e){if(-1===e.slice(0,1024).indexOf("data-tradingview-clip"))return;const t=(new DOMParser).parseFromString(e,"text/html").querySelector("[data-tradingview-clip]");return t?t.getAttribute("data-tradingview-clip")||"":void 0}_readBlobAsText(e){return new Promise(((t,i)=>{const s=new FileReader;s.onloadend=()=>{t(s.result)},s.onerror=()=>{i(s.error)},s.readAsText(e)}))}}class Zi{constructor(e){this._callbacks=Object.assign({},e), +this._boundOnCopy=this._onCopyEv.bind(this),this._boundOnCut=this._onCutEv.bind(this),this._boundOnPaste=this._onPasteEv.bind(this)}listen(){document.addEventListener("copy",this._boundOnCopy),document.addEventListener("cut",this._boundOnCut),document.addEventListener("paste",this._boundOnPaste)}async peek(){if("granted"!==(await navigator.permissions.query({name:"clipboard-read"})).state)throw new Error("clipboard-read is not granted");return new Yi(null).read()}uiRequestCopy(e){this._callbacks.copyRequested&&this._callbacks.copyRequested(new Ki(null),e)}uiRequestCut(e){this._callbacks.cutRequested&&this._callbacks.cutRequested(new Ki(null),e)}uiRequestPaste(e){this._callbacks.pasteRequested&&this._callbacks.pasteRequested(new Yi(null),e)}destroy(){document.removeEventListener("copy",this._boundOnCopy),document.removeEventListener("cut",this._boundOnCut),document.removeEventListener("paste",this._boundOnPaste)}_onCopyEv(e){e.defaultPrevented||this._callbacks.copyRequested&&this._callbacks.copyRequested(new Ki(e))}_onCutEv(e){e.defaultPrevented||this._callbacks.cutRequested&&this._callbacks.cutRequested(new Ki(e))}_onPasteEv(e){e.defaultPrevented||this._callbacks.pasteRequested&&this._callbacks.pasteRequested(new Yi(e))}}var Xi=i(35749);function Ji(e){const t=e.target;return null!==t&&1===t.nodeType&&(0,Xi.isTextEditingField)(t)}function Qi(e){const t=e.target;if(null===t)return!1;const i=(t.ownerDocument||t).getSelection();return null!==i&&!i.isCollapsed}class es extends Zi{_onCopyEv(e){if(!Ji(e)&&!Qi(e))return super._onCopyEv(e)}_onCutEv(e){if(!Ji(e)&&!Qi(e))return super._onCutEv(e)}_onPasteEv(e){if(!Ji(e))return super._onPasteEv(e)}}const ts=new dt.TranslatedString("apply toolbars theme",a.t(null,void 0,i(86708)));class is extends st.UndoCommand{constructor(e,t,i=!0){super(ts),this._prevThemeName=e,this._themeName=t,this._syncState=i}undo(){(0,L.isStdThemeName)(this._prevThemeName)&&((0,k.setTheme)(this._prevThemeName),this._syncState&&(0,L.syncTheme)())}redo(){(0,L.isStdThemeName)(this._themeName.toLowerCase())&&((0,k.setTheme)(this._themeName.toLowerCase()),this._syncState&&(0,L.syncTheme)())}}var ss=i(11751),os=i(72972),ns=i(19844);i(26352);const rs=new dt.TranslatedString("apply indicators to entire layout",a.t(null,void 0,i(70507))),as=new dt.TranslatedString("apply chart theme",a.t(null,void 0,i(68231)));a.t(null,void 0,i(28298)),a.t(null,void 0,i(78972)),a.t(null,void 0,i(10615)),a.t(null,void 0,i(81518)),a.t(null,void 0,i(92101)),a.t(null,void 0,i(94656));function ls(e,t){for(const i of e.sources){if("study"!==i.type)return!0;if(t.checkIfFeatureAvailable(new ns.StudyMetaInfo(i.source.metaInfo),[]))return!0}return!1}function cs(e){return function(e){return Mt().then((t=>t.downloadClientScreenshot(e)))}(e)}function hs(e){return function(e){return Mt().then((t=>t.copyToClipboardClientScreenshot(e)))}(e).then((()=>{(0,ee.emit)("onClientScreenshotCopiedToClipboard")}))}const ds={s:0,"2h":0,"2v":1,"3h":0,"3v":2,"3s":0,"3r":1,"2-1":1,"1-2":1,4:1,"4v":3,"4h":0,"4s":0,"4s-l":0,"1-3":1,"3-1":3,"2-2-l":0,"2-2-r":1, +"2-2":3,"1-4":1,"5h":0,"5v":0,"5s":0,"5s-l":0,"2-3":2,"3-2":3,"4-1":4,"2-3-l":0,"2-3-r":2,6:1,"6h":0,"6v":0,"6c":4,"2-4":2,"4-2":4,"4-3":4,"7h":0,"7s":0,8:1,"8c":6,"8h":0,"8v":0,"9s":6,"5-4":5,"9h":0,"9v":0,"10c5":1,"10h":0,"10v":0,"12c6":1,"12c4":3,"12h":0,"14c7":1,"16c8":1,"16c4":3};async function us(e,t=this.activeChartWidget.value()){return!!t&&(this.setChartStyle(t,e),!0)}var _s=i(62548),ps=i(15943),ms=i(24317),gs=i(29970),fs=i(31237);function ys(e,t){const i=Object.create(Object.getPrototypeOf(e));for(const s of t)Object.prototype.hasOwnProperty.call(e,s)&&(i[s]=e[s]);return i}var vs=i(96937),Ss=i(90995);let bs;class ws extends X.DialogRenderer{constructor(){super(),this._dialog=null,this._subscribe=e=>{this._setVisibility(e)}}show(){this._load().then((e=>e.show()))}hide(){this._dialog?.hide()}static getInstance(){return bs||(bs=new ws),bs}_load(){return Promise.all([i.e(4856),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(8933),i.e(6032),i.e(3672),i.e(3359),i.e(8894),i.e(5743),i.e(7827),i.e(9836),i.e(1450),i.e(4719),i.e(2227),i.e(4931),i.e(7437),i.e(9418),i.e(3179),i.e(6193),i.e(5386),i.e(4862)]).then(i.bind(i,73536)).then((e=>(this._dialog?.hide(),this._dialog?.visible().unsubscribe(this._subscribe),this._dialog=new e.ObjectTreeDialogRenderer,this._dialog.visible().subscribe(this._subscribe),this._dialog)))}}var Cs,Ts=i(69422),Ps=i(43337);async function xs(e,t,s,o,n,r="default"){let l,c=[];const h=e.model().model(),d=(0,tt.clone)(t),u=new Ps.Property({inputs:d}),_=function(e,t){return"symbol"===t?e.inputs.filter((t=>t.id===e.symbolInputId())):e.inputs.filter((e=>e.confirm))}(s,r),p=()=>{l&&h.removeCustomSource(l)},m=()=>{p(),n()},g=e=>{o({inputs:e,parentSources:c}),p()},f=_.filter(Ts.isTimeOrPriceNotHiddenInput);if(f.length>0)try{const t=await Promise.all([i.e(5234),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(1171),i.e(8933),i.e(3672),i.e(2537),i.e(3359),i.e(8894),i.e(5743),i.e(3425),i.e(1697),i.e(4587),i.e(7833),i.e(8752),i.e(9487),i.e(445),i.e(846),i.e(8220),i.e(3329),i.e(9970),i.e(6052),i.e(9590),i.e(4678),i.e(9965),i.e(9742),i.e(4248),i.e(2227),i.e(4931),i.e(9418),i.e(4426),i.e(9026),i.e(9928),i.e(8604),i.e(5893),i.e(3030)]).then(i.bind(i,73339)),o=await t.selectInputValuesOnChart(e,f,u,s.shortDescription,s.inputs);if(l=o.customSourceId,o.destPane&&ns.StudyMetaInfo.getSourceInputIds(s).length>0){const e=o.destPane.mainDataSource();c=e===h.mainSeries()?[]:[e]}else c=[]}catch(e){return void m()}f.length!==_.length?Promise.all([i.e(5234),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(1171),i.e(8933),i.e(3672),i.e(2537),i.e(3359),i.e(8894),i.e(5743),i.e(3425),i.e(1697),i.e(4587),i.e(7833),i.e(8752),i.e(9487),i.e(445),i.e(846),i.e(8220),i.e(3329),i.e(9970),i.e(6052),i.e(9590),i.e(4678),i.e(9965),i.e(9742),i.e(4248),i.e(2227),i.e(4931),i.e(9418),i.e(4426),i.e(9026),i.e(9928),i.e(8604),i.e(5893),i.e(3030)]).then(i.bind(i,29638)).then((t=>{const o=new t.ConfirmInputsDialogRenderer(function(e){ +if("symbol"===e)return a.t(null,void 0,i(46501));return a.t(null,void 0,i(48141))}(r),_,u,r,s,e.model(),g,m);return o.show(),o})):g(u.state().inputs||{})}!function(e){e.Default="default",e.Symbol="symbol"}(Cs||(Cs={}));let Ms=null;var Is=i(25338),As=(i(40987),i(50470)),Ls=i(58096);class ks{constructor(e){this._shown=!1,this._el=(0,As.parseHtmlElement)(function(e=""){return`
`}()),this.setSize(Ls.spinnerSizeMap[e||Ls.DEFAULT_SIZE])}spin(e){return this._el.classList.add("tv-spinner--shown"),void 0===this._container&&(this._container=e,void 0!==e&&e.appendChild(this._el)),this._shown=!0,this}stop(e){return e&&void 0!==this._container&&this._container.removeChild(this._el),this._el&&this._el.classList.remove("tv-spinner--shown"),this._shown=!1,this}setStyle(e){return Object.keys(e).forEach((t=>{const i=e[t];void 0!==i&&this._el.style.setProperty(t,i)})),this}style(){return this._el.style}setSize(e){const t=void 0!==e?`tv-spinner--size_${e}`:"";return this._el.className=`tv-spinner ${t} ${this._shown?"tv-spinner--shown":""}`,this}getEl(){return this._el}destroy(){this.stop(),delete this._el,delete this._container}}function Es(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ds(e){return e.reduce(((e,t)=>{for(const i in t)if(Es(t,i)){const s=t[i],o=e[i];o?o.push(s):e[i]=[s]}return e}),{})}var Bs,Vs=i(75579);!function(e){e[e.AccelerationPerMSecPixels=.003]="AccelerationPerMSecPixels",e[e.MaxSpeedPerMSecPixels=1.1]="MaxSpeedPerMSecPixels"}(Bs||(Bs={}));class Rs{constructor(e){this._chartModel=null,this._animation=null,this._chart=e,this._chart.withModel(this,(()=>{this._chartModel=this._chart.model()}))}destroy(){this._animation?.stop()}move(e){if(null!==this._chartModel){if(this._chartModel.timeScale().isEmpty())return;const t=.003,i=1.1,s=Math.round(i/t);this._moveImpl(((o,n,r)=>{const a=Math.min(n,s),l=e*t*Math.pow(a,2)/2;if(n<=s)return o+l;const c=Number.isFinite(r)?Math.max(0,s-r):0;return o+l+e*(n-a-c)*i+e*(i*c-t*Math.pow(c,2)/2)}),(e=>Math.max(0,s-e)+s))}}moveByBar(e){if(null!==this._chartModel){const t=this._chartModel.timeScale(),i=t.visibleBarsStrictRange();if(t.isEmpty()||null===i)return;const s=300,o=i.lastBar();this._moveImpl(((i,n)=>{const r=Math.floor(Math.max(0,n-s)/100)+1,a=o+e*r,l=t.indexToCoordinate(o);return i+(t.indexToCoordinate(a)-l)}),(()=>0),!0)}}stopMove(){this._animation?.stop(),this._animation=null}scrollToRealtime(e,t){if(null===this._chartModel)return;this._chartModel.timeScale().scrollToRealtime(e,t);const i=this._chart.chartWidgetCollection();!i.lock.dateRange.value()&&i.lock.trackTime.value()&&i.chartModels().value().forEach((t=>{t!==this._chartModel&&t.timeScale().scrollToRealtime(e)}))}scrollToFirstBar(){this._chartModel?.timeScale().scrollToFirstBar()}_moveImpl(e,t,i){if(null===this._chartModel)return;const s=this._chartModel.timeScale();if(s.isEmpty())return;if(i&&null!==s.visibleBarsStrictRange()){const e=s.indexToCoordinate(s.visibleBarsStrictRange().lastBar())+s.barSpacing()/2 +;Math.abs(s.width()-e)>s.barSpacing()/6&&s.setRightOffset(Math.round(s.rightOffset()))}const o=performance.now();let n=1/0;this._animation={getStartPosition:()=>0,getPosition:t=>(t=Math.min(n,t),e(0,t-o,n-t)),finished:e=>e>=n,stop:()=>{const e=performance.now()-o;n=performance.now()+t(e)}},this._chartModel.model().stopTimeScaleAnimation(),this._chartModel.model().setTimeScaleAnimation(this._animation)}}var Ns=i(70002);let Os=null;function Fs(e,t,s,o,n){return Promise.all([i.e(3240),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(1171),i.e(8933),i.e(6032),i.e(3672),i.e(2537),i.e(3359),i.e(8894),i.e(5743),i.e(3425),i.e(1697),i.e(4587),i.e(7833),i.e(8752),i.e(1979),i.e(4495),i.e(9487),i.e(445),i.e(846),i.e(9323),i.e(8220),i.e(3329),i.e(9970),i.e(6052),i.e(844),i.e(9590),i.e(4678),i.e(159),i.e(9965),i.e(9742),i.e(6043),i.e(4059),i.e(1488),i.e(6697),i.e(903),i.e(5445),i.e(2227),i.e(4931),i.e(9418),i.e(4426),i.e(9026),i.e(769),i.e(9928),i.e(8604),i.e(5893),i.e(624),i.e(6265)]).then(i.bind(i,12981)).then((i=>{Os?.hide();const r=i.EditObjectDialogRenderer;return Os=new r(e,t,o,n),Os.show(s),Os}))}var Ws=i(2088);let Hs=null;var zs=i(26610),Us=i(35107);const js={[Ns.TabNames.symbol]:"symbol",[Ns.TabNames.legend]:"legend",[Ns.TabNames.scales]:"scales",[Ns.TabNames.trading]:"trading",[Ns.TabNames.events]:"events",[Ns.TabNames.alerts]:"alerts",[Ns.TabNames.timezoneSessions]:"canvas",[Ns.TabNames.text]:"text",[Ns.TabNames.style]:"style",[Ns.TabNames.visibility]:"visibility"},Gs={[Ns.TabNames.style]:"style",[Ns.TabNames.visibility]:"visibilities"};async function qs(e,t,s={},o,n){const r=o.activeChartWidget.value(),{initialTab:a,tabName:l}=s;if(l&&!a&&(s.initialTab=Gs[l]),(0,Us.isStudyLineTool)(e)&&function(e){if(!(0,Us.isStudyLineTool)(e))return!1;return["LineToolFixedRangeVolumeProfile","LineToolVbPFixed",null].filter(tt.notNull).some((t=>e.toolname===t))}(e))return r.propertiesDefinitionsForSource(e).then((i=>null!==i?Fs(e,t,s,n,i):null));if((0,Ws.isStudy)(e)&&function(e){const{shortId:t}=e.metaInfo();return"Overlay"===t}(e)||(0,zs.isLineTool)(e))return r.propertiesDefinitionsForSource(e).then((o=>{if(null!==o){return function(e){return Promise.all([i.e(4752),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(1171),i.e(8933),i.e(6032),i.e(3672),i.e(2537),i.e(3359),i.e(8894),i.e(5743),i.e(3425),i.e(1697),i.e(4587),i.e(7833),i.e(8752),i.e(1979),i.e(4495),i.e(9487),i.e(445),i.e(846),i.e(9323),i.e(8220),i.e(3329),i.e(9970),i.e(6052),i.e(9590),i.e(4678),i.e(159),i.e(9965),i.e(9742),i.e(6043),i.e(4059),i.e(1488),i.e(903),i.e(4633),i.e(2227),i.e(4931),i.e(9418),i.e(4426),i.e(9026),i.e(769),i.e(9928),i.e(8604),i.e(5893),i.e(624),i.e(6780)]).then(i.bind(i,75892)).then((t=>{Hs?.hide();const i=t.SourcePropertiesEditorRenderer;return Hs=new i(e),Hs.show({shouldReturnFocus:e.shouldReturnFocus}),Hs}))}({propertyPages:o,model:t,source:e,activePageId:l&&js[l],shouldReturnFocus:s.shouldReturnFocus})}return null}));if((0,Ws.isStudyStub)(e))return null;if((0,Ws.isStudy)(e))return Fs(e,t,s,n);{ +const e=l&&js[l],t=o.getChartPropertiesDialogRenderer();return t.setActivePage(e),t.show(s)}}var $s=i(24633);async function Ks(){return(await Promise.all([i.e(1171),i.e(7682),i.e(2227),i.e(139)]).then(i.bind(i,81200))).ErrorCardRenderer}var Ys=i(55014),Zs=i(89837);const Xs=(0,Rt.getHexColorByName)("color-cold-gray-700"),Js=(0,Rt.getHexColorByName)("color-cold-gray-400"),Qs=(0,Rt.getHexColorByName)("color-cold-gray-900"),eo=(0,Rt.getHexColorByName)("color-white"),to=a.t(null,void 0,i(18905)),io=a.t(null,void 0,i(63245));function so(e){return e?{...e,message:(0,Ys.formatStudyError)(e.message),rawHtml:!0}:null}class oo{constructor(e,t=!1){this._container=null,this._errorCardRenderer=null,this._mainSeriesErrorMessage=null,this._banErrorMessage=new O.WatchedValue(null).spawn(),this._hasError=new O.WatchedValue(!1),this._renderInsideContainer=!1,this._errorMessageHandler=e=>{this._hasError.setValue(null!==e),e=so(e),!this._renderInsideContainer&&this._chartWidget.hasModel()?this._updatePaneWidgets(e):this._renderErrorWithoutModel(e)},this._chartWidget=e,this._renderInsideContainer=t,this._subscribeToMainSeriesErrors()}destroy(){this._mainSeriesErrorMessage?.destroy(),this._banErrorMessage.destroy(),this._errorCardRenderer?.then((e=>{e.container.remove(),e.destroy()}))}updatePaneWidgets(){this._updatePaneWidgets()}setContainer(e){if(this._container!==e){this._container=e,this._errorCardRenderer?.then((e=>e.container.remove()));const t=this._getErrorMessage();t&&this._errorMessageHandler(t)}}hasError(){return this._hasError.readonly()}_updatePaneWidgets(e=this._getErrorMessage()){this._chartWidget.paneWidgets().forEach((t=>t.setErrorMessage(e)))}async _renderErrorWithoutModel(e){if(null===this._container||null===e&&null===this._errorCardRenderer)return;const t=await this._getErrorCardRenderer();this._container.contains(t.container)||this._container.appendChild(t.container),t.update(this._createErrorCardRendererState(e))}async _getErrorCardRenderer(){return this._errorCardRenderer||(this._errorCardRenderer=this._createErrorCardRenderer())}async _createErrorCardRenderer(){return new(await Ks())}_createErrorCardRendererState(e){return e?{message:e.message,icon:e.icon,textColor:k.watchedTheme.value()===$s.StdTheme.Dark?Js:Xs,backgroundColor:k.watchedTheme.value()===$s.StdTheme.Dark?Qs:eo,solutionId:e.solutionId,rawHtml:e.rawHtml,buttons:e.buttons}:{message:null}}_subscribeToMainSeriesErrors(){const e=this._chartWidget;e.withModel(this,(()=>{const t=e.model().model().mainSeries();this._mainSeriesErrorMessage=(0,ft.combine)(((t,s)=>{if(t)return t;if(null===s)return null;switch(s.type){case"invalid_symbol":return this._createErrorParamsForInvalidSymbol(e);case"calculations_error":return{message:s.errorMessage,icon:"attention"};case"no_data":return{message:a.t(null,void 0,i(36252)),icon:"ghost"};case"unsupported_resolution":return this._createErrorParamsForUnsupportedResolution(e)}}),this._banErrorMessage.weakReference(),(0,xt.getSeriesDisplayErrorWV)(t).ownership()),this._mainSeriesErrorMessage.subscribe(this._errorMessageHandler,{ +callWithLast:!0})}))}_createErrorParamsForInvalidSymbol(e){return{message:`${a.t(null,void 0,i(52969))}
${a.t(null,void 0,i(53272))}`,icon:"ghost",rawHtml:!0,maxHeight:400,zeroHeight:200,buttons:[{name:io,onClick:async()=>{e.setActive(!0);const t=e.model().mainSeries(),i=t.symbol(),s=t.properties().childs().shortName.value(),o="option"===t.symbolInfo()?.type,n=t.symbolInfo()?.pro_name;let r=t.isSpread()?i:s||i||"";if(l.enabled("symbol_search_option_chain_selector")&&o&&n){const e=await resolveUnderlyingSymbol(n);e&&(r={type:"option",value:n,underlying:e})}(0,vs.showDialog)({defaultValue:r,enableOptionsChain:l.enabled("symbol_search_option_chain_selector")})}}]}}_createErrorParamsForUnsupportedResolution(e){const t=e.model().mainSeries().unsupportedResolutionState().value();return null===t?null:{message:(0,Zs.getErrorFromUnsupportedResolutionState)(t,!0),icon:"unsupported-resolution",rawHtml:!0,maxHeight:400,zeroHeight:200,buttons:[{name:to.format({resolution:t.applicableResolution}),onClick:()=>{e.setActive(!0),de.linking.setIntervalAndLogInitiator(t.applicableResolution,"Error state")}}]}}_getErrorMessage(){return so(this._banErrorMessage.value()||this._mainSeriesErrorMessage?.value()||null)}}var no,ro=i(59239),ao=i(51304),lo=i(39612),co=i(93201),ho=i(98155),uo=i(11044);class _o{constructor(e,t){this._showed=!1,this._additionalReadyPromise=null,this._cw=e,this._element=document.createElement("div"),this._element.classList.add(uo.screen),t.appendChild(this._element),this._cw.withModel(this,this._connectToModel)}destroy(){this.hide(),this._element.remove()}show(e,t){if(e){const e=this._cw.model().mainSeries().status();if(1!==e&&2!==e)return}this._additionalReadyPromise=t,this._cw.setInLoadingState(!0),this._showed||(this._showed=!0,this._show())}hide(){this._cw.setInLoadingState(!1),this._showed&&this._hide()}isShown(){return this._showed}_connectToModel(){const e=this._cw.model().mainSeries(),t=e.dataEvents();t.symbolError().subscribe(this,(e=>{e!==ho.permissionDenied&&this.hide()})),t.seriesError().subscribe(this,(()=>{(0,l.enabled)("hide_loading_screen_on_series_error")&&this.hide()})),e.statusWV().subscribe((e=>{if(4!==e&&12!==e&&13!==e&&14!==e||this.hide(),bt.seriesReadyStatuses.has(e)){const e=this._additionalReadyPromise;e?e.then((()=>{this.hide()})):this.hide()}}))}_show(){const e=this._cw.properties().childs().paneProperties.childs();let t;if(e.backgroundType.value()===co.ColorType.Solid)t=e.background.value();else{t=`linear-gradient(${e.backgroundGradientStartColor.value()},${e.backgroundGradientEndColor.value()})`}this._element.style.background=t,this._element.classList.add(uo.fade)}_hide(){this._showed=!1,this._element.classList.remove(uo.fade)}}function po(e,t){let{deltaX:i,deltaY:s}=e;switch(i/=100,s/=100,t.deltaMode){case t.DOM_DELTA_PAGE:i*=120,s*=120;break;case t.DOM_DELTA_LINE:i*=32,s*=32}return{deltaX:i,deltaY:s}}!function(e){e[e.MaxNextEventDelay=100]="MaxNextEventDelay",e[e.IgnoreSmallerDeltaCoeff=3]="IgnoreSmallerDeltaCoeff"}(no||(no={}));class mo{constructor(){this._totalDeltaX=0, +this._totalDeltaY=0,this._prevWheelTime=0}processWheel(e){e.timeStamp-this._prevWheelTime>100&&this._reset();const t=!(0,ze.isMac)()&&e.shiftKey,i=t?-e.deltaY:e.deltaX,s=t?e.deltaX:e.deltaY;this._totalDeltaX+=i,this._totalDeltaY+=s,this._prevWheelTime=e.timeStamp;const o={deltaX:i,deltaY:s};return 0===this._totalDeltaX||0===this._totalDeltaY||(Math.abs(this._totalDeltaX)>=Math.abs(3*this._totalDeltaY)&&(o.deltaY=0),Math.abs(this._totalDeltaY)>=Math.abs(3*this._totalDeltaX)&&(o.deltaX=0)),po(o,e)}_reset(){this._totalDeltaX=0,this._totalDeltaY=0}}var go,fo=i(77914),yo=i(15266);!function(e){e[e.Height=1]="Height",e[e.MinPaneHeight=30]="MinPaneHeight"}(go||(go={}));class vo{constructor(e,t,i){this._handleEl=null,this._resizeInfo=null,this._colorCache={lineColor:"",backgroundColor:"",color:""},this._selected=new O.WatchedValue,this._chart=e,this._topPaneIndex=t,this._bottomPaneIndex=i,this._element=document.createElement("div"),this._element.classList.add(yo.paneSeparator),this._element.style.background=this._color(),this.adjustSize(),this._element.addEventListener("click",(()=>{}));const s=document.createElement("div");s.classList.add(yo.handle),this._element.appendChild(s),this._mouseEventHandler=new Wt.MouseEventHandler(s,this,{treatVertTouchDragAsPageScroll:!1,treatHorzTouchDragAsPageScroll:!0}),this._handleEl=s,this._handleEl.classList.toggle(yo.mobile,ze.CheckMobile.any()),this._element.setAttribute("aria-hidden","true"),this._selected.subscribe((e=>this._handleEl?.classList.toggle(yo.selected,e)))}destroy(){this._mouseEventHandler.destroy(),this._element.parentElement&&this._element.parentElement.removeChild(this._element)}topPaneIndex(){return this._topPaneIndex}bottomPaneIndex(){return this._bottomPaneIndex}getElement(){return this._element}hide(){this._element.classList.add("js-hidden")}show(){this._element.classList.remove("js-hidden")}selected(){return this._selected.readonly()}adjustSize(){this._element.style.height=vo.height()+"px"}mouseEnterEvent(e){const{topPane:t,bottomPane:i}=this._topBottomPane(!0);null!==t&&null!==i&&(0,n.ensureNotNull)(this._handleEl).classList.add(yo.hovered)}mouseLeaveEvent(e){(0,n.ensureNotNull)(this._handleEl).classList.remove(yo.hovered)}mouseDownEvent(e){this._mouseDownOrTouchStartEvent(e)}tapEvent(){this._selected.setValue(!this._selected.value())}touchStartEvent(e){this._selected.value()&&this._mouseDownOrTouchStartEvent(e)}pressedMouseMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}touchMoveEvent(e){this._selected.value()&&this._pressedMouseOrTouchMoveEvent(e)}mouseUpEvent(e){this._mouseUpOrTouchEndEvent(e)}touchEndEvent(e){this._selected.value()&&this._mouseUpOrTouchEndEvent(e)}touchStartOutsideEvent(){this._selected.setValue(!1)}update(){this._element.style.background=this._color().toString()}paint(){}image(){const{topPane:e}=this._topBottomPane(!1),t=e.leftPriceAxisesContainer().getWidth(),i=e.width(),s=e.rightPriceAxisesContainer().getWidth(),o=this._color(),n=(0,Kt.createDisconnectedCanvas)(document,(0,Ft.size)({width:t,height:1})),r=(0,Kt.getPrescaledContext2D)(n) +;r.fillStyle=o,r.fillRect(0,0,t,1);const a=(0,Kt.createDisconnectedCanvas)(document,(0,Ft.size)({width:i,height:1})),l=(0,Kt.getPrescaledContext2D)(a);l.fillStyle=o,l.fillRect(0,0,i,1);const c=(0,Kt.createDisconnectedCanvas)(document,(0,Ft.size)({width:s,height:1})),h=(0,Kt.getPrescaledContext2D)(c);return h.fillStyle=o,h.fillRect(0,0,s,1),{type:"separator",leftAxis:{content:n.toDataURL(),canvas:n,contentWidth:t,contentHeight:1},rightAxis:{content:c.toDataURL(),canvas:c,contentWidth:s,contentHeight:1},content:a.toDataURL(),canvas:a,contentWidth:i,contentHeight:1}}static height(){const e=window.devicePixelRatio||1;return e>=1?1:1/e}_mouseDownOrTouchStartEvent(e){const{topPane:t,bottomPane:i}=this._topBottomPane(!0);if(null===t||null===i)return;const s=t.state().stretchFactor()+i.state().stretchFactor(),o=s/(t.height()+i.height()),r=30*o;s<=2*r||(this._resizeInfo={startY:e.pageY,prevStretchTopPane:t.state().stretchFactor(),maxPaneStretch:s-r,totalStretch:s,pixelStretchFactor:o,minPaneStretch:r},(0,n.ensureNotNull)(this._handleEl).classList.add(yo.active))}_pressedMouseOrTouchMoveEvent(e){const{topPane:t,bottomPane:i}=this._topBottomPane(!0),s=this._resizeInfo;if(null===s||null===t||null===i)return;const o=(e.pageY-s.startY)*s.pixelStretchFactor,n=(0,fo.clamp)(s.prevStretchTopPane+o,s.minPaneStretch,s.maxPaneStretch);t.state().setStretchFactor(n),i.state().setStretchFactor(s.totalStretch-n),this._chart.model().model().fullUpdate()}_mouseUpOrTouchEndEvent(e){const{topPane:t,bottomPane:i}=this._topBottomPane(!0),s=this._resizeInfo;null!==s&&null!==t&&null!==i&&(this._chart.model().addPaneStretchFactorUndoCommand(t.state(),i.state(),s.prevStretchTopPane,t.state().stretchFactor()),this._resizeInfo=null,(0,n.ensureNotNull)(this._handleEl).classList.remove(yo.active))}_color(){const e=this._chart.properties().childs().paneProperties.childs().separatorColor.value(),t=this._chart.model().model().backgroundColor().value();if(this._colorCache.lineColor!==e||this._colorCache.backgroundColor!==t){const i=(0,Nt.parseRgba)(t),s=(0,Nt.parseRgba)(e),o=0===i[3]&&0===s[3]?"rgba(0,0,0,0)":(0,Nt.rgbaToString)((0,Nt.blendRgba)(i,s));this._colorCache={lineColor:e,backgroundColor:t,color:o}}return this._colorCache.color}_topBottomPane(e){const t=this._chart.paneWidgets();let i=null,s=null;for(let s=this._topPaneIndex;s>=0;--s){const o=t[s];if(!e||!o.state().collapsed().value()){i=o;break}}for(let i=this._bottomPaneIndex;i{this.update(),this._textWidthCache.reset()},this._timeAxisWidget=n,this._isLeft="left"===e;const{rendererOptionsProvider:r,sourcesTitlesProvider:a,contextMenuItemsProvider:l,backgroundBasedTheme:c,onActiveOrHoveredChart:h=new O.WatchedValue(!1).ownership(),requestRepaint:d,getBackgroundTopColor:u,getBackgroundBottomColor:_,showHorizontalBorder:p}=s;this._rendererOptionsProvider=r,this._sourcesTitlesProvider=a,this._contextMenuItemsProvider=l,this._backgroundBasedTheme=c,this._onActiveOrHoveredChart=h,this._requestRepaint=d,this._getBackgroundTopColor=u,this._getBackgroundBottomColor=_,this._showHorizontalBorder=Boolean(p),this._properties=t,this._axisInfo=i,this._labelOptions={...ko,...o},this._cell=document.createElement("div"),this._labelOptions.enableTooltip&&this._cell.classList.add("apply-common-tooltip"),this._cell.style.width="25px",this._cell.style.height="100%",this._cell.style.position="absolute",this._cell.style.left="0",this._cell.style.overflow="hidden",this._labelOptions.showLabels&&(this._labelOptions.enableTooltip&&(0,Ao.setTooltipData)(this._cell,"text",(e=>this._tooltipContent())),this._onActiveOrHoveredChart.subscribe(d)),this._properties.lineColor.subscribe(this,(()=>this._requestRepaint())),this._mouseEventHandler=new Wt.MouseEventHandler(this._cell,this,{treatHorzTouchDragAsPageScroll:!0,treatVertTouchDragAsPageScroll:!0}),this._canvasBinding=(0,Kt.createBoundCanvas)(this._cell,(0,Ft.size)({width:16,height:16})),this._canvasBinding.subscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler);const g=this._canvasBinding.canvasElement;g.style.position="absolute",g.style.left="0",g.style.top="0",this._cell.setAttribute("aria-hidden","true")}destroy(){this._canvasBinding.unsubscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler),this._canvasBinding.dispose(),this._properties.lineColor.unsubscribeAll(this),this._mouseEventHandler.destroy(),this._backgroundBasedTheme.release(),this._onActiveOrHoveredChart.unsubscribe(this._requestRepaint),this._onActiveOrHoveredChart.release()}mouseEnterEvent(e){this._mouseOrTouchEnterEvent(e)}touchStartEvent(e){this._mouseOrTouchEnterEvent(e)}mouseLeaveEvent(e){this._mouseOrTouchLeaveEvent(e)}touchEndEvent(e){this._mouseOrTouchLeaveEvent(e)}mouseClickEvent(e){this._mouseClickOrTapEvent(e)}tapEvent(e){this._mouseClickOrTapEvent(e)}update(){}getElement(){return this._cell}onLabelHovered(){return this._onLabelHovered}setSizeAndOffset(e,t){(0,Ft.equalSizes)(this._size,e)||(this._size=e,this._canvasBinding.resizeCanvasElement(e),this._cell.style.width=`${e.width}px`,this._cell.style.minWidth=`${e.width}px`,this._cell.style.height=`${e.height}px`),this._offset!==t&&(this._offset=t, +this._cell.style.left=`${t}px`)}paint(e){0!==this._size.width&&0!==this._size.height&&(e.level===ao.InvalidationLevel.Full||e.invalidateStubs)&&((0,Kt.tryApplySuggestedCanvasBitmapSize)(this._canvasBinding),this._paintImpl((0,Kt.getContext2D)(this._canvasBinding.canvasElement),(0,Kt.getBindingRenderingInfo)(this._canvasBinding)))}getWidth(){return this._size.width}getImage(){const e=(0,Kt.getBindingRenderingInfo)(this._canvasBinding),t=(0,Kt.createDisconnectedCanvasByRenderingInfo)(document,e);return this._paintImpl((0,Kt.getContext2D)(t),e,!0),t}setLabelMode(e){e!==this._labelMode&&(this._labelMode=e,this._cell.classList.toggle("apply-common-tooltip",1!==e&&this._labelOptions.enableTooltip))}_paintImpl(e,t,i){this._drawBackground(e,t),this._drawVerticalBorder(e,t),this._showHorizontalBorder&&this._drawHorizontalBorder(e,t),this._labelOptions.showLabels&&this._drawLabel(e,t,i)}_setHighlighted(e){this._labelOptions.enableHighlight&&(this._onLabelHovered.fire("stubButton",e),this._highlighted!==e&&(this._highlighted=e),this._requestRepaint())}_drawVerticalBorder(e,t){e.save(),e.fillStyle=this._vertBorderColor();const i=Eo(this._rendererOptionsProvider.options(),t.horizontalPixelRatio),s=this._isLeft?t.bitmapSize.width-i:0;e.fillRect(s,0,i,t.bitmapSize.height),e.restore()}_drawHorizontalBorder(e,t){e.save(),e.fillStyle=this._horzBorderColor();const i=Eo(this._rendererOptionsProvider.options(),t.verticalPixelRatio),s=this._isLeft?0:i;e.fillRect(s,0,t.bitmapSize.width-i,i),e.restore()}_drawBackground(e,t){const i=this._getBackgroundTopColor(),s=this._getBackgroundBottomColor(),{bitmapSize:o}=t;if(i===s?(0,Kt.clearRect)(e,0,0,o.width,o.height,i):(0,$t.clearRectWithGradient)(e,0,0,o.width,o.height,i,s),this._highlighted){const t=L.themes[this._backgroundBasedTheme.value()].getThemedColor("color-price-axis-highlight");(0,Kt.fillRect)(e,0,0,o.width,o.height,t),e.globalAlpha=1}}_drawLabel(e,t,i){const s=this._backgroundBasedTheme.value(),o=this._axisInfo;if(null===o||!i&&!this._onActiveOrHoveredChart.value())return;const{bitmapSize:n,horizontalPixelRatio:r,verticalPixelRatio:a}=t,l=Eo(this._rendererOptionsProvider.options(),r),c=Math.round(n.width)-l,h=Eo(this._rendererOptionsProvider.options(),a),d=Math.round(n.height)-h,u=(0,Vt.point)(l+c/2,h+d/2);if(1===this._labelMode||2===this._labelMode&&(!this._highlighted||i)){e.fillStyle=L.themes[s].getThemedColor("color-price-axis-label-back"),e.globalAlpha=.5,e.beginPath(),e.arc(u.x,u.y,9.5*r,0,2*Math.PI,!0),e.fill(),e.globalAlpha=1,e.fillStyle=L.themes[s].getThemedColor("color-price-axis-label-text"),e.font=this._font,e.textAlign="center",e.textBaseline="middle";const t=this._textWidthCache.yMidCorrection(e,o.label);(0,Kt.drawScaled)(e,r,a,(()=>{e.fillText(o.label,u.x/r,u.y/a+t)}))}else if(!i&&this._onActiveOrHoveredChart.value()){const t=this._gearRenderer.viewBox(),i=Math.round(u.x-t.width*r/2),o=Math.round(u.y-t.height*a/2);e.fillStyle=L.themes[s].getThemedColor("color-text-primary"),e.imageSmoothingQuality="high",this._gearRenderer.render(e,{targetViewBox:{x:i,y:o, +width:t.width*r,height:t.height*a},doNotApplyColors:!0})}}_vertBorderColor(){return this._properties.lineColor.value()}_horzBorderColor(){return this._timeAxisWidget?.lineColor()??this._vertBorderColor()}_tooltipContent(){return this._sourcesTitlesProvider().join("\n")}_mouseOrTouchEnterEvent(e){this._isMouseOverStub=!0,this._labelOptions.showLabels&&this._labelOptions.enableHighlight&&!this._timeAxisWidget?.chart.model().model().chartFloatingTooltipVisible().value()&&this._setHighlighted(!0)}_mouseOrTouchLeaveEvent(e){this._isMouseOverStub=!1,this._labelOptions.showLabels&&this._labelOptions.enableHighlight&&!this._isContextMenuOpened&&this._setHighlighted(!1)}async _mouseClickOrTapEvent(e){if(e.preventDefault(),null!==this._fixedLabelMode||1===this._labelMode||!this._labelOptions.enableMenu||!this._labelOptions.showLabels)return void Io.ContextMenuManager.hideAll();this._fixedLabelMode=this._labelMode,this.setLabelMode(0);const t=this._cell.getBoundingClientRect(),i=await this._contextMenuItemsProvider();this._isContextMenuOpened=!0,this._labelOptions.showLabels&&this._labelOptions.enableHighlight&&this._setHighlighted(!0),Io.ContextMenuManager.showMenu(i,{clientX:this._isLeft?t.left:t.right,clientY:t.top,attachToXBy:this._isLeft?"left":"right",attachToYBy:"bottom"},{statName:"PriceScaleLabelContextMenu",doNotCloseOn:this.getElement()},{menuName:"PriceScaleLabelContextMenu"},(()=>{this._isMouseOverStub||this._setHighlighted(!1),this._isContextMenuOpened=!1,this.setLabelMode((0,n.ensureNotNull)(this._fixedLabelMode)),this._fixedLabelMode=null}))}}var Bo=i(96708);class Vo{constructor(e,t,i,s,o,n=null){this._axises=[],this._stubs=[],this._size=(0,Ft.size)({width:0,height:0}),this._onLabelHovered=new ae.Delegate,this._scalesProperties=e,this._priceAxisWidgetFactory=i,this._timeAxisWidget=n,this._rendererOptionsProvider=s.rendererOptionsProvider,this._titlesProvider=s.titlesProvider,this._stubContextMenuProvider=s.stubContextMenuProvider,this._backgroundBasedTheme=s.backgroundBasedTheme,this._onActiveOrHoveredChart=s.onActiveOrHoveredChart,this._getBackgroundTopColor=s.getBackgroundTopColor,this._getBackgroundBottomColor=s.getBackgroundBottomColor,this._requestRepaint=s.requestRepaint,this._showHorisontalBorder=Boolean(s.showHorizontalBorder),this._labelsOptions={...ko,...o};const r=this._scalesProperties.childs();this._stubProperties={lineColor:r.lineColor,fontSize:r.fontSize},this._side=t,this._cell=document.createElement("div"),this._cell.classList.add("chart-markup-table","price-axis-container"),this._cell.style.width="25px",this._cell.style.position="relative"}destroy(){this.setScales([],0,0,0),this._backgroundBasedTheme.release(),this._onActiveOrHoveredChart?.release()}onLabelHovered(){return this._onLabelHovered}setScales(e,t,i,s){for(;e.length>this._axises.length&&this._axises.lengthr;){const e=(0,n.ensureDefined)(this._stubs.pop());e.onLabelHovered().unsubscribeAll(this),this._cell.removeChild(e.getElement()),e.destroy()}for(;this._stubs.length{this._labelsOptions.showLabels&&this._labelsOptions.enableHighlight&&this._onLabelHovered.fire({owner:t,axis:(0,n.ensureNotNull)(e)},i)})),this._stubs.push(t),this._cell.appendChild(t.getElement())}const a=this._labelsOptions.enableMenu;1===s?this._stubs.forEach(((e,t)=>e.setLabelMode(a?0:1))):this._stubs.forEach(((e,t)=>e.setLabelMode(te.updateCurrencyLabel()))}optimalWidths(){return this._axises.map((e=>e.optimalWidth()))}setSizes(e,t){this._size=(0,Ft.size)({width:t.reduce(((e,t)=>e+t),0),height:e}),this._cell.style.width=this._size.width+"px",this._cell.style.minWidth=this._size.width+"px",this._cell.style.height=this._size.height+"px",t.length!==this._axises.length+this._stubs.length&&(0,n.assert)(t.length===this._axises.length+this._stubs.length,"Widgets count should be the same as widths one");let i=0;this._forEachWidgetFromLeft(((s,o)=>{const n=t[o];s.setSizeAndOffset((0,Ft.size)({width:n,height:e}),i),i+=n}))}update(){this._axises.forEach((e=>e.update())),this._stubs.forEach((e=>e.update()))}paint(e,t){this._axises.forEach(((t,i)=>t.paint(e(i)))),this._stubs.forEach(((e,i)=>e.paint(t)))}paintStubs(e){this._stubs.forEach((t=>t.paint(e)))}restoreDefaultCursor(){this._axises.forEach((e=>e.restoreDefaultCursor()))}getWidth(){return this._size.width}findAxisWidgetForScale(e){const t=this._axises.find((t=>t.priceScale()===e));return void 0===t?null:t}getScreenshotData(){const e=this._getImage();return{canvas:e,content:e.toDataURL(),contentHeight:this._size.height,contentWidth:this._size.width}}getImage(){return this._getImage()}slotsCount(){return this._axises.length+this._stubs.length}setHighlightedPriceAxises(e){this._axises.forEach((t=>{const i=t.axisInfo(),s=e.find((e=>e.label===i?.label));t.setHighlighted(void 0!==s)}))}axes(){return this._axises}_stubParams(e){return{rendererOptionsProvider:this._rendererOptionsProvider,backgroundBasedTheme:this._backgroundBasedTheme.spawnOwnership(),onActiveOrHoveredChart:this._onActiveOrHoveredChart?.spawnOwnership(),sourcesTitlesProvider:()=>this._titlesProvider(this._side,e),contextMenuItemsProvider:()=>this._stubContextMenuProvider(this._side,e),getBackgroundTopColor:this._getBackgroundTopColor, +getBackgroundBottomColor:this._getBackgroundBottomColor,requestRepaint:this._requestRepaint,showHorizontalBorder:this._showHorisontalBorder}}_getImage(){const e=(0,Kt.createDisconnectedCanvas)(document,this._size),t=(0,Kt.getPrescaledContext2D)(e);let i=0;return this._forEachWidgetFromLeft(((e,s)=>{const o=e.getWidth();0!==o&&0!==this._size.height&&(t.drawImage(e.getImage(),i,0,o,this._size.height),i+=o)})),e}_forEachWidgetFromLeft(e){const t=[...this._axises,...this._stubs],i="left"===this._side,s=i?-1:t.length,o=i?-1:1;for(let n=i?t.length-1:0;n!==s;n+=o)e(t[n],n,t)}}var Ro=i(52859),No=i(55824),Oo=i(93688);class Fo{constructor(e=0){this._width=null,this._labelBottom=null,this._currencyInfo=null,this._unitInfo=null,this._measureUnitIdInfo=null,this._currencyAndUnitLabelsWrapper=document.createElement("div"),this._currencyAndUnitLabelsWrapper.className=Oo["price-axis-currency-label-wrapper"],this._currencyAndUnitLabelsWrapper.setAttribute("data-name","currency-unit-label-wrapper"),this._controlsContainer=document.createElement("div"),this._controlsContainer.className=Oo["price-axis-currency-label"],this._currencyAndUnitLabelsWrapper.appendChild(this._controlsContainer),this._currencyLabelDiv=document.createElement("div"),this._currencyLabelDiv.classList.add(Oo.row,"apply-common-tooltip"),this._currencyLabelDiv.dataset.name="currency-label-selector",(0,Ao.setTooltipData)(this._currencyLabelDiv,"text",(e=>this._currencyTooltipContent())),this._currencyText=document.createElement("div"),this._currencyText.className=Oo["price-axis-currency-label-text"],this._currencyLabelDiv.appendChild(this._currencyText),this._currencyArrowDown=document.createElement("div"),this._currencyArrowDown.className=Oo["price-axis-currency-label-arrow-down"],this._currencyArrowDown.innerHTML=No,this._currencyLabelDiv.appendChild(this._currencyArrowDown),this._measureUnitIdLabelDiv=document.createElement("div"),this._measureUnitIdLabelDiv.className=Oo.row,this._measureUnitIdLabelDiv.classList.add("apply-common-tooltip"),this._measureUnitIdLabelDiv.classList.add("readonly"),(0,Ao.setTooltipData)(this._measureUnitIdLabelDiv,"text",(e=>this._measureUnitIdTooltipContent())),this._measureUnitIdText=document.createElement("div"),this._measureUnitIdText.className=Oo["price-axis-currency-label-text"],this._measureUnitIdLabelDiv.appendChild(this._measureUnitIdText),this._unitLabelDiv=document.createElement("div"),this._unitLabelDiv.classList.add(Oo.row,"apply-common-tooltip"),this._unitLabelDiv.dataset.name="unit-label-selector",(0,Ao.setTooltipData)(this._unitLabelDiv,"text",(e=>this._unitTooltipContent())),this._unitText=document.createElement("div"),this._unitText.className=Oo["price-axis-currency-label-text"],this._unitLabelDiv.appendChild(this._unitText),this._unitArrowDown=document.createElement("div"),this._unitArrowDown.className=Oo["price-axis-currency-label-arrow-down"],this._unitArrowDown.innerHTML=No,this._unitLabelDiv.appendChild(this._unitArrowDown),this._controlsContainer.appendChild(this._currencyLabelDiv), +this._controlsContainer.appendChild(this._measureUnitIdLabelDiv),this._controlsContainer.appendChild(this._unitLabelDiv),this.disableCurrency(),this.disableUnit(),this.setFontSize(e)}element(){return this._currencyAndUnitLabelsWrapper}currencyLabelElement(){return this._currencyLabelDiv}unitLabelElement(){return this._unitLabelDiv}isEnabled(){return this.currencyLabelEnabled()||this.unitLabelEnabled()||this.measureUnitIdLableEnabled()}isHidden(){return this._currencyAndUnitLabelsWrapper.classList.contains(Oo.hidden)}setCurrencyExpanded(e){this._currencyLabelDiv.classList.toggle(Oo.expanded,e)}setUnitExpanded(e){this._unitLabelDiv.classList.toggle(Oo.expanded,e)}width(){if(null!==this._width)return this._width;let e=0;if(this.currencyLabelEnabled()){const t=this._currencyText.getBoundingClientRect(),i=this._currencyArrowDown.getBoundingClientRect();e=Math.max(e,t.width+i.width+2*this._textMarginAndPadding())}if(this.measureUnitIdLableEnabled()){const t=this._measureUnitIdText.getBoundingClientRect();e=Math.max(e,t.width+2*this._textMarginAndPadding())}if(this.unitLabelEnabled()){const t=this._unitText.getBoundingClientRect(),i=this._unitArrowDown.getBoundingClientRect();e=Math.max(e,t.width+i.width+2*this._textMarginAndPadding())}return this._width=e}drawLabel(e,t,i){if(!this.isEnabled())return;const s=Math.round(Number(Oo.css_wrapper_margin)*i),o=(0,fo.ceiledEven)(t*i)-2*s,n=Math.round(this.labelBottom()*i),r=n-2*s,a=Math.round(Number(Oo.css_value_currency_label_radius)*i);e.fillStyle=getComputedStyle(this._currencyAndUnitLabelsWrapper).backgroundColor,e.fillRect(0,0,Math.ceil(t*i),n);const l=[];l.push(this.currencyLabelEnabled()?this._currencyText.textContent??"":""),l.push(this.measureUnitIdLableEnabled()?this._measureUnitIdText.textContent??"":""),l.push(this.unitLabelEnabled()?this._unitText.textContent??"":""),e.font=(0,si.makeFont)(this._fontSize,m.CHART_FONT_FAMILY);const c=new Qt.TextWidthCache;let h=0;const d=[];l.forEach((t=>{let i=0;""!==t&&(i=c.yMidCorrection(e,t),h++),d.push(i)}));const u=r/h;e.beginPath();const _=getComputedStyle(this._controlsContainer);e.fillStyle=_.backgroundColor,e.strokeStyle=_.borderColor,(0,$t.drawRoundRect)(e,s,s,o,r,a),e.fill(),e.stroke(),e.fillStyle=getComputedStyle(this._currencyLabelDiv).color,e.textBaseline="middle",e.textAlign="left";const p=Math.round(this._textMarginAndPadding()*i)+s,g=u/2;let f=s+g;l.forEach(((t,s)=>{""!==t&&((0,Kt.drawScaled)(e,i,i,(()=>{e.fillText(t,p/i,(f+d[s])/i)})),f=Math.ceil(f+2*g))}))}setHidden(e){this._currencyAndUnitLabelsWrapper.classList.toggle(Oo.hidden,e)}enableCurrency(){this._currencyLabelDiv.classList.remove("js-hidden"),this._resetSizesAndVisibility()}disableCurrency(){this._currencyLabelDiv.classList.add("js-hidden"),this._resetSizesAndVisibility()}enableUnit(){this._unitLabelDiv.classList.remove("js-hidden"),this._resetSizesAndVisibility()}disableUnit(){this._unitLabelDiv.classList.add("js-hidden"),this._resetSizesAndVisibility()}enableMeasureUnitId(){this._measureUnitIdLabelDiv.classList.remove("js-hidden"), +this._resetSizesAndVisibility()}disableMeasureUnitId(){this._measureUnitIdLabelDiv.classList.add("js-hidden"),this._resetSizesAndVisibility()}currencyLabelEnabled(){return!this._currencyLabelDiv.classList.contains("js-hidden")}unitLabelEnabled(){return!this._unitLabelDiv.classList.contains("js-hidden")}measureUnitIdLableEnabled(){return!this._measureUnitIdLabelDiv.classList.contains("js-hidden")}currencyConversionAvailable(){return!this._currencyLabelDiv.classList.contains("readonly")}unitConversionAvailable(){return!this._unitLabelDiv.classList.contains("readonly")}setCurrencyInfo(e){if(this._currencyInfo===e)return!1;this._currencyInfo=e;const t=null===e.selectedCurrency?a.t(null,void 0,i(54215)):(0,n.ensureDefined)(e.displayedValues.get(e.selectedCurrency));return this._currencyText.textContent!==t&&(this._currencyText.textContent=t,this._width=null),this._currencyArrowDown.classList.contains("js-hidden")!==e.readOnly&&(this._currencyArrowDown.classList.toggle("js-hidden",e.readOnly),this._currencyLabelDiv.classList.toggle("readonly",e.readOnly),this._width=null),!0}setUnitInfo(e){if(null!==this._unitInfo&&this._unitInfo.selectedUnit===e.selectedUnit&&0===this._unitInfo.availableGroups.size==(0===e.availableGroups.size)&&this._unitInfo.originalUnits.size===e.originalUnits.size)return this._unitInfo=e,!1;this._unitInfo=e;const t=null===e.selectedUnit?a.t(null,void 0,i(54215)):(0,n.ensureDefined)(e.names.get(e.selectedUnit));return this._unitText.textContent!==t&&(this._unitText.textContent=t,this._width=null),this._unitArrowDown.classList.contains("js-hidden")!==(0===e.availableGroups.size)&&(this._unitArrowDown.classList.toggle("js-hidden",0===e.availableGroups.size),this._unitLabelDiv.classList.toggle("readonly",0===e.availableGroups.size),this._width=null),!0}setMeasureUnitIdInfo(e){if(this._measureUnitIdInfo===e)return!1;this._measureUnitIdInfo=e;const t=null===e.selectedMeasureUnitId?a.t(null,void 0,i(54215)):(0,n.ensureDefined)(e.names.get(e.selectedMeasureUnitId));return this._measureUnitIdText.textContent!==t&&(this._measureUnitIdText.textContent=t,this._width=null),this._measureUnitIdLabelDiv.classList.contains("js-hidden")!==(0===e.names.size)&&(this._measureUnitIdLabelDiv.classList.toggle("js-hidden",0===e.names.size),this._width=null),!0}currencyInfo(){return this._currencyInfo}unitInfo(){return this._unitInfo}measureUnitIdInfo(){return this._measureUnitIdInfo}setFontSize(e){this._fontSize!==e&&(this._fontSize=e,this._currencyLabelDiv.style.fontSize=e+"px",this._measureUnitIdLabelDiv.style.fontSize=e+"px",this._unitLabelDiv.style.fontSize=e+"px",this._width=null,this._labelBottom=null)}labelBottom(){if(null!==this._labelBottom)return this._labelBottom;const e=this._controlsContainer.getBoundingClientRect(),t=this._currencyAndUnitLabelsWrapper.getBoundingClientRect(),i=e.y-t.y;return this._labelBottom=e.height+2*i}_resetSizesAndVisibility(){this._width=null,this._labelBottom=null,this._updateVisibility()}_textMarginAndPadding(){return Number(Oo.css_wrapper_margin)+Number(Oo.css_row_left_right_padding)+2} +_currencyTooltipContent(){const e=this._currencyInfo;return null===e?"":null===e.selectedCurrency?Array.from(e.currencies).map((t=>(0,n.ensureDefined)(e.displayedValues.get(t)))).join(", "):e.readOnly?a.t(null,void 0,i(43931)):a.t(null,void 0,i(48566))}_unitTooltipContent(){const e=this._unitInfo;return null===e?"":null===e.selectedUnit?Array.from(e.units).map((t=>(0,n.ensureDefined)(e.names.get(t)))).join(", "):0===e.availableGroups.size?a.t(null,void 0,i(40012)):a.t(null,void 0,i(85110))}_measureUnitIdTooltipContent(){const e=this._measureUnitIdInfo;return null===e?"":null===e.selectedMeasureUnitId?Array.from(e.measureUnitIds).map((t=>(0,n.ensureDefined)(e.names.get(t)))).join(", "):e.descriptions.get(e.selectedMeasureUnitId)||""}_updateVisibility(){const e=this.isEnabled();this._currencyAndUnitLabelsWrapper.classList.toggle("js-hidden",!e)}}async function Wo(e,t,s,o){const{UnitConversionRenderer:n}=await Promise.all([i.e(1095),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(3672),i.e(1697),i.e(8260),i.e(844),i.e(3946),i.e(7399),i.e(2227),i.e(9418),i.e(3179),i.e(2704)]).then(i.bind(i,28587));return new n(e,s,t,o)}async function Ho(e,t,s){const{CurrencyMenuResultEvents:o}=await i.e(5639).then(i.bind(i,78712));return new o(e,t,s)}var zo=i(41706);class Uo{constructor(e){const{action:t,property:i,undoModel:s,undoText:o,callback:n=null}=e;this._property=i,this._undoModel=s,this._undoText=o,this._action=t,this.setValue(i.value()),i.subscribe(this,this._propertyChanged),null!==n?t.update({onExecute:n.bind(this)}):t.update({onExecute:this._onActionCallback.bind(this)})}destroy(){this._property.unsubscribe(this,this._propertyChanged)}value(){return this._action.isChecked()}setValue(e){this._action.update({checked:Boolean(e)})}_onActionCallback(){this._undoModel.setProperty(this._property,this.value(),this._undoText)}_propertyChanged(e){this.setValue(e.value())}}class jo extends zo.Action{constructor(e,t){super(e),this._binding=new Uo({action:this,...t})}destroy(){this._binding.destroy(),super.destroy()}}var Go=i(31932),qo=i(9860),$o=i(25246),Ko=i(14429);i(65810);const Yo=new dt.TranslatedString("change no overlapping labels",a.t(null,void 0,i(61557))),Zo=new dt.TranslatedString("toggle auto scale",a.t(null,void 0,i(42240))),Xo=new dt.TranslatedString("toggle log scale",a.t(null,void 0,i(49403))),Jo=a.t(null,void 0,i(88314)),Qo=a.t(null,void 0,i(5119)),en=a.t(null,void 0,i(59396)),tn=a.t(null,void 0,i(15432)),sn=a.t(null,void 0,i(15332)),on=a.t(null,void 0,i(24157)),nn=a.t(null,{context:"scale_menu"},i(34954)),rn=a.t(null,{context:"scale_menu"},i(35210)),an=a.t(null,{context:"scale_menu"},i(31340)),ln=a.t(null,{context:"scale_menu"},i(55300)),cn=a.t(null,{context:"scale_menu"},i(19405)),hn=a.t(null,{context:"scale_menu"},i(75163));const dn=function(e){const t=new qo.LimitedPrecisionNumericFormatter(e);return(e,i)=>(0,tt.isNumber)(i)&&!e.isLog()?t.format(i):""}(4),un=l.enabled("currency_menu_disabled"),_n=l.enabled("unit_menu_disabled"),pn={contextMenuEnabled:!0,currencyConversionEnabled:!1, +unitConversionEnabled:!1,countdownEnabled:!0,contextMenu:{general:!0,source:!0},pressedMouseMoveScale:!0,mouseWheelScale:!0,pinchScale:!0,croppedTickMarks:!0};var mn,gn,fn;!function(e){e[e.LabelOffset=4]="LabelOffset",e[e.DefaultOptimalWidth=34]="DefaultOptimalWidth",e[e.WheelScaleCoeff=15]="WheelScaleCoeff",e[e.CurrencyLabelFontSize=12]="CurrencyLabelFontSize"}(mn||(mn={})),function(e){e[e.Back=0]="Back",e[e.Top=1]="Top",e[e.All=2]="All"}(gn||(gn={}));class yn{constructor(e,t,i,s,o,n,r,a,l){this._actions=null,this._priceScale=null,this._scaleModeButtons=null,this._widthCache=new Qt.TextWidthCache(1e3),this._color=null,this._fontSize=null,this._isVisible=!0,this._currencyMenu=null,this._unitMenu=null,this._size=(0,Ft.size)({width:0,height:0}),this._currentCursorClassName="",this._destroyed=!1,this._highlighted=!1,this._highlightColorCache=null,this._mouseWheelHelper=null,this._dragScaleActive=!1,this._offset=NaN,this._pinching=!1,this._lastHittestResult=null,this._isHovered=new O.WatchedValue(!1),this._selectedViaTap=new O.WatchedValue(!1),this._recalcCurrencyAndUnitVisibility=()=>{if(null===this._currencyLabel)return;const e=(0,Be.actualCurrencyUnitVisibility)().value();let t=!this._pane.visuallyCollapsed().value();if(t)switch(e){case"alwaysOff":t=!1;break;case"visibleOnMouseOver":const e=this._chart.anyPriceAxisHovered().value(),i=!!this._currencyMenu,s=!!this._unitMenu;t=e||i||s;break;case"visibleOnTapSelection":t=this._selectedViaTap.value()}this._currencyLabel.setHidden(!t)},this._handleActualAutoLogButtonsVisibility=async e=>{const t=e.value();"alwaysOff"===t?this._scaleModeButtons&&this._destroyScaleModeButtons():(this._scaleModeButtons||(this._scaleModeButtons=await this._createScaleModeButtons(),this._pane.visuallyCollapsed().subscribe(this._updatePriceScaleModeButtonsVisibility)),"alwaysOn"===t?(this._isHovered.unsubscribe(this._updatePriceScaleModeButtonsVisibility),this._selectedViaTap.unsubscribe(this._updatePriceScaleModeButtonsVisibility)):"visibleOnMouseOver"===t?(this._selectedViaTap.unsubscribe(this._updatePriceScaleModeButtonsVisibility),this._isHovered.subscribe(this._updatePriceScaleModeButtonsVisibility)):(this._isHovered.unsubscribe(this._updatePriceScaleModeButtonsVisibility),this._selectedViaTap.subscribe(this._updatePriceScaleModeButtonsVisibility)),this._updatePriceScaleModeButtonsVisibility()),this.onOptimalWidthNeedToBeRecalculated()},this._updatePriceScaleModeButtonsVisibility=()=>{const e=this._isHovered.value(),t=this._selectedViaTap.value();let i=!1;if(!this._pane.visuallyCollapsed().value()&&!this._undoModel.model().chartFloatingTooltipVisible().value())switch((0,$o.actualAutoLogButtonsVisibility)().value()){case"visibleOnMouseOver":i=e;break;case"visibleOnTapSelection":i=t;break;case"alwaysOn":i=!0}this._scaleModeButtons?.element().classList.toggle("price-axis__modeButtons_hidden",!i)},this._updateScaleModeButtons=()=>{this._scaleModeButtons?.update()},this._chart=e,this._pane=t,this._undoModel=i,this._properties=s,this._isLeft="left"===n,this._options=(0,tt.merge)((0, +tt.clone)(pn),r),this._rendererOptionsProvider=o,this._backgroundBasedTheme=l,this._cell=document.createElement("div"),this._cell.className="price-axis",this._cell.dataset.name=`price-axis-${a.label}`,this._cell.style.width="25px",this._cell.style.left="0",this._canvasConfiguredHandler=()=>{this._undoModel.model().lightUpdate()},this._canvasBinding=(0,Kt.createBoundCanvas)(this._cell,(0,Ft.size)({width:16,height:16})),this._canvasBinding.subscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler);const c=this._canvasBinding.canvasElement;c.style.position="absolute",c.style.zIndex="1",c.style.left="0",c.style.top="0",this._topCanvasBinding=(0,Kt.createBoundCanvas)(this._cell,(0,Ft.size)({width:16,height:16})),this._topCanvasBinding.subscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler);const h=this._topCanvasBinding.canvasElement;h.style.position="absolute",h.style.zIndex="2",h.style.left="0",h.style.top="0",this._cell.setAttribute("aria-hidden","true"),this._mouseEventHandler=new Wt.MouseEventHandler(this._cell,this,{treatVertTouchDragAsPageScroll:!1,treatHorzTouchDragAsPageScroll:!0}),this._options.currencyConversionEnabled||this._options.unitConversionEnabled?(this._currencyLabel=new Fo(12),this._cell.appendChild(this._currencyLabel.element())):this._currencyLabel=null,this._properties.childs().fontSize.subscribe(this,this._onFontSizeChanged),this._options.mouseWheelScale&&(this._mouseWheelHelper=new mo,this._cell.addEventListener("wheel",this._onMousewheel.bind(this),{passive:!1})),this._axisInfo=a,this._offset=0,this.restoreDefaultCursor(),(0,Be.actualCurrencyUnitVisibility)().subscribe(this,this._recalcCurrencyAndUnitVisibility),this._selectedViaTap.subscribe(this._recalcCurrencyAndUnitVisibility.bind(this)),(0,$o.actualAutoLogButtonsVisibility)().subscribe(this,this._handleActualAutoLogButtonsVisibility),this._handleActualAutoLogButtonsVisibility((0,$o.actualAutoLogButtonsVisibility)()).catch((()=>{})),this._chart.anyPriceAxisHovered().subscribe(this._recalcCurrencyAndUnitVisibility,{callWithLast:!0}),this._pane.visuallyCollapsed().subscribe(this._recalcCurrencyAndUnitVisibility,{callWithLast:!0}),this.update()}async getContextMenuActions(e){this._initActions();const t=(0,n.ensureNotNull)(this._actions),i=this._chart.actions(),s=[];if(this._priceScale?.resetScaleAvailable().value()&&s.push(t.reset,new zo.Separator),s.push(this._autoScaleAction()),this._isMainSeriesAxis()&&s.push(this._lockScaleAction()),s.push(i.scaleSeriesOnly,this._invertAction(),new zo.Separator,this._regularScaleAction(),this._percentageAction(),this._indexedTo100Action(),this._logAction(),new zo.Separator,this._createMergeScalesAction(),new zo.Separator),!l.enabled("fundamental_widget")){const e=[i.showSymbolLabelsAction,i.showSeriesLastValue,null,null,i.showHighLowPriceLabels,l.enabled("show_average_close_price_line_and_label")?i.showAverageClosePriceLabel:null,null,i.showStudyPlotNamesAction,i.showStudyLastValue,this._options.countdownEnabled?i.showCountdown:null,new zo.Separator,t.alignLabels].filter(tt.notNull) +;s.push(new zo.Action({actionId:"Chart.PriceScale.Labels",options:{label:Qo,subItems:e}}))}const{createLinesAction:o}=await(0,Go.actionsProviderModule)();return s.push(o(this._chart)),this._undoModel.crosshairSource().isMenuEnabled()&&s.push(i.addPlusButton),e&&!this._chart.onWidget()&&l.enabled("show_chart_property_page")&&l.enabled("chart_property_page_scales")&&i.scalesProperties&&s.push(new zo.Separator,i.scalesProperties),s}getElement(){return this._cell}onOptimalWidthNeedToBeRecalculated(e){(this._size.width1e-14){const r=Math.max(0,-Math.log10(Math.max(Math.abs(i),Math.abs(n)))),a=.11111111111111/Math.pow(10,Math.floor(r)),l=s.formatPrice(Math.min(i,n)-a,o),c=s.formatPrice(Math.max(i,n)+a,o);e=Math.max(e,this._widthCache.measureText(t,l),this._widthCache.measureText(t,c))}}}const i=this._isCurrencyLabelEnabled()?Math.round((0,n.ensureNotNull)(this._currencyLabel).width()):0,s=e||34;let o=Math.max(i,this._scaleModeButtons?.width()??0,Math.ceil(t.borderSize+t.additionalPaddingInner+t.paddingInner+t.paddingOuter+s+4));return o+=o%2,o}setSizeAndOffset(e,t){(0,Ft.equalSizes)(this._size,e)||(this._size=e,this._canvasBinding.resizeCanvasElement(e),this._topCanvasBinding.resizeCanvasElement(e),this._cell.style.width=e.width+"px",this._cell.style.height=e.height+"px",this._cell.style.minWidth=e.width+"px"),this._offset!==t&&(this._offset=t,this._cell.style.left=t+"px")}getWidth(){return this._size.width}getImage(){const e=this._size,t=(0,Kt.createDisconnectedCanvas)(document,e);return(0,Kt.getPrescaledContext2D)(t).drawImage(this._canvasBinding.canvasElement,0,0,e.width,e.height),null===this._currencyLabel||this._currencyLabel.isHidden()||this._currencyLabel.drawLabel((0,Kt.getContext2D)(t),e.width,(0,ro.getCanvasDevicePixelRatio)(t)),t}update(){null!==this._priceScale&&(this._priceScale.marks(),this.rendererOptions())}paint(e){if(!this._isVisible||0===this._size.width||0===this._size.height)return;if(e===ao.InvalidationLevel.None)return;const t=this._pane.state(),i=!t.maximized().value()&&t.collapsed().value();if(i&&e{if(o){e.save(),e.beginPath();const i=(0,n.ensureNotNull)(this._currencyLabel).labelBottom();e.rect(0,i*t.verticalPixelRatio,t.bitmapSize.width,t.bitmapSize.height),e.clip()}i(),o&&e.restore()};let a;if(e>ao.InvalidationLevel.Cursor){const e=(0,Kt.getContext2D)(this._canvasBinding.canvasElement),t=(0,Kt.getBindingRenderingInfo)(this._canvasBinding);if(i||(this._alignLabels(),s&&this.updateCurrencyLabel()),this._drawBackground(e,t),i||r(e,t,(()=>{this._drawDrawingsHighlight(e,t)})),this._drawBorder(e,t),s&&!i){this._scaleModeButtons&&(this._scaleModeButtons.element().style.background=this._highlighted?this._highlightColor():this.backgroundColor());const i=this._groupedSources();r(e,t,(()=>{this._drawTickMarks(e,t),this._drawLabels(this._views(0,i),e,t)})),a=i}}if(s&&!i){const e=(0,Kt.getContext2D)(this._topCanvasBinding.canvasElement),t=(0,Kt.getBindingRenderingInfo)(this._topCanvasBinding);e.clearRect(0,0,t.bitmapSize.width,t.bitmapSize.height),r(e,t,(()=>{this._drawLabels(this._views(1,a??this._groupedSources()),e,t),this._drawCrossHairLabel(e,t)}))}}restoreDefaultCursor(){this._setCursor("")}priceScale(){return(0,n.ensureNotNull)(this._priceScale)}setPriceScale(e){this._priceScale!==e&&(null!==this._priceScale&&(this._priceScale.onMarksChanged().unsubscribe(this,this.onOptimalWidthNeedToBeRecalculated),this._priceScale.modeChanged().unsubscribeAll(this)),this._priceScale=e,null!==e&&(e.onMarksChanged().subscribe(this,this.onOptimalWidthNeedToBeRecalculated),e.modeChanged().subscribe(this,(()=>this.onOptimalWidthNeedToBeRecalculated(!0))),this.onOptimalWidthNeedToBeRecalculated(),this._scaleModeButtons&&(e.modeChanged().subscribe(this,this._updateScaleModeButtons),this._updateScaleModeButtons())))}isVisible(){return this._isVisible}setVisible(e){(e=!!e)!==this._isVisible&&(this._cell.style.display=e?"table-cell":"none",this._isVisible=e)}destroy(){null!==this._currencyMenu&&(this._currencyMenu.destroy(),this._currencyMenu=null),null!==this._unitMenu&&(this._unitMenu.destroy(),this._unitMenu=null),this._pane.visuallyCollapsed().unsubscribe(this._recalcCurrencyAndUnitVisibility),this._topCanvasBinding.unsubscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler),this._topCanvasBinding.dispose(),this._canvasBinding.unsubscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler),this._canvasBinding.dispose(),null!==this._priceScale&&(this._priceScale.onMarksChanged().unsubscribe(this,this.onOptimalWidthNeedToBeRecalculated),this._priceScale.modeChanged().unsubscribeAll(this)),this._priceScale=null,this._mouseEventHandler.destroy(),this._properties.childs().fontSize.unsubscribe(this,this._onFontSizeChanged),null!==this._actions&&(Object.values(this._actions).forEach((e=>{e.destroy()})),this._actions=null),(0,Be.actualCurrencyUnitVisibility)().unsubscribeAll(this),this._chart.anyPriceAxisHovered().unsubscribe(this._recalcCurrencyAndUnitVisibility),(0, +$o.actualAutoLogButtonsVisibility)().unsubscribeAll(this),this._chart.setPriceAxisHovered(this,!1),this._destroyScaleModeButtons(),this._destroyed=!0}axisInfo(){return this._axisInfo}setHighlighted(e){this._highlighted=e}backgroundColor(){return this._pane.state().model().backgroundColor().value()}backgroundTopColor(){return this._pane.state().model().backgroundTopColor().value()}lineColor(){return this._properties.childs().lineColor.value()}textColor(){return this._properties.childs().textColor.value()}fontSize(){return this._properties.childs().fontSize.value()}baseFont(){return(0,si.makeFont)(this.fontSize(),m.CHART_FONT_FAMILY,"")}rendererOptions(){let e=this._rendererOptionsProvider.options();return this._color===e.color&&this._fontSize===e.fontSize||(this._color=e.color),this._fontSize!==e.fontSize&&(this._widthCache.reset(),this._fontSize=e.fontSize,this.onOptimalWidthNeedToBeRecalculated()),e}mouseEnterEvent(e){this._undoModel.model().chartFloatingTooltipVisible().value()||(this._chart.setPriceAxisHovered(this,!0),this._isHovered.setValue(!0),this._applyLightUpdateIfRequired(),this._mouseEnterOrTouchStartEvent(e))}mouseMoveEvent(e){this._mouseOrTouchMoveEvent(e)}mouseDownEvent(e){this._mouseDownOrTouchStartEvent(e)}touchStartEvent(e){this._mouseOrTouchMoveEvent(e),this._mouseEnterOrTouchStartEvent(e),this._mouseDownOrTouchStartEvent(e)}pressedMouseMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}touchMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}pinchStartEvent(e,t,i,s){return s.bothPointsOnTargetElement}pinchEvent(e,t,i){if(this._zoomAvailable()&&this._options.pinchScale){if(this._dragScaleActive&&this._finishScale(),!this._pinching)return this._pinching=!0,void this._undoModel.startTwoPointsScalePrice(this._pane.state(),this.priceScale(),t.y,i.y);this._undoModel.twoPointsScalePriceTo(this._pane.state(),this.priceScale(),t.y,i.y)}}pinchEndEvent(){this._pinching=!1,this._undoModel.endTwoPointsScalePrice(this._pane.state(),this.priceScale())}mouseDownOutsideEvent(){this._finishScale()}touchStartOutsideEvent(){this._finishScale(),this._selectedViaTap.setValue(!1)}mouseUpEvent(e){this._mouseUpOrTouchEndEvent(e)}touchEndEvent(e){this._mouseLeaveOrTouchEndEvent(e),this._mouseUpOrTouchEndEvent(e)}mouseClickEvent(e){this._mouseClickOrTapEvent(e)}tapEvent(e){this._mouseClickOrTapEvent(e)}mouseLeaveEvent(e){this._chart.setPriceAxisHovered(this,!1),this._isHovered.setValue(!1),this._applyLightUpdateIfRequired(),this._mouseLeaveOrTouchEndEvent(e)}mouseDoubleClickEvent(e){this._mouseDoubleClickOrDoubleTapEvent(e)}doubleTapEvent(e){this._mouseDoubleClickOrDoubleTapEvent(e)}contextMenuEvent(e){this._contextMenuOrTouchContextMenuEvent(e)}touchContextMenuEvent(e){this._contextMenuOrTouchContextMenuEvent(e)}dataSourceAtPoint(e,t){const i=this._pane.state();if(!i.maximized().value()&&i.collapsed().value())return null;const s=this._groupedSources(),o=[...s.sources,...s.topLevelSources,...i.customSources(),...i.sourcesByGroup().multipaneSources()];let n=null,r=null;if(!this._priceScale)return null;const a=(e,t)=>{ +const i=r?.target()??0;e.target()>i&&(r=e,n=t)},l=new Vt.Point(e,t),c=(0,Kt.getBindingRenderingInfo)(this._canvasBinding);for(let e=o.length-1;e>=0;--e){const t=o[e],s=t.priceAxisViews(i,this._priceScale);if(s&&0!==s.length)for(let e=s.length-1;e>=0;--e){const i=s[e].renderer();if(void 0!==i.hitTest){const e=i.hitTest(l,c,this._isLeft?"left":"right");null!==e&&a(e,t)}}}return this._lastHittestResult=r,n}reset(){const e=this._pane.state(),t=this.priceScale();this._undoModel.resetPriceScale(e,t),this.onOptimalWidthNeedToBeRecalculated(!0)}updateCurrencyLabel(){if(null!==this._currencyLabel){if(this._options.currencyConversionEnabled){const e=this.priceScale().currency(this._undoModel.model().availableCurrencies());null===e||"alwaysOff"===(0,Be.actualCurrencyUnitVisibility)().value()?this._currencyLabel.disableCurrency():(this._currencyLabel.enableCurrency(),this._currencyLabel.setCurrencyInfo(e))}else this._currencyLabel.disableCurrency();if(this._options.unitConversionEnabled){const e="alwaysOff"===(0,Be.actualCurrencyUnitVisibility)().value(),t=this._undoModel.model().availableUnits(),i=this.priceScale().unit(t);null===i||e?this._currencyLabel.disableUnit():(this._currencyLabel.enableUnit(),this._currencyLabel.setUnitInfo(i));const s=this.priceScale().measureUnitId(t);null===s||e?this._currencyLabel.disableMeasureUnitId():(this._currencyLabel.enableMeasureUnitId(),this._currencyLabel.setMeasureUnitIdInfo(s))}else this._currencyLabel.disableUnit(),this._currencyLabel.disableMeasureUnitId()}}_groupedSources(){const e=this._pane.state(),t=e.model(),i=this._pane.state().sourcesByGroup(),s=this._isLeft?i.leftPriceScalesSources():i.rightPriceScalesSources(),o=this._priceScale===e.defaultPriceScale(),n=new Set(e.customSources()),r=t=>!!n.has(t)||(t.priceScale()===this._priceScale||o&&e.isOverlay(t)),a={sources:[...s.filter(r),...e.customSources()],topLevelSources:new Set};if(o){const t=this._pane.state().dataSources();for(const i of t)e.isOverlay(i)&&a.sources.push(i)}const l=t.lineBeingEdited()??t.lineBeingCreated();l&&r(l)&&(a.topLevelSources.add(l),a.lineBeingEditedOrCreated=l);const c=t.customSourceBeingMoved();c&&r(c)&&(a.topLevelSources.add(c),a.customSourceBeingMoved=c);const h=t.sourcesBeingMoved().filter(r);h.length>0&&(t.sourcesBeingMoved().forEach((e=>a.topLevelSources.add(e))),a.sourcesBeingMoved=h);const d=t.selection().allSources().filter(r);d.length>0&&(d.forEach((e=>a.topLevelSources.add(e))),a.selectedSources=d);const u=t.hoveredSource();return u&&r(u)&&(a.topLevelSources.add(u),a.hoveredSource=u),a}_isCurrencyLabelEnabled(){return null!==this._currencyLabel&&this._currencyLabel.isEnabled()}_alignLabels(){const e=this._size.height;let t=e/2;const i=[],s=this.priceScale(),o=s.orderedSources().slice(),n=this._pane.state(),r=this.rendererOptions();if(s===n.defaultPriceScale()){const e=n.priceDataSources();for(let t=0;t{if(t.ignoreAlignment()||!t.isVisible())return!1;const{total:i}=t.topBottomTotalHeight(r),s=t.floatCoordinate();return s>-i&&se.floatCoordinate()<=t)),h=i.filter((e=>e.floatCoordinate()>t));c.sort(((e,t)=>t.floatCoordinate()-e.floatCoordinate())),c.length>0&&h.length>0&&h.push(c[0]),h.sort(((e,t)=>e.floatCoordinate()-t.floatCoordinate()));for(const e of i)e.setFixedCoordinate(e.coordinate());if(s.properties().childs().alignLabels.value()){if(h.length>0||c.length>0){{const t=c[0]??h[0],i=t.getFixedCoordinate(),{top:s,bottom:o,total:n}=t.topBottomTotalHeight(r);n0&&t.setFixedCoordinate(s)}{const t=h[0]??c[0],i=t.getFixedCoordinate(),{top:s,bottom:o,total:n}=t.topBottomTotalHeight(r);ne&&t.setFixedCoordinate(e-o)}}for(let e=1;el-n)t.setFixedCoordinate(l-n);else if(l>0&&a-s<0&&a+o>0){const{top:e}=i.topBottomTotalHeight(r);t.setFixedCoordinate(Math.min(l-e-o,s))}}for(let t=1;te&&i.setFixedCoordinate(Math.max(l+o+t,e-s))}}}}_drawTickMarks(e,t){const i=this.priceScale().marks();e.save(),e.font=this.baseFont();const s=this.rendererOptions(),{horizontalPixelRatio:o,verticalPixelRatio:r}=t,a=this._isLeft?Math.floor((this._size.width-s.additionalPaddingInner)*o):0,l=this._isLeft?Math.round(a-s.paddingInner*o):Math.round(a+(s.additionalPaddingInner+s.paddingInner)*o),c=this.fontSize(),h=this._isCurrencyLabelEnabled()?(0,n.ensureNotNull)(this._currencyLabel).labelBottom():0,d=i.map((t=>{if(this._options.croppedTickMarks)return{visible:!0,yCorrection:this._widthCache.yMidCorrection(e,t.label)};const i=t.coord-c/2,s=t.coord+c/2,o=!(s>this._size.height||ithis._size.height||i{for(let t=i.length;t--;){if(!d[t].visible)continue;const s=i[t];e.fillText(s.label,l/o,s.coord+d[t].yCorrection)}})),e.restore()}async _showCurrenciesContextMenu(){if(this._currencyMenu)return this._currencyMenu.destroy(),void(this._currencyMenu=null);let e;(0,re.trackEvent)("GUI","Currency conversion");const t=()=>{this._currencyMenu=null,this._recalcCurrencyAndUnitVisibility(),this._currencyLabel?.setCurrencyExpanded(!1)};if(un)e=await Ho((0,n.ensureNotNull)(this._currencyLabel).currencyLabelElement(),["toggle_currency_menu_inner",this._undoModel.model().id(),this._pane.state().id(),this.priceScale().id()],t);else{ +const{currencyActions:s}=await Promise.all([i.e(1095),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(3672),i.e(1697),i.e(8260),i.e(844),i.e(3946),i.e(7399),i.e(2227),i.e(9418),i.e(3179),i.e(2704)]).then(i.bind(i,27056));e=await Wo(en,(()=>s(this._undoModel,(0,n.ensureNotNull)(this._currencyLabel).currencyInfo(),this.priceScale())),(0,n.ensureNotNull)(this._currencyLabel).currencyLabelElement(),t)}this._destroyed?e.destroy():(this._currencyLabel?.setCurrencyExpanded(!0),this._currencyMenu=e)}async _showUnitsContextMenu(){if(this._unitMenu)return this._unitMenu.destroy(),void(this._unitMenu=null);let e;(0,re.trackEvent)("GUI","Unit conversion");const t=()=>{this._unitMenu=null,this._recalcCurrencyAndUnitVisibility(),this._currencyLabel?.setUnitExpanded(!1)};if(_n)e=await Ho((0,n.ensureNotNull)(this._currencyLabel).unitLabelElement(),["toggle_unit_menu_inner",this._undoModel.model().id(),this._pane.state().id(),this.priceScale().id()],t);else{const{unitActions:s}=await Promise.all([i.e(1095),i.e(8185),i.e(1681),i.e(5371),i.e(2202),i.e(5563),i.e(2647),i.e(3439),i.e(3672),i.e(1697),i.e(8260),i.e(844),i.e(3946),i.e(7399),i.e(2227),i.e(9418),i.e(3179),i.e(2704)]).then(i.bind(i,81664));e=await Wo(tn,(()=>s(this._undoModel,(0,n.ensureNotNull)(this._currencyLabel).unitInfo(),this.priceScale())),(0,n.ensureNotNull)(this._currencyLabel).unitLabelElement(),t)}this._destroyed?e.destroy():(this._currencyLabel?.setUnitExpanded(!0),this._unitMenu=e)}_onFontSizeChanged(){this.onOptimalWidthNeedToBeRecalculated()}_mouseOrTouchMoveEvent(e){if(!this._priceScale)return;if(this._undoModel.model().chartFloatingTooltipVisible().value())return void this._setCursorClassName("default");if(e.localX<0||e.localY<0||e.localX>=this._size.width||e.localY>=this._size.height)return;let t=!0;const i=this.dataSourceAtPoint(e.localX,e.localY);i?(this._setCursorClassName("pointer"),this._lastHittestResult?.data()?.hoverModelFromAxis&&(this._undoModel.model().setHoveredSource(i,this._lastHittestResult?.data()??null,0),t=!1)):this._setResizeCursor(),t&&this._undoModel.model().setHoveredSource(null,null)}_mouseDownOrTouchStartEvent(e){this._zoomAvailable()&&this._options.pressedMouseMoveScale&&!this._pinching&&(this._dragScaleActive=!0,this._undoModel.startScalePrice(this._pane.state(),this.priceScale(),e.localY))}_mouseEnterOrTouchStartEvent(e){this._setResizeCursor()}_pressedMouseOrTouchMoveEvent(e){if(this._dragScaleActive){const t=this.priceScale();this._undoModel.scalePriceTo(this._pane.state(),t,e.localY)}}_mouseUpOrTouchEndEvent(e){this._finishScale()}_finishScale(){this._dragScaleActive&&(this._undoModel.endScalePrice(this._pane.state(),this.priceScale()),this.restoreDefaultCursor(),this._dragScaleActive=!1)}_mouseClickOrTapEvent(e){if(this._currencyLabel){if(this._currencyLabel.currencyConversionAvailable()&&this._currencyLabel.currencyLabelElement().contains(e.target))return this._showCurrenciesContextMenu(),void e.preventDefault() +;if(this._currencyLabel.unitConversionAvailable()&&this._currencyLabel.unitLabelElement().contains(e.target))return this._showUnitsContextMenu(),void e.preventDefault()}e.isTouch&&this._selectedViaTap.setValue(!this._selectedViaTap.value());const t=this.dataSourceAtPoint(e.localX,e.localY);t&&this._undoModel.selectionMacro((e=>{e.selection().isSelected(t)&&this._undoModel.model().lastSelectedHittestData()===this._lastHittestResult?.data()||(e.clearSelection(),e.addSourceToSelection(t,this._lastHittestResult?.data()??null))})),e.target instanceof HTMLCanvasElement&&this._undoModel.model().setActivationChartFloatingTooltipHint(null)}_mouseLeaveOrTouchEndEvent(e){this._setCursorClassName("")}_mouseDoubleClickOrDoubleTapEvent(e){if(this._currencyLabel?.currencyLabelElement().contains(e.target)||this._currencyLabel?.unitLabelElement().contains(e.target))return;const t=this.dataSourceAtPoint(e.localX,e.localY);t?this._pane.processDoubleClickOnSource(t,this._lastHittestResult??void 0,{origin:"price_scale"}):(this.reset(),(0,re.trackEvent)("GUI","Double click price scale"))}async _contextMenuOrTouchContextMenuEvent(e){if(this._options.contextMenuEnabled){const t=this.dataSourceAtPoint(e.localX,e.localY);if(null!==t&&this._options.contextMenu.source){return void this._undoModel.model().selectionMacro((i=>{i.selection().isSelected(t)||(i.clearSelection(),i.addSourceToSelection(t)),this._pane.showContextMenuForSelection(e,{origin:"price_scale"})}))}if(this._options.contextMenu.general){const t=await this.getContextMenuActions(!0),i=this._undoModel.model().panes().findIndex((e=>e.id()===this._pane.state().id())),s=this._chart.chartWidgetCollection().chartModels().value().findIndex((e=>e.id()===this._undoModel.id())),o=this._priceScale?.id()&&-1!==i&&-1!==s;Io.ContextMenuManager.showMenu(t,e,{statName:"PriceScaleContextMenu"},{menuName:"PriceScaleContextMenu",...o&&{detail:{type:"priceScale",id:this._priceScale?.id()??"",paneIndex:i,chartIndex:s}}})}}}_setResizeCursor(){const e=this.priceScale();e.isPercentage()||e.isIndexedTo100()?this._setCursorClassName(""):this._zoomAvailable()&&(this._options.pressedMouseMoveScale||this._options.mouseWheelScale)&&this._setCursorClassName("ns-resize")}_setCursorClassName(e){let t="";e&&!this._pane.visuallyCollapsed().value()&&(t="price-axis--cursor-"+e),this._currentCursorClassName!==t&&(this._currentCursorClassName&&this._cell.classList.remove(this._currentCursorClassName),t&&this._cell.classList.add(t),this._currentCursorClassName=t)}_zoomAvailable(){return!this.priceScale().isEmpty()&&this.priceScale().hasCalculatedPriceRange()&&this._undoModel.model().zoomEnabled()}_onMousewheel(e){if(!this._zoomAvailable()||!this._options.mouseWheelScale)return;const t=(0,n.ensureNotNull)(this._mouseWheelHelper).processWheel(e).deltaY;if(0===t)return;e.cancelable&&e.preventDefault();const i=this._undoModel,s=this._pane.state(),o=this.priceScale(),r=this._cell.getBoundingClientRect(),a=e.clientY-r.top,l=a+15*t;i.startScalePrice(s,this.priceScale(),a,!0),i.scalePriceTo(s,o,l),i.endScalePrice(s,o), +e.stopPropagation()}_drawCrossHairLabel(e,t){const i=this._pane.state(),s=i.model(),o=this.priceScale(),n=s.crosshairSource().priceAxisViews(i,o);n&&n.length>0&&this._drawLabels(n,e,t)}_drawBackground(e,t){const i=this.backgroundTopColor(),s=this.backgroundColor(),{bitmapSize:o}=t;if(i===s?(0,Kt.clearRect)(e,0,0,o.width,o.height,this.backgroundColor()):(0,$t.clearRectWithGradient)(e,0,0,o.width,o.height,i,s),this._highlighted){e.globalAlpha=.5;const t=L.themes[this._backgroundBasedTheme.value()].getThemedColor("color-price-axis-highlight");(0,Kt.fillRect)(e,0,0,o.width,o.height,t),e.globalAlpha=1}}_drawDrawingsHighlight(e,t){const i=this._pane.state().model(),s=this.priceScale(),o=i.selection().lineDataSources().filter((e=>!e.isFixed()&&e.priceScale()===s)).reduce(((e,t)=>{const i=t.priceAxisPoints();return 0===i.length?e:e.concat(i)}),[]);o.length>0&&this._hightlightBackground(e,o,this.priceScale().mainSource(),t);const n=i.crosshairSource();n.startMeasurePoint()&&this._hightlightBackground(e,n.measurePoints(),this.priceScale().mainSource(),t)}_drawBorder(e,t){e.save(),e.fillStyle=this.lineColor();const{horizontalPixelRatio:i}=t,s=Math.max(1,Math.floor(this.rendererOptions().borderSize*i)),o=this._isLeft?t.bitmapSize.width-s:0;e.fillRect(o,0,s,t.bitmapSize.height),e.restore()}_drawLabels(e,t,i){const s=this.rendererOptions(),o=this._isLeft?"right":"left";for(const n of e)n.isAxisLabelVisible()&&(t.save(),n.renderer().draw(t,i,s,this._widthCache,o),t.restore())}_hightlightBackground(e,t,i,s){if(!i)return;const o=i.firstValue();if(null===o)return;let n=t[0].price,r=t[0].price;for(let e=1;e=o&&(o=e,r=t),e<=s&&(s=e,n=t)}}return r&&n?[r,n]:[]}}_views(e,t){const i=this._pane.state(),s=this.priceScale(),o=[];if(1!==e)for(const e of t.sources)t.topLevelSources.has(e)||o.push(...e.priceAxisViews(i,s)??[]);if(0!==e){const e=new Set,n=t=>!e.has(t),r=t=>{const i=t.filter(n);o.push(...this._viewsOrMaxMinViews(i));for(const t of i)e.add(t)};t.customSourceBeingMoved&&r([t.customSourceBeingMoved]),t.sourcesBeingMoved&&r(t.sourcesBeingMoved),t.selectedSources&&r(t.selectedSources),t.hoveredSource&&r([t.hoveredSource]),t.lineBeingEditedOrCreated&&r([t.lineBeingEditedOrCreated]);for(const e of[...t.sources,...i.customSources()])e.topPriceAxisViews&&o.push(...e.topPriceAxisViews(i,s)??[])}return o}_initActions(){if(!this._pane.hasState()||null!==this._actions)return;const e=this._undoModel,t=new Ko.ActionWithStandardIcon({ +actionId:"Chart.PriceScale.Reset",options:{label:sn,iconId:"Chart.Reset",shortcutHint:(0,gt.humanReadableHash)(gt.Modifiers.Alt+82),statName:"ResetScale",onExecute:()=>this.reset()}}),i=new zo.Action({actionId:"Chart.PriceScale.ToggleAutoScale",options:{label:on,checkable:!0,checked:!0,statName:"ToggleAutoScale",onExecute:()=>{e.togglePriceScaleAutoScaleMode(this.priceScale()),this._updateScalesActions()}}}),s=new zo.Action({actionId:"Chart.PriceScale.TogglePercentage",options:{label:nn,checkable:!0,checked:this.priceScale().isPercentage(),statName:"TogglePercantage",onExecute:()=>{e.togglePriceScalePercentageScaleMode(this.priceScale()),this._updateScalesActions()}}}),o=new zo.Action({actionId:"Chart.PriceScale.ToggleIndexedTo100",options:{label:rn,checkable:!0,checked:this.priceScale().isIndexedTo100(),statName:"ToggleIndexedTo100",onExecute:()=>{e.togglePriceScaleIndexedTo100ScaleMode(this.priceScale()),this._updateScalesActions()}}}),n=new zo.Action({actionId:"Chart.PriceScale.ToggleLogarithmic",options:{label:an,checkable:!0,checked:this.priceScale().isLog(),statName:"ToggleLogScale",onExecute:()=>{e.togglePriceScaleLogScaleMode(this.priceScale()),this._updateScalesActions()}}}),r=new zo.Action({actionId:"Chart.PriceScale.ToggleRegular",options:{label:ln,checkable:!0,checked:this.priceScale().isRegular(),statName:"ToggleRegularScale",onExecute:()=>{e.setPriceScaleRegularScaleMode(this.priceScale()),this._updateScalesActions()}}}),a=new jo({actionId:"Chart.PriceScale.Labels.ToggleNoOverlappingLabelsVisibility",options:{label:cn,checkable:!0,checked:this.priceScale().properties().childs().alignLabels.value(),statName:"TogglePreciseLabels"}},{property:this.priceScale().properties().childs().alignLabels,undoModel:e,undoText:Yo}),l=new zo.Action({actionId:"Chart.PriceScale.ToggleInvertScale",options:{label:hn,checkable:!0,checked:this.priceScale().isInverted(),statName:"Invert Scale",onExecute:()=>{e.invertPriceScale(this.priceScale()),this._updateScalesActions()}}});this._actions={reset:t,setAutoScale:i,setPercentage:s,setIndexedTo100:o,setLog:n,setRegular:r,alignLabels:a,invertScale:l},this._updateScalesActions()}_logAction(){return this._isMainSeriesAxis()?this._chart.actions().logSeriesScale:(0,n.ensureNotNull)(this._actions).setLog}_percentageAction(){return this._isMainSeriesAxis()?this._chart.actions().percentSeriesScale:(0,n.ensureNotNull)(this._actions).setPercentage}_indexedTo100Action(){return this._isMainSeriesAxis()?this._chart.actions().indexedTo100SeriesScale:(0,n.ensureNotNull)(this._actions).setIndexedTo100}_autoScaleAction(){return this._isMainSeriesAxis()?this._chart.actions().autoSeriesScale:(0,n.ensureNotNull)(this._actions).setAutoScale}_regularScaleAction(){return this._isMainSeriesAxis()?this._chart.actions().regularSeriesScale:(0,n.ensureNotNull)(this._actions).setRegular}_lockScaleAction(){const e=this._chart.actions().lockSeriesScale,t=dn(this.priceScale(),this._undoModel.model().mainSeriesScaleRatio());return e.update({hint:t}),e}_invertAction(){ +return this._isMainSeriesAxis()?this._chart.actions().invertSeriesScale:(0,n.ensureNotNull)(this._actions).invertScale}_isMainSeriesAxis(){return this.priceScale().hasMainSeries()}_updateScalesActions(){const e=this.priceScale(),t=this._isMainSeriesAxis(),i=(0,n.ensureNotNull)(e.mainSource()).properties(),s=t&&e.isLockScale(),o=t&&6===i.style.value(),r=(0,n.ensureNotNull)(this._actions);r.setRegular.update({checked:e.isRegular(),disabled:s||o}),r.setPercentage.update({checked:e.isPercentage(),disabled:s||o}),r.setIndexedTo100.update({checked:e.isIndexedTo100(),disabled:s||o}),r.setLog.update({checked:e.isLog(),disabled:s||o}),r.setAutoScale.update({checked:e.isAutoScale(),disabled:e.properties().childs().autoScaleDisabled.value()})}_createMergeScalesAction(){const e=this._chart.actions(),t=this._undoModel.model().priceScaleSlotsCount();if(t.left+t.right===1)return 0===t.left?e.moveScaleToLeft:e.moveScaleToRight;const i=[];return i.push(e.mergeLeftScalesAction),i.push(e.mergeRightScalesAction),new zo.Action({actionId:"Chart.PriceScale.MergeAllScales",options:{label:Jo,subItems:i}})}_setCursor(e){let t="";"grabbing"!==e&&"ns-resize"!==e||(t="price-axis--cursor-"+e),this._currentCursorClassName!==t&&(this._currentCursorClassName&&this._cell.classList.remove(this._currentCursorClassName),t&&this._cell.classList.add(t),this._currentCursorClassName=t,this._cell.style.cursor)}async _createScaleModeButtons(){const{PriceScaleModeButtonsRenderer:e}=await Promise.all([i.e(8975),i.e(2318),i.e(2227),i.e(3555)]).then(i.bind(i,34419)),t=new e({className:"price-axis__modeButtons",setMode:e=>{this._priceScale&&("log"===e?this._chart.model().setPriceScaleMode({log:!this._priceScale.isLog()},this._priceScale,Xo):this._chart.model().setPriceScaleMode({autoScale:!this._priceScale.isAutoScale()},this._priceScale,Zo))},getMode:()=>this._priceScale?.mode()});return t.element().style.background=this.backgroundColor(),this._cell.appendChild(t.element()),this._priceScale?.modeChanged().subscribe(this,this._updateScaleModeButtons),t}_destroyScaleModeButtons(){this._scaleModeButtons&&(this._isHovered.unsubscribe(this._updatePriceScaleModeButtonsVisibility),this._selectedViaTap.unsubscribe(this._updatePriceScaleModeButtonsVisibility),this._pane.visuallyCollapsed().unsubscribe(this._updatePriceScaleModeButtonsVisibility),this._priceScale?.modeChanged().unsubscribe(this,this._updateScaleModeButtons),this._scaleModeButtons.destroy(),this._scaleModeButtons=null)}_highlightColor(){const e=this.backgroundColor(),t=this._backgroundBasedTheme.value();if(null===this._highlightColorCache||this._highlightColorCache.backgroundColor!==e||this._highlightColorCache.theme!==t){const i=(0,Ro.applyTransparency)(L.themes[this._backgroundBasedTheme.value()].getThemedColor("color-price-axis-highlight"),50),s=(0,Nt.rgbaToString)((0,Nt.blendRgba)((0,Nt.parseRgba)(this.backgroundColor()),(0,Nt.parseRgba)(i)));this._highlightColorCache={theme:t,backgroundColor:e,resultColor:s}}return this._highlightColorCache.resultColor}_applyLightUpdateIfRequired(){ +"visibleOnMouseOver"===(0,Be.actualCurrencyUnitVisibility)().value()&&this._undoModel.model().lightUpdate()}}function vn(e,t){return e.position-t.position}function Sn(e,t,i){const s=(e.position-t.position)/(e.time-t.time);return Math.sign(s)*Math.min(Math.abs(s),i)}!function(e){e[e.MaxStartDelay=50]="MaxStartDelay",e[e.EpsilonDistance=1]="EpsilonDistance"}(fn||(fn={}));class bn{constructor(e,t,i,s){this._position1=null,this._position2=null,this._position3=null,this._position4=null,this._animationStartPosition=null,this._durationMsecs=0,this._speedPxPerMsec=0,this._minSpeed=e,this._maxSpeed=t,this._dumpingCoeff=i,this._minMove=s}addPosition(e,t){if(null!==this._position1){if(this._position1.time===t)return void(this._position1.position=e);if(Math.abs(this._position1.position-e)50)return;let i=0;const s=Sn(this._position1,this._position2,this._maxSpeed),o=vn(this._position1,this._position2),n=[s],r=[o];if(i+=o,null!==this._position3){const e=Sn(this._position2,this._position3,this._maxSpeed);if(Math.sign(e)===Math.sign(s)){const t=vn(this._position2,this._position3);if(n.push(e),r.push(t),i+=t,null!==this._position4){const e=Sn(this._position3,this._position4,this._maxSpeed);if(Math.sign(e)===Math.sign(s)){const t=vn(this._position3,this._position4);n.push(e),r.push(t),i+=t}}}}let a=0;for(let e=0;en&&(e.result={hittest:t,source:i,renderer:s,isCustom:o})}const Qn={contextMenuEnabled:!0,contextMenu:In.defaultChartWidgetActionsOptions,priceScaleContextMenuEnabled:!0,legendWidgetEnabled:!0,controlsEnabled:!0,propertyPagesEnabled:!0,sourceSelectionEnabled:!0,countdownEnabled:!0},er=new Map([[Ut.AreaName.Text,"Text"],[Ut.AreaName.Style,"Style"]]),tr=!l.enabled("display_legend_on_all_charts");var ir;!function(e){e[e.MinScrollSpeed=.2]="MinScrollSpeed",e[e.MaxScrollSpeed=7]="MaxScrollSpeed",e[e.DumpingCoeff=.997]="DumpingCoeff",e[e.ScrollMinMove=15]="ScrollMinMove",e[e.SPenMaxDistance=5]="SPenMaxDistance",e[e.CollapsedHeight=33]="CollapsedHeight"}(ir||(ir={}));let sr=null;function or(e,t){return!(0,Ut.shouldDefaultActionBeExecuted)(e,t,"pressedMouseMoveHandler","touchMoveHandler")}var nr;!function(e){e[e.None=0]="None",e[e.DownWithoutMove=1]="DownWithoutMove",e[e.DownWithMove=2]="DownWithMove"}(nr||(nr={}));class rr{constructor(e,t,i,s){this._legendWidget=null,this._paneControls=null,this._isDestroyed=!1,this._trackCrosshairOnlyAfterLongTap=(0,lo.lastMouseOrTouchEventInfo)().isTouch,this._startTrackPoint=null,this._exitTrackingModeOnNextTry=!1,this._startMoveSourceParams=null,this._startChangeLineToolParams=null,this._preventSourceChange=!1, +this._preventScrollUntilNextMouseDownOrTouchStart=!1,this._clonningAtMoveLineTools=null,this._startCloningPoint=null,this._size=(0,Ft.size)({width:0,height:0}),this._themedTopColor=null,this._initCrossHairPosition=null,this._firstZoomPoint=null,this._editDialog=null,this._processing=!1,this._pressedMoveStage=0,this._touchMove=!1,this._startTouchPoint=null,this._isSelecting=!1,this._prevHoveredHittest=null,this._contextMenuX=0,this._contextMenuY=0,this._startScrollingPos=null,this._isScrolling=!1,this._scrollPriceScale=null,this._scrollXAnimation=null,this._prevPinchScale=1,this._pinching=!1,this._wasPinched=!1,this._longTap=!1,this._contextMenuOpenedOnLastTap=!1,this._paneControlsResizeObserver=null,this._lastClickedSource=null,this._customLegendWidgetsFactoryMap=new Map,this._prevMoveEventPosition=null,this._onMagnetStateChangedListener=this._onMagnetStateChanged.bind(this),this._onShiftKeyStateChangedListener=this._onShiftKeyStateChanged.bind(this),this._currentCursorClassName="",this._lastFinishedToolId=null,this._needResetMeasureLater=!1,this._currentChangingLineToolHitTest=null,this._currentMovingHitTest=null,this._prevTooltipData=null,this._errorRenderer=null,this._highlightedPriceAxises=new wo.WatchedObject([]),this._visuallyCollapsed=new O.WatchedValue(!1),this._maximized=new O.WatchedValue(!1),this._endOfSeriesDataBanner=null,this._selectionBeforeMouseDown=new WeakSet,this._mouseTouchDownUpInfo=null,this._ignoringMouseMovement=!1,this._canvasConfiguredHandler=()=>this._state&&this._chartModel().lightUpdate(),this._updateVisuallyCollapsed=()=>{this._visuallyCollapsed.setValue(!this.state().maximized().value()&&this.state().collapsed().value())},this._updateMaximized=()=>{this._maximized.setValue(this.state().maximized().value())},this._chart=e,this._state=t,this._options=(0,tt.merge)((0,tt.clone)(Qn),i),this._paneWidgetsSharedState=s,this._state&&this._subscribeToState();const o={contextMenuEnabled:this._options.priceScaleContextMenuEnabled,pressedMouseMoveScale:this._options.handleScale.axisPressedMouseMove.price,mouseWheelScale:this._options.handleScale.mouseWheel,currencyConversionEnabled:this._options.currencyConversionEnabled,unitConversionEnabled:this._options.unitConversionEnabled,countdownEnabled:this._options.countdownEnabled,croppedTickMarks:this._options.croppedTickMarks};void 0!==this._options.priceScaleContextMenu&&(o.contextMenu=this._options.priceScaleContextMenu);const r=(e,t,i,s,n)=>new yn(this._chart,this,this._chartUndoModel(),i,t,e,o,s,n),a=e.properties().childs().scalesProperties,c=this._chartModel().rendererOptionsProvider(),h={backgroundBasedTheme:e.backgroundBasedTheme().spawnOwnership(),stubContextMenuProvider:()=>Promise.resolve([]),titlesProvider:()=>[],rendererOptionsProvider:c,getBackgroundTopColor:()=>this._chartModel().backgroundTopColor().value(),getBackgroundBottomColor:()=>this._chartModel().backgroundColor().value(),requestRepaint:()=>this._chartModel().lightUpdate()};this._rowElement=document.createElement("div"),this._rowElement.style.display="flex";const d={showLabels:!1} +;this._lhsPriceAxisesContainer=t.mode()===zi.PaneMode.Regular?new Vo(a,"left",r,h,d):new PaneWidgetSideArea(c,"left"),this._rhsPriceAxisesContainer=t.mode()===zi.PaneMode.Regular?new Vo(a,"right",r,h,d):new PaneWidgetSideArea(c,"right"),this._paneCell=document.createElement("div"),this._paneCell.classList.add("chart-markup-table","pane"),this._div=document.createElement("div"),this._div.classList.add("chart-gui-wrapper"),this._div.setAttribute("data-name","pane-widget-chart-gui-wrapper"),this._paneCell.appendChild(this._div),this._canvasBinding=(0,Kt.createBoundCanvas)(this._div,(0,Ft.size)({width:16,height:16})),this._canvasBinding.subscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler);const u=this._canvasBinding.canvasElement;u.style.position="absolute",u.style.left="0",u.style.top="0",u.dataset.name="pane-canvas",this._topCanvasBinding=(0,Kt.createBoundCanvas)(this._div,(0,Ft.size)({width:16,height:16})),this._topCanvasBinding.subscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler);const _=this._topCanvasBinding.canvasElement;_.style.position="absolute",_.style.left="0",_.style.top="0",_.dataset.name="pane-top-canvas",this._rowElement.appendChild(this._lhsPriceAxisesContainer.getElement()),this._rowElement.appendChild(this._paneCell),this._rowElement.appendChild(this._rhsPriceAxisesContainer.getElement()),u.setAttribute("aria-hidden","true");const p=this._chartModel().mainSeries();p.dataEvents().symbolResolved().subscribe(this,this._updateAccessibilityAttr),this._mainSeriesInterval=p.intervalObj().spawn(),this._mainSeriesInterval.subscribe(this._updateAccessibilityAttr.bind(this)),this._updateAccessibilityAttr(),this._options.legendWidgetEnabled&&(this._options.customLegendWidgetFactories&&(this._customLegendWidgetsFactoryMap=this._options.customLegendWidgetFactories),this._loadAndCreateLegendWidget()),this._state&&!this._chart.readOnly()&&this._options.controlsEnabled&&this._loadAndCreatePaneControlsWidget(this._state),(0,Dn.magnetEnabled)().subscribe(this._onMagnetStateChangedListener),(0,Vs.shiftPressed)().subscribe(this._onShiftKeyStateChangedListener),l.enabled("chart_drag_export")&&(_.draggable=this._chartModel().dragExportEnabled().value(),this._chartModel().dragExportEnabled().subscribe((e=>{_.draggable=e})),_.addEventListener("dragend",(e=>{this._ignoringMouseMovement=!1,this._chartModel().dragExportEnabled().value()&&(0,ee.emit)("dragend")})),_.addEventListener("dragstart",(async e=>{if(this._ignoringMouseMovement=!1,!this._chartModel().dragExportEnabled().value())return void e.preventDefault();e.stopPropagation();const t=this._chartUndoModel().model().hoveredSource(),i=Nn(),s={enableDragDrop:!1};if((0,ee.emit)("dragstart",{enableDragDrop:e=>s.enableDragDrop=e,preventDefault:()=>e.preventDefault(),keys:{ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,shiftKey:e.shiftKey},hoveredSourceId:t?.id()??null,exportData:e=>{const t=e=>s().convertPublicTimeToInternalTime(e),s=()=>(0,On.getChartWidgetApiTimeConverter)(p.interval(),(0, +n.ensureNotNull)(p.symbolInfo(),"main series symbol info"),this._chartModel());return void 0!==e?.from&&(e.from=t(e.from)),void 0!==e?.to&&(e.to=t(e.to)),i?.exportData(this._chartModel(),e)},setData:(t,i)=>{e.dataTransfer&&e.dataTransfer.setData(t,i)},setDragImage:(t,i,s)=>{e.dataTransfer&&e.dataTransfer.setDragImage(t,i,s)}}),!e.dataTransfer?.getData("text/plain")&&!e.dataTransfer?.getData("text/html"))return void e.preventDefault();this._isSelecting=!1;this._chartModel().crosshairSource().clearSelection(),this._paneWidgetsSharedState.clearDraggingSource(),this._ignoringMouseMovement=!0}))),this.setCursorForTool(),this._mouseEventHandler=new Wt.MouseEventHandler(this._topCanvasBinding.canvasElement,this,{treatVertTouchDragAsPageScroll:!this._options.handleScroll.vertTouchDrag,treatHorzTouchDragAsPageScroll:!this._options.handleScroll.horzTouchDrag,shouldAllowTouchDrag:()=>this.trackingModeEnabled()}),this._paneCellMouseEventHandler=new Wt.MouseEventHandler(this._paneCell,{doubleTapEvent:this._paneDblClickOrTapEvent.bind(this),mouseDoubleClickEvent:this._paneDblClickOrTapEvent.bind(this)},{shouldAllowTouchDrag:()=>this.trackingModeEnabled(),treatVertTouchDragAsPageScroll:!this._options.handleScroll.vertTouchDrag,treatHorzTouchDragAsPageScroll:!this._options.handleScroll.horzTouchDrag}),this._prevHoveredHittest=null,this._highlightedPriceAxises.subscribe((e=>{this._highlightPriceAxisesByLabel(e.map((e=>e.axis)))})),this._prevPinchScale=0,this._isDestroyed=!1;const m=(0,ft.combine)((e=>{const t=this._chart.paneWidgetSeparators(this);return[t.separatorAbove?.selected()?.weakReference()??new O.WatchedValue(!1).ownership(),t.separatorBelow?.selected()?.weakReference()??new O.WatchedValue(!1).ownership()]}),this._chart.paneWidgetsWV().weakReference());this._anySeparatorSelected=(0,ft.accumulate)((e=>e.some(Boolean)),m.ownership())}destroy(){this._chart.onPaneWidgetDestroyed(this);this._chartModel().mainSeries().dataEvents().symbolResolved().unsubscribeAll(this),this._customLegendWidgetsFactoryMap.clear(),this._topCanvasBinding.unsubscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler),this._topCanvasBinding.dispose(),this._canvasBinding.unsubscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler),this._canvasBinding.dispose(),this._legendWidget&&(this._legendWidget.destroy(),this._legendWidget=null),null!==this._paneControlsResizeObserver&&this._paneControlsResizeObserver.disconnect(),null!==this._paneControls&&(this._paneControls.destroy(),this._paneControls=null),this._lhsPriceAxisesContainer.destroy(),this._rhsPriceAxisesContainer.destroy(),this.hasState()&&this._unsubscribeFromState(),(0,Dn.magnetEnabled)().unsubscribe(this._onMagnetStateChangedListener),(0,Vs.shiftPressed)().unsubscribe(this._onShiftKeyStateChangedListener),this._paneWidgetsSharedState.onPaneDestroyed(this),this._errorRenderer&&this._errorRenderer.then((e=>{e.destroy(),this._errorRenderer=null})),this._prevHoveredHittest=null,this._mouseEventHandler.destroy(),this._paneCellMouseEventHandler.destroy(), +this._rowElement.parentElement?.removeChild(this._rowElement),this._anySeparatorSelected.destroy(),this._mainSeriesInterval.destroy(),this._isDestroyed=!0}updateOptions(e){if((0,tt.merge)(this._options,e),!1===e.legendWidgetEnabled&&this._legendWidget&&(this._legendWidget.destroy(),this._legendWidget=null),e.legendWidgetEnabled&&!this._legendWidget&&(this._options.customLegendWidgetFactories&&(this._customLegendWidgetsFactoryMap=this._options.customLegendWidgetFactories),this._loadAndCreateLegendWidget()),!this._state)return;const t=this._state.mode(),i=this._chartModel().rendererOptionsProvider();if(t===zi.PaneMode.Regular&&!(this._lhsPriceAxisesContainer instanceof Vo)){this._lhsPriceAxisesContainer.destroy(),this._rhsPriceAxisesContainer.destroy();const e={showLabels:!1},t={contextMenuEnabled:this._options.priceScaleContextMenuEnabled,pressedMouseMoveScale:this._options.handleScale.axisPressedMouseMove.price,mouseWheelScale:this._options.handleScale.mouseWheel,currencyConversionEnabled:this._options.currencyConversionEnabled,unitConversionEnabled:this._options.unitConversionEnabled,countdownEnabled:this._options.countdownEnabled,croppedTickMarks:this._options.croppedTickMarks},s=(e,i,s,o,n)=>new yn(this._chart,this,this._chartUndoModel(),s,i,e,t,o,n),o=this._chart.properties().childs().scalesProperties,n=()=>this._chartModel().backgroundColor().value(),r=()=>this._chartModel().backgroundTopColor().value(),a={backgroundBasedTheme:this._chart.backgroundBasedTheme().spawnOwnership(),stubContextMenuProvider:()=>Promise.resolve([]),titlesProvider:()=>[],rendererOptionsProvider:i,getBackgroundTopColor:r,getBackgroundBottomColor:n,requestRepaint:()=>this._chartModel().lightUpdate()};this._lhsPriceAxisesContainer=new Vo(o,"left",s,a,e),this._rhsPriceAxisesContainer=new Vo(o,"right",s,a,e),this._rowElement.innerHTML="",this._rowElement.appendChild(this._lhsPriceAxisesContainer.getElement()),this._rowElement.appendChild(this._paneCell),this._rowElement.appendChild(this._rhsPriceAxisesContainer.getElement())}t!==zi.PaneMode.Widget||this._lhsPriceAxisesContainer instanceof PaneWidgetSideArea||(this._lhsPriceAxisesContainer.destroy(),this._rhsPriceAxisesContainer.destroy(),this._lhsPriceAxisesContainer=new PaneWidgetSideArea(i,"left"),this._rhsPriceAxisesContainer=new PaneWidgetSideArea(i,"right"),this._rowElement.innerHTML="",this._rowElement.appendChild(this._lhsPriceAxisesContainer.getElement()),this._rowElement.appendChild(this._paneCell),this._rowElement.appendChild(this._rhsPriceAxisesContainer.getElement()))}size(){return this._size}setSize(e){(0,Ft.equalSizes)(this._size,e)||(this._size=e,this._canvasBinding.resizeCanvasElement(e),this._topCanvasBinding.resizeCanvasElement(e),this._paneCell.style.width=e.width+"px",this._paneCell.style.height=e.height+"px",this._div.style.width=e.width+"px",this._div.style.height=e.height+"px",this._rowElement.classList.toggle("js-hidden",0===e.height),null!==this._legendWidget&&this._legendWidget.updateWidgetModeBySize(e), +null!==this._paneControls&&this._paneControls.updateWidgetModeByWidth(e.width))}width(){return this._size.width}height(){return this._size.height}backgroundColor(){return this._chartModel().backgroundColor().value()}highlightedPriceAxises(){return this._highlightedPriceAxises}processDoubleClickOnSource(e,t,i){if((0,zs.isEditableTextLineTool)(e)){const t=e.textEditingActivationTime();null!==t&&performance.now()-t<500&&e.deactivateTextEditing()}(0,Po.isDataSource)(e)&&e.id()!==this._lastFinishedToolId&&this._showEditDialogForSource(e,t)}stretchFactor(){return this._state?this._state.stretchFactor():0}setStretchFactor(e){this.hasState()&&this.state().setStretchFactor(e)}setCursorForTool(e,t,i){if(t&&t.mod()&&e&&e!==this._chartModel().crosshairSource())return void this._setCursorClassName("pointer");if(void 0!==i){switch(i){case ei.PaneCursorType.VerticalResize:this._setCursorClassName("ns-resize");break;case ei.PaneCursorType.HorizontalResize:this._setCursorClassName("ew-resize");break;case ei.PaneCursorType.DiagonalNeSwResize:this._setCursorClassName("nesw-resize");break;case ei.PaneCursorType.DiagonalNwSeResize:this._setCursorClassName("nwse-resize");break;case ei.PaneCursorType.Default:this._setCursorClassName("default");break;case ei.PaneCursorType.Pointer:this._setCursorClassName("pointer");break;case ei.PaneCursorType.Grabbing:this._setCursorClassName("grabbing");break;case ei.PaneCursorType.Text:this._setCursorClassName("text");break;case ei.PaneCursorType.None:this._setCursorClassName("none")}return}const s=mt.tool.value();if((0,mt.toolIsCursor)(s)){if(null!==this._paneWidgetsSharedState.draggingSource()||this._isScrolling||this._chartUndoModel()&&this._chartUndoModel().model().sourcesBeingMoved().length)return void this._setCursorClassName("grabbing");if(e&&this._options.sourceSelectionEnabled)return void this._setCursorClassName("pointer")}let o="";switch(s){case"eraser":o="eraser";break;case"zoom":o="zoom-in"}if(!o)switch(mt.cursorTool.value()){case"arrow":o="default";break;case"dot":o="dot";break;case"demonstration":o="demonstration";break;case"performance":o="performance"}this._setCursorClassName(o)}showContextMenuForSelection(e,t,i){const s=this._chartUndoModel().selection();if(s.isEmpty())return;const o=s.dataSources().filter((e=>e.hasContextMenu()));this.showContextMenuForSources(o,e,void 0,t,i)}async showContextMenuForSources(e,t,i,s,o){if(!e.length||!this._state)return Promise.resolve(null);const{ActionsProvider:n}=await(0,Go.actionsProviderModule)();if(this._isDestroyed)return null;const r=e[0],a=(0,tt.merge)((0,tt.clone)(this._options.contextMenu),i||{}),l=new n(this._chart,a);if(r===this._chartUndoModel().crosshairSource())return r.handleContextMenuEvent(t),Promise.resolve(null);{const i=await l.contextMenuActionsForSources(e,this._state,t,s?.origin,o?.data()?.customActions);if(0===i.length)return Promise.resolve(null);{let e={menuName:""};return r instanceof Vn.Series?e={menuName:s?.origin??"ObjectTreeContextMenu",detail:{type:"series",id:r.instanceId()}}:(0,zs.isLineTool)(r)?e={ +menuName:s?.origin??"ObjectTreeContextMenu",detail:{type:"shape",id:r?.id()??null}}:(0,Ws.isStudy)(r)&&(e={menuName:s?.origin??"ObjectTreeContextMenu",detail:{type:"study",id:r?.id()||null}}),Io.ContextMenuManager.createMenu(i,{takeFocus:!0,returnFocus:!0,isKeyboardEvent:a.isKeyboardEvent,statName:r.contextMenuStatName()},e).then((e=>(e.show(t),e)))}}}leftPriceAxisesContainer(){return this._lhsPriceAxisesContainer}rightPriceAxisesContainer(){return this._rhsPriceAxisesContainer}setPriceAxisSizes(e,t,i){this._priceAxisesContainer(e).setSizes(t,i)}state(){return(0,n.ensureNotNull)(this._state)}hasState(){return null!==this._state}setState(e){this._state!==e&&(this.hasState()&&(this._unsubscribeFromState(),this._paneControls?.destroy(),this._paneControls=null),this._state=e,this.hasState()&&(this.updateOptions(this._options),this._subscribeToState(),this._loadAndCreatePaneControlsWidget(this.state()),this.updatePriceAxisWidgetsStates(),this._updateAccessibilityAttr()))}getScreenshotData(e){const t=[],i=[];let s,o=[];const n=this.state(),r=n.mode()===zi.PaneMode.Widget?[]:n.sourcesByGroup().priceSources().slice().reverse(),a=this._chart.properties().childs().paneProperties.childs().legendProperties.childs();for(const c of r){const r=c.statusView();if((0,Ws.isStudy)(c)&&(a.showLegend.value()||e?.showCollapsedStudies)){const s=a.showStudyTitles.value(),o=s;if(c.properties().childs().visible.value()&&this._chartModel().paneForSource(c)===n&&r&&o){t.push(s?c.statusProvider(e?.status).text():"");const o=l.enabled("use_last_visible_bar_value_in_legend")?this._chartModel().timeScale().visibleBarsStrictRange()?.lastBar()??null:null,n=c.legendValuesProvider().getValues(o);i.push(n)}}else if(c===this._chartModel().mainSeries()&&r&&a.showSeriesTitle.value()){const t=c.statusProvider(e?.status||{}).getSplitTitle();s=Object.values(t).filter((e=>""!==e)).join(" · ");const i=l.enabled("use_last_visible_bar_value_in_legend")?this._chartModel().timeScale().visibleBarsStrictRange()?.lastBar()??null:null;o=c.legendValuesProvider().getValues(i)}}return{type:"pane",leftAxis:this._lhsPriceAxisesContainer.getScreenshotData(),rightAxis:this._rhsPriceAxisesContainer.getScreenshotData(),content:this._canvasBinding.canvasElement.toDataURL(),canvas:this._canvasBinding.canvasElement,contentWidth:this._size.width,contentHeight:this._size.height,studies:t,studiesValues:i,containsMainSeries:this.containsMainSeries(),mainSeriesText:s,mainSeriesValues:o}}updatePriceAxisWidgetsStates(){if(!this.hasState())return;const e=this._chartModel(),t=e.paneForSource(e.mainSeries());if(t)if(this._state?.mode()===zi.PaneMode.Regular){const i=e.priceScaleSlotsCount(),s=this.state(),o=s.visibleLeftPriceScales(),n=s.visibleRightPriceScales();this._lhsPriceAxisesContainer.setScales(o,i.left,t.leftPriceScales().length,i.left+i.right),this._rhsPriceAxisesContainer.setScales(n,i.right,t.rightPriceScales().length,i.left+i.right)}else this._state?.mode()===zi.PaneMode.Widget&&(this._lhsPriceAxisesContainer.setPane(this._state), +this._rhsPriceAxisesContainer.setPane(this._state))}updatePriceAxisWidgets(){this._lhsPriceAxisesContainer.update(),this._rhsPriceAxisesContainer.update()}update(){this.hasState()&&(this.updatePriceAxisWidgets(),null!==this._legendWidget&&this._legendWidget.update(),this.updateControls())}updateStatusWidget(e){this.hasState()&&null!==this._legendWidget&&(e.legendWidgetLayoutInvalidated()?this._legendWidget.updateLayout():this._legendWidget.update())}updateControls(){this.hasState()&&null!==this._paneControls&&this._paneControls.update()}updateThemedColors(e){this._themedTopColor=e.topColor,this._updateByThemedColors()}statusWidget(){return this._legendWidget}getElement(){return this._rowElement}canvasElement(){return this._canvasBinding.canvasElement}getRenderingInfo(){return(0,Kt.getBindingRenderingInfo)(this._canvasBinding)}hasCanvas(e){return this._canvasBinding.canvasElement===e||this._topCanvasBinding.canvasElement===e}pinchStartEvent(){return null===this._paneWidgetsSharedState.scrollingPane()&&null===this._paneWidgetsSharedState.pinchingPane()&&(this._onTouchEvent(),!!this._options.handleScale.pinch&&(this._chartModel().stopTimeScaleAnimation(),this._prevPinchScale=1,this._pinching=!0,this._wasPinched=!0,this._paneWidgetsSharedState.setPinchingPane(this),!0))}pinchEvent(e,t,i,s){if(null!==this._paneWidgetsSharedState.scrollingPane()||this._paneWidgetsSharedState.pinchingPane()!==this)return;if(this._onTouchEvent(),!this._options.handleScale.pinch)return;const o=10*(s-this._prevPinchScale);this._prevPinchScale=s,this._chartModel().zoomTime(e.x,o,!0),this._prevPinchScale=s}pinchEndEvent(){null===this._paneWidgetsSharedState.scrollingPane()&&this._paneWidgetsSharedState.pinchingPane()===this&&(this._onTouchEvent(),this._pinching=!1,this._paneWidgetsSharedState.setPinchingPane(null))}mouseClickEvent(e){this._onMouseEvent(),this._mouseClickOrTapEvent(e)}tapEvent(e){this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._mouseClickOrTapEvent(e))}mouseDownEvent(e){this._onMouseEvent(),this.hasState()&&this._mouseDownOrTouchStartEvent(e,this._dataSourceAtPoint(e.localX,e.localY))}touchStartEvent(e){if(this._paneWidgetsSharedState.startTouch(this),this._preventTouchEventsExceptPinch())return;const t=!this._trackCrosshairOnlyAfterLongTap&&null!==sr&&sr.stateId===this.state().id()&&Math.abs(sr.x-e.localX)+Math.abs(sr.y-e.localY)<5;this._onTouchEvent(),this._chart.setActivePaneWidget(this);const i=this._dataSourceAtPoint(e.localX,e.localY);if(t){const t=this._chartModel().crosshairSource();null!==i&&i.source===t||t.selectPointMode().value()!==mt.SelectPointMode.None?this.startTrackingMode(new Vt.Point(e.localX,e.localY),new Vt.Point(e.localX,e.localY)):!this._chart.readOnly()&&null!==i&&(0,zs.isLineTool)(i.source)&&i.source.userEditEnabled()&&this._chartUndoModel().selectionMacro((e=>{e.clearSelection(),e.addSourceToSelection(i.source,i.hittest.data())}))}this._mouseDownOrTouchStartEvent(e,i),this._mouseOrTouchMoveEvent(e)}mouseUpEvent(e){this._onMouseEvent(),this._mouseUpOrTouchEndEvent(e)}touchEndEvent(e){ +this._paneWidgetsSharedState.endTouch(this),this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._mouseOrTouchLeaveEvent(e),this._mouseUpOrTouchEndEvent(e))}mouseMoveEvent(e){this._onMouseEvent(),this._mouseOrTouchMoveEvent(e)}pressedMouseMoveEvent(e){this._onMouseEvent(),this._state?.model().chartFloatingTooltipVisible().value()?this._mouseOrTouchMoveEvent(e):this._pressedMouseOrTouchMoveEvent(e)}touchMoveEvent(e){this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._pressedMouseOrTouchMoveEvent(e))}mouseLeaveEvent(e){this._onMouseEvent(),this._updateHoveredSource(null,new To.EnvironmentState(e)),this._mouseOrTouchLeaveEvent(e)}mouseDoubleClickEvent(e){this._onMouseEvent(),this._mouseDoubleClickOrDoubleTapEvent(e)}wheelClickEvent(e){if(this._chart.readOnly())return;const t=this._dataSourceAtPoint(e.localX,e.localY);if(null===t||t.isCustom)return;if((t.hittest.target()||0)<=Ut.HitTarget.MovePointBackground)return;const i=new To.EnvironmentState(e),s=t.hittest.eraseMarker();if(i.mod()&&void 0!==s&&t.source.processErase)return void t.source.processErase(this._chartUndoModel(),s);const o=this._chartUndoModel();o.selection().isSelected(t.source)||o.selectionMacro((e=>{e.clearSelection();const i=(0,n.ensureNotNull)(t.source);e.addSourceToSelection(i,Xn(t,i))})),this._chart.removeSelectedSources()}doubleTapEvent(e){this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._mouseDoubleClickOrDoubleTapEvent(e))}longTapEvent(e){if(null===this._state||this._preventTouchEventsExceptPinch())return;if(this._onTouchEvent(),this._longTap=!0,null!==this._startTrackPoint||!this._trackingModeShouldBeActive())return;const t=this._chartModel().selection();if(!t.isEmpty()){const i=this._dataSourceAtPoint(e.localX,e.localY);if(null!==i&&t.isSelected(i.source))return}this.startTrackingMode(new Vt.Point(e.localX,e.localY),new Vt.Point(e.localX,e.localY),new To.EnvironmentState(e))}mouseEnterEvent(e){if(this._onMouseEvent(),!this.hasState())return;this._chart.setActivePaneWidget(this);const t=this._dataSourceAtPoint(e.localX,e.localY);this._updateHoveredSource(t,new To.EnvironmentState(e)),this.setCursorPosition(e.localX,e.localY,new To.EnvironmentState(e))}contextMenuEvent(e){this._onMouseEvent(),this._contextMenuEvent(e)}touchContextMenuEvent(e){this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._contextMenuEvent(e))}mouseDownOutsideEvent(e){this._processOutsideClick(null,e)}touchStartOutsideEvent(e){this._processOutsideClick(null,e)}cancelZoom(){this._chartModel().crosshairSource().clearSelection(),this._firstZoomPoint=null,this._preventCrossHairMove()&&this._clearCursorPosition()}startTrackingMode(e,t,i){this.state().mode()!==zi.PaneMode.Widget&&(this._startChangeLineToolParams=null,this._startMoveSourceParams=null,this._currentChangingLineToolHitTest=null,this._currentMovingHitTest=null,this._chartUndoModel().selectionMacro((e=>e.clearSelection())),this._startTrackPoint=e,this._exitTrackingModeOnNextTry=!1,this.setCursorPosition(t.x,t.y,i), +this._initCrossHairPosition=this._chartModel().crosshairSource().currentPoint())}setDragToAnotherPaneCursor(){this._setCursorClassName("grabbing")}cloneLineTools(e,t){return this._chartUndoModel().cloneLineTools(e,t)}exitTrackingMode(){null!==this._state&&null!==this._startTrackPoint&&(this._exitTrackingModeOnNextTry=!0,this._tryExitTrackingMode())}trackingModeEnabled(){return null!==this._state&&null!==this._startTrackPoint}addCustomWidgetToLegend(e,t){this._options.legendWidgetEnabled&&(this._customLegendWidgetsFactoryMap.set(e,t),null!==this._legendWidget&&this._legendWidget.addCustomWidgetToLegend(e,t))}containsMainSeries(){return!!this.hasState()&&this.state().containsMainSeries()}paint(e,t){if(!this._chartUndoModel()||!this.hasState()||0===this._size.width||0===this._size.height)return;(0,Kt.tryApplySuggestedCanvasBitmapSize)(this._canvasBinding),(0,Kt.tryApplySuggestedCanvasBitmapSize)(this._topCanvasBinding),this._state&&(e.priceScaleSideMaxLevel("left")>ao.InvalidationLevel.Cursor||e.priceScaleSideMaxLevel("right")>ao.InvalidationLevel.Cursor)&&(this._recalculatePriceScales((0,wi.viewportChangeEvent)(this.state())),null!==sr&&sr.stateId===this.state().id()&&this.setCursorPosition(sr.x,sr.y,sr.envState));const i=e.fullInvalidation();if(i>ao.InvalidationLevel.Cursor&&null!==sr&&sr.stateId===this.state().id()){const e=this._dataSourceAtPoint(sr.x,sr.y);this._updateHoveredSource(e,(0,Vs.globalEnvironmentState)())}if(this._lhsPriceAxisesContainer.paint(e.getterForPriceScaleInvalidationLevelBySide("left"),t),this._rhsPriceAxisesContainer.paint(e.getterForPriceScaleInvalidationLevelBySide("right"),t),i===ao.InvalidationLevel.None)return;const s=this._state&&(this._state.maximized().value()||!this._state.collapsed().value()||this._state.mode()===zi.PaneMode.Widget);if(i>ao.InvalidationLevel.Cursor){const e=(0,n.ensureNotNull)(this._canvasBinding.canvasElement.getContext("2d"));e.setTransform(1,0,0,1,0,0);const t=(0,Kt.getBindingRenderingInfo)(this._canvasBinding);this._makeSureIsUpdated(t),this._drawBackground(e,t),s&&this._drawSources(e,t)}if(null!==this._state){const e=(0,n.ensureNotNull)(this._topCanvasBinding.canvasElement.getContext("2d"));e.setTransform(1,0,0,1,0,0);const t=(0,Kt.getBindingRenderingInfo)(this._topCanvasBinding);e.clearRect(0,0,t.bitmapSize.width,t.bitmapSize.height),s&&this._drawTopViews(e,t),this._drawCrossHair(e,t),s&&this._drawActiveLineTools(e,t)}}cancelCreatingLineTool(){const e=this._chartUndoModel(),t=this._chartUndoModel().lineBeingCreated();if(t)if(t.pointsCount()<=0&&!(0,Lt.isLineDrawnWithPressedButton)(t.toolname)){const i=t.points();if(i.length>2){const s=i[i.length-2];e.continueCreatingLine(s),this._finishTool(t)}else e.cancelCreatingLine()}else e.cancelCreatingLine();null!==this._firstZoomPoint&&this.cancelZoom(),this._clearCursorPosition(),this.setCursorForTool()}async drawRightThere(e,t){this.hasState()&&(await(0,xo.ensureLineToolLoaded)(e),this._chartUndoModel().drawRightThere(e,this.state(),void 0,t))}cancelMeasuring(){this._chartUndoModel().crosshairSource().clearMeasure(), +(0,mt.resetToCursor)(),this.setCursorForTool()}async setErrorMessage(e){e&&!this._errorRenderer&&(this._errorRenderer=this._createErrorBlock()),(await this._errorRenderer)?.update({message:e?.message,icon:this._state?.containsMainSeries()||this._state?.maximized().value()?e?.icon:void 0,backgroundColor:`linear-gradient(${this._chartModel().backgroundTopColor().value()}, ${this._chartModel().backgroundColor().value()})`,textColor:this._chartModel().dark().value()?zn:Hn,solutionId:e?.solutionId,rawHtml:e?.rawHtml,buttons:this.containsMainSeries()?e?.buttons:void 0,maxWidth:e?.maxWidth,maxHeight:e?.maxHeight,zeroHeight:e?.zeroHeight})}collapsedHeight(){return Math.max(Math.ceil(this._paneControls?.bottomWithMargin()??0),33)}visuallyCollapsed(){return this._visuallyCollapsed.readonly()}maximized(){return this._maximized.readonly()}setCursorPosition(e,t,i){this._updateLastCrosshairPosition(e,t,i),this._chartModel().setAndSaveCurrentPosition(this._correctXCoord(e),this._correctYCoord(t),this.state(),i)}_tryExitTrackingMode(e){this._exitTrackingModeOnNextTry&&(this._startTrackPoint=null,e||this._clearCursorPosition())}_tryStartMeasure(e,t,i,s,o){return!(!(0,mt.toolIsMeasure)(mt.tool.value())||t.startMeasurePoint())&&(e.isTouch||this._preventCrossHairMove()||this.setCursorPosition(e.localX,e.localY,i),s=this._chartModel().magnet().align(s,o,this.state()),t.startMeasuring({price:s,index:o},this.state()),!0)}_tryFinishMeasure(e,t){if(t.startMeasurePoint()&&!t.endMeasurePoint()){let i=t.price;const s=t.index;return i=this._chartModel().magnet().align(i,s,this.state()),t.finishMeasure({price:i,index:s}),e.isTouch?(0,mt.resetToCursor)():this._needResetMeasureLater=!0,this._preventCrossHairMove()&&this._clearCursorPosition(),!0}return!1}_tryStartZoom(e,t,i,s){const o=this._chart.model().model().zoomEnabled();if("zoom"===mt.tool.value()&&o){const o=this._chartUndoModel(),n=o.timeScale().indexToCoordinate(i)-.5*o.timeScale().barSpacing();return this._firstZoomPoint={price:t,index:i,x:n,y:e.localY},this._preventCrossHairMove()||this.setCursorPosition(e.localX,e.localY,s),this._chartModel().crosshairSource().startSelection(this.state()),!0}return!1}_finishZoom(e){const t=this.state(),i=t.defaultPriceScale(),s=(0,n.ensureNotNull)(t.mainDataSource()).firstValue(),o=i.coordinateToPrice(e.localY,(0,n.ensureNotNull)(s)),r=this._chartUndoModel(),a=Math.round(r.timeScale().coordinateToIndex(e.localX)),l=(0,n.ensureNotNull)(this._firstZoomPoint);a!==l.index&&r.zoomToViewport(l.index,a,l.price,o,t),this._chartModel().crosshairSource().clearSelection(),this._firstZoomPoint=null,(0,mt.resetToCursor)(),this._preventCrossHairMove()&&this._clearCursorPosition()}_tryFinishZoom(e){return null!==this._firstZoomPoint&&(this._finishZoom(e),!0)}_tryHandleEraserMouseDown(e,t){if((0,mt.toolIsEraser)(mt.tool.value())&&!e.isCustom&&(!(i=e.source)||!i.customization||!i.customization.disableErasing)){const i=this._chartUndoModel();if((0,zs.isLineTool)(e.source)||(0,Ws.isStudy)(e.source)){const s=e.hittest.eraseMarker() +;return t.mod()&&void 0!==s&&e.source.processErase?e.source.processErase(i,s):i.removeSource(e.source,!1),!0}}var i;return!1}_tryStartChangingLineTool(e,t,i,s){if(e.isTouch&&null!==this._startTrackPoint)return!1;const o=t.hittest;if((!e.isTouch||!this._preventSourceChange)&&o&&(0,zs.isLineTool)(t.source)&&o.target()===Ut.HitTarget.ChangePoint){const r=this._chartUndoModel(),a=(0,n.ensure)(this.state().mainDataSource()?.firstValue()),l=o.data()?.ownerSourceId,c=(0,n.ensureNotNull)(l?this._chartModel().dataSourceForId(l):t.source.ownerSource()),h=(0,n.ensureNotNull)(c.priceScale()).coordinateToPrice(e.localY,a);r.selectionMacro((e=>{e.clearSelection(),e.addSourceToSelection(t.source,o.data())}));let d=h;t.source.priceScale()===r.mainSeries().priceScale()&&(d=r.model().magnet().align(h,s,this.state()));const u=o.data()?.nonDiscreteIndex;u&&(s=r.timeScale().coordinateToFloatIndex(e.localX));const _=o.data()?.pointIndex;return this._startChangeLineToolParams={source:t.source,ownerSource:c,startPoint:{index:s,price:d,nonDiscreteIndex:u},screenPoint:{x:e.localX,y:e.localY},pointIndex:_,envState:i},!0}return this._startChangeLineToolParams=null,!1}_tryStartCloning(e,t,i,s){if(i.mod()){const t=this._chartUndoModel().selection().dataSources().filter((e=>e.cloneable()));if(s&&s.cloneable()&&t.push(s),t.length>0)return this._clonningAtMoveLineTools=t.map((e=>e.id())),this._startCloningPoint=new Vt.Point(e.localX,e.localY),!0}return!1}_tryFinishClonning(e,t,i){const s=this._chartUndoModel(),o=this._chartModel();if(t.mod()&&this._clonningAtMoveLineTools){const r=new Vt.Point(e.localX,e.localY),a=(0,n.ensureNotNull)(this._startCloningPoint).subtract(r).length(),l=[];for(const e of this._clonningAtMoveLineTools){const t=o.dataSourceForId(e);null!==t&&l.push(t)}if(0===l.length)return!1;if(a>8){const o=this.cloneLineTools(l,!0).map((e=>(0,n.ensureNotNull)(s.model().dataSourceForId(e))));s.selectionMacro((e=>{e.clearSelection();let t=null;o.forEach((s=>{null===t&&(t=Xn(i,s)),e.addSourceToSelection(s,t)}))}));const r=new Vt.Point(e.localX,e.localY),a=(0,n.ensureNotNull)(o[0].priceScale()),c=(0,n.ensureNotNull)(this.state().mainDataSource()).firstValue(),h={index:s.timeScale().coordinateToIndex(e.localX),price:a.coordinateToPrice(e.localY,(0,n.ensureNotNull)(c))};s.startMovingSources(o,{logical:h,screen:r},null,t),this._clonningAtMoveLineTools=null,this._startCloningPoint=null}return!0}return!1}_mouseDownEventForLineTool(e,t,i,s){const o=mt.tool.value();if(!this.hasState()||(0,Lt.isLineToolDrawWithoutPoints)(o)||this.state().mode()===zi.PaneMode.Widget)return;const r=this._chartUndoModel();let a=!1,l=null;(0,mt.hideAllDrawings)().value()&&(0,Ss.toggleHideMode)(),(0,mt.lockDrawings)().setValue(!1),e.isTouch&&!e.stylus&&((0,Lt.isLineToolName)(o)&&!(0,Lt.isLineDrawnWithPressedButton)(o)||r.lineBeingCreated())&&this._initToolCreationModeParams(e);const c=r.lineBeingCreated();if(c&&!(0,Lt.isLineDrawnWithPressedButton)(c.toolname)){const o=(0,n.ensure)(c.ownerSource()?.firstValue());if(e.isTouch&&!e.stylus){if(!this._startTouchPoint){ +this._startTouchPoint=new Vt.Point(e.pageX,e.pageY);const t=c.points(),i=t[t.length-1],s=r.timeScale().indexToCoordinate(i.index),a=(0,n.ensureNotNull)(c.priceScale()).priceToCoordinate(i.price,o);return void(this._initCrossHairPosition=new Vt.Point(s,a))}}else if(!e.isTouch){l=c;const h=r.model().paneBeingCreatedLineOn();if(h!==this._state&&null!==h){const i=this._externalPaneXCoord(h,e.localX),s=this._externalPaneYCoord(h,e.localY);a=r.continueCreatingLine({index:Math.round(r.timeScale().coordinateToIndex(i)),price:(0,n.ensure)(c.priceScale()?.coordinateToPrice(s,o))},t)}else{const e=r.model().magnet().align(s,i,this.state());a=r.continueCreatingLine({index:i,price:e},t)}}}else{const t=(0,Lt.isLineDrawnWithPressedButton)(o);if(!e.isTouch||e.stylus||t){const e=null===c||(0,zs.isBrushBasedLineTool)(c)&&c.hasOnlyOnePoint(),n={index:i,price:t&&!e?s:r.model().magnet().align(s,i,this.state())};l=r.createLineTool({pane:this.state(),point:n,linetool:o,actionSource:"Draw"}),this._mouseTouchDownUpInfo&&(this._mouseTouchDownUpInfo.toolCreation=!0),r.lineBeingCreated()||(a=!0)}}const h=this._dataSourceAtPoint(e.localX,e.localY);l&&r.selectionMacro((e=>{e.addSourceToSelection((0,n.ensureNotNull)(l),h?.hittest.data())})),a&&l&&(this._finishTool(l,h),e.preventDefault())}_handleSelectionMouseDownAndGetJustDeselectedSource(e,t,i){const s=this._chartUndoModel();let o=null;return(null===t||t.source.isSelectionEnabled())&&s.selectionMacro((s=>{!this._preventSourceChange&&null!==t&&(e.isTouch?t.hittest.target()>=Ut.HitTarget.MovePointBackground:t.hittest.target()>Ut.HitTarget.MovePointBackground)?(i.mod()||s.selection().isSelected(t.source)||s.clearSelection(),i.mod()&&s.selection().isSelected(t.source)?(o=t.source,s.removeSourceFromSelection(t.source)):s.addSourceToSelection(t.source,t.hittest.data()),s.selection().allSources().length>1&&(0,re.trackEvent)("GUI","Multiselect","Click Select")):i.mod()||(s.clearSelection(),this._clonningAtMoveLineTools=null,this._startCloningPoint=null)})),o}_processMouseMoveWhileZoom(e,t){this._preventCrossHairMove()||this.setCursorPosition(e.localX,e.localY,t)}_updateCommonTooltip(e,t){let i=null;if(null!==e&&null!==e.hittest){const t=e.hittest.data();t&&(i=t.tooltip||null)}if(null===this._prevTooltipData&&null===i)return;if(null===i||""===i.text)return this._prevTooltipData=null,void(0,En.hide)(t);if(this._prevTooltipData&&(0,Ot.default)(i,this._prevTooltipData))return;this._prevTooltipData=i;const s=(0,tt.clone)(i);if(void 0!==s.rect){const e=this._paneCell.getBoundingClientRect();s.rect.x+=e.left,s.rect.y+=e.top}(0,En.show)(s)}_setCursorPositionOnExternalPane(e,t,i,s){t=this._externalPaneXCoord(e,t),i=this._externalPaneYCoord(e,i);this._chart.paneByState(e).setCursorPosition(t,i,s)}_updateLastCrosshairPosition(e,t,i){const s=this.state().id();sr={x:e,y:t,envState:i,stateId:s}}_setCursorClassName(e){let t="";e&&(t="pane--cursor-"+e),this._currentCursorClassName!==t&&(this._currentCursorClassName&&this._paneCell.classList.remove(this._currentCursorClassName),t&&this._paneCell.classList.add(t), +this._currentCursorClassName=t,this._paneCell.style.cursor)}_processMouseUpOrTouchEndHandler(e){const t=this._dataSourceAtPoint(e.localX,e.localY);if(null!==t){const i=this._sourceWasSelected(t);t.hittest.tryCallMouseUpOrTouchEndHandler(e,{sourceWasSelected:i})}}_crossHairShouldBeVisible(){const e=this._chartModel().crosshairSource();return(0,Lt.isLineToolName)(mt.tool.value())||(0,mt.toolIsMeasure)(mt.tool.value())||e.startMeasurePoint()&&!e.endMeasurePoint()||null!==this._firstZoomPoint||null!==this._chartModel().lineBeingEdited()||null!==this._chartModel().lineBeingCreated()}_clearCursorPosition(){sr=null,this._chartModel().clearCurrentPosition()}_dataSourceAtPoint(e,t){if(!this.hasState())return null;const i={result:null},s=this._chartUndoModel();if((0,Lt.isLineToolName)(mt.tool.value())||null!==s.lineBeingCreated())return i.result;if(this._currentChangingLineToolHitTest)return this._currentChangingLineToolHitTest;const o=new Set;if(this._currentMovingHitTest&&this._currentMovingHitTest.sourceAtPoint.hittest.data()){if(!this._currentMovingHitTest.cancelledContainer?.cancelled)return this._currentMovingHitTest.sourceAtPoint;o.add(this._currentMovingHitTest.sourceAtPoint.source.id())}if(this._currentMovingHitTest&&this._currentMovingHitTest.sourceAtPoint.hittest.data()&&!this._currentMovingHitTest.cancelledContainer?.cancelled)return this._currentMovingHitTest.sourceAtPoint;const n=this.state(),r=(0,Kt.getBindingRenderingInfo)(this._canvasBinding);this._makeSureIsUpdated(r);const a=Jn.bind(null,i),l=new Vt.Point(e,t);if(!n.maximized().value()&&n.collapsed().value()||(0,lo.lastMouseOrTouchEventInfo)().isTouch&&(mt.activePointSelectionMode.value()!==mt.SelectPointMode.None||null!==this._startTrackPoint))return this._hitTestSources(r,[s.crosshairSource()],l,a,!1,o),i.result;const c=n.sourcesByGroup(),h=s.selection(),d=h.dataSources().filter((e=>e.isMultiPaneEnabled()||s.paneForSource(e)===n));this._hitTestSources(r,d,l,a,!1,o),this._hitTestSources(r,h.customSources(),l,a,!0,o),h.allSources().forEach((e=>o.add(e.id()))),this._hitTestSources(r,[s.crosshairSource()],l,a,!1,o),this._hitTestSources(r,n.customSources(Co.CustomSourceLayer.Topmost),l,a,!0,o),this._hitTestSources(r,c.tradingSources(),l,a,!1,o),this._hitTestSources(r,n.customSources(Co.CustomSourceLayer.Foreground),l,a,!0,o);const u=c.hitTestSources();if(this._hitTestSources(r,u,l,a,!1,o),this.containsMainSeries()){const e=s.activeStrategySource().value();if(null!==e&&!o.has(e.id())){const t=e.strategyOrdersPaneView();if(null!==t){const s=t.renderer(r);if(null!==s){const t=s.hitTest(l,r);t&&Jn(i,t,e,s,!1)}}}}return null===i.result&&this._hitTestSources(r,n.customSources(Co.CustomSourceLayer.Background),l,a,!0,o),i.result}_sourceWasSelected(e){return!!e&&this._selectionBeforeMouseDown.has(e.source)}_hitTestSources(e,t,i,s,o,r){const a=(0,n.ensureNotNull)(this._state);for(let n=t.length-1;n>=0;--n){const l=t[n];if(r.has(l.id()))continue;const c=l.paneViews(a);if(null!==c&&0!==c.length)for(let t=c.length-1;t>=0;--t){const n=c[t].renderer(e);if(n&&n.hitTest){ +const t=n.hitTest(i,e);null!==t&&s(t,l,n,o)}}}}_tryStartMovingLineTool(e,t,i,s){if(null===t.source||!t.source.movable()||null!==this._startTrackPoint)return!1;if(!this._preventSourceChange){const o=this._chartUndoModel(),r=(0,n.ensureNotNull)((0,n.ensureNotNull)(this._state).mainDataSource()).firstValue(),a=(0,n.ensureNotNull)(t.source.priceScale()),l=null===r?NaN:a.coordinateToPrice(e.localY,r);let c=(t.source.isSelectionEnabled()?o.selection().allSources():[t.source]).filter(Bn);const h=c.filter((e=>(0,zs.isLineTool)(e)&&!e.isSourceHidden()));c=h.length>0?h:c.includes(t.source)?[t.source]:[c[0]];const d=new Vt.Point(e.localX,e.localY),u={index:s,price:l},_=t.hittest.data()?.activeItem;return this._startMoveSourceParams={source:c,startPoint:{logical:u,screen:d},activeItem:void 0===_?null:_,envState:i},!0}return this._startMoveSourceParams=null,!1}_chartModel(){return this._chart.model().model()}_chartUndoModel(){return this._chart.model()}_externalPaneXCoord(e,t){t+=this._div.getBoundingClientRect().left+document.body.scrollLeft;const i=(0,n.ensureNotNull)(this._chart.paneByState(e)),s=i._div.getBoundingClientRect().left+document.body.scrollLeft;return i._correctXCoord(t-s)}_externalPaneYCoord(e,t){t+=this._div.getBoundingClientRect().top+document.body.scrollTop;const i=(0,n.ensureNotNull)(this._chart.paneByState(e)),s=i._div.getBoundingClientRect().top+document.body.scrollTop;return i._correctYCoord(t-s)}_correctXCoord(e){return Math.max(0,Math.min(e,this._size.width-1))}_correctYCoord(e){return Math.max(0,Math.min(e,this._size.height-1))}_processScroll(e){if(!this._chart.model().model().scrollEnabled())return;const t=performance.now();this._startScrollingPos||this._preventScroll()||(this._startScrollingPos={x:e.clientX,y:e.clientY,timestamp:t,localX:e.localX,localY:e.localY});const i=this._chartUndoModel();let s=this.state().defaultPriceScale();if(this._startScrollingPos&&!this._isScrolling&&(this._startScrollingPos.x!==e.clientX||this._startScrollingPos.y!==e.clientY))return i.beginUndoMacro(Un),null===this._scrollXAnimation&&this._options.useKineticScroll&&(this._scrollXAnimation=new bn(.2,7,.997,15),this._scrollXAnimation.addPosition(e.clientX,this._startScrollingPos.timestamp)),i.selection().isEmpty()||(s=i.selection().allSources()[0].priceScale()),null===s||s.isEmpty()||(this._scrollPriceScale=s,i.startScrollPrice(this.state(),s,e.localY)),i.startScrollTime(e.localX),this._isScrolling=!0,this.setCursorForTool(),void this._paneWidgetsSharedState.setScrollingPane(this);this._isScrolling&&(null!==this._scrollPriceScale&&i.scrollPriceTo(this.state(),this._scrollPriceScale,e.localY),i.scrollTimeTo(e.localX),null!==this._scrollXAnimation&&this._scrollXAnimation.addPosition(e.clientX,t))}_finishScroll(){const e=this._chartUndoModel();e.endScrollTime(),null!==this._scrollPriceScale&&e.endScrollPrice(this.state(),this._scrollPriceScale),e.endUndoMacro(),this._isScrolling=!1,this._startScrollingPos=null,this._scrollPriceScale=null,this.setCursorForTool(),this._paneWidgetsSharedState.setScrollingPane(null)} +_endScroll(e){if(!this._isScrolling)return!1;this._finishScroll();const t=this._scrollUndoCommandInStack(),i=performance.now();return null!==this._scrollXAnimation&&(this._scrollXAnimation.start(e.clientX,i),this._scrollXAnimation.finished(i)||(this._chartModel().stopTimeScaleAnimation(),this._chartModel().setTimeScaleAnimation(this._scrollXAnimation),this._scrollXAnimation=null)),t}_preventScroll(){return this._trackCrosshairOnlyAfterLongTap&&this._longTap||this._contextMenuOpenedOnLastTap||(0,Lt.isLineToolName)(mt.tool.value())||Boolean(this._chartUndoModel().lineBeingCreated())||null!==this._startTrackPoint||this._preventScrollUntilNextMouseDownOrTouchStart}_isSelectPointModeEnabled(){return this._chartUndoModel().crosshairSource().selectPointMode().value()!==mt.SelectPointMode.None}_preventCrossHairMove(){return!!this._trackCrosshairOnlyAfterLongTap&&(null===this._chart.trackingModePaneWidget()&&(!!this._contextMenuOpenedOnLastTap||!this._crossHairShouldBeVisible()&&null===this._startTrackPoint))}_finishTool(e,t=null){const i=this._chartUndoModel(),s=e.toolname;if(s===mt.tool.value()&&(0,mt.resetToCursor)(),this._preventCrossHairMove()&&this._clearCursorPosition(),i.selectionMacro((i=>{i.addSourceToSelection(e,Xn(t,e))})),(0,zs.isEditableTextLineTool)(e)&&e.activateEditingOnCreation())e.activateTextEditingOn(this._div,!0);else if((0,Lt.isTextToolName)(s)){const t=i.createUndoCheckpoint();this._chart.showChartPropertiesForSource(e,Ns.TabNames.text,void 0,t)}this._lastFinishedToolId=e.id(),(0,ee.emit)("drawing_event",e.id(),"create"),kn()}_alignSourcesThatBeingMoved(e,t,i,s,o){const n=this._chartUndoModel(),r=2===o?NaN:n.timeScale().coordinateToIndex(t);n.model().sourcesBeingMoved().forEach((e=>{let a=r,l=e.convertYCoordinateToPriceForMoving(i,this.state().mainDataSource());if(null===l){if(1!==o)return;l=NaN}if((0,Ws.isStudy)(e)){const e=n.mainSeries(),t=e.bars().firstIndex(),i=e.bars().lastIndex();null!==t&&null!==i&&2!==o&&(a=Math.min(Math.max(r,t),i)),1!==o&&(l=this._chartModel().magnet().align(l,r,this.state()))}null!==this._currentMovingHitTest&&void 0!==this._currentMovingHitTest.sourceAtPoint.hittest.data()?.cursorType||this.setCursorForTool(),n.moveSources({screen:new Vt.Point(t,i),logical:{index:a,price:l}},s)}))}_resetMeasureIfRequired(){this._needResetMeasureLater&&((0,mt.resetToCursor)(),this._needResetMeasureLater=!1)}_makeSureIsUpdated(e){const t=this.state(),i=[...t.dataSources(),...t.customSources()];for(const s of i){const i=s.paneViews(t);if(null!==i)for(const t of i)t.makeSureIsUpdated?.(e)}}_drawBackground(e,t){const i=this._chartModel(),s=i.backgroundTopColor().value(),o=i.backgroundColor().value();if(this._state?.mode()===zi.PaneMode.Widget){const i=this._state?.model().panes().indexOf(this._state)??0,n=this._state?.model().mainPane(),r=i>(n?this._state?.model().panes().indexOf(n)??0:0)?o:s;(0,Kt.clearRect)(e,0,0,t.bitmapSize.width,t.bitmapSize.height,r)}else s===o?(0,Kt.clearRect)(e,0,0,t.bitmapSize.width,t.bitmapSize.height,o):(0, +$t.clearRectWithGradient)(e,0,0,t.bitmapSize.width,t.bitmapSize.height,s,o)}_drawWatermark(e,t){const i=this._chartModel().watermarkSource();if(null===i)return;if(!this.state().containsMainSeries())return;const s=i.paneViews();for(const i of s){e.save();const s=i.renderer(t);s&&s.draw(e,t),e.restore()}}_drawCrossHair(e,t){const i=this._chartUndoModel().crosshairSource();i.invalidateLockPosition(),i.visible||null===mt.crosshairLock.value()||i.updateAllViews((0,wi.sourceChangeEvent)(i.id())),this._drawSourceImpl(e,t,$n,qn,i)}_drawActiveLineTools(e,t){const i=this._chartModel(),s=[i.lineBeingCreated(),i.lineBeingEdited(),...i.sourcesBeingMoved(),i.customSourceBeingMoved()].filter((e=>!!e));for(const o of s){(i.paneForSource(o)===this.state()||(0,Po.isDataSource)(o)&&o.isMultiPaneEnabled())&&this._drawSourceImpl(e,t,$n,qn,o)}}_drawTopViews(e,t){for(const i of this.state().sourcesByGroup().all())i.topPaneViews&&this._drawSourceImpl(e,t,Kn,qn,i)}_drawSources(e,t){const i=this.state(),s=i.model(),o=i.sourcesByGroup(),n=o.tradingSources(),r=o.generalSources(),a=o.phantomSources(),l=i.customSources(Co.CustomSourceLayer.Background).slice(),c=i.customSources(Co.CustomSourceLayer.Foreground).slice(),h=i.customSources(Co.CustomSourceLayer.Topmost).slice(),d=s.activeStrategySource().value(),u=s.replayStudyStrategy().value();{const e=s.panes();for(let t=e.length-1;t>=0;t--)e[t].createDrawingsCaches()}this._drawSourceImpl(e,t,$n,qn,s.gridSource()),this._drawWatermark(e,t);for(const i of l)this._drawSourceImpl(e,t,$n,Gn,i);for(const i of r)this._drawSourceImpl(e,t,$n,Gn,i);for(const i of c)this._drawSourceImpl(e,t,$n,Gn,i);for(const i of a)this._drawSourceImpl(e,t,$n,Gn,i);const _=new Set;[s.lineBeingCreated(),s.lineBeingEdited(),...s.sourcesBeingMoved(),s.customSourceBeingMoved()].filter(tt.notNull).forEach((e=>_.add(e.id())));let p=s.hoveredSource();null!==p&&((0,Po.isDataSource)(p)&&!p.showOnTopOnHovering()||_.has(p.id())||(0,Po.isDataSource)(p)&&!r.includes(p)?p=null:_.add(p.id()));const m=s.selection().allSources().filter((e=>!((0,Po.isDataSource)(e)&&!r.includes(e))&&!_.has(e.id())));m.forEach((e=>_.add(e.id())));for(const i of l)this._drawSourceImpl(e,t,$n,qn,i,_);for(const i of r)this._drawSourceImpl(e,t,$n,qn,i,_);for(const i of c)this._drawSourceImpl(e,t,$n,qn,i,_);d&&this.containsMainSeries()&&this._drawSourceImpl(e,t,Zn,qn,d,_),u&&this._drawSourceImpl(e,t,Zn,qn,u,_);for(const i of n)this._drawSourceImpl(e,t,$n,Gn,i);for(const i of h)this._drawSourceImpl(e,t,$n,Gn,i);for(const i of r)this._drawSourceImpl(e,t,Yn,qn,i,_);for(const i of c)this._drawSourceImpl(e,t,Yn,qn,i,_);for(const i of n)this._drawSourceImpl(e,t,$n,qn,i,_);for(const i of h)this._drawSourceImpl(e,t,$n,qn,i,_);for(const i of m)this._drawSourceImpl(e,t,$n,qn,i),i===d&&this.containsMainSeries()&&this._drawSourceImpl(e,t,Zn,qn,d);for(const i of m)this._drawSourceImpl(e,t,Yn,qn,i);p&&(this._drawSourceImpl(e,t,$n,qn,p),p===d&&this.containsMainSeries()&&this._drawSourceImpl(e,t,Zn,qn,d),this._drawSourceImpl(e,t,Yn,qn,p)) +;for(const i of a)this._drawSourceImpl(e,t,$n,qn,i,_);{const e=s.panes();for(let t=e.length-1;t>=0;t--)e[t].clearDrawingCaches()}}_drawSourceImpl(e,t,i,s,o,n){if(n&&n.has(o.id()))return;const r=i(o,this.state());if(r)for(const i of r){const o=i.renderer(t);o&&(e.save(),s(o,e,t),e.restore())}}_updateByThemedColors(){null!==this._legendWidget&&this._legendWidget.updateThemedColors(this._themedTopColor),null!==this._paneControls&&this._paneControls.updateThemedColors(this._themedTopColor)}_scrollUndoCommandInStack(){const e=this._chartUndoModel().undoHistory().undoStack();if(e.isEmpty())return!1;const t=e.head();if(!(t instanceof rt))return!1;if(t.isEmpty())return!1;return t.commands()[0]instanceof xn}_onStateDestroyed(){this.setState(null)}_onDataSourcesCollectionChanged(){this._startMoveSourceParams=null}_processMouseEnterLeaveMoveHandlers(e,t){if(null!==this._prevHoveredHittest&&(this._prevHoveredHittest.renderer!==e?.renderer||this._prevHoveredHittest.hittest.data()?.activeItem!==e.hittest.data()?.activeItem)){const e=this._sourceWasSelected(this._prevHoveredHittest);(0,Ut.tryCallHandler)(t,{sourceWasSelected:e},this._prevHoveredHittest.hittest.data()?.mouseLeaveHandler),this._prevHoveredHittest=null}if(!t.isTouch&&null!==e){const i=this._sourceWasSelected(e);this._prevHoveredHittest?.renderer!==e.renderer&&(e.hittest.tryCallMouseEnterHandler(t,{sourceWasSelected:i}),this._prevHoveredHittest=e),e.hittest.tryCallMouseMoveHandler(t,{sourceWasSelected:i})}}_startChangeOrMoveLineToolIfNeeded(){if(null!==this._startChangeLineToolParams){const e=this._startChangeLineToolParams;(0,re.trackEvent)("chart_alert","edit","start_change_line_tool_params"),this._chartUndoModel().startChangingLinetool(e.source,e.ownerSource,e.startPoint,e.pointIndex,e.envState)}if(null!==this._startMoveSourceParams){const e=this._startMoveSourceParams;(0,re.trackEvent)("chart_alert","edit","start_moving_sources"),this._chartUndoModel().startMovingSources(e.source,e.startPoint,e.activeItem,e.envState)}this._startMoveSourceParams=null,this._startChangeLineToolParams=null}_trackingModeShouldBeActive(){return!(!this._trackCrosshairOnlyAfterLongTap||this._contextMenuOpenedOnLastTap||this._crossHairShouldBeVisible())&&this._longTap}_processOutsideClick(e,t){let i=null;const s=this._chartModel();if(null!==e&&(i=e.isCustom?s.customSourceName(e.source):e.source.id()),null!==this._lastClickedSource&&this._lastClickedSource.id!==i){const e=this._lastClickedSource.id;let i=this._lastClickedSource.isCustom?s.customSourceForName(e):s.dataSourceForId(e);null!==i||this._lastClickedSource.isCustom||(i=s.dataSourceForId(e)),null!==i&&i.onClickOutside&&(i.onClickOutside((0,Kt.getBindingRenderingInfo)(this._canvasBinding),t),this._chartModel().updateSource(i))}this._lastClickedSource=null!==i?{id:i,isCustom:e?.isCustom??!1}:null}async showConfetti(e,t){0}_mouseClickOrTapEvent(e){if(!this.hasState())return;let t=null,i=null +;this._mouseTouchDownUpInfo&&this._mouseTouchDownUpInfo.toolCreation&&!this._mouseTouchDownUpInfo.mouseMove||(t=this._dataSourceAtPoint(e.localX,e.localY),i=t&&t.source);const s=this._chartUndoModel(),o=Boolean(t?.hittest.data()?.hideCrosshairLinesOnHover);this._processOutsideClick(t,e),s.model().setActivationChartFloatingTooltipHint(i),!this._isSelectPointModeEnabled()||o||e.isTouch&&this.trackingModeEnabled()&&!this._exitTrackingModeOnNextTry||s.crosshairSource().trySelectCurrentPoint();const r=this._sourceWasSelected(t);!(0,Lt.isLineToolName)(mt.tool.value())&&null!==t&&t.hittest.tryCallClickOrTapHandler(e,{sourceWasSelected:r})&&s.model().updateSource((0,n.ensureNotNull)(i)),!e.isTouch||this._isSelectPointModeEnabled()||t&&t.source===s.crosshairSource()||this._tryExitTrackingMode(),i&&(0,zs.isLineTool)(i)&&this._lastFinishedToolId!==i.id()&&(0,ee.emit)("drawing_event",i.id(),"click"),this._resetMeasureIfRequired(),this._mouseTouchDownUpInfo=null}_mouseDownOrTouchStartEvent(e,t){this._pressedMoveStage=1,this._preventScrollUntilNextMouseDownOrTouchStart=!1,this._selectionBeforeMouseDown=new Set(this._chartModel().selection().allSources()),e.isTouch&&(this._longTap=!1,this._exitTrackingModeOnNextTry=null!==this._startTrackPoint,this._paneWidgetsSharedState.clearDraggingSource()),this._contextMenuOpenedOnLastTap=!1,this._lastFinishedToolId=null;const i=this._chartModel();if(i.stopTimeScaleAnimation(),this._mouseTouchDownUpInfo={mouseMove:!1,toolCreation:Boolean(i.lineBeingCreated())},e.isTouch&&this._switchTrackingModeFromAnotherPaneIfNeeded(e),document.activeElement!==document.body&&document.activeElement!==document.documentElement)document.activeElement&&document.activeElement.blur?document.activeElement.blur():document.body.focus();else{const e=document.getSelection();null!==e&&e.removeAllRanges()}(0,ee.emit)("mouse_down",{clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY}),this._updateCommonTooltip(null);const s=this._chartUndoModel(),o=new To.EnvironmentState(e);s.mainSeries().clearGotoDateResult();const r=this.state().defaultPriceScale();if(s.timeScale().isEmpty())return;const a=s.crosshairSource();if(!e.isTouch&&!(0,Lt.isLineDrawnWithPressedButton)(mt.tool.value())){const t=null!==s.lineBeingCreated()?s.model().paneBeingCreatedLineOn():null;null!==t&&t!==this._state?this._setCursorPositionOnExternalPane(t,e.localX,e.localY,o):this.setCursorPosition(e.localX,e.localY,o)}e.isTouch&&(0,Lt.isLineToolName)(mt.tool.value())&&((0,Lt.isLineDrawnWithPressedButton)(mt.tool.value())||null!==a.pane?(0,Lt.isLineDrawnWithPressedButton)(mt.tool.value())&&this._clearCursorPosition():this._chart.updateCrossHairPositionIfNeeded());const l=(0,n.ensureNotNull)(this.state().mainDataSource()).firstValue();let c=null==l?null:r.coordinateToPrice(e.localY,l),h=i.timeScale().coordinateToIndex(e.localX);if(a.startMeasurePoint()&&a.endMeasurePoint()&&a.clearMeasure(),o.shift()&&(0,mt.toolIsCursor)(mt.tool.value())){const e=s.selection().isEmpty() +;(null===t||e&&!t.hittest.data()?.hasOwnShortcutsBehaviourFor?.shiftKey)&&(mt.tool.setValue("measure"),(0,wn.trackDrawingToolSelected)("measure","Keyboard shortcut"),e||s.selectionMacro((e=>e.clearSelection())))}if((e.isTouch&&!e.stylus||null===c||!this._tryStartMeasure(e,a,o,c,h))&&(e.isTouch&&!e.stylus||!this._tryFinishMeasure(e,a))&&!(this._tryFinishZoom(e)||null!==c&&this._tryStartZoom(e,c,h,o))){if(e.isTouch&&(null!==this._startTrackPoint?(this._initCrossHairPosition=a.currentPoint(),this._startTrackPoint=new Vt.Point(e.localX,e.localY)):this._isSelectPointModeEnabled()&&null===this._chart.trackingModePaneWidget()&&this.startTrackingMode(new Vt.Point(e.localX,e.localY),new Vt.Point(e.localX,e.localY),new To.EnvironmentState(e))),e.isTouch&&(this._preventSourceChange=null===t||!s.selection().isSelected(t.source)),!this._isSelectPointModeEnabled()&&!this._isScrolling){if(e.isTouch&&!e.stylus&&((0,mt.toolIsMeasure)(mt.tool.value())||null!==a.measurePane().value()))return void this._initToolCreationModeParams(e);if(null!==c&&((0,Lt.isLineToolName)(mt.tool.value())||s.lineBeingCreated()))return o.shift()||s.selectionMacro((e=>e.clearSelection())),void this._mouseDownEventForLineTool(e,o,h,c)}if((0,mt.toolIsDemonstration)(mt.tool.value())&&o.altOnly()){e.isTouch&&!this.trackingModeEnabled()&&this.startTrackingMode(new Vt.Point(e.localX,e.localY),new Vt.Point(e.localX,e.localY),new To.EnvironmentState(e));const t=this._chartModel().crosshairSource().crosshairDemonstration();t.createHighlighter();const i=this._localCoordinatesToLineDataSourcePoint(a.originX(),a.originY(),(0,n.ensureNotNull)(this.state().mainDataSource()));i&&t.addHighlighterPosition(i)}else{if(null!==t){const i=this._sourceWasSelected(t);t.hittest.tryCallMouseDownOrTouchStartHandler(e,{sourceWasSelected:i})}if(!this._chart.readOnly()){const r=this._handleSelectionMouseDownAndGetJustDeselectedSource(e,t,o);if(null!==t&&!this._preventSourceChange){const i=t.hittest.data();if(t.isCustom){if(t.hittest.hasPressedMoveHandler(e))return s.model().setMovingCustomSource(t.source,i),this._preventScrollUntilNextMouseDownOrTouchStart=!0,this._currentMovingHitTest={sourceAtPoint:t,cancelledContainer:s.model().customSourceMovingHitTestData()??void 0},void s.selectionMacro((e=>{e.clearSelection(),e.addSourceToSelection((0,n.ensureNotNull)(t.source),(0,n.ensureNotNull)(i))}))}else if(i?.areaName===Ut.AreaName.SourceItemMove){const o=i?.activeItem;if(void 0!==o)return s.startCustomMoving(t.source,o,e),this._currentMovingHitTest={sourceAtPoint:t},void s.selectionMacro((e=>{e.clearSelection(),e.addSourceToSelection((0,n.ensureNotNull)(t.source),(0,n.ensureNotNull)(i))}))}}if(null!==t&&this._tryHandleEraserMouseDown(t,o))return;const a=null!==t&&(0,zs.isLineTool)(t.source)&&t.source.isLocked&&t.source.isLocked();if(!((0,mt.lockDrawings)().value()||a)&&null!==t&&!t.isCustom){if(!t.source.userEditEnabled())return;const s=t.hittest.data()?.snappingPrice,a=t.hittest.data()?.snappingIndex;let u=e.localY,_=e.localX +;const p=t.hittest.data()?.ownerSourceId,m=p?i.dataSourceForId(p):t.source.ownerSource();if(void 0!==s&&null!==l&&(u=(0,n.ensure)(m?.priceScale()).priceToCoordinate(s,l),c=s),void 0!==a&&(_=i.timeScale().indexToCoordinate(a),h=a),u===e.localY&&_===e.localX||(e={...e,localY:u,localX:_},this.setCursorPosition(e.localX,e.localY,o)),this._tryStartChangingLineTool(e,t,o,h))return void(this._currentChangingLineToolHitTest=t);if(this._currentChangingLineToolHitTest=null,(d=t.hittest.target())===Ut.HitTarget.MovePoint||d===Ut.HitTarget.MovePointBackground&&(0,lo.lastMouseOrTouchEventInfo)().isTouch){if(this._tryStartCloning(e,t,o,r))return;if(this._tryStartMovingLineTool(e,t,o,h))return void(this._currentMovingHitTest={sourceAtPoint:t});this._currentMovingHitTest=null}}if(null!==t&&(0,An.isPriceDataSource)(t.source)&&t.source.isDraggable()&&this._state?.hasDataSource(t.source)&&this._paneWidgetsSharedState.trySetDraggingSource(t.source,this))return}var d;null!==t&&t.hittest.target()===Ut.HitTarget.Regular||(this._processing=!0)}}}_mouseUpOrTouchEndEvent(e){if(!this.hasState())return;this._pressedMoveStage=0;const t=e.isTouch&&null!==this._startTrackPoint,i=e.isTouch&&this._wasPinched;e.isTouch&&(this._wasPinched=!1,this._longTap=!1),this._startMoveSourceParams=null,this._startChangeLineToolParams=null,this._currentChangingLineToolHitTest=null,this._currentMovingHitTest=null;const s=this._chartUndoModel(),o=s.model().customSourceMovingHitTestData();null!==o||s.customMoveBeingProcessed()||this._processMouseUpOrTouchEndHandler(e),this._isSelecting=!1;const r=s.model(),a=r.crosshairSource(),l=this._dataSourceAtPoint(e.localX,e.localY);if(a.selection()&&null===this._firstZoomPoint){const e=this.state().lineToolsForArea(a.selection(),(0,Kt.getBindingRenderingInfo)(this._canvasBinding));s.selectionMacro((t=>{let i=null;e.forEach((e=>{null===i&&(i=Xn(l,e)),t.addSourceToSelection(e,i)}))})),a.clearSelection(),(0,re.trackEvent)("GUI","Multiselect","Area Select")}(0,ee.emit)("mouse_up",{clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY});const c=e.isTouch&&this._touchMove;e.isTouch&&(this._touchMove=!1);const h=new To.EnvironmentState(e),d=mt.tool.value();if(e.isTouch&&((0,mt.toolIsMeasure)(d)||null!==a.measurePane().value())){if(!c&&!e.stylus&&null===a.measurePane().value()&&a.pane!==this._state)return void this.setCursorPosition(e.localX,e.localY);if(!c&&!e.stylus&&this._tryStartMeasure(e,a,h,a.price,a.index))return;if((!c||e.stylus)&&this._tryFinishMeasure(e,a))return}if(e.isTouch&&!c&&!(0,Lt.isLineDrawnWithPressedButton)(d)&&(0,Lt.isLineToolName)(d)&&!s.lineBeingCreated()){if(this._chart.justActivated())return;if(a.pane!==this._state)return void this.setCursorPosition(e.localX,e.localY,h);const t=a.currentPoint(),i=this.state().defaultPriceScale(),o=(0,n.ensure)(this.state().mainDataSource()?.firstValue()),r={index:Math.round(s.timeScale().coordinateToIndex(t.x)),price:i.coordinateToPrice(t.y,o)},c=(0,n.ensureNotNull)(s.createLineTool({pane:this.state(),point:r,linetool:d, +actionSource:"Draw"}));return this._mouseTouchDownUpInfo&&(this._mouseTouchDownUpInfo.toolCreation=!0),s.selectionMacro((e=>{e.addSourceToSelection(c)})),s.lineBeingCreated()||(this._finishTool(c,l),e.preventDefault()),void(this._startTouchPoint=null)}const u=s.lineBeingCreated();if(u&&!(0,Lt.isLineDrawnWithPressedButton)(u.toolname)&&e.isTouch&&(this._startTouchPoint||e.stylus)){if(this._startTouchPoint=null,!c||e.stylus){const t=(0,n.ensureNotNull)(u.lastPoint()),i=s.continueCreatingLine({index:t.index,price:t.price},new To.EnvironmentState(e));this._initCrossHairPosition=null,i&&(this._finishTool(u,l),e.preventDefault())}return}if(null!==this._firstZoomPoint&&this._firstZoomPoint.draggingMode)return void this._finishZoom(e);if(this._processing=!1,s.customMoveBeingProcessed())return void s.endCustomMoving();if(null!==o){if(o.beingMoved&&!o.cancelled){const t=this._sourceWasSelected(l);(0,Ut.tryCallHandler)(e,{sourceWasSelected:t},o.mouseUpHandler,o.touchEndHandler),this.setCursorForTool()}if(r.setMovingCustomSource(null,null),or(e,o))return}if(r.lineBeingEdited())return s.endChangingLinetool(!1),void(this._preventCrossHairMove()&&this._clearCursorPosition());if((0,Lt.isLineDrawnWithPressedButton)(d)&&!this._isSelectPointModeEnabled()){const t=s.lineBeingCreated();null!==t&&(kn(),t.finish(),"LineToolBrush"===t.toolname&&(0,ee.emit)("drawing_event",t.id(),"create"));const i=this.state().defaultPriceScale();if(i.isEmpty())return;if(!t)return;const o=(0,n.ensure)(t.ownerSource()?.firstValue()),r=i.coordinateToPrice(e.localY,o),a={index:Math.round(s.timeScale().coordinateToIndex(e.localX)),price:r};return void s.continueCreatingLine(a)}const _=r.crosshairSource().crosshairDemonstration();if(_.isThereUnfinishedHighlighter())return void _.finishHighlighter();if(r.sourcesBeingMoved().length)return s.endMovingSource(!1,!1),r.sourcesBeingMoved().filter(zs.isLineTool).forEach((e=>{this.setCursorForTool(e)})),void r.invalidate(ao.InvalidationMask.cursor());if(!this._chart.readOnly()){const t=e.localX>=0&&e.localXt.projectTime(e,i)));null!==i&&this._chart.chartWidgetCollection().syncScroll(1e3*i,this._chartModel())}}}const p=this._isScrolling,m=this._endScroll(e),g=this._paneWidgetsSharedState.draggingSource();if(null!==g){const t=e.target,i=this._chart.paneByCanvas(t);i&&i!==this&&i.state().mode()===zi.PaneMode.Regular&&(m&&s.undoHistory().undo(),s.mergeToPane(g,i.state()));if(this._chart.timeAxisByCanvas(t))if(r.isUnmergeAvailableForSource(g))m&&s.undoHistory().undo(),s.unmergeToNewBottomPane(g);else{const e=r.panes(),t=(0,n.ensureNotNull)(r.paneForSource(g)),i=e.indexOf(t);i!==e.length-1&&(m&&s.undoHistory().undo(),t.maximized().value()&&s.toggleMaximizedPane(t),s.movePane(i,e.length-1))}this._paneWidgetsSharedState.clearDraggingSource();const o=this._chart.getTimeScale();o&&o.restoreDefaultCursor() +;const a=this._chart.paneWidgets();for(let e=0;eUt.HitTarget.MovePointBackground||(0,lo.lastMouseOrTouchEventInfo)().isTouch)&&s.selectionMacro((e=>{e.clearSelection();const t=(0,n.ensureNotNull)(l.source);e.addSourceToSelection(t,Xn(l,t))})),e.isTouch&&(this._touchMove=!1)}_mouseOrTouchMoveEvent(e){if(!this.hasState())return;this._mouseTouchDownUpInfo&&(this._mouseTouchDownUpInfo.mouseMove=!0),this._resetMeasureIfRequired();const t=this._dataSourceAtPoint(e.localX,e.localY);this._processMouseEnterLeaveMoveHandlers(t,e);const i=this._chartUndoModel();if(!i)return;const s=e.localX,o=e.localY;this._prevMoveEventPosition=new Vt.Point(s,o);const n=new To.EnvironmentState(e);if(null===this._firstZoomPoint){if(this._updateHoveredSource(t,n,e),!e.isTouch&&i.lineBeingCreated()){const e=i.model().paneBeingCreatedLineOn();if(null!==e&&e!==this._state)return void this._setCursorPositionOnExternalPane(e,s,o,n)}e.isTouch||this.setCursorPosition(s,o,n)}else this._processMouseMoveWhileZoom(e,n)}_pressedMouseOrTouchMoveEvent(e){if(this._chartModel().dragExportEnabled().value()&&void 0!==e.buttons&&!Boolean(1&e.buttons))return;if(!this.hasState()||this._pinching||e.isTouch&&this._contextMenuOpenedOnLastTap)return;this._pressedMoveStage=2,this._mouseTouchDownUpInfo&&(this._mouseTouchDownUpInfo.mouseMove=!0),this._resetMeasureIfRequired(),this._startChangeOrMoveLineToolIfNeeded(),e.isTouch&&(this._touchMove=!0,this._preventSourceChange=!1);const t=new To.EnvironmentState(e),i=this._chartUndoModel(),s=i.crosshairSource(),o=e.localX,r=e.localY;if(this._prevMoveEventPosition=new Vt.Point(o,r),null!==this._firstZoomPoint)return this._processMouseMoveWhileZoom(e),void(this._firstZoomPoint.draggingMode=!0);const a=mt.tool.value();if(e.isTouch&&this._startTouchPoint&&(0,Lt.isLineToolName)(a)&&!(0,Lt.isLineDrawnWithPressedButton)(a)&&!i.lineBeingCreated()&&!this._isSelectPointModeEnabled())return void this._updateCrosshairPositionInToolCreationMode(e,this.state());const l=s.measurePane().value();if(e.isTouch&&(this._startTouchPoint||e.stylus)&&((0,mt.toolIsMeasure)(a)||null!==l))return void(e.stylus?this.setCursorPosition(e.localX,e.localY,new To.EnvironmentState(e)):this._updateCrosshairPositionInToolCreationMode(e,l||this.state()));const c=i.lineBeingCreated();if(e.isTouch&&!e.stylus&&c&&!(0,Lt.isLineDrawnWithPressedButton)(c.toolname)){if(this._startTouchPoint){const t=(0,n.ensureNotNull)(i.lineBeingCreated()),s=(0,n.ensureNotNull)(i.model().paneForSource(t));this._updateCrosshairPositionInToolCreationMode(e,s)}return}if(e.isTouch&&null!==this._startTrackPoint){this._exitTrackingModeOnNextTry=!1;const e=(0,n.ensureNotNull)(this._initCrossHairPosition),i=new Vt.Point(o,r).subtract(this._startTrackPoint),s=e.add(i) +;this.setCursorPosition(s.x,s.y,t)}else e.isTouch&&this._preventCrossHairMove()||this.setCursorPosition(o,r,t);const h=this._isSelectPointModeEnabled();if((0,Lt.isLineToolName)(a)&&!(0,Lt.isLineDrawnWithPressedButton)(a)&&!h&&!t.mod())return;if((0,Lt.isLineDrawnWithPressedButton)(a)&&!h){const t=i.lineBeingCreated();if(!t)return;const s=this._localCoordinatesToLineDataSourcePoint(e.localX,e.localY,(0,n.ensureNotNull)(t.ownerSource()));return void(s&&i.continueCreatingLine(s))}const d=i.crosshairSource().crosshairDemonstration();if(d.isThereUnfinishedHighlighter()){const e=this._localCoordinatesToLineDataSourcePoint(s.originX(),s.originY(),(0,n.ensureNotNull)(this.state().mainDataSource()));return void(e&&d.addHighlighterPosition(e))}if(null!==this._paneWidgetsSharedState.draggingSource()){const t=e.target,i=this._chart.paneByCanvas(t);i&&(i!==this?i.setDragToAnotherPaneCursor():i.setCursorForTool());const s=this._chart.timeAxisByCanvas(t);s&&s.setCursor("grabbing")}if(i.timeScale().isEmpty())return;const u=this._options.handleScroll;if((!u.pressedMouseMove||e.isTouch)&&(!u.horzTouchDrag&&!u.vertTouchDrag||!e.isTouch))return;if(this._chartModel().dragExportEnabled().value()&&this._ignoringMouseMovement)return;if(i.customMoveBeingProcessed())return void i.processCustomMove(e);const _=i.model().customSourceMovingHitTestData();if(null!==_&&(this._updateCommonTooltip(null,!0),_.cancelled||(i.model().processingCustomSourceMove(),(0,Ut.tryCallHandler)(e,{sourceWasSelected:this._selectionBeforeMouseDown.has(i.model().customSourceBeingMoved())},_.pressedMouseMoveHandler,_.touchMoveHandler)),or(e,_)))return;if(i.model().lineBeingEdited())return void this.setCursorPosition(o,r,t);if(i.model().sourcesBeingMoved().length)return void this._alignSourcesThatBeingMoved(i.model().sourcesBeingMoved(),e.localX,e.localY,t,i.model().lastHittestData()?.possibleMovingDirections);const p=this._dataSourceAtPoint(e.localX,e.localY);if(this._tryFinishClonning(e,new To.EnvironmentState(e),p))return;const m=(0,mt.toolIsMeasure)(a)||s.startMeasurePoint()&&s.endMeasurePoint();this._chart.readOnly()||!t.mod()||(0,Lt.isLineToolName)(a)||m||h?(this._processScroll(e),this._preventScroll()&&!this._preventCrossHairMove()&&null===this._startTrackPoint&&this.setCursorPosition(e.localX,e.localY,new To.EnvironmentState(e))):this._isSelecting||(s.startSelection(this.state()),this._isSelecting=!0)}_mouseOrTouchLeaveEvent(e){if(!this.hasState())return;const t=this._chartUndoModel();if(!t)return;const i=t.crosshairSource();e.isTouch||null!==i.measurePane().value()&&null===i.endMeasurePoint()||this._clearCursorPosition();if(this._chartModel().setHoveredSource(null,null),null!==this._prevHoveredHittest){const t=this._sourceWasSelected(this._prevHoveredHittest);(0,Ut.tryCallHandler)(e,{sourceWasSelected:t},this._prevHoveredHittest.hittest.data()?.mouseLeaveHandler),this._prevHoveredHittest=null}this._updateCommonTooltip(null),this._chart.setActivePaneWidget(null)}_mouseDoubleClickOrDoubleTapEvent(e){if(!this.hasState())return;const t=!this._chart.readOnly()&&!(0, +Lt.isLineToolName)(mt.tool.value())&&this._dataSourceAtPoint(e.localX,e.localY)||null,i=this._sourceWasSelected(t);if(null!==t&&t.isCustom)t.hittest.tryCallDblClickOrDblTapHandler(e,{sourceWasSelected:i});else if(null!==t&&(e.isTouch||t.hittest.target()>Ut.HitTarget.MovePointBackground))t.hittest.tryCallDblClickOrDblTapHandler(e,{sourceWasSelected:i})&&!(0,Ut.shouldDefaultActionBeExecuted)(e,(0,n.ensureNotNull)(t.hittest.data()),"doubleClickHandler","doubleTapHandler")||this.processDoubleClickOnSource(t.source,t.hittest?t.hittest:void 0);else if(!this._chart.readOnly()&&!(0,Lt.isLineToolName)(mt.tool.value())&&!this._chartUndoModel().lineBeingCreated()&&this._chartUndoModel().selection().isEmpty()){const t=this.state();new To.EnvironmentState(e).mod()&&!t.maximized().value()?(t.collapsed().value()||t.collapsingAvailable().value())&&this._chartUndoModel().toggleCollapsedPane(this.state()):this._chartUndoModel().toggleMaximizedPane(this.state())}}_contextMenuEvent(e){const t=this._chartUndoModel();if(t.crosshairSource().startMeasurePoint()&&!this._trackCrosshairOnlyAfterLongTap)return t.crosshairSource().clearMeasure(),void(0,mt.resetToCursor)(!0);if(this._pinching)return;if(null===this._firstZoomPoint||this._trackCrosshairOnlyAfterLongTap||this.cancelZoom(),!(0,mt.toolIsCursor)(mt.tool.value())||this._isSelectPointModeEnabled()){if(e.isTouch)return;return(0,mt.resetToCursor)(!0),this.setCursorForTool(),void(t.lineBeingCreated()&&t.cancelCreatingLine())}if(!this._options.contextMenuEnabled)return;const i=this._dataSourceAtPoint(e.localX,e.localY),s=i?i.source:null;if(e.isTouch&&null!==this._startTrackPoint){if(this._preventSourceChange)return;this._clearCursorPosition()}e.isTouch&&(this._contextMenuOpenedOnLastTap=!0,this._startTrackPoint=null),this._contextMenuX=e.localX,this._contextMenuY=e.localY;const o=i&&i.hittest?i.hittest.target():0,n=o>=Ut.HitTarget.Regular||o>=Ut.HitTarget.MovePointBackground&&e.isTouch;if(t.selectionMacro((t=>{null!==s&&n?t.selection().isSelected(s)||(t.clearSelection(),t.addSourceToSelection(s,Xn(i,s))):(this._options.contextMenu.general&&this._showContextMenu(e),t.clearSelection())})),null!==i&&n&&null!==s)if((0,Po.isDataSource)(s)&&s.hasContextMenu())s.isSelectionEnabled()?this.showContextMenuForSelection(e,void 0,i.hittest):this.showContextMenuForSources([s],e,void 0,void 0,i.hittest);else{const t=this._sourceWasSelected(i);i.hittest.tryCallContextMenuHandler(e,{sourceWasSelected:t})}}_onMouseEvent(){this._preventSourceChange=!1,this._startTrackPoint=null,this._trackCrosshairOnlyAfterLongTap=!1}_onTouchEvent(){this._trackCrosshairOnlyAfterLongTap=!0}_localCoordinatesToLineDataSourcePoint(e,t,i){const s=this.state().defaultPriceScale();if(s.isEmpty())return null;const o=new Vt.Point(e,t),r=(0,n.ensure)(i.firstValue());return o.price=s.coordinateToPrice(t,r),o.index=Math.round(this._chartUndoModel().timeScale().coordinateToIndex(e)),o}_switchTrackingModeFromAnotherPaneIfNeeded(e){const t=this._chart.trackingModePaneWidget();if(null!==t&&t!==this){ +const i=this._chartModel().crosshairSource().currentPoint();t._exitTrackingModeOnNextTry=!0,t._tryExitTrackingMode(!0),this.startTrackingMode(new Vt.Point(e.localX,e.localY),new Vt.Point(i.x,e.localY),new To.EnvironmentState(e))}}async _showContextMenu(e){const t=e=>e instanceof zo.Separator,i=this._customActions(),s=(await this._initActions(e)).filter((e=>null!==e));i.remove.forEach((e=>{for(let t=0;t0;e--)t(o[e])&&t(o[e-1])&&o.splice(e,1);o.length&&t(o[0])&&o.splice(0,1),o.length&&t(o[o.length-1])&&o.splice(o.length-1,1),Io.ContextMenuManager.showMenu(o,e,{statName:"ChartContextMenu"},{menuName:"ChartContextMenu"})}async _initActions(e){const t=this._chart.actions(),i=[];if(this._chart.model().model().resetScalesAvailable().value()&&(i.push(t.chartReset),i.push(new zo.Separator)),!this.state().isEmpty()&&l.enabled("datasource_copypaste")&&this.state().mode()===zi.PaneMode.Regular){const{createPasteAction:t,createActionCopyPrice:s}=await(0,Go.actionsProviderModule)(),o=s(this.state(),e.localY),n=t(this._chart,this.state());(o||n)&&(o&&i.push(o),n&&i.push(n),i.push(new zo.Separator))}i[i.length-1]instanceof zo.Separator||i.push(new zo.Separator),i.push(this._createLockTimeAxisAction(e)),i.push(new zo.Separator),i[i.length-1]instanceof zo.Separator||i.push(new zo.Separator),this._chart.applyIndicatorsToAllChartsAvailable()&&(i.push(t.applyStudiesToAllCharts),i.push(new zo.Separator));const s=t.paneRemoveAllDrawingTools.getState().disabled;s||i.push(t.paneRemoveAllDrawingTools);const o=t.paneRemoveAllStudies.getState().disabled;return o||i.push(t.paneRemoveAllStudies),s&&o||i.push(new zo.Separator),i.push(t.hideAllMarks),i.push(new zo.Separator),l.enabled("show_chart_property_page")&&i.push(t.chartProperties),i[i.length-1]instanceof zo.Separator&&i.pop(),i}_loadAndCreateLegendWidget(){Promise.all([i.e(3644),i.e(3439),i.e(1171),i.e(2537),i.e(8752),i.e(7780),i.e(2112),i.e(7691),i.e(7369),i.e(2227),i.e(2477),i.e(8093),i.e(5093)]).then(i.bind(i,6639)).then((e=>{if(this._isDestroyed||!this._options.legendWidgetEnabled||this._legendWidget)return;const t=e.LegendWidget,i=(0,ge.deepExtend)({},this._options.legendWidget);i.canShowSourceCode=!this._chart.onWidget()&&!ze.CheckMobile.any(),i.readOnlyMode=i.readOnlyMode||this._chart.readOnly(),i.statusesWidgets={sourceStatusesEnabled:this._options.sourceStatusesWidgetEnabled,sourceStatuses:this._options.sourceStatusesWidget||{},marketStatusEnabled:this._options.marketStatusWidgetEnabled,dataUpdateModeEnabled:this._options.chartWarningWidgetEnabled,dataUpdateMode:this._options.chartWarningWidget||{},dataProblemEnabled:this._options.dataProblemWidgetEnabled,pineSourceStatusEnabled:this._options.pineSourceStatusEnabled,alertStatusEnabled:this._options.alertStatusEnabled};const s=(0, +ft.combine)(((e,t)=>tr&&this._chart!==e&&!t),this._chart.chartWidgetCollection().activeChartWidget.weakReference(),this._chart.chartWidgetCollection().lock.crosshair.weakReference()),o=(0,ft.combine)(((e,t)=>null!==e?e===this._state:(0,mt.toolIsMeasure)(t)),this._chartModel().crosshairSource().measurePane().weakReference(),mt.tool.weakReference());this._legendWidget=new t(this._chartUndoModel(),this,this._chart.backgroundTopTheme().spawnOwnership(),s.ownership(),this._visuallyCollapsed.spawnOwnership(),o.ownership(),i,{showContextMenuForSelection:this.showContextMenuForSelection.bind(this),showContextMenuForSources:this.showContextMenuForSources.bind(this),showChartPropertiesForSource:this._chart.showChartPropertiesForSource.bind(this._chart),showGeneralChartProperties:this._chart.showGeneralChartProperties.bind(this._chart),showObjectsTreeDialog:this._chart.showObjectsTreeDialog.bind(this._chart),onLegendRowFocused:()=>{this._chart.chartWidgetCollection().activeChartWidget.setValue(this._chart)}}),this._div.prepend(this._legendWidget.getElement()),this._legendWidget.updateLayout(),this._legendWidget.updateWidgetModeBySize(this._size),this._legendWidget.updateThemedColors(this._themedTopColor);for(const e of Array.from(this._customLegendWidgetsFactoryMap.keys()))this._legendWidget.addCustomWidgetToLegend(e,(0,n.ensureDefined)(this._customLegendWidgetsFactoryMap.get(e)))}))}_loadAndCreatePaneControlsWidget(e){Promise.all([i.e(3644),i.e(3439),i.e(1171),i.e(2537),i.e(8752),i.e(7780),i.e(2112),i.e(7691),i.e(7369),i.e(2227),i.e(2477),i.e(8093),i.e(5093)]).then(i.bind(i,24028)).then((t=>{if(this._isDestroyed||this._state!==e)return;const i=t.PaneControlsWidget;this._paneControls=new i(this._chartUndoModel(),e,{backgroundThemeName:this._chart.backgroundTopTheme(),anySeparatorSelected:this._anySeparatorSelected.weakReference()},this._div),this._paneControls.updateWidgetModeByWidth(this._size.width),this._paneControls.updateThemedColors(this._themedTopColor),this._paneControlsResizeObserver=new ResizeObserver(this._handleRestrictLegendWidth.bind(this)),this._paneControlsResizeObserver.observe(this._paneControls.getElement()),this._state?.collapsed().value()&&this._chartModel().fullUpdate()}))}_handleRestrictLegendWidth(e){if(null===this._legendWidget||null===this._paneControls)return;const t=e[e.length-1].contentRect.width,i=0===t?0:t+2*Wn;this._legendWidget.addMargin(i)}_onMagnetStateChanged(){this._chart.isActive().value()&&(this._isSelectPointModeEnabled()||this._isToolActionActiveOnPane(!0))&&this._chartModel().crosshairSource().visible&&this._updateLineToolUsingMagnetOrShift()}_onShiftKeyStateChanged(){this._chart.isActive().value()&&this._isToolActionActiveOnPane(!1)&&this._chartModel().crosshairSource().visible&&this._updateLineToolUsingMagnetOrShift(To.EnvironmentState.create((0,Vs.shiftPressed)().value()))}_isToolActionActiveOnPane(e){const t=this._chartModel(),i=t.lineBeingCreated()||t.lineBeingEdited()||t.sourcesBeingMoved().length>0&&t.sourcesBeingMoved()[0];return i?t.paneForSource(i)===this._state:e&&(0, +Lt.isLineToolName)(mt.tool.value())&&t.crosshairSource().pane===this._state}_updateLineToolUsingMagnetOrShift(e){if(null===this._prevMoveEventPosition)return;const{x:t,y:i}=this._prevMoveEventPosition,s=this._chartModel().sourcesBeingMoved();s.length>0?(mt.isStudyEditingNow.value()&&this.setCursorPosition(t,i,e),this._alignSourcesThatBeingMoved(s,t,i,e)):this.setCursorPosition(t,i,e)}_showEditDialogForSource(e,t){if(this._options.propertyPagesEnabled&&e.userEditEnabled())if(e===this._chartUndoModel().mainSeries())this._chart.showGeneralChartProperties(Ns.TabNames.symbol);else if((0,zs.isLineTool)(e)||(0,Ws.isStudy)(e)){let i;const s=t?.data();if(null!=s){const e=s.areaName;void 0!==e&&(i=er.get(e))}this._chart.showChartPropertiesForSource(e,i).then((e=>{this._editDialog=e}))}}_initToolCreationModeParams(e){this._startTouchPoint=new Vt.Point(e.pageX,e.pageY),this._initCrossHairPosition=this._chartModel().crosshairSource().currentPoint()}_updateCrosshairPositionInToolCreationMode(e,t){if(t!==this._state){const i=this._chart.paneByState(t);return i._startTouchPoint=this._startTouchPoint,i._initCrossHairPosition=this._initCrossHairPosition,void i._updateCrosshairPositionInToolCreationMode(e,t)}const i=this._chartModel().crosshairSource();this._chart.justActivated()&&(this._initCrossHairPosition=i.currentPoint());const s=e.pageX,o=e.pageY,r=(0,n.ensureNotNull)(this._initCrossHairPosition),a=new Vt.Point(s,o).subtract((0,n.ensureNotNull)(this._startTouchPoint)),l=r.add(a);this.setCursorPosition(l.x,l.y,new To.EnvironmentState(e))}_priceAxisesContainer(e){return"left"===e?this._lhsPriceAxisesContainer:this._rhsPriceAxisesContainer}_recalculatePriceScales(e){const t=this.state();for(const i of t.leftPriceScales())t.recalculatePriceScale(i,e);for(const i of t.rightPriceScales())t.recalculatePriceScale(i,e);for(const i of t.sourcesByGroup().overlayPriceScaleSources())(0,zs.isLineTool)(i)||t.recalculatePriceScale(i.priceScale(),e)}_createLockTimeAxisAction(e){const t=0===mt.crosshairLock.value()?.type;return new zo.Action({actionId:"Chart.Crosshair.LockVerticalCursor",options:{label:jn,statName:"LockCursorInTime",checkable:!0,checked:t,onExecute:()=>this._toggleLockTimeAxis(e.localX,!t)}})}_toggleLockTimeAxis(e,t){if(t){const t=this._chartUndoModel().timeScale(),i=t.coordinateToIndex(e),s=t.points().roughTime(i);if(null!==s)return void mt.crosshairLock.setValue({type:0,time:s})}mt.crosshairLock.setValue(null)}_preventTouchEventsExceptPinch(){return this._paneWidgetsSharedState.hasTouchesOnOtherPanes(this)||null!==this._paneWidgetsSharedState.pinchingPane()}_updateHoveredSource(e,t,i){const s=this._chartUndoModel(),o=s.model();let n=!1;const r=e&&e.source,a=this._chart.readOnly();if(o.crosshairSource().isReplaySelection())this._setCursorClassName("none");else if(!(!a||e&&(0,zs.isLineTool)(e.source))||this._editDialog&&this._editDialog.visible().value())a&&(o.setHoveredSource(null,null),this.setCursorForTool());else{const l=mt.tool.value();let c=null;if(!this._processing&&((0,mt.toolIsCursor)(l)||(0, +mt.toolIsEraser)(l)&&!a||t.mod()||!s.lineBeingCreated())){const t=e?.hittest;n=Boolean(t?.data()?.hideCrosshairLinesOnHover),t&&t.target()>Ut.HitTarget.MovePointBackground?(c=r,!r?.isHoveredEnabled()||(0,mt.toolIsEraser)(l)&&r===s.mainSeries()?o.setHoveredSource(null,null):o.setHoveredSource(r,t.data(),0)):o.setHoveredSource(null,null)}a?this.setCursorForTool(c,t,ei.PaneCursorType.Default):this._options.sourceSelectionEnabled&&(this._isSelectPointModeEnabled()?this._setCursorClassName("pointer"):this.setCursorForTool(c,t,e?.hittest.data()?.cursorType));const h=o.customSourceBeingMoved(),d=null!==h?[h]:o.sourcesBeingMoved();if((!d.length||null!==e&&-1===d.indexOf(e.source))&&this._updateCommonTooltip(e),!a&&null!==e&&i&&e.hittest.hasPressedMoveHandler(i)){switch((e.hittest.data()||{}).cursorType){case ei.PaneCursorType.VerticalResize:this._setCursorClassName("ns-resize");break;case ei.PaneCursorType.HorizontalResize:this._setCursorClassName("we-resize");break;case ei.PaneCursorType.DiagonalNeSwResize:this._setCursorClassName("nesw-resize");break;case ei.PaneCursorType.DiagonalNwSeResize:this._setCursorClassName("nwse-resize")}}}this._preventCrossHairMove()&&this._clearCursorPosition(),1!==this._pressedMoveStage&&o.crosshairSource().setLinesShouldBeHidden(n)}async _createErrorBlock(){const e=new(await Ks());return this._div.insertBefore(e.container,this._topCanvasBinding.canvasElement.nextSibling),e}_customActions(){const e={top:[],bottom:[],remove:[]},t=this._chartUndoModel().timeScale(),i=this._state&&this._state.defaultPriceScale();if(!l.enabled("custom_items_in_context_menu"))return e;const s=t.isEmpty()?void 0:t.indexToUserTime(t.coordinateToIndex(this._contextMenuX));let o;if(i&&!i.isEmpty()){const e=(0,n.ensureNotNull)(this.state().mainDataSource()).firstValue();o=i.coordinateToPrice(this._contextMenuY,(0,n.ensureNotNull)(e))}return(0,ee.emit)("onContextMenu",{unixtime:null!=s?s.getTime()/1e3:void 0,price:o,callback:t=>{[...t].forEach((t=>{if(t.text)if(t.text.length>1&&"-"===t.text[0])e.remove.push(t.text.slice(1));else{let i;i="-"===t.text?new zo.Separator:new zo.Action({actionId:"Chart.ExternalActionId",options:{label:t.text,onExecute:t.click}}),t.position&&"top"===t.position?e.top.push(i):e.bottom.push(i)}}))}}),e}_highlightPriceAxisesByLabel(e){this._state?.mode()===zi.PaneMode.Regular&&(this._lhsPriceAxisesContainer.setHighlightedPriceAxises(e),this._rhsPriceAxisesContainer.setHighlightedPriceAxises(e))}_subscribeToState(){const e=this.state();e.onDestroyed().subscribe(this,this._onStateDestroyed,!0),e.dataSourcesCollectionChanged().subscribe(this,this._onDataSourcesCollectionChanged),e.maximized().subscribe(this._updateVisuallyCollapsed,{callWithLast:!0}),e.collapsed().subscribe(this._updateVisuallyCollapsed,{callWithLast:!0}),e.maximized().subscribe(this._updateMaximized,{callWithLast:!0})}_unsubscribeFromState(){const e=this.state();e.onDestroyed().unsubscribeAll(this),e.dataSourcesCollectionChanged().unsubscribeAll(this),e.maximized().unsubscribe(this._updateVisuallyCollapsed), +e.collapsed().unsubscribe(this._updateVisuallyCollapsed),e.maximized().unsubscribe(this._updateMaximized),this._maximized.setValue(!1)}_updateAccessibilityAttr(){if(this.hasState()&&this.state().isMainPane().value()){const e=this._chartModel().mainSeries(),t=e.symbol(),s=(0,ht.getTranslatedResolutionModel)(e.interval()).hint,o=a.t(null,{replace:{symbol:t,interval:s}},i(1136));this._topCanvasBinding.canvasElement.setAttribute("aria-label",o)}else this._topCanvasBinding.canvasElement.setAttribute("aria-hidden","true")}async _updateEndOfSeriesBanner(){0}_paneDblClickOrTapEvent(e){if(this._chart.readOnly())return;const t=this._dataSourceAtPoint(e.localX,e.localY);if(null!==t&&(0,zs.isEditableTextLineTool)(t.source)){const e=t.source.textEditingActivationTime();null!==e&&performance.now()-e<500&&this.processDoubleClickOnSource(t.source,t.hittest)}}}class ar{constructor(){this._draggingSource=null,this._activeTouchPanes=new Set,this._scrollingPane=null,this._pinchingPane=null}onPaneDestroyed(e){this._activeTouchPanes.delete(e),this._scrollingPane===e&&(this._scrollingPane=null),this._pinchingPane===e&&(this._pinchingPane=null)}startTouch(e){this._activeTouchPanes.add(e)}endTouch(e){this._activeTouchPanes.delete(e)}hasTouchesOnOtherPanes(e){return this._activeTouchPanes.size>1||1===this._activeTouchPanes.size&&!this._activeTouchPanes.has(e)}trySetDraggingSource(e,t){return!this.hasTouchesOnOtherPanes(t)&&((0,n.assert)(null===this._draggingSource||this._draggingSource===e),this._draggingSource=e,!0)}clearDraggingSource(){null!==this._draggingSource&&(this._draggingSource=null)}draggingSource(){return this._draggingSource}setScrollingPane(e){(0,n.assert)(null===e||null===this._scrollingPane||this._scrollingPane===e),this._scrollingPane=e}scrollingPane(){return this._scrollingPane}setPinchingPane(e){(0,n.assert)(null===e||null===this._pinchingPane||this._pinchingPane===e),this._pinchingPane=e}pinchingPane(){return this._pinchingPane}}var lr,cr=i(19679),hr=i(95772);i(20715);!function(e){e[e.BorderSize=1]="BorderSize",e[e.OffsetSize=5]="OffsetSize"}(lr||(lr={}));const dr={contextMenuEnabled:!0,timezoneMenuEnabled:!0,pressedMouseMoveScale:!0},ur=new dt.TranslatedString("change session",a.t(null,void 0,i(87041))),_r=a.t(null,void 0,i(94031));class pr{constructor(e,t,i,s,o){this._rendererOptions=null,this._onLabelHovered=new ae.Delegate,this._mousedown=!1,this._currentCursorClassName="invalid",this._options=(0,tt.merge)((0,tt.clone)(dr),t||{}),this.chart=e,this._properties=e.properties().childs().scalesProperties,this._element=document.createElement("div"),this._element.style.display="flex",this._backgroundBasedTheme=o;const n=e.model().model().rendererOptionsProvider(),r=()=>this.backgroundColor(),a=()=>{throw new Error("Time axis does not support real price scales")},l={titlesProvider:i,stubContextMenuProvider:async(e,t)=>{const i=await s(e,t),o=this.getContextMenuActions(!0);return 0===o.length?i:i.concat(new zo.Separator,o)},backgroundBasedTheme:o.spawnOwnership(),onActiveOrHoveredChart:(0, +ft.combine)(((e,t)=>e||t),this.chart.isActive().weakReference(),this.chart.isHovered().weakReference()).ownership(),rendererOptionsProvider:n,getBackgroundTopColor:r,getBackgroundBottomColor:r,requestRepaint:()=>{this.chart.model().model().invalidate(ao.InvalidationMask.timeScale(ao.InvalidationLevel.Light,!0))},showHorizontalBorder:!0};this._lhsStubContainer=new Vo(this._properties,"left",a,l,this._options.priceAxisLabelsOptions,this),this._lhsStubContainer.onLabelHovered().subscribe(this,((e,t)=>{this._onLabelHovered.fire(e,t)})),this._rhsStubContainer=new Vo(this._properties,"right",a,l,this._options.priceAxisLabelsOptions,this),this._rhsStubContainer.onLabelHovered().subscribe(this,((e,t)=>{this._onLabelHovered.fire(e,t)})),this._element.appendChild(this._lhsStubContainer.getElement()),this._cell=document.createElement("div"),this._element.appendChild(this._cell),this._cell.classList.add("chart-markup-table","time-axis"),this._cell.style.height="25px",this._dv=document.createElement("div"),this._dv.style.width="100%",this._dv.style.height="100%",this._dv.style.position="relative",this._dv.style.overflow="hidden",this._cell.appendChild(this._dv),this._canvasConfiguredHandler=()=>this.chart.model().model().lightUpdate(),this._canvasBinding=(0,Kt.createBoundCanvas)(this._dv,(0,Ft.size)({width:16,height:16})),this._canvasBinding.subscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler);const c=this._canvasBinding.canvasElement;c.style.position="absolute",c.style.zIndex="1",c.style.left="0",c.style.top="0",this._topCanvasBinding=(0,Kt.createBoundCanvas)(this._dv,(0,Ft.size)({width:16,height:16})),this._topCanvasBinding.subscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler);const h=this._topCanvasBinding.canvasElement;h.style.position="absolute",h.style.zIndex="2",h.style.left="0",h.style.top="0",this._dv.setAttribute("aria-hidden","true"),this._element.appendChild(this._rhsStubContainer.getElement()),this.restoreDefaultCursor(),this.update(),this._minVisibleSpan=cr.MINUTE_SPAN,this._mouseEventHandler=new Wt.MouseEventHandler(this._topCanvasBinding.canvasElement,this,{treatVertTouchDragAsPageScroll:!0,treatHorzTouchDragAsPageScroll:!1}),this.size=(0,Ft.size)({width:0,height:0}),(0,mt.hideMarksOnBars)().subscribe(this,(()=>this.chart.model().model().lightUpdate()))}destroy(){this._mouseEventHandler.destroy(),this._topCanvasBinding.unsubscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler),this._topCanvasBinding.dispose(),this._canvasBinding.unsubscribeSuggestedBitmapSizeChanged(this._canvasConfiguredHandler),this._canvasBinding.dispose(),this._rhsStubContainer.onLabelHovered().unsubscribeAll(this),this._lhsStubContainer.onLabelHovered().unsubscribeAll(this),this._lhsStubContainer.destroy(),this._rhsStubContainer.destroy(),this.chart.properties().childs().paneProperties.childs().background.unsubscribeAll(this),this._backgroundBasedTheme.release(),(0,mt.hideMarksOnBars)().unsubscribeAll(this)}setCursor(e){let t="";"grabbing"!==e&&"ew-resize"!==e||(t="time-axis--cursor-"+e), +this._currentCursorClassName!==t&&(this._currentCursorClassName&&this._cell.classList.remove(this._currentCursorClassName),t&&this._cell.classList.add(t),this._currentCursorClassName=t,this._cell.style.cursor)}restoreDefaultCursor(){this.setCursor("")}getElement(){return this._element}optimalHeight(){const e=this.rendererOptions();return Math.ceil(e.borderSize+e.offsetSize+e.fontSize+e.paddingTop+e.paddingBottom+e.labelBottomOffset)}setSizes(e,t,i){this.size&&(0,Ft.equalSizes)(this.size,e)||(this.size=e,this._canvasBinding.resizeCanvasElement(e),this._topCanvasBinding.resizeCanvasElement(e),this._cell.style.width=e.width+"px",this._cell.style.height=e.height+"px"),this._lhsStubContainer.setSizes(e.height,t),this._rhsStubContainer.setSizes(e.height,i)}rendererOptions(){if(!this._rendererOptions||this._rendererOptions.fontSize!==this.fontSize()){const e=this.fontSize();this._rendererOptions={borderSize:1,offsetSize:5,fontSize:e,font:(0,si.makeFont)(e,m.CHART_FONT_FAMILY,""),widthCache:new Qt.TextWidthCache,paddingTop:3*e/12,paddingBottom:3*e/12,paddingHorizontal:9*e/12,labelBottomOffset:4*e/12}}return this._rendererOptions}backgroundColor(){return this.chart.model().model().backgroundColor().value()}lineColor(){const e=this._properties.childs().lineColor.value();if(0===(0,Nt.parseRgba)(e)[3]){const e=this.chart.model().model().lastPane();if(e&&e.collapsed().value())return this.chart.properties().childs().paneProperties.childs().separatorColor.value()}return e}textColor(){return this._properties.childs().textColor.value()}fontSize(){return this._properties.childs().fontSize.value()}baseFont(){return(0,si.makeFont)(this.fontSize(),m.CHART_FONT_FAMILY)}baseBoldFont(){return(0,si.makeFont)(this.fontSize(),m.CHART_FONT_FAMILY,"","bold")}hasCanvas(e){return this._canvasBinding.canvasElement===e||this._topCanvasBinding.canvasElement===e}onLabelHovered(){return this._onLabelHovered}getScreenshotData(){return{content:this._canvasBinding.canvasElement.toDataURL(),canvas:this._canvasBinding.canvasElement,contentWidth:this.size.width,contentHeight:this.size.height,lhsStub:this._lhsStubContainer.getScreenshotData(),rhsStub:this._rhsStubContainer.getScreenshotData()}}getContextMenuActions(e){const t=this.chart,i=t.actions(),s=[];if(e||(t.model().timeScale().resetAvailable().value()&&(s.push(i.timeScaleReset),s.push(new zo.Separator)),this._options.timezoneMenuEnabled&&s.push(i.applyTimeZone),s.push(i.sessionBreaks)),!t.model().mainSeries().isDWM()){const e=t.model()?.mainSeries().symbolInfo();if(e){const i=t.model().mainSeries().properties().childs().sessionId,o=(e.subsessions||[]).filter((e=>!e.private));if(o.length>1){const e=o.map((e=>new zo.Action({actionId:"Chart.SetSession",options:{label:(0,hr.translateSessionDescription)(e.description),checkable:!0,checked:i.value()===e.id,statName:"SetSession",onExecute:()=>{t.model().setProperty(i,e.id,ur)}}}))),n=new zo.Action({actionId:"Chart.SetSession",options:{label:_r,statName:"SetSession",subItems:e}});s.push(n)}}} +return!t.onWidget()&&l.enabled("show_chart_property_page")&&l.enabled("chart_property_page_scales")&&i.scalesProperties&&(s.length&&s.push(new zo.Separator),s.push(i.scalesProperties)),s}update(){if(!this.chart.hasModel())return;const e=this.chart.model().timeScale().marks();if(e){this._minVisibleSpan=cr.YEAR_SPAN;for(const t of e)this._minVisibleSpan=Math.min(t.span,this._minVisibleSpan)}}updatePriceAxisStubs(){const e=this.chart.model().model(),t=this.chart.hasMaximizedPane()?(0,n.ensureNotNull)(this.chart.maximizedPaneWidget()).state():e.paneForSource(e.mainSeries());if(!t)return;const i=e.priceScaleSlotsCount();this._lhsStubContainer.setScales([],i.left,t.leftPriceScales().length,i.left+i.right),this._rhsStubContainer.setScales([],i.right,t.rightPriceScales().length,i.left+i.right)}paint(e){if(e.level===ao.InvalidationLevel.None||0===this.size.width||0===this.size.height)return;(0,Kt.tryApplySuggestedCanvasBitmapSize)(this._canvasBinding),(0,Kt.tryApplySuggestedCanvasBitmapSize)(this._topCanvasBinding);const t=(0,Kt.getContext2D)(this._topCanvasBinding.canvasElement);if(e.level>ao.InvalidationLevel.Cursor){const i=(0,Kt.getContext2D)(this._canvasBinding.canvasElement),s=(0,Kt.getBindingRenderingInfo)(this._canvasBinding);this.drawBackground(i,s),this.chart.hasModel()&&(this.drawBorder(i,s),this.drawTickMarks(i,s),this.drawBackLabels(i,s),this.drawCrossHairLabel(t,s)),this._lhsStubContainer.paintStubs(e),this._rhsStubContainer.paintStubs(e)}this.drawCrossHairLabel(t,(0,Kt.getBindingRenderingInfo)(this._topCanvasBinding))}drawBackground(e,t){if((0,Kt.clearRect)(e,0,0,t.bitmapSize.width,t.bitmapSize.height,this.backgroundColor()),!this.chart.hasModel())return;const i=this.chart.model();if(!i.timeScale().isEmpty()){const s=i.model().selection().lineDataSources().filter((e=>!e.isFixed())).reduce(((e,t)=>{const i=t.timeAxisPoints();return 0===i.length?e:e.concat(i)}),[]);s.length>0&&this._highlightBackground(e,s,t)}const s=i.model().crosshairSource();s.startMeasurePoint()&&this._highlightBackground(e,s.measurePoints(),t)}drawBorder(e,t){e.save(),e.fillStyle=this.lineColor();const i=Math.max(1,Math.floor(this.rendererOptions().borderSize*t.verticalPixelRatio)),s=t.bitmapSize.width;e.fillRect(0,0,s,i),e.restore()}drawTickMarks(e,t){const i=this.chart.model().timeScale().marks();if(!i||0===i.length)return;let s=i.reduce(((e,t)=>e.span>t.span?e:t),i[0]).span;s>30&&s<40&&(s=30),e.save(),e.strokeStyle=this.lineColor();const o=this.rendererOptions(),n=o.borderSize+o.offsetSize+o.paddingTop+o.fontSize/2;e.textAlign="center",e.textBaseline="middle",e.fillStyle=this.textColor(),(0,Kt.drawScaled)(e,t.horizontalPixelRatio,t.verticalPixelRatio,(()=>{e.font=this.baseFont();for(let t=0;t=s&&e.fillText(o.label,o.coord,n)}})),e.restore()}drawBackLabels(e,t){e.save();const i=new Set,s=this.chart.model().model();let o=s.dataSources();const n=s.selection().allSources();for(const e of n)i.add(e) +;s.hoveredSource()&&i.add(s.hoveredSource());for(const e of s.sourcesBeingMoved())i.add(e);const r=s.customSourceBeingMoved();null!==r&&i.add(r);const a=s.lineBeingEdited()??s.lineBeingCreated();a&&i.add(a),i.add(this.chart.model().crosshairSource()),o=o.concat(s.customSources());const l=this.rendererOptions();for(let s=0;s=s&&(s=a,n=r),a<=i&&(i=a,o=r)}}return n&&t.push(n),o&&t.push(o),t}_zoomAvailable(){const e=this.chart.model().model();return!e.timeScale().isEmpty()&&e.zoomEnabled()&&this._options.pressedMouseMoveScale&&!e.chartFloatingTooltipVisible().value()}_mouseDownOrTouchStartEvent(e){if(this._mousedown||!this._zoomAvailable())return;this._mousedown=!0;const t=this.chart.model();t.timeScale().isEmpty()||t.startScaleTime(e.localX)}_pressedMouseOrTouchMoveEvent(e){this._zoomAvailable()&&this.chart.model().scaleTimeTo(e.localX)}_mouseUpOrTouchEndEvent(e){this._zoomAvailable()&&(this._mousedown=!1,this.chart.model().endScaleTime(),this.restoreDefaultCursor())}_contextMenuOrTouchContextMenuEvent(e){this._options.contextMenuEnabled&&Io.ContextMenuManager.showMenu(this.getContextMenuActions(),e,{statName:"TimeScaleContextMenu"},{menuName:"TimeScaleContextMenu"})}_mouseOrTouchEnterEvent(e){this._zoomAvailable()&&this.setCursor("ew-resize")}_mouseOrTouchLeaveEvent(e){this.restoreDefaultCursor()}_mouseDoubleClickOrDoubleTapEvent(e){(0,re.trackEvent)("GUI","Double click time scale"),this.chart.model().resetTimeScale()}}var mr,gr,fr,yr,vr=i(85459),Sr=i.n(vr),br=i(76662),wr=i(10341),Cr=i(1395);function Tr(e,t){return"period-back"===e.type&&"period-back"===t.type?e.value===t.value:"time-range"===e.type&&"time-range"===t.type&&(e.from===t.from&&e.to===t.to)}function Pr(e,t){return!!Re.Interval.isEqual(e.res,t.res)&&Tr(e.val,t.val)}!function(e){e.extractErrorReason=function(e){return e.params[1]}}(mr||(mr={})),function(e){e.Default="default",e.FullSingleSession="full_single_session"}(gr||(gr={})),function(e){e.PeriodBack="period-back",e.TimeRange="time-range"}(fr||(fr={})),function(e){e.PeriodBack="period-back",e.TimeRange="time-range"}(yr||(yr={}));var xr=i(22961);const Mr={duration:250,easing:br.easingFunc.easeOutCubic};class Ir{constructor(e){this._onFinishCalled=!1,this._options={...Mr,...e},this._startTime=performance.now()}getStartPosition(){return this._options.from}getPosition(e){const t=this._calculateProgress(e);return 1===t?(this._options.onFinish&&!this._onFinishCalled&&(this._options.onFinish(!0),this._onFinishCalled=!0),this._options.to):(0,xr.lerp)(this._options.from,this._options.to,this._options.easing(t))}finished(e){return 1===this._calculateProgress(e)}onFinish(e){this._onFinishCalled||(this._options.onFinish?.(e),this._onFinishCalled=!0)}_calculateProgress(e){const t=e-this._startTime;return t>=this._options.duration?1:t/this._options.duration}}var Ar=i(92848),Lr=i(22455);function kr(e,t,i,s){let o=null;if(i.currencyConversionEnabled()&&(0,Lr.isActingAsSymbolSource)(e)){const n=i.availableCurrencies(),r=t.currency(n),a=e.currency();null!==r&&null!==r.selectedCurrency&&!r.allCurrenciesAreOriginal&&r.selectedCurrency!==a&&(s&&null===a||null!==a&&n.convertible(a))&&(o=r.selectedCurrency)}return o}const Er=new dt.TranslatedString("toggle collapsed pane state",a.t(null,void 0,i(46054)));class Dr extends st.UndoCommand{constructor(e,t){super(Er), +this._chartModel=e,this._paneIndex=t}redo(){this._chartModel.toggleCollapsedPane(this._paneIndex)}undo(){this._chartModel.toggleCollapsedPane(this._paneIndex)}}const Br=new dt.TranslatedString("toggle maximized pane state",a.t(null,void 0,i(63095)));class Vr extends st.UndoCommand{constructor(e,t){super(Br),this._model=e;const i=e.maximizedPane().value(),s=null===i?null:e.panes().indexOf(i);this._maximizedPaneIndex=t===i?null:e.panes().indexOf(t),this._prevMaximizedPaneIndex=s}redo(){this._setMaximizedPane(this._maximizedPaneIndex)}undo(){this._setMaximizedPane(this._prevMaximizedPaneIndex)}_setMaximizedPane(e){this._model.setMaximizedPane(null===e?null:this._model.panes()[e])}}const Rr=new dt.TranslatedString("move all scales to left",a.t(null,void 0,i(64077))),Nr=new dt.TranslatedString("move all scales to right",a.t(null,void 0,i(19013))),Or=(0,ne.getLogger)("Chart.MergeAllScales");class Fr extends st.UndoCommand{constructor(e,t,i,s,o,n){super(n),this._model=e,this._paneIndex=e.panes().indexOf(t),this._targetPosition=s,this._targetIndex=o,this._scaleId=i.id(),this._sourcePosition=t.priceScalePosition(i),"overlay"!==this._sourcePosition&&(this._sourceIndex=t.priceScaleIndex(i,this._sourcePosition))}redo(){const e=this._model.panes()[this._paneIndex],t=(0,n.ensureNotNull)(e.getPriceScaleById(this._scaleId));e.movePriceScale(t,this._targetPosition,this._targetIndex),this._model.fullUpdate()}undo(){const e=this._model.panes()[this._paneIndex],t=(0,n.ensureNotNull)(e.getPriceScaleById(this._scaleId));e.movePriceScale(t,this._sourcePosition,this._sourceIndex),this._model.fullUpdate()}}var Wr=i(13896);class Hr extends st.UndoCommand{constructor(e,t,i,s){super(s,void 0,!Wr.lineToolsDoNotAffectChartInvalidation),this._createdIds=[],this._actionSourceWasSent=!1,this._model=e,this._withoutShift=i,this._origStates=t.map((e=>e.state(!0)));const o=e.lineToolsGroupModel();this._origGroups=t.map((e=>{const t=o.groupForLineTool(e);return t&&t.id}))}redo(){const e=this._model.lineToolsGroupModel();let t;this._actionSourceWasSent||(t="Clone",this._actionSourceWasSent=!0);const i=this._origStates.map(((i,s)=>{const o=(0,n.ensureNotNull)(this._model.dataSourceForId(i.id)),r=0===this._createdIds.length?void 0:(0,n.ensureDefined)(this._createdIds[s]),a=(0,zs.cloneLineTool)(this._model,o,!this._withoutShift,r,t);void 0!==i.sharingMode&&a.share(i.sharingMode);const l=(0,n.ensureNotNull)(o.priceScale());(0,n.ensureNotNull)(this._model.paneForSource(o)).addDataSource(a,l,!1);const c=this._origGroups[s];if(null!==c){const t=e.groupForId(c);t&&t.addLineTools([a])}return this._model.updateSource(a),a}));0===this._createdIds.length&&(this._createdIds=i.map((e=>e.id()))),this._model.selectionMacro((e=>{e.clearSelection(),i.forEach((t=>{e.addSourceToSelection(t)}))})),this._model.setShouldBeSavedEvenIfHidden(!0)}undo(){const e=this._model.lineToolsGroupModel();this._createdIds.forEach((t=>{const i=(0,n.ensureNotNull)(this._model.dataSourceForId(t)),s=e.groupForLineTool(i);null!==s&&s.excludeLineTool(i),this._model.removeSource(i)}))}newIds(){ +return this._createdIds}}class zr extends st.UndoCommand{constructor(e,t,i,s=!0){super(t,i,s),this._invalidateViaSync=!1,this._chartModel=e}redo(){this._invalidateViaSync?this._chartModel.lineToolsSynchronizer().executeSynchronizationInLayoutAction((async()=>this._redo())):this._redo()}undo(){this._invalidateViaSync?this._chartModel.lineToolsSynchronizer().executeSynchronizationInLayoutAction((async()=>this._undo())):this._undo()}}var Ur=i(97217);function jr(e,t,i){let s=[];const o=e.children(t,!1,i);for(let t=0;t{e.children(t,!1,i).forEach((e=>{s.has(e)||(s.add(e),o(e))}))};return t.forEach(o),t.filter((e=>!s.has(e))).map((t=>jr(e,t,i))).reduce(((e,t)=>e.concat(t)),[])}function qr(e,t){return Gr(e,t,!0).reduce(((e,t)=>((0,Ur.isLineTool)(t)?e[1].push(t.id()):e[0].push(t.id()),e)),[[],[]])}function $r(e,t){qr(e,t).reverse().forEach((t=>{t.map((t=>e.dataSourceForId(t))).filter(tt.notNull).forEach((t=>{e.removeSource(t)}))}))}var Kr=i(29603);class Yr extends zr{constructor({chartModel:e,title:t,lineDataSourceIds:i}){super(e,t,void 0,!Wr.lineToolsDoNotAffectChartInvalidation),this._excludeLineToolsFromGroupUndoCommands=[],this._undoState=[],this._lineDataSourceIds=i}_redo(){const e=this._lineDataSourceIds.map((e=>(0,n.ensureNotNull)(this._chartModel.dataSourceForId(e))));this._groupLineToolsByGroups(e).forEach(((e,t)=>{const i=new Kr.ExcludeLineToolsFromGroupUndoCommand(this._chartModel,t,e);i.redo(),this._excludeLineToolsFromGroupUndoCommands.push(i)})),e.forEach((e=>{this._undoState.push({state:e.state(!1),paneIndex:this._chartModel.panes().indexOf((0,n.ensureNotNull)(this._chartModel.paneForSource(e))),sharingMode:e.sharingMode().value()}),this._chartModel.removeSource(e)}))}_undo(){for(let e=this._undoState.shift();e;e=this._undoState.shift())this._chartModel.restoreSource(!1,e.paneIndex,null,e.state,null)?.share(e.sharingMode);this._excludeLineToolsFromGroupUndoCommands.forEach((e=>e.undo()))}_groupLineToolsByGroups(e){const t=this._chartModel.lineToolsGroupModel();return e.reduce(((e,i)=>{const s=t.groupForLineTool(i);if(null!==s){const t=e.get(s)||[];t.push(i),e.set(s,t)}return e}),new Map)}}var Zr=i(2258),Xr=i(42516);const Jr=(0,ne.getLogger)("Chart.RemoveSourcesUndoCommand"),Qr=new dt.TranslatedString("remove line data sources",a.t(null,void 0,i(38199)));class ea extends zr{constructor(e,t,i){super(e,i,void 0,(0,Xr.sourcesAffectState)(t)),this._removeLineDataSourcesUndoCommand=null,this._initialPriceScaleMode=null;const[s,o]=qr(e,t);this._sourceIds=s,this._lineDataSourceIds=o,this._sourceStates=[],this._paneIndexes=[],this._priceScalePositionIds=[],this._paneStates=[],this._restorePanes=[];const r=t[0];1===t.length&&(0,Ws.isStudy)(r)&&(this._initialPriceScaleMode=(0,n.ensureNotNull)(r.priceScale()).mode())}removedIds(){return[...this._sourceIds,...this._lineDataSourceIds]}_redo(){this._chartModel.panes().length;const e=this._sourceIds.map((e=>(0,n.ensureNotNull)(this._chartModel.dataSourceForId(e)))) +;this._sourceStates=e.map((e=>{const t=e.state(!1);return null===t&&(0,Ws.isStudyStub)(e)?e.getDescriptor():t}));const t=e.map((e=>(0,n.ensureNotNull)(this._chartModel.paneForSource(e))));this._paneIndexes=t.map((e=>this._chartModel.panes().indexOf(e))),this._lineDataSourceIds.length>0&&(this._removeLineDataSourcesUndoCommand=new Yr({title:Qr,chartModel:this._chartModel,lineDataSourceIds:this._lineDataSourceIds}),this._removeLineDataSourcesUndoCommand.redo()),this._priceScalePositionIds=e.map(((e,i)=>{const s=e.priceScale();if(null===s)return null;const o=t[i].priceScalePosition(s);return{id:s.id(),position:o,priceScaleIndex:t[i].priceScaleIndex(s,o)}}));const i=new Set;e.forEach(((e,t)=>{i.add(this._paneIndexes[t])})),this._paneStates=e.map(((e,s)=>{const o=this._paneIndexes[s];return i.has(o)?t[s].state({includeSources:!1,withData:!0}):null})),this._restorePanes=e.map((e=>this._chartModel.removeSource(e)))}_undo(){const e=[];for(let t=this._sourceStates.length-1;t>=0;t--){const i=this._sourceStates[t];if(null!==i){let s=null;s=(0,Zr.isStudyStubDescriptor)(i)?this._chartModel.restoreStudyStub(i):this._chartModel.restoreSource(this._restorePanes[t],this._paneIndexes[t],this._paneStates[t],i,this._priceScalePositionIds[t]),s&&e.push(s)}}e.some(((t,i)=>t.id()!==this._sourceIds[e.length-i-1]))&&Jr.logError("Source was restored improperly - source ids does not match"),null!==this._initialPriceScaleMode&&(0,n.ensureNotNull)(e[0].priceScale()).setMode(this._initialPriceScaleMode),this._removeLineDataSourcesUndoCommand&&this._removeLineDataSourcesUndoCommand.undo()}}class ta extends st.UndoCommand{constructor(e,t,i,s=!0){super(i,s,(0,Xr.sourcesAffectState)(t)),this._newStates=[],this._model=e,this._savedStates=t.map((e=>e.state(!1)))}redo(){this._applyState(this._newStates)}undo(){0===this._newStates.length&&this.saveNewState(),this._applyState(this._savedStates)}saveNewState(){const e=this._savedStates.filter(tt.notNull).map((e=>(0,n.ensureNotNull)(this._model.dataSourceForId(e.id))));this._newStates=e.map((e=>e.state(!1)))}_applyState(e){for(const t of e)if(null!==t){const e=this._model.dataSourceForId(t.id);if(null!==e)if((0,Ws.isStudy)(e)){const i=t.state.inputs,s=e.properties().childs().inputs.childs();for(const e in i)s[e]&&s[e].setValue(i[e])}else{const i=e;this._model.restoreLineToolState(i,t,!0),i.synchronizeAlert(!0)}}}}class ia extends st.UndoCommand{constructor(e,t,i){super(i),this._chartModel=e,this._sourceId=t.id();const s=(0,n.ensureNotNull)(t.priceScale());this._initialPriceScaleId=s.id(),this._initialPriceScaleState=(0,n.ensureNotNull)(t.priceScale()).state();const o=(0,n.ensureNotNull)(e.paneForSource(t));this._initialPriceScalePosition=o.priceScalePosition(s),this._initialPriceScaleIndex=o.priceScaleIndex(s,this._initialPriceScalePosition),this._initialPaneIndex=e.panes().indexOf(o)}_newPriceScaleState(e){const t={...this._initialPriceScaleState};return delete t.m_isLockScale,delete t.id,delete t.m_topMargin,delete t.m_bottomMargin,delete t.hasCalculatedPriceRange,t}_originalPriceScaleState(){ +return this._initialPriceScaleState}}class sa extends ia{constructor(e,t,i){super(e,t,i)}redo(){const e=(0,n.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),t=(0,n.ensureNotNull)(this._chartModel.paneForSource(e)),i=this._chartModel.children(e,!0,!0);t.bulkActionMacro((()=>{i.forEach((e=>this._chartModel.detachSource(e))),this._chartModel.detachSource(e)}));const s=this._chartModel.createPane(this.targetPaneIndex(e)),o=s.findSuitableScale(e);s.bulkActionMacro((()=>{s.addDataSource(e,o,!1),i.forEach((e=>s.addDataSource(e,o,!1)))}));const r=(0,n.ensureNotNull)(e.priceScale());r.restoreState(this._newPriceScaleState(s.isOverlay(e))),r.setHeight(s.height()),this._chartModel.fullUpdate(),this._chartModel.setShouldBeSavedEvenIfHidden(!0)}undo(){const e=(0,n.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),t=(0,n.ensureNotNull)(this._chartModel.paneForSource(e)),i=this._chartModel.children(e,!0,!0);t.bulkActionMacro((()=>{i.forEach((e=>this._chartModel.detachSource(e)));const t=this._chartModel.detachSource(e);(0,n.assert)(t,"Undo of detaching must remove pane")}));const s=this._chartModel.panes()[this._initialPaneIndex];let o=s.getPriceScaleById(this._initialPriceScaleId);null===o&&(o=s.createPriceScaleAtPosition(this._initialPriceScalePosition,this._initialPriceScaleIndex)),s.bulkActionMacro((()=>{s.addDataSource(e,o,!0),i.forEach((e=>s.addDataSource(e,o,!1)))}));const r=(0,n.ensureNotNull)(e.priceScale());r.restoreState(this._originalPriceScaleState()),r.setHeight(s.height()),this._chartModel.fullUpdate()}}class oa extends sa{constructor(e,t,i){super(e,t,i)}targetPaneIndex(e){const t=this._chartModel.panes();if(!t[this._initialPaneIndex].containsMainSeries()||e===this._chartModel.mainSeries())return this._initialPaneIndex+1;for(let e=this._initialPaneIndex+1;e=0;e--)if(t[e].mode()===zi.PaneMode.Regular)return e>0&&t[e].containsMainSeries()&&t[e-1].mode()===zi.PaneMode.Widget?e-1:e;return 0}}class ra extends sa{constructor(e,t,i){super(e,t,i)}targetPaneIndex(){return this._chartModel.panes().length}}class aa extends ia{constructor(e,t,i,s){super(e,t,i),this._restorePane=!1,this._keepZOrder=s??!1,this._initialZOrder=t.zorder()}redo(){const e=this._chartModel.panes().length,t=this._chartModel.panes()[this._targetPaneIndex()],i=(0,n.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),s=(0,n.ensureNotNull)(this._chartModel.paneForSource(i)),o=this._chartModel.children(i,!0,!0);s.bulkActionMacro((()=>{o.forEach((e=>this._chartModel.detachSource(e))),this._restorePane=this._chartModel.detachSource(i)})) +;const r="overlay"===this._initialPriceScalePosition?this._initialPriceScalePosition:void 0,a=t.findSuitableScale(i,void 0,r),l=0===a.dataSources().length;if(t.bulkActionMacro((()=>{t.addDataSource(i,a,this._keepZOrder),o.forEach((e=>t.addDataSource(e,a,this._keepZOrder)))})),i===this._chartModel.mainSeries()){const e=t.priceScalePosition(a);t.movePriceScale(a,e,0)}if(l){const e=(0,n.ensureNotNull)(i.priceScale());e.restoreState(this._newPriceScaleState(t.isOverlay(i))),e.setHeight(t.height())}this._chartModel.fullUpdate(),e!==this._chartModel.panes().length&&this._chartModel.setShouldBeSavedEvenIfHidden(!0)}undo(){let e;e=this._restorePane?this._chartModel.createPane(this._initialPaneIndex):this._chartModel.panes()[this._initialPaneIndex];const t=(0,n.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),i=(0,n.ensureNotNull)(this._chartModel.paneForSource(t)),s=this._chartModel.children(t,!0,!0);i.bulkActionMacro((()=>{s.forEach((e=>this._chartModel.detachSource(e))),this._chartModel.detachSource(t)}));let o=e.getPriceScaleById(this._initialPriceScaleId);null===o&&(o=e.createPriceScaleAtPosition(this._initialPriceScalePosition,this._initialPriceScaleIndex)),e.bulkActionMacro((()=>{t.setZorder(this._initialZOrder),e.addDataSource(t,o,!0),s.forEach((t=>e.addDataSource(t,o,!1)))}));const r=(0,n.ensureNotNull)(t.priceScale());r.restoreState(this._originalPriceScaleState()),r.setHeight(e.height()),this._chartModel.fullUpdate()}}class la extends aa{constructor(e,t,i){super(e,t,i)}_targetPaneIndex(){const e=this._chartModel.panes();for(let t=this._initialPaneIndex-1;t>=0;t--)if(e[t].mode()===zi.PaneMode.Regular)return t;throw new Error("No regular pane found above for merging")}}class ca extends aa{constructor(e,t,i){super(e,t,i)}_targetPaneIndex(){const e=this._chartModel.panes();for(let t=this._initialPaneIndex+1;t{const i=(0,n.ensureNotNull)(e.paneForSource(t)),s=e.panes().indexOf(i),o=this._sourcesByPanes.get(s)||[];o.push(t.id()),this._sourcesByPanes.set(s,o)})),Array.from(this._sourcesByPanes.keys()).forEach((t=>{const i=e.panes()[t],s=new Map,o=new Set(i.sourcesByGroup().multipaneSources());i.sourcesByGroup().allIncludingHidden().filter((e=>!o.has(e))).forEach((e=>{s.set(e.id(),e.zorder())})),this._originalState.set(t,s)}))}undo(){this._originalState.forEach(((e,t)=>{const i=this._model.panes()[t],s=new Map;e.forEach(((e,t)=>{const o=(0,n.ensureNotNull)(i.dataSourceForId(t));s.set(o,e)})),i.setZOrders(s)}))}redo(){this._sourcesByPanes.forEach(((e,t)=>{const i=this._model.panes()[t],s=e.map((e=>(0,n.ensureNotNull)(i.dataSourceForId(e))));this._paneOperation(i,s)}))}}class Pa extends Ta{constructor(e,t){super(e,t,ma.format({title:Ca(t[0])}))}_paneOperation(e,t){e.bringToFront(t)}}class xa extends Ta{constructor(e,t){super(e,t,ga.format({title:Ca(t[0])}))}_paneOperation(e,t){e.sendToBack(t)}}class Ma extends Ta{constructor(e,t,i,s){super(e,t,s),this._targetSource=i}_paneOperation(e,t){e.insertAfter(t,this._targetSource)}}class Ia extends Ma{constructor(e,t,i){super(e,t,i,fa.format({title:Ca(t[0]),targetTitle:Ca(i)}))}}class Aa extends Ta{constructor(e,t,i,s){super(e,t,s),this._targetSource=i}_paneOperation(e,t){e.insertBefore(t,this._targetSource)}} +class La extends Aa{constructor(e,t,i){super(e,t,i,ya.format({title:Ca(t[0]),targetTitle:Ca(i)}))}}function ka(e,t){const i=t[0],s=e.sourcesByGroup().all().filter((e=>e.zorder()e.zorder()>i.zorder()));if(0===s.length)throw new Error("Cannot bring forward source that alreadt on back");let o=s[0];if((0,zs.isLineTool)(o)){const t=e.model().lineToolsGroupModel().groupForLineTool(o);if(null!==t){const e=t.lineTools();o=e[e.length-1]}}return o}class Ba extends Ma{constructor(e,t,i){super(e,i,Da(t,i),Sa.format({title:Ca(i[0])}))}}function Va(e,t){return(0,n.ensureNotNull)(e.paneForSource(t.lineTools()[0]))}class Ra extends Aa{constructor(e,t){super(e,t.lineTools(),ka(Va(e,t),t.lineTools()),ba.format({title:t.name().value()}))}}class Na extends Ma{constructor(e,t){super(e,t.lineTools(),Da(Va(e,t),t.lineTools()),wa.format({title:t.name().value()}))}}const Oa=new dt.TranslatedString("rearrange panes",a.t(null,void 0,i(2618)));class Fa extends st.UndoCommand{constructor(e,t,i){if(super(Oa),this._chartModel=e,this._index=t,(0,tt.isNumber)(i))this._dstIndex=i;else{const s="up"===i?-1:1;this._dstIndex=t+s,e.panes()[this._dstIndex].mode()===zi.PaneMode.Widget&&(this._dstIndex=this._dstIndex+s)}}redo(){this._checkIndices()&&this._chartModel.movePane(this._index,this._dstIndex)}undo(){this._checkIndices()&&this._chartModel.movePane(this._dstIndex,this._index)}_checkIndices(){const e=this._chartModel.panes().length;return this._index>=0&&this._index=0&&this._dstIndex{e.setValue(t[i].val),(e.dependents?.()??[]).forEach((e=>Ua(e,t[i].dependenValues)))}))}function ja(e,t){return"string"==typeof t?(0,Wa.propertyByPath)(e,t):t}class Ga extends st.UndoCommand{constructor(e,t,i,s,o=!0){super(i,void 0,o);const n=e.pathToRoot();this._targetObj=(0,Wa.isRootPath)(n)?n:e,this._newValue=t,this._oldValue=e.value(),this._dependentValues=za(e),this._model=s}redo(e){(0,yi.allowSavingDefaults)(!0),ja(e.chartWidgetCollection,this._targetObj).setValue(this._newValue),(0,yi.allowSavingDefaults)(!1),this._model.recalculateAllPanes((0,wi.globalChangeEvent)()),this._model.lightUpdate()}undo(e){(0,yi.allowSavingDefaults)(!0);const t=ja(e.chartWidgetCollection,this._targetObj);t.setValue(this._oldValue),Ua(t,this._dependentValues),(0,yi.allowSavingDefaults)(!1),this._model.recalculateAllPanes((0,wi.globalChangeEvent)()),this._model.lightUpdate()}}class qa extends st.UndoCommand{constructor(e,t,i,s,o,n){super(s), +this._prevPriceAxisProps={},this._dependentValues=[],this._intervalChangeWasTracked=!1,this._property=e,this._mainSeries=i,this._value=t,this._model=o,this._chartWidget=n}redo(){const e=this._mainSeries,t=e.properties().childs();this._dependentValues=za(this._property),this._prevResolution=t.interval.value(),this._prevValue=this._property.value(),this._storePriceAxisProps(),(0,yi.allowSavingDefaults)(!0);const i=t.interval.value(),s=this._model.defaultResolutions(),o=(0,ht.getResolutionByChartStyle)(this._value,i,s);de.linking.interval.setValue(o),e.setChartStyleWithIntervalIfNeeded(this._value,o),(0,xt.setLastUsedStyle)(this._value,e.symbolInfo()),(0,xt.preparePriceAxisProperties)(t),(0,yi.allowSavingDefaults)(!1),this._invalidateModel(),this._chartWidget.screen.show(!0)}undo(){const e=this._mainSeries;(0,yi.allowSavingDefaults)(!0),e.setChartStyleWithIntervalIfNeeded(this._prevValue,this._prevResolution),this._restorePriceAxisProps(),de.linking.interval.setValue(this._prevResolution),Ua(this._property,this._dependentValues),(0,yi.allowSavingDefaults)(!1),this._invalidateModel(),this._chartWidget.screen.show(!0)}_storePriceAxisProps(){const e=this._mainSeries.priceScale();this._prevPriceAxisProps=e.mode()}_restorePriceAxisProps(){this._mainSeries.priceScale().setMode(this._prevPriceAxisProps)}_invalidateModel(){this._model&&(this._model.recalculateAllPanes((0,wi.sourceChangeEvent)(this._model.mainSeries().id())),this._model.lightUpdate())}}const $a=new dt.TranslatedString("change date range",a.t(null,void 0,i(16979)));class Ka extends st.UndoCommand{constructor(e,t){super($a),this._modelsData=[],this._rangeOptions=t,this._modelsData.push({model:e,prevResolution:e.mainSeries().properties().childs().interval.value(),barSpacing:e.timeScale().barSpacing(),rightOffset:e.timeScale().rightOffset(),rangeOptions:e.appliedTimeFrame().value()})}redo(){for(const e of this._modelsData){const t=e.model.mainSeries(),i=t.properties().childs().interval;Re.Interval.isEqual(this._rangeOptions.res,i.value())?t.loadDataTo(this._rangeOptions.val):(t.setDefaultTimeframe(this._rangeOptions.val),t.setSymbolParams({interval:this._rangeOptions.res}))}}undo(){for(const e of this._modelsData){const t=e.model.mainSeries(),i=t.properties().childs().interval;e.prevResolution!==i.value()?(null!==e.rangeOptions&&t.setDefaultTimeframe(e.rangeOptions.val),t.setSymbolParams({interval:e.prevResolution})):null!==e.rangeOptions&&t.loadDataTo(e.rangeOptions.val);const s=e.model.timeScale();s.setBarSpacing(e.barSpacing),s.setRightOffset(e.rightOffset)}}canMerge(e){return e instanceof Ka&&Pr(e._rangeOptions,this._rangeOptions)}merge(e){if(!(e instanceof Ka))throw new Error("Invalid command to merge");this._modelsData=this._modelsData.concat(e._modelsData)}}function Ya(e){return e.properties().visible.value()}function Za(e){return!Ya(e)}class Xa{constructor(e,t,i){this._instanceId=(0,fe.randomHashN)(6),this._onChanged=new ae.Delegate,this._lineToolsSet=new Set,this._lineTools=[...e],this._lineToolsSet=new Set(this._lineTools),this._name=new O.WatchedValue(t), +this.id=i||(0,fe.randomHashN)(6)}instanceId(){return this._instanceId}lineTools(){return this._lineTools}name(){return this._name}setName(e){this._doAndFireOnChange((()=>{this._name.setValue(e)}))}isActualSymbol(){return this._lineTools.length>0&&this._lineTools[0].isActualSymbol()&&this._lineTools[0].isActualCurrency()&&this._lineTools[0].isActualUnit()}symbol(){return this._lineTools[0].symbol()}currencyId(){return this._lineTools[0].properties().childs().currencyId.value()??null}unitId(){return this._lineTools[0].properties().childs().unitId.value()??null}sharingMode(){return this._lineTools[0].sharingMode()}share(e){this._lineTools.forEach((t=>t.share(e)))}containsLineTool(e){return this._lineToolsSet.has(e)}addLineTools(e){this._doAndFireOnChange((t=>{e.forEach((e=>this._lineToolsSet.add(e))),this._lineTools.push(...e),t.push(...e.map((e=>e.id())))}))}excludeLineTool(e){this._doAndFireOnChange((t=>{this._lineToolsSet.delete(e);const i=this._lineTools.indexOf(e);this._lineTools.splice(i,1),t.push(e.id())}))}excludeLineTools(e){this._doAndFireOnChange((t=>{const i=new Set(e);e.forEach((e=>this._lineToolsSet.delete(e))),this._lineTools=this._lineTools.filter((e=>!i.has(e))),t.push(...e.map((e=>e.id())))}))}state(){return{id:this.id,name:this._name.value(),tools:this._lineTools.map((e=>e.id()))}}visibility(){const e=this._lineTools.some(Ya),t=this._lineTools.some(Za);return e&&!t?"Visible":t&&!e?"Invisible":"Partial"}locked(){const e=this._lineTools.some((e=>e.properties().frozen.value())),t=this._lineTools.some((e=>!e.properties().frozen.value()));return e&&!t?"Locked":t&&!e?"Unlocked":"Partial"}isActualInterval(){const e=this._lineTools.some((e=>e.isActualInterval())),t=this._lineTools.some((e=>!e.isActualInterval()));return e&&!t?"IsActualInterval":t&&!e?"IsNotActualInterval":"Partial"}onChanged(){return this._onChanged}static fromState(e,t){const i=[];for(const s of t.tools){const t=e.dataSourceForId(s);null!==t&&i.push(t)}return i.length>0?new Xa(i,t.name,t.id):null}_doAndFireOnChange(e){const t=[],i=this.visibility(),s=this.locked(),o=this.isActualInterval();e(t),this._onChanged.fire({affectedLineTools:t,visibilityChanged:i!==this.visibility(),lockedChanged:s!==this.locked(),isActualIntervalChanged:o!==this.isActualInterval()})}}class Ja extends st.UndoCommand{constructor(e,t,i){super(i,void 0,!Wr.lineToolsDoNotAffectChartInvalidation),this._model=e,this._groupId=t.id,this._groupName=t.name().value(),this._lineToolsIds=t.lineTools().map((e=>e.id()))}redo(){const e=(0,n.ensureNotNull)(this._model.lineToolsGroupModel().groupForId(this._groupId));this._model.lineToolsGroupModel().removeGroup(e)}undo(){const e=this._lineToolsIds.map((e=>this._model.dataSourceForId(e))),t=new Xa(e,this._groupName,this._groupId);this._model.lineToolsGroupModel().addGroup(t)}}const Qa=new dt.TranslatedString("create line tools group",a.t(null,void 0,i(46219)));class el extends st.UndoCommand{constructor(e,t){super(Qa,void 0,!Wr.lineToolsDoNotAffectChartInvalidation),this._groupId=null,this._model=e,this._sourcesIds=t.map((e=>e.id())) +}redo(){const e=this._sourcesIds.map((e=>this._model.dataSourceForId(e))),t=null===this._groupId?void 0:this._groupId;this._groupId=this._model.lineToolsGroupModel().createGroup(e,this._title,t).id}undo(){const e=(0,n.ensureNotNull)(this._model.lineToolsGroupModel().groupForId((0,n.ensureNotNull)(this._groupId)));this._model.lineToolsGroupModel().removeGroup(e)}createdGroupId(){return this._groupId}}const tl=new dt.TranslatedString("add line tool(s) to group {group}",a.t(null,void 0,i(21162)));class il extends st.UndoCommand{constructor(e,t,i){super(tl.format({group:t.name().value()}),void 0,!Wr.lineToolsDoNotAffectChartInvalidation),this._model=e,this._groupId=t.id,this._lineToolsIds=i.map((e=>e.id()))}redo(){const e=(0,n.ensureNotNull)(this._model.lineToolsGroupModel().groupForId(this._groupId)),t=this._lineToolsIds.map((e=>this._model.dataSourceForId(e)));e.addLineTools(t)}undo(){const e=this._lineToolsIds.map((e=>this._model.dataSourceForId(e)));(0,n.ensureNotNull)(this._model.lineToolsGroupModel().groupForId(this._groupId)).excludeLineTools(e)}}class sl extends st.UndoCommand{constructor(e,t,i,s){super(s,void 0,!Wr.lineToolsDoNotAffectChartInvalidation),this._chartModel=e,this._groupId=t.id,this._oldName=t.name().value(),this._newName=i}redo(){(0,n.ensureNotNull)(this._chartModel.lineToolsGroupModel().groupForId(this._groupId)).setName(this._newName)}undo(){(0,n.ensureNotNull)(this._chartModel.lineToolsGroupModel().groupForId(this._groupId)).setName(this._oldName)}}const ol=new dt.TranslatedString("create line tools group from selection",a.t(null,void 0,i(95394))),nl=new dt.TranslatedString("removing line tools group {name}",a.t(null,void 0,i(41430))),rl=new dt.TranslatedString("add line tool {lineTool} to group {name}",a.t(null,void 0,i(12570))),al=new dt.TranslatedString("make group {group} visible",a.t(null,void 0,i(45987))),ll=new dt.TranslatedString("make group {group} invisible",a.t(null,void 0,i(76709))),cl=new dt.TranslatedString("lock group {group}",a.t(null,void 0,i(20453))),hl=new dt.TranslatedString("unlock group {group}",a.t(null,void 0,i(74590))),dl=new dt.TranslatedString("rename group {group} to {newName}",a.t(null,void 0,i(80491)));class ul{constructor(e){this._environment=e}createGroupFromSelection(){const e=this._environment.model();(0,n.assert)(!e.selection().isEmpty(),"Cannot create group from empty selection");const t=(0,vi.sortSources)(e.selection().lineDataSources());(0,n.assert)(t.length===e.selection().allSources().length,"A group could contain line tools only");const i=t.length>1||null!==this._environment.model().lineToolsGroupModel().groupForLineTool(t[0]),s=t.reduce(((e,t)=>e.zorder()>t.zorder()?e:t),t[0]);let o=s;const r=e.lineToolsGroupModel().groupForLineTool(s);if(null!==r){const e=r.lineTools();o=e[e.length-1]}this._environment.beginUndoMacro(ol);const a=new Map,l=new Set;t.forEach((t=>{const i=this._groupForLineTool(t);if(null===i)return;const s=a.get(i)||[];s.push(t),a.set(i,s);const o=(0,n.ensureNotNull)(e.paneForSource(t));l.add(o)})),(0, +n.assert)(l.size<=1,"All selected sources should be on the same pane"),a.forEach(((t,i)=>{const s=new Kr.ExcludeLineToolsFromGroupUndoCommand(e,i,t);this._environment.pushUndoCommand(s)}));const c=new el(e,(0,vi.sortSources)(t));if(this._environment.pushUndoCommand(c),i){const i=new Ia(e,t,o);this._environment.pushUndoCommand(i)}this._environment.endUndoMacro();const h=(0,n.ensureNotNull)(c.createdGroupId());return(0,n.ensureNotNull)(e.lineToolsGroupModel().groupForId(h))}removeGroup(e){const t=this._environment.model(),i=e.lineTools();this._environment.beginUndoMacro(nl.format({name:e.name().value()}));const s=new Ja(t,e,null);this._environment.pushUndoCommand(s);const o=new ea(t,i,null);this._environment.pushUndoCommand(o);const r=t.mainSeries().symbol();i.forEach((e=>{null!==e.linkKey().value()&&(0,mt.removeLineTool)({withUndo:!0,model:t,symbol:r,sourceTitle:new dt.TranslatedString(e.name(),e.title(pa.TitleDisplayTarget.DataWindow)),lineToolState:e.state(!1),linkKey:(0,n.ensureNotNull)(e.linkKey().value())})})),this._environment.endUndoMacro()}groups(){return this._environment.model().lineToolsGroupModel().groups()}excludeLineToolFromGroup(e,t){const i=this._environment.model(),s=new Kr.ExcludeLineToolsFromGroupUndoCommand(i,e,[t]);this._environment.pushUndoCommand(s)}addLineToolToGroup(e,t){const i=this._environment.model(),s=i.lineToolsGroupModel().groupForLineTool(t);if(s===e)return;const o=rl.format({lineTool:new dt.TranslatedString(t.name(),t.title(pa.TitleDisplayTarget.StatusLine)),name:e.name().value()});this._environment.beginUndoMacro(o),null!==s&&this._environment.pushUndoCommand(new Kr.ExcludeLineToolsFromGroupUndoCommand(i,s,[t]));if(l.enabled("saveload_separate_drawings_storage")){const s=e.sharingMode().value();t.sharingMode().value()!==s&&this._environment.pushUndoCommand(new SetLineSharingModeUndoCommand(t,s,i,null))}this._environment.pushUndoCommand(new il(i,e,[t])),this._environment.endUndoMacro()}bringToFront(e){const t=this._environment.model(),i=new Pa(t,e.lineTools());this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])}sendToBack(e){const t=this._environment.model(),i=new xa(t,e.lineTools());this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])}bringForward(e){const t=this._environment.model(),i=new Na(t,e);this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])}sendBackward(e){const t=this._environment.model(),i=new Ra(t,e);this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])}insertAfter(e,t){const i=this._environment.model();let s;if(t instanceof Xa){const e=t.lineTools();s=e[e.length-1]}else s=t;const o=new Ia(i,e.lineTools(),s);this._environment.pushUndoCommand(o),this._environment.emitEvent("changeZOrder",[e.lineTools()])}insertBefore(e,t){const i=this._environment.model();let s;if(t instanceof Xa){s=t.lineTools()[0]}else s=t;const o=new La(i,e.lineTools(),s);this._environment.pushUndoCommand(o), +this._environment.emitEvent("changeZOrder",[e.lineTools()])}availableZOrderOperations(e){const t=this._environment.model(),i=e.lineTools(),s=i[0],o=i[i.length-1],r=(0,n.ensureNotNull)(t.paneForSource(i[0])).sourcesByGroup().allExceptSpecialSources(),a=r[0],l=r[r.length-1];return{bringForwardEnabled:o!==l,bringToFrontEnabled:o!==l,sendBackwardEnabled:s!==a,sendToBackEnabled:s!==a}}setGroupVisibility(e,t){const i=(t?al:ll).format({group:e.name().value()}),s=this._environment.model();this._environment.beginUndoMacro(i),e.lineTools().forEach((e=>{const i=e.properties().visible,o=new Ga(i,t,null,s,!Wr.lineToolsDoNotAffectChartInvalidation);this._environment.pushUndoCommand(o)})),this._environment.endUndoMacro()}setGroupLock(e,t){const i=(t?cl:hl).format({group:e.name().value()}),s=this._environment.model();this._environment.beginUndoMacro(i),e.lineTools().forEach((e=>{const i=e.properties().frozen,o=new Ga(i,t,null,s,!Wr.lineToolsDoNotAffectChartInvalidation);this._environment.pushUndoCommand(o)})),this._environment.endUndoMacro()}setGroupName(e,t){const i=this._environment.model(),s=dl.format({group:e.name().value(),newName:t}),o=new sl(i,e,t,s);this._environment.pushUndoCommand(o)}canBeGroupped(e){const t=this._environment.model();return new Set(e.map((e=>t.paneForSource(e)))).size<=1}_groupForLineTool(e){return this._environment.model().lineToolsGroupModel().groups().find((t=>t.containsLineTool(e)))||null}}var _l=i(61710);const pl=new dt.TranslatedString("apply study template {template}",a.t(null,void 0,i(69604)));function ml(e){for(const t of e.panes)for(const e of t.sources)if((0,wt.isMainSeriesState)(e))return e.id;return null}class gl extends st.UndoCommand{constructor(e,t,i){super(pl.format({template:i})),this._newSymbolParams={},this._model=e,this._templateContent=function(e,t){const i=(0,Qe.default)({},e),s=(0,n.ensureNotNull)(ml(i));for(const e of i.panes){e.mainSourceId===s&&(e.mainSourceId=t);for(const i of e.sources)if(i.id===s){i.id=t;const o=e=>{const i=e.indexOf(s);-1!==i&&e.splice(i,1,t)};if(e.leftAxisesState&&e.rightAxisesState?(e.leftAxisesState.forEach((e=>o(e.sources))),e.rightAxisesState.forEach((e=>o(e.sources)))):(o(e.leftAxisSources),o(e.rightAxisSources)),e.overlayPriceScales){const i=e.overlayPriceScales[s];i&&(delete e.overlayPriceScales[s],e.overlayPriceScales[t]=i)}}else i.ownerSource===s&&(i.ownerSource=t)}return i}(t,e.mainSeries().id()),this._initialState=e.studyTemplate(!0,!0,!0);const s=e.mainSeries();t.symbol&&(this._newSymbolParams={symbol:t.symbol,currency:t.currency??null,unit:t.unit??null}),t.interval&&(this._newSymbolParams.interval=t.interval,this._newSymbolParams.style=(0,xt.getChartStyleByResolution)(t.interval,s.style())),this._initialSymbolParams={symbol:s.symbol(),currency:s.currency(),unit:s.unit(),interval:s.interval(),style:s.style()},this._initialState=e.studyTemplate(),this._initialGroupsState=e.lineToolsGroupModel().state()}redo(){this._model.mainSeries().setSymbolParams(this._newSymbolParams);const e=this._merge(this._templateContent).filter(zs.isLineTool) +;this._model.lineToolsGroupModel().removeLineTools(e);const t=this._model.mainSeries().properties();(0,xt.preparePriceAxisProperties)(t),this._model.recalcVisibleRangeStudies(Co.RecalcVisibleRangeStudiesReason.StudyCreation),this._model.setShouldBeSavedEvenIfHidden(!0)}undo(){this._model.mainSeries().setSymbolParams(this._initialSymbolParams),this._merge(this._initialState)}_merge(e){const t=e.version||0,i=this._model,s=i.mainSeries();(0,n.assert)(s.id()===ml(e)),s.priceScale().properties().childs().lockScale.setValue(!1);const o=i.panes(),r=[],a=s.properties().childs().tpoStyle.childs(),l=e.panes.reduce(((e,t)=>{const i=t.sources.find((e=>(0,wt.isMainSeriesState)(e)));if(i&&i.state&&18===i.state.style){const e=i.state.tpoStyle.summary.visible;return i.state.tpoStyle.summary.visible=!1,e}return e}),void 0)??false,c=s.properties().childs().volFootprintStyle.childs(),h=e.panes.reduce(((e,t)=>{const i=t.sources.find((e=>(0,wt.isMainSeriesState)(e)));if(i&&i.state&&17===i.state.style){const e=i.state.volFootprintStyle.showSummary;return i.state.volFootprintStyle.showSummary=!1,e}return e}),void 0)??false,d=s.style();18===d?a.summary.childs().visible.setValue(!1):17===d&&c.showSummary.setValue(!1);for(let e=o.length;e--;){const t=o[e],i=t.containsMainSeries(),s=t.dataSources();for(let e=s.length;e--;){const t=s[e];(!i||((0,Ws.isStudy)(t)||(0,Ws.isStudyStub)(t))&&t.isRemovedByStudyTemplates())&&r.push(t)}}i.resetDeferredStudies();const u=Gr(i,r,!0);for(let e=0;ee.zorder-t.zorder));for(let e=0;e-1,a=r?o[e]:i.createPane(e);r&&t<3&&(0,_l.reorderDataSourcesStateZOrder)(n.sources),a.restoreState({state:n,withData:!1,version:t}),null!==a.mainDataSource()||i.removePane(a)}return i.syncLollipopSources(),s.priceScale().setMode({autoScale:!0}),18===d?a.summary.childs().visible.setValue(l):17===d&&c.showSummary.setValue(h),i.startNotStartedStudies(),i.recalculateAllPanes((0,wi.globalChangeEvent)()),i.fullUpdate(),u}}const fl=(0,ne.getLogger)("Chart.ChartUndoModel");var yl;!function(e){e[e.PasteYCoordOffset=-40]="PasteYCoordOffset"}(yl||(yl={}));const vl=new dt.TranslatedString("paste drawing",a.t(null,void 0,i(62192)));class Sl extends st.UndoCommand{constructor(e,t,i,s,o){super(vl,void 0,!Wr.lineToolsDoNotAffectChartInvalidation),this._needCopyToOtherCharts=!1,this._sourceState=null,this._actionSourceWasSent=!1,this._model=e,this._clipboardData=t,this._paneIndex=this._model.panes().indexOf(i||(0,n.ensureNotNull)(this._model.paneForSource(this._model.mainSeries()))),this._pasteWithData=!!s,this._keepZIndex=!!o}redo(){const e=this._model.panes()[this._paneIndex],t=(0,n.ensureNotNull)(e.clipboardLineToolOwnerSource(this._clipboardData.source.id)),i=t===this._model.mainSeries();let s;null===this._sourceState&&(this._sourceState=this._getSourceState(t,i)), +this._actionSourceWasSent||(s="Paste",this._actionSourceWasSent=!0);const o=(0,n.ensureNotNull)(e.restoreLineTool({state:this._sourceState,withData:this._pasteWithData,keepZOrder:this._keepZIndex,ownerSource:t,actionSource:s}));(0,n.ensureNotNull)(t.priceScale()).addDataSource(o),this._clipboardData.centeredOnChart&&o.centerPosition&&o.centerPosition(),o.restoreFixedPoint(),o.createServerPoints(),this._needCopyToOtherCharts=Boolean(i&&o.isSynchronizable()&&0!==o.sharingMode().value()),this._model.setShouldBeSavedEvenIfHidden(!0)}undo(){if(!this._sourceState)return void fl.logError("This command was never executed - nothing to undo");const e=this.source();this._clipboardData.centeredOnChart&&(this._clipboardData.centeredOnChart=!1,this._sourceState.points=e.normalizedPoints()),this._model.removeSource(e)}source(){return(0,n.ensureNotNull)(this._model.dataSourceForId((0,n.ensureNotNull)(this._sourceState).id))}needCopyToOtherCharts(){return this._needCopyToOtherCharts}_getSourceState(e,t){const i=(0,tt.clone)(this._clipboardData.source);delete i.state.symbol,t?(null!=i.linkKey||void 0!==i.sharingMode&&0!==i.sharingMode)&&(i.linkKey=(0,fe.randomHash)()):(i.linkKey=null,i.sharingMode=0);const s=(0,n.ensureNotNull)(e.priceScale()),o=this._model,{symbol:r,currencyId:a,unitId:l}=this._clipboardData.source.state,c=(0,n.ensureNotNull)(e.symbolSource());let h=!1;!c.symbolSameAsCurrent(r)||(null!==a?a!==(0,xt.symbolCurrency)(c.symbolInfo(),void 0,!0):c.isConvertedToOtherCurrency())||(null!==l?l!==(0,xt.symbolUnit)(c.symbolInfo(),this._model.unitConversionEnabled()):c.isConvertedToOtherUnit())||((0,Lr.isActingAsSymbolSource)(e)?h=!0:(0,Ws.isStudy)(e)&&(h=Boolean(e.metaInfo().is_price_study))),i.state.currencyId=o.currencyConversionEnabled()&&c.isConvertedToOtherCurrency()?c.currency():null,i.state.unitId=o.unitConversionEnabled()&&c.isConvertedToOtherUnit()?c.unit():null;const d=e=>{const t=e.x*o.timeScale().width(),i=e.y*s.height()-40;return new Vt.Point(t,i)},u=(0,n.ensureNotNull)(e.firstValue());if(this._model.id()===this._clipboardData.modelId||!h){for(let e=0;e{(0,n.ensureNotNull)(this._chartModel.dataSourceForId(t)).setCurrency(e)})),this._chartModel.selectionMacro((e=>{e.clearSelection()})),this._showFade&&this._chartModel.undoModel().loadingScreen().show(!0)}}class wl extends st.UndoCommand{constructor(e,t,i,s){super(s),this._newSourcesUnits=new Map,this._oldSourcesUnits=new Map,this._showFade=!1,this._chartModel=e;const o=e.mainSeries();for(const e of t.seriesLikeSources()){if(!e.isVisible()||!e.isActingAsSymbolSource().value())continue;const t=i||(0,xt.symbolOriginalUnit)((0,n.ensureNotNull)(e.symbolInfo()),this._chartModel.unitConversionEnabled());this._newSourcesUnits.set(e.id(),t),this._oldSourcesUnits.set(e.id(),e.unit()),this._showFade=this._showFade||e===o&&e.unit()!==t}}redo(){this._applyUnits(this._newSourcesUnits)}undo(){this._applyUnits(this._oldSourcesUnits)}_applyUnits(e){e.forEach(((e,t)=>{(0,n.ensureNotNull)(this._chartModel.dataSourceForId(t)).setUnit(e)})),this._chartModel.selectionMacro((e=>{e.clearSelection()})),this._showFade&&this._chartModel.undoModel().loadingScreen().show(!0)}}class Cl extends ia{constructor(e,t,i,s){super(e,t,s),this._sourcePaneRemoved=!1,this._targetPaneIndex=e.panes().indexOf(i)}redo(){const e=this._chartModel.panes()[this._initialPaneIndex],t=this._chartModel.panes()[this._targetPaneIndex],i=e!==t,s=this._targetPriceScale(t),o=(0,n.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),r=this._chartModel.children(o,!0,!0);for(const e of r)i?(this._chartModel.detachSource(e),t.addDataSource(e,s,!1)):t.move(e,s);i?(this._sourcePaneRemoved=this._chartModel.detachSource(o),t.addDataSource(o,s,!1)):t.move(o,s);const a=t.priceScalePosition(s);t.movePriceScale(s,a,this._targetPriceScaleIndex(o)),this._chartModel.fullUpdate()}undo(){this._sourcePaneRemoved&&this._chartModel.createPane(this._initialPaneIndex);const e=this._chartModel.panes()[this._initialPaneIndex],t=e!==this._chartModel.panes()[this._targetPaneIndex],i=(0,n.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId));let s=e.getPriceScaleById(this._initialPriceScaleId);null===s&&(s=e.createPriceScaleAtPosition(this._initialPriceScalePosition,this._initialPriceScaleIndex));const o=this._chartModel.children(i,!0,!0);for(const i of o)t?(this._chartModel.detachSource(i),e.addDataSource(i,s,!1)):e.move(i,s);t?(this._chartModel.detachSource(i),e.addDataSource(i,s,!1)):e.move(i,s);const r=(0,n.ensureNotNull)(i.priceScale());r.restoreState(this._originalPriceScaleState()),r.setHeight(e.height()),this._chartModel.fullUpdate()}}class Tl extends Cl{constructor(e,t,i,s,o){super(e,t,i,o),this._targetPriceScalePosition=s}_targetPriceScale(e){const t=e.createPriceScaleAtPosition(this._targetPriceScalePosition);return t.restoreState(this._newPriceScaleState("overlay"===this._targetPriceScalePosition)),t.setHeight(e.height()),t}_targetPriceScaleIndex(e){return e===this._chartModel.mainSeries()?0:void 0}}class Pl extends Cl{constructor(e,t,i,s,o){super(e,t,i,o), +this._targetPriceScaleId=s.id()}_targetPriceScale(e){return(0,n.ensureNotNull)(e.getPriceScaleById(this._targetPriceScaleId))}_targetPriceScaleIndex(e){}}class xl extends st.UndoCommand{constructor(e,t,i,s){super(e),this._charts=new Map,this._firstRedo=!0,this._creationTime=performance.now(),this._linkingGroupIndex=s.linkingGroupIndex().value(),this._charts.set(s,{sourceId:t.id(),newSymbolParams:i,prevSymbolParams:t.symbolParams(),showFade:this._showFade(t,s),chartWidget:s})}redo(){this._firstRedo||(0,it.muteLinkingGroup)(this._linkingGroupIndex,!0),this._charts.forEach((e=>{const t=this._symbolSource(e).setSymbolParams(e.newSymbolParams);e.showFade&&e.chartWidget.screen.show(!0,t)})),this._firstRedo||(0,it.muteLinkingGroup)(this._linkingGroupIndex,!1),this._firstRedo=!1}undo(){(0,it.muteLinkingGroup)(this._linkingGroupIndex,!0),this._charts.forEach((e=>{const t=this._symbolSource(e).setSymbolParams(e.prevSymbolParams);e.showFade&&e.chartWidget.screen.show(!0,t)})),(0,it.muteLinkingGroup)(this._linkingGroupIndex,!1)}canMerge(e){if(!(e instanceof xl)||e._linkingGroupIndex!==this._linkingGroupIndex||!this._containsMainSeriesOnly()||!e._containsMainSeriesOnly()||e._creationTime-this._creationTime>500)return!1;for(const[t]of e._charts)if(this._charts.has(t))return!1;return!0}merge(e){if(e instanceof xl)for(const[t,i]of e._charts)this._charts.set(t,i)}_showFade(e,t){return e===t.model().mainSeries()}_symbolSource(e){return(0,n.ensureNotNull)(e.chartWidget.model().model().dataSourceForId(e.sourceId))}_containsMainSeriesOnly(){for(const[e,t]of this._charts)if(t.sourceId!==e.model().mainSeries().id())return!1;return!0}}const Ml=new dt.TranslatedString("change symbol",a.t(null,void 0,i(35400)));class Il extends xl{constructor(e,t,i){super(Ml,e,{symbol:t,currency:null,unit:null},i),this._symbol=t}canMerge(e){return e instanceof Il&&e._symbol===this._symbol&&super.canMerge(e)}}var Al=i(90054);const Ll=(0,ne.getLogger)("Chart.ChartUndoModel"),kl=new dt.TranslatedString("paste indicator",a.t(null,void 0,i(1064)));class El extends st.UndoCommand{constructor(e,t,i){super(kl),this._sourceState=null,this._model=e,this._clipboardData=t,this._paneId=i}redo(){if(!this._sourceState){const e=(0,Al.default)(this._clipboardData.source);e.id=(0,fe.randomHashN)(6),this._sourceState=e}let e,t;e=this._paneId?(0,n.ensureNotNull)(this._model.paneForId(this._paneId)):this._sourceState.metaInfo.is_price_study?(0,n.ensureNotNull)(this._model.paneForSource(this._model.mainSeries())):this._model.createPane();const i=!e.mainDataSource();this._sourceState.zorder=e.newStudyZOrder();const s=(0,n.ensureNotNull)(e.restoreStudy(this._sourceState,!1));i||(t=this._sourceState.metaInfo.is_price_study?t=this._model.mainSeries().priceScale():this._paneId?e.findSuitableScale(s):e.defaultPriceScale(),t!==s.priceScale()&&e.move(s,t)),(0,Ws.isStudy)(s)&&s.start()}undo(){if(null===this._sourceState)return void Ll.logError("This command was never executed - nothing to undo");const e=(0,n.ensureNotNull)(this._model.dataSourceForId(this._sourceState.id)) +;this._model.removeSource(e)}state(){return this._sourceState}}class Dl extends st.UndoCommand{constructor(e,t,i,s,o){super(null,!1),this._model=e,this._paneA=t,this._paneB=i,this._prevStretchA=s,this._currStretchA=o}redo(){const e=this._paneA.stretchFactor()+this._paneB.stretchFactor();this._paneA.setStretchFactor(this._currStretchA),this._paneB.setStretchFactor(e-this._currStretchA),this._model.fullUpdate()}undo(){const e=this._paneA.stretchFactor()+this._paneB.stretchFactor();this._paneA.setStretchFactor(this._prevStretchA),this._paneB.setStretchFactor(e-this._prevStretchA),this._model.fullUpdate()}}const Bl=new dt.TranslatedString("move",a.t(null,void 0,i(98277)));class Vl extends st.UndoCommand{constructor(e,t,i,s){super(Bl,!1),this._endEvent=null,this._model=e,this._sourceId=t.id(),this._itemIndex=i,this._startEvent=s}move(e){this._endEvent=e,this._move(e)}hasChanges(){return null!==this._endEvent}undo(){this._move(this._startEvent)}redo(){this._move((0,n.ensureNotNull)(this._endEvent))}_move(e){const t=(0,n.ensureNotNull)(this._model.dataSourceForId(this._sourceId));(0,n.assert)(void 0!==t.moveItem,'The method "moveItem" is not defined'),t.moveItem&&t.moveItem(new Vt.Point(e.localX,e.localY),this._itemIndex,new To.EnvironmentState(e))}}class Rl extends st.UndoCommand{constructor(e){const{chartModel:t,studyMetaInfo:i,inputs:s,props:o,addAsOverlay:n,parentSources:r,preferredPriceScale:a,allowChangeCurrency:l,allowChangeUnit:c,paneSize:h,targetZOrder:d,studyId:u,targetScaleMode:_,undoText:p}=e;super(p??null),this._paneState=null,this._studyInserResult=null,this._additionalStudiesInsertResults=[],this._chartModel=t,this._studyMetaInfo=i,this._props=o,this._addAsOverlay=n,this._parentIds=r.map((e=>e.id())),this._inputs=s,this._targetZOrder=d,this._preferredPriceScale=a,this._allowChangeCurrency=l,this._allowChangeUnit=c,this._paneSize=h,this._studyId=u??null,this._targetScaleMode=_??null}redo(){const e=this._parentIds.map((e=>this._chartModel.dataSourceForId(e)));this._studyInserResult=this._chartModel.insertStudyWithParams(this._studyMetaInfo,this._inputs,this._targetZOrder,this._props,this._addAsOverlay,e,this._preferredPriceScale,this._allowChangeCurrency,this._allowChangeUnit,this._paneSize,this._targetScaleMode??void 0,this._studyId??void 0),this._studyInserResult.study.then((e=>{if(this._studyId=e.id(),e.childStudyByRebind().subscribe(null,(()=>(0,re.trackEvent)("SOS","Apply SOS","Rebind SOS"))),this._chartModel.setShouldBeSavedEvenIfHidden(!0),null!==this._paneState){(0,n.ensureNotNull)(this._chartModel.paneForSource(e)).restoreState({state:this._paneState,withData:!1,version:this._chartModel.version()}),this._paneState=null}}))}undo(){const e=(0,n.ensureNotNull)(this._studyInserResult),t=e.entityId();let i=null,s=null;if(null!==t){i=(0,n.ensureNotNull)(this._chartModel.dataSourceForId(t));const o=e.originalScaleMode();null!==o&&i.priceScale()?.setMode(o),(0,Lr.isSymbolSource)(i)&&i.symbolResolved().unsubscribeAll(this),s=(0,n.ensureNotNull)(this._chartModel.paneForSource(i)).state()}else e.cancel() +;this._studyInserResult?.cancel();for(const e of this._additionalStudiesInsertResults){const t=e.entityId();null!==t?this._chartModel.removeSource((0,n.ensureNotNull)(this._chartModel.dataSourceForId(t))):e.cancel()}this._additionalStudiesInsertResults=[],null!==i&&this._chartModel.removeSource(i)&&(this._paneState=s)}insertedStudy(){return(0,n.ensureNotNull)(this._studyInserResult)}_createCopiesOfNewFundamentalForAllStocks(e){}_createCopiesOfExistingFundamentalsForNewStock(e){}}class Nl extends st.UndoCommand{constructor(e,t,i,s){super(i),this._newMode=e,this._priceScaleId=t.id(),this._model=s,this._oldMode=t.mode()}redo(){this._applyMode(this._newMode)}undo(){this._applyMode(this._oldMode)}_applyMode(e){const t=this._findPriceScaleById();null!==t&&((0,yi.allowSavingDefaults)(!0),t.setMode(e),(0,yi.allowSavingDefaults)(!1),this._model&&(this._model.recalculateAllPanes((0,wi.viewportChangeEvent)()),this._model.lightUpdate()))}_findPriceScaleById(){const e=this._model.panes();for(let t=0;t{const t=(0,Ws.useSameColorRotationComparator)(e);return this._chartModel.dataSources().filter((i=>(0,Ws.isStudy)(i)&&t(e,i.metaInfo()))).length},this._chartModel=e}getColorRotator(e){if(this._rotators.has(e)){const t=this._rotators.get(e);if(void 0!==t)return t}const t=this._createColorRotator(e);return this._rotators.set(e,t),t}_createColorRotator(e){const t=()=>this._calcDefaultColorsOffset(e);switch((0,Ws.studyColorRotationMode)(e)){case"sexyColors":return new Ul(t,zl);case"loop":return new Ul(t);case"shift":return new jl(t,this._chartModel.getStudyShiftColorStartOffset());case null:case"noRotations":return null}}}function ql(e){return(0,zs.isLineTool)(e)&&e.boundToSymbol()||!1}class $l{constructor(){this._items=[],this._set=new Set,this._dataSourcesCache=null,this._customSourcesCache=null,this._lineSourcesCache=null}isEmpty(){return 0===this._items.length}add(e){if(this._items.length>0&&!ql(this._items[0])&&this.clear(),ql(e)){const t=(0,Pt.lowerbound)(this._items,e,((e,t)=>e.zorder()!(0,Po.isDataSource)(e)))),this._customSourcesCache}checkLineToolSelection(){this._items.forEach((e=>(0,zs.isLineTool)(e)&&e.calcIsActualSymbol())),this._items=this._items.filter((e=>!(0,zs.isLineTool)(e)||e.isActualSymbol())),this._invalidateCache()}remove(e){this._items=this._items.filter((t=>t!==e)),this._set.delete(e),this._invalidateCache()}clear(){this._items=[],this._set.clear(),this._invalidateCache()}_invalidateCache(){this._customSourcesCache=null,this._dataSourcesCache=null,this._lineSourcesCache=null}}var Kl,Yl,Zl=i(23502);!function(e){e[e.BorderSize=1]="BorderSize"}(Kl||(Kl={})),function(e){e[e.AdditionalInnerPadding=4]="AdditionalInnerPadding",e[e.HorzPadding=4]="HorzPadding",e[e.VertPadding=2.5]="VertPadding",e[e.LineSpacing=2]="LineSpacing"}(Yl||(Yl={}));class Xl{constructor(e){this._rendererOptions={borderSize:1,additionalPaddingInner:0,fontSize:NaN,font:"",color:"",paneBackgroundColor:"",paddingBottom:0,paddingInner:0,paddingOuter:0,paddingTop:0,lineSpacing:0},this._chartModel=e}options(){const e=this._rendererOptions,t=this._chartModel.properties().childs(),i=t.scalesProperties.childs().fontSize.value();return e.fontSize!==i&&(e.fontSize=i,e.font=(0,si.makeFont)(i,m.CHART_FONT_FAMILY,""), +e.paddingTop=i/12*2.5,e.paddingBottom=i/12*2.5,e.paddingInner=i/12*4,e.additionalPaddingInner=i/12*4,e.paddingOuter=i/12*4,e.lineSpacing=i/12*2),e.color=t.scalesProperties.childs().textColor.value(),e.paneBackgroundColor=t.paneProperties.childs().background.value(),this._rendererOptions}}var Jl=i(43229),Ql=i(57511);const ec=(0,yi.extractThemedColors)(ms.lightTheme.content.sessions,ms.darkTheme.content.sessions);const tc=["graphics","sessionHighlight.backgrounds.preMarket.visible","sessionHighlight.backgrounds.preMarket.available","sessionHighlight.backgrounds.postMarket.visible","sessionHighlight.backgrounds.postMarket.available","sessionHighlight.backgrounds.electronic.visible","sessionHighlight.backgrounds.electronic.available","sessionHighlight.vertLines.sessBreaks.available"];class ic extends yi.DefaultProperty{constructor(e){super({defaultName:"sessions",themedColors:ec,excludedDefaultsKeys:[...tc],excludedStateKeys:[...tc],excludedTemplateKeys:[...tc]}),this._symbolInfo=e,this._symbolInfo.subscribe((()=>this._updateGraphicsProps())),this.hasChild("graphics")||this.addProperty("graphics",{}),this.merge({sessionHighlight:{vertlines:{sessBreaks:{available:!0}},backgrounds:{preMarket:{visible:!0,available:!0},postMarket:{visible:!0,available:!0},electronic:{visible:!0,available:!0},outOfSession:{visible:!0,available:!0}}}}),this._updateGraphicsProps(),this.childs().sessionHighlight.subscribe(this,(()=>{this._updateGraphicsProps()}))}destroy(){this._symbolInfo.release(),super.destroy()}restoreState(e){const t=e.properties;!function(e){const t=e,i="graphics"in e?e.graphics.backgrounds:void 0;if(void 0!==i){const e=(0,n.ensureDefined)(i.outOfSession);e.color===Ql.sessionsPreferencesDefault.sessionHighlight.backgrounds.outOfSession.color||"postMarket"in i?(t.sessionHighlight=t.sessionHighlight??{},t.sessionHighlight.backgrounds=i):(t.sessionHighlight=t.sessionHighlight??{},t.sessionHighlight.backgrounds={...t.sessionHighlight?.backgrounds??{},postMarket:{color:e.color,transparency:e.transparency,visible:!0,available:!0},preMarket:{color:e.color,transparency:e.transparency,visible:!0,available:!0}})}const s="graphics"in e?e.graphics.vertlines:void 0;s&&(t.sessionHighlight??={},t.sessionHighlight.vertlines=s),(0,yi.cleanUpStateKeys)(t,tc)}(t),"graphics"in e.properties&&((0,Qe.default)(e.properties.sessionHighlight,e.properties.graphics),delete e.properties.graphics),this.mergeAndFire(t),this.removeDuplicateProperties()}loadThemeState(e){"graphics"in e&&((0,Qe.default)(e.sessionHighlight,e.graphics),delete e.graphics),this.mergeAndFire(e)}removeDuplicateProperties(){this.hasChild("properties")&&(this.removeProperty("properties"),(0,yi.allowSavingDefaults)(!0),this.fireChanged(),(0,yi.allowSavingDefaults)(!1))}_userSettings(){const e=super._userSettings();return e&&!e.sessionHighlight&&(e.sessionHighlight=e.graphics),delete e?.graphics,e}_updateGraphicsProps(){const e=this._symbolInfo.value();e&&(this.childs().graphics.mergeAndFire(this.childs().sessionHighlight.state()),function(e){ +const t=e.subsessions?.filter((e=>!e.private)).map((e=>e.id))??[];return"futures"===e.type&&t.includes("regular")&&t.includes("us_regular")}(e)&&((0,n.ensureDefined)(this.childs().graphics.childs().backgrounds).childs().preMarket.mergeAndFire(this.childs().sessionHighlight.childs().backgrounds.childs().electronic.state()),(0,n.ensureDefined)(this.childs().graphics.childs().backgrounds).childs().postMarket.mergeAndFire(this.childs().sessionHighlight.childs().backgrounds.childs().electronic.state())))}}class sc extends Jl.AsyncResourceWrapper{constructor(e,t,i){super(e,(e=>e.destroy())),this._sessionsStateData=null,this._model=t,this._properties=i,t.mainSeries().dataEvents().symbolResolved().subscribe(this,this._updateVisibleOfPreAndPostMarketBackground),this._updateVisibleOfPreAndPostMarketBackground(),e.then((e=>{!this._destroyed&&this._sessionsStateData&&(e.restoreStateData(this._sessionsStateData),this._sessionsStateData=null)}))}destroy(){this._model.mainSeries().dataEvents().symbolResolved().unsubscribeAll(this),super.destroy()}properties(){return this._properties}applyOverrides(e){(0,h.applyPropertiesOverrides)(this._properties.childs().sessionHighlight,void 0,!1,e,"sessions");const t=this.get();t&&this._model.updateSource(t)}state(e){const t={properties:this._properties.state()};return e&&(t.data=this.get()?.stateData()??this._sessionsStateData??void 0),t}restoreState(e,t){if(e.oldState&&(e=function(e,t){const i={properties:{graphics:e.state.graphics}};return void 0!==e.data&&void 0!==e.metaInfo&&t&&(i.data={metaInfo:e.metaInfo,graphics:e.data.graphics}),i}(e,t)),this._properties.restoreState(e),this._updateVisibleOfPreAndPostMarketBackground(),this._sessionsStateData=null,void 0!==e.data&&t){const t=this.get();t?t.restoreStateData(e.data):this._sessionsStateData=e.data}}_updateVisibleOfPreAndPostMarketBackground(){const e=this._model.mainSeries().symbolInfo();if(e){const t=this._properties.childs().sessionHighlight.childs(),{preMarket:i,postMarket:s,electronic:o,outOfSession:n}=t.backgrounds.childs(),{sessBreaks:r}=t.vertlines.childs(),a=e.subsession_id,l=a&&(0,xt.isRegularSessionId)(a,e),c=(0,xt.symbolHasPreOrPostMarket)(e),h=!1;i.childs().available.setValue(c&&!l),s.childs().available.setValue(c&&!l),o.childs().available.setValue(h&&!l),n.childs().available.setValue((c||h)&&!l),r.childs().available.setValue(!0)}}}var oc=i(55114);const nc="symbolWatermark",rc={ticker:!1,interval:!1,description:!1,custom:!1,replay:!0,color:""},ac="rgba(80, 83, 94, 0.25)",lc=["rgba(80, 83, 94, 0.20)","rgba(80, 83, 94, 0.30)"];function cc(){const e=d.getJSON(nc)||{};return{...rc,...hc(e)}}function hc(e){const{color:t,visibility:i,...s}=e,o={...s};return void 0!==i&&(o.ticker=s.ticker??i,o.interval=s.interval??i,o.description=s.description??i,o.custom=s.custom??i),(0,et.default)(t)&&t!==ac&&(o.color=t),o}class dc extends Ps.Property{constructor(e,t){super(e),this._defaultColors=t}value(e){const t=super.value();return void 0===e||t&&t.length>0?t:this._getDefaultColor(e)}_getDefaultColor(e){const[t,i]=this._defaultColors +;return e===$s.StdTheme.Light?t:i}}const uc=(0,s.default)((()=>{const{color:e,...t}=cc(),i=new Ps.Property(t,(0,oc.createPropertySchema)(rc));return i.addChild("color",new dc(e,lc)),d.onSync.subscribe(null,(()=>i.mergeAndFire(cc()))),i.subscribe(null,(()=>d.setJSON(nc,i.state()))),i}));var _c=i(59332),pc=i(19e3),mc=i(75641),gc=i(88987);const fc=768;var yc,vc=i(20820);!function(e){e[e.LineOffset=4]="LineOffset",e[e.LinePadding=8]="LinePadding"}(yc||(yc={}));class Sc extends vc.MediaCoordinatesPaneRenderer{constructor(){super(...arguments),this._data=null,this._widthCache=new Qt.TextWidthCache}setData(e){this._data=e}hitTest(e){return null}_drawImpl(e){if(!this._data)return;const{lines:t,color:i}=this._data,{context:s,mediaSize:{width:o,height:n}}=e;let r=0;const a=[],l=t.filter((e=>!!e.text)),c=l.length;for(let e=0;eo?o/d:1;a.push(u),r+=n*u+4}let h=Math.max((n-r)/2,0);s.fillStyle=i;for(let e=0;e({text:e.text,font:(0,si.makeFont)(e.fontSize,Ic),lineHeight:e.lineHeight,vertOffset:e.vertOffset})));return void this._renderer.setData({color:Ac(this._watermark.properties().childs().color,n),lines:t??[]})}let h=a.name;if(/QUANDL/.test(a.exchange)){const e=h.split(/\//);e.length&&(h=e[e.length-1])}const d={description:a.description,short_description:a.short_description,pro_name:a.pro_name,short_name:a.name,local_description:a.local_description, +language:a.language},u=[e?h:null,t?(0,mc.translatedIntervalString)(r.interval()):null].filter(tt.notNull),_=[{text:h?u.join(", "):""},{text:i&&(0,pc.getTranslatedSymbolDescription)(d)||""},{text:"",icon:kc}].filter((e=>e.text.length>0)).map((({text:e,icon:t})=>({text:e,icon:t,getFontMetrics:Ec})));this._renderer.setData({color:Ac(this._watermark.properties().childs().color,n),lines:_})}}const kc=(0,_c.default)((function(e,t){return t?e?{path:xc,width:44,paddingRight:12}:{path:Mc,width:28,paddingRight:8}:e?{path:Pc,width:56,paddingRight:16}:{path:Mc,width:28,paddingRight:12}}),((e,t)=>`${e}-${t}`));const Ec=(0,_c.default)((function(e,t){const[i,s,o]=Bc[t?e?2:3:e?0:1];return{font:(0,si.makeFont)(i,Ic),lineHeight:s,vertOffset:o}}),((e,t)=>`${e}-${t}`));var Dc;!function(e){e[e.FirstLine=0]="FirstLine",e[e.OtherLines=1]="OtherLines",e[e.FirstLineMobile=2]="FirstLineMobile",e[e.OtherLinesMobile=3]="OtherLinesMobile"}(Dc||(Dc={}));const Bc={0:[80,80,6],1:[36,44,8],2:[48,48,4],3:[28,36,6]},Vc="symbolWatermark";class Rc extends bi.DataSource{constructor(e){super(),this._updateSource=()=>{this._model.updateSource(this)},this._model=e,this._properties=uc(),(0,h.applyDefaultsOverrides)(this._properties,void 0,!1,Vc),this._properties.subscribe(this,this._updateSource),this._model.backgroundTheme().subscribe(this._updateSource),this._paneView=new Lc(e,this)}destroy(){this._model.backgroundTheme().unsubscribe(this._updateSource),this._properties.unsubscribe(this,this._updateSource),super.destroy()}model(){return this._model}name(){return"watermark"}properties(){return this._properties}restorePropertiesDefaults(){uc().mergeAndFire(rc)}applyOverrides(e){(0,h.applyPropertiesOverrides)(this._properties,void 0,!1,function(e){const{visibility:t,...i}=e,s={...i};return void 0!==t&&(s.ticker=t,s.interval=t,s.description=t,s.custom=t),s}(e),Vc)}paneViews(){return[this._paneView]}updateAllViews(e){super.updateAllViews(e),this._paneView.update()}contextMenuStatName(){return"WatermarkContextMenu"}}var Nc,Oc=i(38486),Fc=i(79603);!function(e){e[e.StepForChangeValue=.1]="StepForChangeValue",e[e.MinValue=1e-7]="MinValue",e[e.MaxValue=99999999]="MaxValue"}(Nc||(Nc={}));class Wc extends Fc.PropertyBase{constructor(e){super(),this._model=e}destroy(){this._listeners.destroy()}getStepChangeValue(){return.1}getMinValue(){return 1e-7}getMaxValue(){return 99999999}value(){return this._model.mainSeriesScaleRatio()}setValue(e,t){(e!==this.value()||t)&&(this._model.setMainSeriesScaleRatio(e),this.fireChanged())}setValueSilently(e){e!==this.value()&&this._model.setMainSeriesScaleRatio(e)}state(){return null}clone(){return new Wc(this._model)}storeStateIfUndefined(){return!0}weakReference(){return(0,Oc.weakReference)(this)}ownership(){return(0,Oc.ownership)(this)}}var Hc=i(18113),zc=i(28450);class Uc{constructor(e,t){this._map1=new Map,this._map2=new Map,this._getter1=e,this._getter2=t}add(e){const t=this._getter1(e),i=this._getter2(e);this._map1.set(t,e),this._map2.set(i,t)}getByKey1(e){return this._map1.get(e)??null}getByKey2(e){const t=this._map2.get(e) +;return void 0===t?null:this._map1.get(t)??null}removeByKey1(e){const t=this._map1.get(e);void 0!==t&&(this._map1.delete(e),this._map2.delete(this._getter2(t)))}removeByKey2(e){const t=this._map2.get(e);void 0!==t&&(this._map2.delete(e),this._map1.delete(t))}}var jc,Gc=i(27593),qc=i(6652);function $c(e,t,i){return i.hasDataSource(t)?Zc(t,i)===e:!!i.isMainPane().value()&&Zc(i.model().mainSeries(),i)===e}!function(e){e.Trading="trading",e.Drawing="drawing",e.DrawingForAllSymbols="drawingsForAllSymbols",e.Phantom="phantom",e.RestRowSources="restRowSources",e.LegendViewSources="legendViewSources",e.LeftPriceScale="leftPriceScale",e.RightPriceScale="rightPriceScale",e.OverlayPriceScale="overlayPriceScale",e.MultipaneSources="multipane",e.AllWithoutMultipane="allWithoutMultipane",e.AllWithoutMultipaneWithHidden="allWithoutMultipaneWithHidden",e.PlotSource="plotSource",e.ObjectTree="objectTree",e.HitTest="hitTest",e.General="general",e.Price="price",e.ExceptSpecial="exceptSpecial",e.AllSorted="allSorted",e.VisibleSorted="visibleSorted"}(jc||(jc={}));const Kc=new Map([["price",e=>(0,An.isPriceDataSource)(e)],["trading",e=>(0,zs.isTrading)(e)],["drawing",e=>(0,zs.isLineTool)(e)&&!(0,zs.isTrading)(e)&&!e.isPhantom()],["drawingsForAllSymbols",e=>(0,zs.isLineTool)(e)&&!(0,zs.isTrading)(e)&&!e.isPhantom()],["phantom",e=>(0,zs.isLineTool)(e)&&e.isPhantom()],["restRowSources",e=>!(0,zs.isLineTool)(e)&&!(0,zs.isTrading)(e)],["legendViewSources",(e,t)=>t.hasDataSource(e)&&((0,An.isPriceDataSource)(e)||(0,Us.isStudyLineTool)(e))],["leftPriceScale",$c.bind(null,"left")],["rightPriceScale",$c.bind(null,"right")],["overlayPriceScale",$c.bind(null,"overlay")],["multipane",(e,t)=>!t.hasDataSource(e)],["allWithoutMultipane",(e,t)=>t.hasDataSource(e)],["allWithoutMultipaneWithHidden",(e,t)=>t.hasDataSource(e)],["plotSource",(e,t)=>(0,qc.isSeries)(e)||(0,Ws.isStudy)(e)&&t.hasDataSource(e)&&!e.isSpeciallyZOrderedSource()],["objectTree",(e,t)=>{if((0,zs.isLineTool)(e)){const i=e.targetSignature().value();if(null!==i)return t.hasDataSourceWithSignature(i)}return t.hasDataSource(e)}]]),Yc=new Map([["price","visibleSorted"],["trading","visibleSorted"],["drawing","visibleSorted"],["drawingsForAllSymbols","allSorted"],["phantom","visibleSorted"],["restRowSources","visibleSorted"],["legendViewSources","visibleSorted"],["leftPriceScale","visibleSorted"],["rightPriceScale","visibleSorted"],["overlayPriceScale","visibleSorted"],["multipane","visibleSorted"],["allWithoutMultipane","visibleSorted"],["allWithoutMultipaneWithHidden","allSorted"],["plotSource","visibleSorted"],["objectTree","visibleSorted"]]);function Zc(e,t){const i=e.priceScale();return null===i?"overlay":t.priceScalePosition(i)}function Xc(e){let t=null;return{sources:e,hasSource:i=>(null===t&&(t=new Map(e.map((e=>[e.id(),e])))),t.has(i.id()))}}class Jc{constructor(e){this._groupedSources=new Map,this._sources=null,this._pane=e}clear(){this._groupedSources.clear(),this._sources=null}destroy(){this.clear()}all(){return this._groupedSources.has("visibleSorted")||this._sortSources(),(0, +n.ensureDefined)(this._groupedSources.get("visibleSorted")).sources}allIncludingHidden(){return this._groupedSources.has("allSorted")||this._sortSources(),(0,n.ensureDefined)(this._groupedSources.get("allSorted")).sources}allWithoutMultipane(){return this._getSourcesByGroupType("allWithoutMultipane")}allWithoutMultipaneWithHidden(){return this._getSourcesByGroupType("allWithoutMultipaneWithHidden")}objectTreeSources(){return this._getSourcesByGroupType("objectTree")}hasObjectTreeSource(e){return this._getGroupedSourcesByGroupType("objectTree").hasSource(e)}allExceptSpecialSources(){if(!this._groupedSources.has("exceptSpecial")){const e=this.allIncludingHidden().filter((e=>!e.isSpeciallyZOrderedSource()));this._groupedSources.set("exceptSpecial",Xc(e))}return(0,n.ensureDefined)(this._groupedSources.get("exceptSpecial")).sources}tradingSources(){return this._getSourcesByGroupType("trading")}priceSources(){return this._getSourcesByGroupType("price")}plotSources(){return this._getSourcesByGroupType("plotSource")}lineSources(){return this._getSourcesByGroupType("drawing")}hasLineSource(e){return this._getGroupedSourcesByGroupType("drawing").hasSource(e)}lineSourcesForAllSymbols(){return this._getSourcesByGroupType("drawingsForAllSymbols")}phantomSources(){return this._getSourcesByGroupType("phantom")}allExceptLineAndTradingSources(){return this._getSourcesByGroupType("restRowSources")}hitTestSources(){if(!this._groupedSources.has("hitTest")){const e=this.allExceptLineAndTradingSources().concat(this.lineSources());this._groupedSources.set("hitTest",Xc((0,vi.sortSources)(e,this._pane)))}return(0,n.ensureDefined)(this._groupedSources.get("hitTest")).sources}generalSources(){if(!this._groupedSources.has("general")){const e=this.allExceptLineAndTradingSources().concat(this.lineSources());this._groupedSources.set("general",Xc((0,vi.sortSources)(e,this._pane)))}return(0,n.ensureDefined)(this._groupedSources.get("general")).sources}leftPriceScalesSources(){return this._getSourcesByGroupType("leftPriceScale")}rightPriceScalesSources(){return this._getSourcesByGroupType("rightPriceScale")}overlayPriceScaleSources(){return this._getSourcesByGroupType("overlayPriceScale")}multipaneSources(){return this._getSourcesByGroupType("multipane")}legendViewSources(){return this._getSourcesByGroupType("legendViewSources")}_getSourcesByGroupType(e){return this._getGroupedSourcesByGroupType(e).sources}_getGroupedSourcesByGroupType(e){const t=(0,n.ensureDefined)(Yc.get(e));return this._groupedSources.has(t)?this._groupedSources.has(e)||this._groupSources(e):(this._sortSources(),this._groupSources(e)),(0,n.ensureDefined)(this._groupedSources.get(e))}_sortSources(){null===this._sources&&(this._sources=this._pane.dataSources());const e=this._pane.model().multiPaneSources(this._pane),t=(0,vi.sortSources)(this._sources.concat(e),this._pane),i=t.filter((e=>!(0,zs.isLineTool)(e)||e.isActualSymbol()&&e.isActualCurrency()&&e.isActualUnit()));this._groupedSources.set("allSorted",Xc(t)),this._groupedSources.set("visibleSorted",Xc(i))}_groupSources(e){ +const t=(0,n.ensureDefined)(Yc.get(e)),i=Kc.get(e);if(void 0!==i){const s=(0,n.ensureDefined)(this._groupedSources.get(t)).sources.filter((e=>i(e,this._pane)));this._groupedSources.set(e,Xc(s))}}}var Qc=i(24062),eh=i(52945);function th(e,t,i){const s=(0,xt.symbolUnitConvertibleGroupsIfExist)(e,!0);if(null!==s)return s;const o=i.unitGroupById(t);return null===o?[]:[o]}function ih(e,t,i,s){let o=null;if(i.unitConversionEnabled()&&(0,Lr.isSymbolSource)(e)){const n=i.availableUnits(),r=t.unit(n),a=e.unit(),l=null===a?[]:th(e.symbolInfo(),a,n);null!==r&&null!==r.selectedUnit&&!r.allUnitsAreOriginal&&r.selectedUnit!==a&&(s&&null===a||null!==a&&n.convertible(a,l))&&(o=r.selectedUnit)}return o}var sh=i(60521);function oh(e,t,i){const s=e.div(t).toNumber();return Math.abs(Math.round(s)-s)100)throw new Error("something wrong with base")}}}tickSpan(e,t,i){const s=0===this._base?0:1/this._base,o=Math.min(1e-14,(e-t)/1e3);let n=Math.pow(10,Math.max(0,Math.ceil((0,fo.log10)(e-t))));if(!isFinite(n))return 1e305;let r=0,a=this._integralDividers[0];for(;;){const e=(0,fo.greaterOrEqual)(n,s,o)&&n>s+o,t=(0,fo.greaterOrEqual)(n,i*a,o),l=(0,fo.greaterOrEqual)(n,1,o),c=new sh.Big(n).div(a),h=0===s||oh(c,s,o);if(!(e&&t&&l&&h))break;n=c.toNumber(),a=this._integralDividers[++r%this._integralDividers.length]}if(n<=s+o&&(n=s),n=Math.max(1,n),this._fractionalDividers.length>0&&(0,fo.equal)(n,1,o))for(r=0,a=this._fractionalDividers[0];;){const e=(0,fo.greaterOrEqual)(n,i*a,o)&&n>s+o,t=new sh.Big(n).div(a),l=0===s||oh(t,s,o);if(!e||!l)break;n=t.toNumber(),a=this._fractionalDividers[++r%this._fractionalDividers.length]}return n}}class lh{constructor(e,t,i,s){this._marks=null,this._priceScale=e,this._base=t,this._coordinateToLogicalFunc=i,this._logicalToCoordinateFunc=s}base(){return this._base}setBase(e){if(e<0)throw new Error("base < 0");this._base=e}tickSpan(e,t,i=0){if(e{const r=o.tickSpan(e,t,n);return r>i?Math.min(r,s):s}),1/0);return r>0&&isFinite(r)?r:e-t}rebuildTickMarks(){this._marks=null}marks(){return null===this._marks&&(this._marks=this._rebuildTickMarksImpl()),this._marks}_fontHeight(){return this._priceScale.fontSize()}_tickMarkHeight(){return Math.ceil(2.5*this._fontHeight())}_rebuildTickMarksImpl(){const e=this._priceScale,t=[],i=e.mainSource();if(e.isEmpty()||!e.hasCalculatedPriceRange()||null===i)return t +;let s=i.firstValue();null===s&&(s=0);const o=e.height(),n=this._coordinateToLogicalFunc(o-1,s),r=this._coordinateToLogicalFunc(0,s),a=Math.max(n,r),l=Math.min(n,r);if(a===l)return t;let c=this.tickSpan(a,l),h=a%c;h+=h<0?c:0;const d=a>=l?1:-1;let u=null;const _=e.formatter();let p=NaN;for(let i=a-h;i>l;i-=c){i===p&&(c=this.tickSpan(a,l,c)),p=i;const o=this._logicalToCoordinateFunc(i,s);null!==u&&Math.abs(o-u){const e=this.mainSource();if(e&&e.model()){const t=e.model().paneForSource(e);t&&e.model().updatePane(t)}})),this._scalesProperties.subscribe(this,(()=>{this._marksCache=null})),this._properties.childs().lockScale.subscribe(this,this._updateResetAvailableValue),this._properties.childs().autoScale.subscribe(this,this._updateResetAvailableValue),this._updateResetAvailableValue(),this.setId((0,fe.randomHash)())}id(){return this._id}setId(e){this._id=e}isLog(){return this._properties.childs().log.value()} +isPercentage(){return this._properties.childs().percentage.value()}isInverted(){return this._properties.childs().isInverted.value()}isIndexedTo100(){return this._properties.childs().indexedTo100.value()}isAutoScale(){return this._properties.childs().autoScale.value()&&!this.isLockScale()}isLockScale(){return this._properties.childs().lockScale.value()}isRegular(){return!this.isPercentage()&&!this.isLog()&&!this.isIndexedTo100()}isScaleSeriesOnly(){return this._scaleSeriesOnly}properties(){return this._properties}height(){return this.m_height}setHeight(e){this.m_height!==e&&(this.m_height=e,this._invalidateInternalHeightCache(),this._marksCache=null)}internalHeight(){if(this._internalHeightCache)return this._internalHeightCache;const e=this.height()-this.topPixelMargin()-this.bottomPixelMargin();return this._internalHeightCache=e,e}fontSize(){return this._scalesProperties.childs().fontSize.value()}priceRange(){return this._makeSureItIsValid(),this._priceRange}setPriceRange(e,t,i){if(!(e instanceof Qc.PriceRange))throw new TypeError("incorrect price range");const s=this._priceRange;if(!t&&Qc.PriceRange.compare(s,e))return;const o=null!==this._maxPriceRange&&this._maxPriceRange.containsStrictly(e),n=null!==this._minPriceRange&&e.containsStrictly(this._minPriceRange);this.isLockScale()&&!t&&(o||n)||(this._marksCache=null,this._priceRange=e,i||this._priceRangeChanged.fire(s,e),this.updateAllViews((0,wi.viewportChangeEvent)()))}setMinPriceRange(e){this._minPriceRange=e}setMaxPriceRange(e){this._maxPriceRange=e}recalculatePriceRangeOnce(){this._recalculatePriceRangeOnce=!0}priceRangeShouldBeRecalculatedOnce(){if(!this._recalculatePriceRangeOnce||this.isLockScale())return!1;const e=this.mainSource();return null!==e&&e.priceRangeReady()}priceRangeChanged(){return this._priceRangeChanged}mode(){const e=this._properties.childs();return{autoScale:e.autoScale.value(),lockScale:e.lockScale.value(),percentage:e.percentage.value(),indexedTo100:e.indexedTo100.value(),log:e.log.value()}}setMode(e){const t={},i=this.mode(),s=this._properties.state();let o=null;void 0!==e.autoScale&&e.autoScale!==s.autoScale&&(t.autoScale=e.autoScale,this._setAutoScaleValueWithDependentProperties(e.autoScale)),void 0!==e.lockScale&&e.lockScale!==s.lockScale&&(t.lockScale=e.lockScale,this._setLockScaleValueWithDependentProperties(e.lockScale)),void 0!==e.percentage&&e.percentage!==s.percentage&&(t.percentage=e.percentage,this._setPercentageValueWithDependentProperties(e.percentage),this._invalidatedForRange.isValid=!1),void 0!==e.indexedTo100&&e.indexedTo100!==s.indexedTo100&&(t.indexedTo100=e.indexedTo100,this._setIndexedTo100ValueWithDependentProperties(e.indexedTo100),this._invalidatedForRange.isValid=!1),void 0!==e.log&&e.log!==s.log&&(t.log=e.log,this._setLogValueWithDependentProperties(e.log));const n=this._properties.childs();s.log&&!n.log.value()&&(this._canConvertPriceRangeFromLog(this._priceRange)?(o=this._convertPriceRangeFromLog(this._priceRange),null!==o&&this.setPriceRange(o)):n.autoScale.setValue(!0)), +!s.log&&n.log.value()&&(o=this._convertPriceRangeToLog(this._priceRange),null!==o&&this.setPriceRange(o)),s.autoScale!==n.autoScale.value()&&n.autoScale.fireChanged(),s.autoScaleDisabled!==n.autoScaleDisabled.value()&&n.autoScaleDisabled.fireChanged(),s.lockScale!==n.lockScale.value()&&n.lockScale.fireChanged(),s.percentage!==n.percentage.value()&&(n.percentage.fireChanged(),this.updateFormatter()),s.indexedTo100!==n.indexedTo100.value()&&(n.indexedTo100.fireChanged(),this.updateFormatter()),s.percentageDisabled!==n.percentageDisabled.value()&&n.percentageDisabled.fireChanged(),s.log!==n.log.value()&&n.log.fireChanged(),s.logDisabled!==n.logDisabled.value()&&n.logDisabled.fireChanged(),void 0===t.log&&void 0===t.percentage&&void 0===t.lockScale&&void 0===t.autoScale&&void 0===t.indexedTo100||this._modeChanged.fire(i,this.mode())}modeChanged(){return this._modeChanged}isEmpty(){return this._makeSureItIsValid(),0===this.m_height||!this._priceRange||this._priceRange.isEmpty()}hasCalculatedPriceRange(){return this._hasCalculatedPriceRange}canDetachSource(e){return this.m_dataSources.some((t=>t!==e&&(0,An.isPriceDataSource)(t)&&!((0,Ws.isStudy)(t)&&t.isLinkedToSeries())))}updateAllViews(e){const t=this._getSourcesToUpdateViews();for(const i of t)i.updateAllViews(e)}logFormula(){return this._logFormula}state(){const e=this._properties.childs();return{id:this._id,m_priceRange:this.isAutoScale()?null:this.priceRange()?.serialize()||null,m_isAutoScale:this.isAutoScale(),m_isPercentage:e.percentage.value(),m_isIndexedTo100:e.indexedTo100.value(),m_isLog:e.log.value(),m_isLockScale:this.isLockScale(),m_isInverted:this.isInverted(),m_topMargin:this._margins.top,m_bottomMargin:this._margins.bottom,alignLabels:e.alignLabels.value(),logFormula:(0,tt.clone)(this._logFormula),hasCalculatedPriceRange:this._hasCalculatedPriceRange}}restoreState(e){let t=e.m_priceRange;if(void 0===t)throw new TypeError("invalid state");if(void 0===e.m_isAutoScale)throw new TypeError("invalid state");void 0!==e.id&&(this._id=e.id);const i={autoScale:e.m_isAutoScale};void 0!==e.m_isPercentage&&(i.percentage=e.m_isPercentage),void 0!==e.m_isIndexedTo100&&(i.indexedTo100=e.m_isIndexedTo100),void 0!==e.m_isLog&&(i.log=e.m_isLog),void 0!==e.m_isLockScale&&(i.lockScale=e.m_isLockScale),void 0!==e.m_isInverted&&this._properties.childs().isInverted.setValue(e.m_isInverted),this.setMode(i),this._hasCalculatedPriceRange=e.hasCalculatedPriceRange??null!==t,t?(t instanceof Qc.PriceRange||(t=new Qc.PriceRange(t)),this.setPriceRange(t,!0)):this.clearPriceRange(),e.logFormula&&(this._logFormula=e.logFormula),void 0!==e.m_topMargin&&(this._margins.top=e.m_topMargin),void 0!==e.m_bottomMargin&&(this._margins.bottom=e.m_bottomMargin),void 0!==e.alignLabels&&this._properties.childs().alignLabels.setValue(e.alignLabels),this._mainSource=null,this._scaleSeriesOnly=!1}priceToLogical(e){return this.isLog()&&e?(0,eh.toLog)(e,this._logFormula):e}logicalToPrice(e){return this.isLog()?(0,eh.fromLog)(e,this._logFormula):e}positionPercentToCoordinate(e){return this.height()*e} +priceToCoordinate(e,t){const i=this._priceToPercentOrIndexedTo100IfNeeded(e,t);return this._logicalToCoordinate(i)}coordinateToPrice(e,t){let i=this._coordinateToLogical(e);return this.isPercentage()?i=(0,eh.fromPercent)(i,t):this.isIndexedTo100()&&(i=(0,eh.fromIndexedTo100)(i,t)),i}mainSource(){if(null!==this._mainSource)return this._mainSource;let e;for(const t of this._priceDataSources){if((0,qc.isSeries)(t)){e=t;break}e||(e=t)}return this._mainSource=e||null,this._correctedMarginsCache=null,this._mainSource}priceToCoordinateFn(e){this._makeSureItIsValid();const t=this.bottomPixelMargin(),i=(0,n.ensureNotNull)(this.priceRange()),s=i.minValue(),o=i.maxValue(),r=this.internalHeight()-1,a=this.isInverted(),l=r/(o-s),c=this.m_height,h=e=>{const i=t+l*(e-s);return a?i:c-1-i};return this.isPercentage()?t=>h((0,eh.toPercent)(t,e)):this.isIndexedTo100()?t=>h((0,eh.toIndexedTo100)(t,e)):this.isLog()?e=>h((0,eh.toLog)(e,this._logFormula)):e=>h(e)}pricesArrayToCoordinates(e,t,i){this._makeSureItIsValid();const s=this.bottomPixelMargin(),o=(0,n.ensureNotNull)(this.priceRange()),r=o.minValue(),a=o.maxValue(),l=this.internalHeight()-1,c=this.isInverted(),h=l/(a-r);void 0===i&&(i=e.length);const d=this.isPercentage(),u=this.isIndexedTo100(),_=this.isLog(),p=this.m_height;let m,g;for(let o=0;oe?(0,eh.toLog)(e,this._logFormula):e),0===s.length)return;const h="open"in s[0],d="close"in s[0];if(null!==c)for(let e=0;e0){const t=th(u,p,e);c=(0,Pt.intersect)(c,new Set(t))}d+=1,a.add((0,xt.proSymbol)(u,n.symbol()))}if(null!==t)for(const i of this._priceDataSources){if(_.includes(i))continue;const a=i +;if(!a.isUnitSource()||!a.isVisible()||a.isFailed())continue;const h=a.unit();if(null===h){t=null;break}s.add(h),u+=1;const d=(0,n.ensureNotNull)(a.symbolSource()),p=d.symbolInfo();if(null===p){t=null;break}if(c.size>0){const t=th(p,h,e);c=(0,Pt.intersect)(c,new Set(t))}if(o.set(h,e.name(h)),r.set(h,e.description(h)),_.includes(d)||(c=new Set),void 0===l)l=h;else if(null!==l&&l!==h){l=null;break}}if(void 0===t)if(0===d&&0===u)t=null;else{t={availableGroups:c,selectedUnit:l||null,units:s,originalUnits:i,symbolSourceCount:d,allUnitsAreOriginal:h,names:o,descriptions:r,symbols:a}}return this._unitCache={value:t,availableUnitsCount:e.size()},t}measureUnitId(e){if(null!==this._measureUnitIdCache&&e.size()===this._measureUnitIdCache.availableUnitsCount)return this._measureUnitIdCache.value;let t,i;const s=new Map,o=new Map,n=new Set;let r=0;const a=this._seriesLikeSources.filter(Lr.isActingAsSymbolSource);for(const l of a){if(!l.isVisible())continue;const a=l.measureUnitId();if(null===a){t=null;break}n.add(a),s.set(a,e.name(a)),o.set(a,e.description(a)),void 0===i?i=a:null!==i&&i!==a&&(i=null),r+=1}return void 0===t&&(t=0===r?null:{selectedMeasureUnitId:i||null,measureUnitIds:n,names:s,descriptions:o,symbolSourceCount:r}),this._measureUnitIdCache={value:t,availableUnitsCount:e.size()},t}setMargins(e){if(!(0,tt.isNumber)(e.top)||!(0,tt.isNumber)(e.bottom))throw new TypeError("invalid margin");if(e.top<0||e.top>30||e.bottom<0||e.bottom>30)throw new RangeError("invalid margin");this._margins.top===e.top&&this._margins.bottom===e.bottom||(this._margins=e,this._correctedMarginsCache=null,this._invalidateInternalHeightCache(),this._marksCache=null)}topMargin(){return this._correctedMargins().top}bottomMargin(){return this._correctedMargins().bottom}invalidateMargins(){this._correctedMarginsCache=null}topPixelMargin(){return this.isInverted()?this.bottomMargin()*this.height()+this._bottomPixelMargin:this.topMargin()*this.height()+this._topPixelMargin}bottomPixelMargin(){return this.isInverted()?this.topMargin()*this.height()+this._topPixelMargin:this.bottomMargin()*this.height()+this._bottomPixelMargin}marks(){return this.isEmpty()?(this._marksCache=null,[]):(null===this._marksCache&&(this._markBuilder.rebuildTickMarks(),this._marksCache=this._markBuilder.marks(),this._onMarksChanged.fire()),this._marksCache)}onMarksChanged(){return this._onMarksChanged}priceRangeInPrice(){if(this.isEmpty())return null;const e=this.mainSource()?.firstValue()??null;if(null===e)return null;const t=this.height();return{from:this.coordinateToPrice(t-1,e),to:this.coordinateToPrice(0,e)}}setPriceRangeInPrice(e){if(this.isPercentage()||this.isIndexedTo100())return;const t=this.isInverted(),i=t?this.bottomMargin():this.topMargin(),s=t?this.topMargin():this.bottomMargin(),o=this.isLog();let n=o?(0,eh.toLog)(e.from,this._logFormula):e.from,r=o?(0,eh.toLog)(e.to,this._logFormula):e.to;const a=r-n;n+=s*a,r-=i*a,this.setMode({autoScale:!1}),this.setPriceRange(new Qc.PriceRange(n,r)),this._marksCache=null,this._onMarksChanged.fire()}hasMainSeries(){ +return this._hasSeries}getStudies(){return this.dataSources().filter(Ws.isStudy)}lastSourceRemoved(){return this._lastSourceRemoved}sourcesForAutoscale(){return this._mainSource&&this._scaleSeriesOnly!==this._scalesProperties.childs().scaleSeriesOnly.value()&&(this._sourcesForAutoscale=null),this._sourcesForAutoscale||(this._sourcesForAutoscale=this._recalculateSourcesForAutoscale()),this._sourcesForAutoscale}recalculatePriceRange(e){this._invalidatedForRange={visibleBars:e,isValid:!1}}internalHeightChanged(){return this._internalHeightChanged}orderedSources(){if(this._cachedOrderedSoruces)return this._cachedOrderedSoruces;let e=this.m_dataSources.slice();return e=(0,vi.sortSources)(e),this._cachedOrderedSoruces=e,this._cachedOrderedSoruces}invalidateSourcesCache(){this._cachedOrderedSoruces=null,this._sourcesToUpdateViews=null}startScale(e){this.isEmpty()||this.isPercentage()||this.isIndexedTo100()||null!==this._scaleStartPoint||null!==this._priceRangeSnapshot||(this._scaleStartPoint=this.m_height-e,this._priceRangeSnapshot=this.priceRange()?.clone()??null)}scaleTo(e){if(this.isPercentage()||this.isIndexedTo100()||null===this._scaleStartPoint)return;this.setMode({autoScale:!1}),(e=this.m_height-e)<0&&(e=0);let t=(this._scaleStartPoint+.2*(this.m_height-1))/(e+.2*(this.m_height-1));const i=(0,n.ensureNotNull)(this._priceRangeSnapshot).clone();t=Math.max(t,.1),i.scaleAroundCenter(t),this.setPriceRange(i)}endScale(){this.isPercentage()||this.isIndexedTo100()||null!==this._scaleStartPoint&&(this._scaleStartPoint=null,this._priceRangeSnapshot=null)}startTwoPointsScale(e,t){if(this.isEmpty()||this.isPercentage()||this.isIndexedTo100()||null!==this._twoPointsScaleStartPosition)return;const i=Math.min(e,t),s=Math.max(e,t);this._twoPointsScaleStartPosition={topLogical:this._coordinateToLogical(i),bottomLogical:this._coordinateToLogical(s)}}twoPointsScale(e,t){if(this.isPercentage()||this.isIndexedTo100()||null===this._twoPointsScaleStartPosition)return;this.setMode({autoScale:!1});const i=Math.min(e,t),s=Math.max(e,t),{topLogical:o,bottomLogical:n}=this._twoPointsScaleStartPosition,r=this.bottomPixelMargin(),a=this.internalHeight()-1,l=(this._invertedCoordinate(i)-r)/a,c=(n-o)/((this._invertedCoordinate(s)-r)/a-l);if(!Number.isFinite(c))return;const h=o-c*l,d=h+c;this.setPriceRange(new Qc.PriceRange(this.priceToLogical(h),this.priceToLogical(d)))}endTwoPointsScale(){this._twoPointsScaleStartPosition=null}startScroll(e){this.isAutoScale()||null===this._scrollStartPoint&&null===this._priceRangeSnapshot&&(this.isEmpty()||(this._scrollStartPoint=e,this._priceRangeSnapshot=this.priceRange()?.clone()??null))}scrollTo(e){if(this.isAutoScale())return;if(null===this._scrollStartPoint||null===this._priceRangeSnapshot)return;const t=this.priceRange();if(null===t)return;let i=e-this._scrollStartPoint;this.isInverted()&&(i*=-1);const s=i*(t.length()/(this.internalHeight()-1)),o=this._priceRangeSnapshot.clone();o.shift(s),this.setPriceRange(o,!0),this._marksCache=null}endScroll(){ +this.isAutoScale()||null!==this._scrollStartPoint&&(this._scrollStartPoint=null,this._priceRangeSnapshot=null)}clearPriceRange(){this._priceRange=null,this.recalculatePriceRangeOnce()}isVisible(){return this._isVisible}_addDataSourceImpl(e,t,i){if(t||-1===this.m_dataSources.indexOf(e)){if((0,An.isPriceDataSource)(e)){if(void 0===i?this._priceDataSources.push(e):this._priceDataSources.splice(i,0,e),e.currencyChanged().subscribe(this,(()=>this._currencyCache=null)),e.unitChanged().subscribe(this,(()=>this._unitCache=null)),(0,Lr.isSymbolSource)(e)&&(this._seriesLikeSources.push(e),e.symbolResolved().subscribe(this,(()=>{this._currencyCache=null,this._unitCache=null,this._measureUnitIdCache=null,this._updateLogFormula()})),e.isActingAsSymbolSource().subscribe(this._boundOnSourceIsActingAsSymbolSourceChanged),(0,qc.isSeries)(e))){const t=e.properties();this._hasSeries||(t.childs().lockScale&&(this.setMode({lockScale:t.childs().lockScale.value()}),t.removeProperty("lockScale")),t.childs().pnfStyle.hasChild("lockScale")&&t.childs().pnfStyle.removeProperty("lockScale")),this._hasSeries=!0}e.isSpeciallyZOrderedSource()||(this._sourcesThatAffectVisibility.push(e),e.properties().childs().visible.subscribe(this,this._onSourceVisibilityChanged))}(0,Ws.isStudy)(e)&&(e.onIsActualIntervalChange().subscribe(this,this._dropScaleCache),e.onHibernationStateChange().subscribe(this,this._dropScaleCache),e.properties().childs().styles.subscribe(this,this._dropScaleCache),0===this._studiesCount&&(0,mt.hideAllIndicators)().subscribe(this,this._dropScaleCache),this._studiesCount++),(0,zs.isLineTool)(e)&&(0===this._drawingCount&&(0,mt.hideAllDrawings)().subscribe(this,this._dropScaleCache),this._drawingCount++),this.m_dataSources.push(e),this._mainSource=null,this.mainSource()===e&&(this._correctedMarginsCache=null,this._internalHeightCache=null,this._marksCache=null),this._dropScaleCache(),this.updateFormatter(),this._initScaleProperties(),this.invalidateSourcesCache(),this._updateIsVisible(),this._updateLogFormula()}}_recalculateSourcesForAutoscale(){this._mainSource&&(this._scaleSeriesOnly=this._scalesProperties.childs().scaleSeriesOnly.value());const e=this._scaleSeriesOnly&&this._hasSeries;return this.m_dataSources.filter((t=>!(!t.properties().visible.value()&&!(0,qc.isSeries)(t))&&(e?(0,qc.isSeries)(t):(0,Ws.isStudy)(t)?!t.isSourceHidden()&&t.isIncludedInAutoScale():t.isIncludedInAutoScale())))}_updateAutoScaleDisabledProperty(e){const t=this._properties.childs(),i=t.indexedTo100.value()||t.percentage.value()||t.lockScale.value();e?t.autoScaleDisabled.setValueSilently(i):t.autoScaleDisabled.setValue(i)}_setAutoScaleValueWithDependentProperties(e){const t=this._properties.childs();t.autoScale.setValueSilently(e),e&&(t.percentage.setValueSilently(!1),t.indexedTo100.setValueSilently(!1),t.lockScale.setValueSilently(!1),t.logDisabled.setValueSilently(!1)),this._updateAutoScaleDisabledProperty(!0)}_setLockScaleValueWithDependentProperties(e){const t=this._properties.childs();t.lockScale.setValueSilently(e), +e&&(t.autoScale.setValueSilently(!1),t.percentage.setValueSilently(!1),t.indexedTo100.setValueSilently(!1),t.log.setValueSilently(!1)),t.percentageDisabled.setValueSilently(e),t.logDisabled.setValueSilently(e),this._updateAutoScaleDisabledProperty(!0)}_setPercentageValueWithDependentProperties(e){const t=this._properties.childs();t.percentage.setValueSilently(e),e&&(t.autoScale.setValueSilently(!0),t.log.setValueSilently(!1),t.lockScale.setValueSilently(!1),t.indexedTo100.setValueSilently(!1)),this._updateAutoScaleDisabledProperty(!0)}_setIndexedTo100ValueWithDependentProperties(e){const t=this._properties.childs();t.indexedTo100.setValueSilently(e),e&&(t.autoScale.setValueSilently(!0),t.log.setValueSilently(!1),t.lockScale.setValueSilently(!1),t.percentage.setValueSilently(!1)),this._updateAutoScaleDisabledProperty(!0)}_setLogValueWithDependentProperties(e){const t=this._properties.childs();t.log.setValueSilently(e),e&&(t.lockScale.setValueSilently(!1),t.percentage.setValueSilently(!1),t.indexedTo100.setValueSilently(!1)),this._updateAutoScaleDisabledProperty(!0)}_recalculatePriceRangeImpl(){const e=this._invalidatedForRange.visibleBars;if(null===e)return;let t=null;const i=this.sourcesForAutoscale(),s=this.isPercentage(),o=this.isIndexedTo100();let n=0,r=0;const a={targetPriceScale:this,scaleSeriesOnly:this._scaleSeriesOnly};for(const l of i){if(!l.properties().visible.value())continue;const i=l.firstValue();if(null===i||s&&0===i)continue;const c=e.firstBar(),h=e.lastBar(),d=l.autoScaleInfo(c,h,a);let u=d.range;u&&(s?u=(0,eh.toPercentRange)(u,i):o&&(u=(0,eh.toIndexedTo100Range)(u,i)),t=null===t?u:t.merge(u)),void 0!==d.topPixelMargin&&(n=Math.max(n,d.topPixelMargin)),void 0!==d.bottomPixelMargin&&(r=Math.max(r,d.bottomPixelMargin))}(Math.abs(n-this._topPixelMargin)>0||Math.abs(r-this._bottomPixelMargin)>0)&&(this._bottomPixelMargin=r,this._topPixelMargin=n,this._marksCache=null,this._invalidateInternalHeightCache()),t?(this._hasCalculatedPriceRange=!0,t.minValue()===t.maxValue()&&(t=new Qc.PriceRange(t.minValue()-.5,t.maxValue()+.5)),this.setPriceRange(t)):this._priceRange||this.setPriceRange(new Qc.PriceRange(-.5,.5)),this._invalidatedForRange.isValid=!0;const l=this.mainSource();null!==l&&this._recalculatePriceRangeOnce&&(this._recalculatePriceRangeOnce=!l.priceRangeReady())}_makeSureItIsValid(){this._invalidatedForRange.isValid||(this._invalidatedForRange.isValid=!0,this._recalculatePriceRangeImpl())}_invalidateInternalHeightCache(){this._internalHeightCache=null,this._internalHeightChanged.fire()}_coordinateToLogical(e){if(this._makeSureItIsValid(),this.isEmpty())return 0;const t=this._invertedCoordinate(e),i=(0,n.ensureNotNull)(this.priceRange()),s=i.minValue()+(i.maxValue()-i.minValue())*((t-this.bottomPixelMargin())/(this.internalHeight()-1));return this.logicalToPrice(s)}_logicalToCoordinate(e){if(this._makeSureItIsValid(),this.isEmpty())return 0;e=this.priceToLogical(e);const t=(0, +n.ensureNotNull)(this.priceRange()),i=this.bottomPixelMargin()+(this.internalHeight()-1)*(e-t.minValue())/(t.maxValue()-t.minValue());return this._invertedCoordinate(i)}_convertPriceRangeFromLog(e){if(null===e)return null;const t=(0,eh.fromLog)(e.minValue(),this._logFormula),i=(0,eh.fromLog)(e.maxValue(),this._logFormula);return new Qc.PriceRange(t,i)}_convertPriceRangeToLog(e){if(null===e)return null;const t=(0,eh.toLog)(e.minValue(),this._logFormula),i=(0,eh.toLog)(e.maxValue(),this._logFormula);return new Qc.PriceRange(t,i)}_canConvertPriceRangeFromLog(e){if(null===e)return!1;const t=(0,eh.fromLog)(e.minValue(),this._logFormula),i=(0,eh.fromLog)(e.maxValue(),this._logFormula);return isFinite(t)&&isFinite(i)}_onSourceVisibilityChanged(){this._dropScaleCache(),this._updateIsVisible()}_dropScaleCache(){this._sourcesForAutoscale=null,this._currencyCache=null,this._unitCache=null,this._measureUnitIdCache=null}_updateIsVisible(){if(!dh)return void this._isVisible.setValue(!0);const e=this._sourcesThatAffectVisibility.some((e=>e.isVisible()));this._isVisible.setValue(e)}_updateLogFormula(){const e=this.isLog()?this._convertPriceRangeFromLog(this.priceRange()):null,t=this.mainSource();if(null===t)this._logFormula=(0,eh.logFormulaForBase)(null);else{const e=t.base()||null,i=(0,eh.logFormulaForBase)(e);(0,eh.logFormulasAreSame)(i,this._logFormula)||(this._logFormula=i)}e&&this.setPriceRange(this._convertPriceRangeToLog(e))}_invertedCoordinate(e){return this.isInverted()?e:this.height()-1-e}_initScaleProperties(){const e=this.isLockScale(),t=this.properties().childs();e&&(t.percentage.setValue(!1),t.indexedTo100.setValue(!1),t.log.setValue(!1),t.autoScale.setValue(!1)),t.percentageDisabled.setValue(e),t.logDisabled.setValue(e),this._updateAutoScaleDisabledProperty(!1),t.percentage.value()&&(t.log.setValue(!1),t.indexedTo100.setValue(!1)),t.indexedTo100.value()&&(t.log.setValue(!1),t.percentage.setValue(!1))}_correctedMargins(){if(null===this._correctedMarginsCache){const e=this.mainSource();this._correctedMarginsCache=null!==e?e.correctScaleMargins(this._margins):this._margins}return this._correctedMarginsCache}_getSourcesToUpdateViews(){return this._sourcesToUpdateViews||(this._sourcesToUpdateViews=this.m_dataSources.filter((e=>!(0,zs.isLineTool)(e)||e.isActualSymbol()&&e.isActualCurrency()))),this._sourcesToUpdateViews}_mainSourceFormatter(){const e=this.mainSource();return e?.formatter()||_h}_priceToPercentOrIndexedTo100IfNeeded(e,t){return this.isPercentage()?(0,eh.toPercent)(e,t):this.isIndexedTo100()?(0,eh.toIndexedTo100)(e,t):e}_onSourceIsActingAsSymbolSourceChanged(){this._dropScaleCache()}_onIsInvertedChanged(){this._marksCache=null,this._markBuilder.rebuildTickMarks()}_updateResetAvailableValue(){this._resetScaleAvailable.setValue(!this.isLockScale()&&!this.isAutoScale())}}var gh=i(86252);const fh=[],yh=[];class vh{constructor(e){this._studies={},this._deferreds={},this._container=e,fh.push(e),yh.push(this)}add(e,t){this._deferreds[e]&&(this._deferreds[e].resolve(t),delete this._deferreds[e]),this._studies[e]=t} +get(e){return this._studies[e]?Promise.resolve(this._studies[e]):(this._deferreds[e]||(this._deferreds[e]=(0,me.createDeferredPromise)()),this._deferreds[e].promise)}delete(e){delete this._studies[e],delete this._deferreds[e]}reset(){const e=fh.indexOf(this._container);~e&&(fh.splice(e,1),yh.splice(e,1))}static instance(e){const t=fh.indexOf(e);return~t?yh[t]:new vh(e)}static ready(){for(const e of yh)if(Object.keys(e._deferreds).length>0)return!1;return!0}}var Sh=i(10544);var bh=i(81922),wh=i(54370),Ch=i(15219);function Th(e){e.wickUpColor=e.wickUpColor??e.wickColor,e.wickDownColor=e.wickDownColor??e.wickColor,delete e.wickColor}function Ph(e){e&&(e.colorType??=co.ColorType.Solid)}const xh=l.enabled("clear_price_scale_on_error_or_empty_bars"),Mh=(0,ne.getLogger)("Chart.Pane");var Ih;function Ah(e,t,i){e.setMargins({top:t,bottom:i})}!function(e){e[e.DefaultStretchFactor=1e3]="DefaultStretchFactor",e[e.LargePaneSizeRatio=1]="LargePaneSizeRatio",e[e.MediumPaneSizeRatio=.6]="MediumPaneSizeRatio",e[e.SmallPaneSizeRatio=.3]="SmallPaneSizeRatio",e[e.TinyPaneSizeRatio=.15]="TinyPaneSizeRatio"}(Ih||(Ih={}));const Lh="chart.pane";class kh{constructor(e,t,i,s,o){this.m_dataSources=[],this._sourceWatchedValuesSubscriptions=new Map,this.m_mainDataSource=null,this._cachedOrderedSources=new Jc(this),this._sourcesById=new Map,this._priceSourcesById=new Map,this._sourcePropertiesChanged=new ae.Delegate,this._sourcesZOrderChanged=new ae.Delegate,this._tagsChanged=new ae.Delegate,this._stretchFactor=1e3,this._isInInsertManyDataSourcesState=!1,this._lastLineDataSourceZOrder=null,this._rightPriceScales=[],this._leftPriceScales=[],this._lockedPriceScale=null,this._currentPriceScaleRatio=null,this._onPriceScalesChanged=new ae.Delegate,this._isRecalculatingScales=!1,this._priceDataSources=[],this._symbolSources=[],this._studySources=[],this._lollipopDataSources=[],this._symbolSourceResolved=new ae.Delegate,this._symbolSourceResolvingActive=new O.WatchedValue(!1),this._bulkActions={activeCounter:0},this._height=0,this._width=0,this._sizeChanged=new ae.Delegate,this._dataSourcesCollectionChanged=new ae.Delegate,this._dataSourcesZOrdersChanged=new ae.Delegate,this._symbolSourceCollectionChanged=new ae.Delegate,this._priceSourcesCollectionChanged=new ae.Delegate,this._isMainPane=new O.WatchedValue(!1),this._collapsed=new O.WatchedValue(!1),this._resetPriceScalesAvailable=new O.WatchedValue(!1),this._destroyed=new ae.Delegate,this._executionsPositionController=null,this._seriesDisplayError=null,this._onPriceScaleIsVisibleChanged=()=>{this._model.fullUpdate()},this._recalcSymbolSourceResolvingActive=()=>{for(const e of this._symbolSources)if(e.symbolResolvingActive().value())return void this._symbolSourceResolvingActive.setValue(!0);this._symbolSourceResolvingActive.setValue(!1)},this._onSymbolSourceCollectionChanged=()=>{0===this._bulkActions.activeCounter?this._symbolSourceCollectionChanged.fire():this._bulkActions.symbolSourceCollectionChanged=!0},this._onSeriesDisplayError=e=>{if(null!==e){ +for(const e of this._leftPriceScales)e.clearPriceRange();for(const e of this._rightPriceScales)e.clearPriceRange()}},this._updateResetPriceScalesAvailableValue=()=>{const e=e=>e.resetScaleAvailable().value(),t=this._leftPriceScales.some(e)||this._rightPriceScales.some(e);this._resetPriceScalesAvailable.setValue(t)},this._priceScaleSelectionStrategy=(0,zc.createPriceScaleSelectionStrategy)(i.properties().childs().priceScaleSelectionStrategyName.value()),this._id=s??(0,fe.randomHashN)(6),this._mode=o??zi.PaneMode.Regular,this._timeScale=e,this.m_mainDataSource=null,this._properties=t,this._model=i,this._maximized=(0,ft.combine)((e=>e===this),i.maximizedPane().spawnOwnership()),this._collapsingAvailable=(0,ft.combine)(((e,t)=>t),this._isMainPane.weakReference(),i.paneCollapsingAvailable().weakReference()),i.properties().childs().priceScaleSelectionStrategyName.subscribe(null,(e=>{this._priceScaleSelectionStrategy=(0,zc.createPriceScaleSelectionStrategy)(e.value()),this._priceScaleSelectionStrategy.apply(this)})),this._timeScale.barSpacingChanged().subscribe(this,(()=>{this.m_mainDataSource===this._model.mainSeries()&&this._recalculatePriceScaleByScaleRatio(this.m_mainDataSource.priceScale())})),xh&&(this._seriesDisplayError=(0,xt.getSeriesDisplayErrorWV)(this._model.mainSeries()),this._seriesDisplayError.subscribe(this._onSeriesDisplayError)),i.onMultipaneSourcesCollectionChanged().subscribe(this,this._invalidateSourcesCache),i.panesCollectionChanged().subscribe(this,this._invalidateSourcesCache),t.childs().topMargin.subscribe(this,this._updateMargins),t.childs().bottomMargin.subscribe(this,this._updateMargins),this._lineToolsByLinkKey=new Uc((e=>e.linkKey().value()),(e=>e.id())),this._updateMargins()}destroy(){if(this._properties.childs().topMargin.unsubscribeAll(this),this._properties.childs().bottomMargin.unsubscribeAll(this),this._model.properties().childs().priceScaleSelectionStrategyName.unsubscribeAll(this),this._timeScale.barSpacingChanged().unsubscribeAll(this),this._leftPriceScales.concat(this._rightPriceScales).forEach((e=>{e.modeChanged().unsubscribeAll(this),e.priceRangeChanged().unsubscribeAll(this),e.internalHeightChanged().unsubscribeAll(this),e.isVisible().unsubscribe(this._onPriceScaleIsVisibleChanged),e.resetScaleAvailable().unsubscribe(this._updateResetPriceScalesAvailableValue)})),this._mode===zi.PaneMode.Regular)for(const e of this.m_dataSources)this.removeSourceFromPriceScale(e),e.destroy&&e.destroy();this._seriesDisplayError?.destroy(),this._model.onMultipaneSourcesCollectionChanged().unsubscribeAll(this),this._model.panesCollectionChanged().unsubscribeAll(this),this._maximized.destroy(),this._collapsingAvailable.destroy(),this._destroyed.fire()}id(){return this._id}mode(){return this._mode}bulkActionMacro(e){this.beginBulkAction(),e(),this.endBulkAction()}beginBulkAction(){this._bulkActions.activeCounter+=1}endBulkAction(){this._bulkActions.activeCounter-=1,this._processAfterBulkAction()}defaultPriceScale(){const e=this.m_mainDataSource?.priceScale()??null;if(null!==e)return e +;const t=this.properties().childs().axisProperties.state();return t.autoScale=!0,new mh(this._model.properties().childs().scalesProperties,t)}leftPriceScales(){return this._leftPriceScales}rightPriceScales(){return this._rightPriceScales}visibleLeftPriceScales(){const e=this._model.priceScaleSlotsCount(),t=this._leftPriceScales.filter((e=>e.isVisible().value())),i=this.mainDataSource()?.priceScale();if(t.length>e.left&&i?.isVisible().value()){const s=(0,Pt.moveToHead)(t,i);return s.splice(e.left),s}return t}visibleRightPriceScales(){const e=this._model.priceScaleSlotsCount(),t=this._rightPriceScales.filter((e=>e.isVisible().value())),i=this.mainDataSource()?.priceScale();if(t.length>e.right&&i?.isVisible().value()){const s=(0,Pt.moveToHead)(t,i);return s.splice(e.right),s}return t}clearSeries(e){const t=this._model.mainSeries();for(let i=this.m_dataSources.length-1;i>=0;i--)this.m_dataSources[i]===t&&this._removeSourceFromCollections(i,e)}sourcesByGroup(){return this._cachedOrderedSources}dataSourceForId(e){return this._sourcesById.get(e)||null}lineToolByLinkKey(e){return this._lineToolsByLinkKey.getByKey1(e)}changeSourceId(e,t){e===this._model.mainSeries()&&(0,Hc.getPersistentLogger)()?.addPersistentLogEntry(`changeSourceId for series from ${e.id()} to ${t}`,ne.LOGLEVEL.INFO,Lh),(0,n.assert)(this.hasDataSource(e));const i=e.id();e.setId(t),this._sourcesById.delete(i),this._sourcesById.set(t,e),(0,An.isPriceDataSource)(e)&&(this._priceSourcesById.delete(i),this._priceSourcesById.set(t,e))}movePriceScale(e,t,i){const s=this.priceScalePosition(e);if(s!==t)this.removePriceScale(e),this._placePriceScale(e,t,i),e.invalidateMargins(),this._invalidateSourcesCache();else if(void 0!==i&&"overlay"!==s){const t="left"===s?this._leftPriceScales:this._rightPriceScales,o=t.indexOf(e);t.splice(o,1),t.splice(i,0,e)}}mainDataSource(){return this.m_mainDataSource}isEmpty(){return null===this.m_mainDataSource}recalculatePriceScale(e,t){if(!e)return;let i=e.sourcesForAutoscale();if(e===this._model.mainSeries().priceScale()&&(i=[...i,...this._cachedOrderedSources.multipaneSources()]),(e.isAutoScale()||e.priceRangeShouldBeRecalculatedOnce()||null===e.priceRange())&&i.length>0&&!this.timeScale().isEmpty()){const i=e.priceRange(),s=this.timeScale().visibleBarsStrictRange();e.recalculatePriceRange(s),Qc.PriceRange.compare(i,e.priceRange())||e.updateAllViews(t)}}onSourceTagsChanged(){this._tagsChanged.fire()}insertDataSource(e,t,i,s){e.setZorder(i),t||(s=!1,t=this.findSuitableScale(e)),this._addSourceToCollections(e);let o=!1;e===this.model().mainSeries()?(this.m_mainDataSource=this.model().mainSeries(),o=!0):null===this.m_mainDataSource&&(0,An.isPriceDataSource)(e)&&(this.m_mainDataSource=e,o=!0),s||t.addDataSource(e,this._isInInsertManyDataSourcesState),e.setPriceScale(t),t.invalidateMargins(),e.onTagsChanged&&e.onTagsChanged().subscribe(this,this.onSourceTagsChanged),o&&this._mode===zi.PaneMode.Regular&&this._processMainSourceChange(),this._tagsChanged.fire(),(0,An.isPriceDataSource)(e)&&this.recalculatePriceScale(t,(0, +wi.sourceChangeEvent)(e.id())),this._invalidateSourcesCache()}addDataSource(e,t,i){let s=e.zorder();i||((0,zs.isLineTool)(e)&&!e.isSpeciallyZOrderedSource()?(s=null!==this._lastLineDataSourceZOrder?this._lastLineDataSourceZOrder+1:this.newLineToolZOrder(),this._isInInsertManyDataSourcesState&&(this._lastLineDataSourceZOrder=s)):(0,Ws.isStudy)(e)&&!e.isSpeciallyZOrderedSource()&&(s=this.newStudyZOrder())),this.insertDataSource(e,t,s)}removeDataSource(e,t=!1,i=!1,s=!1){let o=this.m_dataSources.indexOf(e);if(-1===o)return void Mh.logDebug("removeDataSource: invalid data source");this._removeSourceFromCollections(o,i),e!==this.m_mainDataSource||t||(this.m_mainDataSource=null);const n=e.priceScale();s||this.removeSourceFromPriceScale(e),e.onTagsChanged&&e.onTagsChanged().unsubscribe(this,this.onSourceTagsChanged),(0,An.isPriceDataSource)(e)&&!t&&this._processMainSourceChange(),(0,Ws.isStudy)(e)&&e.metaInfo().hasForceOverlayPlots()&&this._model.removeMultiPaneSource(e),this._tagsChanged.fire(),n&&(0,An.isPriceDataSource)(e)&&this.recalculatePriceScale(n,(0,wi.sourceChangeEvent)(e.id())),this._invalidateSourcesCache()}hasDataSource(e){return this._sourcesById.has(e.id())}hasDataSourceWithSignature(e){return this._priceDataSources.some((t=>t.signature().value()===e))}hasPriceDataSource(e){return this._priceSourcesById.has(e.id())}dataSources(){return this.m_dataSources}priceDataSources(){return this._priceDataSources}studySources(){return this._studySources}lollipopDataSources(){return this._lollipopDataSources}symbolSources(){return this._symbolSources}replaceSource(e,t,i){const s=this.m_mainDataSource===e,o=i?.replaceSource(e,t);this.removeDataSource(e,s,void 0,o),this.insertDataSource(t,i,e.zorder(),o),this._sourcesById.set(t.id(),t),(0,An.isPriceDataSource)(t)&&this._priceSourcesById.set(t.id(),t),s&&(this.m_mainDataSource=t,this._processMainSourceChange())}findSuitableScale(e,t,i){return this._priceScaleSelectionStrategy.findSuitableScale(this,e,t,i)}createNewPriceScaleIfPossible(){return this._priceScaleSelectionStrategy.createNewPriceScaleIfPossible(this)}canCreateNewPriceScale(){return this._priceScaleSelectionStrategy.canCreateNewPriceScale(this)}isOverlay(e){const t=e.priceScale();return null===t||"overlay"===this.priceScalePosition(t)}recalculate(e){this._leftPriceScales.forEach((t=>this.recalculatePriceScale(t,e))),this._rightPriceScales.forEach((t=>this.recalculatePriceScale(t,e)));for(const t of this.m_dataSources)this.isOverlay(t)&&!(0,zs.isLineTool)(t)&&this.recalculatePriceScale(t.priceScale(),e);this.updateAllViews(e),this._model.updatePane(this)}updateAllViews(e){const t=this._cachedOrderedSources.all();for(const i of t)i.updateAllViews(e);for(const t of this.model().customSources())t.updateViewsForPane(this,e)}updateLollipopViews(e){}priceScalePosition(e){return this._leftPriceScales.includes(e)?"left":this._rightPriceScales.includes(e)?"right":"overlay"}createPriceScaleAtPosition(e,t){const i=this.properties().childs().axisProperties.state();i.autoScale=!0 +;const s=new mh(this.model().properties().childs().scalesProperties,i);return s.setHeight(this.height()),Ah(s,this._defaultTopMargin(),this._defaultBottomMargin()),this._placePriceScale(s,e,t),s}removePriceScale(e){e.modeChanged().unsubscribeAll(this),e.priceRangeChanged().unsubscribeAll(this),e.internalHeightChanged().unsubscribeAll(this),e.isVisible().unsubscribe(this._onPriceScaleIsVisibleChanged),e.resetScaleAvailable().unsubscribe(this._updateResetPriceScalesAvailableValue),e===this._lockedPriceScale&&(this._lockedPriceScale=null,this._currentPriceScaleRatio=null);const t=this._leftPriceScales.indexOf(e);-1!==t&&(this._leftPriceScales[t].invalidateMargins(),this._leftPriceScales.splice(t,1));const i=this._rightPriceScales.indexOf(e);if(-1!==i&&(this._rightPriceScales[i].invalidateMargins(),this._rightPriceScales.splice(i,1)),null===e.mainSource()){const t=e.dataSources().length;0!==t&&Mh.logError("Invalid priceScale state: empty mainSource but non-empty data sources="+t)}this._onPriceScalesChanged.fire(),this._updateResetPriceScalesAvailableValue()}priceScaleIndex(e,t){switch(t){case"left":return this.leftPriceScales().indexOf(e);case"right":return this.rightPriceScales().indexOf(e)}}move(e,t,i){const s=e.priceScale();this.removeSourceFromPriceScale(e),t.addDataSource(e),e.setPriceScale(t),t.invalidateMargins(),this._processMainSourceChange(),this._invalidateSourcesCache(),e.isIncludedInAutoScale()&&(null!==s&&this.recalculatePriceScale(s,(0,wi.sourceChangeEvent)(e.id())),this.recalculatePriceScale(t,(0,wi.sourceChangeEvent)(e.id()))),this._onPriceScalesChanged.fire()}setZOrders(e){e.forEach(((e,t)=>{t.setZorder(e)})),this._invalidateSourcesCache(),this._onDataSourcesZOrdersChanged(),0===this._bulkActions.activeCounter&&this._dataSourcesCollectionChanged.fire(),this.model().fullUpdate()}isMainPane(){return this._isMainPane.readonly()}isLast(){const e=this.model().panes();return e[e.length-1]===this}newStudyZOrder(){return(0,_l.newStudyZOrder)(this._priceDataSources)}newLineToolZOrder(e){return(0,_l.newLineToolZOrder)(this.m_dataSources,e)}model(){return this._model}containsMainSeries(){return this._sourcesById.has(this.model().mainSeries().id())}applyPriceScaleRatio(e,t){null!==this._lockedPriceScale&&this._lockedPriceScale!==e||this._currentPriceScaleRatio===t||!this.isMainPane().value()||null===this._lockedPriceScale&&e!==this.mainDataSource()?.priceScale()||(this._setNewPriceRangeByScaleRatio(e,t,this._mainSourceVisiblePriceRange(e),!0,!0),null!==this._lockedPriceScale?this._tryToApplyNewPriceScaleRatio():e.isLog()||this.model().mainSeriesScaleRatioPropertyOnChanged())}sendToBack(e){const t=this.sourcesByGroup().allExceptSpecialSources();this._batchReorder(e,t[0],_l.moveBeforeSource)}bringToFront(e){const t=this.sourcesByGroup().allExceptSpecialSources();this._batchReorder(e,t[t.length-1],_l.moveAfterSource)}sendBackward(e){const t=this.sourcesByGroup().allIncludingHidden(),i=t.indexOf(e[0]);if(0===i)this.bringToFront(e);else{const s=t[i-1];this.insertBefore(e,s)}}bringForward(e){ +const t=this.sourcesByGroup().allExceptSpecialSources(),i=t.indexOf(e[e.length-1]);if(i===t.length-1)this.sendToBack(e);else{const s=t[i+1];this.insertAfter(e,s)}}insertAfter(e,t){this._batchReorder(e,t,_l.moveAfterSource)}insertBefore(e,t){this._batchReorder(e,t,_l.moveBeforeSource)}maximized(){return this._maximized}collapsed(){return this._collapsed}collapsingAvailable(){return this._collapsingAvailable}getPriceScaleById(e){const t=this.m_dataSources.find((t=>t.priceScale()?.id()===e));return void 0===t?null:t.priceScale()}priceScaleSelectionStrategy(){return this._priceScaleSelectionStrategy}setPriceScaleSelectionStrategy(e){this._priceScaleSelectionStrategy=e,e.apply(this)}findTargetPriceAxisViews(e,t,i,s){if((0,Po.isDataSource)(e)&&this.model().paneForSource(e)!==this)return[];const o=e.priceScale();if(t===o)return i;if(null===o)return[];if("overlay"===this.priceScalePosition(o))return t===this.defaultPriceScale()?i:[];const n=this.priceScalePosition(t);if(n!==this.priceScalePosition(o))return[];const r="left"===n?this.leftPriceScales():this.rightPriceScales();return r.indexOf(t)1}properties(){return this._properties}setPriceAutoScale(e,t){e.setMode({autoScale:t}),this.timeScale().isEmpty()||this.recalculatePriceScale(e,(0,wi.viewportChangeEvent)())}state(e){const{withData:t,skipLineToolsFromOtherSymbols:i,wipeSensitiveData:s,skipLineTools:o,skipNonSharedLineTools:n,skipHiddenSources:r,includeSources:a,isStudyTemplate:l}=e??{},c={sources:[],mainSourceId:this.m_mainDataSource?.id(),stretchFactor:this._stretchFactor,leftAxisesState:[],rightAxisesState:[],overlayPriceScales:{},priceScaleRatio:this._currentPriceScaleRatio,isCollapsed:this._collapsed.value(),isMaximized:this._maximized.value(),mode:this._mode},h=new Map,d=new Map,u=e=>{if(h.has(e))return h.get(e);let t=!1;if((0,Ws.isStudy)(e))t=!(e.isVisible()||e.hasChildren()&&e.getAllChildren().some((e=>e.isVisible())));else if((0,zs.isLineTool)(e))if(e.isVisible()){const i=e.ownerSource();t=!!i&&u(i)}else t=!0;return h.set(e,t),t},_=e=>{if(d.has(e))return d.get(e);let a=null;const c=l&&!e.isSavedInStudyTemplates()||!e.state||(0,zs.isLineTool)(e)&&o||r&&u(e)||!e.isSavedInChart(Boolean(t))||!(a=e.state(t,s))||i&&(0,zs.isLineTool)(e)&&e.isActualSymbol&&!e.isActualSymbol()||n&&(0,zs.isLineTool)(e)&&0===e.sharingMode().value()||e.isPhantom()?null:a;return d.set(e,c),c};if(a){c.sources=[];for(let e=0;enull!==d.get(e),m=e=>!o||!(0,zs.isLineTool)(e);c.leftAxisesState=this._leftPriceScales.map((e=>({state:e.state(),sources:e.dataSources().filter(p).filter(m).map((e=>e.id()))}))),c.rightAxisesState=this._rightPriceScales.map((e=>({state:e.state(),sources:e.dataSources().filter(p).filter(m).map((e=>e.id()))}))),c.overlayPriceScales={};for(const e of this.m_dataSources)if(this.isOverlay(e)&&e.isSavedInChart(Boolean(t))){ +const t=e.priceScale();c.overlayPriceScales[e.id()]=t?.state()??null}return c}restoreState(e){const{state:t,withData:i,version:s,seriesId:o=this._model.mainSeries().id(),settingsMigration:r={},contentOverrides:a,restoreSilently:l,reason:c=0}=e;(0,Hc.getPersistentLogger)()?.addPersistentLogEntry(`Restoring pane with seriesId ${o}`,ne.LOGLEVEL.INFO,Lh),this._mode=t.mode??zi.PaneMode.Regular,t.stretchFactor&&(this._stretchFactor=t.stretchFactor);const d={};if(t.sources){const e=t.sources.filter((e=>!!e&&("MainSeries"===e.type||(!e.points?.some((e=>null===e.time_t||!isFinite(e.time_t)))||(Mh.logNormal("Dropped invalid "+e.type+". Reason: non-numeric point time"),!1))))),n=e.findIndex(wt.isMainSeriesState);-1!==n&&this.model().mainSeries().setObsoleteZOrder(e[n].zorder),s<3&&(0,_l.reorderDataSourcesStateZOrder)(e);const h=-1!==this.m_dataSources.indexOf(this._model.mainSeries());this.clearSeries(Boolean(l)),this.m_mainDataSource=null,h&&this._addSourceToCollections(this._model.mainSeries(),l),(()=>{const i=e.find((e=>e.id===t.mainSourceId));if(void 0===i)return void Mh.logWarn("There is no main source with id "+t.mainSourceId+", total sources="+e.length);if(!window.TradingView[i.type]||!(0,Lt.isLineToolName)(i.type))return void Mh.logNormal("The type of main source is not line tool - fix is unnecessary");let s=null;for(const t of e)if(!window.TradingView[i.type]||!(0,Lt.isLineToolName)(t.type)){if(null!==s)return void Mh.logWarn("Pane contains more than 1 possibly main sources - auto fix cannot be applied");s=t}if(null===s)return void Mh.logWarn("Pane contains only line tools - possible we need to remove this pane?");const o=t.mainSourceId;let n=0;t.mainSourceId=s.id,e.forEach((e=>{e.ownerSource===o&&(e.ownerSource=s?.id,n+=1)})),Mh.logNormal("Auto fix broken pane is applied, changed line tools="+n+", changed from="+o+" to="+s.id)})();for(const t of e)if("study_Sessions"===t.type){const e=t;e.oldState=!0,this.model().sessions().restoreState(e,i);break}for(const t of e)"study_Sessions"!==t.type&&(null===this._model.dataSourceForId(t.id)||"MainSeries"===t.type?(d[t.id]=t.ownerSource,(0,wt.isMainSeriesState)(t)?this._restoreMainSeries(t,i,h,r,a,l):(0,wt.isStudyState)(t)?this.restoreStudy(t,i,o,r,l,c):(0,wt.isLineToolState)(t)&&(t.state&&(t.state.zOrderVersion=2),this.restoreLineTool({state:t,withData:i,restoreSilently:l}))):Mh.logError("Duplicate id while restoring pane: "+t.type+","+t.id))}const u=new Set,_=(e,t)=>{e.priceScale()!==t&&(this.removeSourceFromPriceScale(e),e.setPriceScale(t),t.addDataSource(e))},p=(e,i,s)=>{if(u.has(e))return;u.add(e);const o=s.m_showSymbolLabels;void 0!==o&&e===this.model().mainSeries()&&this.model().properties().childs().scalesProperties.childs().showSymbolLabels.setValue(o),this._model.children(e,!0,!0).forEach((e=>{t.overlayPriceScales?.[e.id()]||p(e,i,s)})),_(e,i)},m=e=>{const t=(0,h.defaults)("chartproperties").paneProperties.axisProperties,i=new mh(this.model().properties().childs().scalesProperties,t);return i.restoreState(e.state),i.setHeight(this._height),e.sources.forEach((e=>{ +const s=this.dataSourceForId(e);s&&p(s,i,t)})),0===i.dataSources().length?null:i},g=e=>e.map(m).filter((e=>null!==e));let f;if(t.leftAxisesState)f=g(t.leftAxisesState);else{const e=m({state:t.leftAxisState,sources:t.leftAxisSources});f=null!==e?[e]:[]}let y;if(this._leftPriceScales.slice().forEach((e=>this.removePriceScale(e))),this._leftPriceScales=[],f.forEach((e=>this._placePriceScale(e,"left"))),t.rightAxisesState)y=g(t.rightAxisesState);else{const e=m({state:t.rightAxisState,sources:t.rightAxisSources});y=null!==e?[e]:[]}this._rightPriceScales.slice().forEach((e=>this.removePriceScale(e))),this._rightPriceScales=[],y.forEach((e=>this._placePriceScale(e,"right"))),this._currentPriceScaleRatio=t.priceScaleRatio||t.leftPriceScaleRatio||t.rightPriceScaleRatio||null;const v=new Map;for(const e of this.m_dataSources){if(u.has(e))continue;let i;if(t.overlayPriceScales&&t.overlayPriceScales[e.id()]){let s=t.overlayPriceScales[e.id()];v.has(s?.id)?i=v.get(s?.id):(s=(0,n.ensure)(s),i=new mh(this._model.properties().childs().scalesProperties),i.setHeight(this._height),s.m_isAutoScale=!0,s.m_isLog=!1,s.m_isPercentage=!1,s.m_isLockScale=!1,i.restoreState(s),v.set(s.id,i))}else i=new mh(this._model.properties().childs().scalesProperties),i.setHeight(this._height);_(e,i)}for(const e of Object.keys(d)){const t=d[e],i=this.dataSourceForId(e);t&&i&&null===i.ownerSource()&&i.setOwnerSource(this.dataSourceForId(t))}if(t.mainSourceId&&!this.containsMainSeries()&&(this.m_mainDataSource=this.dataSourceForId(t.mainSourceId)),!this.m_mainDataSource)for(const e of this.m_dataSources)if((0,An.isPriceDataSource)(e)){this.m_mainDataSource=e;break}for(const e of this.m_dataSources)(0,zs.isLineTool)(e)?(e.ownerSource()||e.setOwnerSource(this.mainDataSource()),e.isFixed()&&e.restoreFixedPoint()):(0,Ws.isStudy)(e)&&!e.ownerSource()&&e.isLinkedToSeries()&&e.setOwnerSource(this.model().mainSeries());this._collapsed.setValue(t.isCollapsed??!1),t.isMaximized&&this._model.setMaximizedPane(this),this._updateMargins(),this._cachedOrderedSources.clear()}onPriceScalesChanged(){return this._onPriceScalesChanged}setPaneSize(e){let t;switch(e){case"large":t=1;break;case"medium":t=.6;break;case"small":t=.3;break;case"tiny":t=.15;break;default:throw new Error("Unknown size enum value: "+e)}this._stretchFactor=1e3*t}stretchFactor(){return this._stretchFactor}setStretchFactor(e){this._stretchFactor=e}customSources(e){return this.model().customSources(e)}createDrawingsCaches(){Gc.ExecutionsPositionController.recreateOrderedByBarsSourcesCache(this)}clearDrawingCaches(){Gc.ExecutionsPositionController.clearOrderedByBarsSourcesCache()}executionsPositionController(){return this._executionsPositionController||(this._executionsPositionController=new Gc.ExecutionsPositionController(this)),this._executionsPositionController}width(){return this._width}height(){return this._height}setHeight(e){if(this._height!==e&&(this._height=e,this._mode===zi.PaneMode.Regular)){this._leftPriceScales.forEach((t=>t.setHeight(e))),this._rightPriceScales.forEach((t=>t.setHeight(e))) +;for(let t=0;t(e.paneViews(this)||[]).some((e=>{const s=e.renderer(t);return s&&s.doesIntersectWithBox&&s.doesIntersectWithBox(i,t)}))))}logicalRectToPixels(e){const t=this.defaultPriceScale(),i=this.timeScale(),s=(0,n.ensureNotNull)((0,n.ensureNotNull)(t.mainSource()).firstValue()),o=t.priceToCoordinate(e.p1.price,s),r=i.indexToCoordinate(e.p1.index),a=t.priceToCoordinate(e.p2.price,s),l=i.indexToCoordinate(e.p2.index),c=new Vt.Point(Math.min(r,l),Math.min(o,a)),h=new Vt.Point(Math.max(r,l),Math.max(o,a));return(0,Vt.box)(c,h)}timeScale(){return this._timeScale}restoreLineTool(e){const{withData:t,restoreSilently:i,actionSource:s,ownerSource:o}=e;let{keepZOrder:r,state:a}=e;if((0,Lt.isMtpPredictorToolName)(a.type))return Mh.logWarn(`No longer supported tool ${a.type} is skipped while restoring state`),null;const l=o??(a.ownerSource?this._model.dataSourceForId(a.ownerSource):null);delete a.state.lastUpdateTime,a.state.intervalsVisibilities=(0,bh.mergeIntervalVisibilitiesDefaults)(a.state.intervalsVisibilities),r=void 0===r||r,Sh.LineToolElliott.migrateState(a),function(e){"LineToolGannComplex"!==e.type||void 0!==e.version&&1!==e.version||(e.type="LineToolGannFixed")}(a),Array.isArray(a.positionPercents)&&(a.positionPercents=a.positionPercents[0]);const c=a.type,h=a.id,d=a.state,u=r?a.zorder:this.newLineToolZOrder();(0,n.assert)((0,Lt.isLineToolName)(c),"invalid data source type:"+c+" (expected to be a Line Tool)");let _,p,m=null;if((0,wt.isStudyLineToolState)(a)){m=this._model.isSnapshot()?new Ch.StudyVersioning([],[]):(0,os.studyMetaInfoRepository)().studyVersioning();const e=Ch.StudyVersioning.patchPointsBasedStudyState(a);a=e;const t=new ns.StudyMetaInfo(e.metaInfo);0;const i=m.updateMetaInfo(t)??t;p=(0,zs.createStudyLineToolProperties)(this._model.backgroundTheme().spawnOwnership(),c,t,i,d,m),_=(0,zs.createLineTool)(c,this._model,p,i,!0,void 0,s)}else p=(0, +zs.createLineToolProperties)(this._model.backgroundTheme().spawnOwnership(),c,!this._model.readOnly(),d),_=(0,zs.createLineTool)(c,this._model,p,null,!0,void 0,s);_.setId(h),_.linkKey().setValue(a.linkKey||null);a.alertId&&_.canHasAlert();let g=a.indexes??[];if(g=g.slice(0,a.points?.length??g.length),_.isFixed()?void 0!==a.positionPercents?_.restorePositionPercents(a.positionPercents):_.restorePositionPercents({x:.5,y:.5}):a.points&&_.restorePoints(a.points,g,t),(0,zs.isLineTool)(_)&&["LineToolBarsPattern","LineToolCallout","LineToolTrendAngle","LineToolGhostFeed","LineToolParallelChannel"].includes(_.toolname))_.restoreData?.(a);else if(t&&(0,wt.isStudyLineToolState)(a)&&_.restoreData){const e=a;m&&(e.graphics=Ch.StudyVersioning.patchPointsBasedStudyData(new ns.StudyMetaInfo(e.metaInfo),e.graphics)),_.restoreData?.(e)}const f=null==a.version?1:a.version,y=null==_.version?1:_.version;return f!==y&&_.migrateVersion?.(f,y,{pane:this,model:this._model,properties:p}),void 0!==u&&_.setZorder(u),o&&(0,zs.prepareLineToolPropertiesByOwnerSource)(p,o),_.setOwnerSource(l),_.isFixed()&&_.restoreFixedPoint(),void 0!==a.userEditEnabled&&_.setUserEditEnabled(a.userEditEnabled),void 0!==a.isSelectionEnabled&&_.setSelectionEnabled(a.isSelectionEnabled),this._addSourceToCollections(_,i),this._cachedOrderedSources.clear(),_}restoreStudy(e,t,s,o,n,r){if(t&&void 0===e.data&&void 0===e.nonSeriesData&&void 0===e.indexes)return Mh.logError("Cannot restore (skipping) study without data "+e.id+", "+e.metaInfo.id),null;const l=e.id,c=e.state,h=e.zorder;s=s??this._model.mainSeries().id();const d=(e.parentSources??(e.ownerSource?[e.ownerSource]:[])).filter((e=>e!==s)),u=new ns.StudyMetaInfo(e.metaInfo),_=e.metaInfoPatch?(0,Qe.default)((0,Al.default)(e.metaInfo),e.metaInfoPatch):e.metaInfo;let p=new ns.StudyMetaInfo(_);if(function(e){return"Script$TV_EARNINGS@tv-scripting"===e||"Script$TV_DIVIDENDS@tv-scripting"===e||"Script$TV_SPLITS@tv-scripting"===e||"ESD$TV_EARNINGS@tv-scripting"===e||"ESD$TV_DIVIDENDS@tv-scripting"===e||"ESD$TV_SPLITS@tv-scripting"===e||"Earnings@tv-basicstudies"===e||"Dividends@tv-basicstudies"===e||"Splits@tv-basicstudies"===e||"BarSetContinuousRollDates@tv-corestudies"===e}(p.id)&&!t)return Mh.logNormal("Skipping study "+p.id),null;let m=c;const g=new Zr.StudyStub(this._model,e,p.shortDescription??p.name);g.setId(l),g.setZorder(h);const f=vh.instance(this._model);f.get(l);let y=!1;const v=(i,s,o)=>{if(y&&this._model.dataSourceForId(l)!==g)return;g.setStatus({type:gh.StudyStatusType.Undefined});const n=async n=>{const a=(0,Zl.prepareStudyPropertiesForLoadChart)(p,i,m,o),c=i??p,h=s??u,d=!t&&c.isTVScript&&e.metaInfo.isTVScript&&c._serverMetaInfoVersion!==e.metaInfo._serverMetaInfoVersion,_=await(0,Ws.createStudy)(this._model,a,n,c,h,void 0,r,d);if(_.setId(l),_.setOwnFirstValue(e.ownFirstValue??null),e.customFields&&_.restoreStateCustomFields(e.customFields),t){const t=e,{data:i,nsData:s,indexes:o}=Ch.StudyVersioning.patchStudyData(p,t.data,t.nonSeriesData,t.indexes);_.restoreData(i,s,o)}this._model.replaceStudyStub(g,_), +f.add(l,_)};if(d.length>0){const e=d.map((e=>f.get(e)));Promise.all(e).then(n)}else n([])},S=(0,Al.default)(c);let b;if(t){const e=Ch.StudyVersioning.patchPropsStateAndMetaInfo(c,p,{oldShowStudyLastValueProperty:!o?.showStudyLastValueProperty}),t=Ch.StudyVersioning.patchPropsStateAndMetaInfo(S,u,{oldShowStudyLastValueProperty:!o?.showStudyLastValueProperty});b=[Promise.resolve(new ns.StudyMetaInfo(e.metaInfo)),Promise.resolve(new ns.StudyMetaInfo(t.metaInfo))]}else{const e=(0,os.studyMetaInfoRepository)().requestMetaInfo();b=[p,u].map(((i,s)=>e.then((()=>{const e=Ch.StudyVersioning.patchPropsStateAndMetaInfo(0===s?c:S,i,{oldShowStudyLastValueProperty:t&&!o?.showStudyLastValueProperty});return m=e.propsState,new ns.StudyMetaInfo(e.metaInfo)}))))}Promise.all(b).then((([e,t])=>{const s=this._model.isSnapshot()?new Ch.StudyVersioning([],[]):(0,os.studyMetaInfoRepository)().studyVersioning();if(this._model.isSnapshot())return void v(e,t,s);const o=[e,t].map(((e,t)=>s.updateMetaInfoAsync(e,1===t))).map((e=>e.sync?Promise.resolve(e.result):e.result));Promise.all(o).then((i=>v(i[0]??e,i[1]??t,s))).catch((e=>{"To use it, ask the author to publish the script."===e?g.setFailed(e,a.t(null,void 0,i(33599))):g.setFailed("error: "+e)}))})).catch((()=>g.setFailed(a.t(null,void 0,i(63183))))),g.setZorder(h);const w=e.metaInfo.linkedToSeries?this._model.mainSeries():d.length?this.dataSourceForId(d[0]):null;return g.setOwnerSource(w),this._addSourceToCollections(g,n),y=!0,this._processMainSourceChange(),this._cachedOrderedSources.clear(),g}clipboardLineToolOwnerSource(e){const t=this.dataSourceForId(e);if(null!==t){const e=t.ownerSource();if(null!==e&&null!==e.firstValue())return e}const i=this.mainDataSource();if(null!==i&&null!==i.firstValue())return i;for(const e of this.dataSources())if((0,An.isPriceDataSource)(e)&&null!==e.firstValue())return e;return null}realignLineTools(e){let t=!1;for(const i of this.m_dataSources)!(0,zs.isLineTool)(i)||void 0!==e&&i?.ownerSource()?.symbolSource()!==e&&(0,Lr.isActingAsSymbolSource)(e)||(i.realign(),i.updateAllViews((0,wi.sourceChangeEvent)(i.id())),t=!0);return t&&this._invalidateSourcesCache(),t}startScalePrice(e,t){e.startScale(t)}scalePriceTo(e,t){e.scaleTo(t),this.updateAllViews((0,wi.viewportChangeEvent)())}endScalePrice(e){e.endScale()}startScrollPrice(e,t){e.startScroll(t)}scrollPriceTo(e,t){e.scrollTo(t),this.updateAllViews((0,wi.viewportChangeEvent)())}endScrollPrice(e){e.endScroll()}resetPriceScale(e){const t=this.timeScale().visibleBarsStrictRange();e.resetScaleAvailable().value()&&e.resetScale(),e.recalculatePriceRange(t),this.updateAllViews((0,wi.viewportChangeEvent)())}resetPriceScalesAvailable(){return this._resetPriceScalesAvailable.readonly()}restorePriceScaleState(e,t){e.restoreState(t),this.updateAllViews((0,wi.viewportChangeEvent)())}beginInsertManyLineDataSources(){this._isInInsertManyDataSourcesState=!0,this._lastLineDataSourceZOrder=null}endInsertManyLineDataSources(){this._isInInsertManyDataSourcesState=!1,this._lastLineDataSourceZOrder=null} +removeSourceFromPriceScale(e){const t=e.priceScale();if(null!==t){const i=t.dataSources();i.indexOf(e)>=0&&t.removeDataSource(e),0===i.length&&this.removePriceScale(t)}}_invalidateSourcesCache(){this._cachedOrderedSources.clear(),this._leftPriceScales.forEach((e=>e.invalidateSourcesCache())),this._rightPriceScales.forEach((e=>e.invalidateSourcesCache()))}_processMainSourceChange(){let e=!1;if(null===this.m_mainDataSource)for(const t of this.m_dataSources)if((0,An.isPriceDataSource)(t)&&!this.isOverlay(t)&&(!(0,Ws.isStudy)(t)||!t.isLinkedToSeries())){this.m_mainDataSource=t,e=!0;break}if(this.m_mainDataSource&&e){let e=this.m_dataSources.filter(zs.isLineTool);e=(0,vi.sortSources)(e);for(const t of e)this.move(t,(0,n.ensureNotNull)(this.m_mainDataSource.priceScale()),!0)}else if(!this.m_mainDataSource||this.isOverlay(this.m_mainDataSource)&&0===this._nonOverlayPricesSourcesCount()){let e=null;if(this.m_dataSources.includes(this._model.mainSeries()))e=this._model.mainSeries();else for(const t of this.m_dataSources)if((0,An.isPriceDataSource)(t)&&this.isOverlay(t)&&t.showInObjectTree()){e=t;break}if(null!==e){const t=this.m_mainDataSource===e;this.m_mainDataSource=e;const i=this.createNewPriceScaleIfPossible();if(t&&e===this._model.mainSeries()){const t=(0,n.ensureNotNull)(e.priceScale());this._model.children(e,!0,!0).forEach((e=>{this.removeSourceFromPriceScale(e),i.addDataSource(e),e.setPriceScale(i)})),this.removePriceScale(t)}this.move(e,i,!0),this.recalculatePriceScale(e.priceScale(),(0,wi.globalChangeEvent)())}}}_addSourceToCollections(e,t){this.m_dataSources.push(e),this._sourcesById.set(e.id(),e),this._invalidateSourcesCache();const i=()=>{this._sourcePropertiesChanged.fire(e)};if(e.properties().subscribe(this,i),e.zOrderChanged().subscribe(this,(t=>this._sourcesZOrderChanged.fire(e,t))),(0,zs.isLineTool)(e)){e.normalizedPointsChanged().subscribe(this,i),e.fixedPointChanged().subscribe(this,i),e.onIsActualSymbolChange().subscribe(this,(()=>this._invalidateSourcesCache())),e.hasAlert().subscribe(i),e.sharingMode().subscribe(i);const t=()=>{this._lineToolsByLinkKey.removeByKey2(e.id()),this._lineToolsByLinkKey.add(e)};e.linkKey().subscribe(t),this._sourceWatchedValuesSubscriptions.set(e.id(),{linkKeyCallback:t,commonCallback:i}),this._lineToolsByLinkKey.add(e)}const s=(0,Lr.isSymbolSource)(e)?e:null;(0,An.isPriceDataSource)(e)&&(this._priceSourcesById.set(e.id(),e),e.currencyChanged().subscribe(this,(()=>this._invalidateSourcesCache())),e.unitChanged().subscribe(this,(()=>this._invalidateSourcesCache())),this._priceDataSources.push(e),(0,Ws.isStudy)(e)&&this._studySources.push(e),this._onPriceSourcesCollectionChanged(),null!==s&&(this._symbolSources.push(s),s.symbolResolved().subscribe(this,(()=>this._symbolSourceResolved.fire(e))),s.symbolResolvingActive().subscribe(this._recalcSymbolSourceResolvingActive),s.symbolHibernated().subscribe(this._onSymbolSourceCollectionChanged),this._recalcSymbolSourceResolvingActive(),this._onSymbolSourceCollectionChanged(), +s===this._model.mainSeries()&&this._isMainPane.setValue(!0))),e.isMultiPaneAvailable()&&this.model().addMultiPaneSource(e),t||0!==this._bulkActions.activeCounter||this._dataSourcesCollectionChanged.fire()}_removeSourceFromCollections(e,t){const i=this.m_dataSources[e],s=i.id();if(i.properties().unsubscribeAll(this),i.zOrderChanged().unsubscribeAll(this),this.m_dataSources.splice(e,1),this._sourcesById.delete(i.id()),(0,zs.isLineTool)(i)){if(i.normalizedPointsChanged().unsubscribeAll(this),i.fixedPointChanged().unsubscribeAll(this),i.onIsActualSymbolChange().unsubscribeAll(this),this._sourceWatchedValuesSubscriptions.has(s)){const e=this._sourceWatchedValuesSubscriptions.get(s);e&&(i.hasAlert().unsubscribe(e.commonCallback),i.linkKey().unsubscribe(e.linkKeyCallback)),this._sourceWatchedValuesSubscriptions.delete(s)}this._lineToolsByLinkKey.removeByKey2(i.id())}this._invalidateSourcesCache();const o=(0,Lr.isSymbolSource)(i)?i:null;(0,An.isPriceDataSource)(i)&&(this._priceSourcesById.delete(i.id()),i.currencyChanged().unsubscribeAll(this),i.unitChanged().unsubscribeAll(this),(0,Pt.removeItemFromArray)(this._priceDataSources,i),(0,Ws.isStudy)(i)&&(0,Pt.removeItemFromArray)(this._studySources,i),this._onPriceSourcesCollectionChanged(),null!==o&&((0,Pt.removeItemFromArray)(this._symbolSources,o),o.symbolResolved().unsubscribeAll(this),o.symbolResolvingActive().unsubscribe(this._recalcSymbolSourceResolvingActive),o.symbolHibernated().unsubscribe(this._onSymbolSourceCollectionChanged),this._recalcSymbolSourceResolvingActive(),this._onSymbolSourceCollectionChanged(),o===this._model.mainSeries()&&this._isMainPane.setValue(!1))),i.isMultiPaneAvailable()&&this.model().removeMultiPaneSource(i),t||0!==this._bulkActions.activeCounter||this._dataSourcesCollectionChanged.fire()}_recalculatePriceScaleByScaleRatio(e){this.isMainPane().value()&&e===this._lockedPriceScale&&(null!==this._currentPriceScaleRatio?this._applyOldScaleRatioToPriceScale():this._tryToApplyNewPriceScaleRatio())}_defaultBottomMargin(){return.01*this.properties().childs().bottomMargin.value()}_defaultTopMargin(){return.01*this.properties().childs().topMargin.value()}_updateMargins(){const e=this._defaultTopMargin(),t=this._defaultBottomMargin();for(const i of this._leftPriceScales)Ah(i,e,t);for(const i of this._rightPriceScales)Ah(i,e,t);for(const i of this.m_dataSources)if(this.isOverlay(i)){const s=i.priceScale();null!==s&&(Ah(s,e,t),this.recalculatePriceScale(s,(0,wi.viewportChangeEvent)()))}for(const e of this._leftPriceScales)this.recalculatePriceScale(e,(0,wi.viewportChangeEvent)());for(const e of this._rightPriceScales)this.recalculatePriceScale(e,(0,wi.viewportChangeEvent)());this.updateAllViews((0,wi.viewportChangeEvent)())}_batchReorder(e,t,i){i(this.sourcesByGroup().allExceptSpecialSources(),e,t),this._invalidateSourcesCache(),this._dataSourcesCollectionChanged.fire(),this._onDataSourcesZOrdersChanged(),this.model().fullUpdate()}_placePriceScale(e,t,i){if("overlay"===t)return void e.invalidateMargins() +;const s="left"===t?this._leftPriceScales:this._rightPriceScales,o=void 0===i?s.length:i;s.splice(o,0,e),e.modeChanged().subscribe(this,this._onPriceScaleModeChanged.bind(this,e)),e.internalHeightChanged().subscribe(this,this._recalculatePriceScaleByScaleRatio.bind(this,e)),e.priceRangeChanged().subscribe(this,this._recalculateTimeScaleByScaleRatio.bind(this,e)),e.priceRangeChanged().subscribe(this,this._onPriceScaleSetMinMaxPriceRange.bind(this,e)),e.isVisible().subscribe(this._onPriceScaleIsVisibleChanged),e.resetScaleAvailable().subscribe(this._updateResetPriceScalesAvailableValue),e.isLockScale()&&((0,n.assert)(null===this._lockedPriceScale),this._lockedPriceScale=e,this._currentPriceScaleRatio=null),e.invalidateMargins(),this._onPriceScalesChanged.fire(),this._updateResetPriceScalesAvailableValue()}_onPriceScaleModeChanged(e,t,i){if(i.lockScale&&(this._lockedPriceScale!==e&&null!==this._lockedPriceScale&&this._lockedPriceScale.setMode({lockScale:!1}),this._lockedPriceScale=e,this._currentPriceScaleRatio=(0,Wl.scaleRatio)(this.timeScale(),e)),t.lockScale&&!i.lockScale&&(this._lockedPriceScale=null,this._currentPriceScaleRatio=null),t.percentage===i.percentage&&t.indexedTo100===i.indexedTo100)return;const s=this.timeScale().visibleBarsStrictRange();null!==s&&(e.recalculatePriceRange(s),e.updateAllViews((0,wi.viewportChangeEvent)()))}_applyOldScaleRatioToPriceScale(){this._isRecalculatingScales||null===this._currentPriceScaleRatio||null===this._lockedPriceScale||(this._isRecalculatingScales=!0,this._setNewPriceRangeByScaleRatio(this._lockedPriceScale,this._currentPriceScaleRatio,this._mainSourceVisiblePriceRange(this._lockedPriceScale)),this._isRecalculatingScales=!1)}_setNewPriceRangeByScaleRatio(e,t,i,s,o){const n=(0,Wl.priceRangeByScaleRatio)(e,this.timeScale().barSpacing(),t);e.setPriceRange(null!==n?n:i,s,o)}_applyOldScaleRatioToTimeScale(){this._isRecalculatingScales||null===this._currentPriceScaleRatio||(this._isRecalculatingScales=!0,this._setNewBarSpacingByScaleRatio(),this._isRecalculatingScales=!1)}_tryToApplyNewPriceScaleRatio(){const e=(0,n.ensureNotNull)(this._lockedPriceScale),t=(0,Wl.scaleRatio)(this.timeScale(),e);this._currentPriceScaleRatio===t||e.isLog()||(this._currentPriceScaleRatio=t,this.model().mainSeriesScaleRatioPropertyOnChanged())}_recalculateTimeScaleByScaleRatio(e){e===this._lockedPriceScale&&(null!==this._currentPriceScaleRatio?this._applyOldScaleRatioToTimeScale():this._tryToApplyNewPriceScaleRatio())}_setNewBarSpacingByScaleRatio(){const e=this.timeScale().getValidBarSpacing((0,Wl.barSpacingByScaleRatio)((0,n.ensureNotNull)(this._lockedPriceScale),this._currentPriceScaleRatio));this.timeScale().isValidBarSpacing(e)&&this.timeScale().setBarSpacing(e)}_mainSourceVisiblePriceRange(e){const t=this.timeScale().visibleBarsStrictRange();return null!==t?(0,n.ensureNotNull)((0,n.ensureNotNull)(e.mainSource()).priceRange(t.firstBar(),t.lastBar(),{targetPriceScale:e,scaleSeriesOnly:e.isScaleSeriesOnly()})):new Qc.PriceRange(-.5,.5)}_setMinMaxPriceRange(){const e=(0, +n.ensureNotNull)(this._lockedPriceScale),t=(0,Wl.priceRangeByScaleRatio)(e,this.timeScale().maxBarSpacing(),this._currentPriceScaleRatio),i=(0,Wl.priceRangeByScaleRatio)(e,this.timeScale().minBarSpacing(),this._currentPriceScaleRatio);null!==t&&e.setMaxPriceRange(t),null!==i&&e.setMinPriceRange(i)}_onPriceScaleSetMinMaxPriceRange(e){e===this._lockedPriceScale&&this._setMinMaxPriceRange()}_onDataSourcesZOrdersChanged(){0===this._bulkActions.activeCounter?this._dataSourcesZOrdersChanged.fire():this._bulkActions.dataSourcesZOrdersChanged=!0}_onPriceSourcesCollectionChanged(){0===this._bulkActions.activeCounter?this._priceSourcesCollectionChanged.fire():this._bulkActions.priceSourcesCollectionChanged=!0}_nonOverlayPricesSourcesCount(){return this.m_dataSources.filter((e=>(!(0,Ws.isStudy)(e)||!e.isLinkedToSeries())&&((0,An.isPriceDataSource)(e)&&e.showInObjectTree()&&!this.isOverlay(e)))).length}_restoreMainSeries(e,t,i,s,o,r){const a=e.id,l=e.state;if(l&&o&&(l.style=o.style??l.style,l.interval=o.interval||l.interval,o.symbol&&o.symbol!==l.symbol&&(l.symbol=o.symbol,delete l.currencyId,delete l.unitId)),l&&["candleStyle","hollowCandleStyle","haStyle"].forEach((e=>{l[e]&&(l[e].wickUpColor=l[e].wickUpColor||l[e].wickColor,l[e].wickDownColor=l[e].wickDownColor||l[e].wickColor)})),l&&(l.statusViewStyle=l.statusViewStyle||{},!l.statusViewStyle.symbolTextSource)){const e=!!l.statusViewStyle.showSymbolAsDescription;l.statusViewStyle.symbolTextSource=e?"ticker":"description"}if(l){l.extendedHours?l.sessionId="extended":l.sessionId||(l.sessionId="regular"),delete l.extendedHours,(0,wh.allChartStyles)().includes(l.style)||(l.style=2);const e=l.lineStyle.styleType;let t;delete l.lineStyle.styleType,0===e&&(t=14,l.lineWithMarkersStyle=(0,tt.clone)(l.lineStyle)),1===e&&(t=15,l.steplineStyle=(0,tt.clone)(l.lineStyle)),void 0!==t&&2===l.style&&(l.style=t)}if(l)for(const e of["lineStyle","lineWithMarkersStyle","steplineStyle"])Ph(l[e]);if(!i){const e=this._model.mainSeries();(0,n.ensureNotNull)(this._model.mainPane()).removeDataSource(e,!1,r),this._addSourceToCollections(e,r)}const c=this.model().mainSeries(),h=c.properties().childs();this.m_mainDataSource=c;const d=l&&l.style?l.style:void 0;6===d&&"ATR"===h.pnfStyle.childs().inputs.childs().style.value()?h.pnfStyle.childs().inputs.childs().style.setValueSilently("Traditional"):4===d&&"ATR"===h.renkoStyle.childs().inputs.childs().style.value()&&h.renkoStyle.childs().inputs.childs().style.setValueSilently("Traditional"),l&&!l.hasOwnProperty("showSessions")&&(l.showSessions=!1),l&&void 0===l.settlementAsClose&&(l.settlementAsClose=!1),l&&t&&(l.showCountdown=!1),l&&(t&&!("showSeriesLastValueProperty"in s)&&"showLastValue"in l&&this._model.properties().childs().scalesProperties.childs().showSeriesLastValue.setValue(l.showLastValue),delete l.showLastValue),l&&this._restoreMainSeriesStudyInputs(e,c.styleStudyInfos());const u=c.sessionId();(0,Hc.getPersistentLogger)()?.addPersistentLogEntry(`Restore series. source.id: ${e.id} id: ${a}`,ne.LOGLEVEL.INFO,Lh),c.restoreState(e,t), +this.changeSourceId(c,a),(0,Hc.getPersistentLogger)()?.addPersistentLogEntry(`Series has been successfully restored. id: ${c.id()}`,ne.LOGLEVEL.INFO,Lh),c.sessionId()!==u&&h.sessionId.fireChanged()}async _restoreMainSeriesStudyInputs(e,t){await(0,os.studyMetaInfoRepository)().requestMetaInfo();const i=(0,os.studyMetaInfoRepository)().studyVersioning(),s={haStyle:(0,xt.chartStyleStudyId)(8,!0),renkoStyle:(0,xt.chartStyleStudyId)(4,!0),pbStyle:(0,xt.chartStyleStudyId)(7,!0),kagiStyle:(0,xt.chartStyleStudyId)(5,!0),pnfStyle:(0,xt.chartStyleStudyId)(6,!0),rangeStyle:(0,xt.chartStyleStudyId)(11,!0),volFootprintStyle:(0,xt.chartStyleStudyId)(17,!0),tpoStyle:(0,xt.chartStyleStudyId)(18,!0),svpStyle:(0,xt.chartStyleStudyId)(20,!0)},o={},r=(0,n.ensureDefined)(e.state);for(const[n]of Object.entries(bt.SYMBOL_STRING_DATA)){const a=`${bt.STYLE_SHORT_NAMES[n]}Style`,l=r[a]?.inputs;if(null==l)continue;const c=a in e?e[a].studyId:s[a],h=ns.StudyMetaInfo.parseIdString(c),d=t[a].studyId,u=ns.StudyMetaInfo.parseIdString(d),_=i.updateStudyInputs(h.id,h.version,u.version,l.inputs,null);o[a]={inputs:_}}this.model().mainSeries().properties().mergeAndFire(o)}_restoreSpecialSource(e,t,i){}_processAfterBulkAction(){const e=this._bulkActions;0===e.activeCounter&&(this._dataSourcesCollectionChanged.fire(),e.symbolSourceCollectionChanged&&(this._symbolSourceCollectionChanged.fire(),e.symbolSourceCollectionChanged=!1),e.priceSourcesCollectionChanged&&(this._priceSourcesCollectionChanged.fire(),e.priceSourcesCollectionChanged=!1),e.dataSourcesZOrdersChanged&&(this._dataSourcesZOrdersChanged.fire(),e.dataSourcesZOrdersChanged=!1))}}var Eh,Dh=i(28001);!function(e){e[e.Contains=0]="Contains",e[e.PlacedBefore=1]="PlacedBefore",e[e.PlacedAfter=2]="PlacedAfter"}(Eh||(Eh={}));class Bh{constructor(e,t){(0,n.assert)(e<=t,"The left value should be greater than or equal to the right value"),this._left=e,this._right=t}left(){return this._left}right(){return this._right}length(){return this._right-this._left+1}contains(e,t){return ethis._right+.5?!0===t&&2:!0!==t||0}before(e){return ethis._right+.5}intersects(e){return!(this.after(e.left())||this.before(e.right()))}equals(e){return this._left===e.left()&&this._right===e.right()}static compare(e,t){return null===e||null===t?e===t:e.equals(t)}}const Vh=(0,ne.getLogger)("Chart.TimePoints");function Rh(e,t){return null===e||null===t?e===t:e.firstIndex===t.firstIndex&&e.lastIndex===t.lastIndex}var Nh;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Nearest=2]="Nearest"}(Nh||(Nh={}));class Oh{constructor(){this._zoffset=0,this._items=[],this._range=new yt.WatchedObject(null,Rh)}clear(){this._zoffset=0,this._items=[],this._range.setValue(null)}size(){return this._items.length}range(){return this._range.readonly()}merge(e,t,i){const s=this._mergeImpl(e,t,i);return this._updateFirstAndLastIndex(),s}addTail(e,t){for(let i=t?1:0;ithis._items[this._items.length-1])return t?this._validOffsetToIndex(this._items.length-1):null;for(let i=0;ir){const i=e-r;if(i<500&&null!=t)return t(l,i);return l+i*c}return null}roughIndex(e,t=null,i=0){const s=this._items;if(!s.length||s.length<2)return null;const o=s.length-1,n=this._validOffsetToIndex(0),r=this._validOffsetToIndex(o),a=s[0],l=s[o];if(e>=a&&e<=l)return this._closestIndex(e,i);const c=(l-a)/(r-n);if(el){const i=e-l;let s=Math.trunc(i/c);if(s<500&&null!==t){const i=t(l,e);i.success&&(s=i.result)}return r+s}return null}closestIndexLeft(e){return this._closestIndex(e,0)}firstPoint(){return 0===this._items.length?null:this._items[0]}lastPoint(){return 0===this._items.length?null:this._items[this._items.length-1]}_closestIndex(e,t){const i=this._items;if(!i.length)return null;if(Number.isNaN(e))return null;const s=i.length-1;if(e>=i[s])return this._validOffsetToIndex(s);const o=(0,Pt.lowerbound)(this._items,e,((e,t)=>es?null:this._validOffsetToIndex(o);const n=e-(this._items[o-1]??-1/0),r=(this._items[o]??1/0)-e;return this._validOffsetToIndex(nthis._zoffset&&e+t>0)return Vh.logError("merge: when the first time point index is updated, we should fill the time points starting from the first one"),[];if(0===this._items.length)return this._items=i.slice(),this._zoffset=t,[{change:"rebuild",index:this._validOffsetToIndex(0)}];const s=e+this._zoffset;if(s<0){const o=Math.abs(s);if(i.lengththis._items.length){const e=r-this._items.length;for(let t=n;t(0,si.parseFont)(e)?.size??12));function sd(e,t,i,s){const o=od(e,t),n=Math.max(e.width,s);return{left:o-n/2-i,right:o+n/2+i}}function od(e,t){return e.index*t}function nd(e,t){return t===e.length?null:e[t]}function rd(e,t,i,s,o){const n=sd(e,i,s,o),r=sd(t,i,s,o);return n.right>r.left}function ad(e){return new Date(1e3*e)}function ld(e){if(e.span>=cr.MONTH_SPAN&&e.span=cr.MINUTE_SPAN&&e.span=cr.HOUR_SPAN&&e.span=cr.WEEK_SPAN&&e.span{let t=s.get(e.time);return void 0===t&&(t=function(e,t){return null!==_e.customFormatters.tickMarkFormatter?_e.customFormatters.tickMarkFormatter(e,t):td(e,t)}(ad(e.time),i),s.set(e.time,t)),t}}class hd{constructor(e,t,i){this._marksByIndex=new Map,this._marksByTime=new Map,this._marksBySpan=[],this._cache=null,this._labelsInvalidated=!0,this._widthsInvalidated=!0,this._skipIntraDayMarksSparseCache=null,this._changed=new ae.Delegate,this._formatterBySpan=new Map,this._textWidthCache=new Qt.TextWidthCache(1e4),this._timeVisible=e,this._sparseMarks=t,this._font=i;we.timeHoursFormatProperty.subscribe(this,(()=>{this._labelsInvalidated=!0,this._formatterBySpan.clear(),this._cache=null})),this._font.subscribe((()=>{this._textWidthCache.reset(),this._widthsInvalidated=!0,this._cache=null})),this._sparseMarks.subscribe((()=>{this._cache=null}))}destroy(){we.timeHoursFormatProperty.unsubscribeAll(this),this._timeVisible.release(),this._sparseMarks.release(),this._font.release()}reset(){this._resetImpl(),this._changed.fire()}indexToTime(e){const t=this._marksByIndex.get(e);return t?new Date(1e3*t.time):null}nearestIndex(e){let t=this.minIndex??0,i=this.maxIndex??0;for(;i-t>2;){if(1e3*(0,n.ensureDefined)(this._marksByIndex.get(t)).time===e)return t;if(1e3*(0,n.ensureDefined)(this._marksByIndex.get(i)).time===e)return i;const s=Math.round((t+i)/2);1e3*(0,n.ensureDefined)(this._marksByIndex.get(s)).time>e?i=s:t=s}return t}estimateLeft(e){const t=this._density();if(void 0===this.minIndex||!t)return 0;return(1e3*(0,n.ensureDefined)(this._marksByIndex.get(this.minIndex)).time-e)/t}merge(e,t){if(0===e.length)return;const i=e[0].index,s=e[e.length-1].index,o=i<=(this.minIndex??0)&&s>=(this.maxIndex??0);(t||o)&&this._resetImpl();const n=this._marksBySpan,r=new Set;if(this._marksByIndex.size>0)for(const t of e){const e=t.index,i=this._marksByIndex.get(e) +;i&&(i.index===e&&i.overriddenSpan===ld(t)&&i.time===t.time||this._removeTickmark(i));const s=this._marksByTime.get(t.time);s&&s.index!==e&&this._removeTickmark(s)}for(const t of e){const e=t.index;if(this._marksByIndex.has(e))continue;const i=ld(t),s=this._formatLabel(t),o={...t,label:s,overriddenSpan:i,width:(0,Kt.measureText)(s,this._font.value(),this._textWidthCache).width};this._marksByIndex.set(e,o),this._marksByTime.set(t.time,o);let a=n[i];void 0===a&&(a=[],n[i]=a);const l=0===a.length||a[a.length-1].timee.time-t.time)));this._cache=null,this._skipIntraDayMarksSparseCache=null,this._changed.fire()}build(e){if(this._labelsInvalidated&&(this._marksByIndex.forEach((e=>{e.label=this._formatLabel(e)})),this._labelsInvalidated=!1),this._widthsInvalidated&&(this._marksByIndex.forEach((e=>{e.width=(0,Kt.measureText)(e.label,this._font.value(),this._textWidthCache).width})),this._widthsInvalidated=!1),this._cache?.barSpacing===e)return this._cache.marks;const t=id(this._font.value()),i=5/14*t,s=50/14*t;let o=[];for(let t=this._marksBySpan.length;t--;){if(!this._marksBySpan[t])continue;const r=this._marksBySpan[t];if(0===r.length)continue;const a=t2?ed[t]:void 0;let u=null,_=-1/0,p=null,m=0;for(;cp.index?u:p,i=od(a,e)-od(t,e);_=Math.max(_,i)}u=a}null!==t?null!==a?t.index0&&m/r.length>(Qh[t]??.5)&&!a){o=l;break}if(void 0!==d&&Number.isFinite(_)&&_<=d)break}return this._cache={marks:o,barSpacing:e},o}marksBySpan(){const e={};for(let t=this._marksBySpan.length;t--;)if(this._marksBySpan[t]){const i=[];e[t]=i;for(const e of this._marksBySpan[t])i.push([e.index,e.time,e.overriddenSpan])}return e}state(e){let t=[];for(let e=this._marksBySpan.length;e--;)this._marksBySpan[e]&&(t=t.concat(this._marksBySpan[e]));if(null!==e){const i=e.firstBar(),s=e.lastBar();t=t.filter((e=>e.index>=i&&e.index<=s))}return{marks:t.map((e=>[e.span,e.time,e.index])),version:2}}restoreState(e){if(this._marksByIndex=new Map,this._marksByTime=new Map,this._marksBySpan=[],this.maxIndex=void 0,this.minIndex=void 0,e&&e.marks&&e.marks.length)if(2===e.version){const t=e.marks.map((e=>({span:e[0],time:e[1],index:e[2]})));this.merge(t)}else this.merge(e.marks)}removeTail(e){let t=-1/0;for(const i of this._marksByIndex.values())i.time>e?this._removeTickmark(i):t=Math.max(t,i.index);this.maxIndex=Number.isFinite(t)?t:void 0, +void 0===this.maxIndex&&(this.minIndex=void 0),this._skipIntraDayMarksSparseCache=null}addTail(e){if(void 0!==this.maxIndex)for(let t=0;te.time=0&&oe+t),0)/t.length;return t.reduce(((e,t)=>e+Math.abs(t-s)))/t.length/s*100}(e)>=25}return this._skipIntraDayMarksSparseCache}}var dd=i(5471);class ud{constructor(){this._baseIndex=0}setBaseIndex(e){this._baseIndex=e}indexToTotalWeight(e){return e-this._baseIndex}totalWeightToIndex(e){return this._baseIndex+e}indexRangeToWeights(e,t,i){const s=e-this._baseIndex;return[{left:s-.5,center:s,right:s+.5,timePointIndex:e}]}state(e){return{type:"constant",state:{baseIndex:this._baseIndex}}}restoreState(e){this._baseIndex=e.state.baseIndex}needAdjustingOnDataRestoring(){return!1}}var _d=i(67455);const pd={preserveBarSpacing:!1,lockVisibleTimeRangeOnResize:!1,rightBarStaysOnScroll:!0,minBarSpacing:.5},md=l.enabled("low_density_bars"),gd=md?1:2,fd=(0,ne.getLogger)("Chart.TimeScale");var yd;!function(e){e[e.DefaultRightOffset=10]="DefaultRightOffset",e[e.DefaultBarSpacing=6]="DefaultBarSpacing",e[e.UnplottableIndexCoord=-500]="UnplottableIndexCoord",e[e.DefaultRightOffsetPercentage=5]="DefaultRightOffsetPercentage",e[e.MaxIterationsForDynamicBarSpacingAdjust=20]="MaxIterationsForDynamicBarSpacingAdjust"}(yd||(yd={}));class vd{constructor(e,t){this._width=0,this._widthChanged=new ae.Delegate,this._rightOffset=10,this._rightOffsetChanged=new ae.Delegate,this._maxRightOffsetChanged=new ae.Delegate,this._defaultRightOffset=new O.WatchedValue(10),this._defaultRightOffsetPercentage=new O.WatchedValue(5),this._usePercentageRightOffset=new O.WatchedValue(!1),this._lastDefaultRightOffset=void 0,this._baseIndex=null,this._leftEdgeIndex=null,this._barSpacingChanged=new ae.Delegate, +this._barSpacing=6,this._snapshotBarSpacing=null,this._visibleBars=Hh.invalid(),this._visibleBarsInvalidated=!0,this._visibleBarsChanged=new ae.Delegate,this._logicalRangeChanged=new ae.Delegate,this._points=new Oh,this._onScroll=new ae.Delegate,this._resetDelegate=new ae.Delegate,this._scrollData=null,this._scaleStartPoint=null,this._commonTransitionStartState=null,this._requestingMoreData=!1,this._requestedTickmarksCount=0,this._endOfData=!1,this._lockBarsAndLogicalRangeEvents=!1,this._resetAvailable=new O.WatchedValue(!1),this._pointWeights=new ud,this._weightedPointsCache=[],this._throttleRequestMoreDataOnScroll=(0,o.default)(this._requestMoreData,300),this._options=(0,ge.deepExtend)({},pd,t),this._model=e,this._scalesProperties=e.properties().childs().scalesProperties,this._tickMarks=new hd((0,ft.combine)((e=>!e.isDWM()),e.mainSeries().intervalObj().weakReference()).ownership(),(0,ft.combine)(((e,t)=>!e.isTicks()&&!e.isSeconds()&&!(0,xt.isRangeBasedStyle)(t)),e.mainSeries().intervalObj().weakReference(),(0,ye.convertPropertyToWatchedValue)(e.mainSeries().properties().childs().style).ownership()).ownership(),(0,_d.createWVFromGetterAndSubscription)((()=>(0,si.makeFont)(this._scalesProperties.childs().fontSize.value(),m.CHART_FONT_FAMILY)),this._scalesProperties.childs().fontSize).ownership()),this._defaultRightOffset.subscribe((()=>{this._usePercentageRightOffset.setValue(!1),this._defaultRightOffsetOptionsUpdated()})),this._defaultRightOffsetPercentage.subscribe((e=>{if(e>=100||e<0){const t=Math.max(0,Math.min(e,99));this._defaultRightOffsetPercentage.setValue(t)}else this._usePercentageRightOffset.setValue(!0),this._defaultRightOffsetOptionsUpdated()})),this._usePercentageRightOffset.subscribe((()=>{this._defaultRightOffsetOptionsUpdated()})),this._options.preserveBarSpacing&&(this._barSpacing=this._scalesProperties.childs().barSpacing.value()||6),this._barSpacingChanged.subscribe(this,this._maxRightOffsetOnChanged),this._barSpacingChanged.subscribe(this,this._updateResetAvailableValue),this._rightOffsetChanged.subscribe(this,this._updateResetAvailableValue),this._widthChanged.subscribe(this,this._maxRightOffsetOnChanged),this._updateResetAvailableValue()}destroy(){this._barSpacingChanged.unsubscribeAll(this),this._barSpacingChanged.destroy(),this._widthChanged.unsubscribeAll(this),this._widthChanged.destroy(),this._tickMarks.destroy()}isEmpty(){return 0===this._width||!this.canNormalize()}canNormalize(){return this._points.size()>0}update(e,t,i,s,o){this._visibleBarsInvalidated=!0,i.length>0&&this._points.merge(e,t,i),this._tickMarks.merge(s,o),this.correctOffset()}addTail(e,t,i){this._tickMarks.removeTail(t);const s=e.params,o=(0,n.ensureDefined)(this._tickMarks.maxIndex)+(i?0:1);for(let e=0;e0&&(i*=this._width/e.width)),t&&this._pointWeights.needAdjustingOnDataRestoring()){this._tryToUpdateBarSpacing(this._barSpacing,i);const e=this._points.range().value();if(e){const t=e.firstIndex;let s=i,o=i,n=0;(()=>{n=this.indexToCoordinate(t),n<0?(o=i,s=i/10):(s=i,o=10*i)})();for(let e=0;e<20&&Math.abs(n)>2;e++){const e=(o+s)/2;this._tryToUpdateBarSpacing(this._barSpacing,e),n=this.indexToCoordinate(t),n<0?o=e:s=e}}}else this._tryToUpdateBarSpacing(this._barSpacing,i);this.correctOffset(),this._usePercentageRightOffset.value()&&(this._rightOffset=this.percentsToBarIndexLength(this._defaultRightOffsetPercentage.value())),this._rightOffsetChanged.fire(this._rightOffset)}marks(){if(this.isEmpty())return null;const e=this._barSpacing,t=5*((this._scalesProperties.childs().fontSize.value()||0)+4),i=Math.round(t/e),s=(0,n.ensureNotNull)(this.visibleBarsStrictRange()),o=Math.max(s.firstBar(),s.firstBar()-i),r=Math.max(s.lastBar(),s.lastBar()-i),a=this._tickMarks.build(e),l=[];for(const e of a)o<=e.index&&e.index<=r&&l.push({coord:this.indexToCoordinate(e.index),label:e.label,span:e.span,major:!1});return l}visibleBarsStrictRange(){return this._visibleBarsInvalidated&&(this._visibleBarsInvalidated=!1,this._updateVisibleBars()),this._visibleBars.strictRange()}visibleBarsStrictRangeChanged(){return this._visibleBarsChanged}visibleStrictDataRange(e){const t=this.visibleBarsStrictRange();if(null===t)return null +;const i=e.search(t.firstBar(),dd.PlotRowSearchMode.NearestRight),s=e.search(t.lastBar(),dd.PlotRowSearchMode.NearestLeft);return null===i||null===s?null:new Dh.BarsRange(i.index,s.index)}visibleExtendedDataRange(e,t){const i=this.visibleBarsStrictRange();if(null===i)return null;let s=1===t?null:e.search(i.firstBar()-1,dd.PlotRowSearchMode.NearestLeft),o=0===t?null:e.search(i.lastBar()+1,dd.PlotRowSearchMode.NearestRight);return null===s&&(s=e.search(i.firstBar(),dd.PlotRowSearchMode.NearestRight)),null===o&&(o=e.search(i.lastBar(),dd.PlotRowSearchMode.NearestLeft)),null===s||null===o?null:new Dh.BarsRange(s.index,o.index)}logicalRangeChanged(){return this._logicalRangeChanged}tickMarks(){return this._tickMarks}points(){return this._points}width(){return this._width}setWidth(e,t){if(!Number.isFinite(e)||e<=0)return void fd.logWarn(`setWidth: invalid argument: ${e}`);if(this._width===e)return;const i=this._usePercentageRightOffset.value()&&this._rightOffset>0?this.barIndexLengthToPercents(this._rightOffset):-1;if(this._visibleBarsInvalidated=!0,(t||this._options.lockVisibleTimeRangeOnResize)&&this._width){const t=this._barSpacing*e/this._width;this._tryToUpdateBarSpacing(this._barSpacing,t)}else this._width&&this.setBarSpacing(this._barSpacing);if(null!==this._leftEdgeIndex){if((0,n.ensureNotNull)(this.visibleBarsStrictRange()).firstBar()<=this._leftEdgeIndex){const t=this._width-e;this._rightOffset-=Math.round(t/this._barSpacing)+1}}this._width=e,this._widthChanged.fire(e);const s=this._rightOffset;i>0?this._rightOffset=this.percentsToBarIndexLength(i):this.correctOffset(),this._rightOffset!==s&&this._rightOffsetChanged.fire(this._rightOffset),this._requestMoreData()}setLeftEdgeFix(e){this._leftEdgeIndex=e;const t=this.visibleBarsStrictRange();if(null===t)return;const i=t.firstBar()-e;if(i<0){const e=this._rightOffset-i-1;this.scrollToOffsetAnimated(e,500)}}positionPercentToCoordinate(e){return this.width()*e}indexToCoordinate(e){if(this.isEmpty())return 0;const t=this.baseIndex(),i=this._pointWeights.indexToTotalWeight(t+this._rightOffset+.5)-this._pointWeights.indexToTotalWeight(e);return this._width-i*this._barSpacing}indexToUserTime(e){return this._tickMarks.indexToTime(e)}timePointToIndex(e,t){switch(t){case 0:return this._points.indexOf(e,!1);case 1:return this._points.closestIndexLeft(e);default:return this._points.indexOf(e,!0)}}indexToTimePoint(e){return this._points.valueAt(e)}timeToCoordinate(e){const t=this._points.closestIndexLeft(e);if(null===t)return null;const i=(0,n.ensureNotNull)(this._points.valueAt(t)),s=this.indexToCoordinate(t);if(s<=0||s>=this._width)return null;const o=this.barSpacing(),r=this.baseIndex();let a;a=0===r?this._model.mainSeries().intervalObj().value().inMilliseconds()/1e3:(0,n.ensureNotNull)(this._points.valueAt(r))-(0,n.ensureNotNull)(this._points.valueAt(r-1));const l=s+(e-i)/a*o+1;return l<=0||l>=this._width?null:l}barBorders(e){const t={timePointIndex:e,left:NaN,center:NaN,right:NaN};return this.fillBarBorders([t]),t}fillBarBorders(e,t,i){if(0===e.length)return +;let s=t?.startItemIndex??0;const o=(t?.endItemIndex??e.length)-1;if(!0===i&&(s=(0,Pt.upperbound)(e,Fh.UNPLOTTABLE_TIME_POINT_INDEX,((e,t)=>eo)return;const r=this._pointWeights.indexToTotalWeight(this.baseIndex()+this._rightOffset+.5),a=this._pointWeights.indexRangeToWeights(e[s].timePointIndex,e[o].timePointIndex,this._weightedPointsCache);let l=0,c=a[l];const h=c,d=a[a.length-1];let u=NaN,_=NaN,p=NaN,m=!0;for(let t=s;t<=o;t+=1){const i=e[t];if(i.timePointIndexd.timePointIndex)p=d.right+(i.timePointIndex-d.timePointIndex),_=p-.5,u=p-1;else for(m&&(u=c.left,_=c.center,p=c.right,m=!1);c.timePointIndexe{void 0!==t&&t(),this._requestMoreData()};if(e){const e=this.logicalRange(),t=this._model.mainSeries().bars().lastIndex();if(null===e||null===t)return;const i=this.indexToCoordinate(e.right()+.5),o=this.indexToCoordinate(t+this._defaultRightOffset.value()+.5);return this._model.stopTimeScaleAnimation(),void this._model.setTimeScaleAnimation(new Ir({from:0,to:i-o,duration:1e3,easing:br.easingFunc.easeInOutQuint,onFinish:s}))}this._visibleBarsInvalidated=!0,this._updateRightOffset(i),this._onScroll.fire(),s()}scrollToFirstBar(e=()=>{}){this._model.gotoTime(new Date("1800-01-01").getTime()).then(e),this._onScroll.fire()}scrollToOffsetAnimated(e,t){if(!isFinite(e))throw new RangeError("offset is required and must be finite number");const i=void 0===t?400:t;if(!isFinite(i)||i<=0)throw new RangeError("animationDuration (optional) must be finite positive number");const s=this._rightOffset,o=Date.now(),n=()=>{this._visibleBarsInvalidated=!0;const t=(Date.now()-o)/i;if(t>=1)return this._updateRightOffset(e),this._visibleBarsInvalidated=!0,this._model.recalculateAllPanes((0,wi.viewportChangeEvent)()),void this._model.lightUpdate();const r=s+(e-s)*t;this._updateRightOffset(r),this._model.recalculateAllPanes((0,wi.viewportChangeEvent)()),setTimeout(n,20)};n()}defaultRightOffset(){return this._defaultRightOffset}rightOffsetDefaultValue(){ +return 10}defaultRightOffsetPercentage(){return this._defaultRightOffsetPercentage}usePercentageRightOffset(){return this._usePercentageRightOffset}barSpacing(){return this._barSpacing}barSpacingScaleRatio(){return null===this._snapshotBarSpacing?1:this._barSpacing/this._snapshotBarSpacing}setBarSpacing(e){if(!Number.isFinite(e))return void fd.logWarn(`setBarSpacing: invalid argument: ${e}`);e=this.getValidBarSpacing(e);const t=this._barSpacing>e;this._tryToUpdateBarSpacing(this._barSpacing,e)&&(this.correctOffset(),this._options.preserveBarSpacing&&((0,yi.allowSavingDefaults)(!0),this._scalesProperties.childs().barSpacing.setValue(this._barSpacing),(0,yi.allowSavingDefaults)(!1)),this._model.recalculateAllPanes((0,wi.viewportChangeEvent)()),this._model.lightUpdate(),t&&this.requestHistoryPointsIfNeeded())}barSpacingChanged(){return this._barSpacingChanged}getValidBarSpacing(e){return null==e&&(e=this.barSpacing()),ethis.maxBarSpacing()?this.maxBarSpacing():e}isValidBarSpacing(e){return e>=this.minBarSpacing()&&e<=this.maxBarSpacing()}preserveBarSpacing(){return this._options.preserveBarSpacing}normalizeBarIndex(e){let t=0,i=0;const s=this.baseIndex(),o=(0,n.ensureNotNull)(this._points.range().value()).firstIndex;return es?(t=(0,n.ensureNotNull)(this._points.valueAt(s)),i=e-s):(t=(0,n.ensureNotNull)(this._points.valueAt(e)),i=0),{time_t:t,offset:i}}denormalizeTimePoint(e){const t=this._points.indexOf(e.time_t,!1);if(null!==t)return t+e.offset}rightOffset(){return this._rightOffset}rightOffsetChanged(){return this._rightOffsetChanged}minRightOffset(){const e=this.points().range().value()?.firstIndex,t=this._baseIndex;if(void 0===e||null===t)return null;if(null!==this._leftEdgeIndex){const e=this.width()/this._barSpacing;return this._leftEdgeIndex-t+e-1}return e-t-1+gd}maxRightOffset(){return this.width()/this._barSpacing-gd}maxRightOffsetChanged(){return this._maxRightOffsetChanged}onReset(){return this._resetDelegate}baseIndex(){return this._baseIndex||0}zoom(e,t,i){if(!Number.isFinite(e)||!Number.isFinite(t))return void fd.logWarn(`zoom: invalid arguments: ${e}, ${t}, ${i}`);const s=this.rightOffset(),o=void 0!==i?!i:this._options.rightBarStaysOnScroll,n=o&&this.usePercentageRightOffset().value()&&s>=0,r=n?this.barIndexLengthToPercents(s):void 0,a=this.coordinateToIndex(e),l=this.barSpacing(),c=l+t*(l/10);this.setBarSpacing(c),o||(this.startScroll(this.indexToCoordinate(a)),this.scrollTo(e),this.endScroll()),n&&void 0!==r&&this.setRightOffset(this.percentsToBarIndexLength(r)),this._requestMoreData()}zoomToBarsRange(e,t){if(null!==this._leftEdgeIndex&&(e=Math.max(e,this._leftEdgeIndex)),tthis._options.minBarSpacing}minBarSpacing(){return this._options.minBarSpacing}maxBarSpacing(){const e=this.width();return md?e:e/gd}minVisibleBarCount(){return gd}resetRightOffset(){this.setRightOffset(this.targetDefaultRightOffset())}reset(){this._visibleBarsInvalidated=!0,this._points.clear(),this._scrollData=null,this._scaleStartPoint=null,this._clearCommonTransitionsStartState(),this._tickMarks.reset(),this._leftEdgeIndex=null,this._resetDelegate.fire(),this.disconnect()}resetAvailable(){return this._resetAvailable.readonly()}disconnect(){this._requestingMoreData=!1,this._requestedTickmarksCount=0,this._endOfData=!1}setBaseIndex(e){if(!Number.isFinite(e))return void fd.logDebug(`setBaseIndex: invalid argument: ${e}`);const t=this._baseIndex!==e;this._visibleBarsInvalidated=!0,this._baseIndex=e,this._pointWeights.setBaseIndex(this._baseIndex),this.correctOffset(),t&&(this._model.recalculateAllPanes((0,wi.viewportChangeEvent)()),this._model.lightUpdate())}resetBaseIndex(){this._visibleBarsInvalidated=!0,this._baseIndex=null}setRightOffset(e){Number.isFinite(e)?(this._visibleBarsInvalidated=!0,this._updateRightOffset(e)):fd.logWarn(`setRightOffset: invalid argument: ${e}`)}correctBarSpacing(){this.isEmpty()||this.points().size()e&&(this._rightOffset=e,this._visibleBarsInvalidated=!0);const t=this.minRightOffset();null!==t&&this._rightOffset=0&&this.setRightOffset(this.percentsToBarIndexLength(s))}endScale(){null!==this._scaleStartPoint&&(this._scaleStartPoint=null,this._clearCommonTransitionsStartState(),this._requestMoreData())}startScroll(e){null===this._scrollData&&null===this._commonTransitionStartState&&(this.isEmpty()||(this._scrollData={startCoordinate:e,startRightEdgeLogical:this.baseIndex()+this._rightOffset+.5,startBaseIndex:this.baseIndex()},this._saveCommonTransitionsStartState()))}scrollTo(e){if(this._visibleBarsInvalidated=!0,null===this._scrollData)return;const{startCoordinate:t,startRightEdgeLogical:i,startBaseIndex:s}=this._scrollData,o=e-t,n=i+(this.baseIndex()-s),r=this.indexToCoordinate(n),a=this.coordinateToFloatIndex(r-o)-.5-this.baseIndex();this._updateRightOffset(a),this._onScroll.fire()}endScroll(){null!==this._scrollData&&(this._scrollData=null,this._clearCommonTransitionsStartState(),this._throttleRequestMoreDataOnScroll())}isBeingScrolled(){return null!==this._scrollData}isBeingScaled(){return null!==this._scaleStartPoint}onScroll(){return this._onScroll}invalidateVisibleBars(){this._visibleBarsInvalidated=!0}onTimeScaleCompleted(e){if(this._requestingMoreData=!1,this._endOfData=e,l.enabled("fix_left_edge")&&this._endOfData){const e=this._points.range().value()?.firstIndex;void 0!==e&&this.setLeftEdgeFix(e)}this._requestMoreData()}requestMoreHistoryPoints(e){this._requestHistoryPoints(e)}targetDefaultRightOffset(){return this.usePercentageRightOffset().value()?this.percentsToBarIndexLength(this._defaultRightOffsetPercentage.value()):this._defaultRightOffset.value()}percentsToBarIndexLength(e){return.01*e*this._width/this._barSpacing}barIndexLengthToPercents(e){return 100*e*this._barSpacing/this._width}requestHistoryPointsIfNeeded(){if(this.isEmpty())return;if(this._endOfData)return void fd.logNormal("Skipping loading more data due end of data state");const e=this.visibleBarsStrictRange();if(null===e)return;const t=(0,n.ensureNotNull)(this._points.range().value()).firstIndex-e.firstBar();t<=0||this._requestHistoryPoints(t)}_requestMoreData(){this._requestFutureTickmarksIfNeeded(),this.requestHistoryPointsIfNeeded()}_requestFutureTickmarksIfNeeded(){if(this.isEmpty()||!this._model.chartApi().isConnected().value())return;const e=this.visibleBarsStrictRange();if(null===e)return;const t=e.lastBar()-(0, +n.ensureNotNull)(this._points.range().value()).lastIndex;if(t<=this._requestedTickmarksCount)return;const i=t-this._requestedTickmarksCount;this._requestedTickmarksCount=t,this._model.chartApi().requestMoreTickmarks((0,n.ensureNotNull)(this._model.mainSeries().seriesSource().instanceId()),i)}_requestHistoryPoints(e){this._model.chartApi().isConnected().value()&&(this._requestingMoreData?fd.logNormal("Skipping loading more data due active loading"):(this._requestingMoreData=!0,this._model.chartApi().requestMoreData(e)))}_updateVisibleBars(){const e=this._visibleBars;if(this.isEmpty())return void(this._visibleBars.isValid()&&(this._visibleBars=Hh.invalid(),this._visibleBarsChanged.fire(null,e.strictRange()),this._logicalRangeChanged.fire(null,e.logicalRange())));const t=this.width()/this.barSpacing(),i=this.baseIndex(),s=i+this._rightOffset,o=s+.5,n=this._pointWeights.indexToTotalWeight(o)-t,r=Math.min(o-1,this._pointWeights.totalWeightToIndex(n))+.5;Number.isFinite(r)&&Number.isFinite(s)?(this._visibleBars=new Hh(new Bh(r,s),this._model.mainSeries().style()),this._lockBarsAndLogicalRangeEvents||this._fireVisibleBarsChangedIfRequired(e,this._visibleBars)):fd.logWarn(`updateVisibleBars error: baseIndex: ${i}, barSpacing: ${this._barSpacing}, rightOffset: ${this._rightOffset}`)}_fireVisibleBarsChangedIfRequired(e,t){Dh.BarsRange.compare(e.strictRange(),t.strictRange())||this._visibleBarsChanged.fire(t.strictRange(),e.strictRange()),Bh.compare(e.logicalRange(),t.logicalRange())||this._logicalRangeChanged.fire(t.logicalRange(),e.logicalRange())}_baseIndexBarCenterCoordinate(){const e=this.baseIndex()+this._rightOffset+.5,t=this._pointWeights.indexToTotalWeight(e);return this._width-t*this._barSpacing}_tryToUpdateBarSpacing(e,t){return e!==t&&(this._visibleBarsInvalidated=!0,this._barSpacing=t,this._barSpacingChanged.fire(t),!0)}_saveCommonTransitionsStartState(){this._commonTransitionStartState={barSpacing:this.barSpacing(),rightOffset:this.rightOffset()}}_clearCommonTransitionsStartState(){this._commonTransitionStartState=null}_maxRightOffsetOnChanged(){this._maxRightOffsetChanged.fire(this.maxRightOffset())}_updateRightOffset(e){const t=this._rightOffset;this._rightOffset=e,this.correctOffset(),this._rightOffset!==t&&this._rightOffsetChanged.fire(this._rightOffset),this._model.recalculateAllPanes((0,wi.viewportChangeEvent)()),this._model.lightUpdate()}_defaultRightOffsetOptionsUpdated(){const e=this.rightOffset();if(l.enabled("lock_visible_range_when_adjusting_percentage_right_margin")&&e>=0){const e=this._defaultRightOffsetPercentage.value(),t=this._usePercentageRightOffset.value()&&this._rightOffset>=0?Math.round(this.barIndexLengthToPercents(this._rightOffset)):-1;if(this._lastDefaultRightOffset!==e&&t===this._lastDefaultRightOffset){const t=this._barSpacing*(100-e)/(100-this._lastDefaultRightOffset);this._tryToUpdateBarSpacing(this._barSpacing,t)}}this.setRightOffset(this.targetDefaultRightOffset()),this._updateResetAvailableValue(),this._lastDefaultRightOffset=this._defaultRightOffsetPercentage.value()} +_updateResetAvailableValue(){this._resetAvailable.setValue(6!==this.barSpacing()||this.rightOffset()!==this.targetDefaultRightOffset())}}var Sd=i(86957),bd=i(60336);class wd{constructor(e){this._onChanged=new ae.Delegate,this._groups=[],this._groups=e||[],this._groups.forEach((e=>{e.onChanged().subscribe(null,(t=>this._onChanged.fire(e.id,t)))}))}groups(){return this._groups.filter((e=>e.isActualSymbol()))}groupsForAllSymbols(){return this._groups}createGroup(e,t,i){t=t||this._generateNextName();const s=new Xa(e,t,i);this._groups.push(s),s.onChanged().subscribe(null,(e=>this._onChanged.fire(s.id,e)));const o={visibilityChanged:!1,lockedChanged:!1,isActualIntervalChanged:!1,affectedLineTools:e.map((e=>e.id()))};return this._onChanged.fire(s.id,o),s}addGroup(e){this._groups.push(e),e.onChanged().subscribe(null,(t=>this._onChanged.fire(e.id,t))),this._onChanged.fire(e.id)}removeGroup(e){const t=this._groups.findIndex((t=>t.id===e.id));this._groups.splice(t,1),this._onChanged.fire(e.id)}groupForId(e){return this._groups.find((t=>t.id===e))||null}groupForLineTool(e){return this._groups.find((t=>t.containsLineTool(e)))||null}removeLineTools(e){const t=new Set;this._groups.forEach((i=>{const s=e.filter(i.containsLineTool.bind(i));s.length&&(i.excludeLineTools(s),t.add(i.id))}));return this._groups.filter((e=>0===e.lineTools().length)).forEach((e=>this.removeGroup(e))),Array.from(t)}state(e){return{groups:(e?this._groups.filter((e=>e.isActualSymbol())):this._groups).map((e=>e.state()))}}onChanged(){return this._onChanged}fireChangedAll(){this._groups.forEach((e=>{this._onChanged.fire(e.id)}))}static fromState(e,t){const i=[];for(const s of t.groups){const t=Xa.fromState(e,s);null!==t&&i.push(t)}return new wd(i)}_generateNextName(){const e=new Set(this.groups().map((e=>e.name().value())));for(let t=1;;t++){const i=`Group ${t}`,s=`Group_${t}`;if(!e.has(i)&&!e.has(s))return i}}}var Cd=i(47312),Td=i(51101);function Pd(e){return Boolean(e.session.timezone)&&Boolean(e.session.spec)}class xd{constructor(e,t){var i,s;this._sourceTargetBarBuilder=null,this._cache=new Map,this._source=e,this._target=t,this._sourceSession=Cd.SessionInfo.fromState(e.session),this._targetSession=Cd.SessionInfo.fromState(t.session),this._isResolutionTheSame=Re.Interval.isEqual(e.resolution,t.resolution)||Re.Interval.isTicks(e.resolution)&&Re.Interval.isTicks(t.resolution),this._isSessionTheSame=(i=e.session,s=t.session,i.timezone===s.timezone&&i.spec===s.spec&&i.holidays===s.holidays&&i.corrections===s.corrections)}sourceTimeToTargetTime(e){if(this._isSessionTheSame&&this._isResolutionTheSame)return e;if(!Pd(this._source)||!Pd(this._target))return e;let t=this._cache.get(e);if(void 0===t){const i=1e3*e,s=this._sourceTargetBuilder();s.moveTo(i);const o=s.indexOfBar(i);t=s.startOfBar(Math.max(0,o))/1e3,this._cache.set(e,t)}return t}_sourceTargetBuilder(){return null===this._sourceTargetBarBuilder&&(this._sourceTargetBarBuilder=(0,Td.newBarBuilder)(this._target.resolution,this._targetSession,this._sourceSession)),this._sourceTargetBarBuilder}} +var Md=i(40153),Id=i(69555),Ad=i(66786),Ld=i(30693);class kd extends Ld.PriceLineAxisView{constructor(e,t){super(),this._model=e,this._source=t}_value(){const e=this._model.mainSeries(),t=e.priceScale(),i=e.firstValue();if(null===i)return{noData:!0};const s=this._source.price(),o=this._source.currentSession();if(null===s||"pre_market"!==o&&"post_market"!==o)return{noData:!0};const n=t.priceToCoordinate(s,i);return{noData:!1,floatCoordinate:n,coordinate:n,color:"",formattedPricePercentage:"",formattedPriceAbsolute:"",formattedPriceIndexedTo100:"",text:"",index:0}}_priceLineColor(e){const t=this._source.properties().childs();return"pre_market"===this._source.currentSession()?t.preMarketColor.value():t.postMarketColor.value()}_lineWidth(){return this._source.properties().childs().lineWidth.value()}_lineStyle(){return this._source.properties().childs().lineStyle.value()}_isVisible(){if(!this._source.canBeVisibleOnSymbolAndInterval()||!this._model.properties().childs().scalesProperties.childs().showPrePostMarketPriceLabel.value())return!1;const e=this._source.price(),t=this._source.currentSession();return null!==e&&("pre_market"===t||"post_market"===t)}}var Ed=i(36281);class Dd extends Ed.PriceAxisView{constructor(e,t){super(),this._model=e,this._source=t}_updateRendererData(e,t,s){if(e.visible=!1,t.visible=!1,!this._model.properties().childs().scalesProperties.childs().showPrePostMarketPriceLabel.value())return;const o=this._model.mainSeries(),n=o.priceScale(),r=o.firstValue();if(null===r)return;if(!this._source.canBeVisibleOnSymbolAndInterval())return;const l=this._source.price(),c=this._source.currentSession();if(null==l||"pre_market"!==c&&"post_market"!==c)return;const h=this._source.properties().childs(),d="pre_market"===c?(0,Ro.resetTransparency)(h.preMarketColor.value()):(0,Ro.resetTransparency)(h.postMarketColor.value());e.visible=!0,t.visible=!0,e.text=n.formatPriceAbsolute(l),t.text="pre_market"===c?a.t(null,{context:"market_status"},i(93866)):a.t(null,{context:"market_status"},i(35359)),s.coordinate=n.priceToCoordinate(l,r),s.background=d,s.textColor=this.generateTextColor(d)}}var Bd=i(40738);class Vd extends Bd.HorizontalLinePaneView{constructor(e,t,i){super(),this._model=e,this._source=t;const s={doubleClickHandler:i,doubleTapHandler:i};this._lineRenderer.setHitTest(new Ut.HitTestResult(Ut.HitTarget.Regular,s))}_updateImpl(){const e=this._lineRendererData;e.visible=!1;const t=this._model.mainSeries(),i=this._source.properties().childs();if(!i.visible.value()||!t.isVisible())return;const s=t.priceScale(),o=t.firstValue();if(null===o)return;if(!this._source.canBeVisibleOnSymbolAndInterval())return;const n=this._source.price(),r=this._source.currentSession();null===n||"pre_market"!==r&&"post_market"!==r||(e.visible=!0,e.y=s.priceToCoordinate(n,o),e.linestyle=i.lineStyle.value(),e.linewidth=i.lineWidth.value(),e.color="pre_market"===r?i.preMarketColor.value():i.postMarketColor.value())}}qt.LINESTYLE_DOTTED,Rt.colorsPalette["color-tv-blue-500"];class Rd extends Ad.CustomSourceBase{constructor(e,t,i){super(e,t), +this._extraHoursPrice=null,this._currentSession="holiday",this._quotesProvider=t.mainSeries().quotesProvider(),this._prePostMarketLinePaneView=new Vd(t,this,i),this._prePostPriceAxisView=new Dd(t,this),this._prePostLabelPaneView=new Id.PanePriceAxisView(this._prePostPriceAxisView,t.mainSeries(),t),this._prePostPriceLineAxisView=new kd(t,this),this._quotesProvider.quotesUpdate().subscribe(this,this._updateQuotes),this._updateQuotes()}destroy(){this._quotesProvider.quotesUpdate().unsubscribeAll(this)}paneViews(e){return this._areViewsAvailableForPane(e)?[this._prePostMarketLinePaneView]:[]}labelPaneViews(e){return this._areViewsAvailableForPane(e)?[this._prePostLabelPaneView]:[]}priceAxisViews(e,t){return this._areViewsAvailableForPane(e)?e.findTargetPriceAxisViews(this,t,[this._prePostPriceAxisView],[this._prePostPriceLineAxisView]):[]}priceScale(){return this._model.mainSeries().priceScale()}updateAllViews(e){this._prePostMarketLinePaneView.update(e),this._prePostPriceAxisView.update(e),this._prePostPriceLineAxisView.update(e),this._prePostLabelPaneView.update(e)}price(){return this._extraHoursPrice}currentSession(){return this._currentSession}canBeVisibleOnSymbolAndInterval(){return this._model.mainSeries().isPrePostMarketPricesAvailableProperty().value()}properties(){return this._model.mainSeries().properties().childs().prePostMarket}_updateQuotes(){const e=this._quotesProvider.quotes();null===e?this._extraHoursPrice=null:(this._extraHoursPrice=e.rtc,void 0!==e.current_session&&(this._currentSession=e.current_session));const t=this._model.mainSeries().properties().childs().prePostMarket.childs().visible.value(),i=this._model.properties().childs().scalesProperties.childs().showPrePostMarketPriceLabel.value();this.canBeVisibleOnSymbolAndInterval()&&(t||i)&&(this.updateAllViews((0,wi.sourceChangeEvent)(this.id())),this._model.updateSource(this))}_areViewsAvailableForPane(e){return!this._model.isInReplay().value()&&!this._model.isSnapshot()&&this._model.paneForSource(this._model.mainSeries())===e}}var Nd=i(67225);function Od(e,t){return e.codet.code?1:0}class Fd{constructor(e){this._convertibleItems=e,this._idsToItems=new Map;for(const t of e)this._idsToItems.set(t.id,t)}convertible(e){return void 0!==this._idsToItems.get(e)}item(e){return this._idsToItems.get(e)??null}size(){return this._convertibleItems.length}filterConvertible(e,t){const i=this._convertibleItems.filter(function(e,t){return i=>!e.has(i.id)&&t(i.id)}(e,t));return i.sort(Od),i}getItems(){return this._convertibleItems.map((e=>e.id))}}class Wd{constructor(e){this._allGroups=new Set,this._idToName=new Map,this._idToDescription=new Map,this._groupedUnitIds=new Map,this._groupedUnits=new Map,this._groupById=new Map,this._size=0,this._units=e;for(const t in e)if(e.hasOwnProperty(t)){this._allGroups.add(t),this._groupedUnitIds.set(t,new Set(e[t].map((e=>e.id)))),this._groupedUnits.set(t,e[t]);for(const i of e[t])this._size++,this._idToName.set(i.id,i.name),this._idToDescription.set(i.id,i.description),this._groupById.set(i.id,t)}} +unitsChanged(e){return this._units!==e}size(){return this._size}name(e){return this._idToName.get(e)||e}description(e){return this._idToDescription.get(e)||e}unitGroupById(e){return this._groupById.get(e)||null}allGroups(){return new Set(this._allGroups)}unitsByGroups(e){const t=[];return e.forEach((e=>{const i=this._groupedUnits.get(e);void 0!==i&&t.push({name:e,units:i})})),t}convertible(e,t){for(const i of t){const t=this._groupedUnitIds.get(i);if(void 0!==t&&t.has(e))return!0}return!1}}var Hd=i(50335);class zd{constructor(e){this._source=null,this._sourcePane=null,this._currentToolSupportsPhantomMode=!1,this._model=e}destroy(){this._source=null,this._sourcePane=null}source(){return this._source}onToolChanged(){this._removeSource(),this._currentToolSupportsPhantomMode=(0,Lt.isLineToolName)(mt.tool.value())&&(0,zs.supportsPhantomMode)(mt.tool.value())}onCursorPositionUpdated(){if(!this._currentToolSupportsPhantomMode)return;const e=this._model.crosshairSource();if(this._sourcePane!==e.pane&&this._removeSource(),null===e.pane||!(0,Hd.isNumber)(e.index)||!(0,Hd.isNumber)(e.price))return void this._removeSource();const t={index:e.index,price:e.price};null!==this._source?this._source.setPoint(0,t):(this._source=this._model.createLineTool({pane:e.pane,point:t,linetool:mt.tool.value()}),this._sourcePane=e.pane)}_removeSource(){null!==this._source&&(this._model.removeSource(this._source),this._source=null,this._sourcePane=null)}}var Ud=i(7024),jd=i(4359);const Gd=(e,t)=>!0,qd=(e,t)=>!t.isPlotForceOverlay(e.id),$d=(e,t)=>t.isPlotForceOverlay(e.id);function Kd(e,t){const i=e.priceScale(),s=e.firstValue();if(null===i||null===s)return;const o=e.bars().valueAt(t);if(null===o)return;let r;if(null!==e.priceSource())r=[e.barFunction()(o)];else switch(e.style()){case 12:r=[(0,n.ensure)(o[2]),(0,n.ensure)(o[3])];break;case 16:case 21:r=[(0,n.ensure)(o[2]),(0,n.ensure)(o[4]),(0,n.ensure)(o[3])];break;default:r=[(0,n.ensure)(o[1]),(0,n.ensure)(o[2]),(0,n.ensure)(o[3]),(0,n.ensure)(o[4])]}return r.map((e=>({y:i.priceToCoordinate(e,s),price:e})))}var Yd;!function(e){e[e.MagnetTolerance=50]="MagnetTolerance"}(Yd||(Yd={}));class Zd{constructor(){this._lastValue=null}align(e,t,i){this._lastValue=null;let s=e;if(!(0,Dn.magnetEnabled)().value())return s;const o=i.mainDataSource();if(null===o)return s;const r=o.priceScale();if(!r||r.isEmpty())return s;const a=o.model().mainSeries(),l=(0,Dn.magnetSnapsToIndicators)().value();if(!l&&o!==a)return s;const c=(0,n.ensure)(o.firstValue()),h=r.priceToCoordinate(e,c),d=i.containsMainSeries()?function(e,t){return Kd(e,t)}(a,t)??[]:[];if(l){i.model().allStudies(!0).filter((e=>e.isVisible())).forEach((e=>{const s=function(e,t,i){const s=e.model(),o=s.paneForSource(e),n=s.mainPane(),r=s.mainSeries();if((0,Ws.isOverlayStudy)(e))return i===o?Kd(e,t):void 0;const a=e.metaInfo();if(!a)return;const l=e.data().valueAt(t);if(null===l)return;const c=a.hasForceOverlayPlots();if(!(i===o||c&&i===n))return;const h=e.priceScale(),d=r.priceScale(),u=e.firstValue(),_=r.firstValue();if(!h||!d||null===u||null===_)return +;let p,m,g;o===n?(p=Gd,m=d,g=_):i===o?(p=qd,m=h,g=u):(p=$d,m=d,g=_);const f=a.plots,y=f.filter((t=>!(0,jd.isPlotWithTechnicalValues)(t)&&e.isPlotVisibleAt(t.id,1)&&p(t,a))),v=[];for(const e of y){const t=l[f.indexOf(e)+1];if(null!=t){const i=a.isPlotForceOverlay(e.id),s=(i?d:h).priceToCoordinate(t,i?_:u);v.push({y:s,price:m.coordinateToPrice(s,g)})}}return v}(e,t,i);s&&d.push(...s)}))}if(0===d.length)return s;d.sort(((e,t)=>Math.abs(e.y-h)-Math.abs(t.y-h)));const u=d[0];return((0,Dn.magnetMode)().value()===Ud.MagnetMode.StrongMagnet||Math.abs(u.y-h)<50)&&(s=u.price,this._lastValue=s),s}lastValue(){return this._lastValue}resetLastValue(){this._lastValue=null}}class Xd{constructor(e){this._appliedTimeFrame=new yt.WatchedObject(null),this._appliedTimeFrameInfo=null,this._appliedTimeFrameChangedBound=this._appliedTimeFrameChanged.bind(this),this._model=e,e.mainSeries().dataEvents().seriesTimeFrame().subscribe(this,this._onSeriesTimeFrame),this._appliedTimeFrame.subscribe(this._appliedTimeFrameChangedBound)}destroy(){this._appliedTimeFrame.unsubscribe(this._appliedTimeFrameChangedBound),this._model.timeScale().logicalRangeChanged().unsubscribeAll(this),this._model.mainSeries().dataEvents().seriesTimeFrame().unsubscribeAll(this)}appliedTimeFrame(){return this._appliedTimeFrame}_appliedTimeFrameChanged(){this._model.timeScale().logicalRangeChanged().unsubscribe(this,this._invalidateAppliedTimeFrame)}_onSeriesTimeFrame(e,t,i,s){if(s){const e=this._model.timeScale();this._appliedTimeFrameInfo={logicalRange:e.logicalRange(),baseIndex:e.baseIndex()},e.logicalRangeChanged().subscribe(this,this._invalidateAppliedTimeFrame)}}_invalidateAppliedTimeFrame(){if(null===this._appliedTimeFrameInfo)return;const e=this._model.timeScale(),t=e.logicalRange(),i=e.baseIndex(),s=this._appliedTimeFrameInfo.logicalRange,o=this._appliedTimeFrameInfo.baseIndex;(null===t||null===s||Math.abs(i-t.left()-(o-s.left()))>=.01||Math.abs(i-t.right()-(o-s.right()))>=.01)&&this._appliedTimeFrame.setValue(null)}}var Jd=i(32955),Qd=i(10307);class eu extends Qd.BitmapCoordinatesPaneRenderer{constructor(){super(...arguments),this._data=null}setData(e){this._data=e}hitTest(e){return null}_drawImpl(e){if(null===this._data)return;const{context:t,verticalPixelRatio:i,horizontalPixelRatio:s,bitmapSize:o}=e,n=Math.max(1,Math.floor(s));t.lineWidth=n;const r=Math.ceil(o.height*i),a=Math.ceil(o.width*s);if(t.lineCap="butt",this._data.vertLinesVisible){t.strokeStyle=this._data.vertLinesColor,(0,$t.setLineStyle)(t,this._data.vertLineStyle);for(const e of this._data.timeMarks){const i=Math.round(e.coord*s);(0,$t.drawVerticalLine)(t,i,0,r)}}if(this._data.horzLinesVisible){t.strokeStyle=this._data.horzLinesColor,(0,$t.setLineStyle)(t,this._data.horzLineStyle);for(const e of this._data.priceMarks){const s=Math.round(e.coord*i);(0,$t.drawHorizontalLine)(t,s,0,a)}}}}class tu{constructor(e){this._renderer=new eu,this._pane=e}update(){}renderer(){const e=this._pane.defaultPriceScale(),t=this._pane.model().timeScale();if(e.isEmpty()||t.isEmpty())return null +;const i=this._pane.model().properties().childs().paneProperties.childs(),s=t.marks(),o=i.gridLinesMode.value(),n={horzLinesVisible:"both"===o||"horz"===o,vertLinesVisible:"both"===o||"vert"===o,horzLinesColor:i.horzGridProperties.childs().color.value(),vertLinesColor:i.vertGridProperties.childs().color.value(),horzLineStyle:i.horzGridProperties.childs().style.value(),vertLineStyle:i.vertGridProperties.childs().style.value(),priceMarks:e.marks(),timeMarks:null!==s?s:[]};return this._renderer.setData(n),this._renderer}}class iu extends bi.DataSource{constructor(e){super(),this._model=e}id(){return"grid"}paneViews(e){return e.mode()===zi.PaneMode.Regular?[new tu(e)]:null}name(){return"Grid"}model(){return this._model}contextMenuStatName(){return"GridContextMenu"}}class su extends Ed.PriceAxisView{constructor(e,t,i,s){super(),this._source=e,this._pane=t,this._priceScale=i,this._priceProvider=s,this._properties=e.model().properties().childs().scalesProperties}setHitTestData(e){this._hitTestData=e}setXCoord(e){this._xCoord=e}additionalPadding(e){return 0}_updateRendererData(e,t,i){if(e.visible=!1,t.visible=!1,this._pane.model().chartFloatingTooltipVisible().value())return;const s=this._priceScale,o=s.mainSource(),n=null!==o?o.firstValue():null;if(!this._isVisible()||s.isEmpty()||null===n)return;const r=this._currentPrice(s);if(null===r)return;i.background=(0,Ro.resetTransparency)(this._bgColor()),i.textColor=this.generateTextColor(i.background);const a=this.additionalPadding(s.fontSize());i.additionalPaddingTop=a,i.additionalPaddingBottom=a,i.coordinate=s.priceToCoordinate(r,n),e.text=s.formatPrice(r,n),e.visible=!0,t.visible=!0,t.hitTestData=this._hitTestData,t.xCoord=this._xCoord}_currentPrice(e){return this._priceProvider(e)}}class ou extends su{additionalPadding(e){return 2/12*e}_isVisible(){const e=this._source.lockedPane();return this._properties.childs().showPriceScaleCrosshairLabel.value()&&(this._source.visible||null!==e)&&(e??this._source.pane)===this._pane}_currentPrice(e){const t=mt.crosshairLock.value();return null!==t&&1===t.type?this._pane===this._source.lockedPane()?t.price:null:super._currentPrice(e)}_bgColor(){const e=this._properties.childs();return this._source.model().dark().value()?e.crosshairLabelBgColorDark.value():e.crosshairLabelBgColorLight.value()}_updateRendererData(e,t,i){const s=t.visible;super._updateRendererData(e,t,i),this._source.isHovered()?t.backgroung=this._source.model().dark().value()?Rt.colorsPalette["color-cold-gray-600"]:Rt.colorsPalette["color-cold-gray-650"]:t.backgroung=void 0,s||(t.visible=s)}}class nu extends su{_isVisible(){return null!==this._source.measurePane().value()}_bgColor(){return this._properties.childs().axisLineToolLabelBackgroundColorCommon.value()}}var ru,au,lu=i(33718);function cu(e){const t=e.priceScale();return null===t?0:t.isPercentage()||t.isIndexedTo100()?2:1}!function(e){e[e.NotDefined=0]="NotDefined",e[e.Regular=1]="Regular",e[e.Unregular=2]="Unregular"}(ru||(ru={}));class hu extends Id.PanePriceAxisView{constructor(e,t,i,s,o){super(e,t,s), +this._crossHairMenuCachedState=null,this._hasActions=!1,this._gaOrigin="CH menu",this._crosshairPriceAxisView=e,e.setPaneRendererLabelIcon(0),this._crosshair=t,this._scale=i,this._options=o,this._updateGaOrigin()}_updateImpl(e){const t=this._crosshair.y,i=this._chartModel.properties().childs().scalesProperties.childs().fontSize.value(),s=this._chartModel.timeScale().width(),o=this._crosshair.model().priceAxisRendererOptions(),n=i+2*this._crosshairPriceAxisView.additionalPadding(i)+o.paddingTop+o.paddingBottom,r=n,a=t-n/2,c=this._crosshair.pane,h=this._mainDataSourceOnPane(),d=h&&h.symbolSource(),u=!!d&&(d.isConvertedToOtherCurrency()||d.isConvertedToOtherUnit());if(this._updateGaOrigin(),null!==h){const e=cu(h),t=h.idForAlert(),i=this._chartModel.isInReplay().value(),s=this._crossHairMenuCachedState,o=l.enabled("chart_crosshair_menu");null!==s&&s.id===t&&s.priceScale===e&&s.isCurrencyOrUnitConverted===u&&s.isInReplay===i&&s.isMenuEnabled===o||(this._updateTooltipAndActionsAvailability(h,e,u),this._crossHairMenuCachedState={id:t,priceScale:e,isCurrencyOrUnitConverted:u,isInReplay:i,isMenuEnabled:o})}const _=null!==h&&(0,Lr.isActingAsSymbolSource)(h)?h.symbol():null,p=null!==c&&(c.maximized().value()||!c.collapsed().value())&&(Boolean(_)||!1);this._crosshairPriceAxisView.setPaneLabelVisible(p);const m=this._position();if(null!==m){const e=0,t=s-r,i=Boolean(lu.showPlusButtonOnCursor.value()),o=i?this._crosshair.x:void 0,l=void 0!==o?o-r/2:"left"===m?e:t,c=void 0!==o?o+r/2:"left"===m?e+r:t+r,h=(0,Vt.box)(new Vt.Point(l,a),new Vt.Point(c,a+n));this._data={itemBox:h,clickHandler:this._handleClick.bind(this,m,i,h)},this._crosshairPriceAxisView.setHitTestData(this._data),this._crosshairPriceAxisView.setXCoord(o)}super._updateImpl(e)}_priceScale(){return this._scale}_updateGaOrigin(){this._gaOrigin=Boolean(lu.showPlusButtonOnCursor.value())?"CH menu cursor":"CH menu"}_updateTooltipAndActionsAvailability(e,t,i){this._hasActions=!1;if(!(1===t))return;this._chartModel.isInReplay().value();this._hasActions=!1}_handleClick(e,t,i,s,o){(0,re.trackEvent)(this._gaOrigin,"click");const n=this._mainDataSourceOnPane(),r=null!==n&&(0,Lr.isActingAsSymbolSource)(n)?n.symbol():null,a={pageX:o.pageX,pageY:o.pageY,clientX:o.clientX,clientY:o.clientY,screenX:o.screenX,screenY:o.screenY,price:this._crosshair.price,symbol:r};ee.emit("onPlusClick",a)}async _getMenuItems(e){return Promise.resolve([])}_createAlertMenuItems(e){return Promise.resolve([])}_getAddAlertActionOptions(e,t,i){return{dataSource:e,y:t,disabled:i,analyticsOpt:{method:"crosshair_menu",source:"chart",actionSource:"crosshair_menu",gaOrigin:this._gaOrigin}}}_createTradingMenuItems(){return Promise.resolve([])}async _createAddHorizontalLineMenuItem(){return[]}async _getActionAddHorizontalLine(e){return null}_getValue(e,t){const i=e.priceScale(),s=e.firstValue();if(null===i||null===s)return null;return i.isPercentage()||i.isIndexedTo100()?null:i.coordinateToPrice(t,s)}_showContextMenu(e,t,i,s,o){const r="left"===o;setTimeout((()=>{ +const o=s.clientX-s.localX,a=s.clientY-s.localY,l=i.min.x+o,c=i.max.x+o,h=i.min.y+a,d=c-l,u=i.max.y+a-h,_=t?mt.crosshairLock.value():void 0;if(void 0!==_){const e=(0,n.ensureNotNull)(this._chartModel.timeScale().points().roughTime(this._crosshair.index));mt.crosshairLock.setValue({type:1,price:this._crosshair.price,time:e,modelId:this._chartModel.id(),paneId:(0,n.ensureNotNull)(this._crosshair.pane).id()})}Io.ContextMenuManager.showMenu(e,{clientX:s.clientX,clientY:s.clientY,box:{x:l,w:d,y:h,h:u},attachToXBy:t?"auto":r?"left":"right",attachToYBy:"auto-strict",marginX:t?0:-d},void 0,{menuName:"CrosshairMenuView"},(()=>{void 0!==_&&mt.crosshairLock.setValue(_)}))}))}_mainDataSourceOnPane(){const e=this._crosshair.pane;return null!==e?e.mainDataSource():null}}class du extends Qd.BitmapCoordinatesPaneRenderer{constructor(e){super(),this._data=e}hitTest(e){return void 0===this._data.clickHandler?null:new Ut.HitTestResult(Ut.HitTarget.Custom,{clickHandler:this._data.clickHandler,tapHandler:this._data.clickHandler})}_drawImpl(e){const t=this._data.vertLinesVisible,i=this._data.horzLinesVisible;if(!t&&!i)return;const{context:s,horizontalPixelRatio:o,verticalPixelRatio:n,bitmapSize:r}=e;s.lineWidth=Math.max(1,Math.floor(this._data.lineWidth*o)),s.strokeStyle=this._data.color,s.fillStyle=this._data.color,s.lineCap="butt",(0,$t.setLineStyle)(s,this._data.lineStyle);const a=Math.round(this._data.x*o),l=Math.round(this._data.y*n),c=Math.ceil(r.width*o),h=Math.ceil(r.height*n);t&&a>=0&&(0,$t.drawVerticalLine)(s,a,0,h),i&&l>=0&&(0,$t.drawHorizontalLine)(s,l,0,c),this._data.drawCenter&&(s.beginPath(),s.arc(a,l,Math.round(3*o),0,2*Math.PI,!0),s.fillStyle=this._data.color,s.fill()),this._data.scissors&&function(e,t,i){const{context:s,bitmapSize:o,horizontalPixelRatio:n,verticalPixelRatio:r}=e,a=24*n,l=Math.round(t-a/2);let c=Math.round(i-a/2);if(c<0)c=0;else{const e=o.height-a;c>e&&(c=e)}s.translate(l,c),s.scale(n,r),s.fillStyle="#0f0f0f",s.fill(uu),s.strokeStyle="#fff",s.lineWidth=1,s.stroke(uu)}(e,a,l)}}!function(e){e.Path="m15.68 3.72-3.82 5.52-3.83-5.52-.28-.42-.42.3a2.84 2.84 0 0 0-.68 3.92l3.27 4.73-1.16 1.68a3.34 3.34 0 0 0-4.26 3.22 3.34 3.34 0 0 0 3.32 3.35 3.34 3.34 0 0 0 3.08-4.6l1-1.44 1.13 1.62a3.34 3.34 0 0 0 3.15 4.42c1.84 0 3.32-1.5 3.32-3.35a3.34 3.34 0 0 0-4.42-3.17l-1.23-1.78 3.22-4.65a2.86 2.86 0 0 0-.69-3.96l-.41-.29-.29.42ZM7.82 16.27c.47 0 .86.39.86.88 0 .48-.39.87-.86.87a.87.87 0 0 1-.86-.87c0-.5.4-.88.86-.88Zm8.36 0c.47 0 .86.39.86.88 0 .48-.4.87-.86.87a.87.87 0 0 1-.86-.87c0-.5.39-.88.86-.88Z",e[e.Size=24]="Size",e.FillColor="#0f0f0f",e.StrokeColor="#fff",e[e.StrokeWidth=1]="StrokeWidth"}(au||(au={})) +;const uu=new Path2D("m15.68 3.72-3.82 5.52-3.83-5.52-.28-.42-.42.3a2.84 2.84 0 0 0-.68 3.92l3.27 4.73-1.16 1.68a3.34 3.34 0 0 0-4.26 3.22 3.34 3.34 0 0 0 3.32 3.35 3.34 3.34 0 0 0 3.08-4.6l1-1.44 1.13 1.62a3.34 3.34 0 0 0 3.15 4.42c1.84 0 3.32-1.5 3.32-3.35a3.34 3.34 0 0 0-4.42-3.17l-1.23-1.78 3.22-4.65a2.86 2.86 0 0 0-.69-3.96l-.41-.29-.29.42ZM7.82 16.27c.47 0 .86.39.86.88 0 .48-.39.87-.86.87a.87.87 0 0 1-.86-.87c0-.5.4-.88.86-.88Zm8.36 0c.47 0 .86.39.86.88 0 .48-.4.87-.86.87a.87.87 0 0 1-.86-.87c0-.5.39-.88.86-.88Z");const _u=Rt.colorsPalette["color-tv-blue-500"];class pu{constructor(e,t){this._rendererData={},this._renderer=new du(this._rendererData),this._source=e,this._pane=t}update(){}renderer(){const e=this._source.selectPointMode().value()!==mt.SelectPointMode.None,t=this._source.lockedPane(),i=(this._source.visible||null!==t)&&(this._source.areLinesVisible||e)&&!this._source.linesShouldBeHidden(),s=this._rendererData;if(!i||null===this._pane)return null;const o=this._source.paneForPointSelect(),r=this._source.isReplaySelection(),a=t??this._source.pane,l=this._pane===a,c=r||(null!==o?a===o&&this._pane===o:l);if(s.scissors=!1,e&&(r||this._source.isOnHoveredChartWidget())&&c){const e=(0,n.ensureNotNull)(this._source.pointToSelect());s.color=this._source.lineColor()||_u,r?(s.lineWidth=2,s.scissors=l):s.lineWidth=1,s.lineStyle=qt.LINESTYLE_SOLID,s.horzLinesVisible=!0,s.vertLinesVisible=!0,s.drawCenter=!1,"time"===e?s.horzLinesVisible=!1:"price"===e&&(s.vertLinesVisible=!1)}else{const e=this._source.properties(),t=mt.tool.value(),i=(0,lo.lastMouseOrTouchEventInfo)(),o=i.isTouch&&!i.stylus&&((0,Lt.isLineToolName)(t)||(0,mt.toolIsMeasure)(t));let n;n=o?_u:e.childs().color.value();const r=e.childs().transparency.value();!o&&r>0&&(n=(0,Ro.generateColor)(n,r)),s.color=n,s.horzLinesVisible=!this._pane.model().chartFloatingTooltipVisible().value()&&this._pane===a&&(this._pane.maximized().value()||!this._pane.collapsed().value()),s.vertLinesVisible=!0,s.lineWidth=e.childs().width.value(),s.lineStyle=e.childs().style.value(),s.drawCenter=o&&this._pane===a}return s.x=this._source.lockedX()??this._source.x,s.y=this._source.lockedY()??this._source.y,this._renderer}}var mu=i(86228);const gu={backgroundColor:(0,Ro.generateColor)(Rt.colorsPalette["color-tv-blue-500"],70),borderColor:(0,Ro.generateColor)(Rt.colorsPalette["color-tv-blue-500"],20)};class fu{constructor(e){this._renderer=new mu.RectangleRenderer,this._rectangle=null,this._crosshair=e}update(){const e=this._crosshair.selection();null!==e&&null!==this._crosshair.pane?this._rectangle=this._crosshair.pane.logicalRectToPixels(e):this._rectangle=null}renderer(){if(!this._rectangle)return null;const e={backcolor:gu.backgroundColor,color:gu.borderColor,fillBackground:!0,linewidth:1,points:[this._rectangle.min,this._rectangle.max],extendLeft:!1,extendRight:!1};return this._renderer.setData(e),this._renderer}}var yu=i(24640),vu=i(50605),Su=i(18185),bu=i(80819),wu=i(4753),Cu=i(25672);const Tu=a.t(null,void 0,i(41643)),Pu=a.t(null,{context:"study"},i(24261)),xu=(0, +hh.getPercentageFormatter)(),Mu=new Su.TimeSpanFormatter,Iu=(0,hh.getVolumeFormatter)(),Au=(0,Rt.getHexColorByName)("color-tv-blue-500"),Lu=(0,Rt.getHexColorByName)("color-ripe-red-400"),ku={bgColorPositive:(0,Ro.generateColor)(Au,80),bgColorNegative:(0,Ro.generateColor)(Lu,80),colorPositive:(0,Rt.getHexColorByName)("color-tv-blue-600"),colorNegative:(0,Rt.getHexColorByName)("color-ripe-red-400"),labelBgColorPositive:Au,labelBgColorNegative:Lu};var Eu;!function(e){e[e.MinArrowDistance=50]="MinArrowDistance"}(Eu||(Eu={}));class Du{constructor(e,t){this._horzTrenRenderer=new bu.TrendLineRenderer,this._vertTrenRenderer=new bu.TrendLineRenderer,this._bgRenderer=new mu.RectangleRenderer,this._labelRenderer=new wu.TextRenderer,this._p1=null,this._p2=null,this._source=e,this._pane=t}update(e){const[t,i]=this._source.measurePoints();if(void 0===i)return this._p1=null,void(this._p2=null);const s=(0,n.ensureNotNull)(this._source.measurePane().value()),o=t.price,r=i.price,a=i.index-t.index,l=(0,yu.forceLTRStr)(""+a),c=(0,n.ensureNotNull)(s.mainDataSource()),h=c.firstValue();if(null===h)return this._p1=null,void(this._p2=null);const d=this._source.model().timeScale().indexToCoordinate(t.index),u=this._source.model().timeScale().indexToCoordinate(i.index),_=s.defaultPriceScale().priceToCoordinate(o,h),p=s.defaultPriceScale().priceToCoordinate(r,h);this._p1=new Vt.Point(d,_),this._p2=new Vt.Point(u,p);const g=this._source.model().timeScale().indexToUserTime(t.index),f=this._source.model().timeScale().indexToUserTime(i.index);let y=null;null!==g&&null!==f&&(y=(f.valueOf()-g.valueOf())/1e3);const v=r-o,S=100*v/Math.abs(o),b=this._pane.model().mainSeries().symbolInfo(),w=b&&(0,hh.getPipFormatter)(b),C=(0,n.ensureNotNull)(c.formatter()),T=(C.formatChange?.(r,o)??C.format(v))+" ("+xu.format(Math.round(100*S)/100)+") "+(w?w.format(v):""),P=null!==y?Mu.format(y):null,x=null!==P?", "+(0,yu.startWithLTR)(P):"";let M=(0,yu.forceLTRStr)(T)+"\n"+Tu.format({count:l})+x;const I=this._source.measureVolume();Number.isNaN(I)||(M+=`\n${Pu} ${Iu.format(I)}`);const A=r=50?Cu.LineEnd.Arrow:Cu.LineEnd.Normal};this._horzTrenRenderer.setData(s)}{const e=Math.round(D.x),t=new Vt.Point(e,this._p1.y),i=new Vt.Point(e,this._p2.y),s={points:[t,i],color:L,linewidth:1,linestyle:qt.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:Cu.LineEnd.Normal,rightend:Math.abs(t.y-i.y)>=50?Cu.LineEnd.Arrow:Cu.LineEnd.Normal};this._vertTrenRenderer.setData(s)}const B={x:0,y:10 +},V=.5*(this._p1.x+this._p2.x),R=this._p2.y,N=new Vt.Point(V,R),O={points:[N],text:M,color:"#FFFFFF",horzAlign:vu.HorizontalAlign.Center,vertAlign:vu.VerticalAlign.Middle,font:m.CHART_FONT_FAMILY,offsetX:B.x,offsetY:B.y,bold:!1,italic:!1,fontsize:12,lineSpacing:8,backgroundColor:k,backgroundTransparency:10,boxPaddingVert:9,boxPaddingHorz:9,backgroundRoundRect:4};this._labelRenderer.setData(O);const F=this._labelRenderer.measure(),W=(0,wu.calculateLabelPosition)(F,this._p1,this._p2,B,this._pane.height());this._labelRenderer.setPoints([W])}renderer(){if(null===this._p1||null===this._p2)return null;const e=new jt.CompositeRenderer;return e.append(this._bgRenderer),e.append(this._horzTrenRenderer),e.append(this._vertTrenRenderer),e.append(this._labelRenderer),e}}var Bu,Vu=i(99875);!function(e){e[e.Light=0]="Light",e[e.Dark=1]="Dark"}(Bu||(Bu={}));class Ru extends vc.MediaCoordinatesPaneRenderer{constructor(e){super(),this._svgMap=new Map,this._data=e,this._svgMap.set(e.theme,this._createSvgRenderer(e.theme))}hitTest(){return null}setData(e){this._svgMap.has(e.theme)||this._svgMap.set(e.theme,this._createSvgRenderer(e.theme)),this._data=e}_drawImpl(e){const{context:t,mediaSize:i}=e,{theme:s,x:o}=this._data,n=this._svgMap.get(s);if(!n)return;const r=n.viewBox(),{width:a,height:l}=r,c=a/2;o+c<0||o-c>i.width||(t.translate(o-c,i.height-l),n.render(t,{targetViewBox:r}))}_createSvgRenderer(e){const t=1===e?Vu.replace("backgroundColor",(0,Rt.getHexColorByName)("color-cold-gray-900")).replace("lineColor",(0,Rt.getHexColorByName)("color-cold-gray-450")):Vu.replace("backgroundColor",(0,Rt.getHexColorByName)("color-white")).replace("lineColor",(0,Rt.getHexColorByName)("color-cold-gray-550"));return(0,Mo.svgRenderer)(t)}}class Nu{constructor(e){this._source=e,this._renderer=new Ru(this._getRenderData(0))}update(){}renderer(){const e=this._source.visible&&this._source.areLinesVisible,t=this._source.lockedX(),i=0===mt.crosshairLock.value()?.type;return e&&i&&null!==t?(this._renderer.setData(this._getRenderData(t+1)),this._renderer):null}_getRenderData(e){return{x:e,theme:this._source.model().dark().value()?1:0}}}var Ou=i(40137),Fu=i(53660);class Wu extends Ou.DataWindowView{constructor(e){super(),this._invalidated=!0,this._dateItem=new Ou.DataWindowItem("",a.t(null,void 0,i(22677)),""),this._timeItem=new Ou.DataWindowItem("",a.t(null,void 0,i(12806)),""),this._model=e,this._items.push(this._dateItem),this._items.push(this._timeItem)}update(){this._invalidated=!0}items(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._items}_updateImpl(){const e=this._model.mainSeries().isDWM();if(this._timeItem.setVisible(!e),this._timeItem.setValue(Fu.notAvailable),this._dateItem.setValue(Fu.notAvailable),this._model.timeScale().isEmpty())return;let t=this._model.crosshairSource().appliedIndex();if(!(0,Hd.isNumber)(t)){const e=this._model.mainSeries().data().last();if(null===e)return;t=e.index}const i=this._model.timeScale().indexToUserTime(t);null!==i&&(this._dateItem.setValue(this._model.dateFormatter().format(i)), +e||this._timeItem.setValue(this._model.timeFormatter().format(i)))}}var Hu=i(23752);const zu=Rt.colorsPalette["color-tv-blue-500"],Uu=a.t(null,{context:"Replay"},i(53310));class ju extends Hu.TimeAxisView{constructor(e,t,i,s=!1){super(e),this._indexProvider=i,this._highlighted=s,this._source=t,this._properties=e.properties().childs().scalesProperties}_getText(e){if(this._source.isReplaySelection()){const t=this._model.timeScale().indexToUserTime(e);return null!==t?`${Uu}: ${this._model.dateTimeFormatter().format(t)}`:""}return super._getText(e)}_getBgColor(){if(this._source.isReplaySelection())return zu;const e=this._properties.childs();return this._highlighted?e.axisLineToolLabelBackgroundColorCommon.value():this._model.dark().value()?e.crosshairLabelBgColorDark.value():e.crosshairLabelBgColorLight.value()}_getIndex(){return this._model.crosshairSource().visible||null!==this._source.lockedPane()?this._indexProvider():null}_isVisible(){return this._properties.childs().showTimeScaleCrosshairLabel.value()}}var Gu,qu=i(19233),$u=i(39697),Ku=i(49156);!function(e){e[e.LineWidth=36]="LineWidth",e[e.CircleBorderWidth=1]="CircleBorderWidth",e[e.AnimationDuration=4e3]="AnimationDuration"}(Gu||(Gu={}));const Yu=(0,Ro.applyAlpha)(Ku.colors.colorRipeRed500,.25),Zu=(0,Ro.applyAlpha)(Ku.colors.colorRipeRed500,.03);class Xu{constructor(e){this._invalidated=!0,this._circleRenderer=new $u.CircleRenderer,this._source=e}update(e){this._invalidated=!0}renderer(e){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._circleRenderer}_updateImpl(){const e=this._source.originX(),t=this._source.originY();Number.isFinite(e)&&Number.isFinite(t)?this._circleRenderer.setData({center:(0,Vt.point)(e,t),radius:18,lineWidth:1,color:Zu,backColor:Yu,disableInteractions:!0}):this._circleRenderer.setData(null)}}class Ju{constructor(e){this._activeHighlighter=null,this._highlighters=new Map,this._toolsFactory=null,this._throttleUpdateHighlighters=(0,o.default)((()=>{const e=(0,wi.sourceChangeEvent)(this._crosshair.id());let t=!1;const i=Array.from(this._highlighters.keys());for(const s of i){const i=[];for(const t of(0,n.ensureDefined)(this._highlighters.get(s)))t.animationProgress()<1?(t.updateAllViews(e),i.push(t)):t.destroy?.();i.length>0?(this._highlighters.set(s,i),t=!0):this._highlighters.delete(s)}t&&this._crosshair.model().updateSource(this._crosshair)}),20,{leading:!0}),this._crosshair=e,this._view=new Xu(e),this._currentTool=mt.tool.spawn(),this._currentTool.subscribe((e=>{(0,mt.toolIsDemonstration)(e)&&null===this._toolsFactory&&(this._toolsFactory=new Jl.AsyncResourceWrapper((async()=>{const e=await i.e(360).then(i.bind(i,76196));return(t,i,s,o)=>new e.LineToolDemonstrationHighlighter(t,i,s,o)})()))}),{callWithLast:!0})}destroy(){for(const[,e]of this._highlighters)for(const t of e)t.destroy?.();this._currentTool.destroy()}update(e){this._view.update(e);for(const[,t]of this._highlighters)for(const i of t)i.updateAllViews(e)}paneViews(e){const t=[];e===this._crosshair.pane&&(0, +mt.toolIsDemonstration)(mt.cursorTool.value())&&t.push(this._view);for(const i of this._highlighters.get(e)??[]){const s=i.paneViews(e);s&&t.push(...s)}return this._highlighters.size>0&&this._throttleUpdateHighlighters(),t}createHighlighter(){const e=this._toolsFactory?.get();if(!e)return;this._activeHighlighter=e(this._crosshair.model(),Yu,36,4e3);const t=(0,n.ensureNotNull)(this._crosshair.pane),i=(0,n.ensureNotNull)(t.mainDataSource());(0,zs.prepareLineToolPropertiesByOwnerSource)(this._activeHighlighter.properties(),i),this._activeHighlighter.setOwnerSource(i);const s=this._highlighters.get(t)??[];s.push(this._activeHighlighter),this._highlighters.set(t,s)}addHighlighterPosition(e){this._activeHighlighter?.addPoint(e),this.update((0,wi.sourceChangeEvent)(this._crosshair.id()))}isThereUnfinishedHighlighter(){return null!==this._activeHighlighter}finishHighlighter(){this._activeHighlighter?.finish(),this._activeHighlighter=null,this._throttleUpdateHighlighters()}}const Qu={menuEnabled:!1,menuForMainSourceOnly:!1,disableTradingMenuActions:!1,disableDrawHorizLineMenuAction:!1};let e_=0;const t_=(0,ne.getLogger)("Chart.Crosshair");class i_ extends bi.DataSource{constructor(e,t,i){super(),this.pane=null,this.price=NaN,this.index=NaN,this.visible=!0,this.areLinesVisible=!0,this.x=NaN,this.y=NaN,this._lockData=null,this._crosshairDemonstration=new Ju(this),this._measurePane=new O.WatchedValue(null),this._measurePaneViewCache=new WeakMap,this._startMeasurePoint=null,this._endMeasurePoint=null,this._lastValidMeasurePoint=null,this._normalizedMeasurePoints=null,this._linesShouldBeHidden=!1,this._isOnHoveredChartWidget=!1,this._crossHairSelectPointMode=new O.WatchedValue(mt.SelectPointMode.None),this._selectionPane=null,this._selectionView=new fu(this),this._selectionStartPoint=null,this._timeLockPaneView=null,this._crosshairPaneViewCache=new WeakMap,this._pointSelectionPaneViewCache=new WeakMap,this._priceAxisViews=new Map,this._panePriceAxisViews=new Map,this._startMeasurePriceAxisViews=new Map,this._endMeasurePriceAxisViews=new Map,this._originX=NaN,this._originY=NaN,this._subscribed=!1,this._movedDelegate=new ae.Delegate,this._pointSelectedDelegate=new ae.Delegate,this._requestedPoint=null,this._paneForRequestedPoint=null,this._selectLineColor=null,this._volumeCalculator=null,this._selectFromAllChartsIfOutOfData=null,this._currentMeasurePointsetAndSymbolId=null,this._model=e,this._options=Object.assign({},Qu,i||{}),this._dataWindowView=new Wu(e),this.setSelectionEnabled(!1);const s=e=>t=>t===(0,n.ensureNotNull)(this._measurePane.value()).defaultPriceScale()?e():null;this._currentPosPriceProvider=e=>{const t=(0,n.ensureNotNull)(this.pane);if(e===t.defaultPriceScale())return this.price;const i=(0,n.ensureNotNull)(t.defaultPriceScale().mainSource()).firstValue();if(null===i)return null;const s=t.defaultPriceScale().priceToCoordinate(this.price,i),o=(0,n.ensureNotNull)(e.mainSource()).firstValue();return null===o?null:e.coordinateToPrice(s,o)},this._startMeasurePriceProvider=s((()=>(0, +n.ensureNotNull)(this._startMeasurePoint).price)),this._endMeasurePriceProvider=s((()=>(0,n.ensureNotNull)(this._lastMeasurePoint()).price)),this._properties=t;this._timeAxisView=new ju(e,this,(()=>this.appliedIndex()),!1),this._startMeasureTimeAxisView=new ju(e,this,(()=>(0,n.ensureNotNull)(this._startMeasurePoint).index),!0),this._endMeasureTimeAxisView=new ju(e,this,(()=>(0,n.ensureNotNull)(this._lastMeasurePoint()).index),!0),this._cursorTool=mt.cursorTool.spawn(),e.readOnly()||this._cursorTool.subscribe((e=>this.areLinesVisible="arrow"!==e),{callWithLast:!0}),this._crosshairLock=mt.crosshairLock.spawn(),this._showPlusButtonOnCursor=lu.showPlusButtonOnCursor.spawn();const o=()=>{this.updateAllViews((0,wi.sourceChangeEvent)(this.id())),this._model.lightUpdate()};this._crosshairLock.subscribe(o),this._showPlusButtonOnCursor.subscribe(o)}destroy(){null!==this._volumeCalculator&&this._volumeCalculator.destroy(),this._measurePane.setValue(null),this._crosshairLock.destroy(),this._showPlusButtonOnCursor.destroy(),this._cursorTool.destroy(),this._removeMeasurePointset(),this._crosshairDemonstration.destroy(),super.destroy()}name(){return"Crosshair"}moved(){return this._movedDelegate}originX(){return this._originX}originY(){return this._originY}saveOriginCoords(e,t){this._originX=e,this._originY=t}clearOriginCoords(){this._originX=NaN,this._originY=NaN}currentPoint(){return new Vt.Point(this.x,this.y)}model(){return this._model}appliedIndex(){return this._getLockData().index??this.index}lockedX(){return this._getLockData().xCoord??null}lockedY(){return this._getLockData().yCoord??null}lockedPane(){const e=mt.crosshairLock.value();return null===e||1!==e.type?null:this._model.id()===e.modelId?this._model.paneForId(e.paneId):this._model.mainPane()}invalidateLockPosition(){this._lockData=null}startMeasurePoint(){return this._startMeasurePoint||null}endMeasurePoint(){return this._endMeasurePoint||null}measureVolume(){if(null===this._volumeCalculator)return NaN;const[e,t]=this.measurePoints();return void 0===t?NaN:this._volumeCalculator.volume(e.index,t.index)}measurePane(){return this._measurePane.readonly()}crosshairDemonstration(){return this._crosshairDemonstration}startMeasuring(e,t){this._startMeasurePoint=e,this._measurePane.setValue(t),t.containsMainSeries()&&((0,n.assert)(null===this._volumeCalculator),this._volumeCalculator=new qu.SeriesTimeRangeVolumeCalculator(this.model().mainSeries())),this._model.updatePane(t)}finishMeasure(e){this._endMeasurePoint=e,this._createMeasurePointset((0,n.ensureNotNull)(this._startMeasurePoint),this._endMeasurePoint)}clearMeasure(){this._removeMeasurePointset(),this._measurePane.setValue(null),delete this._startMeasurePoint,delete this._endMeasurePoint,delete this._lastValidMeasurePoint,this._model.lightUpdate(),null!==this._volumeCalculator&&(this._volumeCalculator.destroy(),this._volumeCalculator=null)}measurePoints(){const e=[(0,n.ensureNotNull)(this._startMeasurePoint)],t=this._lastMeasurePoint();return null!==t&&e.push(t),e}startSelection(e){ +this._selectionStartPoint=this.currentLogicalPoint(),this._selectionPane=e}clearSelection(){this._selectionStartPoint=null,this._selectionPane=null}selection(){return this._selectionStartPoint?{p1:this._selectionStartPoint,p2:this.currentLogicalPoint()}:null}currentLogicalPoint(){return{index:this.appliedIndex(),price:this.price}}selectPointMode(){return this._crossHairSelectPointMode}lineColor(){return this._selectLineColor}cancelRequestSelectPoint(){this._crossHairSelectPointMode.value()!==mt.SelectPointMode.None&&this._setSelectPointModeState(mt.SelectPointMode.None),this._selectFromAllChartsIfOutOfData=null}requestSelectPoint(e){(0,n.assert)(this._crossHairSelectPointMode.value()===mt.SelectPointMode.None,"Point already requested");const{pointType:t,pane:i,lineColor:s=null,selectFromAllChartsIfOutOfData:o,selectPointMode:r=mt.SelectPointMode.Study}=e;i&&((0,n.assert)(-1!==this._model.panes().indexOf(i),"Chartmodel doesn't contains specified pane"),this._paneForRequestedPoint=i,this._model.panesCollectionChanged().subscribe(this,this._paneCollectionChanged)),this._selectLineColor=s,this._requestedPoint=t,this._selectFromAllChartsIfOutOfData=o??null,this._setSelectPointModeState(r)}onPointSelected(){return this._pointSelectedDelegate}trySelectCurrentPoint(){const e=this.pane;if(!e)return;const t=(0,n.ensureNotNull)(this._requestedPoint);let i=null;if(!this._model.mainSeries().bars().search(this.index,dd.PlotRowSearchMode.Exact)&&"price"!==t&&(this._selectFromAllChartsIfOutOfData&&(i=Math.min(...Array.from(mt.barTimesUnderCursor.values()))??null),null===i))return;if(this._paneForRequestedPoint&&this._paneForRequestedPoint!==e)return;let s,o=i;if("price"===t||null!==i||(o=this._model.timeScale().indexToTimePoint(this.index),null!==o)){if("time"!==t){const t=e.mainDataSource();if(null===t)return;const i=t.firstValue(),o=t.priceScale();if(null===i||null===o)return;s=o.coordinateToPrice(this.y,i)}this._setSelectPointModeState(mt.SelectPointMode.None),this._pointSelectedDelegate.fire({time:o??void 0,price:s},e)}}isOnHoveredChartWidget(){return this._isOnHoveredChartWidget}setOnHoveredChartWidget(e){this._isOnHoveredChartWidget=e}isReplaySelection(){return!1}clearPosition(){this.visible=!1,this.index=NaN,this.price=NaN,this.x=NaN,this.y=NaN,this.pane=null,this.clearOriginCoords(),this._updateVisibilityDependentPaneViews()}setPosition(e,t,i){this._subscribed||(this._model.mainSeries().onRestarted().subscribe(this,this.clearMeasure),this._subscribed=!0),this.visible=!0;const s=this._model.id(),o=this._model.mainSeries().bars().search(this.index,dd.PlotRowSearchMode.NearestRight);return o&&mt.barTimesUnderCursor.set(s,o.value[0]),this._tryToUpdateViews(e,t,i)}setLinesShouldBeHidden(e){this._linesShouldBeHidden=e}linesShouldBeHidden(){return this._linesShouldBeHidden}handleContextMenuEvent(e){this._crossHairSelectPointMode.value()!==mt.SelectPointMode.None&&this._setSelectPointModeState(mt.SelectPointMode.None)}properties(){return this._properties}priceAxisViews(e,t){ +const i=null===this._requestedPoint||"time"!==this._requestedPoint||!this._isOnHoveredChartWidget,s=[];return(this.lockedPane()??this.pane)===e&&i&&s.push(this._createPriceAxisViewOnDemand(this._priceAxisViews,this._panePriceAxisViews,e,t,this._currentPosPriceProvider,ou,!0)[0]),this._startMeasurePoint&&s.push(this._createPriceAxisViewOnDemand(this._startMeasurePriceAxisViews,null,e,t,this._startMeasurePriceProvider,nu)[0]),this._lastMeasurePoint()&&s.push(this._createPriceAxisViewOnDemand(this._endMeasurePriceAxisViews,null,e,t,this._endMeasurePriceProvider,nu)[0]),s}timeAxisViews(){const e=[],t=null===this._requestedPoint||"price"!==this._requestedPoint||!this._isOnHoveredChartWidget;return this._linesShouldBeHidden||!this.visible&&null===mt.crosshairLock.value()||!t||e.push(this._timeAxisView),this._startMeasurePoint&&e.push(this._startMeasureTimeAxisView),this._lastMeasurePoint()&&e.push(this._endMeasureTimeAxisView),e}paneViews(e){if(void 0===e||e.mode()!==zi.PaneMode.Regular)return null;const t=[];if(this.isReplaySelection()){let i=this._pointSelectionPaneViewCache.get(e);i||(i=new CrosshairPointSelectionPaneView(this,e,this._model),this._pointSelectionPaneViewCache.set(e,i)),t.push(i)}let i=this._crosshairPaneViewCache.get(e);if(i||(i=new pu(this,e),this._crosshairPaneViewCache.set(e,i)),t.push(i),e===this._selectionPane&&t.push(this._selectionView),e===this._measurePane.value()){let i=this._measurePaneViewCache.get(e);i||(i=new Du(this,e),this._measurePaneViewCache.set(e,i)),i.update((0,wi.sourceChangeEvent)(this.id())),t.push(i)}if((lu.addPlusButtonProperty.value()||this._showPlusButtonOnCursor.value())&&1!==mt.crosshairLock.value()?.type){const i=e===this.pane,s=!ze.CheckMobile.any()||window.screen.width>=320,o=mt.tool.value(),n=(0,Lt.isLineToolName)(o),r=null!==this._model.lineBeingEdited()||null!==this._model.lineBeingCreated()||this._model.sourcesBeingMoved().length>0||null!==this._model.customSourceBeingMoved()||(0,mt.toolIsMeasure)(o);if(i&&this._isOnHoveredChartWidget&&this._crossHairSelectPointMode.value()===mt.SelectPointMode.None&&s&&!n&&!r){const i=e.mainDataSource();if(null!==i){const s=i.priceScale();if(null!==s){const i=this._createPriceAxisViewOnDemand(this._priceAxisViews,this._panePriceAxisViews,e,s,this._currentPosPriceProvider,ou,!0)[1];null!==i&&t.push(i)}}}}return 0===mt.crosshairLock.value()?.type&&(null===this._timeLockPaneView&&(this._timeLockPaneView=new Nu(this)),t.push(this._timeLockPaneView)),t.push(...this._crosshairDemonstration.paneViews(e)),t}dataWindowView(){return this._dataWindowView}updateAllViews(e){this._priceAxisViews.forEach((t=>{t.forEach((t=>t.update(e)))})),this._panePriceAxisViews.forEach((t=>{t.forEach((t=>t.update(e)))})),this._startMeasurePoint&&(this._startMeasurePriceAxisViews.forEach((t=>{t.forEach((t=>t.update(e)))})),this._startMeasureTimeAxisView.update(e)),this._lastMeasurePoint()&&(this._endMeasurePriceAxisViews.forEach((t=>{t.forEach((t=>t.update(e)))})),this._endMeasureTimeAxisView.update(e)),this._timeAxisView.update(e),this._selectionView.update(), +this._dataWindowView.update(),this._crosshairDemonstration.update(e),this._updateVisibilityDependentPaneViews()}isMenuEnabled(){return!0}isHoveredEnabled(){return lu.addPlusButtonProperty.value()||this._showPlusButtonOnCursor.value()}isHovered(){return this._model.hoveredSource()===this}pointToSelect(){return this._requestedPoint}paneForPointSelect(){return this._paneForRequestedPoint}contextMenuStatName(){return"CrossHairContextMenu"}restart(){this._currentMeasurePointsetAndSymbolId=null,this._normalizedMeasurePoints&&this._createMeasurePointsetWithNormalizedPoints(this._normalizedMeasurePoints)}_lastMeasurePoint(){return this._endMeasurePoint?this._endMeasurePoint:(null!==this.pane&&this._measurePane.value()===this.pane&&(this._lastValidMeasurePoint={price:this._model.magnet().align(this.price,this.index,this.pane),index:this.index}),this._lastValidMeasurePoint||null)}_createPriceAxisViewOnDemand(e,t,i,s,o,r,a=!1){let l=e.get(i),c=null!==t?t.get(i):void 0;void 0===l&&(l=new Map,e.set(i,l),this.isMenuEnabled()&&null!==t&&(c=new Map,t.set(i,c)),a&&i.onDestroyed().subscribe(this,(()=>this._onPaneDestroyed(i))));let h=l.get(s);if(void 0===h){if(h=new r(this,i,s,o),l.set(s,h),void 0!==c){const e=new hu(h,this,s,this._model,this._options);c.set(s,e)}a&&s.lastSourceRemoved().subscribe(this,(()=>this._onPriceScaleCleared(s)))}let d=null;return void 0!==c&&(d=(0,n.ensureDefined)(c.get(s))),[h,d]}_onPaneDestroyed(e){e.onDestroyed().unsubscribeAll(this),this._priceAxisViews.delete(e),this._panePriceAxisViews.delete(e),this._startMeasurePriceAxisViews.delete(e),this._endMeasurePriceAxisViews.delete(e)}_onPriceScaleCleared(e){e.lastSourceRemoved().unsubscribeAll(this),this._priceAxisViews.forEach((t=>t.delete(e))),this._panePriceAxisViews.forEach((t=>t.delete(e))),this._startMeasurePriceAxisViews.forEach((t=>t.delete(e))),this._endMeasurePriceAxisViews.forEach((t=>t.delete(e)))}_tryToUpdateViews(e,t,i){return!!this._tryToUpdateData(e,t,i)&&(this.updateAllViews((0,wi.sourceChangeEvent)(this.id())),this._movedDelegate.fire({index:this.index,price:this.price}),!0)}_tryToUpdateData(e,t,i){const s=this.x,o=this.y,r=this.price,a=this.index,l=this.pane,c=this._priceScaleByPane(i);if(this.index=e,this.x=isNaN(e)?NaN:this._model.timeScale().indexToCoordinate(e),null!==c&&null!==i){this.pane=i,this.price=t;const e=(0,n.ensureNotNull)(i.mainDataSource()).firstValue();this.y=null===e?NaN:c.priceToCoordinate(t,e)}else this.pane=null,this.price=NaN,this.y=NaN;return s!==this.x||o!==this.y||a!==this.index||r!==this.price||l!==this.pane}_priceScaleByPane(e){return e&&!e.defaultPriceScale().isEmpty()?e.defaultPriceScale():null}_setSelectPointModeState(e){e===mt.SelectPointMode.None&&(this._requestedPoint=null,this._selectLineColor=null,this._paneForRequestedPoint&&(this._paneForRequestedPoint=null,this._model.panesCollectionChanged().unsubscribe(this,this._paneCollectionChanged))),mt.activePointSelectionMode.setValue(e),this._crossHairSelectPointMode.setValue(e),this._model.lightUpdate()}_paneCollectionChanged(e){ +const t=this._paneForRequestedPoint;null!==t&&-1===e.indexOf(t)&&this.cancelRequestSelectPoint()}_updateVisibilityDependentPaneViews(){for(const e of this.model().panes())this._pointSelectionPaneViewCache.get(e)?.update()}_getLockData(){if(null===this._lockData){const e=mt.crosshairLock.value();if(null===e)this._lockData={};else{const t=this._model.timeScale(),i=t.points().roughIndex(e.time)??void 0,s=void 0===i?void 0:t.indexToCoordinate(i);switch(e.type){case 0:this._lockData={index:i,xCoord:s};break;case 1:{let t;const o=this.lockedPane();if(null!==o){const i=o.mainDataSource();if(null!==i){const s=i.firstValue(),o=i.priceScale();null!==o&&null!==s&&(t=o.priceToCoordinate(e.price,s))}}this._lockData={index:i,xCoord:s,yCoord:t}}}}}return this._lockData}_createMeasurePointsetWithNormalizedPoints(e){const t=this._model.mainSeries().seriesSource().symbolInstanceId();if(null===t)return;this._removeMeasurePointset(),++e_,this._currentMeasurePointsetAndSymbolId={measurePointsetId:e_,symbolId:t},this._normalizedMeasurePoints=e;const i=(0,Ai.getServerInterval)(this._model.mainSeries().interval());this._model.chartApi().createPointset(this._currentMeasurePointsetIdWithPrefix(),"turnaround",this._currentMeasurePointsetAndSymbolId.symbolId,i,e,this._onPointsetResponse.bind(this))}_createMeasurePointset(e,t){const i=this._normalizePoint(e),s=this._normalizePoint(t),o=[[i.time_t,i.offset],[s.time_t,s.offset]];this._createMeasurePointsetWithNormalizedPoints(o)}_removeMeasurePointset(){null!==this._currentMeasurePointsetAndSymbolId&&this._model.chartApi().isConnected().value()&&this._model.chartApi().removePointset(this._currentMeasurePointsetIdWithPrefix()),this._currentMeasurePointsetAndSymbolId=null,this._normalizedMeasurePoints=null}_currentMeasurePointsetIdWithPrefix(){return"pointsetMeasure_"+(0,n.ensureNotNull)(this._currentMeasurePointsetAndSymbolId).measurePointsetId}_normalizePoint(e){return{...this._model.timeScale().normalizeBarIndex(e.index),price:e.price}}_onPointsetResponse(e){if("pointset_error"===e.method)return void t_.logError(`Error getting pointset: ${e.params[0]} ${e.params[1]}`);if(e.params.customId!==this._currentMeasurePointsetIdWithPrefix())return;if(null===this._startMeasurePoint||null===this._endMeasurePoint)return;const t=e.params.plots;if(2!==t.length)return;const i=t[0].value[0],s=t[1].value[0];this._startMeasurePoint.index=i,this._endMeasurePoint.index=s,this.updateAllViews((0,wi.sourceChangeEvent)(this.id())),this._model.updateSource(this)}}var s_=i(45720),o_=i(22033),n_=i(97902);const r_=(0,ne.getLogger)("Chart.ApplyPreferencesToAllCharts"),a_={color:"",style:0},l_={autoScale:!1,autoScaleDisabled:!1,lockScale:!1,percentage:!1,percentageDisabled:!1,log:!1,logDisabled:!1,alignLabels:!1,isInverted:!1,indexedTo100:!1},c_={backgroundType:co.ColorType.Solid,background:"",backgroundGradientStartColor:"",backgroundGradientEndColor:"",topMargin:0,bottomMargin:0,gridLinesMode:"both",horzGridProperties:(0,ge.deepExtend)({},a_),vertGridProperties:(0,ge.deepExtend)({},a_),crossHairProperties:(0, +ge.deepExtend)({},{color:"",style:0,transparency:0,width:0}),legendProperties:(0,ge.deepExtend)({},{showStudyArguments:!1,showStudyTitles:!1,showStudyValues:!1,showSeriesTitle:!1,showSeriesOHLC:!1,showLegend:!1,showLastDayChange:!1,showBarChange:!0,showVolume:!1,showPriceSource:!1,showBackground:!0,backgroundTransparency:0,showLogo:!0,showTradingButtons:!0,showTradingButtonsMobile:!0,showSeriesLegendCloseOnMobile:!0,barChangeUpColor:"",barChangeDownColor:"",useBarChangeCustomColors:!1}),axisProperties:(0,ge.deepExtend)({},l_),separatorColor:""},h_={lineColor:"",textColor:"",fontSize:0,scaleSeriesOnly:!1,showSeriesLastValue:!1,seriesLastValueMode:n_.PriceAxisLastValueMode.LastValueAccordingToScale,showSeriesPrevCloseValue:!1,showStudyLastValue:!1,showSymbolLabels:!1,showStudyPlotLabels:!1,showBidAskLabels:!1,showPrePostMarketPriceLabel:!0,showFundamentalLastValue:!1,showFundamentalNameLabel:!1,showPriceScaleCrosshairLabel:!0,showTimeScaleCrosshairLabel:!0},d_={...h_},u_={visible:!1,futureOnly:!1,breaks:(0,ge.deepExtend)({},{color:"",visible:!1,style:0,width:0})},__={style:0,minTick:"",showPriceLine:!1,priceLineWidth:0,priceLineColor:"",baseLineColor:"",showPrevClosePriceLine:!1,showCountdown:!0,prevClosePriceLineWidth:0,sessionId:"regular",prevClosePriceLineColor:"",esdShowDividends:!1,esdShowSplits:!1,esdShowEarnings:!1,esdShowBreaks:!1,showContinuousContractSwitches:!1,showContinuousContractSwitchesBreaks:!1,showFuturesContractExpiration:!1,showLastNews:!1,dividendsAdjustment:!1,backAdjustment:!1,settlementAsClose:!0,statusViewStyle:(0,ge.deepExtend)({},{fontSize:16,showExchange:!0,showInterval:!0,symbolTextSource:"description"}),priceAxisProperties:(0,ge.deepExtend)({},l_),highLowAvgPrice:(0,ge.deepExtend)({},{highLowPriceLinesVisible:!1,highLowPriceLabelsVisible:!1,averageClosePriceLabelVisible:!1,averageClosePriceLineVisible:!1,highLowPriceLinesColor:"",highLowPriceLinesWidth:0,averagePriceLineColor:"",averagePriceLineWidth:0}),candleStyle:(0,ge.deepExtend)({},o_.candleStylePreferencesDefault),hollowCandleStyle:(0,ge.deepExtend)({},o_.hollowCandlePreferencesStyleDefault),barStyle:(0,ge.deepExtend)({},o_.barStylePreferencesDefault),lineStyle:(0,ge.deepExtend)({},o_.lineStyleDefault),lineWithMarkersStyle:(0,ge.deepExtend)({},o_.lineStyleDefault),steplineStyle:(0,ge.deepExtend)({},o_.lineStyleDefault),areaStyle:(0,ge.deepExtend)({},o_.areaStylePreferencesDefault),hlcAreaStyle:(0,ge.deepExtend)({},o_.hlcAreaStylePreferencesDefault),baselineStyle:(0,ge.deepExtend)({},o_.baselineStylePreferencesDefault),hiloStyle:(0,ge.deepExtend)({},o_.hiloStylePreferencesDefault),haStyle:(0,ge.deepExtend)({},o_.haStylePreferencesDefault),renkoStyle:(0,ge.deepExtend)({},o_.renkoStylePreferencesDefault),pbStyle:(0,ge.deepExtend)({},o_.pbStylePreferencesDefault),kagiStyle:(0,ge.deepExtend)({},o_.kagiStylePreferencesDefault),pnfStyle:(0,ge.deepExtend)({},o_.pnfStylePreferencesDefault),rangeStyle:(0,ge.deepExtend)({},o_.rangeStylePreferencesDefault),columnStyle:(0,ge.deepExtend)({},o_.columnStylePreferencesDefault),hlcBarsStyle:(0, +ge.deepExtend)({},o_.hlcBarsStylePreferencesDefault)},p_={priceScaleSelectionStrategyName:"auto",timeScale:(0,ge.deepExtend)({},{defaultRightOffset:0,defaultRightOffsetPercentage:5,usePercentageRightOffset:!1}),mainSeries:(0,ge.deepExtend)({},__),sessions:(0,ge.deepExtend)({},Ql.sessionsPreferencesDefault),paneProperties:(0,ge.deepExtend)({},c_),chartEventsSourceProperties:(0,ge.deepExtend)({},u_),tradingProperties:(0,ge.deepExtend)({},Co.tradingPreferencesDefault)},m_={timezone:"",inactivityGaps:!1,scalesProperties:(0,ge.deepExtend)({},d_),...p_},g_={scalesProperties:(0,ge.deepExtend)({},h_),...p_};function f_(e,t,i,s,o=!0){if(void 0===t[e])return r_.logDebug(`We haven't had this property ${s}.${e} yet, please, remove it from whiteList`),null;if((0,tt.isObject)(i[e])){const n=Object.keys(i[e]);let r="";return n.map((n=>({[n]:f_(n,t[e],i[e],`${s}.${e}`,o)}))).reduce(((e,t)=>(r=Object.keys(t)[0],e[r]=t[r],e)),{})}return o?t[e].value():t[e]}var y_,v_=i(37293);!function(e){e.StudyCannotBeChild="cannot_be_child",e.StubWasRemoved="stub_was_removed",e.CannotGetMetainfo="cannot_get_metainfo",e.CannotCompilePub="cannot_compile_pub",e.Cancelled="cancelled",e.Unknown="unknown"}(y_||(y_={}));const S_=(0,ne.getLogger)("Chart.Studies.StudyInserter"),b_=/^PUB;.*/;class w_{constructor(e,t){this._parentSources=[],this._propsState=void 0,this._preferredPriceScale=void 0,this._allowChangeCurrency=!1,this._allowChangeUnit=!1,this._paneSize=void 0,this._forceOverlay=!1,this._inserterImpl=t,this._studyDescriptor=e}setParentSources(e){this._parentSources=e}setPaneSize(e){this._paneSize=e}setPreferredPriceScale(e){this._preferredPriceScale=e}setAllowChangeCurrency(e){this._allowChangeCurrency=e}setAllowChangeUnit(e){this._allowChangeUnit=e}setForceOverlay(e){this._forceOverlay=e}setPropertiesState(e){this._propsState=e}setTargetPriceScaleMode(e){this._targetPriceScaleMode=e}async insert(e,t,i){let s=null;var o;i||(s=void 0!==(o=this._inserterImpl).createStub&&void 0!==o.removeStub?this._inserterImpl.createStub():null);const n=(e,t)=>{if(i){const s=(0,et.default)(e)?{error:e}:{error:e.message,editorError:e};i.setStatus({type:gh.StudyStatusType.Error,errorDescription:s}),t&&i.setMetaInfo(t),this._inserterImpl.storeFailedStub(i)}};let r,a,l=!0;try{r=await(0,os.studyMetaInfoRepository)().findById(this._studyDescriptor)}catch(e){S_.logWarn(`Cannot get study ${JSON.stringify(this._studyDescriptor)}`);const t=this._studyDescriptor.pineId;b_.test(t);return n("Error: cannot compile script"),Promise.reject(y_.CannotGetMetainfo)}finally{null!==s&&(l=this._inserterImpl.removeStub(s))}if(!l)return Promise.reject(y_.StubWasRemoved);if(void 0!==t&&t.cancelled)return Promise.reject(y_.Cancelled);if(!this._canApplyStudyToParent(r))return n("Error: cannot be child"),Promise.reject(y_.StudyCannotBeChild);const c={...r.defaults.inputs};let d={};if(void 0!==e){const t=ns.StudyMetaInfo.getStudyPropertyRootName(r),i=(0,tt.clone)((0,h.defaults)(t));(0,tt.merge)(c,i.inputs);const s=await e(c,r.inputs,r);d=s.inputs,this._parentSources=s.parentSources??[]} +if(void 0!==t&&t.cancelled)return Promise.reject(y_.Cancelled);const u=this._insertStudy(r,d,i);if(null===u)return n("Error: unknown error"),Promise.reject(y_.Unknown);await u.startPromise;const _=await u.study;return a?Promise.reject(a):_}_insertStudy(e,t,i){return this._inserterImpl.createStudy(e,t,null,i,this._propsState,this._forceOverlay,this._parentSources,this._preferredPriceScale,this._allowChangeCurrency,this._allowChangeUnit,this._paneSize,this._targetPriceScaleMode)}_canApplyStudyToParent(e){return 0===this._parentSources.length||ns.StudyMetaInfo.canBeChild(e)}}class C_{constructor(e){this._priceSourceNamesById=new Map,e.forEach((e=>this._priceSourceNamesById.set(e.id,e.name)))}name(e){return this._priceSourceNamesById.get(e)??null}priceSourcesChanged(e){return e.length!==this._priceSourceNamesById.size}}var T_=i(2072);class P_{constructor(){this._widgets=null,this._provider=new T_.WatchedValue(null),this._watermarkProperties=uc();const e=(0,n.ensureDefined)(this._watermarkProperties.child("color"));this._colorWatchedValue=(0,ye.convertPropertyToWatchedValue)(e);const t=(0,n.ensureDefined)(this._watermarkProperties.child("ticker"));this._tickerVisibilityWatchedValue=(0,ye.convertPropertyToWatchedValue)(t);const i=(0,n.ensureDefined)(this._watermarkProperties.child("interval"));this._intervalVisibilityWatchedValue=(0,ye.convertPropertyToWatchedValue)(i);const s=(0,n.ensureDefined)(this._watermarkProperties.child("description"));this._descriptionVisibilityWatchedValue=(0,ye.convertPropertyToWatchedValue)(s);const o=(0,n.ensureDefined)(this._watermarkProperties.child("custom"));this._customVisibilityWatchedValue=(0,ye.convertPropertyToWatchedValue)(o);let r=!1;const a=()=>{r=!0,this._visibilityWatchedValue.setValue(this._tickerVisibilityWatchedValue.value()||this._intervalVisibilityWatchedValue.value()||this._descriptionVisibilityWatchedValue.value()),r=!1};this._visibilityWatchedValue=new T_.WatchedValue(!1),a(),this._tickerVisibilityWatchedValue.subscribe(a),this._intervalVisibilityWatchedValue.subscribe(a),this._descriptionVisibilityWatchedValue.subscribe(a),this._visibilityWatchedValue.subscribe((e=>{r||(this._tickerVisibilityWatchedValue.setValue(e),this._intervalVisibilityWatchedValue.setValue(e),this._descriptionVisibilityWatchedValue.setValue(e))}))}setWidgetCollection(e){this._widgets=e}setContentProvider(e){this._provider.setValue(e),this._widgets&&this._widgets.getAll().forEach((e=>{e.model().model().lightUpdate()}))}provider(){return this._provider}ready(){return null!==this._widgets}destroy(){this._colorWatchedValue.destroy(),this._visibilityWatchedValue.destroy(),this._tickerVisibilityWatchedValue.destroy(),this._intervalVisibilityWatchedValue.destroy(),this._descriptionVisibilityWatchedValue.destroy()}visibility(){return this._visibilityWatchedValue}tickerVisibility(){return this._tickerVisibilityWatchedValue}intervalVisibility(){return this._intervalVisibilityWatchedValue}descriptionVisibility(){return this._descriptionVisibilityWatchedValue}customVisibility(){ +return this._customVisibilityWatchedValue}color(){return this._colorWatchedValue}static getInstance(){return null===this._instance&&(this._instance=new P_),this._instance}}P_._instance=null;var x_=i(19136);class M_ extends Ad.CustomSourceBase{constructor(e,t){super(e,t),this._studySource=null,this._metaInfo=null,this._destroyed=!1,this._isStarted=!1,this._session="session",this._requestAndProcessMetaInfo(),t.timeScale().onReset().subscribe(this,this._clearData)}start(){this._isStarted=!0,null!==this._studySource&&this._studySource.start()}restart(){this._clearData(),l.enabled("stop_study_on_restart")&&this.stop(),this.start()}isStarted(){return this._isStarted}stop(){this._isStarted=!1,null!==this._studySource&&this._studySource.stop()}isHoveredEnabled(){return!1}updateAllViews(e){}destroy(){this._destroyed=!0,null!==this._studySource&&(this._studySource.dataCleared().unsubscribeAll(this),this._studySource.dataUpdated().unsubscribeAll(this),this._studySource.destroy(),this._studySource=null),this._model.timeScale().onReset().unsubscribeAll(this)}series(){return this._model.mainSeries()}priceScale(){return this.series().priceScale()}valueAt(){return null}metaInfo(){return(0,n.ensureNotNull)(this._metaInfo)}setSession(e){this._session=e||"session",null!==this._studySource&&this._studySource.setInputs({display_session:e})}async _requestAndProcessMetaInfo(){if(this._model.isSnapshot())return;const e=await(0,os.studyMetaInfoRepository)().findById({type:"java",studyId:"InactivityGaps@tv-basicstudies"});this._destroyed||(this._setMetaInfo(e),null!==this._metaInfo&&(this._studySource=new x_.StudyDataSource(this._model.chartApi(),this._model.mainSeries().seriesSource(),"inactivitygaps_",this._metaInfo),this._studySource.dataCleared().subscribe(this,this.updateAllViews.bind(this,(0,wi.sourceChangeEvent)(this.id()))),this._studySource.dataUpdated().subscribe(this,this.updateAllViews.bind(this,(0,wi.sourceChangeEvent)(this.id()))),this._studySource.setInputs({display_session:this._session})))}_setMetaInfo(e){this._metaInfo=e}_clearData(){this._studySource?.clearData()}}const I_=new dt.TranslatedString("remove deselected empty line tools",a.t(null,void 0,i(27171))),A_=l.enabled("auto_enable_symbol_labels"),L_=l.enabled("saveload_separate_drawings_storage"),k_=(0,ne.getLogger)("Chart.ChartModel");function E_(e,t){const i=e.indexOf(t);return-1!==i&&(e.splice(i,1),!0)}function D_(e){const t=(0,wi.crosshairMoveEvent)();for(let i=e.length;i--;){const s=e[i].dataSources();for(let e=s.length;e--;)s[e].dataWindowView()?.update(t),s[e].chartFloatingTooltipView?.()?.update(t);const o=e[i].priceDataSources();for(let e=o.length;e--;)o[e].legendView()?.update(t)}}const B_={isSnapshot:!1,readOnly:!1,watermarkEnabled:!0,shiftVisibleRangeOnNewBar:!0,currencyConversionEnabled:!1,unitConversionEnabled:!1,countdownEnabled:!0,lastPriceAnimationEnabled:!0,onWidget:!1,hideIdeas:!1};var V_;!function(e){e[e.MnPaneHeight=30]="MnPaneHeight",e[e.RecalcVisibleRangeStudiesTimeout=2e3]="RecalcVisibleRangeStudiesTimeout", +e[e.RecalcVisibleRangeStudiesLargeTimeout=5e3]="RecalcVisibleRangeStudiesLargeTimeout",e[e.RecalcVisibleRangeStudiesTimeoutLibrary=500]="RecalcVisibleRangeStudiesTimeoutLibrary",e[e.RecalcColorStudiesTimeout=250]="RecalcColorStudiesTimeout"}(V_||(V_={}));const R_={throttle:o.default,debounce:Ol.default},N_=new Map([[Co.RecalcVisibleRangeStudiesReason.ViewportChangeUserAction,{timeout:500,adapter:"debounce"}],[Co.RecalcVisibleRangeStudiesReason.DataUpdate,{timeout:500,adapter:"throttle"}],[Co.RecalcVisibleRangeStudiesReason.SeriesRestart,{timeout:500,adapter:"debounce"}],[Co.RecalcVisibleRangeStudiesReason.SeriesCompleted,{timeout:500,adapter:"debounce"}],[Co.RecalcVisibleRangeStudiesReason.StudyCreation,{timeout:500,adapter:"debounce"}]]),O_=Array.from(N_.values());function F_(e){return e.reduce(((e,t)=>{if(!(0,zs.isLineTool)(t)||!t.isSynchronizable())return e;const i=t.linkKey().value();return i?(e[0].add(i),e[1].add(t.toolname),e):e}),[new Set,new Set])}function W_(e){return e.sourcesByGroup().allWithoutMultipane()}function H_(e){return e.sourcesByGroup().allWithoutMultipaneWithHidden()}class z_{constructor(e,t,i,s,o,n,r,a,c,d,u,_){this._onRearrangePanes=new ae.Delegate,this._lineToolsGroupModel=new wd,this._sourcesBeingMoved=[],this._activeItemBeingMoved=null,this._lineBeingEdited=null,this._customSourceBeingMovedHitTestData=null,this._customSourceBeingMoved=null,this._dataSourceCollectionChanged=new ae.Delegate,this._sourceProperitesChanged=new ae.Delegate,this._sourceZOrderChanged=new ae.Delegate,this._symbolSourceResolved=new ae.Delegate,this._symbolSourceResolvingActive=new O.WatchedValue(!1),this._adjustForDividendsAvailability=new O.WatchedValue(0),this._adjustForDividendsEnabled=new O.WatchedValue(!1),this._inactivityGapsWatchedValue=null,this._allowedAdjustment=new O.WatchedValue("none"),this._currentTool=mt.tool.spawn(),this._linesBeingCreated=[],this._lineCancelled=new ae.Delegate,this._phantomSourceContainer=new zd(this),this._destroyed=!1,this._restoringState=!1,this._isSettingsExternalPosition=!1,this._isTimeScrolling=!1,this._magnet=new Zd,this._scrollingState=null,this._modelIntervals=[],this._rendererOptionsProvider=new Xl(this),this._studyInserted=new ae.Delegate,this._cachedStudiesMaxOffset=0,this._replayStatus=new O.WatchedValue(0),this._panes=[],this._maximizedPane=new O.WatchedValue(null),this._tagsChanged=new ae.Delegate,this._strategySources=[],this._strategySourcesChange=new ae.Delegate,this._activeStrategySource=new O.WatchedValue(null),this._symbolIntervalChanged=new ae.Delegate,this._paneCollapsingAvailable=new O.WatchedValue(!1),this._panesCollectionChanged=new ae.Delegate,this._scrollEnabled=l.enabled("chart_scroll"),this._zoomEnabled=l.enabled("chart_zoom"),this._lollipopSourcesWatcher=null,this._alertsWatcher=null,this._hoveredSource=null,this._hoveredSourceChanged=new ae.Delegate,this._lastHoveredHittestData=null,this._hoveredSourceOrigin=null,this._lastSelectedHittestData=null,this._topmostCustomSources=[],this._fgCustomSources=[],this._bgCustomSources=[],this._allCustomSources=[], +this._customSourcesMap=new Map,this._dragExportEnabled=new O.WatchedValue(!1),this._multiPaneSources=[],this._showLegendProperty=new Ps.Property,this._id=(0,fe.guid)(),this._chartSaveTime=null,this._availableCurrenciesList=null,this._availableCurrencies=new Fd([]),this._availablePriceSources=new C_([]),this._availableUnitsObject=null,this._availableUnits=new Wd({}),this._availablePriceSourcesBySymbol=new Map,this._shouldBeSavedEvenIfHidden=!1,this._watchedThemeSpawn=k.watchedTheme.spawn(),this._backgroundColorAtYPercentFromTop=new Nd.GradientColorCache,this._studiesWV=new yt.WatchedObject([],Pt.compareTwoCollectionsByIds),this._studiesExcludeInternalWV=new yt.WatchedObject([],Pt.compareTwoCollectionsByIds),this._resetScalesAvailable=new O.WatchedValue(!1),this._recalcVRStudiesParams={reasons:new Set},this._recalcColorStudiesParams={},this._replayStudyStrategy=new O.WatchedValue(null),this._studyColorRotatorFactory=new Gl(this),this._mainSeriesScaleRatioProperty=new Wc(this),this._recalcVisibleRangeStudiesImplDebouncedByAdapter=new Map(Object.keys(R_).map((e=>[e,new Map(O_.filter((t=>t.adapter===e)).map((e=>[e.timeout,R_[e.adapter](this._recalcVisibleRangeStudiesImpl.bind(this,this._recalcVRStudiesParams),e.timeout)])))]))),this._recalcColorStudiesImplDebounced=(0,Ol.default)(this._recalcColorStudiesImpl.bind(this,this._recalcColorStudiesParams),250),this._width=0,this._resetScales=new ae.Delegate,this._chartThemeLoaded=new ae.Delegate,this._selection=new $l,this._selectedSourceChanged=new ae.Delegate,this._symbolSourceCollectionChanged=new ae.Delegate,this._gridSource=new iu(this),this._visibleRangeStudiesInputs=new yt.WatchedObject(null),this._syncPointCache=new Map,this._lastAppliedGotoTimeRange=null,this._lastGotoTimeRange=null,this._alertsCollection=new O.WatchedValue(null),this._lollipopSourcesWatcherLoader=null,this._sessions=null,this._onMultipaneSourcesCollectionChanged=new ae.Delegate,this._replayStudyStrategyInputs=null,this._studyShiftColorStartOffset=void 0,this._chartFloatingTooltipVisible=new O.WatchedValue(!1),this._activationChartFloatingTooltipHint=new O.WatchedValue(!1),this._lineToolsSyncBlock=0,this._clearSelection=()=>{this._lastSelectedHittestData=null,this._selection.clear()},this._removeSourceFromSelection=e=>{this._selection.remove(e)},this._addSourceToSelection=(e,t)=>{const i=this._selection.isSelected(e);i&&this._lastSelectedHittestData===t||e&&!e.isSelectionEnabled()||(this._lastSelectedHittestData=t||null,i||this._selection.add(e))},this._recalcSymbolResolvingActive=()=>{for(const e of this._panes)if(e.symbolSourceResolvingActive().value())return void this._symbolSourceResolvingActive.setValue(!0);this._symbolSourceResolvingActive.setValue(!1)},this._recalcAdjustForDividendsAvailability=()=>{if(this._symbolSourceResolvingActive.value())return;const e=this.mainSeries();switch(e.symbolInfo()?.allowed_adjustment??"none"){case"dividends":return void this._adjustForDividendsAvailability.setValue(2);case"splits":return void this._adjustForDividendsAvailability.setValue(1);case"any": +return void this._adjustForDividendsAvailability.setValue(3)}for(const t of this.symbolSources().filter(Lr.isActingAsSymbolSource)){if(t.symbolHibernated().value()||t===e)continue;if("any"===(t.symbolInfo()?.allowed_adjustment??"none"))return void this._adjustForDividendsAvailability.setValue(3)}this._adjustForDividendsAvailability.setValue(0)},this._recalcAllowedAdjustment=()=>{const e=this.mainSeries(),t=e.symbolInfo()?.allowed_adjustment??"none";if("dividends"===t||"splits"===t)return void this._allowedAdjustment.setValue(t);let i="none";for(const e of this.symbolSources().filter(Lr.isActingAsSymbolSource)){if(e.symbolHibernated().value())continue;const t=e.symbolInfo()?.allowed_adjustment??"none";if("any"===t)return void this._allowedAdjustment.setValue("any");"splits"===t&&"dividends"!==i&&(i="splits"),"dividends"===t&&(i="dividends")}this._allowedAdjustment.setValue(i)},this._recalcAdjustForDividendsEnabled=()=>{switch(this._adjustForDividendsAvailability.value()){case 2:return void this._adjustForDividendsEnabled.setValue(!0);case 0:case 1:return void this._adjustForDividendsEnabled.setValue(!1)}this._adjustForDividendsEnabled.setValue(this.mainSeries().properties().childs().dividendsAdjustment.value())},this._recalcPaneCollapsingAvailable=e=>{let t=this._panes.filter((e=>!e.collapsed().value())).length;0===t&&e&&this._panes.length>0&&(this._panes[0].collapsed().setValue(!1),t=1),this._paneCollapsingAvailable.setValue(t>1)},this._updateResetScalesAvailableValue=()=>{const e=this._timeScale.resetAvailable().value()||this._panes.some((e=>e.resetPriceScalesAvailable().value()));this._resetScalesAvailable.setValue(e)},this._onDrawingsVisibilityChanged=e=>{const t=!e.value();for(const e of this.dataSources()){const i=(0,zs.isLineTool)(e)&&e.properties().visible.value();t&&i?(0,ee.emit)("drawing_event",e.id(),"show"):!t&&i&&(0,ee.emit)("drawing_event",e.id(),"hide")}this.selectionMacro((e=>e.clearSelection()))},this._onIndicatorsVisibilityChanged=()=>{this.allStudies().some((e=>e.canBeHiddenByGlobalFlag()&&e.properties().childs().visible.value()&&this.selection().isSelected(e)))?this.selectionMacro((e=>e.clearSelection())):this.lightUpdate()},this._chartSession=e,this._invalidateHandler=t,this._undoModel=n,this._properties=i,this._options=(0,tt.merge)((0,tt.clone)(B_),a),this._hibernateWV=c,this._linkingGroupIndex=d,this._isAutoSaveEnabled=u,this._readOnly=this._options.readOnly,this._isSnapshot=this._options.isSnapshot,this._symbolAliasService=_,this._symbolAliasService?.onAliasChanged().subscribe(this,(()=>this.lightUpdate())),this.onWidget()||Md.withWeekdayProperty.subscribe(this,(()=>this._updateDateTimeFormatter())),this._chartSaveTime=(new Date).valueOf(),this._backgroundColor=new O.WatchedValue(this._getBackgroundColor()),this._backgroundTopColor=new O.WatchedValue(this._getBackgroundColor(!0)),this._properties.childs().paneProperties.childs().background.subscribe(this,this._updateBackgroundColor),this._properties.childs().paneProperties.childs().backgroundType.subscribe(this,this._updateBackgroundColor), +this._properties.childs().paneProperties.childs().backgroundGradientStartColor.subscribe(this,this._updateBackgroundColor),this._properties.childs().paneProperties.childs().backgroundGradientEndColor.subscribe(this,this._updateBackgroundColor),this._properties.childs().paneProperties.childs().legendProperties.childs().showLegend.subscribe(this,this._updateShowLegendProperty),this._properties.childs().scalesProperties.subscribe(this,this.fullUpdate),this._backgroundColor.subscribe(this.recalcColorStudies.bind(this,!1)),this._backgroundTopColor.subscribe(this.recalcColorStudies.bind(this,!1)),this._backgroundCounterColor=new O.WatchedValue(this._getBackgroundCounterColor()),this._backgroundColor.subscribe((()=>this._backgroundCounterColor.setValue(this._getBackgroundCounterColor()))),this._backgroundTheme=(0,ft.combine)((e=>"white"===e?$s.StdTheme.Dark:$s.StdTheme.Light),this._backgroundCounterColor.weakReference()),this._isDark=(0,ft.combine)((e=>e===$s.StdTheme.Dark),this._backgroundTheme.weakReference()),this._watchedThemeSpawn.subscribe(this._updateBackgroundColor.bind(this)),this._symbolSourceResolvingActive.subscribe((()=>{this._recalcAdjustForDividendsAvailability(),this._recalcAllowedAdjustment()})),(0,mt.init)();const p=this._readOnly?new Ps.Property((0,tt.merge)((0,tt.clone)(ms.lightTheme.content.chartProperties.paneProperties.crossHairProperties),(0,h.defaults)("chartproperties.paneProperties.crossHairProperties"))):this._properties.childs().paneProperties.childs().crossHairProperties;this._crossHairSource=new i_(this,p,this._options.crossHair),this._crossHairSelectPointMode=this._crossHairSource.selectPointMode().spawn(),this._crossHairSelectPointMode.subscribe((e=>{if(e!==mt.SelectPointMode.None&&this.lineBeingCreated()){const e=mt.tool.value();this.cancelCreatingLine(),mt.tool.setValue(e)}})),this._tagsChanged=new ae.Delegate;const m={countdownEnabled:this._options.countdownEnabled,lastPriceAnimationEnabled:this._options.lastPriceAnimationEnabled};this._mainSeries=new Vn.Series(this,s,m,o),this._timeScale=new vd(this,this._options.timeScale),this._timeScale.resetAvailable().subscribe(this._updateResetScalesAvailableValue),this._appliedTimeFrame=new Xd(this),this._mainSeries.onStyleChanged().subscribe(this._timeScale,this._timeScale.invalidateVisibleBars);const g=()=>this.fullUpdate();this._mainSeries.properties().childs().showCountdown.subscribe(this,(()=>{this._mainSeries.updateAllViews((0,wi.sourceChangeEvent)(this._mainSeries.id())),g()})),(0,Be.currencyUnitVisibilityProperty)().subscribe(this,g),(0,$o.autoLogButtonsVisibilityProperty)().subscribe(this,g),this._timeScale.visibleBarsStrictRangeChanged().subscribe(this._mainSeries,this._mainSeries.clearHighLowPriceCache),this._timeScale.visibleBarsStrictRangeChanged().subscribe(this._mainSeries,this._mainSeries.clearAveragePriceCache),this.createPane(void 0,{axisProperties:s.childs().priceAxisProperties.state(["autoScale"])}),this._adjustForDividendsAvailability.subscribe(this._recalcAdjustForDividendsEnabled), +this.mainSeries().properties().childs().dividendsAdjustment.subscribe(this,this._recalcAdjustForDividendsEnabled),this._recalcAdjustForDividendsEnabled(),this._boundUpdateStudiesMaxOffset=this._updateStudiesMaxOffset.bind(this),this.mainSeries().dataEvents().seriesTimeFrame().subscribe(this,((e,t,i,s)=>{if(null!==this._lastAppliedGotoTimeRange&&null!==i&&s&&Tr(this._lastAppliedGotoTimeRange.range,i)){const e=this.appliedTimeFrame().value();null!==e&&!this._lastAppliedGotoTimeRange.actual&&Tr(this._lastAppliedGotoTimeRange.range,e.val)&&this.appliedTimeFrame().setValue(null),this._lastAppliedGotoTimeRange=null}})),this.mainSeries().dataEvents().completed().subscribe(this,(e=>{null===this._lastAppliedGotoTimeRange&&null!==this._lastGotoTimeRange&&this.gotoTimeRange(this._lastGotoTimeRange.from,this._lastGotoTimeRange.to,this._lastGotoTimeRange)}));const f=this._panes[0];f.setStretchFactor(2*f.stretchFactor()),this._properties.subscribe(this,this.lightUpdate),this._properties.childs().timezone.subscribe(null,(()=>{this._chartSession&&this._chartSession.isConnected().value()&&this._chartSession.switchTimezone(this.timezone())})),f.addDataSource(this._mainSeries,f.findSuitableScale(this._mainSeries),!1),this._barsMarksSources=r(this);for(const e of this._barsMarksSources)e.setOwnerSource(this._mainSeries),f.addDataSource(e,this._mainSeries.priceScale(),!0);if(this._mainSeries.symbolResolved().subscribe(this,this._clearAvailablePriceSources),this._mainSeries.onSymbolIntervalChanged().subscribe(this,this._onSymbolIntervalChanged),this._createLollipopSourcesWatcher(),this._watermarkSource=this._options.watermarkEnabled?new Rc(this):null,this._timezoneExceptExchange=(0,ft.combine)(((e,t)=>"exchange"!==e?e:t),(0,_d.createWVFromProperty)(this._properties.childs().timezone).ownership(),(0,_d.createWVFromGetterAndSubscription)((()=>this.mainSeries().symbolInfo()?.timezone??null),this.mainSeries().symbolResolved()).ownership()),this._updateDateTimeFormatter(),this._mainSeries.dataEvents().completed().subscribe(this,(()=>{this._scrollingState&&this.gotoTime(void 0,{targetPointAlignment:this._scrollingState.targetPointAlignment,autoscaleAfterScroll:this._scrollingState.autoscaleAfterScroll})})),this._mainSeries.onIntervalChanged().subscribe(this,(()=>{this._recalcVRStudiesParams.oldStartVisibleIndex=NaN,this._recalcVRStudiesParams.oldEndVisibleIndex=NaN})),!this._readOnly){this._mainSeries.properties().addChild("priceAxisProperties",this._mainSeries.priceScale().properties());const e=this._properties.childs().paneProperties.childs().legendProperties.childs();e.showStudyTitles.subscribe(this,(t=>{t.value()||e.showStudyArguments.setValue(!1)}))}this._mainSeries.properties().childs().interval.subscribe(this,this._updateDateTimeFormatter),this._mainSeries.onTimeFrameApplied().subscribe(this,(e=>{const t=e?{res:this._mainSeries.interval(),val:e}:null;this.appliedTimeFrame().setValue(t)})),this._maximizedPane.subscribe((()=>n.model().fullUpdate())),this._dataSourceCollectionChanged.subscribe(this,this._updateShowLegendProperty),(0, +mt.hideAllDrawings)().subscribe(this,this._onDrawingsVisibilityChanged),(0,mt.hideAllIndicators)().subscribe(this,this._onIndicatorsVisibilityChanged),be.dateFormatProperty.subscribe(this,this._updateDateTimeFormatter),we.timeHoursFormatProperty.subscribe(this,this._updateDateTimeFormatter),this._currentTool.subscribe((e=>{(0,Lt.isLineToolName)(e)&&this.selectionMacro((e=>{e.clearSelection()})),!(0,xo.isLineToolLoaded)(e)&&(0,xo.isAsyncGenericLineToolName)(e)?(0,xo.loadLineTool)(e).then((()=>this._phantomSourceContainer.onToolChanged())):this._phantomSourceContainer.onToolChanged()})),this._initialiseInactivityGaps(),this._signatureSources=this._studiesExcludeInternalWV.spawn();const y=(0,ft.combine)((e=>e.map((e=>e.signature().weakReference()))),this._signatureSources.weakReference());this._sourcesSignatures=(0,ft.accumulate)((e=>e.filter(tt.notNull)),y.ownership())}destroy(){this.clearIntervals(),this.resetDeferredStudies(),this._symbolAliasService?.onAliasChanged().unsubscribeAll(this),this.allStudies().forEach((e=>this.removeSource(e))),be.dateFormatProperty.unsubscribe(this,this._updateDateTimeFormatter),we.timeHoursFormatProperty.unsubscribe(this,this._updateDateTimeFormatter),(0,mt.hideAllIndicators)().unsubscribe(this,this._onIndicatorsVisibilityChanged),(0,mt.hideAllDrawings)().unsubscribe(this,this._onDrawingsVisibilityChanged),this._dataSourceCollectionChanged.unsubscribeAll(this),this._phantomSourceContainer.destroy(),this._hoveredSourceChanged.destroy(),null!==this._watermarkSource&&(this._watermarkSource.destroy(),this._watermarkSource=null),Array.from(this._customSourcesMap.keys()).forEach(this._removeCustomSource,this),(0,n.assert)(0===this._topmostCustomSources.length),(0,n.assert)(0===this._fgCustomSources.length),(0,n.assert)(0===this._bgCustomSources.length),(0,n.assert)(0===this._allCustomSources.length),(0,n.assert)(0===this._customSourcesMap.size),this._panes.forEach((e=>e.destroy())),this._panes.length=0,this._sessions=null,null!==this._lollipopSourcesWatcher&&(this._lollipopSourcesWatcher.destroy(),this._lollipopSourcesWatcher=null),null!==this._alertsWatcher&&this._alertsWatcher.destroy(),this.onWidget()||Md.withWeekdayProperty.unsubscribeAll(this),this._properties.childs().paneProperties.childs().legendProperties.childs().showLegend.unsubscribeAll(this),this._properties.childs().paneProperties.childs().background.unsubscribeAll(this),this._properties.childs().paneProperties.childs().backgroundType.unsubscribeAll(this),this._properties.childs().paneProperties.childs().backgroundGradientEndColor.unsubscribeAll(this),this._properties.childs().paneProperties.childs().backgroundGradientStartColor.unsubscribeAll(this),this._watchedThemeSpawn.destroy(),this._lastHoveredHittestData=null,this._lastSelectedHittestData=null,(0,Be.currencyUnitVisibilityProperty)().unsubscribeAll(this),(0,$o.autoLogButtonsVisibilityProperty)().unsubscribeAll(this),this._mainSeries.properties().childs().interval.unsubscribe(this,this._updateDateTimeFormatter), +this._mainSeries.properties().childs().showCountdown.unsubscribeAll(this),this._crossHairSelectPointMode.destroy(),this._mainSeries.onIntervalChanged().unsubscribeAll(this),this._mainSeries.onTimeFrameApplied().unsubscribeAll(this),this._mainSeries.symbolResolved().unsubscribe(this,this._clearAvailablePriceSources),this._mainSeries.onSymbolIntervalChanged().unsubscribe(this,this._onSymbolIntervalChanged),this._mainSeries.onStyleChanged().unsubscribe(this._timeScale,this._timeScale.invalidateVisibleBars),this._timeScale.visibleBarsStrictRangeChanged().unsubscribe(this._mainSeries,this._mainSeries.clearHighLowPriceCache),this._timeScale.visibleBarsStrictRangeChanged().unsubscribe(this._mainSeries,this._mainSeries.clearAveragePriceCache),this._timeScale.barSpacingChanged().unsubscribeAll(this),this._timeScale.onScroll().unsubscribeAll(this),this._timeScale.destroy(),this._timezoneExceptExchange.destroy(),this._lollipopSourcesWatcherLoader?.destroy(),this._appliedTimeFrame.destroy(),this._crossHairSource.destroy(),this._currentTool.destroy(),this._signatureSources.destroy(),this._sourcesSignatures.destroy(),this._destroyed=!0}restart(){this._chartSession.switchTimezone(this.timezone()),this._timeScale.reset(),this._mainSeries.restart();for(const e of this.dataSources())e.restart&&e!==this._mainSeries&&e.restart();this._sessions?.get()?.restart()}version(){return 3}collapsed(){return this._hibernateWV}visibleRangeStudiesInputs(){return this._visibleRangeStudiesInputs.readonly()}chartSaveTime(){return this._chartSaveTime}setChartSaveTime(e){this._chartSaveTime=e}startNotStartedStudies(){if(!this._mainSeries.isStarted())throw new Error("Cannot start studies: main series is not started");for(const e of this.dataSources())(0,Ws.isStudy)(e)&&!e.isStarted()&&e.restart?.()}undoModel(){return this._undoModel}onData(e){switch(e.method){case"timescale_update":{const t=e.params;this._updateTimeScale({index:t.index,zoffset:t.zoffset,values:t.changes,indexDiffs:t.index_diff,baseIndex:t.baseIndex,marks:t.marks,clearFlag:t.clear,clearTickMarks:t.clearTickMarks});break}case"timescale_completed":{const t=Boolean(e.params[0]);this._timeScale.onTimeScaleCompleted(t);break}}}addStrategySource(e,t){1!==t&&-1===this._strategySources.indexOf(e)&&(this._strategySources.push(e),this._strategySourcesChange.fire(t),this.setActiveStrategySource(e))}removeStrategySource(e,t){if(1===t)return;const i=this._strategySources.indexOf(e);if(-1!==i){if(this._strategySources.splice(i,1)[0]===this._activeStrategySource.value()&&this.unsetActiveStrategySource(),this._strategySources.length>0){const e=this._strategySources[this._strategySources.length-1];this.setActiveStrategySource(e)}this._strategySourcesChange.fire(t)}}setActiveStrategySource(e){-1!==this._strategySources.indexOf(e)&&this._activeStrategySource.setValue(e)}unsetActiveStrategySource(){this._activeStrategySource.setValue(null)}activeStrategySource(){return this._activeStrategySource.readonly()}strategySources(){return this._strategySources}strategySourcesChange(){ +return this._strategySourcesChange}replayStudyStrategy(){return this._replayStudyStrategy}setReplayStudyStrategy(e){this._replayStudyStrategy.setValue(e)}async replayStudyStrategyProperties(){if(null===this._replayStudyStrategyInputs){const e=await getReplayStrategyMetaInfo();if(null!==this._replayStudyStrategyInputs)return this._replayStudyStrategyInputs;this._replayStudyStrategyInputs=new yi.DefaultProperty({defaultName:"replayStudyStrategyInputs",factoryDefaultsSupplier:()=>(0,tt.clone)(e.defaults.inputs)})}return this._replayStudyStrategyInputs}clearReplayStudyStrategyProperties(){this._replayStudyStrategyInputs=null}setScrollEnabled(e){this._scrollEnabled=e}scrollEnabled(){return this._scrollEnabled}setZoomEnabled(e){this._zoomEnabled=e}zoomEnabled(){return this._zoomEnabled}dragExportEnabled(){return this._dragExportEnabled}async setDragExportEnabled(e){l.enabled("charting_library_export_chart_data")?(await async function(){if(null===Rn){const e=await Promise.all([i.e(2578),i.e(9498)]).then(i.bind(i,99207));Rn=e}}(),this._dragExportEnabled.setValue(e)):console.error("feature is not enabled")}zoomToViewport(e,t,i,s,o){this.setTimeViewport(e,t);let n=Math.min(i,s),r=Math.max(i,s);const a=o.defaultPriceScale();a.isPercentage()||a.setMode({autoScale:!1}),a.isLog()&&(n=a.priceToLogical(n),r=a.priceToLogical(r)),a.setPriceRange(new Qc.PriceRange(n,r)),this.recalculateAllPanes((0,wi.viewportChangeEvent)()),this.invalidate(this._paneInvalidationMask(o,ao.InvalidationLevel.Light))}setTimeViewport(e,t){const i=this.appliedTimeFrame().value();null!==this._lastAppliedGotoTimeRange&&null!==i&&Tr(this._lastAppliedGotoTimeRange.range,i.val)&&!this._lastAppliedGotoTimeRange.actual||(this.timeScale().zoomToBarsRange(e,t),this.recalculateAllPanes((0,wi.viewportChangeEvent)()),this.recalcVisibleRangeStudies(Co.RecalcVisibleRangeStudiesReason.ViewportChangeUserAction),this.lightUpdate())}onTagsChanged(){return this._tagsChanged}canZoomIn(){return this._timeScale.canZoomIn()&&this._zoomEnabled}canZoomOut(){return this._timeScale.canZoomOut()&&this._zoomEnabled}onPaneTagsChanged(){this._tagsChanged.fire()}panesCollectionChanged(){return this._panesCollectionChanged}dataSourceCollectionChanged(){return this._dataSourceCollectionChanged}symbolSourceCollectionChanged(){return this._symbolSourceCollectionChanged}symbolSourceResolved(){return this._symbolSourceResolved}symbolSourceResolvingActive(){return this._symbolSourceResolvingActive}adjustForDividendsAvailability(){return this._adjustForDividendsAvailability}adjustForDividendsEnabled(){return this._adjustForDividendsEnabled}allowedAdjustment(){return this._allowedAdjustment}paneCollapsingAvailable(){return this._paneCollapsingAvailable}sourcePropertiesChanged(){return this._sourceProperitesChanged}sourceZOrderChanged(){return this._sourceZOrderChanged}zoomTime(e,t,i){if(!this._zoomEnabled)return;const s=this.timeScale();if(s.isEmpty()||0===t)return;const o=s.width();e=Math.max(1,Math.min(e,o-2)),s.zoom(e,t,i),this.recalculateAllPanes((0,wi.viewportChangeEvent)()), +this.lightUpdate(),this.recalcVisibleRangeStudies(Co.RecalcVisibleRangeStudiesReason.ViewportChangeUserAction)}lineBeingEdited(){return this._lineBeingEdited?.lineDataSource??null}linePointBeingEdited(){return this._lineBeingEdited?.pointIndex??null}linePointBeingChanged(){return this._lineBeingEdited?.startChangingPoint??null}activeItemBeingMoved(){return this._activeItemBeingMoved}mainSeries(){return this._mainSeries}updateAllPaneViews(e){for(const t of this._panes)t.updateAllViews(e);this._watermarkSource?.updateAllViews(e)}dataSources(){const e=[this.crosshairSource()];for(const t of this._panes)for(const i of t.dataSources())e.push(i);return e}priceDataSources(){const e=[];for(const t of this._panes)for(const i of t.priceDataSources())e.push(i);return e}symbolSources(){const e=[];for(const t of this._panes)for(const i of t.symbolSources())e.push(i);return e}orderedDataSources(e){let t=[this._crossHairSource];for(let i=0;ie.updateAllViews((0,wi.selectionChangeEvent)())));let n=[];if(s.forEach((e=>{(0,zs.isLineTool)(e)&&!t&&((0,zs.isEditableTextLineTool)(e)&&e.deactivateTextEditing(),e.shouldBeRemovedOnDeselect()&&n.push(e))})),1===o.length){const[e]=o;(0,zs.isLineTool)(e)&&e.hasAlert().value()&&0===e.alertStatus().value()&&e.synchronizeAlert().catch((()=>{}))}n=n.filter((e=>null!==this.dataSourceForId(e.id()))),n.length>0&&this._undoModel.removeSources(n,!1,I_),this.lightUpdate(),(s.length>0||o.length>0)&&this._selectedSourceChanged.fire()}onSelectedSourceChanged(){return this._selectedSourceChanged}checkLineToolSelection(){const e=this.selection().allSources();this._selection.checkLineToolSelection(),e.length!==this.selection().allSources().length&&this._selectedSourceChanged.fire()}lineToolsGroupModel(){return this._lineToolsGroupModel}restoreLineToolsGroups(e){this._lineToolsGroupModel=wd.fromState(this,e)}realignLineTools(e){for(const t of this._panes)(void 0===e||t.hasDataSource(e))&&t.realignLineTools(e)&&this._dataSourceCollectionChanged.fire(t)}copyToOtherCharts(e,t){const i=this.mainSeries(),s=i.syncModel(),o=this.timeScale();if(s)for(const r of e){if(!r.isSynchronizable())continue;const e=r.linkKey().value()||(0,fe.randomHash)();r.linkKey().setValue(e);const a=r.state(!1),l=r.normalizedPoints(),c=r.normalizedPointsForCreating(),h=r.properties().interval.value(),d=i.interval(),u=e=>{if(Re.Interval.isEqual(h,d))return e.map((e=>{const t=(0, +n.ensureNotNull)(o.timePointToIndex(e.time_t))+e.offset;return{price:e.price,timeStamp:(0,n.ensureNotNull)(this.externalTimeStamp(t))}}));{const t=s.createNewModelWithResolution(h);return e.map((e=>({price:e.price,timeStamp:0===e.offset?e.time_t:t.projectTime(e.time_t,e.offset)})))}},_=u(l),p=u(c),m={...a,id:r.id(),linkKey:e,points:_,pointsForCreating:p,linetool:r.toolname,model:this,symbol:i.symbol(),withUndo:t,zOrder:r.zorder(),finalState:{points:l,interval:h},pointPositionPercents:r.isFixed()?r.calcPositionPercents():void 0,sharingMode:r.sharingMode().value()};(0,mt.copyLineTool)(m)}}isSnapshot(){return this._isSnapshot}onWidget(){return this._options.onWidget}hideIdeas(){return this._options.hideIdeas}updateSource(e){const t=this._invalidationMaskForSource(e);null!==t&&this.invalidate(t)}updateSourcePriceScale(e){const t=this._invalidationMaskForSourcePriceScale(e);null!==t&&this.invalidate(t)}updatePane(e){this.invalidate(this._paneInvalidationMask(e))}updateTimeScaleBaseIndex(e){const t=this.mainSeries().bars(),i=(t.firstIndex()??1/0)<(e?.index??-1/0),s=this._timeScale.baseIndex();if(t.isEmpty()||this._updateBaseIndex((0,n.ensureNotNull)(t.lastIndex()),!!(e&&e.index>0)),i&&!this._timeScale.isBeingScrolled()&&!this._timeScale.isBeingScaled()){const e=this._timeScale.baseIndex()-s,t=this._timeScale.rightOffset();t-this.studyAwareDefaultRightOffset()>e&&this._timeScale.setRightOffset(t-e)}}setInterval(e,t){const i=setInterval(e,t);return this._modelIntervals.push(i),i}clearInterval(e){clearInterval(e);const t=this._modelIntervals.indexOf(e);t>-1&&this._modelIntervals.splice(t,1)}clearIntervals(){for(let e=0;ethis.insertStudyWithParams(e,t,i,o,n,r,a,l,c,h,d,u),storeFailedStub:e=>{}})}insertStudyWithParams(e,t,i,s,o,r,a,l,c,h,u,_){let p=null;if(!o&&void 0!==e.groupingKey){const t=this.findNonOverlayStudyWithGroupingKey(e.groupingKey);null!==t&&(p=t.pane)}null===p&&(o||e.is_price_study?p=(0,n.ensureNotNull)(this.paneForSource(r?.[0]??this._mainSeries)):(p=this.createPane(),void 0!==h&&p.setPaneSize(h))),"Compare@tv-basicstudies"===e.id&&this._mainSeries.priceScale().setMode({log:!1,percentage:!0});const m=(0,tt.merge)((0,Al.default)(s??{}),{inputs:t,parentSources:[]});let g=!1,f=null,y=null;const v=r??[],S=(0,Zl.prepareStudyProperties)(e,m,p,(0,os.studyMetaInfoRepository)().studyVersioning(),v),b=(0,Ws.createStudy)(this,S,v,new ns.StudyMetaInfo(e.state(),e.useVersionFromMetaInfo),new ns.StudyMetaInfo(e.state(),e.useVersionFromMetaInfo),_,void 0),w=(0,me.createDeferredPromise)();return b.then((e=>{if(g)return e.stop(),void e.destroy?.();f=e.id();const t=p.findSuitableScale(e,r?.[0]??this.mainSeries(),a);if(y=t.mode(),t===this.mainSeries().priceScale()&&(0,Lr.isSymbolSource)(e)){const i=l?kr(e,t,this,!0):null,s=c?ih(e,t,this,!0):null;null===i&&null===s||e.setSymbolParams({currency:i||void 0,unit:s||void 0})}if((0,Lr.isSymbolSource)(e)&&(0, +n.ensureNotNull)(p).hasDataSource(this.mainSeries())&&A_&&!d.getBool("enable_symbol_labels_on_inserting_compare_once",!1)&&((0,yi.allowSavingDefaults)(!0),this.properties().childs().scalesProperties.childs().showSymbolLabels.setValue(!0),(0,yi.allowSavingDefaults)(!1),d.setValue("enable_symbol_labels_on_inserting_compare_once",!0)),w.resolve(e.start()),i&&p.id()===i.paneId)p.insertDataSource(e,t,i.zorder);else{p.addDataSource(e,t,!1);null!==e.preferredZOrder()&&p.insertAfter([e],this.mainSeries())}void 0!==u&&t.setMode(u),e.isLinkedToSeries()&&e.setOwnerSource(this.mainSeries()),this.recalculatePane(p,(0,wi.sourceChangeEvent)(e.id())),this.fullUpdate(),this._invalidateBarColorerCaches(),this._recalcVisibleRangeStudiesImpl({studies:[e],reasons:new Set([Co.RecalcVisibleRangeStudiesReason.StudyCreation])}),this._recalcColorStudiesImpl({studies:[e],force:!0}),this._studyInserted.fire(e),e.maxOffset().subscribe(this._boundUpdateStudiesMaxOffset,{callWithLast:!0})})),{study:b,startPromise:w.promise,cancel:()=>g=!0,entityId:()=>f,originalScaleMode:()=>y}}replaceStudyStub(e,t){const i=this.paneForSource(e);if(null===i)return!1;const s=e.priceScale(),o=e.zorder(),n=e.ownerSource();return this.paneForSource(e)===i?i.replaceSource(e,t,s):(i.insertDataSource(t,s,o),this.removeSource(e)),t.setOwnerSource(n),this.dataSources().forEach((i=>{i.ownerSource()===e&&i.setOwnerSource(t)})),this._invalidateBarColorerCaches(),t.start(),this.recalculatePane(i,(0,wi.sourceChangeEvent)(t.id())),this.fullUpdate(),!0}insertStudyStub(e,t,i,s){const o=void 0!==t,r=new Zr.StudyStub(this,i??null,e,t,s??null);let a;if(t||!o){a=(0,n.ensureNotNull)(this.mainPane());const e=!0===t?this.mainSeries().priceScale():a.createPriceScaleAtPosition("overlay");a.addDataSource(r,e,!1)}else a=this.createPane(),a.addDataSource(r,null,!1);return r.setZorder(a.newStudyZOrder()),this.recalculatePane(a,(0,wi.sourceChangeEvent)(r.id())),this.fullUpdate(),r}removeStudyStub(e){const t=this.dataSourceForId(e);return null===t?(k_.logNormal("StudyStub id="+e+" is not found in chart model"),!1):(this.removeSource(t),!0)}restoreStudyStub(e){const t=this.insertStudyStub(e.title,e.isOverlay,e.descriptor);return this.paneForSource(t)?.changeSourceId(t,e.id),t.setStatus(e.status),t}bulkActionMacro(e){const t=this._panes;t.forEach((e=>e.beginBulkAction())),e(),t.forEach((e=>e.endBulkAction()))}allLineTools(){return this._getAllSources(zs.isLineTool)}allLineToolsIncludingHidden(){return this._getAllSources(zs.isLineTool,H_)}setHoveredSource(e,t=null,i){const s=this._hoveredSource!==e;this._hoveredSourceOrigin=i??null,!s&&(0,Ut.hitTestResultDataAreEqual)(this._lastHoveredHittestData,t)||(this._lastHoveredHittestData=t,this._hoveredSource&&(this._hoveredSource.updateAllViews((0,wi.hoverChangeEvent)()),this.updateSource(this._hoveredSource)),this._hoveredSource=e,this._hoveredSource&&(this._hoveredSource.updateAllViews((0,wi.hoverChangeEvent)()),this.updateSource(this._hoveredSource)),s&&this._hoveredSourceChanged.fire(e))}properties(){return this._properties}chartApi(){ +return this._chartSession}disconnect(){this._sessions?.get()?.stop();for(const e of this.dataSources())e.disconnect&&e.disconnect();this._timeScale.disconnect()}crosshairSource(){return this._crossHairSource}gridSource(){return this._gridSource}publishedChartsTimelineSource(){return null}hoveredSource(){return this._hoveredSource}hoveredSourceOrigin(){return this._hoveredSourceOrigin}hoveredSourceChanged(){return this._hoveredSourceChanged}lastHittestData(){return this._lastHoveredHittestData}lastSelectedHittestData(){return this._lastSelectedHittestData}lightUpdate(){this.invalidate(ao.InvalidationMask.light())}fullUpdate(){this.invalidate(ao.InvalidationMask.full())}async syncTimeWithModel(e,t,i){const s=this.mainSeries().syncModel();if(null===s)return;const o=1e3*this.createSyncPoint(e,s.syncSourceTarget()).sourceTimeToTargetTime(t/1e3),r=(0,Ce.get_timezone)((0,n.ensureNotNull)(this.timezoneExceptExchange().value()));let a=(0,Ce.utc_to_cal)(r,o);return this.mainSeries().isDWM()&&(a=s.getSession().spec.correctTradingDay(a),(0,Ce.set_hms)(a,0,0,0,0,(0,Ce.get_timezone)("Etc/UTC"))),this._gotoTimeImpl(a.getTime(),{targetPointAlignment:"center",alignIfTargetPointIsVisible:!1,autoscaleAfterScroll:!1,...i}).catch((()=>{}))}gotoTime(e,t){return this._gotoTimeImpl(e,{targetPointAlignment:"center",alignIfTargetPointIsVisible:!0,autoscaleAfterScroll:!0,...t}).catch((()=>{}))}recalculatePane(e,t){e?.recalculate(t)}recalculateAllPanes(e){this._panes.forEach((t=>t.recalculate(e))),this.updateAllPaneViews(e),this.crosshairSource().updateAllViews(e)}async gotoTimeRange(e,t,i){const s=this.timeScale(),o=s.tickMarks(),r=this.mainSeries();if(i||this._lastGotoTimeRange?.deferred.reject(),void 0===o.minIndex)return void(i||(this._lastGotoTimeRange={from:e,to:t,deferred:(0,me.createDeferredPromise)()}));let a=e,l=t;if(null!==r.symbolInfo()){const i=(0,n.ensureNotNull)(this.timezoneExceptExchange().value()),s=(0,Ce.get_timezone)(i),o=(0,Ce.utc_to_cal)(s,e),c=(0,Ce.utc_to_cal)(s,t);if(r.isDWM()){const e=(0,Ce.get_timezone)("Etc/UTC");(0,Ce.set_hms)(o,0,0,0,0,e),(0,Ce.set_hms)(c,0,0,0,0,e)}a=o.getTime(),l=c.getTime()}const c=(0,n.ensureDefined)(o.maxIndex),h=(0,n.ensureDefined)(o.minIndex);if(!(a>=(0,n.ensureNotNull)(o.indexToTime(h)).valueOf()||r.endOfData()||i)){const s={type:"time-range",from:e/1e3,to:t/1e3};return null===this._lastAppliedGotoTimeRange&&(this._lastAppliedGotoTimeRange={range:s,actual:!0},r.loadDataTo(s)),i||(i=this._lastGotoTimeRange={from:e,to:t,deferred:(0,me.createDeferredPromise)()}),i.deferred.promise}{const e=(e,t)=>e(0,n.ensureNotNull)(o.indexToTime(e)).valueOf(),d=(0,Pt.lowerboundExt)(t,a,e,o.nearestIndex(a),c);let u=a===l?d:(0,Pt.lowerboundExt)(t,l,e,o.nearestIndex(l),c);this._lastGotoTimeRange=null,null!==this._lastAppliedGotoTimeRange&&(this._lastAppliedGotoTimeRange.actual=!1);const _=s.baseIndex();if(d+Math.max(u-d+1,s.minVisibleBarCount())>_){const e=s.targetDefaultRightOffset();u-_=0;t--)if(this._panes[t].hasDataSource(e))return this._panes[t];return e instanceof xi?this.paneForSource(this.mainSeries()):null}mainPane(){return this._panes.find((e=>e.isMainPane().value()))??null}lastPane(){return this._panes[this._panes.length-1]}removeSource(e,t){this.selectionMacro((t=>t.removeSourceFromSelection(e)),!0),this._hoveredSource===e&&(this._hoveredSource=null,this._lastHoveredHittestData=null),this._sourcesBeingMoved.includes(e)&&(this._sourcesBeingMoved=this._sourcesBeingMoved.filter((t=>t!==e)),this._sourcesBeingMoved.length||(this._activeItemBeingMoved=null)),e===this._lineBeingEdited?.lineDataSource&&(this._lineBeingEdited=null,mt.isToolEditingNow.setValue(!1)),e===this.lineBeingCreated()&&(this._linesBeingCreated.shift(),0===this._linesBeingCreated.length&&mt.isToolCreatingNow.setValue(!1)),!t&&e.stop&&e.stop();const i=this.detachSource(e),s=this.mainSeries().priceScale();return(0,Ws.isStudy)(e)&&(0,Lr.isActingAsSymbolSource)(e)&&e.priceScale()===s&&s.isPercentage()&&1===s.seriesLikeSources().filter(Lr.isActingAsSymbolSource).length&&s.setMode({percentage:!1}),this.fullUpdate(),this._invalidateBarColorerCaches(),(0,Ws.isStudy)(e)&&((0,ee.emit)("study_event",e.id(),"remove"),e.isChildStudy()&&e.parentSources().forEach((t=>t.unsetChild(e))),e.maxOffset().unsubscribe(this._boundUpdateStudiesMaxOffset)),!t&&e.destroy&&e.destroy(),(0,zs.isLineTool)(e)&&(e.removeAlert(),(0,ee.emit)("drawing_event",e.id(),"remove")),i}mainSeriesScaleRatio(){return(0,Wl.scaleRatio)(this._timeScale,this.mainSeries().priceScale())}setMainSeriesScaleRatio(e){(0,n.ensureNotNull)(this.paneForSource(this._mainSeries)).applyPriceScaleRatio(this._mainSeries.priceScale(),e)}timezone(){return this._properties.childs().timezone.value()}timezoneExceptExchange(){return this._timezoneExceptExchange}allStudies(e){const t=e?e=>(0,Ws.isStudy)(e)&&!0:Ws.isStudy;return this._getAllSources(t)}studiesWV(e){return e?this._studiesExcludeInternalWV.readonly():this._studiesWV.readonly()}signatureSources(){return this._signatureSources}sourcesSignatures(){return this._sourcesSignatures}listUserStudies(e){const t=[];for(const i of this._panes)for(const s of i.priceDataSources())if(!(0,Ws.isFundamentalStudy)(s)&&(0,Ws.isStudy)(s)&&s.showInObjectTree()){const{id:i,shortDescription:o}=s.metaInfo();if(e.dontCountVolume&&"Volume@tv-basicstudies"===i||e.dontCountCompare&&"Compare@tv-basicstudies"===i||e.dontCountOverlay&&"Overlay@tv-basicstudies"===i)continue;t.push(o)}return t}findNonOverlayStudyWithGroupingKey(e,t){const i=void 0!==t?[t]:this._panes;for(const t of i){const i=t.dataSources().find((i=>(0,Ws.isStudy)(i)&&i.metaInfo().groupingKey===e&&!t.isOverlay(i)));if(void 0!==i)return{pane:t,study:i}}return null}canMovePaneUp(e){ +if(0===e)return!1;const t=this._panes[e],i=this._panes[e-1];return t.mode()===zi.PaneMode.Widget?i.containsMainSeries():i.mode()!==zi.PaneMode.Widget||!t.containsMainSeries()||1!==e}movePaneUp(e){this.movePane(e,e-1)}canMovePaneDown(e){if(e===this._panes.length-1)return!1;const t=this._panes[e],i=this._panes[e+1];return t.mode()===zi.PaneMode.Widget?i.containsMainSeries():i.mode()!==zi.PaneMode.Widget||!t.containsMainSeries()||e!==this._panes.length-2}movePaneDown(e){this.movePane(e,e+1)}movePane(e,t){const i=this._panes[e];this._panes.splice(e,1),this._panes.splice(t,0,i),this._panesCollectionChanged.fire(this._panes),this._onRearrangePanes.fire(),this._invalidateBarColorerCaches(),this.invalidate(ao.InvalidationMask.panesOrder())}toggleCollapsedPane(e){const t=this._panes[e];t.collapsed().setValue(!t.collapsed().value()),this.fullUpdate()}sendToBack(e){this._sendTo(e,((e,t)=>e.sendToBack(t)))}bringToFront(e){this._sendTo(e,((e,t)=>e.bringToFront(t)))}backgroundColor(){return this._backgroundColor}backgroundTopColor(){return this._backgroundTopColor}backgroundColorAtYPercentFromTop(e){const t=this.backgroundColor().value(),i=this.backgroundTopColor().value();return this._backgroundColorAtYPercentFromTop.gradientColor(i,t,e)}backgroundCounterColor(){return this._backgroundCounterColor.readonly()}dark(){return this._isDark}backgroundTheme(){return this._backgroundTheme}readOnly(){return this._readOnly}defaultResolutions(){return this.chartApi().defaultResolutions()}availableCurrencies(){const e=this._getAvailableCurrencies();return e.length!==this._availableCurrencies.size()&&(this._availableCurrencies=new Fd(e)),this._availableCurrencies}currencyConversionEnabled(){return this._options.currencyConversionEnabled}availableUnits(){const e=this._getAvailableUnits();return this._availableUnits.unitsChanged(e)&&(this._availableUnits=new Wd(e)),this._availableUnits}unitConversionEnabled(){return this._options.unitConversionEnabled}availablePriceSources(e){const t=this._getAvailablePriceSources(e);return null!==t&&this._availablePriceSources.priceSourcesChanged(t)&&(this._availablePriceSources=new C_(t)),this._availablePriceSources}resetDeferredStudies(){vh.instance(this).reset()}waitForStudy(e){const t=this.dataSourceForId(e);return t&&(0,Ws.isStudy)(t)?Promise.resolve(t):vh.instance(this).get(e)}resetWaitForStudy(e){vh.instance(this).delete(e)}isJustClonedChart(){return this._undoModel.isJustClonedChart()}studyTemplate(e,t,i){const s={panes:[],version:this.version()};for(const e of this.panes())s.panes.push(e.state({includeSources:!0,isStudyTemplate:!0}));const o=this.mainSeries();return e&&(s.symbol=o.symbol(),this.currencyConversionEnabled()&&i&&(s.currency=o.currency()),this.unitConversionEnabled()&&i&&(s.unit=o.unit())),t&&(s.interval=o.interval()),s}dataSourceForId(e){for(const t of this._panes){const i=t.dataSourceForId(e);if(i)return i}return null}getStudyById(e){const t=this.dataSourceForId(e);return null!==t&&(0,Ws.isStudy)(t)?t:null}getLineToolById(e){const t=this.dataSourceForId(e);return null!==t&&(0, +zs.isLineTool)(t)?t:null}restoreLineToolState(e,t,i){t.positionPercents?e.restorePositionPercents(t.positionPercents):(e.clearFixedPoint(),e.restorePoints(t.points,t.indexes||[])),t.state.intervalsVisibilities=(0,bh.mergeIntervalVisibilitiesDefaults)(t.state.intervalsVisibilities),e.linkKey().setValue(t.linkKey||null),e.properties().mergeAndFire(t.state),e.restoreData&&e.restoreData(t),e.createServerPoints(),e.setZorder(t.zorder??e.zorder()),this.fullUpdate();const s=e.linkKey().value();null!==s&&i&&!this._lineToolsSyncBlock&&(0,mt.restoreLineToolState)({model:this,linkKey:s,state:t})}restoreFactoryDefaults(e){e.restoreFactoryDefaults(),this.recalcVisibleRangeStudies(Co.RecalcVisibleRangeStudiesReason.ViewportChangeUserAction)}preferences(){return function(e,t,i=m_){const s={timezone:"",priceScaleSelectionStrategyName:"auto",inactivityGaps:!1,timeScale:{defaultRightOffset:e.timeScale().defaultRightOffset().value(),defaultRightOffsetPercentage:e.timeScale().defaultRightOffsetPercentage().value(),usePercentageRightOffset:e.timeScale().usePercentageRightOffset().value()},mainSeries:{},sessions:{},paneProperties:{},scalesProperties:{},chartEventsSourceProperties:{},tradingProperties:{}},o=["timeScale","mainSeries","sessions"],n=i.mainSeries,r=Object.keys(i),a=Object.keys(n),l=t.properties(),c=e.sessions().properties(),h=e.properties(),d=i.sessions,u=Object.keys(d);return a.forEach((e=>{s.mainSeries[e]=f_(e,l,n,"mainSeries")})),u.forEach((e=>{s.sessions[e]=f_(e,c,d,"sessions")})),r.forEach((e=>{o.includes(e)||(s[e]=f_(e,h,i,"preferences"))})),s}(this,this.mainSeries())}applyPreferences(e){for(const[t,i]of Object.entries(e)){const e=this._properties.child(t);void 0!==i&&void 0!==e&&e.mergeAndFire(i)}if(void 0!==e.timeScale){const t=e.timeScale;this._timeScale.defaultRightOffset().setValue(t.defaultRightOffset),this._timeScale.defaultRightOffsetPercentage().setValue(t.defaultRightOffsetPercentage),this._timeScale.usePercentageRightOffset().setValue(t.usePercentageRightOffset)}this._properties.saveDefaults(),this._mainSeries.applyPreferences(e.mainSeries),this.sessions().restoreState({properties:e.sessions},!1),this.recalculateAllPanes((0,wi.globalChangeEvent)()),this.fullUpdate()}restoreTheme(e,t,i){e.mainSourceProperties.hollowCandleStyle||(e.mainSourceProperties.hollowCandleStyle=e.mainSourceProperties.candleStyle),this._undoModel.chartLoadTheme(e,t,i)}updateScales(){this.mainSeries().properties().childs().priceAxisProperties.fireChanged()}onResetScales(){return this._resetScales}startMovingSources(e,t,i,s,o,r){this._sourcesBeingMoved=e,this._activeItemBeingMoved=i;let a=!1;if(this._sourcesBeingMoved.forEach((e=>{!a&&(0,Ws.isStudy)(e)&&(a=!0);const l=(0,n.ensureNotNull)(this.paneForSource(e)),c=(0,zs.isLineTool)(e),h=c&&e.linkKey().value();if(!1!==h&&null!==h&&s.has(h)&&c&&e.isFixed()){const t=(0,n.ensureDefined)(s.get(h)),a={screen:this._percentPositionToPoint(t,l)};e.startMoving(a,i,o,r)}else e.startMoving(t,i,o,r);const d=this._paneInvalidationMask(l,ao.InvalidationLevel.Light);this.invalidate(d)})),!r){ +const[s,r]=F_(e);if(s.size&&t.logical){const a=this.externalTimeStamp(t.logical.index),l={linkKeys:[...s],toolNames:[...r],model:this,symbol:this.mainSeries().symbol(),point:{price:t.logical.price,timeStamp:a},activeItem:null!==i?i:void 0,envState:o,pointPositionPercents:new Map};e.forEach((e=>{if((0,zs.isLineTool)(e)){const i=e.linkKey().value();if(i&&e.isSynchronizable()&&e.isFixed()){const s=(0,n.ensureNotNull)(this.paneForSource(e));l.pointPositionPercents.set(i,this._pointToPercentPosition((0,n.ensureDefined)(t.screen),s))}}})),(0,mt.startMovingLineTool)(l)}}mt.isToolMovingNow.setValue(!0),a&&mt.isStudyEditingNow.setValue(!0)}moveSources(e,t,i,s){if(this._sourcesBeingMoved.filter((e=>!e.isLocked||!e.isLocked())).forEach((o=>{const r=(0,zs.isLineTool)(o)?o.linkKey().value():null;if(null!==r&&t.has(r)){const e=(0,n.ensureNotNull)(this.paneForSource(o)),a=(0,n.ensureDefined)(t.get(r)),l={screen:this._percentPositionToPoint(a,e)};o.move(l,this._activeItemBeingMoved,i,s)}else o.move(e,this._activeItemBeingMoved,i,s)})),this.lightUpdate(),!s&&e.logical&&!this._lineToolsSyncBlock){const[t,s]=F_(this._sourcesBeingMoved),o=this.externalTimeStamp(e.logical.index),r={linkKeys:[...t],toolNames:[...s],model:this,point:{price:e.logical.price,timeStamp:o},envState:i,pointPositionPercents:new Map};this._sourcesBeingMoved.filter(zs.isLineTool).forEach((t=>{if(t.linkKey().value()&&t.isSynchronizable()&&t.isFixed()){const i=(0,n.ensureNotNull)(this.paneForSource(t));r.pointPositionPercents.set(t.linkKey().value(),this._pointToPercentPosition((0,n.ensureDefined)(e.screen),i))}})),(0,mt.moveLineTool)(r)}}endMovingSources(e,t,i){const s=this._sourcesBeingMoved.map((s=>{const o=(0,n.ensureNotNull)(this.paneForSource(s)),r=s.endMoving(e,t,i),a=this._paneInvalidationMask(o,ao.InvalidationLevel.Light);return a.invalidateAll(ao.InvalidationLevel.Light),this.invalidate(a),r}));if(!t&&!this._lineToolsSyncBlock){const[e,t]=F_(this._sourcesBeingMoved),i=this._sourcesBeingMoved.filter(zs.isLineTool).filter((e=>e.isSynchronizable()&&!!e.linkKey)).map((e=>{const t={points:e.normalizedPoints(),interval:this.mainSeries().interval()};return e.isFixed()&&(t.pointPositionPercents=e.calcPositionPercents()),t}));e.size&&(0,mt.finishMovingLineTool)({linkKeys:[...e],toolNames:[...t],model:this,finalStates:i,changes:s})}this._sourcesBeingMoved=[],this._activeItemBeingMoved=null,mt.isToolMovingNow.setValue(!1),mt.isStudyEditingNow.setValue(!1)}sourcesBeingMoved(){return this._sourcesBeingMoved}setMovingCustomSource(e,t){this._customSourceBeingMoved=e,this._customSourceBeingMovedHitTestData=null!==t?{beingMoved:!1,cancelled:!1,...t}:null}processingCustomSourceMove(){null!==this._customSourceBeingMovedHitTestData&&(this._customSourceBeingMovedHitTestData.beingMoved=!0)}customSourceMovingHitTestData(){return this._customSourceBeingMovedHitTestData}customSourceBeingMoved(){return null!==this._customSourceBeingMovedHitTestData&&this._customSourceBeingMovedHitTestData.beingMoved?this._customSourceBeingMoved:null}lineToolsSynchronizer(){ +return this._lineToolsSynchronizer}setLineToolsSynchronizer(e){this._lineToolsSynchronizer=e}width(){return this._width}setWidth(e,t){(this._panes.reduce(((t,i)=>i.setWidth(e)||t),!1)||this._width!==e)&&(this._width=e,this._timeScale.setWidth(e,t),this.recalculateAllPanes((0,wi.viewportChangeEvent)()),this.recalcVisibleRangeStudies(Co.RecalcVisibleRangeStudiesReason.ViewportChangeUserAction))}setPaneHeight(e,t){e.setHeight(t),this.recalculateAllPanes((0,wi.viewportChangeEvent)()),this.lightUpdate()}resetScalesAvailable(){return this._resetScalesAvailable.readonly()}maximizedPane(){return this._maximizedPane.readonly()}setMaximizedPane(e){(0,n.assert)(null===e||this._panes.includes(e),"The pane is not part of this chart"),this._maximizedPane.setValue(e)}panes(){return this._panes}paneForId(e){return this._panes.find((t=>t.id()===e))||null}createPane(e,t,i,s){this._restoringState||this._maximizedPane.setValue(null);const o=this._properties.childs().paneProperties;t&&o.merge(t);const n=new kh(this._timeScale,o,this,i,s??zi.PaneMode.Regular);return void 0!==e?this._panes.splice(e,0,n):this._panes.push(n),n.onTagsChanged().subscribe(this,(()=>this.onPaneTagsChanged())),n.dataSourcesCollectionChanged().subscribe(this,(()=>this._dataSourceCollectionChanged.fire(n))),n.dataSourcesZOrdersChanged().subscribe(this,(()=>this._invalidateBarColorerCaches())),n.symbolSourceCollectionChanged().subscribe(this,(()=>this._onSymbolSourceCollectionChanged(n))),n.priceSourcesCollectionChanged().subscribe(this,(()=>this._onPriceSourcesCollectionChanged(n))),n.sourcePropertiesChanged().subscribe(this,(e=>this._sourceProperitesChanged.fire(n,e))),n.sourceZOrderChanged().subscribe(this,(e=>this._sourceZOrderChanged.fire(n,e))),n.symbolSourceResolved().subscribe(this,(e=>this._symbolSourceResolved.fire(n,e))),n.symbolSourceResolvingActive().subscribe(this._recalcSymbolResolvingActive),n.collapsed().subscribe(this._recalcPaneCollapsingAvailable),n.resetPriceScalesAvailable().subscribe(this._updateResetScalesAvailableValue,{callWithLast:!0}),this._recalcPaneCollapsingAvailable(),this._panesCollectionChanged.fire(this._panes),this._invalidateBarColorerCaches(),this.invalidate(ao.InvalidationMask.panesOrder()),n}removePane(e){e===this._maximizedPane.value()&&this._maximizedPane.setValue(null),e.destroy();const t=this._panes.indexOf(e);-1!==t&&(this._panes.splice(t,1),e.dataSourcesCollectionChanged().unsubscribeAll(this),e.dataSourcesZOrdersChanged().unsubscribeAll(this),e.symbolSourceCollectionChanged().unsubscribeAll(this),e.priceSourcesCollectionChanged().unsubscribeAll(this),e.sourcePropertiesChanged().unsubscribeAll(this),e.onTagsChanged().unsubscribeAll(this),e.symbolSourceResolved().unsubscribeAll(this),e.symbolSourceResolvingActive().unsubscribe(this._recalcSymbolResolvingActive),e.collapsed().unsubscribe(this._recalcPaneCollapsingAvailable),e.resetPriceScalesAvailable().unsubscribe(this._updateResetScalesAvailableValue),this._recalcPaneCollapsingAvailable(!0)),this._updateResetScalesAvailableValue() +;this.crosshairSource().pane===e&&this.clearCurrentPosition(),this._panesCollectionChanged.fire(this._panes),this._invalidateBarColorerCaches(),this.invalidate(ao.InvalidationMask.panesOrder())}changePanesHeight(e,t){if(this._panes.length<2)return;(0,n.assert)(e>=0&&ee+t.stretchFactor()),0),o=this._panes.reduce(((e,t)=>e+t.height()),0),r=o-30*(this._panes.length-1);t=Math.min(r,Math.max(30,t));const a=s/o,l=i.height();i.setStretchFactor(t*a);let c=t-l,h=this._panes.length-1;for(const e of this._panes)if(e!==i){const t=Math.min(r,Math.max(30,e.height()-c/h));c-=e.height()-t,h-=1;const i=t*a;e.setStretchFactor(i)}this.fullUpdate()}clearCurrentPosition(){const e=this.crosshairSource();e.clearPosition(),(0,n.ensureNotNull)(e.dataWindowView()).update((0,wi.sourceChangeEvent)(e.id())),D_(this._panes),this.invalidate(ao.InvalidationMask.cursor()),this._undoModel.syncCrosshair(null),this._phantomSourceContainer.onCursorPositionUpdated()}getTpoSummaryPane(){throw new Error("Not implemented")}getVolumeFootprintSummaryPane(){throw new Error("Not implemented")}setAndSaveCurrentPosition(e,t,i,s){this.crosshairSource().saveOriginCoords(e,t),this.setCurrentPosition(e,t,i,s)}setCurrentPosition(e,t,i,s){let o=NaN;const r=this._timeScale.coordinateToVisibleIndex(e),a=(this._lineBeingEdited??this._linesBeingCreated[0])?.ownerSource.priceScale()??i.defaultPriceScale();let l=null;!a.isEmpty()&&Number.isFinite(t)&&(l=(0,n.ensureNotNull)(i.mainDataSource()).firstValue(),null!==l&&(o=a.coordinateToPrice(t,l)));const c=this._crossHairSelectPointMode.value()!==mt.SelectPointMode.None,h=mt.tool.value(),d=this.mainSeries(),u=this.crosshairSource(),_=u.index,p=u.price,m=c||mt.isStudyEditingNow.value();let g=!1;const f=(0,Dn.magnetSnapsToIndicators)().value();if(a===this._mainSeries.priceScale()||f)if((0,Lt.isLineDrawnWithPressedButton)(h)){const e=this.lineBeingCreated();g=null===e||(0,zs.isBrushBasedLineTool)(e)&&e.hasOnlyOnePoint()}else{g=Boolean(this.lineBeingCreated()||this._lineBeingEdited||(0,Lt.isLineToolName)(h)||(0,mt.toolIsMeasure)(h))||m}!this._isSettingsExternalPosition&&g?(o=this._magnet.align(o,r,i),null!==l&&this._setCorrectedPositionToCrosshair(r,o,i)):this._magnet.resetLastValue();let y=null;if(isNaN(o)||(y=i),this._isTimeScrolling){if(!this._isSettingsExternalPosition&&c){const e=d.bars().firstIndex(),t=d.bars().lastIndex();if(null!==e&&null!==t){const s=Math.min(Math.max(r,e),t);s!==r&&this._setCorrectedPositionToCrosshair(s,o,i)}}else u.setPosition(u.index,o,y);return}u.setOnHoveredChartWidget(!0),u.setPosition(r,o,y),(0,n.ensureNotNull)(u.dataWindowView()).update((0,wi.sourceChangeEvent)(u.id())),D_(this._panes);const v=d.syncModel(),S=this.lineBeingCreated();if(this.crosshairSource().startMeasurePoint()||S?this.lightUpdate():this.invalidate(ao.InvalidationMask.cursor()),S){const e=S.linkKey().value();if(!this._isSettingsExternalPosition){const t=S.setLastPoint({index:r,price:o},s);if(S.updateAllViews((0, +wi.sourceChangeEvent)(S.id())),t.price===o&&t.index===r||this._setCorrectedPositionToCrosshair(t.index,t.price,i),v&&e&&!this._lineToolsSyncBlock){const i=this._timeScale.points().roughTime(t.index,v.projectTime.bind(v));(0,mt.setLineToolLastPoint)({model:this,linkKey:e,point:{timeStamp:(0,n.ensureNotNull)(i),price:t.price}})}}}if(!this._isSettingsExternalPosition&&null!==this._lineBeingEdited&&null!==this._lineBeingEdited.pointIndex){const e={index:r,price:o},{lineDataSource:t,pointIndex:n,startChangingPoint:a}=this._lineBeingEdited;if(a?.nonDiscreteIndex){const t=this.crosshairSource().originX();Number.isFinite(t)&&(e.index=this._timeScale.coordinateToFloatIndex(t))}this.changeLinePoint(e,s);const l=t.alignCrossHairToAnchor(n)?t.getPoint(n):e;null!==l&&this._setCorrectedPositionToCrosshair(l.index,l.price,i)}if(!this._isSettingsExternalPosition&&1===this._sourcesBeingMoved.length){const e=this._sourcesBeingMoved[0];if(e.alignCrossHairToMovePoint?.()){const t=e.currentMovingPoint?.();t&&t.logical&&this._setCorrectedPositionToCrosshair(t.logical.index,t.logical.price,i)}}if(!this._isSettingsExternalPosition&&m){const e=d.bars().firstIndex(),t=d.bars().lastIndex();if(null!==e&&null!==t){const s=Math.min(Math.max(r,e),t);s!==r&&this._setCorrectedPositionToCrosshair(s,o,i)}}(_!==r||p!==o)&&this._syncCrosshair(s)}setExternalPosition(e,t){let i;const s=this.crosshairSource();if(s.setOnHoveredChartWidget(!1),null!==e&&(0,tt.isNumber)(e.timeStamp)){const t=this.mainSeries().syncModel();if(t){const s=this.createSyncPoint(e.syncSourceTarget,t.syncSourceTarget()).sourceTimeToTargetTime(e.timeStamp);i=this._timeScale.points().roughIndex(s,t.distance.bind(t),1)}}if(null!==e&&null!=i&&Number.isFinite(i)){this._isSettingsExternalPosition=!0;const o=(0,n.ensureNotNull)(this.paneForSource(this.mainSeries())),r=this._timeScale.indexToCoordinate(i),a=(0,n.ensureNotNull)(o.mainDataSource()).firstValue();if(null!==a){let i=NaN;void 0!==e.price&&Number.isFinite(e.price)&&(i=this.mainSeries().priceScale().priceToCoordinate(e.price,a)),s.clearOriginCoords(),this.setCurrentPosition(r,i,o,t)}return s.setOnHoveredChartWidget(!1),void(this._isSettingsExternalPosition=!1)}s.clearPosition(),(0,n.ensureNotNull)(s.dataWindowView()).update((0,wi.sourceChangeEvent)(s.id())),D_(this._panes),this.invalidate(ao.InvalidationMask.cursor())}startScaleTime(e){this._timeScale.startScale(e)}scaleTimeTo(e){this._timeScale.scaleTo(e),this.recalculateAllPanes((0,wi.viewportChangeEvent)()),this.lightUpdate()}endScaleTime(){this._timeScale.endScale(),this.lightUpdate(),this.recalcVisibleRangeStudies(Co.RecalcVisibleRangeStudiesReason.ViewportChangeUserAction)}resetTimeScale(){this._timeScale.restoreDefault(),this.recalculateAllPanes((0,wi.viewportChangeEvent)()),this.recalcVisibleRangeStudies(Co.RecalcVisibleRangeStudiesReason.ViewportChangeUserAction),this.lightUpdate(),this._resetScales.fire()}startScalePrice(e,t,i){e.startScalePrice(t,i)}scalePriceTo(e,t,i){e.scalePriceTo(t,i), +this.mainSeries().priceScale().isLockScale()?this.lightUpdate():this.invalidate(this._paneInvalidationMask(e,ao.InvalidationLevel.Light))}endScalePrice(e,t){e.endScalePrice(t),this.invalidate(this._paneInvalidationMask(e,ao.InvalidationLevel.Light))}startTwoPointsScalePrice(e,t,i,s){t.startTwoPointsScale(i,s)}twoPointsScalePriceTo(e,t,i,s){t.twoPointsScale(i,s),t.updateAllViews((0,wi.viewportChangeEvent)()),this.invalidate(this._paneInvalidationMask(e))}endTwoPointsScalePrice(e,t){t.endTwoPointsScale(),this.invalidate(this._paneInvalidationMask(e))}resetPriceScale(e,t){e.resetPriceScale(t),this.invalidate(this._paneInvalidationMask(e,ao.InvalidationLevel.Light))}restorePriceScaleState(e,t,i){e.restorePriceScaleState(t,i),this.invalidate(this._paneInvalidationMask(e,ao.InvalidationLevel.Light))}detachSource(e){const t=this.paneForSource(e);return!!t&&(t.removeDataSource(e),t.isEmpty()?(this.lineBeingCreated()&&t===this.paneBeingCreatedLineOn()&&this.cancelCreatingLine(),this.removePane(t),!0):(this.fullUpdate(),!1))}restoreSource(e,t,i,s,o){const n=e?this.createPane(t):this.panes()[t],r=(0,wt.isStudyState)(s),a=r?n.restoreStudy(s):(0,wt.isLineToolState)(s)?n.restoreLineTool({state:s}):null;if(!a)return null;let l=null;if(o?(l=n.getPriceScaleById(o.id),l||(l=n.createPriceScaleAtPosition(o.position,o.priceScaleIndex),l.setId(o.id))):l=a.ownerSource()?.priceScale()??l,l&&(a.setPriceScale(l),l.addDataSource(a)),!e&&i&&i.overlayPriceScales){const e=this.dataSources().filter((e=>void 0!==i.overlayPriceScales[e.id()]));e.forEach((e=>n.removeSourceFromPriceScale(e)));const t=new Map;e.forEach((e=>{const s=i.overlayPriceScales[e.id()];if(!s)return;let o;t.has(s.id)?o=t.get(s.id):(o=n.createPriceScaleAtPosition("overlay"),o.restoreState(s),t.set(s.id,o)),e.setPriceScale(o),o.addDataSource(e)}))}return e&&i&&n.restoreState({state:i,withData:!1,version:this.version()}),r&&(this.recalculateAllPanes((0,wi.sourceChangeEvent)(a.id())),this._invalidateBarColorerCaches(),this.fullUpdate()),a}children(e,t,i){return this.dataSources().filter((s=>(0,Ws.isStudy)(s)?!t&&s.parentSources().includes(e):!((0,zs.isLineTool)(s)&&i&&s.supportsTargetSignature()&&null!==s.targetSignature())&&s.ownerSource()===e))}onRearrangePanes(){return this._onRearrangePanes}studyInserted(){return this._studyInserted}finishLineTool(e){const t=e.linkKey().value();(0,mt.drawOnAllCharts)().value()&&null!==t&&e.isSynchronizable()&&!this._lineToolsSyncBlock&&(0,mt.finishLineTool)({linkKey:t,model:this})}startChangingLinetool(e,t,i,s,o,r){this._lineBeingEdited={lineDataSource:e,ownerSource:t,startChangingPoint:i??null,pointIndex:s??null},e.startChanging(s,i,r),mt.isToolEditingNow.setValue(!0);const a=(0,n.ensureNotNull)(this.paneForSource(e));e.startDragPoint&&void 0!==s&&void 0!==i&&e.startDragPoint(s,i),r||void 0===s||void 0===i||e.setPoint(s,i,o,r),e.updateAllViews((0,wi.sourceChangeEvent)(e.id()));const l=this._paneInvalidationMask(a,ao.InvalidationLevel.Light);this.invalidate(l);const c=e.linkKey().value() +;if(c&&e.isSynchronizable()&&void 0!==s&&void 0!==i&&!this._lineToolsSyncBlock){const t=(0,n.ensureNotNull)(this.externalTimeStamp(i.index));(0,mt.startChangingLineTool)({linkKey:c,model:this,symbol:this.mainSeries().symbol(),point:{price:i.price,timeStamp:t},positionPercents:e.positionPercents(),pointIndex:s,envState:o||null})}}createLineTool(e){const{point:t,linetool:i,linkKey:s=null,sharingMode:o=0,id:r,fromExternalModel:a,actionSource:l,pane:c}=e;let{properties:h,ownerSource:d}=e;d=(0,n.ensureDefined)(d||(0,n.ensureNotNull)(c.mainDataSource()));let u=c;if((0,n.assert)((0,Lt.isLineToolName)(i),`Cannot create unknown line tool: ${i}`),h){const e={...v_.intervalsVisibilitiesDefaults},t=h.childs().intervalsVisibilities.state();(0,tt.merge)(e,t??{});const s=h.state();s.intervalsVisibilities=e,h=(0,zs.createLineToolProperties)(this.backgroundTheme().spawnOwnership(),i,!this.readOnly(),s)}const _=(0,zs.createLineTool)(i,this,h,null,void 0,r,l);if("LineToolExecution"!==i){let e;switch(i){case"LineToolIcon":e=_.properties().childs().icon.value().toString(16).toUpperCase();break;case"LineToolEmoji":e=_.properties().childs().emoji.value();break;case"LineToolSticker":e=_.properties().childs().sticker.value()}(0,re.trackEvent)("drawings","Study_Drawing_"+i,e)}(0,Us.isStudyLineTool)(_)&&(0,re.trackEvent)("studies",`Study_${_.metaInfo().id}`,_.metaInfo().description);const p=!_.linkKey().value()&&!s;h||(0,zs.prepareLineToolPropertiesByOwnerSource)(_.properties(),d),_.setOwnerSource(d);const m=d.priceScale();if(_.setPriceScale(m),L_&&d===this.mainSeries()&&_.share(o),u.addDataSource(_,m,!1),null!==_.preferredZOrder()&&u.insertAfter([_],this.mainSeries()),(0,mt.drawOnAllCharts)().value()){const e=_.isSynchronizable()?s||(0,fe.randomHash)():null;_.linkKey().setValue(e)}else _.linkKey().setValue(s);let g;if(p&&_.enableCurrentIntervalVisibility(),_.isFixed()){const e=(0,n.ensureNotNull)((0,n.ensureNotNull)(c.mainDataSource()).firstValue()),i=this._timeScale.indexToCoordinate(t.index),s=(0,n.ensureNotNull)(m).priceToCoordinate(t.price,e);g=_.addFixedPoint(new Vt.Point(i,s))}else g=_.addPoint(t);return g||(this._linesBeingCreated.unshift({lineDataSource:_,fromExternal:!!a,ownerSource:d,pane:c}),mt.isToolCreatingNow.setValue(!0)),this.fullUpdate(),_}endChangingLinetool(e,t){const i=(0,n.ensureNotNull)(this._lineBeingEdited).lineDataSource,s=i.endChanging(!1,e,t);this._lineBeingEdited=null,mt.isToolEditingNow.setValue(!1),this.lightUpdate();const o={points:i.normalizedPoints(),interval:this.mainSeries().interval()},r=i.linkKey().value();null===r||!i.isSynchronizable()||t||this._lineToolsSyncBlock||(0,mt.finishChangingLineTool)({model:this,linkKey:r,symbol:this.mainSeries().symbol(),finalState:o,changes:s})}continueCreatingLine(e,t,i,s,o){const r=(0,n.ensureNotNull)(this.lineBeingCreated()),a=r.addPoint(e,t,i,o);r.updateAllViews((0,wi.sourceChangeEvent)(r.id()));const l=new ao.InvalidationMask(ao.InvalidationLevel.Light);return a&&(this._linesBeingCreated.shift(),0===this._linesBeingCreated.length&&mt.isToolCreatingNow.setValue(!1)), +this.invalidate(l),a}cancelCreatingLine(){const e=this.lineBeingCreated();e&&(this.removeSource(e),this._linesBeingCreated.shift(),this._lineCancelled.fire(),0===this._linesBeingCreated.length&&mt.isToolCreatingNow.setValue(!1),(0,mt.drawOnAllCharts)().value()&&e.isSynchronizable()&&!this._lineToolsSyncBlock&&(0,mt.cancelLineTool)({model:this}))}lineBeingCreated(){return this._linesBeingCreated[0]?.lineDataSource??null}lineBeingCreateFromExternal(){return this._linesBeingCreated[0]?.fromExternal??!1}paneBeingCreatedLineOn(){return this._linesBeingCreated[0]?.pane??null}lineCancelled(){return this._lineCancelled}isPhantomLine(e){return this._phantomSourceContainer.source()===e}alignTo45Degrees(e,t,i){const[s,o]=i,n={...o};e.snapPoint45Degree(s,n),this.startChangingLinetool(e,t,o,o.pointIndex),this.changeLinePoint(n,To.EnvironmentState.create(!0)),this.endChangingLinetool(!1)}changeLinePoint(e,t,i){const s=(0,n.ensureNotNull)(this._lineBeingEdited),o=s.lineDataSource,r=(0,n.ensureNotNull)(s.pointIndex);let a=e.price,l=e.index;if(o.setPoint(r,e,t,i),!i){const t=o.alignCrossHairToAnchor(r)?o.getPoint(r):e;null!==t&&(l=t.index,a=t.price)}o.updateAllViews((0,wi.sourceChangeEvent)(o.id())),this.lightUpdate();const c=o.linkKey().value();if(!i&&null!==c&&o.isSynchronizable()&&!this._lineToolsSyncBlock){const e=(0,n.ensureNotNull)(s.startChangingPoint),i={indexesChanged:l!==e.index,pricesChanged:a!==e.price},h=o.getChangePointForSync(r);if(null!==h){const e=this.externalTimeStamp(l);null!==e&&(a=h.price,(0,mt.changeLineTool)({linkKey:c,model:this,symbol:this.mainSeries().symbol(),point:{price:a,timeStamp:e},positionPercents:o.positionPercents(),envState:t,changes:i}))}}}changeLinePoints(e,t,i){const s=e.points(),o=e.linkKey().value();!i&&o&&e.isSynchronizable()&&!this._lineToolsSyncBlock&&t.forEach(((t,i)=>{const r=s[i],a=r.price!==t.price,l=r.index!==t.index;if(e.getChangePointForSync(i)){const i=(0,n.ensureNotNull)(this.externalTimeStamp(t.index));(0,mt.changeLineTool)({linkKey:o,model:this,symbol:this.mainSeries().symbol(),point:{price:t.price,timeStamp:i},positionPercents:e.positionPercents(),changes:{pricesChanged:a,indexesChanged:l}})}})),e.setPoints(t),e.updateAllViews((0,wi.sourceChangeEvent)(e.id())),this.lightUpdate()}startScrollTime(e){this._timeScale.startScroll(e),this._isTimeScrolling=!0,this.mainSeries().clearGotoDateResult()}scrollTimeTo(e){this._timeScale.scrollTo(e),this.recalculateAllPanes((0,wi.viewportChangeEvent)()),this.lightUpdate()}endScrollTime(){this._timeScale.endScroll(),this.lightUpdate(),this.recalcVisibleRangeStudies(Co.RecalcVisibleRangeStudiesReason.ViewportChangeUserAction),this._isTimeScrolling=!1}startScrollPrice(e,t,i){e.startScrollPrice(t,i)}scrollPriceTo(e,t,i){e.scrollPriceTo(t,i),this.invalidate(this._paneInvalidationMask(e,ao.InvalidationLevel.Light))}endScrollPrice(e,t){e.endScrollPrice(t),this.invalidate(this._paneInvalidationMask(e,ao.InvalidationLevel.Light))}addCustomSource(e,t,i=Co.CustomSourceLayer.Foreground){ +this._customSourcesMap.has(e)&&k_.logWarn(`Attempt to add the same custom source multiple time "${e}"`),k_.logNormal(`Adding custom source "${e}"`);const s=t(e,this);switch(i){case Co.CustomSourceLayer.Background:this._bgCustomSources.push(s);break;case Co.CustomSourceLayer.Foreground:this._fgCustomSources.push(s);break;case Co.CustomSourceLayer.Topmost:this._topmostCustomSources.push(s);break;default:throw new Error(`Unknown custom sources layer ${i}`)}this._allCustomSources.push(s),this._customSourcesMap.set(e,s),this.lightUpdate()}removeCustomSource(e){this._removeCustomSource(e),this.lightUpdate()}hasCustomSource(e){return this._customSourcesMap.has(e)}customSourceForName(e){return this._customSourcesMap.get(e)||null}customSourceName(e){let t=null;return this._customSourcesMap.forEach(((i,s)=>{i===e&&(t=s)})),t}customSources(e){switch(e){case Co.CustomSourceLayer.Background:return this._bgCustomSources;case Co.CustomSourceLayer.Foreground:return this._fgCustomSources;case Co.CustomSourceLayer.Topmost:return this._topmostCustomSources;default:return this._allCustomSources}}addMultiPaneSource(e){this._multiPaneSources.push(e),this._onMultipaneSourcesCollectionChanged.fire(),this.lightUpdate()}removeMultiPaneSource(e){const t=this._multiPaneSources.indexOf(e);-1===t?k_.logWarn("Attempt to remove multi-pane source which does not exist in the model"):(this._onMultipaneSourcesCollectionChanged.fire(),this._multiPaneSources.splice(t,1)),this.lightUpdate()}multiPaneSources(e){return this._multiPaneSources.filter((t=>!e.hasDataSource(t)))}onMultipaneSourcesCollectionChanged(){return this._onMultipaneSourcesCollectionChanged}rendererOptionsProvider(){return this._rendererOptionsProvider}magnet(){return this._magnet}priceAxisRendererOptions(){return this._rendererOptionsProvider.options()}priceScaleSlotsCount(){let e=0,t=0;this._panes.forEach((i=>{e=Math.max(i.leftPriceScales().length,e),t=Math.max(i.rightPriceScales().length,t)}));const i=e+t;if(ze.CheckMobile.any()){const e=(0,n.ensureNotNull)(this.paneForSource(this.mainSeries())),t=e.priceScalePosition(this.mainSeries().priceScale());return("overlay"===t?e.rightPriceScales().length>0:"right"===t)?{left:0,right:1,totallySlots:i}:{left:1,right:0,totallySlots:i}}return{left:e,right:t,totallySlots:i}}dateTimeFormatter(){return this._dateTimeFormatter}dateFormatter(){return this._dateFormatter}timeFormatter(){return this._timeFormatter}isUnmergeAvailableForSource(e){if(!this._unmergeAvailable(e))return!1;return(0,n.ensureNotNull)(this.paneForSource(e)).dataSources().filter(this._unmergeAvailable,this).length>1}isMergeDownAvailableForSource(e){if(!this._unmergeAvailable(e))return!1;const t=this.paneForSource(e),i=this.panes().filter((e=>e.mode()===zi.PaneMode.Regular));return t!==i[i.length-1]}isMergeUpAvailableForSource(e){if(!this._unmergeAvailable(e))return!1;return this.paneForSource(e)!==this.panes().filter((e=>e.mode()===zi.PaneMode.Regular))[0]}isPriceScaleVisible(e){const t=e.mainSource();if(!t)return!1;const i=(0, +n.ensureNotNull)(this.paneForSource(t)),s=i.priceScalePosition(e);if("overlay"===s)return!0;const o=i.priceScaleIndex(e,s),r=this.priceScaleSlotsCount()[s];return void 0!==o&&o{const s=await Promise.all([i.e(8736),i.e(6025),i.e(9378),i.e(1485),i.e(5456),i.e(7539)]).then(i.bind(i,52973));return this.addCustomSource("sessions",((i,o)=>{const n=new s.Sessions(i,o,t,e);return n.start(),n}),Co.CustomSourceLayer.Background),this.customSourceForName("sessions")})(),this,t)}}createPrePostMarket(e){this.addCustomSource("prePostMarket",((t,i)=>new Rd(t,i,e)))}createInactivityGaps(){this.addCustomSource("inactivityGaps",((e,t)=>new M_(e,t)))}inactivityGaps(){if(!l.enabled("inactivity_gaps"))throw new Error("inactivity_gaps featureset is not enabled");return(0,n.ensureNotNull)(this._inactivityGapsWatchedValue)}setInactivityGapsSession(e){(0,n.ensureNotNull)(this.customSourceForName("inactivityGaps")).setSession(e||"session")}watermarkSource(){return this._watermarkSource}watermarkContentProvider(){return P_.getInstance().provider()}studiesColorRotatorFactory(){return this._studyColorRotatorFactory}replayStatus(){return this._replayStatus}setReplayStatus(e){this._replayStatus.setValue(e)}isInReplay(){return this._mainSeries.isInReplay()}getSymbolString(){return this._mainSeries.getSymbolString()}interval(){return this._mainSeries.interval()}onInReplayStateChanged(){return new ae.Delegate}switchToReplay(e,t){0}switchToRealtime(){0}canChangeResolution(e){return this._mainSeries.canChangeResolution(e)}canChangeSymbol(e){return this._mainSeries.canChangeSymbol(e)}onReplayModified(){return(0,n.assert)(!1,"Replay not implemented"),this._mainSeries.onReplayModified()}mainSeriesScaleRatioProperty(){return this._mainSeriesScaleRatioProperty}mainSeriesScaleRatioPropertyOnChanged(){this._mainSeriesScaleRatioProperty.fireChanged()}getThemeNameIfStdTheme(){const e=this.sessions().properties(),t=this.properties(),i=this.mainSeries().properties();return e.allThemePropertiesAreDefault($s.StdTheme.Light)&&t.allThemePropertiesAreDefault($s.StdTheme.Light)&&i.allThemePropertiesAreDefault($s.StdTheme.Light)?$s.StdTheme.Light:e.allThemePropertiesAreDefault($s.StdTheme.Dark)&&t.allThemePropertiesAreDefault($s.StdTheme.Dark)&&i.allThemePropertiesAreDefault($s.StdTheme.Dark)?$s.StdTheme.Dark:null}theme(){return{chartProperties:this.properties().themeState(),sessions:this.sessions().properties().themeState(),mainSourceProperties:this.mainSeries().properties().themeState(),version:this.version()}}template(){return{chartProperties:this.properties().template(), +sessions:this.sessions().properties().template(),mainSourceProperties:this.mainSeries().properties().template(),version:this.version()}}onChartThemeLoaded(){return this._chartThemeLoaded}chartThemeLoaded(){this._chartThemeLoaded.fire()}async colorStudiesPropertiesReady(){this._recalcColorStudiesImpl(this._recalcVRStudiesParams);const e=this.allStudies(!0).filter((e=>e.metaInfo().inputs.filter(Ts.isStudyInputDependsOnChartColors).length>0));await Promise.all(e.map((e=>e.propertiesPatched())))}state(e){const{withData:t,skipLineToolsFromOtherSymbols:i,skipLineTools:s}=e,o=this.publishedChartsTimelineSource(),n=this.properties().childs(),r=n.tradingProperties.state(),a={panes:this._panes.map((t=>t.state({...e,includeSources:!0}))),timeScale:this._timeScale.state(t),chartProperties:{paneProperties:n.paneProperties.state(["horzGridProperties.style","vertGridProperties.style"]),scalesProperties:n.scalesProperties.state(),publishedChartsTimelineProperties:o?o.state(t):void 0,chartEventsSourceProperties:n.chartEventsSourceProperties?.state(),tradingProperties:r,priceScaleSelectionStrategyName:n.priceScaleSelectionStrategyName.value(),inactivityGaps:n.inactivityGaps.value()},sessions:this.sessions().state(t),version:this.version(),timezone:this.timezone(),shouldBeSavedEvenIfHidden:this._shouldBeSavedEvenIfHidden,linkingGroup:this._linkingGroupIndex.value()};return s||(a.lineToolsGroups=this.lineToolsGroupModel().state(i)),a}isInRestoreState(){return this._restoringState}restoreState(e,t,i){vh.instance(this).reset();const s={};if(!e.panes)return void k_.logDebug("ChartModel.restoreState: invalid state");if(!Array.isArray(e.panes))return void k_.logDebug("ChartModel.restoreState: invalid state");if(e.panes.length<1)return void k_.logDebug("ChartModel.restoreState: invalid state");this._restoringState=!0;for(const e of this._barsMarksSources)this.detachSource(e);if(this._shouldBeSavedEvenIfHidden=e.shouldBeSavedEvenIfHidden??!0,e.chartProperties&&!e.chartProperties.timezone&&(e.chartProperties.timezone=e.timezone),e.chartProperties){const i=(0,h.factoryDefaults)("chartproperties").scalesProperties;(0,tt.merge)(i,e.chartProperties.scalesProperties),!("showLastValue"in i)||"showSeriesLastValue"in i||"showStudyLastValue"in i||(i.showSeriesLastValueProperty=i.showLastValue,i.showStudyLastValueProperty=i.showLastValue),"showSeriesLastValue"in i&&(s.showSeriesLastValueProperty=!0),"showStudyLastValue"in i&&(s.showStudyLastValueProperty=!0),(!this.isSnapshot()&&!this.readOnly()&&"showCurrency"in i||"showUnit"in i)&&((0,Be.migrateShowCurrencyAndShowUnitProperties)(i.showCurrency,i.showUnit),delete i.showCurrency,delete i.showUnit);{const{paneProperties:t}=e.chartProperties;t.vertGridProperties=t.vertGridProperties||(0,tt.clone)(t.gridProperties),t.horzGridProperties=t.horzGridProperties||(0,tt.clone)(t.gridProperties),"backgroundType"in t||(t.backgroundType=co.ColorType.Solid),"separatorColor"in t||(t.separatorColor=(0,L.getThemedColor)("color-chart-page-bg")),this._properties.childs().paneProperties.mergeAndFire(t)} +this._properties.childs().scalesProperties.mergeAndFire(i),e.chartProperties.timezone&&this._properties.childs().timezone.setValue(e.chartProperties.timezone),e.chartProperties.chartEventsSourceProperties&&this._properties.hasChild("chartEventsSourceProperties")&&this._properties.childs().chartEventsSourceProperties.mergeAndFire(e.chartProperties.chartEventsSourceProperties),e.chartProperties.tradingProperties&&this._properties.hasChild("tradingProperties")&&(void 0===e.chartProperties.tradingProperties.horizontalAlignment&&(e.chartProperties.tradingProperties.horizontalAlignment=(o=e.chartProperties.tradingProperties.lineLength)<=40?Co.TradedGroupHorizontalAlignment.Right:o>=60?Co.TradedGroupHorizontalAlignment.Left:Co.TradedGroupHorizontalAlignment.Center),this._properties.childs().tradingProperties.mergeAndFire(e.chartProperties.tradingProperties)),this._timeScale.restoreState(e.timeScale,t),this._updateDateTimeFormatter()}var o;if(e.timeScale&&this._timeScale.restoreState(e.timeScale,t),!this.readOnly()){const t=this._getExceedingChildStudies(e.panes);if(t.length){for(let i=e.panes.length-1;i>=0;--i){const s=e.panes[i];for(let e=s.sources.length-1;e>=0;--e){const i=s.sources[e];~t.indexOf(i)&&s.sources.splice(e,1)}s.sources.length||s.mode!==zi.PaneMode.Regular||e.panes.splice(i,1)}0}}const r=e.version||0,a=e.panes;let l="_seriesId",c=1;for(const e of a){const t=e.sources.find((e=>"MainSeries"===e.type));if(t){l=t.id,t.state&&(c=t.state.style);break}}const d=!0,u=a[0];this.panes()[0].restoreState({state:u,withData:t,version:r,seriesId:l,settingsMigration:s,contentOverrides:i,restoreSilently:d,reason:2,targetSeriesStyle:c}),this.panes()[0].mainDataSource()||this.removePane(this.panes()[0]);let _=1;for(let o=1;of&&m%100==0?{ +lines_limit_exceeded:!0,line_tools_count:m}:(this.panes().forEach((e=>this._dataSourceCollectionChanged.fire(e))),this._lineToolsGroupModel.fireChangedAll(),this._linkingGroupIndex.setValue(e.linkingGroup??null),this._restoringState=!1,{})}shouldBeSavedEvenIfHidden(){return this._shouldBeSavedEvenIfHidden}setShouldBeSavedEvenIfHidden(e){this._shouldBeSavedEvenIfHidden=e}externalTimeStamp(e){const t=this.mainSeries().syncModel();return this.timeScale().points().roughTime(e,t&&t.projectTime.bind(t))}syncLollipopSources(){this._lollipopSourcesWatcherLoader?.callFunction((()=>{null!==this._lollipopSourcesWatcher&&this._lollipopSourcesWatcher.syncSources()}))}restoreChartEvents(e){this._lollipopSourcesWatcherLoader?.callFunction((()=>{null!==this._lollipopSourcesWatcher&&this._options.chartEventsEnabled&&this._lollipopSourcesWatcher.restoreChartEvents(e)}))}recalcVisibleRangeStudies(e){if(this._recalcVRStudiesParams.reasons.add(e),this._mainSeries.isStarted()&&this._mainSeries.isCompleted()){const t=(0,n.ensureDefined)(N_.get(e)).adapter,i=Math.min(...Array.from(this._recalcVRStudiesParams.reasons).map((e=>(0,n.ensureDefined)(N_.get(e)))).filter((e=>e.adapter===t)).map((e=>e.timeout)));(0,n.ensureDefined)(this._recalcVisibleRangeStudiesImplDebouncedByAdapter.get(t)?.get(i))()}else this._recalcVisibleRangeStudiesImpl(this._recalcVRStudiesParams)}recalcColorStudies(e){this._recalcColorStudiesParams.force=this._recalcColorStudiesParams.force||Boolean(e),this._recalcColorStudiesImplDebounced()}recalcStudyBasedLineTools(){this.dataSources().forEach((e=>{(0,Us.isStudyLineTool)(e)&&e.recalcStudyIfNeeded()}))}alertsWatcher(){return this._alertsWatcher}alertsCollection(){return this._alertsCollection.readonly()}showLegend(){return this._showLegendProperty}id(){return this._id}selectPointMode(){return this._crossHairSelectPointMode}cancelRequestSelectPoint(){this._crossHairSource.cancelRequestSelectPoint()}requestSelectPoint(e){return this._crossHairSource.requestSelectPoint(e)}onPointSelected(){return this._crossHairSource.onPointSelected()}recalculatePriceRangeOnce(){const e=this.mainSeries();for(const t of this._panes)for(const i of t.priceDataSources())i.symbolSource()===e&&i.disablePriceRangeReady()}invalidate(e){this._invalidateHandler?.(e)}appliedTimeFrame(){return this._appliedTimeFrame.appliedTimeFrame()}barsMarksSources(){return this._barsMarksSources}createSyncPoint(e,t){return(0,s_.getDefault2Lazy)(this._syncPointCache,e.uniqueId,t.uniqueId,(()=>new xd(e,t)))}isAutoSaveEnabled(){return this._isAutoSaveEnabled}linkingGroupIndex(){return this._linkingGroupIndex}studyAwareDefaultRightOffset(){return this._timeScale.usePercentageRightOffset().value()?this._timeScale.percentsToBarIndexLength(this.studyAwareDefaultRightOffsetPercentage()):Math.max(this._timeScale.defaultRightOffset().value(),this._cachedStudiesMaxOffset)}studyAwareDefaultRightOffsetPercentage(){ +return this._timeScale.usePercentageRightOffset().value()?Math.max(this._timeScale.defaultRightOffsetPercentage().value(),this._timeScale.barIndexLengthToPercents(this._cachedStudiesMaxOffset)):this._timeScale.barIndexLengthToPercents(this.studyAwareDefaultRightOffset())}clearAllStudies(){this.dataSources().forEach((e=>e.clearData?.()))}setTimeScaleAnimation(e,t){const i=ao.InvalidationMask.light(),s=this._timeScale;i.setTimeScaleAnimation(e,t??s.width()-s.indexToCoordinate(s.baseIndex())),this.invalidate(i)}stopTimeScaleAnimation(){this._timeScale.endScroll();const e=ao.InvalidationMask.light();e.stopTimeScaleAnimation(),this.invalidate(e)}lollipopSourcesOptions(){const e=this._options;return{chartEventsEnabled:!this._options.isSnapshot&&this._options.chartEventsEnabled,esdEnabled:e.esdEnabled,newsNotificationsEnabled:e.newsNotificationsEnabled,continuousContractSwitchesEnabled:e.continuousContractSwitchesEnabled,futuresContractExpirationEnabled:e.futuresContractExpirationEnabled,latestUpdatesEnabled:e.latestUpdatesEnabled}}onSymbolIntervalChanged(){return this._symbolIntervalChanged}setPriceAutoScale(e,t,i){e.setPriceAutoScale(t,i),this.invalidate(this._paneInvalidationMask(e,ao.InvalidationLevel.Light))}calculateDefaultTags(){return this.dataSources().reduce(((e,t)=>(t.tags&&e.push(...t.tags()),e)),[])}setActivationChartFloatingTooltipHint(e){this.isSnapshot()||null!==e&&e!==this.mainSeries()&&(!(0,Ws.isStudy)(e)||(0,Ws.isESDStudy)(e))||this._activationChartFloatingTooltipHint.setValue(!0)}activationChartFloatingTooltipHint(){return this._activationChartFloatingTooltipHint.readonly()}setChartFloatingTooltipVisible(e){this._chartFloatingTooltipVisible.setValue(e),this._crossHairSource.updateAllViews((0,wi.crosshairMoveEvent)()),this.lightUpdate()}chartFloatingTooltipVisible(){return this._chartFloatingTooltipVisible.readonly()}async withoutLineToolsSyncAction(e){try{this._lineToolsSyncBlock++,await e()}finally{this._lineToolsSyncBlock--}}symbolAliasService(){return this._symbolAliasService}_initAlertsList(){throw new Error("Not implemented")}_updateStudiesMaxOffset(){const e=Math.max(...this.allStudies().map((e=>e.maxOffset().value())));this._cachedStudiesMaxOffset=e;const t=this._timeScale.rightOffset();if(t<0)return;if(e<=t)return;const i=this._timeScale.logicalRange();i?this._timeScale.zoomToBarsRange(i.left(),this._timeScale.baseIndex()+Math.max(this._timeScale.rightOffset(),e)):this._timeScale.setRightOffset(Math.max(t,e))}_updateBaseIndex(e,t){const i=this._timeScale,s=i.baseIndex(),o=i.logicalRange();if(null!==o&&t){const t=o.contains(s),n=e-s,r=t?null:i.rightOffset()-n;if(!this._options.shiftVisibleRangeOnNewBar&&t){const e=i.width()/i.barSpacing(),t=e/(e+n),s=Math.max(i.minBarSpacing(),i.barSpacing()*t);i.setBarSpacing(s)}null!==r&&i.setRightOffset(r)}i.setBaseIndex(e)}async _createLollipopSourcesWatcher(){}_updateDateTimeFormatter(){const e=be.dateFormatProperty.value(),t=this.onWidget()?void 0:Md.withWeekdayProperty.value();if(this._dateFormatter=new bd.DateFormatter(e,t), +this.mainSeries().isDWM())this._dateTimeFormatter=new bd.DateFormatter(e,t),this._timeFormatter=new Uh.TimeFormatter((0,jh.getHourMinuteFormat)(we.timeHoursFormatProperty.value()));else{const i=Re.Interval.parse(this.mainSeries().interval()),s=(0,jh.getTimeFormatForInterval)(i,we.timeHoursFormatProperty.value());this._dateTimeFormatter=new Sd.DateTimeFormatter({dateFormat:e,withWeekday:t,timeFormat:s,dateTimeSeparator:" "}),this._timeFormatter=new Uh.TimeFormatter(s)}}_invalidationMaskForSource(e,t=ao.InvalidationLevel.Light){if(e===this.crosshairSource())return ao.InvalidationMask.cursor();if(this._watermarkSource===e)return this._paneInvalidationMask((0,n.ensureNotNull)(this.paneForSource(this.mainSeries())),t);if(-1!==this._allCustomSources.indexOf(e)){const e=new ao.InvalidationMask;return e.invalidateAll(t),e}if(!(0,Po.isDataSource)(e))return null;if(e.isMultiPaneEnabled())return new ao.InvalidationMask(t);const i=this.paneForSource(e);return null!==i?this._paneInvalidationMask(i,t):null}_paneInvalidationMask(e,t=ao.InvalidationLevel.Light){const i=new ao.InvalidationMask,s=this._panes.indexOf(e);return i.invalidateAllPane(s,t),i}_invalidationMaskForSourcePriceScale(e,t=ao.InvalidationLevel.Light){if(!(0,Po.isDataSource)(e))return new ao.InvalidationMask(t);const i=this.paneForSource(e);if(null===i)return null;let s=e.priceScale();if(null===s)return null;const o=this._panes.indexOf(i);let n=i.priceScalePosition(s);if("overlay"===n){const e=this._panes[o].defaultPriceScale();s=e,n=i.priceScalePosition(e)}const r=i.priceScaleIndex(s,n);if(void 0===r)return null;const a=new ao.InvalidationMask;return a.invalidatePriceScale(o,n,r,t),a}_removeCustomSource(e){const t=this._customSourcesMap.get(e);if(void 0===t)return void k_.logWarn(`Attempt to remove custom source which does not exist in the model - "${e}"`);k_.logNormal(`Removing custom source "${e}"`),this.selectionMacro((e=>{e.removeSourceFromSelection(t)})),this._hoveredSource===t&&this.setHoveredSource(null),this._customSourceBeingMoved===t&&this.setMovingCustomSource(null,null);const i=E_(this._bgCustomSources,t),s=E_(this._fgCustomSources,t),o=E_(this._topmostCustomSources,t),r=E_(this._allCustomSources,t);(0,n.assert)(i||s||o,"Source should be presented in one of the layers"),(0,n.assert)(r,"Source should be presented in the array"),this._customSourcesMap.delete(e),t.destroy()}_updateShowLegendProperty(){const e=this._properties.childs().paneProperties.childs().legendProperties.childs().showLegend,t=this._showLegendProperty;if(e.value())t.setValue(!0);else{for(const e of this._panes){let i=0;for(const s of e.priceDataSources())if(null!==s.statusView()&&(i++,i>=2))return void t.setValue(!1)}t.setValue(!0)}}_pointToPercentPosition(e,t){return{x:e.x/this._timeScale.width(),y:e.y/(0,n.ensureNotNull)((0,n.ensureNotNull)(t.mainDataSource()).priceScale()).height()}}_percentPositionToPoint(e,t){const i=e.x*this._timeScale.width(),s=e.y*(0,n.ensureNotNull)((0,n.ensureNotNull)(t.mainDataSource()).priceScale()).height();return new Vt.Point(i,s)} +_recalcVisibleRangeStudiesImpl(e){if(!this._mainSeries.isStarted()||!this._mainSeries.isCompleted())return void this._visibleRangeStudiesInputs.setValue(null);if(this.timeScale().isEmpty())return;const t=this.timeScale().visibleBarsStrictRange();if(null===t)return;const i=this._mainSeries.bars(),s=i.search(t.firstBar(),dd.PlotRowSearchMode.NearestRight),o=i.search(t.lastBar(),dd.PlotRowSearchMode.NearestLeft),n=i.lastIndex(),r=s?s.index:void 0,a=o?o.index:void 0,l=r===e.oldStartVisibleIndex,c=a===e.oldEndVisibleIndex,h=[Co.RecalcVisibleRangeStudiesReason.SeriesRestart,Co.RecalcVisibleRangeStudiesReason.SeriesCompleted,Co.RecalcVisibleRangeStudiesReason.StudyCreation].some((t=>e.reasons.has(t)));l&&c&&!h||(e.reasons.clear(),e.oldStartVisibleIndex=void 0!==r?r:NaN,e.oldEndVisibleIndex=void 0!==a?a:NaN,this._visibleRangeStudiesInputs.setValue({firstVisibleBarTime:1e3*(s?.value[0]??0),lastVisibleBarTime:1e3*(o?.value[0]??0),subscribeRealtime:o?.index===n}))}_recalcColorStudiesImpl(e){const t=this.backgroundColorAtYPercentFromTop(.5),i=this.dark().value()?Rt.colorsPalette["color-cold-gray-200"]:Rt.colorsPalette["color-cold-gray-900"],s=t===e.oldBgColor,o=i===e.oldFgColor;if(s&&o&&!e.force)return;e.force=!1,e.oldBgColor=t,e.oldFgColor=i;const n=e.studies??this.priceDataSources();e.studies=void 0;for(const e of n)if((0,Ws.isStudy)(e)){const s=e.metaInfo().inputs.filter(Ts.isStudyInputDependsOnChartColors),o=e.properties().childs().inputs;s.forEach((e=>{const s=e.id===Ts.ChartColorDependentStudyInputNames.FgColor?i:t;o.childs()[e.id].setValueSilently(s)})),s.length>0&&o.fireChanged()}}_getAllSources(e,t=W_){const i=[];for(const s of this._panes){const o=t(s);for(const t of o)e(t)&&i.push(t)}return i}_invalidateBarColorerCaches(){this.mainSeries().invalidateBarColorerCache()}_addAlertLabelToChart(e){throw new Error("Not implemented")}_removeAlertLabelFromChart(e){throw new Error("Not implemented")}_removeAllAlertLabelsFromChart(){throw new Error("Not implemented")}_updateTimeScale(e){const{index:t,zoffset:i,values:s,indexDiffs:o,baseIndex:n,marks:r,clearFlag:a,clearTickMarks:l}=e;if(a){this._timeScale.reset();for(const e of this.dataSources())e.clearData?.()}if(o.length>0)for(const e of this.dataSources())e.moveData?.(o);const c=this._timeScale.indexToTimePoint(this._timeScale.baseIndex()),h=this._timeScale.canNormalize();this._timeScale.update(t,i,s,r,l||!1);const d=this._timeScale.points().range().value();let u="ChartModel.prototype._updateTimeScale("+t+","+i+","+s.length+","+o.length+","+r.length+","+a+")";if(u+="TimeScale: {first:"+(d?.firstIndex??null)+",last:"+(d?.lastIndex??null)+"}",null===n){this._timeScale.resetBaseIndex();const e=this._timeScale.rightOffset();e<0?this._timeScale.setRightOffset(this.studyAwareDefaultRightOffset()):this._timeScale.setRightOffset(Math.max(e,this._cachedStudiesMaxOffset))}else if(void 0!==n){const e=this._timeScale.indexToTimePoint(n),t=null!==c&&null!==e&&e>c;this._updateBaseIndex(n,t)}if(k_.logDebug(u),!h&&h!==this._timeScale.canNormalize())for(const e of this.dataSources())!(0, +zs.isLineTool)(e)||e.isFixed()||e.isSourceHidden()||e.processHibernate();for(const e of this.dataSources())e.updateAllViews({type:"data-source-change",sourceId:e.id(),clearData:!0});this.recalculateAllPanes((0,wi.globalChangeEvent)()),this.lightUpdate()}_getAvailableCurrencies(){return!this.currencyConversionEnabled()||this.isSnapshot()?[]:(0,tt.isArray)(this._availableCurrenciesList)?this._availableCurrenciesList:(null!==this._availableCurrenciesList||(this._availableCurrenciesList=this.chartApi().availableCurrencies(),this._availableCurrenciesList.then((e=>{this._destroyed||(this._availableCurrenciesList=e,this.fullUpdate())})).catch((e=>{k_.logWarn(`An error occurred while getting currencies config: ${e}`)}))),[])}_getAvailableUnits(){return!this.unitConversionEnabled()||this.isSnapshot()?{}:this._availableUnitsObject instanceof Promise||null===this._availableUnitsObject?(null!==this._availableUnitsObject||(this._availableUnitsObject=this.chartApi().availableUnits(),this._availableUnitsObject.then((e=>{this._destroyed||(this._availableUnitsObject=e,this.fullUpdate())})).catch((e=>{k_.logWarn(`An error occurred while getting units config: ${e}`)}))),{}):this._availableUnitsObject}_getAvailablePriceSources(e){const t=this._availablePriceSourcesBySymbol.get(e);if(Array.isArray(t))return t;if((0,tt.isPromise)(t))return[];const i=this.chartApi().availablePriceSources(e);return this._availablePriceSourcesBySymbol.set(e,i),i.then((t=>{this._destroyed||(this._availablePriceSourcesBySymbol.set(e,t),this.fullUpdate())})).catch((e=>{k_.logWarn(`An error occurred while getting price sources config: ${e}`)})),[]}_clearAvailablePriceSources(){this._availablePriceSourcesBySymbol.clear()}_onSymbolIntervalChanged(){this._symbolIntervalChanged.fire()}_getBackgroundColor(e){const t=this._properties.childs().paneProperties.childs();if(t.backgroundType.value()===co.ColorType.Gradient){const i=t.backgroundGradientStartColor.value(),s=t.backgroundGradientEndColor.value();return e?i:s}return t.background.value()}_getBackgroundCounterColor(){const e=this.backgroundColor().value();return"black"===(0,Nt.rgbToBlackWhiteString)((0,Nt.parseRgb)(e),150)?"white":"black"}_updateBackgroundColor(){this._backgroundColor.setValue(this._getBackgroundColor()),this._backgroundTopColor.setValue(this._getBackgroundColor(!0))}_syncCrosshair(e){if(!this._isSettingsExternalPosition){const t=this._undoModel.mainSeries(),i=t.syncModel(),s=this._undoModel.crosshairSource(),o=s.pane;if(null!==i&&null!==o){const n={timeStamp:this._timeScale.points().roughTime(s.index,i.projectTime.bind(i)),syncSourceTarget:i.syncSourceTarget()};o.mainDataSource()===t&&(n.price=s.price,n.symbol=t.symbol()),this._undoModel.syncCrosshair(n,e)}this._phantomSourceContainer.onCursorPositionUpdated()}}_gotoTimeImpl(e,t){const i=this.timeScale(),s=this.mainSeries();let o;if(void 0!==e){if(this._scrollingState&&this._scrollingState.deferred.reject(),o=(0,me.createDeferredPromise)(),!s.isDWM()){const t=s.symbolInfo();if(null!==t){const i=(0, +n.ensureNotNull)(this.timezoneExceptExchange().value()),o=(0,Ce.cal_to_utc)((0,Ce.get_timezone)(i),new Date(e)),r=(0,Jd.createTimeToBarTimeAligner)(s.interval(),t)(o);e=(0,Ce.utc_to_cal)((0,Ce.get_timezone)(i),r).getTime()}}this._scrollingState={targetDate:e,deferred:o,targetPointAlignment:t.targetPointAlignment,autoscaleAfterScroll:t.autoscaleAfterScroll}}else{if(!this._scrollingState)return k_.logError("scrollTo called without an argument"),Promise.reject();e=this._scrollingState.targetDate,o=this._scrollingState.deferred}if(void 0===i.tickMarks().minIndex)return o.resolve(void 0),o.promise;this.stopTimeScaleAnimation();let r=((e,o)=>{if((e=>(0,n.ensureNotNull)(i.tickMarks().indexToTime((0,n.ensureDefined)(i.tickMarks().minIndex))).valueOf()-e)(o)<0){let r=i.tickMarks().nearestIndex(o);const a=s.bars().lastIndex();if(null===a)return"no_data";r=Math.min(r,a);let l=(0,n.ensureNotNull)(i.tickMarks().indexToTime(r)).valueOf();for(;le.hasDataSource(this._mainSeries)))&&(this._studiesWV.setValue(this.allStudies()),this._studiesExcludeInternalWV.setValue(this.allStudies(!0)))}_unmergeAvailable(e){return e===this._mainSeries||(0,Ws.isStudy)(e)&&!e.isLinkedToSeries()&&e.showInObjectTree()}_getExceedingChildStudies(e){let t=[];for(let i=0;i1&&s.push(e)),n=(n+1)%t.length}return s}_sendTo(e,t){const i=new Map;e.forEach((e=>{const t=this.paneForSource(e);if(!t)return;const s=this._panes.indexOf(t);i.has(s)||i.set(s,[]),i.get(s)?.push(e)}));for(const[e,s]of i.entries())t(this._panes[e],s);this.fullUpdate()}_initialiseInactivityGaps(){if(!l.enabled("inactivity_gaps"))return;this.createInactivityGaps();const e=async e=>{const t=this.customSourceForName("inactivityGaps");e?t.start():t.stop()};if(null===this._inactivityGapsWatchedValue){const t=this.properties().childs().inactivityGaps;this._inactivityGapsWatchedValue=(0,ye.convertPropertyToWatchedValue)(t),this._inactivityGapsWatchedValue.subscribe((t=>{e(t)})),e(t.value())}}_getWidgetPane(e,t){throw new Error("Not implemented")}}var U_=i(14715);class j_ extends st.UndoCommand{constructor(e,t,i,s){super(s,void 0,!Wr.lineToolsDoNotAffectChartInvalidation),this._model=i,this._id=e.id(),this._targetSharingMode=t,this._originSharingMode=e.sharingMode().value()}redo(){const e=this._model.dataSourceForId(this._id);e&&(e.share(this._targetSharingMode),0!==this._targetSharingMode&&0===this._originSharingMode&&(e.linkKey().setValue((0,fe.randomHash)()),this._model.copyToOtherCharts([e],!1)))}undo(){const e=this._model.dataSourceForId(this._id);e&&(e.share(this._originSharingMode),0===this._originSharingMode&&((0,mt.removeLineTool)({withUndo:!1,model:this._model,symbol:e.symbol(),linkKey:(0,n.ensureNotNull)(e.linkKey().value()),sourceTitle:(0,bi.getTranslatedStringForSource)(pa.TitleDisplayTarget.StatusLine,e),lineToolState:e.state(!1),unlink:!0}),e.linkKey().setValue(null)))}}const G_=new dt.TranslatedString("zoom",a.t(null,void 0,i(91084)));class q_ extends st.UndoCommand{constructor(e,t,i,s,o,n){super(G_),this._barSpacing=null,this._rightBarsOffset=null,this._leftBarsOffset=null,this._priceMode=null,this._model=e,this._startBar=t,this._endBar=i,this._startPrice=s,this._endPrice=o,this._pane=n}redo(){const e=(0,n.ensureNotNull)(this._model.timeScale().visibleBarsStrictRange());this._leftBarsOffset=e.firstBar()-this._startBar,this._rightBarsOffset=e.lastBar()-this._endBar,this._barSpacing=this._model.timeScale().barSpacing(),this._priceMode=this._pane.defaultPriceScale().mode(),this._model.zoomToViewport(this._startBar,this._endBar,this._startPrice,this._endPrice,this._pane)}undo(){const e=this._model.timeScale(),t=this._pane.defaultPriceScale(),i=(0,n.ensureNotNull)(e.visibleBarsStrictRange());e.setBarSpacing((0,n.ensureNotNull)(this._barSpacing)),e.zoomToBarsRange(i.firstBar()+(0,n.ensureNotNull)(this._leftBarsOffset),i.lastBar()+(0,n.ensureNotNull)(this._rightBarsOffset)),t.setMode((0,n.ensureNotNull)(this._priceMode)),t.recalculatePriceRange((0,n.ensureNotNull)(e.visibleBarsStrictRange())),this._model.recalculateAllPanes((0,wi.viewportChangeEvent)()),this._model.lightUpdate()}}const $_=(0, +ne.getLogger)("Chart.ChartUndoModel"),K_=new dt.TranslatedString("zoom",a.t(null,void 0,i(91084)));class Y_ extends st.UndoCommand{constructor(e,t,i){super(K_),this._baseCmd=e,this._zoomStack=t,this._inOut=i}undo(e){if(this._inOut){if(this._baseCmd!==this._zoomStack.head())return void $_.logDebug("zoom stack inconsistency");this._baseCmd.undo(e),this._zoomStack.pop()}else this._baseCmd.redo(e),this._zoomStack.push(this._baseCmd)}redo(e){if(this._inOut)this._baseCmd.redo(e),this._zoomStack.push(this._baseCmd);else{if(this._baseCmd!==this._zoomStack.head())return void $_.logDebug("zoom stack inconsistency");this._baseCmd.undo(e),this._zoomStack.pop()}}}const Z_=new dt.TranslatedString("stop syncing drawing",a.t(null,void 0,i(3350)));class X_ extends st.UndoCommand{constructor(e,t){super(Z_,void 0,!Wr.lineToolsDoNotAffectChartInvalidation),this._model=e,this._sourceId=t.id(),this._linkKey=t.linkKey().value()}redo(){(0,n.ensureNotNull)(this._model.dataSourceForId(this._sourceId)).linkKey().setValue(null)}undo(){(0,n.ensureNotNull)(this._model.dataSourceForId(this._sourceId)).linkKey().setValue(this._linkKey)}}const J_=new dt.TranslatedString("restore defaults",a.t(null,void 0,i(85815)));class Q_ extends st.UndoCommand{constructor(e,t,i=J_,s=!0){super(i,void 0,s),this._chartModel=e;const o=t.pathToRoot();this._targetObj=(0,Wa.isRootPath)(o)?o:t,this._state=t.state()}redo({chartWidgetCollection:e}){this._chartModel.restoreFactoryDefaults(this._getProperty(e))}undo({chartWidgetCollection:e}){this._getProperty(e).mergeAndFire(this._state),this._chartModel.mainSeries().onChartStyleChanged()}_getProperty(e){const t=this._targetObj;return"string"==typeof t?(0,Wa.propertyByPath)(e,t):t}}class ep extends Q_{constructor(e,t,i,s){super(e,t,i,s??!Wr.lineToolsDoNotAffectChartInvalidation)}redo(e){this._getProperty(e.chartWidgetCollection).child("intervalsVisibilities")?.mergeAndFire(v_.intervalsVisibilitiesDefaults),super.redo(e)}}const tp=new dt.TranslatedString("restore study defaults",a.t(null,void 0,i(96881)));class ip extends ep{constructor(e,t,i=tp){super(e,t.properties(),i,!0),this._studyId=t.id()}redo(e){super.redo(e),this._chartModel.recalcColorStudies(!0),this._patchProperties()}undo(e){super.undo(e),this._chartModel.recalcColorStudies(!0),this._patchProperties()}_patchProperties(){0}}function sp(e,t){return(0,yi.extractState)(e,t.map((e=>e.path)))}const op=new dt.TranslatedString("apply chart theme",a.t(null,void 0,i(68231)));class np extends st.UndoCommand{constructor(e,t,i){super(op),this._model=e,t.sessions&&(this._newSessionProps=i?t.sessions:sp(t.sessions,(0,yi.extractThemedColors)(ms.lightTheme.content.sessions,ms.darkTheme.content.sessions))),Th(t.mainSourceProperties.candleStyle),Th(t.mainSourceProperties.hollowCandleStyle),Th(t.mainSourceProperties.haStyle);const s=t;s.chartProperties=s.chartProperties??{paneProperties:{},scalesProperties:void 0};const o=s.chartProperties.paneProperties.gridProperties;s.chartProperties.paneProperties.vertGridProperties=s.chartProperties.paneProperties.vertGridProperties??o, +s.chartProperties.paneProperties.horzGridProperties=s.chartProperties.paneProperties.horzGridProperties??o;const n=this._model.properties().state().paneProperties.legendProperties;delete n.backgroundTransparency;const r=s.chartProperties.paneProperties;i&&(r.legendProperties={...r.legendProperties,...n});const a=(0,Al.default)((0,h.factoryDefaults)("chartproperties"));if(delete a.timezone,i){const e=a.paneProperties;e&&(delete e.topMargin,delete e.bottomMargin)}const l=(0,ge.deepExtend)({},a,t.chartProperties);this._newChartProps=i?l:sp(l,(0,yi.extractThemedColors)(ms.lightTheme.content.chartProperties,ms.darkTheme.content.chartProperties)),e.timeScale().preserveBarSpacing()&&"barSpacing"in this._newChartProps.scalesProperties&&delete this._newChartProps.scalesProperties.barSpacing,Ph(t.mainSourceProperties.lineStyle),Ph(t.mainSourceProperties.lineWithMarkersStyle),Ph(t.mainSourceProperties.steplineStyle);const c=(0,h.factoryDefaults)("chartproperties.mainSeriesProperties"),d=(0,ge.deepExtend)({},c,t.mainSourceProperties);i&&(delete d.visible,delete d.symbol,delete d.shortName,delete d.timeframe,delete d.interval,delete d.currencyId,delete d.unitId,delete d.sessionId,delete d.esdBreaksStyle),this._newSeriesProps=i?d:sp(d,(0,yi.extractThemedColors)(ms.lightTheme.content.mainSourceProperties,ms.darkTheme.content.mainSourceProperties)),this._oldChartProps=i?e.properties().state():e.properties().themeState(),this._oldSeriesProps=i?e.mainSeries().properties().state():e.mainSeries().properties().themeState(),this._oldSessionProps=i?this._model.sessions().properties().state():this._model.sessions().properties().themeState()}undo(){this._merge(this._oldChartProps,this._oldSeriesProps,this._oldSessionProps),this._model.mainSeries().onChartStyleChanged(),this._model.updateScales(),this._model.chartThemeLoaded()}redo(){this._merge(this._newChartProps,this._newSeriesProps,this._newSessionProps),this._model.mainSeries().onChartStyleChanged(),this._model.updateScales(),this._model.chartThemeLoaded()}_merge(e,t,i){const s=this._model;(0,yi.allowSavingDefaults)(!0);const o=s.properties(),n=s.mainSeries().properties(),r=s.sessions().properties();o.applyDefaultThemedProperties(k.watchedTheme.value()),o.mergeAndFire(e),o.saveDefaults(),"priceAxisProperties"in t&&s.mainSeries().priceScale().setMode({autoScale:t.priceAxisProperties?.autoScale,percentage:t.priceAxisProperties?.percentage,log:t.priceAxisProperties?.log,lockScale:t.priceAxisProperties?.lockScale}),n.applyDefaultThemedProperties(k.watchedTheme.value()),n.mergeAndFire(t),n.saveDefaults(),s.mainSeries().createPaneView(),s.mainSeries().invalidateBarStylesCache(),s.recalculateAllPanes((0,wi.globalChangeEvent)()),i&&(r.applyDefaultThemedProperties(k.watchedTheme.value()),r.loadThemeState(i),r.saveDefaults()),s.fullUpdate(),(0,yi.allowSavingDefaults)(!1)}}const rp=new dt.TranslatedString("change resolution",a.t(null,void 0,i(32829)));class ap extends xl{constructor(e,t,i){super(rp,e,function(e,t){let i;const s=(0,xt.isRangeStyle)(e.style()),o=Re.Interval.isRange(t) +;return!s&&o?i=11:s&&!o&&(i=(0,xt.getLastUsedStyle)()),{interval:t,style:i}}(e,t),i),this._resolution=t}canMerge(e){return e instanceof ap&&e._resolution===this._resolution&&super.canMerge(e)}_showFade(e,t){return!0}}class lp extends lt{constructor(){super(...arguments),this._firstRedo=!0}redo(){this._firstRedo||(0,it.muteLinkingGroup)(this._newValue,!0),(0,it.muteLinkingGroup)(this._oldValue,!0),super.redo(),this._firstRedo||(0,it.muteLinkingGroup)(this._newValue,!1),(0,it.muteLinkingGroup)(this._oldValue,!1),this._firstRedo=!1}undo(){(0,it.muteLinkingGroup)(this._newValue,!0),(0,it.muteLinkingGroup)(this._oldValue,!0),super.undo(),(0,it.muteLinkingGroup)(this._newValue,!1),(0,it.muteLinkingGroup)(this._oldValue,!1)}}var cp=i(91111);class hp extends st.UndoCommand{constructor(e,t,i){super(i),this._chartModel=e,this._stubDescriptor=(0,n.ensureNotNull)(t.getDescriptor())}redo(){this._chartModel.dataSourceForId(this._stubDescriptor.id)||this._chartModel.restoreStudyStub(this._stubDescriptor)}undo(){this._chartModel.removeStudyStub(this._stubDescriptor.id)}}class dp extends st.UndoCommand{constructor(e,t,i){super(i,void 0,!Wr.lineToolsDoNotAffectChartInvalidation),this._source=e,this._newState=t,this._oldState=e.properties().state()}redo(){this._source.applyTemplate(this._newState)}undo(){this._source.applyTemplate(this._oldState)}}var up=i(87911),_p=i(49470);const pp=new dt.TranslatedString("apply all chart properties",a.t(null,void 0,i(99551)));class mp extends st.UndoCommand{constructor(e){super(pp),this._trading=null,this._oldNoConfirmEnabled=null,this._oldShowOnlyRejectionNotifications=null,this._oldShowPricesWithZeroVolume=null,this._oldShowPricesWithSpread=null,this._oldOrderExecutedSoundEnabled=null,this._prevWatermarkPreferences=null,this._prevAlertLabelsPreferences=null,this._prevAlertNotificationsPreferences=null,this._model=e,this._trading=(0,_p.tradingService)(),null!==this._trading&&(this._oldNoConfirmEnabled=this._trading.noConfirmEnabled.value(),this._oldShowOnlyRejectionNotifications=this._trading.showOnlyRejectionNotifications.value(),this._oldShowPricesWithZeroVolume=this._trading.showPricesWith().zeroVolume.value(),this._oldShowPricesWithSpread=this._trading.showPricesWith().spread.value(),this._oldOrderExecutedSoundEnabled=this._trading.orderExecutedSoundParams.enabled.value()),this._defaultsPreferences=function(e,t,i=g_,s=!0){const o={timeScale:{defaultRightOffset:e.timeScale().rightOffsetDefaultValue(),defaultRightOffsetPercentage:e.timeScale().defaultRightOffsetPercentage().value(),usePercentageRightOffset:e.timeScale().usePercentageRightOffset().value()},mainSeries:{},sessions:{},paneProperties:{},scalesProperties:{},chartEventsSourceProperties:{},tradingProperties:{},priceScaleSelectionStrategyName:"auto"},n=["timeScale","mainSeries","sessions"],r=i.mainSeries,a=Object.keys(i),l=Object.keys(r),c=i.sessions,h=Object.keys(c),d=e.mainSeries().properties().factoryDefaults(),u=e.properties().factoryDefaults(),_=e.sessions().properties().factoryDefaults();return l.forEach((e=>{ +s&&"style"===e||(o.mainSeries[e]=f_(e,d,r,"mainSeries",!1))})),a.forEach((e=>{n.includes(e)||(o[e]=f_(e,u,i,"preferences",!1))})),h.forEach((e=>{o.sessions[e]=f_(e,_,c,"sessions",!1)})),o}(this._model,this._model.mainSeries()),this._oldPreferences=e.preferences(),this._prevDateFormat=be.dateFormatProperty.value(),this._model.onWidget()||(this._prevWithWeekday=Md.withWeekdayProperty.value()),this._prevTimeHoursFormat=we.timeHoursFormatProperty.value(),this._prevAddPlusButton=lu.addPlusButtonProperty.value(),this._prevShowOpenMarkerStatus=up.showMarketOpenStatusProperty.value(),this._prevCurrencyUnitVisibility=(0,Be.currencyUnitVisibilityProperty)().value(),this._prevAutoLogButtonsVisibility=(0,$o.autoLogButtonsVisibilityProperty)().value(),this._prevNavigationButtonsVisibility=(0,ve.property)().value(),this._prevPaneButtonsVisibility=(0,Se.property)().value();const t=this._model.watermarkSource();null!==t&&(this._prevWatermarkPreferences=t.properties().state())}redo(){null!==this._trading&&(this._trading.noConfirmEnabled.setValue(!1),this._trading.showOnlyRejectionNotifications.setValue(!1),this._trading.showPricesWith().zeroVolume.setValue(!0),this._trading.showPricesWith().spread.setValue(!0),this._trading.orderExecutedSoundParams.enabled.setValue(!1),this._trading.orderExecutedSoundParams.volume.setValue(.5)),this._model.applyPreferences(this._defaultsPreferences),this._model.updateScales(),(0,be.restoreDateFormatSettingsValue)(),(0,we.restoreTimeHoursFormatSettingsValue)(),(0,lu.restoreAddPlusButtonSettingsValue)(),(0,up.restoreShowMarketOpenStatusProperty)(),(0,Be.restoreCurrencyUnitVisibilitySettingsValue)(),(0,$o.restoreAutoLogButtonsVisibilitySettingsValue)(),(0,ve.restoreNavigationButtonsVisibilitySettingsValue)(),(0,Se.restorePaneButtonsVisibilitySettingsValue)();const e=this._model.watermarkSource();null!==e&&e.restorePropertiesDefaults()}undo(){null!==this._trading&&(this._trading.noConfirmEnabled.setValue((0,n.ensureNotNull)(this._oldNoConfirmEnabled)),this._trading.showOnlyRejectionNotifications.setValue((0,n.ensureNotNull)(this._oldShowOnlyRejectionNotifications)),this._trading.showPricesWith().zeroVolume.setValue((0,n.ensureNotNull)(this._oldShowPricesWithZeroVolume)),this._trading.showPricesWith().spread.setValue((0,n.ensureNotNull)(this._oldShowPricesWithSpread)),this._trading.orderExecutedSoundParams.enabled.setValue((0,n.ensureNotNull)(this._oldOrderExecutedSoundEnabled))),this._model.applyPreferences(this._oldPreferences),this._model.updateScales(),be.dateFormatProperty.setValue(this._prevDateFormat),we.timeHoursFormatProperty.setValue(this._prevTimeHoursFormat),up.showMarketOpenStatusProperty.setValue(this._prevShowOpenMarkerStatus),lu.addPlusButtonProperty.setValue(this._prevAddPlusButton),(0,Be.currencyUnitVisibilityProperty)().setValue(this._prevCurrencyUnitVisibility),(0,$o.autoLogButtonsVisibilityProperty)().setValue(this._prevAutoLogButtonsVisibility),(0,ve.property)().setValue(this._prevNavigationButtonsVisibility),(0,Se.property)().setValue(this._prevPaneButtonsVisibility), +this._model.onWidget()||Md.withWeekdayProperty.setValue(this._prevWithWeekday);const e=this._model.watermarkSource();null!==e&&null!==this._prevWatermarkPreferences&&e.properties().mergeAndFire(this._prevWatermarkPreferences)}}class gp extends st.UndoCommand{constructor(e,t,i,s){super(i),this._property=e,this._newValue=t,this._model=s,this._priceScale=this._model.mainSeries().priceScale(),this._oldValue=this._property.value(),this._oldMode=this._priceScale.mode()}redo(){this._oldValue=this._property.value(),this._oldMode=this._priceScale.mode(),(0,yi.allowSavingDefaults)(!0),this._priceScale.setMode({autoScale:!1,percentage:!1,log:!1}),this._property.setValue(this._newValue),(0,yi.allowSavingDefaults)(!1),this._model.recalculateAllPanes((0,wi.viewportChangeEvent)()),this._model.lightUpdate()}undo(){(0,yi.allowSavingDefaults)(!0),this._property.setValue(this._oldValue),this._priceScale.setMode(this._oldMode),(0,yi.allowSavingDefaults)(!1),this._model.recalculateAllPanes((0,wi.viewportChangeEvent)()),this._model.lightUpdate()}}class fp{constructor(e){this._leftScales=e.leftPriceScales().map((e=>e.id())),this._rightScales=e.rightPriceScales().map((e=>e.id()))}restorePane(e){this._leftScales.reverse().map((t=>(0,n.ensureNotNull)(e.getPriceScaleById(t)))).forEach((t=>e.movePriceScale(t,"left"))),this._rightScales.reverse().map((t=>(0,n.ensureNotNull)(e.getPriceScaleById(t)))).forEach((t=>e.movePriceScale(t,"right")))}}class yp extends st.UndoCommand{constructor(e,t,i){super(i),this._chartModel=e,this._targetStrategy=(0,zc.createPriceScaleSelectionStrategy)(t),this._initialState=e.panes().map((e=>new fp(e)))}redo(){this._chartModel.panes().forEach((e=>e.setPriceScaleSelectionStrategy(this._targetStrategy))),this._chartModel.fullUpdate()}undo(){const e=this._chartModel.panes();for(let t=0;t{this._undoHistory.beginUndoMacro(e)},endUndoMacro:this._undoHistory.endUndoMacro.bind(this._undoHistory),emitEvent:this.emitEvent.bind(this)})}id(){return this._model().id()}undoHistory(){return this._undoHistory}setWatchedValue(e,t,i){this._undoHistory.setWatchedValue(e,t,i)}lineToolsGroupController(){return this._lineToolsGroupController}mergeAllScales(e){!function(e,t){e.beginUndoMacro("left"===t?Rr:Nr),e.model().panes().forEach((i=>{const s="left"===t?i.visibleRightPriceScales():i.visibleLeftPriceScales(),o=("left"===t?i.visibleLeftPriceScales():i.visibleRightPriceScales()).concat(s),n="overlay"===i.priceScalePosition(i.defaultPriceScale())?o[0]:i.defaultPriceScale();e.movePriceScale(i,n,t,0),o.forEach((t=>{if(t===n)return;let s=t.mainSource();for(;null!==s;){e.moveToScale(s,i,n,null,!0);const o=t.mainSource();if(o===s){Or.logError("Loop detected while trying to merge scales");break}s=o}}))})),e.endUndoMacro(),e.model().fullUpdate()}(this,e)}movePriceScale(e,t,i,s){const o=new Fr(this._model(),e,t,i,s,Mp);this._pushUndoCommand(o)}createLineTool({pane:e,point:t,linetool:i,properties:s,linkKey:o,ownerSource:r,synchronizationMode:a=Cr.CreateLineToolSyncMode.Default,sharingMode:l=fm(),id:c,actionSource:h}){const d=cp.lineToolsStudyIds[i];if((0,n.assert)(!(0,Lt.isStudyLineToolName)(d)||!!d),d){const e=this.canCreateStudy({id:d});if(!e.success)return ym(this.model(),e),(0,Lt.isStudyLineToolName)(mt.tool.value())&&(0,mt.resetToCursor)(),null}const u=Gp.format({tool:new dt.TranslatedString(i,da.lineToolsLocalizedNames[i])});this.beginUndoMacro(u);const _=a!==Cr.CreateLineToolSyncMode.ForceOff,p=new _a({model:this._model(),pane:e,lineTool:i,ownerSource:r||(0,n.ensureNotNull)(e.mainDataSource()),drawOnAllChartsMode:l,id:c }),m=p.startCreatingLine(t,s,o||null,l,a===Cr.CreateLineToolSyncMode.ForceOff,h),g=(0,n.ensureNotNull)(p.line());this._createLineCommands.unshift(p);let f=null;if(m&&(_&&this.finishLineTool(g),this._pushUndoCommand(p),this._createLineCommands.shift(),f={points:g.normalizedPoints(),interval:this.mainSeries().interval()}),(void 0===o&&a===Cr.CreateLineToolSyncMode.Default&&(0,mt.drawOnAllCharts)().value()||a===Cr.CreateLineToolSyncMode.ForceOn)&&g.isSynchronizable()){const e=(0,n.ensureNotNull)(this.model().externalTimeStamp(t.index)),s={point:{price:t.price,timeStamp:e},linetool:i,properties:g.properties(),symbol:this.mainSeries().symbol(),model:this.model(),linkKey:(0,n.ensureNotNull)(g.linkKey().value()),finalState:f,id:g.id(),sharingMode:g.sharingMode().value()};g.isFixed()&&(s.pointPositionPercents=g.calcPositionPercents()),(0,mt.createLineTool)(s)}return this.endUndoMacro(),g}continueCreatingLine(e,t,i,s){const o=(0,n.ensureDefined)(this._createLineCommands[0]);this.beginUndoMacro(o.text());const r=(0,n.ensureNotNull)(this._model().lineBeingCreated()),a=o.continueCreatingLine(e,t,i,s);let l=null;if(a&&(this.finishLineTool(r),this._pushUndoCommand(o),this._createLineCommands.shift(),l={points:r.normalizedPoints(),interval:this.mainSeries().interval()}),o.drawOnAllCharts()&&r.isSynchronizable()){const i=(0,n.ensureNotNull)(this._model().externalTimeStamp(e.index));(0,mt.continueLineTool)({point:{price:e.price,timeStamp:i},envState:t,finalState:l,model:this._model()})}return this.endUndoMacro(),a}continueExternalLine(e,t,i){const s=(0,n.ensureDefined)(this._createLineCommands[0]),o=s.continueCreatingLine(e,t,i);return o&&(this._pushUndoCommand(s),this._createLineCommands.shift()),o}finishLineTool(e){this._model().finishLineTool(e)}cancelCreatingLine(){this.m_model.cancelCreatingLine()}lineBeingCreated(){return this.m_model.lineBeingCreated()}pasteImageAsLineTool(e,t,i,s){const o=this._model().timeScale(),r=o.width(),a=i.height(),l=i.defaultPriceScale(),c=(0,n.ensureNotNull)((0,n.ensureNotNull)(l.mainSource()).firstValue()),h={price:l.coordinateToPrice(a/2,c),index:o.coordinateToIndex(r/2)},d=(0,zs.createLineToolProperties)(i.model().backgroundTheme().spawnOwnership(),"LineToolImage",!i.model().readOnly());void 0!==s&&d.childs().transparency.setValue(s);const u=(0,n.ensureNotNull)(l.mainSource());(0,zs.prepareLineToolPropertiesByOwnerSource)(d,u);const _=this.createLineTool({pane:i,point:h,linetool:"LineToolImage",properties:d,actionSource:"Paste"});return _&&(_.setBlobImageUrl(t),this.selectionMacro((e=>{e.clearSelection(),e.addSourceToSelection(_,null)})),e.then((e=>{_.properties().childs().url.setValue(e)})).catch((e=>{const t=_.linkKey().value(),i=this.model();null!==t&&(0,mt.removeLineTool)({withUndo:!1,model:i,linkKey:t,symbol:_.symbol(),sourceTitle:new dt.TranslatedString(_.name(),_.translatedType()),lineToolState:_.state(!1)}),i.removeSource(_)}))),_}loadRange(e){const t=this._model(),i=t.appliedTimeFrame().value();return(null===i||!Pr(i,e))&&(this._pushUndoCommand(new Ka(t,e)),(0, @@ -688,7 +688,7 @@ a=(0,Pt.moveToHead)(a,i.mainSeries()),a.map((e=>e.title(pa.TitleDisplayTarget.St const s=e.lineToolByLinkKey(t.linkKey);if(null!==s){let i=null;if(t.positionPercents){const o=e.timeScale().positionPercentToCoordinate(t.positionPercents.x),r=(0,n.ensureNotNull)(s.priceScale()).positionPercentToCoordinate(t.positionPercents.y);if(i=s.screenPointToPoint((0,Vt.point)(o,r),!0),!i)return}else{const o=s.getPoint(t.pointIndex),n=o?o.index:xg(e,t.model,t.point.timeStamp);if(null===n)return;i={index:n,price:t.point.price}}s.isActualSymbol()&&s.isActualCurrency()&&s.isActualUnit()&&e.startChangingLinetool(s,(0,n.ensureNotNull)(s.ownerSource()),i,t.pointIndex,t.envState??void 0,!0)}}))})),mt.changedLineTool.subscribe(this,(t=>{e(t,(async(e,i)=>{const s=e.lineBeingEdited();if(null===s||s.linkKey().value()!==t.linkKey)return;let o=null;if(t.positionPercents){const i=e.timeScale().positionPercentToCoordinate(t.positionPercents.x),r=(0,n.ensureNotNull)(s.priceScale()).positionPercentToCoordinate(t.positionPercents.y);if(o=s.screenPointToPoint((0,Vt.point)(i,r),!0),!o)return}else{let i=null;if(i=t.changes.indexesChanged?xg(e,t.model,t.point.timeStamp):(0,n.ensureNotNull)(e.linePointBeingChanged()).index,null===i)return;o={index:i,price:t.point.price}}s.isActualSymbol()&&s.isActualCurrency()&&s.isActualUnit()&&e.changeLinePoint(o,void 0,!0)}))})),mt.finishedChangingLineTool.subscribe(this,(t=>{e(t,(async(e,i)=>{const s=e.lineToolByLinkKey(t.linkKey);null!==s&&s.isActualSymbol()&&s.isActualCurrency()&&s.isActualUnit()&&null!==e.lineBeingEdited()&&e.endChangingLinetool(!!t.finalState,!0),null!==s&&t.finalState&&(t.finalState.pointPositionPercents?s.restorePositionPercents(t.finalState.pointPositionPercents):s.restoreExternalPoints(t.finalState,t.changes))}))})),mt.removedLineTool.subscribe(this,(t=>{e(t,(async(e,i)=>{const{withUndo:s,unlink:o,linkKey:n}=t,r=e.lineToolByLinkKey(n);null!==r&&(o&&r.detachAlert(),s?i.removeSource(r,!1):(e.lineToolsGroupModel().removeLineTools([r]),e.removeSource(r)))}))})),mt.finishedLineTool.subscribe(this,(t=>{e(t,(async(e,i)=>{const s=e.lineToolByLinkKey(t.linkKey);null!==s&&(0,Lt.isLineToolFinishRequiredWhenCreatedByApi)(s.toolname)&&s.finish()}))})),mt.changedLineStyle.subscribe(this,(t=>{e(t,(async(e,i)=>{const s=e.lineToolByLinkKey(t.linkKey);if(null!==s){const{zOrder:e,...i}=t.state;void 0!==e&&s.setZorder(e),(0,ps.default)(i)||(s.restoreExternalState(i),s.propertiesChanged(!0)),t.alertId&&s.syncAlert(t.alertId)}}))})),mt.restoredLineToolState.subscribe(this,(t=>{e(t,(async(e,i)=>{const s=e.lineToolByLinkKey(t.linkKey);if(null!==s){const i={...t.state};i.indexes=t.state.points.map((i=>({index:xg(e,t.model,i.time_t),price:i.price}))),e.restoreLineToolState(s,i,!1)}}))})),mt.restoredLineTool.subscribe(this,(t=>{e(t,(async(e,i)=>{e.restoreSource(t.state.restorePane,t.state.paneIndex,t.state.paneState,t.state.sourceState,null)}))})),mt.copiedLineTool.subscribe(this,(async t=>{e(t,(async(e,i)=>{const s=(0,n.ensureNotNull)(e.paneForSource(e.mainSeries()));let o;const r={...t.state,intervalsVisibilities:(0,bh.mergeIntervalVisibilitiesDefaults)(t.state.intervalsVisibilities)},a=(0, zs.createLineToolProperties)(e.backgroundTheme().spawnOwnership(),t.linetool,!e.readOnly(),r),l=e.dataSourceForId(t.id);if(l){if(!(0,zs.isLineTool)(l))return void gg.logError(`Error sync creating line tool. Object with id ${t.id} is already in use and it is not a line tool`);if(l.toolname!==t.linetool)return void gg.logError(`Error sync creating line tool. Object with id ${t.id} is already in use and its type differs: ${l.toolname} and ${t.linetool}`)}if(l&&(l.linkKey().setValue(t.linkKey),l.share(t.sharingMode)),t.pointPositionPercents){const e={index:0,price:0};if(o=l??i.createLineTool({pane:s,point:e,linetool:t.linetool,properties:a,linkKey:t.linkKey,synchronizationMode:Cr.CreateLineToolSyncMode.ForceOff,id:t.id}),null===o)return;o.restorePositionPercents((0,n.ensureDefined)(t.pointPositionPercents))}else{const r=i=>({index:(0,n.ensureNotNull)(xg(e,t.model,i.timeStamp)),price:i.price}),c=t.points.map(r),h=t.pointsForCreating.map(r),d=c[0];if(l)o=l;else if(t.withUndo)o=i.createLineTool({pane:s,point:d,linetool:t.linetool,properties:a,linkKey:t.linkKey,sharingMode:t.sharingMode,synchronizationMode:Cr.CreateLineToolSyncMode.ForceOff,id:t.id});else{const e=new _a({model:i.model(),pane:s,lineTool:t.linetool,ownerSource:(0,n.ensureNotNull)(s.mainDataSource()),drawOnAllChartsMode:t.sharingMode,id:t.id});e.redo(),e.startCreatingLine(d,a,t.linkKey||null,t.sharingMode,!0),o=(0,n.ensureNotNull)(e.line())}if(null===o)return;const u=(e,s)=>{t.withUndo?i.continueCreatingLine(e,new To.EnvironmentState(void 0,!0),s,!0):i.model().continueCreatingLine(e,new To.EnvironmentState(void 0,!0),s,!0)},_=(0,Lt.isLineToolFinishRequiredWhenCreatedByApi)(t.linetool);if(e.lineBeingCreated())if(h.length>1)for(let e=1;e0){const i=Math.ceil(e.timeScale().width()/t.barCount);e.timeScale().setBarSpacing(i)}}_createEventHint(){if(null===this._eventHintDeferredPromise){const e=(0,me.createDeferredPromise)();this._eventHintDeferredPromise=e,Promise.all([i.e(6195),i.e(628),i.e(2227),i.e(6166)]).then(i.bind(i,91759)).then((t=>{e.resolve(new t.ChartEventHintRenderer(this._chartWidgetCollection.getContainer()))}))}return this._eventHintDeferredPromise.promise}async _createWarningHint(){return null}_showEventHint(e){l.enabled("popup_hints")&&(null!==this._activeHint&&0===this._activeHint.type?this._activeHint.show(e):(this._hideHint(),this._createEventHint().then((t=>{this._activeHint=t,void 0!==e&&this._activeHint.show(e)}))))}_showWarningHint(e){0}_hideHint(){null!==this._activeHint&&this._activeHint.hide()}_checkIsTradedGroupSelected(){const e=this.model(),t=e.model();return e.selection().customSources().some((e=>t.customSourceName(e)?.startsWith(tradedGroupPlaceOrderPrefix)||t.customSourceName(e)?.startsWith(tradedGroupEditOrderPrefix)))}_setActions(){return this._unsetActions(),this._addHotkeys(),this._actions=rg(this),this.withModel(null,(()=>{const e=this.model().mainSeries(),t=e.properties();t.childs().priceAxisProperties.subscribe(this,this._updateScalesActions),e.priceScaleAboutToBeChanged().subscribe(this,(()=>{t.childs().priceAxisProperties.unsubscribeAll(this)})),e.priceScaleChanged().subscribe(this,(()=>{t.childs().priceAxisProperties.subscribe(this,this._updateScalesActions),this._updateScalesActions()}))})),this._updateScalesActions(),this._actions}_unsetActions(){this._actions&&(Object.values(this._actions).forEach((e=>{e.destroy()})),this._actions=null)}_updateTimingsMeterState(){const e=this._options.visible.value();null!==this._timingsMeter&&(e?this._timingsMeter.startCollect():this._timingsMeter.stopCollect())}_onBackgroundColorChanged(){this._paneWidgets.value().forEach((e=>{e.setCursorForTool()})),this.update(),this.model().model().fullUpdate()}_contentSeriesProperties(){if(this._content)for(let e=this._content.panes.length;e-- >0;){const t=this._content.panes[e].sources;for(let e=t.length;e-- >0;){const i=t[e];if((0,wt.isMainSeriesState)(i))return i.state??null}}return null}async _getChartPropertyDefinitionsViewModel(){if(null===this._definitionsViewModel){ -const e=await Promise.all([i.e(1550),i.e(5410),i.e(7903),i.e(3596)]).then(i.bind(i,19350));if(this._isDestroyed)throw new Error("Chart widget already destroyed");await new Promise((e=>this.withModel(null,e))),null===this._definitionsViewModel&&(this._definitionsViewModel=new e.ChartPropertyDefinitionsViewModel(this.model(),this.properties(),this._options))}return this._definitionsViewModel}}var Eg=i(26743),Dg=i(1866);const Bg=!l.enabled("widget_logo")||!1;var Vg;function Rg(e,t=null,i=null){let s={};if("number"==typeof e)return{relativePositions:{[e]:{l:t,t:i}},nextElementLeft:e,nextElementTop:e};const[o,...n]=e;if("v"===o){let e=null;for(const o of n){const n=Rg(o,t,i);s={...s,...n.relativePositions},i=n.nextElementTop,e=n.nextElementLeft}t=e}if("h"===o){let e=null;for(const o of n){const n=Rg(o,t,i);s={...s,...n.relativePositions},t=n.nextElementLeft,e=n.nextElementTop}i=e}return{relativePositions:s,nextElementTop:i,nextElementLeft:t}}!function(e){e[e.LegendTopMargin=10]="LegendTopMargin",e[e.LegendLeftMargin=8]="LegendLeftMargin",e[e.LegendLineSpacingCoeff=1.4]="LegendLineSpacingCoeff",e[e.LegendItemSpacingCoeff=1.4]="LegendItemSpacingCoeff",e[e.LegendTextFontSize=12]="LegendTextFontSize",e[e.Padding=10]="Padding",e[e.ChartsSpacing=5]="ChartsSpacing",e[e.FooterHeight=60]="FooterHeight",e[e.LogoHeight=28]="LogoHeight",e[e.LogoWidth=162]="LogoWidth"}(Vg||(Vg={}));const Ng=function(e){const t={};for(const i of Object.keys(e)){const s=Rg(e[i]).relativePositions;t[i]=s}return t}(Eg);function Og(e,t,i,s){let o=Math.round(10*s),n=Math.round(10*s);const r=i[e];if(null!==r.l){const e=Og(r.l,t,i,s);o=e.x+e.width+Math.round(5*s)}if(null!==r.t){const e=Og(r.t,t,i,s);n=e.y+e.height+Math.round(5*s)}const a=t[e];return{x:o,y:n,width:a.width,height:a.height}}function Fg(e,t,i){const s=(new DOMParser).parseFromString(Dg,"image/svg+xml");s?.firstElementChild?.setAttribute("color",i);const o=URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(s)],{type:"image/svg+xml"}));return new Promise((i=>{const s=new Image;s.width=e,s.height=t,s.onload=()=>{i({image:s,width:e,height:t})},s.src=o}))}function Wg(e,t,i,s){return(0,Kt.drawScaled)(e,s,s,(()=>{e.fillText(i,t.x/s,t.y/s)})),e.measureText(i).width*s}function Hg(e,t,i,s,o,n){const r=o.map((e=>e.text)).join("");let a=i.x;const l=function(e,t,i,s){if(e.measureText(t).width*s<=i)return{text:t,elided:!1};const o=e.measureText("...").width*s,n=[];for(let e=0;ee.measureText(t.slice(0,r+1)).width*s+o>i));return{text:(t=t.slice(0,r)).trim(),elided:!0}}(e,r,s-a,t);if(l.elided&&!n)return null;const c=[];let h=0;for(const e of o){if(h+e.text.length>l.text.length)break;c.push(e.text),h+=e.text.length}const d=c.join("").trim().length;h=0;for(const s of o){if(h+s.text.length>d)break;s.color&&(e.save(),e.fillStyle=s.color),a+=Wg(e,new Vt.Point(a,i.y),s.text,t),s.color&&e.restore(),h+=s.text.length}return l.elided&&(a+=Wg(e,new Vt.Point(a,i.y),"...",t)),a}function zg(e){return e.map((e=>({...e,title:""})))}function Ug(e,t){ +const e=await Promise.all([i.e(5418),i.e(5410),i.e(7903),i.e(3596)]).then(i.bind(i,19350));if(this._isDestroyed)throw new Error("Chart widget already destroyed");await new Promise((e=>this.withModel(null,e))),null===this._definitionsViewModel&&(this._definitionsViewModel=new e.ChartPropertyDefinitionsViewModel(this.model(),this.properties(),this._options))}return this._definitionsViewModel}}var Eg=i(26743),Dg=i(1866);const Bg=!l.enabled("widget_logo")||!1;var Vg;function Rg(e,t=null,i=null){let s={};if("number"==typeof e)return{relativePositions:{[e]:{l:t,t:i}},nextElementLeft:e,nextElementTop:e};const[o,...n]=e;if("v"===o){let e=null;for(const o of n){const n=Rg(o,t,i);s={...s,...n.relativePositions},i=n.nextElementTop,e=n.nextElementLeft}t=e}if("h"===o){let e=null;for(const o of n){const n=Rg(o,t,i);s={...s,...n.relativePositions},t=n.nextElementLeft,e=n.nextElementTop}i=e}return{relativePositions:s,nextElementTop:i,nextElementLeft:t}}!function(e){e[e.LegendTopMargin=10]="LegendTopMargin",e[e.LegendLeftMargin=8]="LegendLeftMargin",e[e.LegendLineSpacingCoeff=1.4]="LegendLineSpacingCoeff",e[e.LegendItemSpacingCoeff=1.4]="LegendItemSpacingCoeff",e[e.LegendTextFontSize=12]="LegendTextFontSize",e[e.Padding=10]="Padding",e[e.ChartsSpacing=5]="ChartsSpacing",e[e.FooterHeight=60]="FooterHeight",e[e.LogoHeight=28]="LogoHeight",e[e.LogoWidth=162]="LogoWidth"}(Vg||(Vg={}));const Ng=function(e){const t={};for(const i of Object.keys(e)){const s=Rg(e[i]).relativePositions;t[i]=s}return t}(Eg);function Og(e,t,i,s){let o=Math.round(10*s),n=Math.round(10*s);const r=i[e];if(null!==r.l){const e=Og(r.l,t,i,s);o=e.x+e.width+Math.round(5*s)}if(null!==r.t){const e=Og(r.t,t,i,s);n=e.y+e.height+Math.round(5*s)}const a=t[e];return{x:o,y:n,width:a.width,height:a.height}}function Fg(e,t,i){const s=(new DOMParser).parseFromString(Dg,"image/svg+xml");s?.firstElementChild?.setAttribute("color",i);const o=URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(s)],{type:"image/svg+xml"}));return new Promise((i=>{const s=new Image;s.width=e,s.height=t,s.onload=()=>{i({image:s,width:e,height:t})},s.src=o}))}function Wg(e,t,i,s){return(0,Kt.drawScaled)(e,s,s,(()=>{e.fillText(i,t.x/s,t.y/s)})),e.measureText(i).width*s}function Hg(e,t,i,s,o,n){const r=o.map((e=>e.text)).join("");let a=i.x;const l=function(e,t,i,s){if(e.measureText(t).width*s<=i)return{text:t,elided:!1};const o=e.measureText("...").width*s,n=[];for(let e=0;ee.measureText(t.slice(0,r+1)).width*s+o>i));return{text:(t=t.slice(0,r)).trim(),elided:!0}}(e,r,s-a,t);if(l.elided&&!n)return null;const c=[];let h=0;for(const e of o){if(h+e.text.length>l.text.length)break;c.push(e.text),h+=e.text.length}const d=c.join("").trim().length;h=0;for(const s of o){if(h+s.text.length>d)break;s.color&&(e.save(),e.fillStyle=s.color),a+=Wg(e,new Vt.Point(a,i.y),s.text,t),s.color&&e.restore(),h+=s.text.length}return l.elided&&(a+=Wg(e,new Vt.Point(a,i.y),"...",t)),a}function zg(e){return e.map((e=>({...e,title:""})))}function Ug(e,t){ const i=[{text:e.trim()}];for(const e of t)e.visible&&(""!==i[i.length-1].text&&i.push({text:" "}),e.title&&i.push({text:e.title}),i.push({text:e.value,color:e.color}));return i}class jg{constructor(e,t){this._logoTextColor=null,this._snapshotData=e,t=t||{},this._options={backgroundColor:L.themes[e.theme].getThemedColor("color-bg-primary"),borderColor:L.themes[e.theme].getThemedColor("color-border"),font:m.CHART_FONT_FAMILY,fontSize:12,legendMode:"vertical",hideResolution:!1,hideStudiesFromLegend:!1,showHeaderPublishedBy:!1,showHeaderMainSymbol:!1,...t};const i=Ng[e.layout],s=e.charts.map((e=>function(e){const t=e.panes[0],i=t.canvas.width+t.leftAxis.canvas.width+t.rightAxis.canvas.width;let s=0;for(const t of e.panes)s+=t.canvas.height;return void 0!==e.timeAxis&&0!==e.timeAxis.contentHeight&&(s+=e.timeAxis.canvas.height),(0,Ft.size)({width:i,height:s})}(e)));if(this._pixelRatio=e.hidpiRatio,this._chartsGeometry=e.charts.map(((e,t)=>Og(t,s,i,this._pixelRatio))),!Bg){let i=e.theme;void 0!==t.backgroundColor&&(i="black"===(0,Nt.rgbToBlackWhiteString)((0,Nt.parseRgb)(t.backgroundColor),150)?$s.StdTheme.Dark:$s.StdTheme.Light),this._logoTextColor=L.themes[i].getThemedColor("color-text-primary")}this._headerDefaultTextColor=L.themes[e.theme].getThemedColor("color-text-primary")}async getImage(){const e=this._pixelRatio;let t=0,i=0,s=0;const o=this._headerItems();if(o.length>0){s=Math.ceil(1.4*this._options.fontSize*e)*o.length}i+=s;let n=0,r=0;for(const e of this._chartsGeometry)n=Math.max(n,e.x+e.width),r=Math.max(r,e.y+e.height);const a=i;t+=n,i+=r,t+=Math.round(10*e);const l=Bg?Math.round(10*e):Math.round(60*e),c=i;i+=l;const h=(0,Kt.createDisconnectedCanvas)(document,(0,Ft.size)({width:t,height:i}),1),d=(0,Kt.getContext2D)(h);d.font=(0,si.makeFont)(this._options.fontSize,this._options.font),d.textBaseline="top",d.fillStyle=this._options.backgroundColor,d.fillRect(0,0,t,i),o.length>0&&this._drawHeader(d,o,t,new Vt.Point(Math.round(10*e),Math.round(10*e)));for(let e=0;e0&&t.leftAxis.contentHeight>0&&(i.drawImage(t.leftAxis.canvas,s,o),s+=t.leftAxis.canvas.width),i.drawImage(t.canvas,s,o),s+=t.canvas.width,t.rightAxis.contentWidth>0&&t.rightAxis.contentHeight>0&&i.drawImage(t.rightAxis.canvas,s,o),"pane"===t.type&&(i.fillStyle=e.colors.text,this._drawLegend(t,i,new Vt.Point(n,a),r)),o+=t.canvas.height}if(void 0!==e.timeAxis&&0!==e.timeAxis.contentHeight){let t=0 ;e.timeAxis.lhsStub.contentWidth>0&&e.timeAxis.lhsStub.contentHeight>0&&(i.drawImage(e.timeAxis.lhsStub.canvas,t,o),t+=e.timeAxis.lhsStub.canvas.width),i.drawImage(e.timeAxis.canvas,t,o),t+=e.timeAxis.canvas.width,e.timeAxis.rhsStub.contentWidth>0&&e.timeAxis.rhsStub.contentHeight>0&&i.drawImage(e.timeAxis.rhsStub.canvas,t,o)}i.strokeStyle=this._options.borderColor,i.strokeRect(0,0,t.width,t.height),i.restore()}_headerItems(){const e=[];if(this._options.showHeaderPublishedBy&&this._snapshotData.publishedBy)for(const t of this._snapshotData.publishedBy)e.push([{text:t}]);if(this._options.showHeaderMainSymbol){const t=this._snapshotData.charts[0],i=`${t.meta?.symbol}, ${t.meta?.resolution}`;e.push(Ug(i,t.meta?.values??[]))}return e}_drawHeader(e,t,i,s){e.save(),e.fillStyle=this._headerDefaultTextColor;const o=Math.ceil(1.4*this._options.fontSize*this._pixelRatio);t.forEach(((t,n)=>{Hg(e,this._pixelRatio,new Vt.Point(s.x,s.y+o*n),i,t,!0)})),e.restore()}_drawLegend(e,t,i,s){let o=!0;const r=Math.ceil(1.4*this._options.fontSize*this._pixelRatio);let a=i.x,l=i.y;if(e.mainSeriesText&&l+r{const t=this._state.currentLayoutResizeAction.value();t&&this._applyMouseMove(t.delta,e)},this._state=e.state,this._splitterElement=e.splitterElement,this._splitter=e.splitter,this._computeContentBox=e.computeContentBox,(0,Vs.shiftPressed)().subscribe(this._onShiftPressed),this._selected.subscribe((e=>{if(e.selected){const t=$g(this._splitter.className);Array.from(this._state.parent.getElementsByClassName(t)).forEach((e=>e.classList.remove(qg.hovered)));(e.withShift?Array.from(this._state.parent.getElementsByClassName(t)):[this._splitterElement]).forEach((e=>e.classList.add(qg.hovered)))}else{const e=$g(this._splitter.className);Array.from(this._state.parent.getElementsByClassName(e)).forEach((e=>e.classList.remove(qg.hovered)))}}))}destroy(){(0, Vs.shiftPressed)().unsubscribe(this._onShiftPressed)}mouseDownEvent(e){this._mouseDownOrTouchStartEvent(e)}touchStartEvent(e){this._selected.value().selected&&this._mouseDownOrTouchStartEvent(e)}pressedMouseMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}touchMoveEvent(e){this._selected.value().selected&&this._pressedMouseOrTouchMoveEvent(e)}mouseUpEvent(e){this._mouseUpOrTouchEndEvent(e)}touchEndEvent(e){this._mouseUpOrTouchEndEvent(e)}mouseEnterEvent(e){this._selected.setValue({selected:!0,withShift:e.shiftKey})}mouseLeaveEvent(){this._selected.setValue({selected:!1,withShift:!1})}mouseDoubleClickEvent(e){this._resetLayoutSizes()}doubleTapEvent(){this._resetLayoutSizes()}tapEvent(e){this._selected.setValue({selected:!this._selected.value().selected,withShift:e.shiftKey})}touchStartOutsideEvent(e){this._selected.setValue({selected:!1,withShift:!1})}_mouseDownOrTouchStartEvent(e){const t=new Vt.Point(e.localX+this._splitterElement.offsetLeft,e.localY+this._splitterElement.offsetTop),i=(0,Gg.deepCopy)(this._state.sizingState.value());this._state.currentLayoutResizeAction.setValue({point:t,splitter:this._splitter,initialState:i,alignedState:this._state.layoutTemplate.value().syncSublayoutsBySplitter(this._splitter,(0,Gg.deepCopy)(i)),shiftState:e.shiftKey,delta:0}),this._selected.setValue({selected:!0,withShift:e.shiftKey})}_pressedMouseOrTouchMoveEvent(e){const t=this._state.currentLayoutResizeAction.value();if(!t)return;t.shiftState!==e.shiftKey&&(this._selected.setValue({selected:!0,withShift:e.shiftKey}),t.shiftState=e.shiftKey);const i=new Vt.Point(e.localX+this._splitterElement.offsetLeft,e.localY+this._splitterElement.offsetTop);t.delta="v"===t.splitter.orientation?i.y-t.point.y:i.x-t.point.x,this._applyMouseMove(t.delta,e.shiftKey)}_mouseUpOrTouchEndEvent(e){const t=this._state.currentLayoutResizeAction.value();if(t&&(this._splitterElement.classList.remove(qg["i-active"]),this._state.currentLayoutResizeAction.setValue(null),t.currentState)){this._state.undoHistory.beginUndoMacro(Kg),this._state.undoHistory.pushUndoCommand(new lt(this._state.sizingState,t.initialState,t.currentState,Kg));const e=this._state.layoutTemplate.value().layoutType;this._state.undoHistory.pushUndoCommand(new at((t=>t?this._state.allLayoutSizesState.set(e,t):this._state.allLayoutSizesState.delete(e)),this._state.allLayoutSizesState.get(this._state.layoutTemplate.value().layoutType),this._state.sizingState.value(),Yg)),this._state.undoHistory.endUndoMacro(),this._state.layoutSizesChanged.setValue(!0)}}_applyMouseMove(e,t){const i=(0,n.ensureNotNull)(this._state.currentLayoutResizeAction.value()),s=t?i.alignedState:i.initialState,o=this._state.options.padding??2,r=this._computeContentBox();i.currentState=this._state.layoutTemplate.value().resizeApplier(r,o,e,i.splitter,(0,Gg.deepCopy)(s),t),this._state.sizingState.setValue(i.currentState)}_resetLayoutSizes(e){const t=(0, diff --git a/charting_library/bundles/ms_MY.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/ms_MY.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index aea27e02..00000000 --- a/charting_library/bundles/ms_MY.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,8 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:a=>{a.exports={en:["bars"],ms_MY:["bar"]}},31882:a=>{a.exports={en:["12-hours"],ms_MY:["12 jam"]}},5797:a=>{a.exports={en:["24-hours"],ms_MY:["24 jam"]}},23111:a=>{a.exports={en:["Color bars based on previous close"],ms_MY:["Warnakan bar mengikut harga tutup sebelumnya"]}},23739:a=>{a.exports={en:["Canvas"],ms_MY:["Kanvas"]}},24197:a=>{a.exports={en:["Center"],ms_MY:["Pusat"]}},15153:a=>{a.exports={en:["Chart basic styles"],ms_MY:["Gaya asas carta"]}},45639:a=>{a.exports={en:["Chart values"],ms_MY:["Nilai carta"]}},84831:a=>{a.exports={en:["Close line"],ms_MY:["Garisan tutup"]}},74622:a=>{a.exports={en:["Crosshair"],ms_MY:["Silangrambut"]}},81849:a=>{a.exports={en:["Currency"],ms_MY:["Mata wang"]}},3015:a=>{a.exports={en:["Currency and Unit"],ms_MY:["Mata wang dan Unit"]}},93020:a=>{a.exports={en:["Adjust data for dividends"],ms_MY:["Laras data untuk dividen"]}},68921:a=>{a.exports={en:["Adjust for contract changes"],ms_MY:["Laraskan untuk perubahan kontrak"]}},36620:a=>{a.exports={en:["Alerts"],ms_MY:["Pemberitahuan"]}},68650:a=>{a.exports={en:["Average close"],ms_MY:["Tutup purata"]}},27567:a=>{a.exports={en:["Bottom"],ms_MY:["Bawah"]}},3159:a=>{a.exports={en:["Bottom line"],ms_MY:["Garisan Bawah"]}},74406:a=>{a.exports={en:["Body"],ms_MY:["Badan"]}},333:a=>{a.exports={en:["Borders"],ms_MY:["Sempadan"]}},79468:a=>{a.exports={en:["Background"],ms_MY:["Latar Belakang"]}},10842:a=>{a.exports={en:["Bar change values"],ms_MY:["Nilai Perubahan Bar"]}},28975:a=>{a.exports={en:["Base level"],ms_MY:["Aras Dasar"]}},76473:a=>{a.exports={en:["Bid and ask"],ms_MY:["Bida dan tawar"]}},32744:a=>{a.exports={en:["Buttons"],ms_MY:["Butang"]}},68662:a=>{a.exports={en:["Grid lines"],ms_MY:["Garisan grid"]}},17611:a=>{a.exports={en:["Down bars"],ms_MY:["Bar menurun"]}},23743:a=>{a.exports={en:["Down color"],ms_MY:["Warna Menurun"]}},48225:a=>{a.exports={en:["Data modification"],ms_MY:["Pengubahsuaian data"]}},84838:a=>{a.exports={en:["Date format"],ms_MY:["Format Tarikh"]}},42357:a=>{a.exports={en:["Day of week on labels"],ms_MY:["Hari untuk minggu pada label"]}},16564:a=>{a.exports={en:["Default"],ms_MY:["Lalai"]}},78734:a=>{a.exports={en:["Description"],ms_MY:["Huraian"]}},67036:a=>{a.exports={en:["Display inactivity gaps"],ms_MY:["Paparkan jurang tiada aktiviti"]}},59777:a=>{a.exports={en:["Electronic trading hours background"],ms_MY:["Latar belakang jam dagangan elektronik"]}},69808:a=>{a.exports={en:["Events"],ms_MY:["Peristiwa"]}},41129:a=>{a.exports={en:["Fill"],ms_MY:["Isikan"]}},61112:a=>{a.exports={en:["Fill top area"],ms_MY:["Isikan Bahagian Atas"]}},73185:a=>{a.exports={en:["Fill bottom area"],ms_MY:["Isikan bahagian bawah"]}},3160:a=>{a.exports={en:["Horizontal"],ms_MY:["Melintang"]}},61900:a=>{a.exports={en:["Horz only"],ms_MY:["Melintang sahaja"]}},14180:a=>{a.exports={en:["High and low"],ms_MY:["Tinggi dan rendah"]}},56359:a=>{a.exports={en:["High line"],ms_MY:["Garisan tinggi"]}},47326:a=>{a.exports={en:["Integer"]}},17854:a=>{ -a.exports={en:["Interval"],ms_MY:["Selang Masa"]}},84549:a=>{a.exports={en:["Indicators"],ms_MY:["Penunjuk"]}},78082:a=>{a.exports={en:["Indicators and financials"],ms_MY:["Penunjuk dan kewangan"]}},21429:a=>{a.exports={en:["Inputs"],ms_MY:["Input"]}},25765:a=>{a.exports={en:["Open market status"],ms_MY:["Buka status pasaran"]}},34579:a=>{a.exports={en:["Low line"],ms_MY:["Garisan bawah"]}},14876:a=>{a.exports={en:["Logo"]}},89315:a=>{a.exports={en:["Long Description"],ms_MY:["Penjelasan Panjang"]}},72423:a=>{a.exports={en:["Last day change values"],ms_MY:["Perubahan nilai hari terakhir"]}},11626:a=>{a.exports={en:["Left"],ms_MY:["Kiri"]}},56982:a=>{a.exports={en:["Lines"],ms_MY:["Garisan"]}},8249:a=>{a.exports={en:["Money"],ms_MY:["Wang"]}},70937:a=>{a.exports={en:["Margins"],ms_MY:["Margin"]}},68833:a=>{a.exports={en:["Middle"],ms_MY:["Tengah"]}},58589:a=>{a.exports={en:["No overlapping labels"],ms_MY:["Tiada Label Bertindih"]}},60798:a=>{a.exports={en:["None"],ms_MY:["Tiada"]}},51019:a=>{a.exports={en:["Navigation"],ms_MY:["Navigasi"]}},99709:a=>{a.exports={en:["Name"],ms_MY:["Nama"]}},8852:a=>{a.exports={en:["Save chart left edge position when changing interval"],ms_MY:["Simpan posisi bucu kiri carta yang disimpan apabila menukar selang masa"]}},26204:a=>{a.exports={en:["Scale modes (A and L)"],ms_MY:["Mod skala (A dan L)"]}},93968:a=>{a.exports={en:["Scales"],ms_MY:["Skala"]}},90275:a=>{a.exports={en:["Scales and lines"],ms_MY:["Skala dan garisan"]}},30042:a=>{a.exports={en:["Scales placement"],ms_MY:["Kedudukan Penimbangan"]}},28715:a=>{a.exports={en:["Status line"],ms_MY:["Garis status"]}},95481:a=>{a.exports={en:["Symbol"],ms_MY:["Simbol"]}},53263:a=>{a.exports={en:["Pane"],ms_MY:["Panel"]}},82894:a=>{a.exports={en:["Pane separators"],ms_MY:["Pemisah tetingkap"]}},86235:a=>{a.exports={en:["Percentage"],ms_MY:["Peratus"]}},94408:a=>{a.exports={en:["Pips"],ms_MY:["Pip"]}},60904:a=>{a.exports={en:["Pre/post market"],ms_MY:["Pra/pasca pasaran"]}},88327:a=>{a.exports={en:["Pre/post market hours background"],ms_MY:["Latarbelakang sebelum/selepas jam dagangan"]}},59766:a=>{a.exports={en:["Precision"],ms_MY:["Ketepatan"]}},83811:a=>{a.exports={en:["Previous day close"],ms_MY:["Tutup semalam"]}},35082:a=>{a.exports={en:["Price Scale"],ms_MY:["Skala Harga"]}},27632:a=>{a.exports={en:["Price and percentage value"],ms_MY:["Nilai Harga dan Peratusan"]}},62142:a=>{a.exports={en:["Price labels & lines"],ms_MY:["Label harga & garisan"]}},84684:a=>{a.exports={en:["Price source"],ms_MY:["Sumber Harga"]}},73466:a=>{a.exports={en:["Projection up bars"],ms_MY:["Bar unjuran menaik"]}},77430:a=>{a.exports={en:["Projection candles"],ms_MY:["Lilin unjuran"]}},88367:a=>{a.exports={en:["Projection down bars"],ms_MY:["Bar unjuran menurun"]}},6160:a=>{a.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],ms_MY:["Harga sebenar pada skala harga (selain daripada harga Heikin-Ashi)"]}},50421:a=>{a.exports={en:["Right"],ms_MY:["Kanan"]}},62532:a=>{a.exports={en:["Right Margin"],ms_MY:["Margin Kanan"]}},41571:a=>{ -a.exports={en:["Watermark"],ms_MY:["Tera Air"]}},32163:a=>{a.exports={en:["Wick"],ms_MY:["Sumbu"]}},97118:a=>{a.exports={en:["Top"],ms_MY:["Atas"]}},89349:a=>{a.exports={en:["Top line"],ms_MY:["Garisan Atas"]}},70320:a=>{a.exports={en:["Text"],ms_MY:["Teks"]}},25485:a=>{a.exports={en:["Text alignment"],ms_MY:["jajaran teks"]}},67781:a=>{a.exports={en:["Text orientation"],ms_MY:["Orientasi teks"]}},20215:a=>{a.exports={en:["Thin bars"],ms_MY:["Bar Nipis"]}},70198:a=>{a.exports={en:["Title"],ms_MY:["Tajuk"]}},29854:a=>{a.exports={en:["Titles"],ms_MY:["Tajuk"]}},5791:a=>{a.exports={en:["Ticker"]}},16816:a=>{a.exports={en:["Ticker and description"],ms_MY:["Ticker dan keterangan"]}},24821:a=>{a.exports={en:["Ticks"],ms_MY:["Tanda"]}},93965:a=>{a.exports={en:["Time Scale"],ms_MY:["Skala Masa"]}},5591:a=>{a.exports={en:["Time hours format"],ms_MY:["Format jam masa"]}},77073:a=>{a.exports={en:["Timezone"],ms_MY:["Zon Waktu"]}},76495:a=>{a.exports={en:["Trading"],ms_MY:["Dagangan"]}},33564:a=>{a.exports={en:["Unit"]}},23091:a=>{a.exports={en:["Up color"],ms_MY:["Warna Menaik"]}},36957:a=>{a.exports={en:["Up bars"],ms_MY:["Bar menaik"]}},49545:a=>{a.exports={en:["Use settlement as close on daily interval"],ms_MY:["Gunakan penyelesaian sebagai penutup pada selang masa harian"]}},37644:a=>{a.exports={en:["Volume"],ms_MY:["Volum"]}},51514:a=>{a.exports={en:["Value"],ms_MY:["Nilai"]}},31218:a=>{a.exports={en:["Value according to scale"],ms_MY:["Nilai berdasarkan Skala"]}},60092:a=>{a.exports={en:["Values"],ms_MY:["Nilai"]}},83594:a=>{a.exports={en:["Vert and horz"],ms_MY:["Menegak dan melintang"]}},8402:a=>{a.exports={en:["Vert only"],ms_MY:["Menegak sahaja"]}},69526:a=>{a.exports={en:["Vertical"],ms_MY:["Menegak"]}},21105:a=>{a.exports={en:["candle"],ms_MY:["lilin"]}},27068:a=>{a.exports={en:["change HLC bars"],ms_MY:["tukar bar HLC"]}},21201:a=>{a.exports={en:["change HLC bars color"],ms_MY:["tukar warna bar HLC"]}},3311:a=>{a.exports={en:["change navigation buttons visibility"],ms_MY:["tukar kebolehlihatan butang navigasi"]}},96227:a=>{a.exports={en:["change open market status visibility"],ms_MY:["tukar kebolehlihatan status pasaran buka"]}},43231:a=>{a.exports={en:["change average close price line width"],ms_MY:["tukar tebal garisan purata harga tutup"]}},47026:a=>{a.exports={en:["change average close price line color"],ms_MY:["tukar warna garisan purata harga tutup"]}},29281:a=>{a.exports={en:["change area fill color"],ms_MY:["tukar warna isian kawasan"]}},27059:a=>{a.exports={en:["change area line visibility"],ms_MY:["tukar kawasan kebolehlihatan garis"]}},89346:a=>{a.exports={en:["change area line width"],ms_MY:["tukar tebal garisan kawasan"]}},29605:a=>{a.exports={en:["change area line color"],ms_MY:["tukar warna garisan kawasan"]}},56864:a=>{a.exports={en:["change area line style"],ms_MY:["tukar gaya kawasan garis"]}},4640:a=>{a.exports={en:["change area price source"],ms_MY:["tukar sumber kawasan harga"]}},98407:a=>{a.exports={en:["change ask line color"],ms_MY:["tukar warna garisan permintaan"]}},42190:a=>{a.exports={ -en:["change base level"],ms_MY:["tukar tahap asas"]}},71785:a=>{a.exports={en:["change baseline bottom line color"],ms_MY:["tukar warna garisan bawah garisan dasar"]}},85684:a=>{a.exports={en:["change baseline bottom line style"],ms_MY:["tukar gaya garis bawah garis dasar"]}},56175:a=>{a.exports={en:["change baseline bottom line width"],ms_MY:["tukar tebal garisan bawah garisan dasar"]}},97216:a=>{a.exports={en:["change baseline fill bottom area color"],ms_MY:["tukar warna isian kawasan bawah garisan dasar"]}},92873:a=>{a.exports={en:["change baseline fill top area color"],ms_MY:["tukar warna isian kawasan atas garisan dasar"]}},68609:a=>{a.exports={en:["change baseline price source"],ms_MY:["tukar sumber harga garisan dasar"]}},69044:a=>{a.exports={en:["change baseline top line color"],ms_MY:["tukar warna garisan atas garisan dasar"]}},4425:a=>{a.exports={en:["change baseline top line style"],ms_MY:["tukar gaya garis atas garis dasar"]}},68197:a=>{a.exports={en:["change baseline top line width"],ms_MY:["tukar tebal garisan atas garisan dasar"]}},33464:a=>{a.exports={en:["change bar up color"],ms_MY:["tukar warna bar atas"]}},27426:a=>{a.exports={en:["change bar change visibility"],ms_MY:["tukar kebolehlihatan bar pertukaran"]}},59622:a=>{a.exports={en:["change bar down color"],ms_MY:["tukar warna bar bawah"]}},17919:a=>{a.exports={en:["change bid line color"],ms_MY:["tukar warna garisan bida"]}},32094:a=>{a.exports={en:["change bottom margin"],ms_MY:["tukar margin bawah"]}},63119:a=>{a.exports={en:["change currency and unit labels visibility"],ms_MY:["tukar kebolehlihatan mata wang dan label-label unit"]}},64003:a=>{a.exports={en:["change currency label visibility"],ms_MY:["tukar kebolehlihatan label mata wang"]}},42803:a=>{a.exports={en:["change chart background color"],ms_MY:["tukar warna latarbelakang carta"]}},41382:a=>{a.exports={en:["change chart background type"],ms_MY:["tukar jenis latarbelakang carta"]}},79637:a=>{a.exports={en:["change chart values visibility"],ms_MY:["tukar kebolehlihatan nilai carta"]}},43090:a=>{a.exports={en:["change color bars based on previous close"],ms_MY:["tukar warna bar berdasarkan harga penutup sebelum ini"]}},88324:a=>{a.exports={en:["change column up color"],ms_MY:["tukar warna lajur menaik"]}},93890:a=>{a.exports={en:["change column down color"],ms_MY:["tukar warna lajur menurun"]}},4727:a=>{a.exports={en:["change column price source"],ms_MY:["tukar sumber harga lajur"]}},50544:a=>{a.exports={en:["change crosshair width"],ms_MY:["tukar tebal silangrambut"]}},92885:a=>{a.exports={en:["change crosshair color"],ms_MY:["tukar warna silangrambut"]}},68418:a=>{a.exports={en:["change crosshair style"],ms_MY:["tukar gaya silangrambut"]}},43109:a=>{a.exports={en:["change date format"],ms_MY:["tukar format tarikh"]}},30418:a=>{a.exports={en:["change day of week on labels"],ms_MY:["pertukaran hari untuk minggu pada label"]}},82063:a=>{a.exports={en:["change decimal places"],ms_MY:["tukar titik perpuluhan"]}},45397:a=>{a.exports={en:["change extended hours color"], -ms_MY:["tukar warna jam dilanjutkan"]}},47393:a=>{a.exports={en:["change electronic trading hours"],ms_MY:["menukar jam dagangan elektronik"]}},73844:a=>{a.exports={en:["change grid lines visibility"],ms_MY:["tukar kebolehlihatan garisan grid"]}},61407:a=>{a.exports={en:["change high and low price line color"],ms_MY:["tukar warna garisan harga tinggi dan rendah"]}},39581:a=>{a.exports={en:["change high and low price line width"],ms_MY:["tukar tebal garisan harga tinggi dan rendah"]}},6026:a=>{a.exports={en:["change high-low body color"],ms_MY:["tukar warna badan tinggi-rendah"]}},73021:a=>{a.exports={en:["change high-low body visibility"],ms_MY:["tukar kebolehlihatan badan tinggi-rendah"]}},46844:a=>{a.exports={en:["change high-low border color"],ms_MY:["tukar warna sempadan badan tinggi-rendah"]}},15801:a=>{a.exports={en:["change high-low borders visibility"],ms_MY:["tukar kebolehlihatan sempadan badan tinggi-rendah"]}},72399:a=>{a.exports={en:["change high-low labels visibility"],ms_MY:["tukar kebolehlihatan label tinggi-rendah"]}},56961:a=>{a.exports={en:["change high-low labels color"],ms_MY:["tukar warna label tinggi-rendah"]}},21133:a=>{a.exports={en:["change horz grid lines color"],ms_MY:["tukar warna garisan grid mendatar"]}},63050:a=>{a.exports={en:["change indicator titles visibility"],ms_MY:["tukar kebolehlihatan nama penunjuk"]}},49583:a=>{a.exports={en:["change indicator values visibility"],ms_MY:["tukar kebolehlihatan nilai penunjuk"]}},75663:a=>{a.exports={en:["change indicator inputs visibility"],ms_MY:["tukar kebolehlihatan input penunjuk"]}},35111:a=>{a.exports={en:["change indicators and financials name labels visibility"],ms_MY:["ubah keterlihatan penunjuk dan label nama kewangan"]}},71161:a=>{a.exports={en:["change indicators and financials value labels visibility"],ms_MY:["ubah keterlihatan penunjuk dan label nilai kewangan"]}},451:a=>{a.exports={en:["change interval watermark visibility"],ms_MY:["tukar kebolehlihatan selang masa tera air"]}},66307:a=>{a.exports={en:["change last day change visibility"],ms_MY:["tukar perubahan kebolehlihatan hari terakhir"]}},91873:a=>{a.exports={en:["change legend background transparency"],ms_MY:["tukar ketelusan latarbelakang legenda"]}},14246:a=>{a.exports={en:["change legend background visibility"],ms_MY:["tukar kebolehlihatan latarbelakang legenda"]}},88640:a=>{a.exports={en:["change line color"],ms_MY:["tukar warna garisan"]}},28818:a=>{a.exports={en:["change line style"],ms_MY:["Tukar Bentuk Garis"]}},41837:a=>{a.exports={en:["change line price source"],ms_MY:["tukar sumber harga garisan"]}},48339:a=>{a.exports={en:["change line width"],ms_MY:["tukar tebal garisan"]}},18378:a=>{a.exports={en:["change pane buttons visibility"],ms_MY:["tukar kebolehlihatan butang tingkap"]}},52203:a=>{a.exports={en:["change pane separators color"],ms_MY:["tukar warna pemisah tetingkap"]}},38730:a=>{a.exports={en:["change post market color"],ms_MY:["tukar warna pasca pasaran"]}},28075:a=>{a.exports={en:["change post market line color"], -ms_MY:["tukar warna garisan pasca pasaran"]}},91978:a=>{a.exports={en:["change pre/post market price lines visibility"],ms_MY:["tukar keterlihatan garisan-garisan harga pra/pasca pasaran"]}},44371:a=>{a.exports={en:["change pre market color"],ms_MY:["tukar warna pra pasaran"]}},96114:a=>{a.exports={en:["change pre market line color"],ms_MY:["tukar warna garisan pra pasaran"]}},69814:a=>{a.exports={en:["change previous close price line color"],ms_MY:["tukar warna garisan harga tutup sebelumnya"]}},13660:a=>{a.exports={en:["change previous close price line width"],ms_MY:["tukar tebal garisan harga tutup sebelumnya"]}},87861:a=>{a.exports={en:["change price line color"],ms_MY:["tukar warna garisan harga"]}},29353:a=>{a.exports={en:["change price line width"],ms_MY:["tukar tebal garisan harga"]}},16241:a=>{a.exports={en:["change range bars style"],ms_MY:["tukar julat gaya bar"]}},65821:a=>{a.exports={en:["change range thin bars"],ms_MY:["tukar julat bar nipis"]}},75487:a=>{a.exports={en:["change renko wick down color"],ms_MY:["tukar warna turun sumbu renko"]}},92277:a=>{a.exports={en:["change renko wick up color"],ms_MY:["tukar warna sumbu renko"]}},79604:a=>{a.exports={en:["change renko wick visibility"],ms_MY:["tukar kebolehlihatan sumbu renko"]}},66021:a=>{a.exports={en:["change replay watermark visibility"],ms_MY:["tukar kebolehlihatan ulangan semula tera air"]}},82946:a=>{a.exports={en:["change right margin"],ms_MY:["tukar margin kanan"]}},79545:a=>{a.exports={en:["change right margin percentage"],ms_MY:["tukar peratusan margin kanan"]}},18099:a=>{a.exports={en:["change symbol tiker watermark visibility"],ms_MY:["tukar kebolehlihatan simbol tera air ticker"]}},78995:a=>{a.exports={en:["change symbol watermark color"],ms_MY:["tukar warna simbol tera air"]}},73227:a=>{a.exports={en:["change symbol watermark visibility"],ms_MY:["tukar kebolehlihatan simbol tera air"]}},88167:a=>{a.exports={en:["change symbol description visibility"],ms_MY:["tukar kebolehlihatan penjelasan simbol"]}},65838:a=>{a.exports={en:["change symbol description watermark visibility"],ms_MY:["tukar kebolehlihatan penjelasan simbol tera air"]}},12050:a=>{a.exports={en:["change symbol field visibility"],ms_MY:["tukar kebolehlihatan ruangan simbol"]}},46066:a=>{a.exports={en:["change symbol last value mode"],ms_MY:["tukar mod nilai akhir simbol"]}},902:a=>{a.exports={en:["change symbol legend format"],ms_MY:["tukar format legenda simbol"]}},77408:a=>{a.exports={en:["change save chart left edge position when changing interval"],ms_MY:["tukar posisi bucu kiri carta yang disimpan apabila menukar selang masa"]}},69023:a=>{a.exports={en:["change scale modes buttons visibility"],ms_MY:["menukar kebolehlihatan butang mod skala"]}},76131:a=>{a.exports={en:["change scales text color"],ms_MY:["tukar warna skala teks"]}},27792:a=>{a.exports={en:["change scales font size"],ms_MY:["tukar warna skala teks"]}},94997:a=>{a.exports={en:["change scales lines color"],ms_MY:["tukar warna skala garisan"]}},60067:a=>{a.exports={en:["change sessions breaks visibility"], -ms_MY:["tukar kebolehlihatan rehat sesi"]}},28175:a=>{a.exports={en:["change sessions breaks width"],ms_MY:["tukar lebar rehat sesi"]}},33895:a=>{a.exports={en:["change sessions breaks color"],ms_MY:["tukar warna rehat sesi"]}},21641:a=>{a.exports={en:["change sessions breaks style"],ms_MY:["tukar gaya rehat sesi"]}},16660:a=>{a.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],ms_MY:["tukar paparan untuk harga sebenar pada skala harga (selain harga Heiken-Ashi)"]}},60834:a=>{a.exports={en:["change thin bars"],ms_MY:["tukar bar nipis"]}},39754:a=>{a.exports={en:["change time hours format"],ms_MY:["tukar format jam untuk masa"]}},74883:a=>{a.exports={en:["change top margin"],ms_MY:["tukar margin atas"]}},51250:a=>{a.exports={en:["change unit label visibility"],ms_MY:["tukar kebolehlihatan label unit"]}},71805:a=>{a.exports={en:["change vert grid lines color"],ms_MY:["tukar warna garisan grid menegak"]}},96201:a=>{a.exports={en:["change volume values visibility"],ms_MY:["tukar kebolehlihatan nilai volum"]}},17214:a=>{a.exports={en:["change {candleType} up border color"],ms_MY:["tukar warna {candleType} sempadan naik"]}},36697:a=>{a.exports={en:["change {candleType} up color"],ms_MY:["tukar warna naik {candleType}"]}},48091:a=>{a.exports={en:["change {candleType} wick down color"],ms_MY:["tukar warna {candleType} sumbu turun"]}},97546:a=>{a.exports={en:["change {candleType} wick up color"],ms_MY:["tukar warna {candleType} sumbu naik"]}},94750:a=>{a.exports={en:["change {candleType} wick visibility"],ms_MY:["tukar kebolehlihatan {candleType} sumbu"]}},60608:a=>{a.exports={en:["change {candleType} body visibility"],ms_MY:["tukar kebolehlihatan {candleType} badan"]}},11114:a=>{a.exports={en:["change {candleType} border visibility"],ms_MY:["tukar kebolehlihatan {candleType} sempadan"]}},20291:a=>{a.exports={en:["change {candleType} down border color"],ms_MY:["tukar warna {candleType} sempadan turun"]}},64571:a=>{a.exports={en:["change {candleType} down color"],ms_MY:["tukar warna turun {candleType}"]}},23053:a=>{a.exports={en:["change {chartType} border bar down color"],ms_MY:["tukar warna turun {chartType} bar sempadan"]}},28394:a=>{a.exports={en:["change {chartType} border bar up color"],ms_MY:["tukar warna naik {chartType} bar sempadan"]}},5012:a=>{a.exports={en:["change {chartType} down color"],ms_MY:["tukar {chartType} warna turun"]}},42826:a=>{a.exports={en:["change {chartType} projection border bar up color"],ms_MY:["tukar warna naik {chartType} bar unjuran sempadan"]}},72545:a=>{a.exports={en:["change {chartType} projection bar down color"],ms_MY:["tukar warna turun {chartType} bar unjuran"]}},85032:a=>{a.exports={en:["change {chartType} projection bar up color"],ms_MY:["tukar warna naik {chartType} bar unjuran"]}},6970:a=>{a.exports={en:["change {chartType} up color"],ms_MY:["tukar {chartType} warna naik"]}},66110:a=>{a.exports={en:["change {inputName} property"],ms_MY:["tukar {inputName} sifat"]}},18077:a=>{a.exports={en:["adjust data for dividends"], -ms_MY:["laras data untuk dividen"]}},1433:a=>{a.exports={en:["adjust for contract changes"],ms_MY:["laraskan untuk perubahan kontrak"]}},92598:a=>{a.exports={en:["hollow candles"],ms_MY:["Lilin Berongga"]}},57243:a=>{a.exports={en:["range","ranges"],ms_MY:["julat"]}},70282:a=>{a.exports={en:["renko"],ms_MY:["Renko"]}},18917:a=>{a.exports={en:["toggle inactivity gaps"],ms_MY:["togol jurang tiada aktiviti"]}},92978:a=>{a.exports={en:["use settlement as close on daily interval"],ms_MY:["gunakan penyelesaian sebagai penutup pada selang masa harian"]}},59644:a=>{a.exports={en:["{value} decimal","{value} decimals"],ms_MY:["{value} titik perpuluhan"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/ms_MY.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/ms_MY.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..ad4035ac --- /dev/null +++ b/charting_library/bundles/ms_MY.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,8 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:a=>{a.exports={en:["bars"],ms_MY:["bar"]}},31882:a=>{a.exports={en:["12-hours"],ms_MY:["12 jam"]}},5797:a=>{a.exports={en:["24-hours"],ms_MY:["24 jam"]}},23111:a=>{a.exports={en:["Color bars based on previous close"],ms_MY:["Warnakan bar mengikut harga tutup sebelumnya"]}},23739:a=>{a.exports={en:["Canvas"],ms_MY:["Kanvas"]}},24197:a=>{a.exports={en:["Center"],ms_MY:["Pusat"]}},15153:a=>{a.exports={en:["Chart basic styles"],ms_MY:["Gaya asas carta"]}},45639:a=>{a.exports={en:["Chart values"],ms_MY:["Nilai carta"]}},84831:a=>{a.exports={en:["Close line"],ms_MY:["Garisan tutup"]}},74622:a=>{a.exports={en:["Crosshair"],ms_MY:["Silangrambut"]}},81849:a=>{a.exports={en:["Currency"],ms_MY:["Mata wang"]}},3015:a=>{a.exports={en:["Currency and Unit"],ms_MY:["Mata wang dan Unit"]}},93020:a=>{a.exports={en:["Adjust data for dividends"],ms_MY:["Laras data untuk dividen"]}},68921:a=>{a.exports={en:["Adjust for contract changes"],ms_MY:["Laraskan untuk perubahan kontrak"]}},36620:a=>{a.exports={en:["Alerts"],ms_MY:["Pemberitahuan"]}},68650:a=>{a.exports={en:["Average close"],ms_MY:["Tutup purata"]}},27567:a=>{a.exports={en:["Bottom"],ms_MY:["Bawah"]}},3159:a=>{a.exports={en:["Bottom line"],ms_MY:["Garisan Bawah"]}},74406:a=>{a.exports={en:["Body"],ms_MY:["Badan"]}},333:a=>{a.exports={en:["Borders"],ms_MY:["Sempadan"]}},79468:a=>{a.exports={en:["Background"],ms_MY:["Latar Belakang"]}},10842:a=>{a.exports={en:["Bar change values"],ms_MY:["Nilai Perubahan Bar"]}},70817:a=>{a.exports={en:["Bar change color based on value"]}},28975:a=>{a.exports={en:["Base level"],ms_MY:["Aras Dasar"]}},76473:a=>{a.exports={en:["Bid and ask"],ms_MY:["Bida dan tawar"]}},32744:a=>{a.exports={en:["Buttons"],ms_MY:["Butang"]}},68662:a=>{a.exports={en:["Grid lines"],ms_MY:["Garisan grid"]}},17611:a=>{a.exports={en:["Down bars"],ms_MY:["Bar menurun"]}},23743:a=>{a.exports={en:["Down color"],ms_MY:["Warna Menurun"]}},48225:a=>{a.exports={en:["Data modification"],ms_MY:["Pengubahsuaian data"]}},84838:a=>{a.exports={en:["Date format"],ms_MY:["Format Tarikh"]}},42357:a=>{a.exports={en:["Day of week on labels"],ms_MY:["Hari untuk minggu pada label"]}},16564:a=>{a.exports={en:["Default"],ms_MY:["Lalai"]}},78734:a=>{a.exports={en:["Description"],ms_MY:["Huraian"]}},67036:a=>{a.exports={en:["Display inactivity gaps"],ms_MY:["Paparkan jurang tiada aktiviti"]}},59777:a=>{a.exports={en:["Electronic trading hours background"],ms_MY:["Latar belakang jam dagangan elektronik"]}},69808:a=>{a.exports={en:["Events"],ms_MY:["Peristiwa"]}},41129:a=>{a.exports={en:["Fill"],ms_MY:["Isikan"]}},61112:a=>{a.exports={en:["Fill top area"],ms_MY:["Isikan Bahagian Atas"]}},73185:a=>{a.exports={en:["Fill bottom area"],ms_MY:["Isikan bahagian bawah"]}},3160:a=>{a.exports={en:["Horizontal"],ms_MY:["Melintang"]}},61900:a=>{a.exports={en:["Horz only"],ms_MY:["Melintang sahaja"]}},14180:a=>{a.exports={en:["High and low"],ms_MY:["Tinggi dan rendah"]}},56359:a=>{a.exports={en:["High line"], +ms_MY:["Garisan tinggi"]}},47326:a=>{a.exports={en:["Integer"]}},17854:a=>{a.exports={en:["Interval"],ms_MY:["Selang Masa"]}},84549:a=>{a.exports={en:["Indicators"],ms_MY:["Penunjuk"]}},78082:a=>{a.exports={en:["Indicators and financials"],ms_MY:["Penunjuk dan kewangan"]}},21429:a=>{a.exports={en:["Inputs"],ms_MY:["Input"]}},25765:a=>{a.exports={en:["Open market status"],ms_MY:["Buka status pasaran"]}},34579:a=>{a.exports={en:["Low line"],ms_MY:["Garisan bawah"]}},14876:a=>{a.exports={en:["Logo"]}},89315:a=>{a.exports={en:["Long Description"],ms_MY:["Penjelasan Panjang"]}},72423:a=>{a.exports={en:["Last day change values"],ms_MY:["Perubahan nilai hari terakhir"]}},11626:a=>{a.exports={en:["Left"],ms_MY:["Kiri"]}},56982:a=>{a.exports={en:["Lines"],ms_MY:["Garisan"]}},8249:a=>{a.exports={en:["Money"],ms_MY:["Wang"]}},70937:a=>{a.exports={en:["Margins"],ms_MY:["Margin"]}},68833:a=>{a.exports={en:["Middle"],ms_MY:["Tengah"]}},58589:a=>{a.exports={en:["No overlapping labels"],ms_MY:["Tiada Label Bertindih"]}},60798:a=>{a.exports={en:["None"],ms_MY:["Tiada"]}},51019:a=>{a.exports={en:["Navigation"],ms_MY:["Navigasi"]}},99709:a=>{a.exports={en:["Name"],ms_MY:["Nama"]}},8852:a=>{a.exports={en:["Save chart left edge position when changing interval"],ms_MY:["Simpan posisi bucu kiri carta yang disimpan apabila menukar selang masa"]}},26204:a=>{a.exports={en:["Scale modes (A and L)"],ms_MY:["Mod skala (A dan L)"]}},93968:a=>{a.exports={en:["Scales"],ms_MY:["Skala"]}},90275:a=>{a.exports={en:["Scales and lines"],ms_MY:["Skala dan garisan"]}},30042:a=>{a.exports={en:["Scales placement"],ms_MY:["Kedudukan Penimbangan"]}},28715:a=>{a.exports={en:["Status line"],ms_MY:["Garis status"]}},95481:a=>{a.exports={en:["Symbol"],ms_MY:["Simbol"]}},53263:a=>{a.exports={en:["Pane"],ms_MY:["Panel"]}},82894:a=>{a.exports={en:["Pane separators"],ms_MY:["Pemisah tetingkap"]}},86235:a=>{a.exports={en:["Percentage"],ms_MY:["Peratus"]}},94408:a=>{a.exports={en:["Pips"],ms_MY:["Pip"]}},60904:a=>{a.exports={en:["Pre/post market"],ms_MY:["Pra/pasca pasaran"]}},88327:a=>{a.exports={en:["Pre/post market hours background"],ms_MY:["Latarbelakang sebelum/selepas jam dagangan"]}},59766:a=>{a.exports={en:["Precision"],ms_MY:["Ketepatan"]}},83811:a=>{a.exports={en:["Previous day close"],ms_MY:["Tutup semalam"]}},35082:a=>{a.exports={en:["Price Scale"],ms_MY:["Skala Harga"]}},27632:a=>{a.exports={en:["Price and percentage value"],ms_MY:["Nilai Harga dan Peratusan"]}},62142:a=>{a.exports={en:["Price labels & lines"],ms_MY:["Label harga & garisan"]}},84684:a=>{a.exports={en:["Price source"],ms_MY:["Sumber Harga"]}},73466:a=>{a.exports={en:["Projection up bars"],ms_MY:["Bar unjuran menaik"]}},77430:a=>{a.exports={en:["Projection candles"],ms_MY:["Lilin unjuran"]}},88367:a=>{a.exports={en:["Projection down bars"],ms_MY:["Bar unjuran menurun"]}},6160:a=>{a.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],ms_MY:["Harga sebenar pada skala harga (selain daripada harga Heikin-Ashi)"]}},50421:a=>{a.exports={en:["Right"],ms_MY:["Kanan"]}}, +62532:a=>{a.exports={en:["Right Margin"],ms_MY:["Margin Kanan"]}},41571:a=>{a.exports={en:["Watermark"],ms_MY:["Tera Air"]}},32163:a=>{a.exports={en:["Wick"],ms_MY:["Sumbu"]}},97118:a=>{a.exports={en:["Top"],ms_MY:["Atas"]}},89349:a=>{a.exports={en:["Top line"],ms_MY:["Garisan Atas"]}},70320:a=>{a.exports={en:["Text"],ms_MY:["Teks"]}},25485:a=>{a.exports={en:["Text alignment"],ms_MY:["jajaran teks"]}},67781:a=>{a.exports={en:["Text orientation"],ms_MY:["Orientasi teks"]}},20215:a=>{a.exports={en:["Thin bars"],ms_MY:["Bar Nipis"]}},70198:a=>{a.exports={en:["Title"],ms_MY:["Tajuk"]}},29854:a=>{a.exports={en:["Titles"],ms_MY:["Tajuk"]}},5791:a=>{a.exports={en:["Ticker"]}},16816:a=>{a.exports={en:["Ticker and description"],ms_MY:["Ticker dan keterangan"]}},24821:a=>{a.exports={en:["Ticks"],ms_MY:["Tanda"]}},93965:a=>{a.exports={en:["Time Scale"],ms_MY:["Skala Masa"]}},5591:a=>{a.exports={en:["Time hours format"],ms_MY:["Format jam masa"]}},77073:a=>{a.exports={en:["Timezone"],ms_MY:["Zon Waktu"]}},76495:a=>{a.exports={en:["Trading"],ms_MY:["Dagangan"]}},33564:a=>{a.exports={en:["Unit"]}},23091:a=>{a.exports={en:["Up color"],ms_MY:["Warna Menaik"]}},36957:a=>{a.exports={en:["Up bars"],ms_MY:["Bar menaik"]}},49545:a=>{a.exports={en:["Use settlement as close on daily interval"],ms_MY:["Gunakan penyelesaian sebagai penutup pada selang masa harian"]}},37644:a=>{a.exports={en:["Volume"],ms_MY:["Volum"]}},51514:a=>{a.exports={en:["Value"],ms_MY:["Nilai"]}},31218:a=>{a.exports={en:["Value according to scale"],ms_MY:["Nilai berdasarkan Skala"]}},60092:a=>{a.exports={en:["Values"],ms_MY:["Nilai"]}},83594:a=>{a.exports={en:["Vert and horz"],ms_MY:["Menegak dan melintang"]}},8402:a=>{a.exports={en:["Vert only"],ms_MY:["Menegak sahaja"]}},69526:a=>{a.exports={en:["Vertical"],ms_MY:["Menegak"]}},21105:a=>{a.exports={en:["candle"],ms_MY:["lilin"]}},27068:a=>{a.exports={en:["change HLC bars"],ms_MY:["tukar bar HLC"]}},21201:a=>{a.exports={en:["change HLC bars color"],ms_MY:["tukar warna bar HLC"]}},3311:a=>{a.exports={en:["change navigation buttons visibility"],ms_MY:["tukar kebolehlihatan butang navigasi"]}},96227:a=>{a.exports={en:["change open market status visibility"],ms_MY:["tukar kebolehlihatan status pasaran buka"]}},43231:a=>{a.exports={en:["change average close price line width"],ms_MY:["tukar tebal garisan purata harga tutup"]}},47026:a=>{a.exports={en:["change average close price line color"],ms_MY:["tukar warna garisan purata harga tutup"]}},29281:a=>{a.exports={en:["change area fill color"],ms_MY:["tukar warna isian kawasan"]}},27059:a=>{a.exports={en:["change area line visibility"],ms_MY:["tukar kawasan kebolehlihatan garis"]}},89346:a=>{a.exports={en:["change area line width"],ms_MY:["tukar tebal garisan kawasan"]}},29605:a=>{a.exports={en:["change area line color"],ms_MY:["tukar warna garisan kawasan"]}},56864:a=>{a.exports={en:["change area line style"],ms_MY:["tukar gaya kawasan garis"]}},4640:a=>{a.exports={en:["change area price source"],ms_MY:["tukar sumber kawasan harga"]}},98407:a=>{a.exports={ +en:["change ask line color"],ms_MY:["tukar warna garisan permintaan"]}},42190:a=>{a.exports={en:["change base level"],ms_MY:["tukar tahap asas"]}},71785:a=>{a.exports={en:["change baseline bottom line color"],ms_MY:["tukar warna garisan bawah garisan dasar"]}},85684:a=>{a.exports={en:["change baseline bottom line style"],ms_MY:["tukar gaya garis bawah garis dasar"]}},56175:a=>{a.exports={en:["change baseline bottom line width"],ms_MY:["tukar tebal garisan bawah garisan dasar"]}},97216:a=>{a.exports={en:["change baseline fill bottom area color"],ms_MY:["tukar warna isian kawasan bawah garisan dasar"]}},92873:a=>{a.exports={en:["change baseline fill top area color"],ms_MY:["tukar warna isian kawasan atas garisan dasar"]}},68609:a=>{a.exports={en:["change baseline price source"],ms_MY:["tukar sumber harga garisan dasar"]}},69044:a=>{a.exports={en:["change baseline top line color"],ms_MY:["tukar warna garisan atas garisan dasar"]}},4425:a=>{a.exports={en:["change baseline top line style"],ms_MY:["tukar gaya garis atas garis dasar"]}},68197:a=>{a.exports={en:["change baseline top line width"],ms_MY:["tukar tebal garisan atas garisan dasar"]}},33464:a=>{a.exports={en:["change bar up color"],ms_MY:["tukar warna bar atas"]}},14201:a=>{a.exports={en:["change bar change down color"]}},30196:a=>{a.exports={en:["change bar change up color"]}},27426:a=>{a.exports={en:["change bar change visibility"],ms_MY:["tukar kebolehlihatan bar pertukaran"]}},59622:a=>{a.exports={en:["change bar down color"],ms_MY:["tukar warna bar bawah"]}},17919:a=>{a.exports={en:["change bid line color"],ms_MY:["tukar warna garisan bida"]}},32094:a=>{a.exports={en:["change bottom margin"],ms_MY:["tukar margin bawah"]}},63119:a=>{a.exports={en:["change currency and unit labels visibility"],ms_MY:["tukar kebolehlihatan mata wang dan label-label unit"]}},64003:a=>{a.exports={en:["change currency label visibility"],ms_MY:["tukar kebolehlihatan label mata wang"]}},42803:a=>{a.exports={en:["change chart background color"],ms_MY:["tukar warna latarbelakang carta"]}},41382:a=>{a.exports={en:["change chart background type"],ms_MY:["tukar jenis latarbelakang carta"]}},79637:a=>{a.exports={en:["change chart values visibility"],ms_MY:["tukar kebolehlihatan nilai carta"]}},43090:a=>{a.exports={en:["change color bars based on previous close"],ms_MY:["tukar warna bar berdasarkan harga penutup sebelum ini"]}},88324:a=>{a.exports={en:["change column up color"],ms_MY:["tukar warna lajur menaik"]}},93890:a=>{a.exports={en:["change column down color"],ms_MY:["tukar warna lajur menurun"]}},4727:a=>{a.exports={en:["change column price source"],ms_MY:["tukar sumber harga lajur"]}},50544:a=>{a.exports={en:["change crosshair width"],ms_MY:["tukar tebal silangrambut"]}},92885:a=>{a.exports={en:["change crosshair color"],ms_MY:["tukar warna silangrambut"]}},68418:a=>{a.exports={en:["change crosshair style"],ms_MY:["tukar gaya silangrambut"]}},43109:a=>{a.exports={en:["change date format"],ms_MY:["tukar format tarikh"]}},30418:a=>{a.exports={en:["change day of week on labels"], +ms_MY:["pertukaran hari untuk minggu pada label"]}},82063:a=>{a.exports={en:["change decimal places"],ms_MY:["tukar titik perpuluhan"]}},45397:a=>{a.exports={en:["change extended hours color"],ms_MY:["tukar warna jam dilanjutkan"]}},47393:a=>{a.exports={en:["change electronic trading hours"],ms_MY:["menukar jam dagangan elektronik"]}},73844:a=>{a.exports={en:["change grid lines visibility"],ms_MY:["tukar kebolehlihatan garisan grid"]}},61407:a=>{a.exports={en:["change high and low price line color"],ms_MY:["tukar warna garisan harga tinggi dan rendah"]}},39581:a=>{a.exports={en:["change high and low price line width"],ms_MY:["tukar tebal garisan harga tinggi dan rendah"]}},6026:a=>{a.exports={en:["change high-low body color"],ms_MY:["tukar warna badan tinggi-rendah"]}},73021:a=>{a.exports={en:["change high-low body visibility"],ms_MY:["tukar kebolehlihatan badan tinggi-rendah"]}},46844:a=>{a.exports={en:["change high-low border color"],ms_MY:["tukar warna sempadan badan tinggi-rendah"]}},15801:a=>{a.exports={en:["change high-low borders visibility"],ms_MY:["tukar kebolehlihatan sempadan badan tinggi-rendah"]}},72399:a=>{a.exports={en:["change high-low labels visibility"],ms_MY:["tukar kebolehlihatan label tinggi-rendah"]}},56961:a=>{a.exports={en:["change high-low labels color"],ms_MY:["tukar warna label tinggi-rendah"]}},21133:a=>{a.exports={en:["change horz grid lines color"],ms_MY:["tukar warna garisan grid mendatar"]}},63050:a=>{a.exports={en:["change indicator titles visibility"],ms_MY:["tukar kebolehlihatan nama penunjuk"]}},49583:a=>{a.exports={en:["change indicator values visibility"],ms_MY:["tukar kebolehlihatan nilai penunjuk"]}},75663:a=>{a.exports={en:["change indicator inputs visibility"],ms_MY:["tukar kebolehlihatan input penunjuk"]}},35111:a=>{a.exports={en:["change indicators and financials name labels visibility"],ms_MY:["ubah keterlihatan penunjuk dan label nama kewangan"]}},71161:a=>{a.exports={en:["change indicators and financials value labels visibility"],ms_MY:["ubah keterlihatan penunjuk dan label nilai kewangan"]}},451:a=>{a.exports={en:["change interval watermark visibility"],ms_MY:["tukar kebolehlihatan selang masa tera air"]}},66307:a=>{a.exports={en:["change last day change visibility"],ms_MY:["tukar perubahan kebolehlihatan hari terakhir"]}},91873:a=>{a.exports={en:["change legend background transparency"],ms_MY:["tukar ketelusan latarbelakang legenda"]}},14246:a=>{a.exports={en:["change legend background visibility"],ms_MY:["tukar kebolehlihatan latarbelakang legenda"]}},88640:a=>{a.exports={en:["change line color"],ms_MY:["tukar warna garisan"]}},28818:a=>{a.exports={en:["change line style"],ms_MY:["Tukar Bentuk Garis"]}},41837:a=>{a.exports={en:["change line price source"],ms_MY:["tukar sumber harga garisan"]}},48339:a=>{a.exports={en:["change line width"],ms_MY:["tukar tebal garisan"]}},18378:a=>{a.exports={en:["change pane buttons visibility"],ms_MY:["tukar kebolehlihatan butang tingkap"]}},52203:a=>{a.exports={en:["change pane separators color"], +ms_MY:["tukar warna pemisah tetingkap"]}},38730:a=>{a.exports={en:["change post market color"],ms_MY:["tukar warna pasca pasaran"]}},28075:a=>{a.exports={en:["change post market line color"],ms_MY:["tukar warna garisan pasca pasaran"]}},91978:a=>{a.exports={en:["change pre/post market price lines visibility"],ms_MY:["tukar keterlihatan garisan-garisan harga pra/pasca pasaran"]}},44371:a=>{a.exports={en:["change pre market color"],ms_MY:["tukar warna pra pasaran"]}},96114:a=>{a.exports={en:["change pre market line color"],ms_MY:["tukar warna garisan pra pasaran"]}},69814:a=>{a.exports={en:["change previous close price line color"],ms_MY:["tukar warna garisan harga tutup sebelumnya"]}},13660:a=>{a.exports={en:["change previous close price line width"],ms_MY:["tukar tebal garisan harga tutup sebelumnya"]}},87861:a=>{a.exports={en:["change price line color"],ms_MY:["tukar warna garisan harga"]}},29353:a=>{a.exports={en:["change price line width"],ms_MY:["tukar tebal garisan harga"]}},16241:a=>{a.exports={en:["change range bars style"],ms_MY:["tukar julat gaya bar"]}},65821:a=>{a.exports={en:["change range thin bars"],ms_MY:["tukar julat bar nipis"]}},75487:a=>{a.exports={en:["change renko wick down color"],ms_MY:["tukar warna turun sumbu renko"]}},92277:a=>{a.exports={en:["change renko wick up color"],ms_MY:["tukar warna sumbu renko"]}},79604:a=>{a.exports={en:["change renko wick visibility"],ms_MY:["tukar kebolehlihatan sumbu renko"]}},66021:a=>{a.exports={en:["change replay watermark visibility"],ms_MY:["tukar kebolehlihatan ulangan semula tera air"]}},82946:a=>{a.exports={en:["change right margin"],ms_MY:["tukar margin kanan"]}},79545:a=>{a.exports={en:["change right margin percentage"],ms_MY:["tukar peratusan margin kanan"]}},18099:a=>{a.exports={en:["change symbol tiker watermark visibility"],ms_MY:["tukar kebolehlihatan simbol tera air ticker"]}},78995:a=>{a.exports={en:["change symbol watermark color"],ms_MY:["tukar warna simbol tera air"]}},73227:a=>{a.exports={en:["change symbol watermark visibility"],ms_MY:["tukar kebolehlihatan simbol tera air"]}},88167:a=>{a.exports={en:["change symbol description visibility"],ms_MY:["tukar kebolehlihatan penjelasan simbol"]}},65838:a=>{a.exports={en:["change symbol description watermark visibility"],ms_MY:["tukar kebolehlihatan penjelasan simbol tera air"]}},12050:a=>{a.exports={en:["change symbol field visibility"],ms_MY:["tukar kebolehlihatan ruangan simbol"]}},46066:a=>{a.exports={en:["change symbol last value mode"],ms_MY:["tukar mod nilai akhir simbol"]}},902:a=>{a.exports={en:["change symbol legend format"],ms_MY:["tukar format legenda simbol"]}},77408:a=>{a.exports={en:["change save chart left edge position when changing interval"],ms_MY:["tukar posisi bucu kiri carta yang disimpan apabila menukar selang masa"]}},69023:a=>{a.exports={en:["change scale modes buttons visibility"],ms_MY:["menukar kebolehlihatan butang mod skala"]}},76131:a=>{a.exports={en:["change scales text color"],ms_MY:["tukar warna skala teks"]}},27792:a=>{a.exports={en:["change scales font size"], +ms_MY:["tukar warna skala teks"]}},94997:a=>{a.exports={en:["change scales lines color"],ms_MY:["tukar warna skala garisan"]}},60067:a=>{a.exports={en:["change sessions breaks visibility"],ms_MY:["tukar kebolehlihatan rehat sesi"]}},28175:a=>{a.exports={en:["change sessions breaks width"],ms_MY:["tukar lebar rehat sesi"]}},33895:a=>{a.exports={en:["change sessions breaks color"],ms_MY:["tukar warna rehat sesi"]}},21641:a=>{a.exports={en:["change sessions breaks style"],ms_MY:["tukar gaya rehat sesi"]}},16660:a=>{a.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],ms_MY:["tukar paparan untuk harga sebenar pada skala harga (selain harga Heiken-Ashi)"]}},60834:a=>{a.exports={en:["change thin bars"],ms_MY:["tukar bar nipis"]}},39754:a=>{a.exports={en:["change time hours format"],ms_MY:["tukar format jam untuk masa"]}},74883:a=>{a.exports={en:["change top margin"],ms_MY:["tukar margin atas"]}},51250:a=>{a.exports={en:["change unit label visibility"],ms_MY:["tukar kebolehlihatan label unit"]}},28142:a=>{a.exports={en:["change use custom bar change colors"]}},71805:a=>{a.exports={en:["change vert grid lines color"],ms_MY:["tukar warna garisan grid menegak"]}},96201:a=>{a.exports={en:["change volume values visibility"],ms_MY:["tukar kebolehlihatan nilai volum"]}},17214:a=>{a.exports={en:["change {candleType} up border color"],ms_MY:["tukar warna {candleType} sempadan naik"]}},36697:a=>{a.exports={en:["change {candleType} up color"],ms_MY:["tukar warna naik {candleType}"]}},48091:a=>{a.exports={en:["change {candleType} wick down color"],ms_MY:["tukar warna {candleType} sumbu turun"]}},97546:a=>{a.exports={en:["change {candleType} wick up color"],ms_MY:["tukar warna {candleType} sumbu naik"]}},94750:a=>{a.exports={en:["change {candleType} wick visibility"],ms_MY:["tukar kebolehlihatan {candleType} sumbu"]}},60608:a=>{a.exports={en:["change {candleType} body visibility"],ms_MY:["tukar kebolehlihatan {candleType} badan"]}},11114:a=>{a.exports={en:["change {candleType} border visibility"],ms_MY:["tukar kebolehlihatan {candleType} sempadan"]}},20291:a=>{a.exports={en:["change {candleType} down border color"],ms_MY:["tukar warna {candleType} sempadan turun"]}},64571:a=>{a.exports={en:["change {candleType} down color"],ms_MY:["tukar warna turun {candleType}"]}},23053:a=>{a.exports={en:["change {chartType} border bar down color"],ms_MY:["tukar warna turun {chartType} bar sempadan"]}},28394:a=>{a.exports={en:["change {chartType} border bar up color"],ms_MY:["tukar warna naik {chartType} bar sempadan"]}},5012:a=>{a.exports={en:["change {chartType} down color"],ms_MY:["tukar {chartType} warna turun"]}},42826:a=>{a.exports={en:["change {chartType} projection border bar up color"],ms_MY:["tukar warna naik {chartType} bar unjuran sempadan"]}},72545:a=>{a.exports={en:["change {chartType} projection bar down color"],ms_MY:["tukar warna turun {chartType} bar unjuran"]}},85032:a=>{a.exports={en:["change {chartType} projection bar up color"],ms_MY:["tukar warna naik {chartType} bar unjuran"]}}, +6970:a=>{a.exports={en:["change {chartType} up color"],ms_MY:["tukar {chartType} warna naik"]}},66110:a=>{a.exports={en:["change {inputName} property"],ms_MY:["tukar {inputName} sifat"]}},18077:a=>{a.exports={en:["adjust data for dividends"],ms_MY:["laras data untuk dividen"]}},1433:a=>{a.exports={en:["adjust for contract changes"],ms_MY:["laraskan untuk perubahan kontrak"]}},92598:a=>{a.exports={en:["hollow candles"],ms_MY:["Lilin Berongga"]}},57243:a=>{a.exports={en:["range","ranges"],ms_MY:["julat"]}},70282:a=>{a.exports={en:["renko"],ms_MY:["Renko"]}},18917:a=>{a.exports={en:["toggle inactivity gaps"],ms_MY:["togol jurang tiada aktiviti"]}},92978:a=>{a.exports={en:["use settlement as close on daily interval"],ms_MY:["gunakan penyelesaian sebagai penutup pada selang masa harian"]}},59644:a=>{a.exports={en:["{value} decimal","{value} decimals"],ms_MY:["{value} titik perpuluhan"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/pl.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/pl.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index c89f14b8..00000000 --- a/charting_library/bundles/pl.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,8 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:e=>{e.exports={en:["bars"],pl:["słupki"]}},31882:e=>{e.exports={en:["12-hours"],pl:["12-godzin"]}},5797:e=>{e.exports={en:["24-hours"],pl:["24-godziny"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],pl:["Kolor słupków na podstawie poprzedniego zamknięcia"]}},23739:e=>{e.exports={en:["Canvas"],pl:["Wygląd"]}},24197:e=>{e.exports={en:["Center"],pl:["Środek"]}},15153:e=>{e.exports={en:["Chart basic styles"],pl:["Podstawowe style wykresu"]}},45639:e=>{e.exports={en:["Chart values"],pl:["Wartości wykresu"]}},84831:e=>{e.exports={en:["Close line"],pl:["Linia zamknięcia"]}},74622:e=>{e.exports={en:["Crosshair"],pl:["Celownik"]}},81849:e=>{e.exports={en:["Currency"],pl:["Waluta"]}},3015:e=>{e.exports={en:["Currency and Unit"],pl:["Waluta i jednostka"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],pl:["Dopasuj dane według dywidend"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],pl:["Dostosuj do zmian w kontrakcie"]}},36620:e=>{e.exports={en:["Alerts"],pl:["Alerty"]}},68650:e=>{e.exports={en:["Average close"],pl:["Średnie zamknięcie"]}},27567:e=>{e.exports={en:["Bottom"],pl:["Dno"]}},3159:e=>{e.exports={en:["Bottom line"],pl:["Linia dolna"]}},74406:e=>{e.exports={en:["Body"],pl:["Korpus"]}},333:e=>{e.exports={en:["Borders"],pl:["Granice"]}},79468:e=>{e.exports={en:["Background"],pl:["Tło"]}},10842:e=>{e.exports={en:["Bar change values"],pl:["Parametry zmiany słupka"]}},28975:e=>{e.exports={en:["Base level"],pl:["Poziom bazowy"]}},76473:e=>{e.exports={en:["Bid and ask"],pl:["Ceny bid i ask"]}},32744:e=>{e.exports={en:["Buttons"],pl:["Przyciski"]}},68662:e=>{e.exports={en:["Grid lines"],pl:["Linie siatki"]}},17611:e=>{e.exports={en:["Down bars"],pl:["Słupki dół"]}},23743:e=>{e.exports={en:["Down color"],pl:["Kolor dół"]}},48225:e=>{e.exports={en:["Data modification"],pl:["Modyfikacja danych"]}},84838:e=>{e.exports={en:["Date format"],pl:["Format daty"]}},42357:e=>{e.exports={en:["Day of week on labels"],pl:["Dzień tygodnia na etykietach"]}},16564:e=>{e.exports={en:["Default"],pl:["Domyślnie"]}},78734:e=>{e.exports={en:["Description"],pl:["Opis"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],pl:["Wyświetl luki w aktywności"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],pl:["Tło godzin handlu elektronicznego"]}},69808:e=>{e.exports={en:["Events"],pl:["Wydarzenia"]}},41129:e=>{e.exports={en:["Fill"],pl:["Zapełnij"]}},61112:e=>{e.exports={en:["Fill top area"],pl:["Wypełnij górny obszar"]}},73185:e=>{e.exports={en:["Fill bottom area"],pl:["Dolne wypełnienie"]}},3160:e=>{e.exports={en:["Horizontal"],pl:["Poziomo"]}},61900:e=>{e.exports={en:["Horz only"],pl:["Tylko poziome"]}},14180:e=>{e.exports={en:["High and low"],pl:["High i low"]}},56359:e=>{e.exports={en:["High line"],pl:["Linia High"]}},47326:e=>{e.exports={en:["Integer"],pl:["Liczba całkowita"]}},17854:e=>{e.exports={en:["Interval"],pl:["Interwał"]}},84549:e=>{e.exports={en:["Indicators"],pl:["Wskaźniki"]}},78082:e=>{ -e.exports={en:["Indicators and financials"],pl:["Wskaźniki i dane finansowe"]}},21429:e=>{e.exports={en:["Inputs"],pl:["Argumenty"]}},25765:e=>{e.exports={en:["Open market status"],pl:["Pokaż status Rynek otwarty"]}},34579:e=>{e.exports={en:["Low line"],pl:["Linia Low"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"],pl:["Długi Opis"]}},72423:e=>{e.exports={en:["Last day change values"],pl:["Wartości zmiany ostatniego dnia"]}},11626:e=>{e.exports={en:["Left"],pl:["Lewo"]}},56982:e=>{e.exports={en:["Lines"],pl:["Linie"]}},8249:e=>{e.exports={en:["Money"],pl:["Pieniądze"]}},70937:e=>{e.exports={en:["Margins"],pl:["Marginesy"]}},68833:e=>{e.exports={en:["Middle"],pl:["Środek"]}},58589:e=>{e.exports={en:["No overlapping labels"],pl:["Brak nakładających się etykiet"]}},60798:e=>{e.exports={en:["None"],pl:["Żadne"]}},51019:e=>{e.exports={en:["Navigation"],pl:["Nawigacja"]}},99709:e=>{e.exports={en:["Name"],pl:["Nazwa"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],pl:["Zapisz położenie lewej krawędzi wykresu podczas zmiany interwału"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],pl:["Tryby skalowania (A i L)"]}},93968:e=>{e.exports={en:["Scales"],pl:["Skale"]}},90275:e=>{e.exports={en:["Scales and lines"],pl:["Skale i linie"]}},30042:e=>{e.exports={en:["Scales placement"],pl:["Umieszczenie Skali"]}},28715:e=>{e.exports={en:["Status line"],pl:["Linia statusu"]}},95481:e=>{e.exports={en:["Symbol"]}},53263:e=>{e.exports={en:["Pane"],pl:["Panel"]}},82894:e=>{e.exports={en:["Pane separators"],pl:["Przegrody panelowe"]}},86235:e=>{e.exports={en:["Percentage"],pl:["Procentowo"]}},94408:e=>{e.exports={en:["Pips"],pl:["Pipsy"]}},60904:e=>{e.exports={en:["Pre/post market"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],pl:["Tło sesji Pre/Post market"]}},59766:e=>{e.exports={en:["Precision"],pl:["Precyzja"]}},83811:e=>{e.exports={en:["Previous day close"],pl:["Zamknięcie poprzedniego dnia"]}},35082:e=>{e.exports={en:["Price Scale"],pl:["Skala cen"]}},27632:e=>{e.exports={en:["Price and percentage value"],pl:["Cena i wartość procentowa"]}},62142:e=>{e.exports={en:["Price labels & lines"],pl:["Etykiety cenowe i linie"]}},84684:e=>{e.exports={en:["Price source"],pl:["Źródło cen"]}},73466:e=>{e.exports={en:["Projection up bars"],pl:["Projekcja słupków w górę"]}},77430:e=>{e.exports={en:["Projection candles"],pl:["Świece projekcyjne"]}},88367:e=>{e.exports={en:["Projection down bars"],pl:["Projekcja słupków w dół"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],pl:["Rzeczywiste ceny na skali cenowej (zamiast ceny Heikin-Ashi)"]}},50421:e=>{e.exports={en:["Right"],pl:["Prawy"]}},62532:e=>{e.exports={en:["Right Margin"],pl:["Prawy Margines"]}},41571:e=>{e.exports={en:["Watermark"],pl:["Znak wodny"]}},32163:e=>{e.exports={en:["Wick"],pl:["Knot"]}},97118:e=>{e.exports={en:["Top"],pl:["Szczyt"]}},89349:e=>{e.exports={en:["Top line"],pl:["Linia górna"]}},70320:e=>{e.exports={en:["Text"],pl:["Tekst"]}},25485:e=>{ -e.exports={en:["Text alignment"],pl:["Wyrównanie tekstu"]}},67781:e=>{e.exports={en:["Text orientation"],pl:["Kierunek tekstu"]}},20215:e=>{e.exports={en:["Thin bars"],pl:["Wąskie słupki"]}},70198:e=>{e.exports={en:["Title"],pl:["Tytuł"]}},29854:e=>{e.exports={en:["Titles"],pl:["Tytuły"]}},5791:e=>{e.exports={en:["Ticker"],pl:["Symbol"]}},16816:e=>{e.exports={en:["Ticker and description"],pl:["Ticker i opis"]}},24821:e=>{e.exports={en:["Ticks"],pl:["Tiki"]}},93965:e=>{e.exports={en:["Time Scale"],pl:["Skala czasu"]}},5591:e=>{e.exports={en:["Time hours format"],pl:["Format godzinowy"]}},77073:e=>{e.exports={en:["Timezone"],pl:["Strefa czasowa"]}},76495:e=>{e.exports={en:["Trading"]}},33564:e=>{e.exports={en:["Unit"],pl:["Jednostka"]}},23091:e=>{e.exports={en:["Up color"],pl:["Kolor góra"]}},36957:e=>{e.exports={en:["Up bars"],pl:["Słupki góra"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],pl:["Użyj ceny rozliczenia jako dziennej ceny zamknięcia"]}},37644:e=>{e.exports={en:["Volume"],pl:["Wolumen"]}},51514:e=>{e.exports={en:["Value"],pl:["Wartość"]}},31218:e=>{e.exports={en:["Value according to scale"],pl:["Wartość według skali"]}},60092:e=>{e.exports={en:["Values"],pl:["Wartości"]}},83594:e=>{e.exports={en:["Vert and horz"],pl:["Pionowe i poziome"]}},8402:e=>{e.exports={en:["Vert only"],pl:["Tylko pionowe"]}},69526:e=>{e.exports={en:["Vertical"],pl:["Pionowo"]}},21105:e=>{e.exports={en:["candle"],pl:["świeca"]}},27068:e=>{e.exports={en:["change HLC bars"],pl:["zmień słupki HLC"]}},21201:e=>{e.exports={en:["change HLC bars color"],pl:["zmień kolor słupków HLC"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],pl:["zmień widoczność przycisków nawigacyjnych"]}},96227:e=>{e.exports={en:["change open market status visibility"],pl:["zmień widoczność statusu otwartego rynku"]}},43231:e=>{e.exports={en:["change average close price line width"],pl:["zmień średnią szerokość linii ceny zamknięcia"]}},47026:e=>{e.exports={en:["change average close price line color"],pl:["zmień kolor średniej ceny zamknięcia"]}},29281:e=>{e.exports={en:["change area fill color"],pl:["zmień kolor wypełnienia obszaru"]}},27059:e=>{e.exports={en:["change area line visibility"],pl:["zmień widoczność linii obszaru"]}},89346:e=>{e.exports={en:["change area line width"],pl:["zmień grubość linii obszaru"]}},29605:e=>{e.exports={en:["change area line color"],pl:["zmień kolor linii obszaru"]}},56864:e=>{e.exports={en:["change area line style"],pl:["zmień styl linii obszaru"]}},4640:e=>{e.exports={en:["change area price source"],pl:["zmień źródło ceny obszaru"]}},98407:e=>{e.exports={en:["change ask line color"],pl:["zmień kolor linii ask"]}},42190:e=>{e.exports={en:["change base level"],pl:["zmień poziom podstawowy"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],pl:["zmień kolor dolnej linii w linii bazowej"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],pl:["zmień styl dolnej linii linii bazowej"]}},56175:e=>{e.exports={en:["change baseline bottom line width"], -pl:["zmień szerokość dolnej linii w linii bazowej"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],pl:["zmień kolor wypełnienia dolnej części linii bazowej"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],pl:["zmień kolor wypełnienia górnego obszaru linii bazowej"]}},68609:e=>{e.exports={en:["change baseline price source"],pl:["zmień linię bazową źródła ceny"]}},69044:e=>{e.exports={en:["change baseline top line color"],pl:["zmień kolor linii bazowej górnej linii"]}},4425:e=>{e.exports={en:["change baseline top line style"],pl:["zmień styl górnej linii linii bazowej"]}},68197:e=>{e.exports={en:["change baseline top line width"],pl:["zmień grubość górnej linii linii bazowej"]}},33464:e=>{e.exports={en:["change bar up color"],pl:["zmień kolor góry słupka"]}},27426:e=>{e.exports={en:["change bar change visibility"],pl:["zmień widoczność zmian słupków"]}},59622:e=>{e.exports={en:["change bar down color"],pl:["zmień kolor dołu słupka"]}},17919:e=>{e.exports={en:["change bid line color"],pl:["zmień kolor linii bid"]}},32094:e=>{e.exports={en:["change bottom margin"],pl:["zmień dolny margines"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],pl:["zmiana widoczności etykiet waluty i jednostek"]}},64003:e=>{e.exports={en:["change currency label visibility"],pl:["zmień widoczność etykiety waluty"]}},42803:e=>{e.exports={en:["change chart background color"],pl:["zmień kolor tła wykresu"]}},41382:e=>{e.exports={en:["change chart background type"],pl:["zmień rodzaj tła wykresu"]}},79637:e=>{e.exports={en:["change chart values visibility"],pl:["zmień widoczność wartości wykresu"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],pl:["zmień kolor słupków na podstawie poprzedniego zamknięcia"]}},88324:e=>{e.exports={en:["change column up color"],pl:["zmiana koloru słupków wzrostowych"]}},93890:e=>{e.exports={en:["change column down color"],pl:["zmiana koloru słupków spadkowych"]}},4727:e=>{e.exports={en:["change column price source"],pl:["zmień źródło ceny kolumny"]}},50544:e=>{e.exports={en:["change crosshair width"],pl:["zmień szerokość celownika"]}},92885:e=>{e.exports={en:["change crosshair color"],pl:["zmień kolor celownika"]}},68418:e=>{e.exports={en:["change crosshair style"],pl:["zmień styl celownika"]}},43109:e=>{e.exports={en:["change date format"],pl:["zmień format daty"]}},30418:e=>{e.exports={en:["change day of week on labels"],pl:["zmień dzień tygodnia na etykietach"]}},82063:e=>{e.exports={en:["change decimal places"],pl:["zmień miejsca dziesiętne"]}},45397:e=>{e.exports={en:["change extended hours color"],pl:["zmień kolor wydłużonych godzin"]}},47393:e=>{e.exports={en:["change electronic trading hours"],pl:["zmiana godzin handlu elektronicznego"]}},73844:e=>{e.exports={en:["change grid lines visibility"],pl:["zmienić widoczność linii siatki"]}},61407:e=>{e.exports={en:["change high and low price line color"],pl:["zmień kolor linii cen high i low"]}},39581:e=>{e.exports={en:["change high and low price line width"], -pl:["zmień szerokość linii high i low"]}},6026:e=>{e.exports={en:["change high-low body color"],pl:["zmień kolor korpusu high-low"]}},73021:e=>{e.exports={en:["change high-low body visibility"],pl:["zmień widoczność korpusu high-low"]}},46844:e=>{e.exports={en:["change high-low border color"],pl:["zmień kolor obramowania high-low"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],pl:["zmień widoczność granic high-low"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],pl:["zmień widoczność etykiet high-low"]}},56961:e=>{e.exports={en:["change high-low labels color"],pl:["zmień kolor etykiet high-low"]}},21133:e=>{e.exports={en:["change horz grid lines color"],pl:["zmień kolor poziomych linii siatki"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],pl:["Zmień widoczność tytułów wskaźników"]}},49583:e=>{e.exports={en:["change indicator values visibility"],pl:["Zmień widoczność wartości wskaźników"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],pl:["zmień widoczność parametrów wskaźnika"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],pl:["zmień widoczność nazw etykiet indykatorów i wskaźników finansowych"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],pl:["zmień widoczność etykiet wartości wskaźników finansowych i indykatorów"]}},451:e=>{e.exports={en:["change interval watermark visibility"],pl:["zmień interwał widoczności znaku wodnego"]}},66307:e=>{e.exports={en:["change last day change visibility"],pl:["zmień widoczność zmiany ostatniego dnia"]}},91873:e=>{e.exports={en:["change legend background transparency"],pl:["zmień przezroczystość tła legendy"]}},14246:e=>{e.exports={en:["change legend background visibility"],pl:["zmień widoczność tła legendy"]}},88640:e=>{e.exports={en:["change line color"],pl:["zmień kolor linii"]}},28818:e=>{e.exports={en:["change line style"],pl:["Zmień styl linii"]}},41837:e=>{e.exports={en:["change line price source"],pl:["zmień źródło ceny linii"]}},48339:e=>{e.exports={en:["change line width"],pl:["zmień grubość linii"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],pl:["zmiana widoczności przycisków panelu"]}},52203:e=>{e.exports={en:["change pane separators color"],pl:["Zmień kolor separatorów paneli"]}},38730:e=>{e.exports={en:["change post market color"],pl:["zmień kolor dla post market"]}},28075:e=>{e.exports={en:["change post market line color"],pl:["zmień kolor linii post market"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],pl:["zmień widoczność linii cen pre/post market"]}},44371:e=>{e.exports={en:["change pre market color"],pl:["zmień kolor dla pre market"]}},96114:e=>{e.exports={en:["change pre market line color"],pl:["zmień kolor linii pre market"]}},69814:e=>{e.exports={en:["change previous close price line color"],pl:["zmień kolor linii ceny poprzedniego zamknięcia"]}},13660:e=>{e.exports={en:["change previous close price line width"], -pl:["zmień grubość linii ceny poprzedniego zamknięcia"]}},87861:e=>{e.exports={en:["change price line color"],pl:["zmień kolor linii ceny"]}},29353:e=>{e.exports={en:["change price line width"],pl:["zmień grubość linii ceny"]}},16241:e=>{e.exports={en:["change range bars style"],pl:["zmień styl zakresu słupków"]}},65821:e=>{e.exports={en:["change range thin bars"],pl:["zmień zakres cienkich słupków"]}},75487:e=>{e.exports={en:["change renko wick down color"],pl:["zmień kolor dolnego knota renko"]}},92277:e=>{e.exports={en:["change renko wick up color"],pl:["zmień kolor górnego knota renko"]}},79604:e=>{e.exports={en:["change renko wick visibility"],pl:["zmień widoczność knota renko"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],pl:["zmień widoczność znaku wodnego powtórki"]}},82946:e=>{e.exports={en:["change right margin"],pl:["zmień prawy margines"]}},79545:e=>{e.exports={en:["change right margin percentage"],pl:["zmień procent prawego marginesu"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],pl:["zmień symbol tickera widoczność znaku wodnego"]}},78995:e=>{e.exports={en:["change symbol watermark color"],pl:["zmień kolor znaku wodnego symbolu"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],pl:["zmień widoczność znaku wodnego symbolu"]}},88167:e=>{e.exports={en:["change symbol description visibility"],pl:["zmień widoczność opisu symbolu"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],pl:["zmień symbol opisu widoczność znaku wodnego"]}},12050:e=>{e.exports={en:["change symbol field visibility"],pl:["zmień widoczność pola symbolu"]}},46066:e=>{e.exports={en:["change symbol last value mode"],pl:["zmiana trybu ostatniej wartości symbolu"]}},902:e=>{e.exports={en:["change symbol legend format"],pl:["zmień format legendy symboli"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],pl:["zmień pozycję lewego brzegu wykresu przy zmianie interwału"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],pl:["zmień widoczność przycisków trybów skali"]}},76131:e=>{e.exports={en:["change scales text color"],pl:["zmień kolor tekstu skali"]}},27792:e=>{e.exports={en:["change scales font size"],pl:["zmień rozmiar czcionki skali"]}},94997:e=>{e.exports={en:["change scales lines color"],pl:["zmień kolor linii skali"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],pl:["zmień widoczność przerw między sesjami"]}},28175:e=>{e.exports={en:["change sessions breaks width"],pl:["zmień szerokość przerw między sesjami"]}},33895:e=>{e.exports={en:["change sessions breaks color"],pl:["zmień kolor przerw między sesjami"]}},21641:e=>{e.exports={en:["change sessions breaks style"],pl:["zmień styl przerw między sesjami"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],pl:["zmień wyświetlanie rzeczywistych cen na skali cen (zamiast ceny Heiken-Ashi)"]}},60834:e=>{e.exports={en:["change thin bars"],pl:["zmień cienkie słupki"]}}, -39754:e=>{e.exports={en:["change time hours format"],pl:["zmień format godzin"]}},74883:e=>{e.exports={en:["change top margin"],pl:["zmień górny margines"]}},51250:e=>{e.exports={en:["change unit label visibility"],pl:["zmień widoczność etykiety jednostki"]}},71805:e=>{e.exports={en:["change vert grid lines color"],pl:["zmień kolor pionowych linii siatki"]}},96201:e=>{e.exports={en:["change volume values visibility"],pl:["zmień widoczność wartości wolumenu"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],pl:["zmień {candleType} górny kolor obramowania"]}},36697:e=>{e.exports={en:["change {candleType} up color"],pl:["zmień kolor góry {candleType}"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],pl:["zmiana koloru knota świec opadających - {candleType}"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],pl:["zmień kolor górnego knota {candleType}"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],pl:["zmień widoczność knota {candleType}"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],pl:["zmień widoczność korpusu {candleType}"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],pl:["zmień widoczność obramowania {candleType}"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],pl:["zmień kolor dolnego obramowania {candleType}"]}},64571:e=>{e.exports={en:["change {candleType} down color"],pl:["zmień kolor dołu {candleType}"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],pl:["zmień kolor obramowania dolnego słupka {chartType}"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],pl:["zmień kolor projekcji górnego słupka {chartType}"]}},5012:e=>{e.exports={en:["change {chartType} down color"],pl:["zmień kolor kolor spodu {chartType}"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],pl:["zmień kolor obramowania projekcji górnego słupka {chartType}"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],pl:["zmień kolor projekcji dolnego słupka {chartType}"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],pl:["zmień kolor projekcji słupka rosnącego {chartType}"]}},6970:e=>{e.exports={en:["change {chartType} up color"],pl:["zmień kolor góry {chartType}"]}},66110:e=>{e.exports={en:["change {inputName} property"],pl:["zmień właściwość {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],pl:["dostosuj dane według dywidend"]}},1433:e=>{e.exports={en:["adjust for contract changes"],pl:["dostosuj do zmian w kontrakcie"]}},92598:e=>{e.exports={en:["hollow candles"],pl:["Puste Świece"]}},57243:e=>{e.exports={en:["range","ranges"],pl:["zakres","zakresy","zakresów","zakresów"]}},70282:e=>{e.exports={en:["renko"],pl:["Renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],pl:["przełącz luki w aktywności"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],pl:["użyj rozliczenia jako zamknięcia na interwale dziennym"]}},59644:e=>{e.exports={ -en:["{value} decimal","{value} decimals"],pl:["{value} dziesiętna","{value} dziesiętne","{value} dziesiętnych","{value} dziesiętnych"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/pl.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/pl.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..619073bb --- /dev/null +++ b/charting_library/bundles/pl.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,8 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:e=>{e.exports={en:["bars"],pl:["słupki"]}},31882:e=>{e.exports={en:["12-hours"],pl:["12-godzin"]}},5797:e=>{e.exports={en:["24-hours"],pl:["24-godziny"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],pl:["Kolor słupków na podstawie poprzedniego zamknięcia"]}},23739:e=>{e.exports={en:["Canvas"],pl:["Wygląd"]}},24197:e=>{e.exports={en:["Center"],pl:["Środek"]}},15153:e=>{e.exports={en:["Chart basic styles"],pl:["Podstawowe style wykresu"]}},45639:e=>{e.exports={en:["Chart values"],pl:["Wartości wykresu"]}},84831:e=>{e.exports={en:["Close line"],pl:["Linia zamknięcia"]}},74622:e=>{e.exports={en:["Crosshair"],pl:["Celownik"]}},81849:e=>{e.exports={en:["Currency"],pl:["Waluta"]}},3015:e=>{e.exports={en:["Currency and Unit"],pl:["Waluta i jednostka"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],pl:["Dopasuj dane według dywidend"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],pl:["Dostosuj do zmian w kontrakcie"]}},36620:e=>{e.exports={en:["Alerts"],pl:["Alerty"]}},68650:e=>{e.exports={en:["Average close"],pl:["Średnie zamknięcie"]}},27567:e=>{e.exports={en:["Bottom"],pl:["Dno"]}},3159:e=>{e.exports={en:["Bottom line"],pl:["Linia dolna"]}},74406:e=>{e.exports={en:["Body"],pl:["Korpus"]}},333:e=>{e.exports={en:["Borders"],pl:["Granice"]}},79468:e=>{e.exports={en:["Background"],pl:["Tło"]}},10842:e=>{e.exports={en:["Bar change values"],pl:["Parametry zmiany słupka"]}},70817:e=>{e.exports={en:["Bar change color based on value"]}},28975:e=>{e.exports={en:["Base level"],pl:["Poziom bazowy"]}},76473:e=>{e.exports={en:["Bid and ask"],pl:["Ceny bid i ask"]}},32744:e=>{e.exports={en:["Buttons"],pl:["Przyciski"]}},68662:e=>{e.exports={en:["Grid lines"],pl:["Linie siatki"]}},17611:e=>{e.exports={en:["Down bars"],pl:["Słupki dół"]}},23743:e=>{e.exports={en:["Down color"],pl:["Kolor dół"]}},48225:e=>{e.exports={en:["Data modification"],pl:["Modyfikacja danych"]}},84838:e=>{e.exports={en:["Date format"],pl:["Format daty"]}},42357:e=>{e.exports={en:["Day of week on labels"],pl:["Dzień tygodnia na etykietach"]}},16564:e=>{e.exports={en:["Default"],pl:["Domyślnie"]}},78734:e=>{e.exports={en:["Description"],pl:["Opis"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],pl:["Wyświetl luki w aktywności"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],pl:["Tło godzin handlu elektronicznego"]}},69808:e=>{e.exports={en:["Events"],pl:["Wydarzenia"]}},41129:e=>{e.exports={en:["Fill"],pl:["Zapełnij"]}},61112:e=>{e.exports={en:["Fill top area"],pl:["Wypełnij górny obszar"]}},73185:e=>{e.exports={en:["Fill bottom area"],pl:["Dolne wypełnienie"]}},3160:e=>{e.exports={en:["Horizontal"],pl:["Poziomo"]}},61900:e=>{e.exports={en:["Horz only"],pl:["Tylko poziome"]}},14180:e=>{e.exports={en:["High and low"],pl:["High i low"]}},56359:e=>{e.exports={en:["High line"],pl:["Linia High"]}},47326:e=>{e.exports={en:["Integer"],pl:["Liczba całkowita"]}},17854:e=>{e.exports={en:["Interval"],pl:["Interwał"]}},84549:e=>{ +e.exports={en:["Indicators"],pl:["Wskaźniki"]}},78082:e=>{e.exports={en:["Indicators and financials"],pl:["Wskaźniki i dane finansowe"]}},21429:e=>{e.exports={en:["Inputs"],pl:["Argumenty"]}},25765:e=>{e.exports={en:["Open market status"],pl:["Pokaż status Rynek otwarty"]}},34579:e=>{e.exports={en:["Low line"],pl:["Linia Low"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"],pl:["Długi Opis"]}},72423:e=>{e.exports={en:["Last day change values"],pl:["Wartości zmiany ostatniego dnia"]}},11626:e=>{e.exports={en:["Left"],pl:["Lewo"]}},56982:e=>{e.exports={en:["Lines"],pl:["Linie"]}},8249:e=>{e.exports={en:["Money"],pl:["Pieniądze"]}},70937:e=>{e.exports={en:["Margins"],pl:["Marginesy"]}},68833:e=>{e.exports={en:["Middle"],pl:["Środek"]}},58589:e=>{e.exports={en:["No overlapping labels"],pl:["Brak nakładających się etykiet"]}},60798:e=>{e.exports={en:["None"],pl:["Żadne"]}},51019:e=>{e.exports={en:["Navigation"],pl:["Nawigacja"]}},99709:e=>{e.exports={en:["Name"],pl:["Nazwa"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],pl:["Zapisz położenie lewej krawędzi wykresu podczas zmiany interwału"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],pl:["Tryby skalowania (A i L)"]}},93968:e=>{e.exports={en:["Scales"],pl:["Skale"]}},90275:e=>{e.exports={en:["Scales and lines"],pl:["Skale i linie"]}},30042:e=>{e.exports={en:["Scales placement"],pl:["Umieszczenie Skali"]}},28715:e=>{e.exports={en:["Status line"],pl:["Linia statusu"]}},95481:e=>{e.exports={en:["Symbol"]}},53263:e=>{e.exports={en:["Pane"],pl:["Panel"]}},82894:e=>{e.exports={en:["Pane separators"],pl:["Przegrody panelowe"]}},86235:e=>{e.exports={en:["Percentage"],pl:["Procentowo"]}},94408:e=>{e.exports={en:["Pips"],pl:["Pipsy"]}},60904:e=>{e.exports={en:["Pre/post market"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],pl:["Tło sesji Pre/Post market"]}},59766:e=>{e.exports={en:["Precision"],pl:["Precyzja"]}},83811:e=>{e.exports={en:["Previous day close"],pl:["Zamknięcie poprzedniego dnia"]}},35082:e=>{e.exports={en:["Price Scale"],pl:["Skala cen"]}},27632:e=>{e.exports={en:["Price and percentage value"],pl:["Cena i wartość procentowa"]}},62142:e=>{e.exports={en:["Price labels & lines"],pl:["Etykiety cenowe i linie"]}},84684:e=>{e.exports={en:["Price source"],pl:["Źródło cen"]}},73466:e=>{e.exports={en:["Projection up bars"],pl:["Projekcja słupków w górę"]}},77430:e=>{e.exports={en:["Projection candles"],pl:["Świece projekcyjne"]}},88367:e=>{e.exports={en:["Projection down bars"],pl:["Projekcja słupków w dół"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],pl:["Rzeczywiste ceny na skali cenowej (zamiast ceny Heikin-Ashi)"]}},50421:e=>{e.exports={en:["Right"],pl:["Prawy"]}},62532:e=>{e.exports={en:["Right Margin"],pl:["Prawy Margines"]}},41571:e=>{e.exports={en:["Watermark"],pl:["Znak wodny"]}},32163:e=>{e.exports={en:["Wick"],pl:["Knot"]}},97118:e=>{e.exports={en:["Top"],pl:["Szczyt"]}},89349:e=>{e.exports={en:["Top line"],pl:["Linia górna"]}}, +70320:e=>{e.exports={en:["Text"],pl:["Tekst"]}},25485:e=>{e.exports={en:["Text alignment"],pl:["Wyrównanie tekstu"]}},67781:e=>{e.exports={en:["Text orientation"],pl:["Kierunek tekstu"]}},20215:e=>{e.exports={en:["Thin bars"],pl:["Wąskie słupki"]}},70198:e=>{e.exports={en:["Title"],pl:["Tytuł"]}},29854:e=>{e.exports={en:["Titles"],pl:["Tytuły"]}},5791:e=>{e.exports={en:["Ticker"],pl:["Symbol"]}},16816:e=>{e.exports={en:["Ticker and description"],pl:["Ticker i opis"]}},24821:e=>{e.exports={en:["Ticks"],pl:["Tiki"]}},93965:e=>{e.exports={en:["Time Scale"],pl:["Skala czasu"]}},5591:e=>{e.exports={en:["Time hours format"],pl:["Format godzinowy"]}},77073:e=>{e.exports={en:["Timezone"],pl:["Strefa czasowa"]}},76495:e=>{e.exports={en:["Trading"]}},33564:e=>{e.exports={en:["Unit"],pl:["Jednostka"]}},23091:e=>{e.exports={en:["Up color"],pl:["Kolor góra"]}},36957:e=>{e.exports={en:["Up bars"],pl:["Słupki góra"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],pl:["Użyj ceny rozliczenia jako dziennej ceny zamknięcia"]}},37644:e=>{e.exports={en:["Volume"],pl:["Wolumen"]}},51514:e=>{e.exports={en:["Value"],pl:["Wartość"]}},31218:e=>{e.exports={en:["Value according to scale"],pl:["Wartość według skali"]}},60092:e=>{e.exports={en:["Values"],pl:["Wartości"]}},83594:e=>{e.exports={en:["Vert and horz"],pl:["Pionowe i poziome"]}},8402:e=>{e.exports={en:["Vert only"],pl:["Tylko pionowe"]}},69526:e=>{e.exports={en:["Vertical"],pl:["Pionowo"]}},21105:e=>{e.exports={en:["candle"],pl:["świeca"]}},27068:e=>{e.exports={en:["change HLC bars"],pl:["zmień słupki HLC"]}},21201:e=>{e.exports={en:["change HLC bars color"],pl:["zmień kolor słupków HLC"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],pl:["zmień widoczność przycisków nawigacyjnych"]}},96227:e=>{e.exports={en:["change open market status visibility"],pl:["zmień widoczność statusu otwartego rynku"]}},43231:e=>{e.exports={en:["change average close price line width"],pl:["zmień średnią szerokość linii ceny zamknięcia"]}},47026:e=>{e.exports={en:["change average close price line color"],pl:["zmień kolor średniej ceny zamknięcia"]}},29281:e=>{e.exports={en:["change area fill color"],pl:["zmień kolor wypełnienia obszaru"]}},27059:e=>{e.exports={en:["change area line visibility"],pl:["zmień widoczność linii obszaru"]}},89346:e=>{e.exports={en:["change area line width"],pl:["zmień grubość linii obszaru"]}},29605:e=>{e.exports={en:["change area line color"],pl:["zmień kolor linii obszaru"]}},56864:e=>{e.exports={en:["change area line style"],pl:["zmień styl linii obszaru"]}},4640:e=>{e.exports={en:["change area price source"],pl:["zmień źródło ceny obszaru"]}},98407:e=>{e.exports={en:["change ask line color"],pl:["zmień kolor linii ask"]}},42190:e=>{e.exports={en:["change base level"],pl:["zmień poziom podstawowy"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],pl:["zmień kolor dolnej linii w linii bazowej"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],pl:["zmień styl dolnej linii linii bazowej"]}},56175:e=>{ +e.exports={en:["change baseline bottom line width"],pl:["zmień szerokość dolnej linii w linii bazowej"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],pl:["zmień kolor wypełnienia dolnej części linii bazowej"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],pl:["zmień kolor wypełnienia górnego obszaru linii bazowej"]}},68609:e=>{e.exports={en:["change baseline price source"],pl:["zmień linię bazową źródła ceny"]}},69044:e=>{e.exports={en:["change baseline top line color"],pl:["zmień kolor linii bazowej górnej linii"]}},4425:e=>{e.exports={en:["change baseline top line style"],pl:["zmień styl górnej linii linii bazowej"]}},68197:e=>{e.exports={en:["change baseline top line width"],pl:["zmień grubość górnej linii linii bazowej"]}},33464:e=>{e.exports={en:["change bar up color"],pl:["zmień kolor góry słupka"]}},14201:e=>{e.exports={en:["change bar change down color"]}},30196:e=>{e.exports={en:["change bar change up color"]}},27426:e=>{e.exports={en:["change bar change visibility"],pl:["zmień widoczność zmian słupków"]}},59622:e=>{e.exports={en:["change bar down color"],pl:["zmień kolor dołu słupka"]}},17919:e=>{e.exports={en:["change bid line color"],pl:["zmień kolor linii bid"]}},32094:e=>{e.exports={en:["change bottom margin"],pl:["zmień dolny margines"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],pl:["zmiana widoczności etykiet waluty i jednostek"]}},64003:e=>{e.exports={en:["change currency label visibility"],pl:["zmień widoczność etykiety waluty"]}},42803:e=>{e.exports={en:["change chart background color"],pl:["zmień kolor tła wykresu"]}},41382:e=>{e.exports={en:["change chart background type"],pl:["zmień rodzaj tła wykresu"]}},79637:e=>{e.exports={en:["change chart values visibility"],pl:["zmień widoczność wartości wykresu"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],pl:["zmień kolor słupków na podstawie poprzedniego zamknięcia"]}},88324:e=>{e.exports={en:["change column up color"],pl:["zmiana koloru słupków wzrostowych"]}},93890:e=>{e.exports={en:["change column down color"],pl:["zmiana koloru słupków spadkowych"]}},4727:e=>{e.exports={en:["change column price source"],pl:["zmień źródło ceny kolumny"]}},50544:e=>{e.exports={en:["change crosshair width"],pl:["zmień szerokość celownika"]}},92885:e=>{e.exports={en:["change crosshair color"],pl:["zmień kolor celownika"]}},68418:e=>{e.exports={en:["change crosshair style"],pl:["zmień styl celownika"]}},43109:e=>{e.exports={en:["change date format"],pl:["zmień format daty"]}},30418:e=>{e.exports={en:["change day of week on labels"],pl:["zmień dzień tygodnia na etykietach"]}},82063:e=>{e.exports={en:["change decimal places"],pl:["zmień miejsca dziesiętne"]}},45397:e=>{e.exports={en:["change extended hours color"],pl:["zmień kolor wydłużonych godzin"]}},47393:e=>{e.exports={en:["change electronic trading hours"],pl:["zmiana godzin handlu elektronicznego"]}},73844:e=>{e.exports={en:["change grid lines visibility"],pl:["zmienić widoczność linii siatki"]}},61407:e=>{e.exports={ +en:["change high and low price line color"],pl:["zmień kolor linii cen high i low"]}},39581:e=>{e.exports={en:["change high and low price line width"],pl:["zmień szerokość linii high i low"]}},6026:e=>{e.exports={en:["change high-low body color"],pl:["zmień kolor korpusu high-low"]}},73021:e=>{e.exports={en:["change high-low body visibility"],pl:["zmień widoczność korpusu high-low"]}},46844:e=>{e.exports={en:["change high-low border color"],pl:["zmień kolor obramowania high-low"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],pl:["zmień widoczność granic high-low"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],pl:["zmień widoczność etykiet high-low"]}},56961:e=>{e.exports={en:["change high-low labels color"],pl:["zmień kolor etykiet high-low"]}},21133:e=>{e.exports={en:["change horz grid lines color"],pl:["zmień kolor poziomych linii siatki"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],pl:["Zmień widoczność tytułów wskaźników"]}},49583:e=>{e.exports={en:["change indicator values visibility"],pl:["Zmień widoczność wartości wskaźników"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],pl:["zmień widoczność parametrów wskaźnika"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],pl:["zmień widoczność nazw etykiet indykatorów i wskaźników finansowych"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],pl:["zmień widoczność etykiet wartości wskaźników finansowych i indykatorów"]}},451:e=>{e.exports={en:["change interval watermark visibility"],pl:["zmień interwał widoczności znaku wodnego"]}},66307:e=>{e.exports={en:["change last day change visibility"],pl:["zmień widoczność zmiany ostatniego dnia"]}},91873:e=>{e.exports={en:["change legend background transparency"],pl:["zmień przezroczystość tła legendy"]}},14246:e=>{e.exports={en:["change legend background visibility"],pl:["zmień widoczność tła legendy"]}},88640:e=>{e.exports={en:["change line color"],pl:["zmień kolor linii"]}},28818:e=>{e.exports={en:["change line style"],pl:["Zmień styl linii"]}},41837:e=>{e.exports={en:["change line price source"],pl:["zmień źródło ceny linii"]}},48339:e=>{e.exports={en:["change line width"],pl:["zmień grubość linii"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],pl:["zmiana widoczności przycisków panelu"]}},52203:e=>{e.exports={en:["change pane separators color"],pl:["Zmień kolor separatorów paneli"]}},38730:e=>{e.exports={en:["change post market color"],pl:["zmień kolor dla post market"]}},28075:e=>{e.exports={en:["change post market line color"],pl:["zmień kolor linii post market"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],pl:["zmień widoczność linii cen pre/post market"]}},44371:e=>{e.exports={en:["change pre market color"],pl:["zmień kolor dla pre market"]}},96114:e=>{e.exports={en:["change pre market line color"],pl:["zmień kolor linii pre market"]}},69814:e=>{e.exports={en:["change previous close price line color"], +pl:["zmień kolor linii ceny poprzedniego zamknięcia"]}},13660:e=>{e.exports={en:["change previous close price line width"],pl:["zmień grubość linii ceny poprzedniego zamknięcia"]}},87861:e=>{e.exports={en:["change price line color"],pl:["zmień kolor linii ceny"]}},29353:e=>{e.exports={en:["change price line width"],pl:["zmień grubość linii ceny"]}},16241:e=>{e.exports={en:["change range bars style"],pl:["zmień styl zakresu słupków"]}},65821:e=>{e.exports={en:["change range thin bars"],pl:["zmień zakres cienkich słupków"]}},75487:e=>{e.exports={en:["change renko wick down color"],pl:["zmień kolor dolnego knota renko"]}},92277:e=>{e.exports={en:["change renko wick up color"],pl:["zmień kolor górnego knota renko"]}},79604:e=>{e.exports={en:["change renko wick visibility"],pl:["zmień widoczność knota renko"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],pl:["zmień widoczność znaku wodnego powtórki"]}},82946:e=>{e.exports={en:["change right margin"],pl:["zmień prawy margines"]}},79545:e=>{e.exports={en:["change right margin percentage"],pl:["zmień procent prawego marginesu"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],pl:["zmień symbol tickera widoczność znaku wodnego"]}},78995:e=>{e.exports={en:["change symbol watermark color"],pl:["zmień kolor znaku wodnego symbolu"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],pl:["zmień widoczność znaku wodnego symbolu"]}},88167:e=>{e.exports={en:["change symbol description visibility"],pl:["zmień widoczność opisu symbolu"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],pl:["zmień symbol opisu widoczność znaku wodnego"]}},12050:e=>{e.exports={en:["change symbol field visibility"],pl:["zmień widoczność pola symbolu"]}},46066:e=>{e.exports={en:["change symbol last value mode"],pl:["zmiana trybu ostatniej wartości symbolu"]}},902:e=>{e.exports={en:["change symbol legend format"],pl:["zmień format legendy symboli"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],pl:["zmień pozycję lewego brzegu wykresu przy zmianie interwału"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],pl:["zmień widoczność przycisków trybów skali"]}},76131:e=>{e.exports={en:["change scales text color"],pl:["zmień kolor tekstu skali"]}},27792:e=>{e.exports={en:["change scales font size"],pl:["zmień rozmiar czcionki skali"]}},94997:e=>{e.exports={en:["change scales lines color"],pl:["zmień kolor linii skali"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],pl:["zmień widoczność przerw między sesjami"]}},28175:e=>{e.exports={en:["change sessions breaks width"],pl:["zmień szerokość przerw między sesjami"]}},33895:e=>{e.exports={en:["change sessions breaks color"],pl:["zmień kolor przerw między sesjami"]}},21641:e=>{e.exports={en:["change sessions breaks style"],pl:["zmień styl przerw między sesjami"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"], +pl:["zmień wyświetlanie rzeczywistych cen na skali cen (zamiast ceny Heiken-Ashi)"]}},60834:e=>{e.exports={en:["change thin bars"],pl:["zmień cienkie słupki"]}},39754:e=>{e.exports={en:["change time hours format"],pl:["zmień format godzin"]}},74883:e=>{e.exports={en:["change top margin"],pl:["zmień górny margines"]}},51250:e=>{e.exports={en:["change unit label visibility"],pl:["zmień widoczność etykiety jednostki"]}},28142:e=>{e.exports={en:["change use custom bar change colors"]}},71805:e=>{e.exports={en:["change vert grid lines color"],pl:["zmień kolor pionowych linii siatki"]}},96201:e=>{e.exports={en:["change volume values visibility"],pl:["zmień widoczność wartości wolumenu"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],pl:["zmień {candleType} górny kolor obramowania"]}},36697:e=>{e.exports={en:["change {candleType} up color"],pl:["zmień kolor góry {candleType}"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],pl:["zmiana koloru knota świec opadających - {candleType}"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],pl:["zmień kolor górnego knota {candleType}"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],pl:["zmień widoczność knota {candleType}"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],pl:["zmień widoczność korpusu {candleType}"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],pl:["zmień widoczność obramowania {candleType}"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],pl:["zmień kolor dolnego obramowania {candleType}"]}},64571:e=>{e.exports={en:["change {candleType} down color"],pl:["zmień kolor dołu {candleType}"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],pl:["zmień kolor obramowania dolnego słupka {chartType}"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],pl:["zmień kolor projekcji górnego słupka {chartType}"]}},5012:e=>{e.exports={en:["change {chartType} down color"],pl:["zmień kolor kolor spodu {chartType}"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],pl:["zmień kolor obramowania projekcji górnego słupka {chartType}"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],pl:["zmień kolor projekcji dolnego słupka {chartType}"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],pl:["zmień kolor projekcji słupka rosnącego {chartType}"]}},6970:e=>{e.exports={en:["change {chartType} up color"],pl:["zmień kolor góry {chartType}"]}},66110:e=>{e.exports={en:["change {inputName} property"],pl:["zmień właściwość {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],pl:["dostosuj dane według dywidend"]}},1433:e=>{e.exports={en:["adjust for contract changes"],pl:["dostosuj do zmian w kontrakcie"]}},92598:e=>{e.exports={en:["hollow candles"],pl:["Puste Świece"]}},57243:e=>{e.exports={en:["range","ranges"],pl:["zakres","zakresy","zakresów","zakresów"]}},70282:e=>{e.exports={en:["renko"],pl:["Renko"]}},18917:e=>{e.exports={ +en:["toggle inactivity gaps"],pl:["przełącz luki w aktywności"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],pl:["użyj rozliczenia jako zamknięcia na interwale dziennym"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],pl:["{value} dziesiętna","{value} dziesiętne","{value} dziesiętnych","{value} dziesiętnych"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/pt.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/pt.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index fba6f490..00000000 --- a/charting_library/bundles/pt.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,8 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:e=>{e.exports={en:["bars"],pt:["barras"]}},31882:e=>{e.exports={en:["12-hours"],pt:["12 horas"]}},5797:e=>{e.exports={en:["24-hours"],pt:["24 horas"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],pt:["Colorir barra de acordo com o fechamento anterior"]}},23739:e=>{e.exports={en:["Canvas"]}},24197:e=>{e.exports={en:["Center"],pt:["Centro"]}},15153:e=>{e.exports={en:["Chart basic styles"],pt:["Estilos básico do gráfico"]}},45639:e=>{e.exports={en:["Chart values"],pt:["Valores do gráfico"]}},84831:e=>{e.exports={en:["Close line"],pt:["Linha de fechamento"]}},74622:e=>{e.exports={en:["Crosshair"],pt:["Mira"]}},81849:e=>{e.exports={en:["Currency"],pt:["Moeda"]}},3015:e=>{e.exports={en:["Currency and Unit"],pt:["Moeda e Unidade"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],pt:["Ajustar dados de dividendos"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],pt:["Ajustes para mudanças no contrato"]}},36620:e=>{e.exports={en:["Alerts"],pt:["Alertas"]}},68650:e=>{e.exports={en:["Average close"],pt:["Média de fechamento"]}},27567:e=>{e.exports={en:["Bottom"],pt:["Em baixo"]}},3159:e=>{e.exports={en:["Bottom line"],pt:["Linha de base"]}},74406:e=>{e.exports={en:["Body"],pt:["Corpo"]}},333:e=>{e.exports={en:["Borders"],pt:["Contorno"]}},79468:e=>{e.exports={en:["Background"],pt:["Fundo"]}},10842:e=>{e.exports={en:["Bar change values"],pt:["Variação de valores de barra"]}},28975:e=>{e.exports={en:["Base level"],pt:["Nível base"]}},76473:e=>{e.exports={en:["Bid and ask"],pt:["Bid e ask"]}},32744:e=>{e.exports={en:["Buttons"],pt:["Botões"]}},68662:e=>{e.exports={en:["Grid lines"],pt:["Linhas de grade"]}},17611:e=>{e.exports={en:["Down bars"],pt:["Barras Baixistas"]}},23743:e=>{e.exports={en:["Down color"],pt:["Cor de baixa"]}},48225:e=>{e.exports={en:["Data modification"],pt:["Modificação dos dados"]}},84838:e=>{e.exports={en:["Date format"],pt:["Formato da data"]}},42357:e=>{e.exports={en:["Day of week on labels"],pt:["Dias da semana na legenda"]}},16564:e=>{e.exports={en:["Default"],pt:["Padrão"]}},78734:e=>{e.exports={en:["Description"],pt:["Descrição"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],pt:["Exibir gaps de inatividade"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],pt:["Histórico do horário de negociação eletrônica"]}},69808:e=>{e.exports={en:["Events"],pt:["Eventos"]}},41129:e=>{e.exports={en:["Fill"]}},61112:e=>{e.exports={en:["Fill top area"],pt:["Preencher área superior"]}},73185:e=>{e.exports={en:["Fill bottom area"],pt:["Preencher área inferior"]}},3160:e=>{e.exports={en:["Horizontal"]}},61900:e=>{e.exports={en:["Horz only"],pt:["Somente Horz"]}},14180:e=>{e.exports={en:["High and low"],pt:["Máxima e Mínima"]}},56359:e=>{e.exports={en:["High line"],pt:["Linha de máxima"]}},47326:e=>{e.exports={en:["Integer"],pt:["Inteiro"]}},17854:e=>{e.exports={en:["Interval"],pt:["Tempo Gráfico"]}},84549:e=>{e.exports={en:["Indicators"],pt:["Indicadores"]}},78082:e=>{e.exports={ -en:["Indicators and financials"],pt:["Indicadores e dados financeiros"]}},21429:e=>{e.exports={en:["Inputs"],pt:["Valores"]}},25765:e=>{e.exports={en:["Open market status"],pt:["Status de abertura do mercado"]}},34579:e=>{e.exports={en:["Low line"],pt:["Linha de mínima"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"],pt:["Descrição longa"]}},72423:e=>{e.exports={en:["Last day change values"],pt:["Valores da mudança do último dia"]}},11626:e=>{e.exports={en:["Left"],pt:["Esquerda"]}},56982:e=>{e.exports={en:["Lines"],pt:["Linhas"]}},8249:e=>{e.exports={en:["Money"],pt:["Dinheiro"]}},70937:e=>{e.exports={en:["Margins"],pt:["Margens"]}},68833:e=>{e.exports={en:["Middle"],pt:["No meio"]}},58589:e=>{e.exports={en:["No overlapping labels"],pt:["Sem legendas sobrepostas"]}},60798:e=>{e.exports={en:["None"],pt:["Nenhum"]}},51019:e=>{e.exports={en:["Navigation"],pt:["Navegação"]}},99709:e=>{e.exports={en:["Name"],pt:["Nome"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],pt:["Salvar a posição da borda esquerda do gráfico ao alterar o intervalo"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],pt:["Modos de escala (A e L)"]}},93968:e=>{e.exports={en:["Scales"],pt:["Escalas"]}},90275:e=>{e.exports={en:["Scales and lines"],pt:["Escalas e linhas"]}},30042:e=>{e.exports={en:["Scales placement"],pt:["Fixação da escala"]}},28715:e=>{e.exports={en:["Status line"],pt:["Linha de Status"]}},95481:e=>{e.exports={en:["Symbol"],pt:["Símbolo"]}},53263:e=>{e.exports={en:["Pane"],pt:["Painel"]}},82894:e=>{e.exports={en:["Pane separators"],pt:["Divisores de painel"]}},86235:e=>{e.exports={en:["Percentage"],pt:["Porcentagem"]}},94408:e=>{e.exports={en:["Pips"]}},60904:e=>{e.exports={en:["Pre/post market"],pt:["Pré/pós mercado"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],pt:["Histórico das horas pré/pós mercado"]}},59766:e=>{e.exports={en:["Precision"],pt:["Precisão"]}},83811:e=>{e.exports={en:["Previous day close"],pt:["Fechamento dia anterior"]}},35082:e=>{e.exports={en:["Price Scale"],pt:["Escala de Preço"]}},27632:e=>{e.exports={en:["Price and percentage value"],pt:["Preço e valor percentual"]}},62142:e=>{e.exports={en:["Price labels & lines"],pt:["Legendas & linhas de preços"]}},84684:e=>{e.exports={en:["Price source"],pt:["Fonte de preço"]}},73466:e=>{e.exports={en:["Projection up bars"],pt:["Barras de projeção altista"]}},77430:e=>{e.exports={en:["Projection candles"],pt:["Candles de projeção"]}},88367:e=>{e.exports={en:["Projection down bars"],pt:["Barras de projeção baixista"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],pt:["Preços reais na escala de preços (em vez do preço Heikin-Ashi)"]}},50421:e=>{e.exports={en:["Right"],pt:["Direita"]}},62532:e=>{e.exports={en:["Right Margin"],pt:["Margem Direita"]}},41571:e=>{e.exports={en:["Watermark"],pt:["Marca d'água"]}},32163:e=>{e.exports={en:["Wick"],pt:["Pavio"]}},97118:e=>{e.exports={en:["Top"],pt:["Em cima"]}},89349:e=>{e.exports={en:["Top line"], -pt:["Linha de topo"]}},70320:e=>{e.exports={en:["Text"],pt:["Texto"]}},25485:e=>{e.exports={en:["Text alignment"],pt:["Alinhamento do texto"]}},67781:e=>{e.exports={en:["Text orientation"],pt:["Orientação do Texto"]}},20215:e=>{e.exports={en:["Thin bars"],pt:["Espessura das barras"]}},70198:e=>{e.exports={en:["Title"],pt:["Título"]}},29854:e=>{e.exports={en:["Titles"],pt:["Títulos"]}},5791:e=>{e.exports={en:["Ticker"],pt:["Cotação"]}},16816:e=>{e.exports={en:["Ticker and description"],pt:["Ticker e descrição"]}},24821:e=>{e.exports={en:["Ticks"]}},93965:e=>{e.exports={en:["Time Scale"],pt:["Escala de Tempo"]}},5591:e=>{e.exports={en:["Time hours format"],pt:["Formato das horas"]}},77073:e=>{e.exports={en:["Timezone"],pt:["Fuso Horário"]}},76495:e=>{e.exports={en:["Trading"],pt:["Trade"]}},33564:e=>{e.exports={en:["Unit"],pt:["Unidade"]}},23091:e=>{e.exports={en:["Up color"],pt:["Cor de alta"]}},36957:e=>{e.exports={en:["Up bars"],pt:["Barras Altistas"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],pt:["Usar a liquidação como fechamento no intervalo diário"]}},37644:e=>{e.exports={en:["Volume"]}},51514:e=>{e.exports={en:["Value"],pt:["Valor"]}},31218:e=>{e.exports={en:["Value according to scale"],pt:["Valor de acordo com a escala"]}},60092:e=>{e.exports={en:["Values"],pt:["Valores"]}},83594:e=>{e.exports={en:["Vert and horz"],pt:["Vert e horz"]}},8402:e=>{e.exports={en:["Vert only"],pt:["Somente Vert"]}},69526:e=>{e.exports={en:["Vertical"]}},21105:e=>{e.exports={en:["candle"],pt:["vela"]}},27068:e=>{e.exports={en:["change HLC bars"],pt:["alterar barras HLC"]}},21201:e=>{e.exports={en:["change HLC bars color"],pt:["alterar cores das barras HLC"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],pt:["alterar a visibilidade dos botões de navegação"]}},96227:e=>{e.exports={en:["change open market status visibility"],pt:["alterar a visibilidade do status de abertura do mercado"]}},43231:e=>{e.exports={en:["change average close price line width"],pt:["alterar espessura da linha do preço médio de fechamento"]}},47026:e=>{e.exports={en:["change average close price line color"],pt:["alterar cor da linha do preço médio de fechamento"]}},29281:e=>{e.exports={en:["change area fill color"],pt:["alterar a cor de preenchimento da área"]}},27059:e=>{e.exports={en:["change area line visibility"],pt:["Alterar visibilidade da linha de área"]}},89346:e=>{e.exports={en:["change area line width"],pt:["alterar a espessura da linha de área"]}},29605:e=>{e.exports={en:["change area line color"],pt:["alterar a cor da linha de área"]}},56864:e=>{e.exports={en:["change area line style"],pt:["alterar o estilo da linha da área"]}},4640:e=>{e.exports={en:["change area price source"],pt:["alterar a área do preço fonte"]}},98407:e=>{e.exports={en:["change ask line color"],pt:["alterar cor da linha de venda"]}},42190:e=>{e.exports={en:["change base level"],pt:["mudar o nível base"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],pt:["alterar a cor da base da linha de base"]}},85684:e=>{ -e.exports={en:["change baseline bottom line style"],pt:["mudar o estilo de linha de base do resultado"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],pt:["alterar a largura da base da linha de base"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],pt:["alterar a cor de preenchimento da base da área da linha de base"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],pt:["alterar a cor de preenchimento do topo da área da linha de base"]}},68609:e=>{e.exports={en:["change baseline price source"],pt:["alterar da linha de base do preço fonte"]}},69044:e=>{e.exports={en:["change baseline top line color"],pt:["alterar a cor da linha de base"]}},4425:e=>{e.exports={en:["change baseline top line style"],pt:["alterar o estilo da linha superior da linha de base"]}},68197:e=>{e.exports={en:["change baseline top line width"],pt:["alterar a lagura do topo da linha de base"]}},33464:e=>{e.exports={en:["change bar up color"],pt:["alterar cor da barra para cima"]}},27426:e=>{e.exports={en:["change bar change visibility"],pt:["alterar a visibilidade da variação da barra"]}},59622:e=>{e.exports={en:["change bar down color"],pt:["alterar cor da barra para baixo"]}},17919:e=>{e.exports={en:["change bid line color"],pt:["alterar a cor da linha de compra"]}},32094:e=>{e.exports={en:["change bottom margin"],pt:["alterar margem inferior"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],pt:["mudar a visibilidade das legendas da moeda e das unidades"]}},64003:e=>{e.exports={en:["change currency label visibility"],pt:["alterar a visibilidade da legenda da moeda"]}},42803:e=>{e.exports={en:["change chart background color"],pt:["alterar a cor de fundo do gráfico"]}},41382:e=>{e.exports={en:["change chart background type"],pt:["alterar o tipo de fundo do gráfico"]}},79637:e=>{e.exports={en:["change chart values visibility"],pt:["alterar a visibilidade dos valores do gráfico"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],pt:["alterar cor da barra baseado no fechamento anterior"]}},88324:e=>{e.exports={en:["change column up color"],pt:["alterar a cor da coluna acima"]}},93890:e=>{e.exports={en:["change column down color"],pt:["alterar a cor da coluna abaixo"]}},4727:e=>{e.exports={en:["change column price source"],pt:["alterar preço fonte da coluna"]}},50544:e=>{e.exports={en:["change crosshair width"],pt:["alterar a largura da mira"]}},92885:e=>{e.exports={en:["change crosshair color"],pt:["alterar a cor da mira"]}},68418:e=>{e.exports={en:["change crosshair style"],pt:["alterar o estilo da mira"]}},43109:e=>{e.exports={en:["change date format"],pt:["alterar formato da data"]}},30418:e=>{e.exports={en:["change day of week on labels"],pt:["mudar dia da semana na legenda"]}},82063:e=>{e.exports={en:["change decimal places"],pt:["alterar casas decimais"]}},45397:e=>{e.exports={en:["change extended hours color"],pt:["alterar cor das horas estendidas"]}},47393:e=>{e.exports={en:["change electronic trading hours"], -pt:["alterar horário de negociação eletrônica"]}},73844:e=>{e.exports={en:["change grid lines visibility"],pt:["alterar a visibilidade das linhas da grade"]}},61407:e=>{e.exports={en:["change high and low price line color"],pt:["alterar cor da linha de preço máximo e mínimo"]}},39581:e=>{e.exports={en:["change high and low price line width"],pt:["alterar espessura da linha de preço máximo e mínimo"]}},6026:e=>{e.exports={en:["change high-low body color"],pt:["alterar a cor do corpo do máx-min"]}},73021:e=>{e.exports={en:["change high-low body visibility"],pt:["alterar a visibilidade do corpo do máx-min"]}},46844:e=>{e.exports={en:["change high-low border color"],pt:["alterar a cor da borda do máx-min"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],pt:["alterar a visibilidade das bordas do máx-min"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],pt:["alterar a visibilidade da legenda do máx-min"]}},56961:e=>{e.exports={en:["change high-low labels color"],pt:["alterar a cor da legenda do máx-min"]}},21133:e=>{e.exports={en:["change horz grid lines color"],pt:["alterar a cor das linhas horizontais da grade"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],pt:["alterar a visibilidade dos títulos dos indicadores"]}},49583:e=>{e.exports={en:["change indicator values visibility"],pt:["alterar a visibilidade dos valores dos indicadores"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],pt:["Alterar a visibilidade dos inputs do indicador"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],pt:["alterar a visibilidade dos nomes dos rótulos dos valores de indicadores e finanças"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],pt:["alterar a visibilidade dos rótulos de valores de indicadores e financeiros"]}},451:e=>{e.exports={en:["change interval watermark visibility"],pt:["alterar a visibilidade da marca d'água do intervalo"]}},66307:e=>{e.exports={en:["change last day change visibility"],pt:["alterar visibilidade da mudança do último dia"]}},91873:e=>{e.exports={en:["change legend background transparency"],pt:["mudar a transparência do fundo da legenda"]}},14246:e=>{e.exports={en:["change legend background visibility"],pt:["alterar a visibilidade do fundo da legenda"]}},88640:e=>{e.exports={en:["change line color"],pt:["alterar a cor da linha"]}},28818:e=>{e.exports={en:["change line style"],pt:["Mudar Estilo da Linha"]}},41837:e=>{e.exports={en:["change line price source"],pt:["alterar a linha do preço fonte"]}},48339:e=>{e.exports={en:["change line width"],pt:["alterar a espessura da linha"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],pt:["alterar a visibilidade dos botões do painel"]}},52203:e=>{e.exports={en:["change pane separators color"],pt:["mudar a cor dos divisores do painel"]}},38730:e=>{e.exports={en:["change post market color"],pt:["alterar cor do pós-mercado"]}},28075:e=>{e.exports={en:["change post market line color"], -pt:["alterar cor da linha do pós-mercado"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],pt:["mudar a visibilidade das linhas de preço pré/pós mercado"]}},44371:e=>{e.exports={en:["change pre market color"],pt:["alterar cor do pré-mercado"]}},96114:e=>{e.exports={en:["change pre market line color"],pt:["alterar a cor da linha do pré-mercado"]}},69814:e=>{e.exports={en:["change previous close price line color"],pt:["alterar cor da linha do preço do fechamento anterior"]}},13660:e=>{e.exports={en:["change previous close price line width"],pt:["alterar largura da linha do preço do fechamento anterior"]}},87861:e=>{e.exports={en:["change price line color"],pt:["alterar cor da linha de preço"]}},29353:e=>{e.exports={en:["change price line width"],pt:["alterar largura da linha de preço"]}},16241:e=>{e.exports={en:["change range bars style"],pt:["alterar o estilo do range de barras"]}},65821:e=>{e.exports={en:["change range thin bars"],pt:["alterar o intervalo da espessura das barras"]}},75487:e=>{e.exports={en:["change renko wick down color"],pt:["mudar a cor da parte inferior do pavio renko"]}},92277:e=>{e.exports={en:["change renko wick up color"],pt:["mudar a cor da parte superior pavio renko"]}},79604:e=>{e.exports={en:["change renko wick visibility"],pt:["mudar a visibilidade do pavio renko"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],pt:["alterar a visibilidade da marca d'água da reprodução"]}},82946:e=>{e.exports={en:["change right margin"],pt:["alterar margem direita"]}},79545:e=>{e.exports={en:["change right margin percentage"],pt:["alterar a porcentagem da margem direita"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],pt:["alterar visibilidade da marca d'água do ticker"]}},78995:e=>{e.exports={en:["change symbol watermark color"],pt:["alterar a cor da marca d'água do símbolo"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],pt:["alterar visibilidade da marca d'água do símbolo"]}},88167:e=>{e.exports={en:["change symbol description visibility"],pt:["mudar a visibilidade da descrição do símbolo"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],pt:["alterar a descrição do símbolo visibilidade da marca d'água"]}},12050:e=>{e.exports={en:["change symbol field visibility"],pt:["alterar a visibilidade do campo do símbolo"]}},46066:e=>{e.exports={en:["change symbol last value mode"],pt:["alterar o modo do último valor do símbolo"]}},902:e=>{e.exports={en:["change symbol legend format"],pt:["alterar formato da legenda do símbolo"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],pt:["alterar salvar a posição da borda esquerda do gráfico ao alterar o intervalo"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],pt:["alterar a visibilidade dos botões de modos de escala"]}},76131:e=>{e.exports={en:["change scales text color"],pt:["alterar a cor do texto da escala"]}},27792:e=>{e.exports={en:["change scales font size"], -pt:["altera a fonte do texto da escala"]}},94997:e=>{e.exports={en:["change scales lines color"],pt:["alterar a cor da linha da escala"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],pt:["alterar visibilidade dos intervalos de sessões"]}},28175:e=>{e.exports={en:["change sessions breaks width"],pt:["alterar a largura dos intervalos de sessões"]}},33895:e=>{e.exports={en:["change sessions breaks color"],pt:["alterar a cor dos intervalos de sessões"]}},21641:e=>{e.exports={en:["change sessions breaks style"],pt:["alterar o estilo dos intervalos de sessões"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],pt:["alterar a exibição dos preços reais na escala de preços (em vez do preço Heiken-Ashi)"]}},60834:e=>{e.exports={en:["change thin bars"],pt:["alterar a espessura da barra"]}},39754:e=>{e.exports={en:["change time hours format"],pt:["alterar formato das horas do horário"]}},74883:e=>{e.exports={en:["change top margin"],pt:["alterar margem superior"]}},51250:e=>{e.exports={en:["change unit label visibility"],pt:["alterar a visibilidade das legendas das unidades"]}},71805:e=>{e.exports={en:["change vert grid lines color"],pt:["alterar a cor das linhas verticais da grade"]}},96201:e=>{e.exports={en:["change volume values visibility"],pt:["alterar a visibilidade dos valores do volume"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],pt:["alterar a cor da borda superior de {candleType}"]}},36697:e=>{e.exports={en:["change {candleType} up color"],pt:["alterar a cor da parte superior de {candleType}"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],pt:["alterar a cor da parte inferior do pavil de {candleType}"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],pt:["alterar a cor da parte superior do pavil de {candleType}"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],pt:["alterar a visibilidade do pavil de {candleType}"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],pt:["alterar visibilidade do corpo de {candleType}"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],pt:["alterar a visibildiade da borda de {candleType}"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],pt:["alterar a cor da borda inferior de {candleType}"]}},64571:e=>{e.exports={en:["change {candleType} down color"],pt:["alterar a cor da parte inferior de {candleType}"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],pt:["alterar a cor da parte inferior da borda da barra de {chartType}"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],pt:["alterar a cor da parte superior da borda da barra de {chartType}"]}},5012:e=>{e.exports={en:["change {chartType} down color"],pt:["alterar a cor da parte inferior de {chartType}"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],pt:["alterar a cor da parte superior da borda da barra projetada de {chartType}"]}},72545:e=>{e.exports={ -en:["change {chartType} projection bar down color"],pt:["alterar a cor da parte inferior da barra projetada de {chartType}"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],pt:["alterar a cor da parte superior da barra projetada de {chartType}"]}},6970:e=>{e.exports={en:["change {chartType} up color"],pt:["alterar a cor da parte superior de {chartType}"]}},66110:e=>{e.exports={en:["change {inputName} property"],pt:["alterar propriedade de {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],pt:["ajustar dados de dividendos"]}},1433:e=>{e.exports={en:["adjust for contract changes"],pt:["ajustes para mudanças no contrato"]}},92598:e=>{e.exports={en:["hollow candles"],pt:["candles vazios"]}},57243:e=>{e.exports={en:["range","ranges"]}},70282:e=>{e.exports={en:["renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],pt:["ativar gaps de inatividade"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],pt:["usar a liquidação como fechamento no intervalo diário"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],pt:["{value} decimal","{value} decimais"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/pt.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/pt.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..5e0eb940 --- /dev/null +++ b/charting_library/bundles/pt.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,8 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:e=>{e.exports={en:["bars"],pt:["barras"]}},31882:e=>{e.exports={en:["12-hours"],pt:["12 horas"]}},5797:e=>{e.exports={en:["24-hours"],pt:["24 horas"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],pt:["Colorir barra de acordo com o fechamento anterior"]}},23739:e=>{e.exports={en:["Canvas"]}},24197:e=>{e.exports={en:["Center"],pt:["Centro"]}},15153:e=>{e.exports={en:["Chart basic styles"],pt:["Estilos básico do gráfico"]}},45639:e=>{e.exports={en:["Chart values"],pt:["Valores do gráfico"]}},84831:e=>{e.exports={en:["Close line"],pt:["Linha de fechamento"]}},74622:e=>{e.exports={en:["Crosshair"],pt:["Mira"]}},81849:e=>{e.exports={en:["Currency"],pt:["Moeda"]}},3015:e=>{e.exports={en:["Currency and Unit"],pt:["Moeda e Unidade"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],pt:["Ajustar dados de dividendos"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],pt:["Ajustes para mudanças no contrato"]}},36620:e=>{e.exports={en:["Alerts"],pt:["Alertas"]}},68650:e=>{e.exports={en:["Average close"],pt:["Média de fechamento"]}},27567:e=>{e.exports={en:["Bottom"],pt:["Em baixo"]}},3159:e=>{e.exports={en:["Bottom line"],pt:["Linha de base"]}},74406:e=>{e.exports={en:["Body"],pt:["Corpo"]}},333:e=>{e.exports={en:["Borders"],pt:["Contorno"]}},79468:e=>{e.exports={en:["Background"],pt:["Fundo"]}},10842:e=>{e.exports={en:["Bar change values"],pt:["Variação de valores de barra"]}},70817:e=>{e.exports={en:["Bar change color based on value"]}},28975:e=>{e.exports={en:["Base level"],pt:["Nível base"]}},76473:e=>{e.exports={en:["Bid and ask"],pt:["Bid e ask"]}},32744:e=>{e.exports={en:["Buttons"],pt:["Botões"]}},68662:e=>{e.exports={en:["Grid lines"],pt:["Linhas de grade"]}},17611:e=>{e.exports={en:["Down bars"],pt:["Barras Baixistas"]}},23743:e=>{e.exports={en:["Down color"],pt:["Cor de baixa"]}},48225:e=>{e.exports={en:["Data modification"],pt:["Modificação dos dados"]}},84838:e=>{e.exports={en:["Date format"],pt:["Formato da data"]}},42357:e=>{e.exports={en:["Day of week on labels"],pt:["Dias da semana na legenda"]}},16564:e=>{e.exports={en:["Default"],pt:["Padrão"]}},78734:e=>{e.exports={en:["Description"],pt:["Descrição"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],pt:["Exibir gaps de inatividade"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],pt:["Histórico do horário de negociação eletrônica"]}},69808:e=>{e.exports={en:["Events"],pt:["Eventos"]}},41129:e=>{e.exports={en:["Fill"]}},61112:e=>{e.exports={en:["Fill top area"],pt:["Preencher área superior"]}},73185:e=>{e.exports={en:["Fill bottom area"],pt:["Preencher área inferior"]}},3160:e=>{e.exports={en:["Horizontal"]}},61900:e=>{e.exports={en:["Horz only"],pt:["Somente Horz"]}},14180:e=>{e.exports={en:["High and low"],pt:["Máxima e Mínima"]}},56359:e=>{e.exports={en:["High line"],pt:["Linha de máxima"]}},47326:e=>{e.exports={en:["Integer"],pt:["Inteiro"]}},17854:e=>{e.exports={en:["Interval"],pt:["Tempo Gráfico"]}},84549:e=>{ +e.exports={en:["Indicators"],pt:["Indicadores"]}},78082:e=>{e.exports={en:["Indicators and financials"],pt:["Indicadores e dados financeiros"]}},21429:e=>{e.exports={en:["Inputs"],pt:["Valores"]}},25765:e=>{e.exports={en:["Open market status"],pt:["Status de abertura do mercado"]}},34579:e=>{e.exports={en:["Low line"],pt:["Linha de mínima"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"],pt:["Descrição longa"]}},72423:e=>{e.exports={en:["Last day change values"],pt:["Valores da mudança do último dia"]}},11626:e=>{e.exports={en:["Left"],pt:["Esquerda"]}},56982:e=>{e.exports={en:["Lines"],pt:["Linhas"]}},8249:e=>{e.exports={en:["Money"],pt:["Dinheiro"]}},70937:e=>{e.exports={en:["Margins"],pt:["Margens"]}},68833:e=>{e.exports={en:["Middle"],pt:["No meio"]}},58589:e=>{e.exports={en:["No overlapping labels"],pt:["Sem legendas sobrepostas"]}},60798:e=>{e.exports={en:["None"],pt:["Nenhum"]}},51019:e=>{e.exports={en:["Navigation"],pt:["Navegação"]}},99709:e=>{e.exports={en:["Name"],pt:["Nome"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],pt:["Salvar a posição da borda esquerda do gráfico ao alterar o intervalo"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],pt:["Modos de escala (A e L)"]}},93968:e=>{e.exports={en:["Scales"],pt:["Escalas"]}},90275:e=>{e.exports={en:["Scales and lines"],pt:["Escalas e linhas"]}},30042:e=>{e.exports={en:["Scales placement"],pt:["Fixação da escala"]}},28715:e=>{e.exports={en:["Status line"],pt:["Linha de Status"]}},95481:e=>{e.exports={en:["Symbol"],pt:["Símbolo"]}},53263:e=>{e.exports={en:["Pane"],pt:["Painel"]}},82894:e=>{e.exports={en:["Pane separators"],pt:["Divisores de painel"]}},86235:e=>{e.exports={en:["Percentage"],pt:["Porcentagem"]}},94408:e=>{e.exports={en:["Pips"]}},60904:e=>{e.exports={en:["Pre/post market"],pt:["Pré/pós mercado"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],pt:["Histórico das horas pré/pós mercado"]}},59766:e=>{e.exports={en:["Precision"],pt:["Precisão"]}},83811:e=>{e.exports={en:["Previous day close"],pt:["Fechamento dia anterior"]}},35082:e=>{e.exports={en:["Price Scale"],pt:["Escala de Preço"]}},27632:e=>{e.exports={en:["Price and percentage value"],pt:["Preço e valor percentual"]}},62142:e=>{e.exports={en:["Price labels & lines"],pt:["Legendas & linhas de preços"]}},84684:e=>{e.exports={en:["Price source"],pt:["Fonte de preço"]}},73466:e=>{e.exports={en:["Projection up bars"],pt:["Barras de projeção altista"]}},77430:e=>{e.exports={en:["Projection candles"],pt:["Candles de projeção"]}},88367:e=>{e.exports={en:["Projection down bars"],pt:["Barras de projeção baixista"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],pt:["Preços reais na escala de preços (em vez do preço Heikin-Ashi)"]}},50421:e=>{e.exports={en:["Right"],pt:["Direita"]}},62532:e=>{e.exports={en:["Right Margin"],pt:["Margem Direita"]}},41571:e=>{e.exports={en:["Watermark"],pt:["Marca d'água"]}},32163:e=>{e.exports={en:["Wick"],pt:["Pavio"]}},97118:e=>{e.exports={ +en:["Top"],pt:["Em cima"]}},89349:e=>{e.exports={en:["Top line"],pt:["Linha de topo"]}},70320:e=>{e.exports={en:["Text"],pt:["Texto"]}},25485:e=>{e.exports={en:["Text alignment"],pt:["Alinhamento do texto"]}},67781:e=>{e.exports={en:["Text orientation"],pt:["Orientação do Texto"]}},20215:e=>{e.exports={en:["Thin bars"],pt:["Espessura das barras"]}},70198:e=>{e.exports={en:["Title"],pt:["Título"]}},29854:e=>{e.exports={en:["Titles"],pt:["Títulos"]}},5791:e=>{e.exports={en:["Ticker"],pt:["Cotação"]}},16816:e=>{e.exports={en:["Ticker and description"],pt:["Ticker e descrição"]}},24821:e=>{e.exports={en:["Ticks"]}},93965:e=>{e.exports={en:["Time Scale"],pt:["Escala de Tempo"]}},5591:e=>{e.exports={en:["Time hours format"],pt:["Formato das horas"]}},77073:e=>{e.exports={en:["Timezone"],pt:["Fuso Horário"]}},76495:e=>{e.exports={en:["Trading"],pt:["Trade"]}},33564:e=>{e.exports={en:["Unit"],pt:["Unidade"]}},23091:e=>{e.exports={en:["Up color"],pt:["Cor de alta"]}},36957:e=>{e.exports={en:["Up bars"],pt:["Barras Altistas"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],pt:["Usar a liquidação como fechamento no intervalo diário"]}},37644:e=>{e.exports={en:["Volume"]}},51514:e=>{e.exports={en:["Value"],pt:["Valor"]}},31218:e=>{e.exports={en:["Value according to scale"],pt:["Valor de acordo com a escala"]}},60092:e=>{e.exports={en:["Values"],pt:["Valores"]}},83594:e=>{e.exports={en:["Vert and horz"],pt:["Vert e horz"]}},8402:e=>{e.exports={en:["Vert only"],pt:["Somente Vert"]}},69526:e=>{e.exports={en:["Vertical"]}},21105:e=>{e.exports={en:["candle"],pt:["vela"]}},27068:e=>{e.exports={en:["change HLC bars"],pt:["alterar barras HLC"]}},21201:e=>{e.exports={en:["change HLC bars color"],pt:["alterar cores das barras HLC"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],pt:["alterar a visibilidade dos botões de navegação"]}},96227:e=>{e.exports={en:["change open market status visibility"],pt:["alterar a visibilidade do status de abertura do mercado"]}},43231:e=>{e.exports={en:["change average close price line width"],pt:["alterar espessura da linha do preço médio de fechamento"]}},47026:e=>{e.exports={en:["change average close price line color"],pt:["alterar cor da linha do preço médio de fechamento"]}},29281:e=>{e.exports={en:["change area fill color"],pt:["alterar a cor de preenchimento da área"]}},27059:e=>{e.exports={en:["change area line visibility"],pt:["Alterar visibilidade da linha de área"]}},89346:e=>{e.exports={en:["change area line width"],pt:["alterar a espessura da linha de área"]}},29605:e=>{e.exports={en:["change area line color"],pt:["alterar a cor da linha de área"]}},56864:e=>{e.exports={en:["change area line style"],pt:["alterar o estilo da linha da área"]}},4640:e=>{e.exports={en:["change area price source"],pt:["alterar a área do preço fonte"]}},98407:e=>{e.exports={en:["change ask line color"],pt:["alterar cor da linha de venda"]}},42190:e=>{e.exports={en:["change base level"],pt:["mudar o nível base"]}},71785:e=>{e.exports={en:["change baseline bottom line color"], +pt:["alterar a cor da base da linha de base"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],pt:["mudar o estilo de linha de base do resultado"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],pt:["alterar a largura da base da linha de base"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],pt:["alterar a cor de preenchimento da base da área da linha de base"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],pt:["alterar a cor de preenchimento do topo da área da linha de base"]}},68609:e=>{e.exports={en:["change baseline price source"],pt:["alterar da linha de base do preço fonte"]}},69044:e=>{e.exports={en:["change baseline top line color"],pt:["alterar a cor da linha de base"]}},4425:e=>{e.exports={en:["change baseline top line style"],pt:["alterar o estilo da linha superior da linha de base"]}},68197:e=>{e.exports={en:["change baseline top line width"],pt:["alterar a lagura do topo da linha de base"]}},33464:e=>{e.exports={en:["change bar up color"],pt:["alterar cor da barra para cima"]}},14201:e=>{e.exports={en:["change bar change down color"]}},30196:e=>{e.exports={en:["change bar change up color"]}},27426:e=>{e.exports={en:["change bar change visibility"],pt:["alterar a visibilidade da variação da barra"]}},59622:e=>{e.exports={en:["change bar down color"],pt:["alterar cor da barra para baixo"]}},17919:e=>{e.exports={en:["change bid line color"],pt:["alterar a cor da linha de compra"]}},32094:e=>{e.exports={en:["change bottom margin"],pt:["alterar margem inferior"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],pt:["mudar a visibilidade das legendas da moeda e das unidades"]}},64003:e=>{e.exports={en:["change currency label visibility"],pt:["alterar a visibilidade da legenda da moeda"]}},42803:e=>{e.exports={en:["change chart background color"],pt:["alterar a cor de fundo do gráfico"]}},41382:e=>{e.exports={en:["change chart background type"],pt:["alterar o tipo de fundo do gráfico"]}},79637:e=>{e.exports={en:["change chart values visibility"],pt:["alterar a visibilidade dos valores do gráfico"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],pt:["alterar cor da barra baseado no fechamento anterior"]}},88324:e=>{e.exports={en:["change column up color"],pt:["alterar a cor da coluna acima"]}},93890:e=>{e.exports={en:["change column down color"],pt:["alterar a cor da coluna abaixo"]}},4727:e=>{e.exports={en:["change column price source"],pt:["alterar preço fonte da coluna"]}},50544:e=>{e.exports={en:["change crosshair width"],pt:["alterar a largura da mira"]}},92885:e=>{e.exports={en:["change crosshair color"],pt:["alterar a cor da mira"]}},68418:e=>{e.exports={en:["change crosshair style"],pt:["alterar o estilo da mira"]}},43109:e=>{e.exports={en:["change date format"],pt:["alterar formato da data"]}},30418:e=>{e.exports={en:["change day of week on labels"],pt:["mudar dia da semana na legenda"]}},82063:e=>{e.exports={en:["change decimal places"],pt:["alterar casas decimais"]}},45397:e=>{ +e.exports={en:["change extended hours color"],pt:["alterar cor das horas estendidas"]}},47393:e=>{e.exports={en:["change electronic trading hours"],pt:["alterar horário de negociação eletrônica"]}},73844:e=>{e.exports={en:["change grid lines visibility"],pt:["alterar a visibilidade das linhas da grade"]}},61407:e=>{e.exports={en:["change high and low price line color"],pt:["alterar cor da linha de preço máximo e mínimo"]}},39581:e=>{e.exports={en:["change high and low price line width"],pt:["alterar espessura da linha de preço máximo e mínimo"]}},6026:e=>{e.exports={en:["change high-low body color"],pt:["alterar a cor do corpo do máx-min"]}},73021:e=>{e.exports={en:["change high-low body visibility"],pt:["alterar a visibilidade do corpo do máx-min"]}},46844:e=>{e.exports={en:["change high-low border color"],pt:["alterar a cor da borda do máx-min"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],pt:["alterar a visibilidade das bordas do máx-min"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],pt:["alterar a visibilidade da legenda do máx-min"]}},56961:e=>{e.exports={en:["change high-low labels color"],pt:["alterar a cor da legenda do máx-min"]}},21133:e=>{e.exports={en:["change horz grid lines color"],pt:["alterar a cor das linhas horizontais da grade"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],pt:["alterar a visibilidade dos títulos dos indicadores"]}},49583:e=>{e.exports={en:["change indicator values visibility"],pt:["alterar a visibilidade dos valores dos indicadores"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],pt:["Alterar a visibilidade dos inputs do indicador"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],pt:["alterar a visibilidade dos nomes dos rótulos dos valores de indicadores e finanças"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],pt:["alterar a visibilidade dos rótulos de valores de indicadores e financeiros"]}},451:e=>{e.exports={en:["change interval watermark visibility"],pt:["alterar a visibilidade da marca d'água do intervalo"]}},66307:e=>{e.exports={en:["change last day change visibility"],pt:["alterar visibilidade da mudança do último dia"]}},91873:e=>{e.exports={en:["change legend background transparency"],pt:["mudar a transparência do fundo da legenda"]}},14246:e=>{e.exports={en:["change legend background visibility"],pt:["alterar a visibilidade do fundo da legenda"]}},88640:e=>{e.exports={en:["change line color"],pt:["alterar a cor da linha"]}},28818:e=>{e.exports={en:["change line style"],pt:["Mudar Estilo da Linha"]}},41837:e=>{e.exports={en:["change line price source"],pt:["alterar a linha do preço fonte"]}},48339:e=>{e.exports={en:["change line width"],pt:["alterar a espessura da linha"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],pt:["alterar a visibilidade dos botões do painel"]}},52203:e=>{e.exports={en:["change pane separators color"],pt:["mudar a cor dos divisores do painel"]}},38730:e=>{e.exports={ +en:["change post market color"],pt:["alterar cor do pós-mercado"]}},28075:e=>{e.exports={en:["change post market line color"],pt:["alterar cor da linha do pós-mercado"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],pt:["mudar a visibilidade das linhas de preço pré/pós mercado"]}},44371:e=>{e.exports={en:["change pre market color"],pt:["alterar cor do pré-mercado"]}},96114:e=>{e.exports={en:["change pre market line color"],pt:["alterar a cor da linha do pré-mercado"]}},69814:e=>{e.exports={en:["change previous close price line color"],pt:["alterar cor da linha do preço do fechamento anterior"]}},13660:e=>{e.exports={en:["change previous close price line width"],pt:["alterar largura da linha do preço do fechamento anterior"]}},87861:e=>{e.exports={en:["change price line color"],pt:["alterar cor da linha de preço"]}},29353:e=>{e.exports={en:["change price line width"],pt:["alterar largura da linha de preço"]}},16241:e=>{e.exports={en:["change range bars style"],pt:["alterar o estilo do range de barras"]}},65821:e=>{e.exports={en:["change range thin bars"],pt:["alterar o intervalo da espessura das barras"]}},75487:e=>{e.exports={en:["change renko wick down color"],pt:["mudar a cor da parte inferior do pavio renko"]}},92277:e=>{e.exports={en:["change renko wick up color"],pt:["mudar a cor da parte superior pavio renko"]}},79604:e=>{e.exports={en:["change renko wick visibility"],pt:["mudar a visibilidade do pavio renko"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],pt:["alterar a visibilidade da marca d'água da reprodução"]}},82946:e=>{e.exports={en:["change right margin"],pt:["alterar margem direita"]}},79545:e=>{e.exports={en:["change right margin percentage"],pt:["alterar a porcentagem da margem direita"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],pt:["alterar visibilidade da marca d'água do ticker"]}},78995:e=>{e.exports={en:["change symbol watermark color"],pt:["alterar a cor da marca d'água do símbolo"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],pt:["alterar visibilidade da marca d'água do símbolo"]}},88167:e=>{e.exports={en:["change symbol description visibility"],pt:["mudar a visibilidade da descrição do símbolo"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],pt:["alterar a descrição do símbolo visibilidade da marca d'água"]}},12050:e=>{e.exports={en:["change symbol field visibility"],pt:["alterar a visibilidade do campo do símbolo"]}},46066:e=>{e.exports={en:["change symbol last value mode"],pt:["alterar o modo do último valor do símbolo"]}},902:e=>{e.exports={en:["change symbol legend format"],pt:["alterar formato da legenda do símbolo"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],pt:["alterar salvar a posição da borda esquerda do gráfico ao alterar o intervalo"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],pt:["alterar a visibilidade dos botões de modos de escala"]}},76131:e=>{e.exports={ +en:["change scales text color"],pt:["alterar a cor do texto da escala"]}},27792:e=>{e.exports={en:["change scales font size"],pt:["altera a fonte do texto da escala"]}},94997:e=>{e.exports={en:["change scales lines color"],pt:["alterar a cor da linha da escala"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],pt:["alterar visibilidade dos intervalos de sessões"]}},28175:e=>{e.exports={en:["change sessions breaks width"],pt:["alterar a largura dos intervalos de sessões"]}},33895:e=>{e.exports={en:["change sessions breaks color"],pt:["alterar a cor dos intervalos de sessões"]}},21641:e=>{e.exports={en:["change sessions breaks style"],pt:["alterar o estilo dos intervalos de sessões"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],pt:["alterar a exibição dos preços reais na escala de preços (em vez do preço Heiken-Ashi)"]}},60834:e=>{e.exports={en:["change thin bars"],pt:["alterar a espessura da barra"]}},39754:e=>{e.exports={en:["change time hours format"],pt:["alterar formato das horas do horário"]}},74883:e=>{e.exports={en:["change top margin"],pt:["alterar margem superior"]}},51250:e=>{e.exports={en:["change unit label visibility"],pt:["alterar a visibilidade das legendas das unidades"]}},28142:e=>{e.exports={en:["change use custom bar change colors"]}},71805:e=>{e.exports={en:["change vert grid lines color"],pt:["alterar a cor das linhas verticais da grade"]}},96201:e=>{e.exports={en:["change volume values visibility"],pt:["alterar a visibilidade dos valores do volume"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],pt:["alterar a cor da borda superior de {candleType}"]}},36697:e=>{e.exports={en:["change {candleType} up color"],pt:["alterar a cor da parte superior de {candleType}"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],pt:["alterar a cor da parte inferior do pavil de {candleType}"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],pt:["alterar a cor da parte superior do pavil de {candleType}"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],pt:["alterar a visibilidade do pavil de {candleType}"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],pt:["alterar visibilidade do corpo de {candleType}"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],pt:["alterar a visibildiade da borda de {candleType}"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],pt:["alterar a cor da borda inferior de {candleType}"]}},64571:e=>{e.exports={en:["change {candleType} down color"],pt:["alterar a cor da parte inferior de {candleType}"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],pt:["alterar a cor da parte inferior da borda da barra de {chartType}"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],pt:["alterar a cor da parte superior da borda da barra de {chartType}"]}},5012:e=>{e.exports={en:["change {chartType} down color"],pt:["alterar a cor da parte inferior de {chartType}"]}}, +42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],pt:["alterar a cor da parte superior da borda da barra projetada de {chartType}"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],pt:["alterar a cor da parte inferior da barra projetada de {chartType}"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],pt:["alterar a cor da parte superior da barra projetada de {chartType}"]}},6970:e=>{e.exports={en:["change {chartType} up color"],pt:["alterar a cor da parte superior de {chartType}"]}},66110:e=>{e.exports={en:["change {inputName} property"],pt:["alterar propriedade de {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],pt:["ajustar dados de dividendos"]}},1433:e=>{e.exports={en:["adjust for contract changes"],pt:["ajustes para mudanças no contrato"]}},92598:e=>{e.exports={en:["hollow candles"],pt:["candles vazios"]}},57243:e=>{e.exports={en:["range","ranges"]}},70282:e=>{e.exports={en:["renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],pt:["ativar gaps de inatividade"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],pt:["usar a liquidação como fechamento no intervalo diário"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],pt:["{value} decimal","{value} decimais"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/ru.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/ru.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index d23a2730..00000000 --- a/charting_library/bundles/ru.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,8 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:e=>{e.exports={en:["bars"],ru:["бары"]}},31882:e=>{e.exports={en:["12-hours"],ru:["12 часов"]}},5797:e=>{e.exports={en:["24-hours"],ru:["24 часа"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],ru:["Цвет баров основан на цене предыдущего закрытия"]}},23739:e=>{e.exports={en:["Canvas"],ru:["Оформление"]}},24197:e=>{e.exports={en:["Center"],ru:["По центру"]}},15153:e=>{e.exports={en:["Chart basic styles"],ru:["Основной стиль графика"]}},45639:e=>{e.exports={en:["Chart values"],ru:["Значения графика"]}},84831:e=>{e.exports={en:["Close line"],ru:["Линия закрытия"]}},74622:e=>{e.exports={en:["Crosshair"],ru:["Перекрестие"]}},81849:e=>{e.exports={en:["Currency"],ru:["Валюта"]}},3015:e=>{e.exports={en:["Currency and Unit"],ru:["Валюта и единица"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],ru:["Корректировать данные на дивиденды"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],ru:["Корректировать с учётом изменений контрактов"]}},36620:e=>{e.exports={en:["Alerts"],ru:["Оповещения"]}},68650:e=>{e.exports={en:["Average close"],ru:["Средняя цена закрытия"]}},27567:e=>{e.exports={en:["Bottom"],ru:["Снизу"]}},3159:e=>{e.exports={en:["Bottom line"],ru:["Нижняя линия"]}},74406:e=>{e.exports={en:["Body"],ru:["Тело"]}},333:e=>{e.exports={en:["Borders"],ru:["Границы"]}},79468:e=>{e.exports={en:["Background"],ru:["Фон"]}},10842:e=>{e.exports={en:["Bar change values"],ru:["Значения изменения бара"]}},28975:e=>{e.exports={en:["Base level"],ru:["Уровень базовой линии"]}},76473:e=>{e.exports={en:["Bid and ask"],ru:["Цены покупки и продажи"]}},32744:e=>{e.exports={en:["Buttons"],ru:["Кнопки"]}},68662:e=>{e.exports={en:["Grid lines"],ru:["Линии сетки"]}},17611:e=>{e.exports={en:["Down bars"],ru:["Нисходящие бары"]}},23743:e=>{e.exports={en:["Down color"],ru:["Цвет падения"]}},48225:e=>{e.exports={en:["Data modification"],ru:["Настройка данных"]}},84838:e=>{e.exports={en:["Date format"],ru:["Формат даты"]}},42357:e=>{e.exports={en:["Day of week on labels"],ru:["День недели на метках"]}},16564:e=>{e.exports={en:["Default"],ru:["Не задано"]}},78734:e=>{e.exports={en:["Description"],ru:["Описание"]}},67036:e=>{e.exports={en:["Display inactivity gaps"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],ru:["Фон электронной торговой сессии"]}},69808:e=>{e.exports={en:["Events"],ru:["События"]}},41129:e=>{e.exports={en:["Fill"],ru:["Заливка"]}},61112:e=>{e.exports={en:["Fill top area"],ru:["Заливка области сверху"]}},73185:e=>{e.exports={en:["Fill bottom area"],ru:["Заливка области снизу"]}},3160:e=>{e.exports={en:["Horizontal"],ru:["Горизонтальная"]}},61900:e=>{e.exports={en:["Horz only"],ru:["Горизонтальные"]}},14180:e=>{e.exports={en:["High and low"],ru:["Макс. и мин."]}},56359:e=>{e.exports={en:["High line"],ru:["Линия максимума"]}},47326:e=>{e.exports={en:["Integer"],ru:["Целое число"]}},17854:e=>{e.exports={en:["Interval"],ru:["Интервал"]}},84549:e=>{e.exports={en:["Indicators"],ru:["Индикаторы"]}}, -78082:e=>{e.exports={en:["Indicators and financials"],ru:["Индикаторы и отчётность"]}},21429:e=>{e.exports={en:["Inputs"],ru:["Аргументы"]}},25765:e=>{e.exports={en:["Open market status"],ru:["Cтатус Рынок открыт"]}},34579:e=>{e.exports={en:["Low line"],ru:["Линия минимума"]}},14876:e=>{e.exports={en:["Logo"],ru:["Лого"]}},89315:e=>{e.exports={en:["Long Description"],ru:["Подробное описание"]}},72423:e=>{e.exports={en:["Last day change values"],ru:["Значения изменения последнего дня"]}},11626:e=>{e.exports={en:["Left"],ru:["Слева"]}},56982:e=>{e.exports={en:["Lines"],ru:["Линии"]}},8249:e=>{e.exports={en:["Money"],ru:["Деньги"]}},70937:e=>{e.exports={en:["Margins"],ru:["Поля"]}},68833:e=>{e.exports={en:["Middle"],ru:["По центру"]}},58589:e=>{e.exports={en:["No overlapping labels"],ru:["Не перекрывать метки"]}},60798:e=>{e.exports={en:["None"],ru:["Без цвета"]}},51019:e=>{e.exports={en:["Navigation"],ru:["Навигация"]}},99709:e=>{e.exports={en:["Name"],ru:["Название"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],ru:["Сохранить положение левого края графика при смене интервала"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],ru:["Режимы шкалы (А и Л)"]}},93968:e=>{e.exports={en:["Scales"],ru:["Шкалы"]}},90275:e=>{e.exports={en:["Scales and lines"],ru:["Шкалы и линии"]}},30042:e=>{e.exports={en:["Scales placement"],ru:["Расположение шкал"]}},28715:e=>{e.exports={en:["Status line"],ru:["Строка статуса"]}},95481:e=>{e.exports={en:["Symbol"],ru:["Инструмент"]}},53263:e=>{e.exports={en:["Pane"],ru:["Панель"]}},82894:e=>{e.exports={en:["Pane separators"],ru:["Разделители панелей"]}},86235:e=>{e.exports={en:["Percentage"],ru:["Проценты"]}},94408:e=>{e.exports={en:["Pips"],ru:["Пипсы"]}},60904:e=>{e.exports={en:["Pre/post market"],ru:["Пре-/постмаркет"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],ru:["Фон пре-/постмаркета"]}},59766:e=>{e.exports={en:["Precision"],ru:["Точность"]}},83811:e=>{e.exports={en:["Previous day close"],ru:["Цена закрытия предыдущего дня"]}},35082:e=>{e.exports={en:["Price Scale"],ru:["Ценовая шкала"]}},27632:e=>{e.exports={en:["Price and percentage value"],ru:["Цена и процентное значение"]}},62142:e=>{e.exports={en:["Price labels & lines"],ru:["Метки и линии цены"]}},84684:e=>{e.exports={en:["Price source"],ru:["На основе"]}},73466:e=>{e.exports={en:["Projection up bars"],ru:["Проекция восходящего бара"]}},77430:e=>{e.exports={en:["Projection candles"],ru:["Проекция свечей"]}},88367:e=>{e.exports={en:["Projection down bars"],ru:["Проекция нисходящего бара"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],ru:["Реальные цены на ценовой шкале (вместо значений Хейкен Аши)"]}},50421:e=>{e.exports={en:["Right"],ru:["Справа"]}},62532:e=>{e.exports={en:["Right Margin"],ru:["Отступ справа"]}},41571:e=>{e.exports={en:["Watermark"],ru:["Водяной знак"]}},32163:e=>{e.exports={en:["Wick"],ru:["Фитиль"]}},97118:e=>{e.exports={en:["Top"],ru:["Сверху"]}},89349:e=>{e.exports={en:["Top line"],ru:["Верхняя линия"]}}, -70320:e=>{e.exports={en:["Text"],ru:["Текст"]}},25485:e=>{e.exports={en:["Text alignment"],ru:["Выравнивание текста"]}},67781:e=>{e.exports={en:["Text orientation"],ru:["Ориентация текста"]}},20215:e=>{e.exports={en:["Thin bars"],ru:["Тонкие бары"]}},70198:e=>{e.exports={en:["Title"],ru:["Заголовок"]}},29854:e=>{e.exports={en:["Titles"],ru:["Заголовки"]}},5791:e=>{e.exports={en:["Ticker"],ru:["Тикер"]}},16816:e=>{e.exports={en:["Ticker and description"],ru:["Тикер и описание"]}},24821:e=>{e.exports={en:["Ticks"],ru:["Тики"]}},93965:e=>{e.exports={en:["Time Scale"],ru:["Временная шкала"]}},5591:e=>{e.exports={en:["Time hours format"],ru:["Формат времени"]}},77073:e=>{e.exports={en:["Timezone"],ru:["Часовой пояс"]}},76495:e=>{e.exports={en:["Trading"],ru:["Торговля"]}},33564:e=>{e.exports={en:["Unit"],ru:["Единица"]}},23091:e=>{e.exports={en:["Up color"],ru:["Цвет роста"]}},36957:e=>{e.exports={en:["Up bars"],ru:["Восходящие бары"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],ru:["Использовать расчётную цену для цены закрытия на дневном интервале"]}},37644:e=>{e.exports={en:["Volume"],ru:["Объём"]}},51514:e=>{e.exports={en:["Value"],ru:["Значение"]}},31218:e=>{e.exports={en:["Value according to scale"],ru:["Последнее значение в соответствии со шкалой"]}},60092:e=>{e.exports={en:["Values"],ru:["Значения"]}},83594:e=>{e.exports={en:["Vert and horz"],ru:["Все"]}},8402:e=>{e.exports={en:["Vert only"],ru:["Вертикальные"]}},69526:e=>{e.exports={en:["Vertical"],ru:["Вертикальная"]}},21105:e=>{e.exports={en:["candle"],ru:["свечи"]}},27068:e=>{e.exports={en:["change HLC bars"],ru:["изменение баров МАКС-МИН-ЗАКР"]}},21201:e=>{e.exports={en:["change HLC bars color"],ru:["изменение цвета баров HLC"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],ru:["изменение видимости навигационных кнопок"]}},96227:e=>{e.exports={en:["change open market status visibility"],ru:["изменение видимости статуса: Рынок открыт"]}},43231:e=>{e.exports={en:["change average close price line width"],ru:["изменение ширины линии средней цены закрытия"]}},47026:e=>{e.exports={en:["change average close price line color"],ru:["изменение цвета линии средней цены закрытия"]}},29281:e=>{e.exports={en:["change area fill color"],ru:["изменение цвета заливки области"]}},27059:e=>{e.exports={en:["change area line visibility"],ru:["изменение видимости линии области"]}},89346:e=>{e.exports={en:["change area line width"],ru:["изменение толщины линии области"]}},29605:e=>{e.exports={en:["change area line color"],ru:["изменение цвета линии области"]}},56864:e=>{e.exports={en:["change area line style"],ru:["изменение стиля линии области"]}},4640:e=>{e.exports={en:["change area price source"],ru:["изменение источника ценовых данных области"]}},98407:e=>{e.exports={en:["change ask line color"],ru:["изменение цвета линии цены покупки"]}},42190:e=>{e.exports={en:["change base level"],ru:["изменение уровня базовой линии"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],ru:["изменение цвета нижней линии базовой линии"]} -},85684:e=>{e.exports={en:["change baseline bottom line style"],ru:["изменение стиля нижней линии базовой линии"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],ru:["изменение толщины нижней линии базовой линии"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],ru:["изменение цвета заливки нижней области базовой линии"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],ru:["изменение цвета заливки верхней области базовой линии"]}},68609:e=>{e.exports={en:["change baseline price source"],ru:["изменение источника ценовых данных базовой линии"]}},69044:e=>{e.exports={en:["change baseline top line color"],ru:["изменение цвета верней линии базовой линии"]}},4425:e=>{e.exports={en:["change baseline top line style"],ru:["изменение стиля верхней линии базовой линии"]}},68197:e=>{e.exports={en:["change baseline top line width"],ru:["изменение ширины верней линии базовой линии"]}},33464:e=>{e.exports={en:["change bar up color"],ru:["изменение цвета восходящих баров"]}},27426:e=>{e.exports={en:["change bar change visibility"],ru:["изменение видимости значения изменения бара"]}},59622:e=>{e.exports={en:["change bar down color"],ru:["изменение цвета нисходящих баров"]}},17919:e=>{e.exports={en:["change bid line color"],ru:["изменение цвета линии цены продажи"]}},32094:e=>{e.exports={en:["change bottom margin"],ru:["изменение отступа снизу"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],ru:["изменение видимости меток единиц и валюты"]}},64003:e=>{e.exports={en:["change currency label visibility"],ru:["изменение видимости метки валюты"]}},42803:e=>{e.exports={en:["change chart background color"],ru:["изменение цвета фона графика"]}},41382:e=>{e.exports={en:["change chart background type"],ru:["изменение типа фона графика"]}},79637:e=>{e.exports={en:["change chart values visibility"],ru:["изменение видимости значений графика"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],ru:["изменение цвета баров на основе цен предыдущего закрытия"]}},88324:e=>{e.exports={en:["change column up color"],ru:["изменение цвета восходящих столбцов"]}},93890:e=>{e.exports={en:["change column down color"],ru:["изменение цвета нисходящих столбцов"]}},4727:e=>{e.exports={en:["change column price source"],ru:["изменение источника ценовых данных столбцов"]}},50544:e=>{e.exports={en:["change crosshair width"],ru:["изменение толщины перекрестия"]}},92885:e=>{e.exports={en:["change crosshair color"],ru:["изменение цвета перекрестия"]}},68418:e=>{e.exports={en:["change crosshair style"],ru:["изменение стиля перекрестия"]}},43109:e=>{e.exports={en:["change date format"],ru:["изменение формата даты"]}},30418:e=>{e.exports={en:["change day of week on labels"],ru:["изменение дня недели на метках"]}},82063:e=>{e.exports={en:["change decimal places"],ru:["изменение десятичных знаков"]}},45397:e=>{e.exports={en:["change extended hours color"],ru:["изменение цвета расширенных сессий"]}},47393:e=>{e.exports={en:["change electronic trading hours"], -ru:["изменение электронной торговой сессии"]}},73844:e=>{e.exports={en:["change grid lines visibility"],ru:["изменение видимости линий сетки"]}},61407:e=>{e.exports={en:["change high and low price line color"],ru:["изменение цвета линий макс. и мин. цен"]}},39581:e=>{e.exports={en:["change high and low price line width"],ru:["изменение ширины линий макс. и мин. цен"]}},6026:e=>{e.exports={en:["change high-low body color"],ru:["изменение цвета тела МАКС-МИН"]}},73021:e=>{e.exports={en:["change high-low body visibility"],ru:["изменение видимости тела МАКС-МИН"]}},46844:e=>{e.exports={en:["change high-low border color"],ru:["изменение цвета границ МАКС-МИН"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],ru:["изменение видимости границ МАКС-МИН"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],ru:["изменение видимости меток МАКС-МИН"]}},56961:e=>{e.exports={en:["change high-low labels color"],ru:["изменение цвета меток МАКС-МИН"]}},21133:e=>{e.exports={en:["change horz grid lines color"],ru:["изменение цвета гориз. линий сетки"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],ru:["изменение видимости названий индикаторов"]}},49583:e=>{e.exports={en:["change indicator values visibility"],ru:["изменение видимости значений индикаторов"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],ru:["изменение видимости аргументов индикатора"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],ru:["изменение видимости меток названий индикаторов и отчетности"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],ru:["изменение видимости меток значений индикаторов и отчетности"]}},451:e=>{e.exports={en:["change interval watermark visibility"],ru:["изменение видимости водяного знака интервала"]}},66307:e=>{e.exports={en:["change last day change visibility"],ru:["изменение видимости значений изменения последнего дня"]}},91873:e=>{e.exports={en:["change legend background transparency"],ru:["изменение прозрачности фона легенды"]}},14246:e=>{e.exports={en:["change legend background visibility"],ru:["изменение видимости фона легенды"]}},88640:e=>{e.exports={en:["change line color"],ru:["изменение цвета линии"]}},28818:e=>{e.exports={en:["change line style"],ru:["изменение стиля линии"]}},41837:e=>{e.exports={en:["change line price source"],ru:["изменение источника ценовых данных линии"]}},48339:e=>{e.exports={en:["change line width"],ru:["изменение толщины линии"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],ru:["изменение видимости кнопок панели"]}},52203:e=>{e.exports={en:["change pane separators color"],ru:["изменение цвета разделителей панелей"]}},38730:e=>{e.exports={en:["change post market color"],ru:["изменение цвета постмаркета"]}},28075:e=>{e.exports={en:["change post market line color"],ru:["изменение цвета линии постмаркета"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],ru:["изменение видимости линий цены пре-/постмаркета"]}},44371:e=>{e.exports={ -en:["change pre market color"],ru:["изменение цвета премаркета"]}},96114:e=>{e.exports={en:["change pre market line color"],ru:["изменение цвета линии премаркета"]}},69814:e=>{e.exports={en:["change previous close price line color"],ru:["изменение цвета линии цены предыдущего закрытия"]}},13660:e=>{e.exports={en:["change previous close price line width"],ru:["изменение толщины линии цены предыдущего закрытия"]}},87861:e=>{e.exports={en:["change price line color"],ru:["изменение цвета линии цены"]}},29353:e=>{e.exports={en:["change price line width"],ru:["изменение толщины линии цены"]}},16241:e=>{e.exports={en:["change range bars style"],ru:["изменение стиля Range баров"]}},65821:e=>{e.exports={en:["change range thin bars"],ru:["изменение тонких range баров"]}},75487:e=>{e.exports={en:["change renko wick down color"],ru:["изменение цвета фитиля нисходящих свечей на графике Ренко"]}},92277:e=>{e.exports={en:["change renko wick up color"],ru:["изменение цвета фитиля восходящих свечей на графике Ренко"]}},79604:e=>{e.exports={en:["change renko wick visibility"],ru:["изменение видимости фитиля свечей на графике Ренко"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],ru:["изменение видимости водяного знака симуляции"]}},82946:e=>{e.exports={en:["change right margin"],ru:["изменение отступа справа"]}},79545:e=>{e.exports={en:["change right margin percentage"],ru:["изменение отступа справа"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],ru:["изменение видимости водяного знака тикера символа"]}},78995:e=>{e.exports={en:["change symbol watermark color"],ru:["изменение цвета водяного знака инструмента"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],ru:["изменение видимости водяного знака инструмента"]}},88167:e=>{e.exports={en:["change symbol description visibility"],ru:["изменение видимости описания инструмента"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],ru:["изменение видимости водяного знака описания инструмента"]}},12050:e=>{e.exports={en:["change symbol field visibility"],ru:["изменение видимости поля символа"]}},46066:e=>{e.exports={en:["change symbol last value mode"],ru:["изменение режима последнего значения инструмента"]}},902:e=>{e.exports={en:["change symbol legend format"],ru:["изменение формата легенды символа"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],ru:["сохранение положения левого края графика при смене интервала"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],ru:["изменение видимости кнопок режимов шкалы"]}},76131:e=>{e.exports={en:["change scales text color"],ru:["изменение цвета текста на шкалах"]}},27792:e=>{e.exports={en:["change scales font size"],ru:["изменение размера шрифта на шкалах"]}},94997:e=>{e.exports={en:["change scales lines color"],ru:["изменение цвета линий шкал"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],ru:["изменение видимости границ сессий"]}},28175:e=>{e.exports={en:["change sessions breaks width"], -ru:["изменение толщины границ сессий"]}},33895:e=>{e.exports={en:["change sessions breaks color"],ru:["изменение цвета границ сессий"]}},21641:e=>{e.exports={en:["change sessions breaks style"],ru:["изменение стиля границ сессий"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],ru:["изменение отображения реальных цен на ценовой шкале (вместо значений Хейкен Аши)"]}},60834:e=>{e.exports={en:["change thin bars"],ru:["изменение тонких баров"]}},39754:e=>{e.exports={en:["change time hours format"],ru:["изменение формата времени"]}},74883:e=>{e.exports={en:["change top margin"],ru:["изменение отступа сверху"]}},51250:e=>{e.exports={en:["change unit label visibility"],ru:["изменение видимости метки единицы"]}},71805:e=>{e.exports={en:["change vert grid lines color"],ru:["изменение цвета верт. линий сетки"]}},96201:e=>{e.exports={en:["change volume values visibility"],ru:["изменение видимости значений объема"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],ru:["изменение цвета границы восходящих свечей: {candleType}"]}},36697:e=>{e.exports={en:["change {candleType} up color"],ru:["изменение цвета тела восходящих свечей: {candleType}"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],ru:["изменение цвета фитиля нисходящих свечей: {candleType}"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],ru:["изменение цвета фитиля восходящих свечей: {candleType}"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],ru:["изменение видимости фитиля {candleType}"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],ru:["изменение видимости тела свечи: {candleType}"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],ru:["изменение видимости границы {candleType}"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],ru:["изменение цвета границы нисходящих свечей: {candleType}"]}},64571:e=>{e.exports={en:["change {candleType} down color"],ru:["изменение цвета тела нисходящих свечей: {candleType}"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],ru:["изменение цвета границы нисходящих баров {chartType}"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],ru:["изменение цвета границы восходящих баров {chartType}"]}},5012:e=>{e.exports={en:["change {chartType} down color"],ru:["изменение цвета нисходящих баров графика {chartType}"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],ru:["изменение цвета границы проекции восходящих баров {chartType}"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],ru:["изменение цвета проекции нисходящих баров {chartType}"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],ru:["изменение цвета проекции восходящих баров {chartType}"]}},6970:e=>{e.exports={en:["change {chartType} up color"],ru:["изменение цвета восходящих баров графика {chartType}"]}},66110:e=>{e.exports={en:["change {inputName} property"], -ru:["изменение свойств {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],ru:["корректировку данных на дивиденды"]}},1433:e=>{e.exports={en:["adjust for contract changes"],ru:["корректировку с учетом изменений контрактов"]}},92598:e=>{e.exports={en:["hollow candles"],ru:["Пустые свечи"]}},57243:e=>{e.exports={en:["range","ranges"],ru:["range","range","range","range"]}},70282:e=>{e.exports={en:["renko"],ru:["Ренко"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],ru:["использование расчетной цены для цены закрытия на дневном интервале"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],ru:["{value} десятичный знак","{value} десятичных знака","{value} десятичных знаков","{value} десятичных знаков"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/ru.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/ru.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..c70c7e1a --- /dev/null +++ b/charting_library/bundles/ru.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,8 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:e=>{e.exports={en:["bars"],ru:["бары"]}},31882:e=>{e.exports={en:["12-hours"],ru:["12 часов"]}},5797:e=>{e.exports={en:["24-hours"],ru:["24 часа"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],ru:["Цвет баров основан на цене предыдущего закрытия"]}},23739:e=>{e.exports={en:["Canvas"],ru:["Оформление"]}},24197:e=>{e.exports={en:["Center"],ru:["По центру"]}},15153:e=>{e.exports={en:["Chart basic styles"],ru:["Основной стиль графика"]}},45639:e=>{e.exports={en:["Chart values"],ru:["Значения графика"]}},84831:e=>{e.exports={en:["Close line"],ru:["Линия закрытия"]}},74622:e=>{e.exports={en:["Crosshair"],ru:["Перекрестие"]}},81849:e=>{e.exports={en:["Currency"],ru:["Валюта"]}},3015:e=>{e.exports={en:["Currency and Unit"],ru:["Валюта и единица"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],ru:["Корректировать данные на дивиденды"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],ru:["Корректировать с учётом изменений контрактов"]}},36620:e=>{e.exports={en:["Alerts"],ru:["Оповещения"]}},68650:e=>{e.exports={en:["Average close"],ru:["Средняя цена закрытия"]}},27567:e=>{e.exports={en:["Bottom"],ru:["Снизу"]}},3159:e=>{e.exports={en:["Bottom line"],ru:["Нижняя линия"]}},74406:e=>{e.exports={en:["Body"],ru:["Тело"]}},333:e=>{e.exports={en:["Borders"],ru:["Границы"]}},79468:e=>{e.exports={en:["Background"],ru:["Фон"]}},10842:e=>{e.exports={en:["Bar change values"],ru:["Значения изменения бара"]}},70817:e=>{e.exports={en:["Bar change color based on value"]}},28975:e=>{e.exports={en:["Base level"],ru:["Уровень базовой линии"]}},76473:e=>{e.exports={en:["Bid and ask"],ru:["Цены покупки и продажи"]}},32744:e=>{e.exports={en:["Buttons"],ru:["Кнопки"]}},68662:e=>{e.exports={en:["Grid lines"],ru:["Линии сетки"]}},17611:e=>{e.exports={en:["Down bars"],ru:["Нисходящие бары"]}},23743:e=>{e.exports={en:["Down color"],ru:["Цвет падения"]}},48225:e=>{e.exports={en:["Data modification"],ru:["Настройка данных"]}},84838:e=>{e.exports={en:["Date format"],ru:["Формат даты"]}},42357:e=>{e.exports={en:["Day of week on labels"],ru:["День недели на метках"]}},16564:e=>{e.exports={en:["Default"],ru:["Не задано"]}},78734:e=>{e.exports={en:["Description"],ru:["Описание"]}},67036:e=>{e.exports={en:["Display inactivity gaps"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],ru:["Фон электронной торговой сессии"]}},69808:e=>{e.exports={en:["Events"],ru:["События"]}},41129:e=>{e.exports={en:["Fill"],ru:["Заливка"]}},61112:e=>{e.exports={en:["Fill top area"],ru:["Заливка области сверху"]}},73185:e=>{e.exports={en:["Fill bottom area"],ru:["Заливка области снизу"]}},3160:e=>{e.exports={en:["Horizontal"],ru:["Горизонтальная"]}},61900:e=>{e.exports={en:["Horz only"],ru:["Горизонтальные"]}},14180:e=>{e.exports={en:["High and low"],ru:["Макс. и мин."]}},56359:e=>{e.exports={en:["High line"],ru:["Линия максимума"]}},47326:e=>{e.exports={en:["Integer"],ru:["Целое число"]}},17854:e=>{e.exports={en:["Interval"],ru:["Интервал"]}}, +84549:e=>{e.exports={en:["Indicators"],ru:["Индикаторы"]}},78082:e=>{e.exports={en:["Indicators and financials"],ru:["Индикаторы и отчётность"]}},21429:e=>{e.exports={en:["Inputs"],ru:["Аргументы"]}},25765:e=>{e.exports={en:["Open market status"],ru:["Cтатус Рынок открыт"]}},34579:e=>{e.exports={en:["Low line"],ru:["Линия минимума"]}},14876:e=>{e.exports={en:["Logo"],ru:["Лого"]}},89315:e=>{e.exports={en:["Long Description"],ru:["Подробное описание"]}},72423:e=>{e.exports={en:["Last day change values"],ru:["Значения изменения последнего дня"]}},11626:e=>{e.exports={en:["Left"],ru:["Слева"]}},56982:e=>{e.exports={en:["Lines"],ru:["Линии"]}},8249:e=>{e.exports={en:["Money"],ru:["Деньги"]}},70937:e=>{e.exports={en:["Margins"],ru:["Поля"]}},68833:e=>{e.exports={en:["Middle"],ru:["По центру"]}},58589:e=>{e.exports={en:["No overlapping labels"],ru:["Не перекрывать метки"]}},60798:e=>{e.exports={en:["None"],ru:["Без цвета"]}},51019:e=>{e.exports={en:["Navigation"],ru:["Навигация"]}},99709:e=>{e.exports={en:["Name"],ru:["Название"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],ru:["Сохранить положение левого края графика при смене интервала"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],ru:["Режимы шкалы (А и Л)"]}},93968:e=>{e.exports={en:["Scales"],ru:["Шкалы"]}},90275:e=>{e.exports={en:["Scales and lines"],ru:["Шкалы и линии"]}},30042:e=>{e.exports={en:["Scales placement"],ru:["Расположение шкал"]}},28715:e=>{e.exports={en:["Status line"],ru:["Строка статуса"]}},95481:e=>{e.exports={en:["Symbol"],ru:["Инструмент"]}},53263:e=>{e.exports={en:["Pane"],ru:["Панель"]}},82894:e=>{e.exports={en:["Pane separators"],ru:["Разделители панелей"]}},86235:e=>{e.exports={en:["Percentage"],ru:["Проценты"]}},94408:e=>{e.exports={en:["Pips"],ru:["Пипсы"]}},60904:e=>{e.exports={en:["Pre/post market"],ru:["Пре-/постмаркет"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],ru:["Фон пре-/постмаркета"]}},59766:e=>{e.exports={en:["Precision"],ru:["Точность"]}},83811:e=>{e.exports={en:["Previous day close"],ru:["Цена закрытия предыдущего дня"]}},35082:e=>{e.exports={en:["Price Scale"],ru:["Ценовая шкала"]}},27632:e=>{e.exports={en:["Price and percentage value"],ru:["Цена и процентное значение"]}},62142:e=>{e.exports={en:["Price labels & lines"],ru:["Метки и линии цены"]}},84684:e=>{e.exports={en:["Price source"],ru:["На основе"]}},73466:e=>{e.exports={en:["Projection up bars"],ru:["Проекция восходящего бара"]}},77430:e=>{e.exports={en:["Projection candles"],ru:["Проекция свечей"]}},88367:e=>{e.exports={en:["Projection down bars"],ru:["Проекция нисходящего бара"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],ru:["Реальные цены на ценовой шкале (вместо значений Хейкен Аши)"]}},50421:e=>{e.exports={en:["Right"],ru:["Справа"]}},62532:e=>{e.exports={en:["Right Margin"],ru:["Отступ справа"]}},41571:e=>{e.exports={en:["Watermark"],ru:["Водяной знак"]}},32163:e=>{e.exports={en:["Wick"],ru:["Фитиль"]}},97118:e=>{e.exports={en:["Top"],ru:["Сверху"]}}, +89349:e=>{e.exports={en:["Top line"],ru:["Верхняя линия"]}},70320:e=>{e.exports={en:["Text"],ru:["Текст"]}},25485:e=>{e.exports={en:["Text alignment"],ru:["Выравнивание текста"]}},67781:e=>{e.exports={en:["Text orientation"],ru:["Ориентация текста"]}},20215:e=>{e.exports={en:["Thin bars"],ru:["Тонкие бары"]}},70198:e=>{e.exports={en:["Title"],ru:["Заголовок"]}},29854:e=>{e.exports={en:["Titles"],ru:["Заголовки"]}},5791:e=>{e.exports={en:["Ticker"],ru:["Тикер"]}},16816:e=>{e.exports={en:["Ticker and description"],ru:["Тикер и описание"]}},24821:e=>{e.exports={en:["Ticks"],ru:["Тики"]}},93965:e=>{e.exports={en:["Time Scale"],ru:["Временная шкала"]}},5591:e=>{e.exports={en:["Time hours format"],ru:["Формат времени"]}},77073:e=>{e.exports={en:["Timezone"],ru:["Часовой пояс"]}},76495:e=>{e.exports={en:["Trading"],ru:["Торговля"]}},33564:e=>{e.exports={en:["Unit"],ru:["Единица"]}},23091:e=>{e.exports={en:["Up color"],ru:["Цвет роста"]}},36957:e=>{e.exports={en:["Up bars"],ru:["Восходящие бары"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],ru:["Использовать расчётную цену для цены закрытия на дневном интервале"]}},37644:e=>{e.exports={en:["Volume"],ru:["Объём"]}},51514:e=>{e.exports={en:["Value"],ru:["Значение"]}},31218:e=>{e.exports={en:["Value according to scale"],ru:["Последнее значение в соответствии со шкалой"]}},60092:e=>{e.exports={en:["Values"],ru:["Значения"]}},83594:e=>{e.exports={en:["Vert and horz"],ru:["Все"]}},8402:e=>{e.exports={en:["Vert only"],ru:["Вертикальные"]}},69526:e=>{e.exports={en:["Vertical"],ru:["Вертикальная"]}},21105:e=>{e.exports={en:["candle"],ru:["свечи"]}},27068:e=>{e.exports={en:["change HLC bars"],ru:["изменение баров МАКС-МИН-ЗАКР"]}},21201:e=>{e.exports={en:["change HLC bars color"],ru:["изменение цвета баров HLC"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],ru:["изменение видимости навигационных кнопок"]}},96227:e=>{e.exports={en:["change open market status visibility"],ru:["изменение видимости статуса: Рынок открыт"]}},43231:e=>{e.exports={en:["change average close price line width"],ru:["изменение ширины линии средней цены закрытия"]}},47026:e=>{e.exports={en:["change average close price line color"],ru:["изменение цвета линии средней цены закрытия"]}},29281:e=>{e.exports={en:["change area fill color"],ru:["изменение цвета заливки области"]}},27059:e=>{e.exports={en:["change area line visibility"],ru:["изменение видимости линии области"]}},89346:e=>{e.exports={en:["change area line width"],ru:["изменение толщины линии области"]}},29605:e=>{e.exports={en:["change area line color"],ru:["изменение цвета линии области"]}},56864:e=>{e.exports={en:["change area line style"],ru:["изменение стиля линии области"]}},4640:e=>{e.exports={en:["change area price source"],ru:["изменение источника ценовых данных области"]}},98407:e=>{e.exports={en:["change ask line color"],ru:["изменение цвета линии цены покупки"]}},42190:e=>{e.exports={en:["change base level"],ru:["изменение уровня базовой линии"]}},71785:e=>{e.exports={ +en:["change baseline bottom line color"],ru:["изменение цвета нижней линии базовой линии"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],ru:["изменение стиля нижней линии базовой линии"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],ru:["изменение толщины нижней линии базовой линии"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],ru:["изменение цвета заливки нижней области базовой линии"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],ru:["изменение цвета заливки верхней области базовой линии"]}},68609:e=>{e.exports={en:["change baseline price source"],ru:["изменение источника ценовых данных базовой линии"]}},69044:e=>{e.exports={en:["change baseline top line color"],ru:["изменение цвета верней линии базовой линии"]}},4425:e=>{e.exports={en:["change baseline top line style"],ru:["изменение стиля верхней линии базовой линии"]}},68197:e=>{e.exports={en:["change baseline top line width"],ru:["изменение ширины верней линии базовой линии"]}},33464:e=>{e.exports={en:["change bar up color"],ru:["изменение цвета восходящих баров"]}},14201:e=>{e.exports={en:["change bar change down color"]}},30196:e=>{e.exports={en:["change bar change up color"]}},27426:e=>{e.exports={en:["change bar change visibility"],ru:["изменение видимости значения изменения бара"]}},59622:e=>{e.exports={en:["change bar down color"],ru:["изменение цвета нисходящих баров"]}},17919:e=>{e.exports={en:["change bid line color"],ru:["изменение цвета линии цены продажи"]}},32094:e=>{e.exports={en:["change bottom margin"],ru:["изменение отступа снизу"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],ru:["изменение видимости меток единиц и валюты"]}},64003:e=>{e.exports={en:["change currency label visibility"],ru:["изменение видимости метки валюты"]}},42803:e=>{e.exports={en:["change chart background color"],ru:["изменение цвета фона графика"]}},41382:e=>{e.exports={en:["change chart background type"],ru:["изменение типа фона графика"]}},79637:e=>{e.exports={en:["change chart values visibility"],ru:["изменение видимости значений графика"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],ru:["изменение цвета баров на основе цен предыдущего закрытия"]}},88324:e=>{e.exports={en:["change column up color"],ru:["изменение цвета восходящих столбцов"]}},93890:e=>{e.exports={en:["change column down color"],ru:["изменение цвета нисходящих столбцов"]}},4727:e=>{e.exports={en:["change column price source"],ru:["изменение источника ценовых данных столбцов"]}},50544:e=>{e.exports={en:["change crosshair width"],ru:["изменение толщины перекрестия"]}},92885:e=>{e.exports={en:["change crosshair color"],ru:["изменение цвета перекрестия"]}},68418:e=>{e.exports={en:["change crosshair style"],ru:["изменение стиля перекрестия"]}},43109:e=>{e.exports={en:["change date format"],ru:["изменение формата даты"]}},30418:e=>{e.exports={en:["change day of week on labels"],ru:["изменение дня недели на метках"]}},82063:e=>{e.exports={en:["change decimal places"], +ru:["изменение десятичных знаков"]}},45397:e=>{e.exports={en:["change extended hours color"],ru:["изменение цвета расширенных сессий"]}},47393:e=>{e.exports={en:["change electronic trading hours"],ru:["изменение электронной торговой сессии"]}},73844:e=>{e.exports={en:["change grid lines visibility"],ru:["изменение видимости линий сетки"]}},61407:e=>{e.exports={en:["change high and low price line color"],ru:["изменение цвета линий макс. и мин. цен"]}},39581:e=>{e.exports={en:["change high and low price line width"],ru:["изменение ширины линий макс. и мин. цен"]}},6026:e=>{e.exports={en:["change high-low body color"],ru:["изменение цвета тела МАКС-МИН"]}},73021:e=>{e.exports={en:["change high-low body visibility"],ru:["изменение видимости тела МАКС-МИН"]}},46844:e=>{e.exports={en:["change high-low border color"],ru:["изменение цвета границ МАКС-МИН"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],ru:["изменение видимости границ МАКС-МИН"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],ru:["изменение видимости меток МАКС-МИН"]}},56961:e=>{e.exports={en:["change high-low labels color"],ru:["изменение цвета меток МАКС-МИН"]}},21133:e=>{e.exports={en:["change horz grid lines color"],ru:["изменение цвета гориз. линий сетки"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],ru:["изменение видимости названий индикаторов"]}},49583:e=>{e.exports={en:["change indicator values visibility"],ru:["изменение видимости значений индикаторов"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],ru:["изменение видимости аргументов индикатора"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],ru:["изменение видимости меток названий индикаторов и отчетности"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],ru:["изменение видимости меток значений индикаторов и отчетности"]}},451:e=>{e.exports={en:["change interval watermark visibility"],ru:["изменение видимости водяного знака интервала"]}},66307:e=>{e.exports={en:["change last day change visibility"],ru:["изменение видимости значений изменения последнего дня"]}},91873:e=>{e.exports={en:["change legend background transparency"],ru:["изменение прозрачности фона легенды"]}},14246:e=>{e.exports={en:["change legend background visibility"],ru:["изменение видимости фона легенды"]}},88640:e=>{e.exports={en:["change line color"],ru:["изменение цвета линии"]}},28818:e=>{e.exports={en:["change line style"],ru:["изменение стиля линии"]}},41837:e=>{e.exports={en:["change line price source"],ru:["изменение источника ценовых данных линии"]}},48339:e=>{e.exports={en:["change line width"],ru:["изменение толщины линии"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],ru:["изменение видимости кнопок панели"]}},52203:e=>{e.exports={en:["change pane separators color"],ru:["изменение цвета разделителей панелей"]}},38730:e=>{e.exports={en:["change post market color"],ru:["изменение цвета постмаркета"]}},28075:e=>{e.exports={en:["change post market line color"], +ru:["изменение цвета линии постмаркета"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],ru:["изменение видимости линий цены пре-/постмаркета"]}},44371:e=>{e.exports={en:["change pre market color"],ru:["изменение цвета премаркета"]}},96114:e=>{e.exports={en:["change pre market line color"],ru:["изменение цвета линии премаркета"]}},69814:e=>{e.exports={en:["change previous close price line color"],ru:["изменение цвета линии цены предыдущего закрытия"]}},13660:e=>{e.exports={en:["change previous close price line width"],ru:["изменение толщины линии цены предыдущего закрытия"]}},87861:e=>{e.exports={en:["change price line color"],ru:["изменение цвета линии цены"]}},29353:e=>{e.exports={en:["change price line width"],ru:["изменение толщины линии цены"]}},16241:e=>{e.exports={en:["change range bars style"],ru:["изменение стиля Range баров"]}},65821:e=>{e.exports={en:["change range thin bars"],ru:["изменение тонких range баров"]}},75487:e=>{e.exports={en:["change renko wick down color"],ru:["изменение цвета фитиля нисходящих свечей на графике Ренко"]}},92277:e=>{e.exports={en:["change renko wick up color"],ru:["изменение цвета фитиля восходящих свечей на графике Ренко"]}},79604:e=>{e.exports={en:["change renko wick visibility"],ru:["изменение видимости фитиля свечей на графике Ренко"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],ru:["изменение видимости водяного знака симуляции"]}},82946:e=>{e.exports={en:["change right margin"],ru:["изменение отступа справа"]}},79545:e=>{e.exports={en:["change right margin percentage"],ru:["изменение отступа справа"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],ru:["изменение видимости водяного знака тикера символа"]}},78995:e=>{e.exports={en:["change symbol watermark color"],ru:["изменение цвета водяного знака инструмента"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],ru:["изменение видимости водяного знака инструмента"]}},88167:e=>{e.exports={en:["change symbol description visibility"],ru:["изменение видимости описания инструмента"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],ru:["изменение видимости водяного знака описания инструмента"]}},12050:e=>{e.exports={en:["change symbol field visibility"],ru:["изменение видимости поля символа"]}},46066:e=>{e.exports={en:["change symbol last value mode"],ru:["изменение режима последнего значения инструмента"]}},902:e=>{e.exports={en:["change symbol legend format"],ru:["изменение формата легенды символа"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],ru:["сохранение положения левого края графика при смене интервала"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],ru:["изменение видимости кнопок режимов шкалы"]}},76131:e=>{e.exports={en:["change scales text color"],ru:["изменение цвета текста на шкалах"]}},27792:e=>{e.exports={en:["change scales font size"],ru:["изменение размера шрифта на шкалах"]}},94997:e=>{e.exports={en:["change scales lines color"], +ru:["изменение цвета линий шкал"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],ru:["изменение видимости границ сессий"]}},28175:e=>{e.exports={en:["change sessions breaks width"],ru:["изменение толщины границ сессий"]}},33895:e=>{e.exports={en:["change sessions breaks color"],ru:["изменение цвета границ сессий"]}},21641:e=>{e.exports={en:["change sessions breaks style"],ru:["изменение стиля границ сессий"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],ru:["изменение отображения реальных цен на ценовой шкале (вместо значений Хейкен Аши)"]}},60834:e=>{e.exports={en:["change thin bars"],ru:["изменение тонких баров"]}},39754:e=>{e.exports={en:["change time hours format"],ru:["изменение формата времени"]}},74883:e=>{e.exports={en:["change top margin"],ru:["изменение отступа сверху"]}},51250:e=>{e.exports={en:["change unit label visibility"],ru:["изменение видимости метки единицы"]}},28142:e=>{e.exports={en:["change use custom bar change colors"]}},71805:e=>{e.exports={en:["change vert grid lines color"],ru:["изменение цвета верт. линий сетки"]}},96201:e=>{e.exports={en:["change volume values visibility"],ru:["изменение видимости значений объема"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],ru:["изменение цвета границы восходящих свечей: {candleType}"]}},36697:e=>{e.exports={en:["change {candleType} up color"],ru:["изменение цвета тела восходящих свечей: {candleType}"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],ru:["изменение цвета фитиля нисходящих свечей: {candleType}"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],ru:["изменение цвета фитиля восходящих свечей: {candleType}"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],ru:["изменение видимости фитиля {candleType}"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],ru:["изменение видимости тела свечи: {candleType}"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],ru:["изменение видимости границы {candleType}"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],ru:["изменение цвета границы нисходящих свечей: {candleType}"]}},64571:e=>{e.exports={en:["change {candleType} down color"],ru:["изменение цвета тела нисходящих свечей: {candleType}"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],ru:["изменение цвета границы нисходящих баров {chartType}"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],ru:["изменение цвета границы восходящих баров {chartType}"]}},5012:e=>{e.exports={en:["change {chartType} down color"],ru:["изменение цвета нисходящих баров графика {chartType}"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],ru:["изменение цвета границы проекции восходящих баров {chartType}"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],ru:["изменение цвета проекции нисходящих баров {chartType}"]}},85032:e=>{e.exports={ +en:["change {chartType} projection bar up color"],ru:["изменение цвета проекции восходящих баров {chartType}"]}},6970:e=>{e.exports={en:["change {chartType} up color"],ru:["изменение цвета восходящих баров графика {chartType}"]}},66110:e=>{e.exports={en:["change {inputName} property"],ru:["изменение свойств {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],ru:["корректировку данных на дивиденды"]}},1433:e=>{e.exports={en:["adjust for contract changes"],ru:["корректировку с учетом изменений контрактов"]}},92598:e=>{e.exports={en:["hollow candles"],ru:["Пустые свечи"]}},57243:e=>{e.exports={en:["range","ranges"],ru:["range","range","range","range"]}},70282:e=>{e.exports={en:["renko"],ru:["Ренко"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],ru:["использование расчетной цены для цены закрытия на дневном интервале"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],ru:["{value} десятичный знак","{value} десятичных знака","{value} десятичных знаков","{value} десятичных знаков"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/runtime.06e455b5bc27a2ed7f94.js b/charting_library/bundles/runtime.ee4cca641b446a77a6ee.js similarity index 98% rename from charting_library/bundles/runtime.06e455b5bc27a2ed7f94.js rename to charting_library/bundles/runtime.ee4cca641b446a77a6ee.js index 5e633eb5..dd94984f 100644 --- a/charting_library/bundles/runtime.06e455b5bc27a2ed7f94.js +++ b/charting_library/bundles/runtime.ee4cca641b446a77a6ee.js @@ -1,9 +1,9 @@ (()=>{"use strict";var e,a,c,d,f,b={},t={};function o(e){var a=t[e];if(void 0!==a)return a.exports;var c=t[e]={id:e,loaded:!1,exports:{}};return b[e].call(c.exports,c,c.exports,o),c.loaded=!0,c.exports}o.m=b,o.c=t,o._plural={ar:(e,a=6,c=(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11&&e%100<=99?4:5))=>null==e?0:+c,cs:(e,a=3,c=(1==e?0:e>=2&&e<=4?1:2))=>null==e?0:+c,ru:(e,a=3,c=(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2))=>null==e?0:+c,ro:(e,a=3,c=(1==e?0:e%100>19||e%100==0&&0!=e?2:1))=>null==e?0:+c,pl:(e,a=3,c=(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2))=>null==e?0:+c,pt:(e,a=2,c=1!=e)=>null==e?0:+c,de:(e,a=2,c=1!=e)=>null==e?0:+c,en:(e,a=2,c=1!=e)=>null==e?0:+c,es:(e,a=2,c=1!=e)=>null==e?0:+c,sv:(e,a=2,c=1!=e)=>null==e?0:+c,it:(e,a=2,c=1!=e)=>null==e?0:+c,tr:(e,a=2,c=1!=e)=>null==e?0:+c,el:(e,a=2,c=1!=e)=>null==e?0:+c,fr:(e,a=2,c=e>1)=>null==e?0:+c,fa:(e,a=1,c=0)=>null==e?0:+c,ja:(e,a=1,c=0)=>null==e?0:+c,ko:(e,a=1,c=0)=>null==e?0:+c,th:(e,a=1,c=0)=>null==e?0:+c,vi:(e,a=1,c=0)=>null==e?0:+c,zh:(e,a=1,c=0)=>null==e?0:+c,he_IL:(e,a=4,c=(1==e?0:2==e?1:e>10&&e%10==0?2:3))=>null==e?0:+c,ca_ES:(e,a=2,c=1!=e)=>null==e?0:+c,nl_NL:(e,a=2,c=1!=e)=>null==e?0:+c,hu_HU:(e,a=2,c=1!=e)=>null==e?0:+c,id_ID:(e,a=1,c=0)=>null==e?0:+c,ms_MY:(e,a=1,c=0)=>null==e?0:+c,zh_TW:(e,a=1,c=0)=>null==e?0:+c},e=[],o.O=(a,c,d,f)=>{if(!c){var b=1/0;for(r=0;r=f)&&Object.keys(o.O).every((e=>o.O[e](c[l])))?c.splice(l--,1):(t=!1,f0&&e[r-1][2]>f;r--)e[r]=e[r-1];e[r]=[c,d,f]},o.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return o.d(a,{a}),a},c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(e,d){if(1&d&&(e=this(e)),8&d)return e;if("object"==typeof e&&e){if(4&d&&e.__esModule)return e;if(16&d&&"function"==typeof e.then)return e}var f=Object.create(null);o.r(f);var b={};a=a||[null,c({}),c([]),c(c)];for(var t=2&d&&e;"object"==typeof t&&!~a.indexOf(t);t=c(t))Object.getOwnPropertyNames(t).forEach((a=>b[a]=()=>e[a]));return b.default=()=>e,o.d(f,b),f},o.d=(e,a)=>{for(var c in a)o.o(a,c)&&!o.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((a,c)=>(o.f[c](e,a),a)),[])), -o.u=e=>7617===e?"__LANG__.7617.cd80164477ae293d1bdf.js":8370===e?"__LANG__.8370.fa349b4816cd5b9bc50e.js":3721===e?"__LANG__.3721.cb0d7b01382649fffd1d.js":3581===e?"__LANG__.3581.29b14493cc3e702d776e.js":5121===e?"__LANG__.5121.a92442628878335f4f3c.js":7336===e?"__LANG__.7336.6e18afbcefc01fb0a06e.js":2346===e?"__LANG__.2346.a49a3f3441f33cfb055f.js":9520===e?"__LANG__.9520.56af53115bbb024475fe.js":91===e?"__LANG__.91.cfe4af4f43df761935ee.js":7871===e?"__LANG__.7871.59122d3f77e952e748d7.js":4040===e?"__LANG__.4040.6a01859316957dfa346e.js":8955===e?"__LANG__.8955.700afc0c6907cb35f040.js":2578===e?"__LANG__.2578.938cf92f5dab5e5b0f6a.js":3198===e?"__LANG__.3198.c73543d008f163aced66.js":3644===e?"__LANG__.3644.019797455a157bd8d965.js":1550===e?"__LANG__.1550.c851f7f3d80aa5a0a934.js":6342===e?"__LANG__.6342.85f957808125f840ce9a.js":8836===e?"__LANG__.8836.0ee8ffb3a9c55b7b58b3.js":4856===e?"__LANG__.4856.c3871a39af69453cb6ce.js":5234===e?"__LANG__.5234.986cc7933e7bf3aef5ec.js":2342===e?"__LANG__.2342.b15afe64e782db72472d.js":9426===e?"__LANG__.9426.516b9333f7265e656acf.js":6645===e?"__LANG__.6645.7ba6974e274efb237aba.js":3355===e?"__LANG__.3355.ac5731fdbc557b4fa953.js":3181===e?"__LANG__.3181.6f1f41b2f4a774e55fab.js":8896===e?"__LANG__.8896.55c7f87523b7cd780aed.js":9494===e?"__LANG__.9494.f0f29843a7ef74e68b5a.js":1427===e?"__LANG__.1427.108225f7c40f4967981f.js":7952===e?"__LANG__.7952.85afde6421df8ba2eb90.js":1308===e?"__LANG__.1308.bf60d54f92e58a11cef1.js":6760===e?"__LANG__.6760.f123afd5d94dec4ab450.js":6155===e?"__LANG__.6155.1bb6d590d58258e4ca2b.js":2303===e?"__LANG__.2303.b9f2005c3298b17e69c5.js":1432===e?"__LANG__.1432.16a1c5ab4a09534bf143.js":8763===e?"__LANG__.8763.1b022d608d6fadf0e635.js":7850===e?"__LANG__.7850.345c7f95940b47ec4aa3.js":7122===e?"__LANG__.7122.9f21877d4815945ac06f.js":4543===e?"__LANG__.4543.7f9d6f608dc178e710a6.js":5111===e?"__LANG__.5111.c4904e57d6f3d3bab2bf.js":5402===e?"__LANG__.5402.19446f1f611894261d5a.js":6290===e?"__LANG__.6290.a78fc99d10230f3f6323.js":8736===e?"__LANG__.8736.4e59a9d79d389b2f9ccd.js":7598===e?"__LANG__.7598.37348e19233483f5b004.js":3240===e?"__LANG__.3240.cbd133da26a90520ef36.js":4752===e?"__LANG__.4752.4b2e6ffeff801779d651.js":4109===e?"__LANG__.4109.f06cf21015312cc5fb37.js":1095===e?"__LANG__.1095.2b72aa95ba31c5a3e7d2.js":8975===e?"__LANG__.8975.32960d0fab142040a5de.js":3462===e?"__LANG__.3462.d46273e3a7aeebabb3ce.js":6778===e?"__LANG__.6778.7e992b7f13f1141f18e1.js":8622===e?"__LANG__.8622.0923d68d9f576c1c99b8.js":7629===e?"__LANG__.7629.f0fcaddae9863eeae12f.js":7328===e?"__LANG__.7328.846a89c55684c7825f53.js":6729===e?"__LANG__.6729.8f853252801947d589ee.js":8535===e?"__LANG__.8535.3d432e94419675297fed.js":5700===e?"__LANG__.5700.7faeb0b70cce839eea0c.js":1715===e?"__LANG__.1715.cdf667ccc2f352cc7781.js":1874===e?"__LANG__.1874.6736f182b5b04f0b0337.js":1629===e?"__LANG__.1629.ae7b8f399cea7d558be2.js":1861===e?"__LANG__.1861.7dfa9c241aa5b48b3e82.js":7037===e?"__LANG__.7037.07cb1c1fbb6b7560f350.js":({92:"chart-screenshot-hint",139:"get-error-card",319:"line-tool-table", +o.u=e=>7617===e?"__LANG__.7617.cd80164477ae293d1bdf.js":8370===e?"__LANG__.8370.fa349b4816cd5b9bc50e.js":3721===e?"__LANG__.3721.cb0d7b01382649fffd1d.js":3581===e?"__LANG__.3581.29b14493cc3e702d776e.js":5121===e?"__LANG__.5121.a92442628878335f4f3c.js":7336===e?"__LANG__.7336.6e18afbcefc01fb0a06e.js":2346===e?"__LANG__.2346.a49a3f3441f33cfb055f.js":9520===e?"__LANG__.9520.56af53115bbb024475fe.js":91===e?"__LANG__.91.cfe4af4f43df761935ee.js":7871===e?"__LANG__.7871.59122d3f77e952e748d7.js":4040===e?"__LANG__.4040.6a01859316957dfa346e.js":8955===e?"__LANG__.8955.700afc0c6907cb35f040.js":2578===e?"__LANG__.2578.938cf92f5dab5e5b0f6a.js":3198===e?"__LANG__.3198.c73543d008f163aced66.js":3644===e?"__LANG__.3644.019797455a157bd8d965.js":5418===e?"__LANG__.5418.a83f813002bd38e42f5c.js":6342===e?"__LANG__.6342.85f957808125f840ce9a.js":8836===e?"__LANG__.8836.0ee8ffb3a9c55b7b58b3.js":4856===e?"__LANG__.4856.c3871a39af69453cb6ce.js":5234===e?"__LANG__.5234.986cc7933e7bf3aef5ec.js":2342===e?"__LANG__.2342.b15afe64e782db72472d.js":9426===e?"__LANG__.9426.516b9333f7265e656acf.js":6645===e?"__LANG__.6645.7ba6974e274efb237aba.js":3355===e?"__LANG__.3355.ac5731fdbc557b4fa953.js":3181===e?"__LANG__.3181.6f1f41b2f4a774e55fab.js":8896===e?"__LANG__.8896.55c7f87523b7cd780aed.js":9494===e?"__LANG__.9494.f0f29843a7ef74e68b5a.js":1427===e?"__LANG__.1427.108225f7c40f4967981f.js":7952===e?"__LANG__.7952.85afde6421df8ba2eb90.js":1308===e?"__LANG__.1308.bf60d54f92e58a11cef1.js":6760===e?"__LANG__.6760.f123afd5d94dec4ab450.js":6155===e?"__LANG__.6155.1bb6d590d58258e4ca2b.js":2303===e?"__LANG__.2303.b9f2005c3298b17e69c5.js":1432===e?"__LANG__.1432.16a1c5ab4a09534bf143.js":8763===e?"__LANG__.8763.1b022d608d6fadf0e635.js":7850===e?"__LANG__.7850.345c7f95940b47ec4aa3.js":7122===e?"__LANG__.7122.9f21877d4815945ac06f.js":4543===e?"__LANG__.4543.7f9d6f608dc178e710a6.js":5111===e?"__LANG__.5111.c4904e57d6f3d3bab2bf.js":5402===e?"__LANG__.5402.19446f1f611894261d5a.js":6290===e?"__LANG__.6290.a78fc99d10230f3f6323.js":8736===e?"__LANG__.8736.4e59a9d79d389b2f9ccd.js":7598===e?"__LANG__.7598.37348e19233483f5b004.js":3240===e?"__LANG__.3240.cbd133da26a90520ef36.js":4752===e?"__LANG__.4752.4b2e6ffeff801779d651.js":4109===e?"__LANG__.4109.f06cf21015312cc5fb37.js":1095===e?"__LANG__.1095.2b72aa95ba31c5a3e7d2.js":8975===e?"__LANG__.8975.32960d0fab142040a5de.js":3462===e?"__LANG__.3462.d46273e3a7aeebabb3ce.js":6778===e?"__LANG__.6778.7e992b7f13f1141f18e1.js":8622===e?"__LANG__.8622.0923d68d9f576c1c99b8.js":7629===e?"__LANG__.7629.f0fcaddae9863eeae12f.js":7328===e?"__LANG__.7328.846a89c55684c7825f53.js":6729===e?"__LANG__.6729.8f853252801947d589ee.js":8535===e?"__LANG__.8535.3d432e94419675297fed.js":5700===e?"__LANG__.5700.7faeb0b70cce839eea0c.js":1715===e?"__LANG__.1715.cdf667ccc2f352cc7781.js":1874===e?"__LANG__.1874.6736f182b5b04f0b0337.js":1629===e?"__LANG__.1629.ae7b8f399cea7d558be2.js":1861===e?"__LANG__.1861.7dfa9c241aa5b48b3e82.js":7037===e?"__LANG__.7037.07cb1c1fbb6b7560f350.js":({92:"chart-screenshot-hint",139:"get-error-card",319:"line-tool-table", 341:"line-tool-schiff-pitchfork2",360:"demonstration-highlighter",380:"line-tool-price-note",507:"study-pane-views",569:"line-tool-arrow-mark",574:"line-tool-horizontal-ray",607:"study-property-pages-with-definitions",620:"tablecontext-menu",688:"line-tool-callout",731:"add-compare-dialog",906:"line-tool-fib-speed-resistance-fan",925:"line-tool-extended",961:"line-tool-path",1155:"line-tool-5points-pattern",1277:"line-tool-balloon",1282:"line-tool-vertical-line",1313:"line-tool-pitch-fan",1314:"line-tool-position",1455:"line-tool-date-and-price-range",1470:"line-tool-arrow-marker",1506:"line-tool-fib-timezone",1583:"lt-pane-views",1584:"context-menu-renderer",1713:"line-tool-sine-line",1754:"symbol-search-dialog",1859:"go-to-date-dialog-impl",1890:"line-tools-icons",1963:"line-tool-gann-complex",2050:"line-tool-parallel-channel",2077:"change-interval-dialog",2087:"line-tool-highlighter",2183:"study-inputs-pane-views",2232:"line-tool-order",2283:"line-tool-fib-channel",2306:"floating-toolbars",2312:"line-tool-text",2377:"hammerjs",2413:"custom-themes-api",2704:"currency-label-menu",2816:"line-tool-fib-circles",2878:"drawing-toolbar",2962:"chart-floating-tooltip",3005:"header-toolbar",3030:"new-confirm-inputs-dialog",3248:"line-tool-note",3314:"line-tool-fib-wedge",3378:"line-tool-head-and-shoulders",3383:"line-tool-triangle-pattern",3555:"price-scale-mode-buttons-renderer",3596:"general-property-page",3710:"line-tool-fib-speed-resistance-arcs",3723:"line-tool-fib-retracement",3866:"line-tool-poly-line",3945:"line-tool-projection",3952:"line-tool-risk-reward",3966:"line-tool-comment",4013:"custom-intervals-add-dialog",4015:"line-tool-rotated-rectangle",4079:"series-pane-views",4201:"line-tool-horizontal-line",4273:"line-tool-date-range",4389:"take-chart-image-impl",4598:"delete-locked-line-confirm-dialog-content",4602:"line-tool-three-drivers",4674:"line-tool-signpost",4731:"line-tool-trend-based-fib-extension",4862:"object-tree-dialog",4934:"line-tool-ray",4981:"line-tool-gann-fan",5009:"load-chart-dialog",5055:"line-tool-pitchfork",5093:"chart-widget-gui",5122:"line-tool-brush",5206:"line-tool-bars-pattern",5231:"line-tool-image",5248:"library-studies",5283:"line-tool-abcd",5500:"line-tool-anchored-vwap",5516:"restricted-toolset",5529:"line-tool-emoji",5551:"favorite-drawings-api",5565:"ichart-storage",5572:"chart-floating-tooltip-activation-hint",5592:"chart-text-editor-renderer",5598:"lt-stickers-atlas",5639:"currency-label-menu-events",5695:"line-tool-volume-profile",5967:"line-tool-arc",6124:"chart-storage-library-http",6166:"chart-event-hint",6265:"new-edit-object-dialog",6336:"line-tool-gann-fixed",6432:"line-tool-triangle",6456:"study-market",6477:"line-tool-price-range",6484:"line-tool-price-label",6602:"chart-actions-provider",6631:"study-template-dialog",6740:"line-tool-cypher-pattern",6748:"line-tool-circle",6780:"source-properties-editor",7038:"insert-image-dialog",7078:"general-chart-properties-dialog",7127:"line-tool-trend-based-fib-time",7129:"line-tools-synchronizer",7175:"line-tool-schiff-pitchfork", 7203:"line-tool-cross-line",7260:"chart-bottom-toolbar",7271:"compare-model",7488:"line-tool-info-line",7539:"studies",7553:"react-popper",7563:"line-tool-ghost-feed",7648:"show-theme-save-dialog",7660:"line-tool-ellipse",7806:"line-tool-icon",7987:"lt-icons-atlas",8020:"user-defined-bars-marks-tooltip",8061:"line-tool-bezier-quadro",8090:"line-tool-fib-spiral",8313:"chart-storage-external-adapter",8334:"line-tool-time-cycles",8372:"line-tool-trend-angle",8422:"line-tool-rectangle",8468:"line-tool-inside-pitchfork",8537:"lt-property-pages-with-definitions",8607:"line-tool-arrow",8673:"line-tool-trend-line",8820:"line-tool-flag-mark",8890:"simple-dialog",8949:"line-tool-sticker",9014:"line-tool-bezier-cubic",9039:"lollipop-tooltip-renderer",9123:"line-tool-text-note",9310:"line-tool-flat-bottom",9374:"symbol-info-dialog-impl",9445:"line-tool-cyclic-lines",9478:"line-tool-gann-square",9498:"export-data",9534:"line-tool-prediction",9581:"line-tool-disjoint-channel",9685:"series-icons-map",9748:"line-tool-regression-trend",9754:"global-search-dialog",9790:"favorite-indicators"}[e]||e)+"."+{4:"e9f7877e2088cf681289",92:"20aec3fd3e04096eae8a",139:"9bac6b5005b2fe097cf3",159:"cbc87a51dd6c9a180ef8",319:"bfad5173227ff4b17ee9",341:"a9eb3484dc231697e64a",360:"7ab37b19fbd43b62435c",380:"0beb21ac39ce88afd40a",445:"947b894960c6e4035c0e",507:"ab403205125f170be9e2",509:"f24584403d44ed8cf3ed",569:"f0be320dc06ad56040bf",574:"7ff8a41f54edcb4ad73d",607:"c82ef5c409f191cc7c5d",620:"bcf3249fc32562e96280",624:"3b396e1376ddaa5e6358",628:"84f8ec3b19bcd5e342c8",683:"0d6a0e2ec02f15fe66eb",688:"0c88ce61641b39b90734",731:"c700b910ca230864c99c",769:"cfef16111d0547178795",844:"c1e23fb55ad878f2607f",846:"baf9aedca844155d20c9",861:"d4f5022cd90ecd9d2455",903:"ef8462a4afcb96b7c33a",906:"d3f7742cd1f166c581ca",917:"41b6aa03c55ba682d104",925:"e847213b4f2f0347eec1",961:"654ee1abe8bd1c5165c5",986:"af29b1f88812e58c9f6c",1065:"1a73602ef366a609998c",1155:"6b6008c2c60cff13d7f4",1166:"a76cf4fe58acee8e54a9",1171:"e0f88030f3be0449d302",1277:"1e3ca2deba9ec68bfb74",1282:"3b73ca25e6d4f290597f",1313:"916eb4d87cdda49b9337",1314:"2506e7de45c96e5a349c",1450:"0f90392e173237a41bdd",1455:"68694affc8c3e0026b38",1470:"a0c22c988dfd930151e0",1485:"62487782be5544fea53d",1488:"7a2557d0f4174d30ac4e",1506:"fc2e96a3d5be8f6cf400",1553:"ee2f0024a59277fd480e",1583:"46eba403be0c79c4c268",1584:"8c4f4cb9afe40b12ae55",1667:"ec7c9e13d3905c94b87f",1681:"890334aa5a1cc78f12c8",1697:"43150b369abc9d0324cd",1713:"7c959039148dcdcb411c",1727:"98e9d718a90f5c1c2f73",1754:"54853b5c5b40e1f16d7e",1859:"31645b04b5b7067c6f13",1890:"593acab581cc4008ee11",1963:"39d46b134506f3af6fa4",1979:"286be1b48da9ba13da09",2050:"2a03f458a0e8196446f8",2077:"c0b97c344387b26d21f6",2087:"68a78bdd28274b4eee9e",2112:"0195ddd98768340d8fec",2164:"fcf5a0c7415d9ec1cd7c",2183:"46d4342f0c3b4c3d2ace",2202:"fddc8c100feabdd18b24",2227:"c1c4b4d4d12f9774793f",2232:"29d5136824af61f3f42d",2283:"7bfc63a600845bb7c674",2306:"b5394bfa95332ed5a617",2307:"66d27ab06c446545a05e",2312:"cd23d9dd0093c019ab0c",2318:"141ae360b6739148b2e9", -2377:"6e30e0c48af40bf2f6c0",2413:"91c6261b25d95d0206c9",2477:"44f2c96353966357ded8",2537:"757e1b655415c200c3d1",2641:"6bc828587e178a0d5a82",2647:"a5bd9c1c3a60a1a33fbc",2704:"7b67895aa33526804d36",2745:"73995b6670d622d97310",2816:"8233da87004918cf16a9",2878:"6b7c3410c1316a4d200d",2891:"ac7f12fc1eff206762f9",2962:"ee7512aef60ddf211a3a",3005:"2a1db3d6309536cde3c0",3014:"0d409362ec30f40d042e",3030:"dcc30f3b10fd6f3fbf5d",3179:"78787edf30f25d297844",3248:"676be3f4442ff78d5909",3290:"6910babced1a4b7d82c4",3314:"61f270a9e021377493ed",3329:"3b6659d129ab817bf283",3359:"1b4513bbb949dd541093",3378:"22b0af1ad7bc3caff507",3383:"7639e6b21de21984b315",3425:"af0c72a8ad3cbb55c070",3439:"6edfdd8233c74ba93ffe",3460:"74c66fe5d6bb7d727f80",3476:"8eebafed8a9bfd4d994f",3555:"8233b5c0f504dc44029c",3596:"79d509486a68c67bd42f",3637:"e64dc1e10403bb8fd262",3672:"570d4e00cc01ba41bcbb",3710:"acc36603d066c9ff74f4",3723:"7335c975cc2059982d78",3853:"4937ff6eb025cfe033b4",3866:"03d73838d0c3f6e6175f",3945:"ba7b0e3fd2be17890ee3",3946:"9d95111f4d6d5b4bfe5c",3952:"3892601e661ca0cce990",3966:"6ed22a54d039cd836365",4013:"b8d6122ddbbdb8e39789",4015:"945c9c31a5cee9d3ec48",4059:"661b68c32b4d54e6e0b3",4079:"d0fc27c1b07f5dd20dee",4201:"78f078e0d615080aa096",4240:"8d07b4c64394ebb30caf",4248:"5196f36fe87bffc5d369",4273:"0132e0e4462b6a180a0e",4389:"6e666e01441227ae61e3",4422:"0cb0df3f853033542a6d",4426:"4117c7a82199deed7db8",4495:"5a1c9623236398857e9d",4587:"97df39319183f566cbed",4598:"929d7a8647b3a31b6ab6",4602:"bccaa58617af6b80394c",4633:"41bc9073db4c6464bfe9",4674:"dc3ff0721cdfd2f1f2d7",4678:"42e9586c89b5320f9169",4719:"84dbe54b64e289f139c3",4731:"dc36aa4a1036fb9527b0",4765:"61e6a00741e34817e943",4862:"254833ed6030cf146329",4931:"f6d9da1269f09f247d63",4934:"3acbaa057b9c87dd7988",4981:"c59f4d3b2dc0a2024eaf",5009:"d56997e275ea6c8ce8e8",5055:"a88013f12dd83e1452ad",5093:"4ec424eb56739ee22285",5122:"89cef390d6784c56bef1",5206:"52a3e11d9b3b5bc1646b",5231:"e3ddef45e551d908b5f6",5248:"39ff0f3eccbe95f714c4",5283:"be622efff93d74be8bbb",5371:"9de35d41d3d3e039c8de",5386:"400def58328bce500f3d",5410:"d55fe54ddbf5d3a1d03e",5445:"7b009df16b3b27c38689",5456:"5550ada1b5274d2b1fc9",5500:"ee34ab83987798413131",5516:"85a0d8dc30a084c60f7d",5529:"6cae9429d8424851a2a2",5551:"201637bb9164a0295e57",5563:"83a4f87818bf4ff2bfe8",5565:"1144e5a1b4f8503ee572",5572:"c120f2a52855c1fe7d0f",5592:"b48fc8c98953c7eda089",5598:"9df1e0887f8f2a9647cd",5639:"cce0f47b553a89bc56af",5695:"301c7c0b2d7d0d350c2e",5705:"3cfd1fd3b91f816a5125",5743:"771457a25aa42edee0ff",5834:"69ab2e5fa5d329989319",5893:"de851bcf23a70646c585",5967:"5875f32d774104aec9cc",6025:"bd352ea0e85294a25497",6032:"c695879e27813308dd9e",6043:"72c78cd6a493066e3f6a",6052:"280b181318e81a6ba94d",6094:"6f20060bb84156233774",6124:"6b7203a5d4ce2ebe7728",6166:"523a7e995356abbe4417",6178:"21167b99135337cfb9e1",6193:"15a1126a4ea5d5a80cbc",6195:"2a2e890e37c620dd8a6b",6265:"361202b1c34b1599dc84",6336:"a290d202d5b312334a52",6376:"482cfbb8133455c17c92",6432:"3ebd6a05e3dfa3144914",6456:"2204b6a90bef20ca1042",6477:"a6e3dd8f0814081210f4", -6484:"3f630bc80a66fbab32c7",6602:"c29faaaa30fce24293fa",6631:"53e20cb6fcfea8a141f8",6633:"ce659c5f85016e2da899",6668:"0e223b3dc3e6bb3bdb80",6697:"6e2317eb6e10b3735190",6740:"96f4b196b30af8149b1c",6748:"55c4519e230a1ecdb2a0",6780:"7a5c1b3e221693ee044c",6864:"279ef4c9539497429e92",6870:"24242fd039923007864f",6954:"080101562d2c5bb23540",6956:"bcfe4e0c904e0632995c",7038:"aa6d69b04635c68a27c7",7078:"3c4da8067ded124e4550",7127:"05844bc9d761ae4120b3",7129:"9ffb159f9a256ce9891e",7175:"a89eba2b1fd6dbea7597",7203:"e2d5a96e3878862a52a0",7260:"6ceb4aef3a79d9831607",7271:"f01e49e03e8825756d78",7369:"d67754d2d1e6cd4a44cc",7399:"7fd926a23ad78726980d",7437:"7596a99a3f7c5f7d8009",7463:"75e07b6f3ad409e47e9e",7488:"49e58aee829a5e999fc4",7519:"01180f215ff7af433df6",7539:"3ad353a5758b0064f87a",7553:"b1e6942ddf9308862833",7563:"75238f216412b5b0e268",7648:"459f47945f2aa1d9d634",7660:"e25d052f78f749289278",7682:"0af9f99ebcf82f1d5e87",7691:"4fb3dccf1633e286214e",7777:"30fdb48f3b1c2bddfa9a",7780:"98495589560ea0cb6ff5",7806:"f1cb45a285a1a13e744c",7827:"f9257d961450fe4aaccb",7833:"1fe6e910e77fd7261449",7903:"213d45b03f5212091898",7987:"44402958fd0934b94ac1",8020:"e90e05d2b7455360cb92",8061:"d3d3437db87092392682",8090:"64de1f98a3e94f14b9d1",8093:"15bdc35e257d730d0e71",8185:"fefab7a1a5f120cf5ab9",8220:"2a38ccbdd84f1abe7915",8260:"2d3311187bd6b3c611b2",8313:"9c1267d07e48b8d8f53f",8334:"4d1e9c3ebcc966dc3fbb",8372:"599f71b4f74f08c1cc64",8402:"8d6877692120b620a62f",8422:"216a3e91b03758570d50",8468:"365a9361e977be1706b4",8537:"6830c12ee5b23fa3f44b",8604:"f5c94c10beff56dd17a0",8607:"df25e780dfd698c5a129",8673:"e757c9194429a5eb95fe",8752:"2a3dca6ff062a372cc7c",8820:"8a8c7003ba1bc6c0214c",8823:"d0f6a13ebe9b55e5ae25",8890:"3c45f27ba6b780f9400c",8894:"1683e77c7e5628df4950",8933:"6cb7f1f9073b85d8c845",8949:"e181251198aaa1117d54",9002:"444dbc0f0b0d52291fab",9014:"31c32a1a84600d0f1c1f",9026:"75767d113c906e89c496",9036:"9953ef9e5769935c7d74",9039:"1afddcf7bdf27af86d03",9123:"ad640e5494bbbc11419c",9297:"6ea3acdbf182c6c13ce8",9310:"a66b1a03e022c1dcb27e",9323:"dd7d6e1bcd754d2b0e8c",9374:"0c0a6ebf536991d0d4a2",9378:"dbb8d40e653f515b8f67",9418:"963c6d55bb9a6e9d6402",9445:"3903f31dd6234b01103e",9468:"c4efc189b2e620d1c20a",9478:"fb2d6fbc8234a4cab300",9487:"18e48cb0664ad0850dcc",9498:"0e123d391a9c2338f4ae",9534:"c451035dd0fa34ea862a",9581:"1029215755374bd9b1bf",9590:"01544016ba818c77f7df",9646:"be31e7fc19174a6d5c4a",9658:"63d5629b678ac1549bcd",9685:"0fab90a4ed52f242db2f",9742:"66d9c870e64bb83a87e4",9748:"012a564374d0cb602844",9754:"95f16ea4245f74436891",9790:"fa8f30be53475647c1ed",9836:"ddd6d83413044c8048bf",9928:"65ec9af0076c17eaa8c1",9965:"f8cf217d1e8bc83d432b",9970:"08d56f22bb40e2ab1088"}[e]+".js",o.miniCssF=e=>e+"."+{4:"975cc7b264b6bd3c596d",159:"3e4f89ce6749c1e5f8df",445:"8577632fdab29ee53ddf",509:"7e5e9ba6624b240fc4c7",628:"b8ffba49e1636aade6c4",683:"9ce134321e5f7ed1c4ad",844:"4db113a94ddabe52ea7c",846:"783c8fdad80b7ee894e8",861:"d3c8a2d509847638ea25",903:"e764dd9f961674c26dbd",1065:"d8e66f4c4d6c2e5e9e51",1166:"fa77c9e386a131cac9da",1171:"146c7925be9f43c9c767", +2377:"6e30e0c48af40bf2f6c0",2413:"91c6261b25d95d0206c9",2477:"44f2c96353966357ded8",2537:"757e1b655415c200c3d1",2641:"6bc828587e178a0d5a82",2647:"a5bd9c1c3a60a1a33fbc",2704:"7b67895aa33526804d36",2745:"73995b6670d622d97310",2816:"8233da87004918cf16a9",2878:"6b7c3410c1316a4d200d",2891:"ac7f12fc1eff206762f9",2962:"ee7512aef60ddf211a3a",3005:"2a1db3d6309536cde3c0",3014:"0d409362ec30f40d042e",3030:"dcc30f3b10fd6f3fbf5d",3179:"78787edf30f25d297844",3248:"676be3f4442ff78d5909",3290:"6910babced1a4b7d82c4",3314:"61f270a9e021377493ed",3329:"3b6659d129ab817bf283",3359:"1b4513bbb949dd541093",3378:"22b0af1ad7bc3caff507",3383:"7639e6b21de21984b315",3425:"af0c72a8ad3cbb55c070",3439:"6edfdd8233c74ba93ffe",3460:"74c66fe5d6bb7d727f80",3476:"8eebafed8a9bfd4d994f",3555:"8233b5c0f504dc44029c",3596:"6d1a824a016623509d51",3637:"e64dc1e10403bb8fd262",3672:"570d4e00cc01ba41bcbb",3710:"acc36603d066c9ff74f4",3723:"7335c975cc2059982d78",3853:"4937ff6eb025cfe033b4",3866:"03d73838d0c3f6e6175f",3945:"ba7b0e3fd2be17890ee3",3946:"9d95111f4d6d5b4bfe5c",3952:"3892601e661ca0cce990",3966:"6ed22a54d039cd836365",4013:"b8d6122ddbbdb8e39789",4015:"945c9c31a5cee9d3ec48",4059:"661b68c32b4d54e6e0b3",4079:"d0fc27c1b07f5dd20dee",4201:"78f078e0d615080aa096",4240:"8d07b4c64394ebb30caf",4248:"5196f36fe87bffc5d369",4273:"0132e0e4462b6a180a0e",4389:"6e666e01441227ae61e3",4422:"0cb0df3f853033542a6d",4426:"4117c7a82199deed7db8",4495:"5a1c9623236398857e9d",4587:"97df39319183f566cbed",4598:"929d7a8647b3a31b6ab6",4602:"bccaa58617af6b80394c",4633:"41bc9073db4c6464bfe9",4674:"dc3ff0721cdfd2f1f2d7",4678:"42e9586c89b5320f9169",4719:"84dbe54b64e289f139c3",4731:"dc36aa4a1036fb9527b0",4765:"61e6a00741e34817e943",4862:"254833ed6030cf146329",4931:"f6d9da1269f09f247d63",4934:"3acbaa057b9c87dd7988",4981:"c59f4d3b2dc0a2024eaf",5009:"d56997e275ea6c8ce8e8",5055:"a88013f12dd83e1452ad",5093:"4ec424eb56739ee22285",5122:"89cef390d6784c56bef1",5206:"52a3e11d9b3b5bc1646b",5231:"e3ddef45e551d908b5f6",5248:"39ff0f3eccbe95f714c4",5283:"be622efff93d74be8bbb",5371:"9de35d41d3d3e039c8de",5386:"400def58328bce500f3d",5410:"d55fe54ddbf5d3a1d03e",5445:"7b009df16b3b27c38689",5456:"5550ada1b5274d2b1fc9",5500:"ee34ab83987798413131",5516:"85a0d8dc30a084c60f7d",5529:"6cae9429d8424851a2a2",5551:"201637bb9164a0295e57",5563:"83a4f87818bf4ff2bfe8",5565:"1144e5a1b4f8503ee572",5572:"c120f2a52855c1fe7d0f",5592:"b48fc8c98953c7eda089",5598:"9df1e0887f8f2a9647cd",5639:"cce0f47b553a89bc56af",5695:"301c7c0b2d7d0d350c2e",5705:"3cfd1fd3b91f816a5125",5743:"771457a25aa42edee0ff",5834:"69ab2e5fa5d329989319",5893:"de851bcf23a70646c585",5967:"5875f32d774104aec9cc",6025:"bd352ea0e85294a25497",6032:"c695879e27813308dd9e",6043:"72c78cd6a493066e3f6a",6052:"280b181318e81a6ba94d",6094:"6f20060bb84156233774",6124:"6b7203a5d4ce2ebe7728",6166:"523a7e995356abbe4417",6178:"21167b99135337cfb9e1",6193:"15a1126a4ea5d5a80cbc",6195:"2a2e890e37c620dd8a6b",6265:"361202b1c34b1599dc84",6336:"a290d202d5b312334a52",6376:"482cfbb8133455c17c92",6432:"3ebd6a05e3dfa3144914",6456:"2204b6a90bef20ca1042",6477:"a6e3dd8f0814081210f4", +6484:"3f630bc80a66fbab32c7",6602:"c29faaaa30fce24293fa",6631:"53e20cb6fcfea8a141f8",6633:"ce659c5f85016e2da899",6668:"0e223b3dc3e6bb3bdb80",6697:"6e2317eb6e10b3735190",6740:"96f4b196b30af8149b1c",6748:"55c4519e230a1ecdb2a0",6780:"7a5c1b3e221693ee044c",6864:"279ef4c9539497429e92",6870:"24242fd039923007864f",6954:"080101562d2c5bb23540",6956:"bcfe4e0c904e0632995c",7038:"aa6d69b04635c68a27c7",7078:"3c4da8067ded124e4550",7127:"05844bc9d761ae4120b3",7129:"9ffb159f9a256ce9891e",7175:"a89eba2b1fd6dbea7597",7203:"e2d5a96e3878862a52a0",7260:"6ceb4aef3a79d9831607",7271:"f01e49e03e8825756d78",7369:"d67754d2d1e6cd4a44cc",7399:"7fd926a23ad78726980d",7437:"7596a99a3f7c5f7d8009",7463:"75e07b6f3ad409e47e9e",7488:"49e58aee829a5e999fc4",7519:"01180f215ff7af433df6",7539:"0e90d70e9e82a1758f60",7553:"b1e6942ddf9308862833",7563:"75238f216412b5b0e268",7648:"459f47945f2aa1d9d634",7660:"e25d052f78f749289278",7682:"0af9f99ebcf82f1d5e87",7691:"4fb3dccf1633e286214e",7777:"30fdb48f3b1c2bddfa9a",7780:"98495589560ea0cb6ff5",7806:"f1cb45a285a1a13e744c",7827:"f9257d961450fe4aaccb",7833:"1fe6e910e77fd7261449",7903:"213d45b03f5212091898",7987:"44402958fd0934b94ac1",8020:"e90e05d2b7455360cb92",8061:"d3d3437db87092392682",8090:"64de1f98a3e94f14b9d1",8093:"15bdc35e257d730d0e71",8185:"fefab7a1a5f120cf5ab9",8220:"2a38ccbdd84f1abe7915",8260:"2d3311187bd6b3c611b2",8313:"9c1267d07e48b8d8f53f",8334:"4d1e9c3ebcc966dc3fbb",8372:"599f71b4f74f08c1cc64",8402:"8d6877692120b620a62f",8422:"216a3e91b03758570d50",8468:"365a9361e977be1706b4",8537:"6830c12ee5b23fa3f44b",8604:"f5c94c10beff56dd17a0",8607:"df25e780dfd698c5a129",8673:"e757c9194429a5eb95fe",8752:"2a3dca6ff062a372cc7c",8820:"8a8c7003ba1bc6c0214c",8823:"d0f6a13ebe9b55e5ae25",8890:"3c45f27ba6b780f9400c",8894:"1683e77c7e5628df4950",8933:"6cb7f1f9073b85d8c845",8949:"e181251198aaa1117d54",9002:"444dbc0f0b0d52291fab",9014:"31c32a1a84600d0f1c1f",9026:"75767d113c906e89c496",9036:"9953ef9e5769935c7d74",9039:"1afddcf7bdf27af86d03",9123:"ad640e5494bbbc11419c",9297:"6ea3acdbf182c6c13ce8",9310:"a66b1a03e022c1dcb27e",9323:"dd7d6e1bcd754d2b0e8c",9374:"0c0a6ebf536991d0d4a2",9378:"dbb8d40e653f515b8f67",9418:"963c6d55bb9a6e9d6402",9445:"3903f31dd6234b01103e",9468:"c4efc189b2e620d1c20a",9478:"fb2d6fbc8234a4cab300",9487:"18e48cb0664ad0850dcc",9498:"0e123d391a9c2338f4ae",9534:"c451035dd0fa34ea862a",9581:"1029215755374bd9b1bf",9590:"01544016ba818c77f7df",9646:"be31e7fc19174a6d5c4a",9658:"63d5629b678ac1549bcd",9685:"0fab90a4ed52f242db2f",9742:"66d9c870e64bb83a87e4",9748:"012a564374d0cb602844",9754:"95f16ea4245f74436891",9790:"fa8f30be53475647c1ed",9836:"ddd6d83413044c8048bf",9928:"65ec9af0076c17eaa8c1",9965:"f8cf217d1e8bc83d432b",9970:"08d56f22bb40e2ab1088"}[e]+".js",o.miniCssF=e=>e+"."+{4:"975cc7b264b6bd3c596d",159:"3e4f89ce6749c1e5f8df",445:"8577632fdab29ee53ddf",509:"7e5e9ba6624b240fc4c7",628:"b8ffba49e1636aade6c4",683:"9ce134321e5f7ed1c4ad",844:"4db113a94ddabe52ea7c",846:"783c8fdad80b7ee894e8",861:"d3c8a2d509847638ea25",903:"e764dd9f961674c26dbd",1065:"d8e66f4c4d6c2e5e9e51",1166:"fa77c9e386a131cac9da",1171:"146c7925be9f43c9c767", 1450:"8f1c6b9900df1caf5e97",1488:"720d3939e07b55dd54ff",1667:"a0f6cab48aafa4924d69",1681:"df517de208b59f042c3b",1697:"042d72d2c0eaafd88d54",1979:"727d53fabf38782d4a1f",2112:"10fd79bdcf7d87919e93",2202:"414409a383bce0796e9b",2307:"2fb1c26f9bc4323a9ce1",2318:"8bdd9c9cc1661e5b303f",2537:"a8e87c60a250a6212b03",2641:"8fe6a787670a4a8ef383",2647:"a9ca47adf1a97f5f023d",3014:"b5b7477b23dda9a91666",3290:"dfbe2771427c6e7a0057",3329:"e21e82febf357ba86937",3359:"515b38c2fad56295e0d7",3425:"2c71d427960b55da9a78",3439:"18a88ac7f1dc31fa83da",3460:"ee113a455fc80caafc76",3476:"30d51195eb2fb72fcf64",3637:"9a63d1db88d74be3cc39",3672:"362fa6a7ab1f3e3b06c4",3853:"4ae445e5f095a01ba045",3946:"7318655b786d7fb40f50",4059:"b6fc40ed6b3d8311f086",4240:"56bc31ea089745c54b33",4248:"9515eeb06dd8e381efe7",4422:"78e9455cd23b69174473",4495:"be501b970b417ba6c2a8",4587:"2fb5f6f3eb739c16078d",4633:"add1585dafb8756f4ac1",4678:"3a91d5cb712d91b3d494",4719:"a3b6b5f9792e79b01fbc",4765:"e81302eea6c8be4f4718",5371:"76e4283712e58a36266a",5445:"093db358753a840ab939",5563:"2020d73e26d49ab4f152",5743:"efabcbfa402a97d8655c",5834:"79247ad88246410e4399",6032:"128b53aa00cd47668af0",6043:"16c0fd7539d08ad5ffd3",6052:"d49d6f461c53e70b38bc",6094:"bd5174488126d28070f4",6178:"39e6202ba00cf6f84f33",6195:"dd31c566c5cea85cb34d",6633:"50b8e8846c82b9394624",6697:"401ea4c022390e1da1c1",6870:"bf8e610b24f018b18606",6954:"d4ea7d03cf19941c7fa4",6956:"bb51b63e079c12f34d9d",7369:"488cdb889af5bc213e7a",7399:"f60e2fa80861d26a1fe2",7463:"0c60a2665496872c6cc1",7519:"a7570fbc77731eca9b60",7682:"0b2eb20106b0fa40dbc9",7691:"ce7b2959f31f83034b45",7777:"891d2b2ce44704ebece2",7780:"dad95b9e4df028f98405",7827:"6ac93924147c2fb8d322",7833:"f2e1edd6097be38e73da",8185:"fbb750fd312778403036",8220:"dd6dce5d2a6f56d0f41e",8260:"62352517083dd5dfd292",8752:"52267c3fa7dd7ef53af4",8894:"b07b23323d7ced0545c0",8933:"45a42558763ddf6de336",9002:"bb4d91a9e1bdd3b5c7da",9036:"0585c4fac59f4fe82f95",9297:"f956807450cbc2bb54ad",9323:"b86e76f1c9dea8b48f7e",9468:"8628031453e97b61d8a0",9487:"31287178347f44fad165",9590:"56ae013b90ba2722383d",9646:"1f177ff6c1d61bbb7d1a",9658:"a9e76e41b28aa8a84efe",9742:"4d4891102ba1094f3993",9836:"c5a2f31610f22e588456",9965:"99898a3b8bbfa6046421",9970:"3bc725690d7178ac1772"}[e]+".css",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),d={},f="tradingview:",o.l=(e,a,c,b)=>{if(d[e])d[e].push(a);else{var t,l;if(void 0!==c)for(var n=document.getElementsByTagName("script"),r=0;r{t.onerror=t.onload=null,clearTimeout(_);var f=d[e];if(delete d[e], t.parentNode&&t.parentNode.removeChild(t),f&&f.forEach((e=>e(c))),a)return a(c)},_=setTimeout(s.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=s.bind(null,t.onerror),t.onload=s.bind(null,t.onload),l&&document.head.appendChild(t)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var a=o.g.document;if(!e&&a&&(a.currentScript&&(e=a.currentScript.src),!e)){var c=a.getElementsByTagName("script");c.length&&(e=c[c.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),o.g.location&&o.p.startsWith(o.g.location.origin)&&(o.p=o.p.slice(o.g.location.origin.length)),(()=>{const e=o.u;o.u=a=>e(a).replace("__LANG__",o.g.language)})(),o.p=o.g.WEBPACK_PUBLIC_PATH||o.p;var l=o.e,n=Object.create(null);function r(e,a){return l(e).catch((function(){return new Promise((function(c){var d=function(){self.removeEventListener("online",d,!1),!1===navigator.onLine?self.addEventListener("online",d,!1):c(a<2?r(e,a+1):l(e))};setTimeout(d,a*a*1e3)}))}))}o.e=function(e){if(!n[e]){n[e]=r(e,0);var a=function(){delete n[e]};n[e].then(a,a)}return n[e]},(()=>{if("undefined"!=typeof document){var e=e=>new Promise(((a,c)=>{var d=o.miniCssF(e),f=o.p+d;if(((e,a)=>{for(var c=document.getElementsByTagName("link"),d=0;d{var b=document.createElement("link");b.rel="stylesheet",b.type="text/css",b.onerror=b.onload=c=>{if(b.onerror=b.onload=null,"load"===c.type)d();else{var t=c&&("load"===c.type?"missing":c.type),o=c&&c.target&&c.target.href||a,l=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=t,l.request=o,b.parentNode&&b.parentNode.removeChild(b),f(l)}},b.href=a,0!==b.href.indexOf(window.location.origin+"/")&&(b.crossOrigin="anonymous"),c?c.parentNode.insertBefore(b,c.nextSibling):document.head.appendChild(b)})(e,f,null,a,c)})),a={3666:0};o.f.miniCss=(c,d)=>{a[c]?d.push(a[c]):0!==a[c]&&{4:1,159:1,445:1,509:1,628:1,683:1,844:1,846:1,861:1,903:1,1065:1,1166:1,1171:1,1450:1,1488:1,1667:1,1681:1,1697:1,1979:1,2112:1,2202:1,2307:1,2318:1,2537:1,2641:1,2647:1,3014:1,3290:1,3329:1,3359:1,3425:1,3439:1,3460:1,3476:1,3637:1,3672:1,3853:1,3946:1,4059:1,4240:1,4248:1,4422:1,4495:1,4587:1,4633:1,4678:1,4719:1,4765:1,5371:1,5445:1,5563:1,5743:1,5834:1,6032:1,6043:1,6052:1,6094:1,6178:1,6195:1,6633:1,6697:1,6870:1,6954:1,6956:1,7369:1,7399:1,7463:1,7519:1,7682:1,7691:1,7777:1,7780:1,7827:1,7833:1,8185:1,8220:1,8260:1,8752:1,8894:1,8933:1,9002:1,9036:1,9297:1,9323:1,9468:1,9487:1,9590:1,9646:1, 9658:1,9742:1,9836:1,9965:1,9970:1}[c]&&d.push(a[c]=e(c).then((()=>{a[c]=0}),(e=>{throw delete a[c],e})))}}})(),o.i18next=(e,a={},c,d=o.g.language)=>{if(null===e){if(Array.isArray(c))return c[void 0===a.count?0:o._plural[d](a.count)].replace(/{(\w+)}/g,((e,c)=>void 0!==(a.replace||a)[c]?(a.replace||a)[c]:e));if("object"==typeof c){if(o.g.customTranslateFunction){const e=o.g.customTranslateFunction(c.en[o._plural.en(a.count)],c.en[0],c[o.g.language]?c[o.g.language][o._plural[o.g.language](a.count)]:void 0);if(null!==e)return e.replace(/{(\w+)}/g,((e,c)=>void 0!==(a.replace||a)[c]?(a.replace||a)[c]:e))}return c[o.g.language]?o.i18next(null,a,c[o.g.language]):o.i18next(null,a,c.en,"en")}}else if(c&&e){const d=`${e}${a.context?`_${a.context}`:""}`;if(c[d])return o.i18next(null,a,c[d])}return"number"==typeof e?e.toString():"string"!=typeof e?"":e},(()=>{var e={3666:0,481:0};o.f.j=(a,c)=>{var d=o.o(e,a)?e[a]:void 0;if(0!==d)if(d)c.push(d[2]);else if(/^(1(6(67|81|97)|065|166|171|450|488|59|979)|2(64[17]|112|202|307|318|537)|3(4(25|39|60|76)|6(37|66|72)|014|290|329|359|853|946)|4(24[08]|4(22|5|95)||059|587|633|678|719|765|81)|5(09|371|445|563|743|834)|6(0(32|43|52|94)|95[46]|178|195|28|633|697|83|870)|7((36|39|51)9|463|682|691|777|780|827|833)|8(185|220|260|44|46|61|752|894|933)|9(0(02|3|36)|297|323|468|487|590|646|658|742|836|965|970))$/.test(a))e[a]=0;else{var f=new Promise(((c,f)=>d=e[a]=[c,f]));c.push(d[2]=f);var b=o.p+o.u(a),t=new Error;o.l(b,(c=>{if(o.o(e,a)&&(0!==(d=e[a])&&(e[a]=void 0),d)){var f=c&&("load"===c.type?"missing":c.type),b=c&&c.target&&c.target.src;t.message="Loading chunk "+a+" failed.\n("+f+": "+b+")",t.name="ChunkLoadError",t.type=f,t.request=b,d[1](t)}}),"chunk-"+a,a)}},o.O.j=a=>0===e[a];var a=(a,c)=>{var d,f,[b,t,l]=c,n=0;if(b.some((a=>0!==e[a]))){for(d in t)o.o(t,d)&&(o.m[d]=t[d]);if(l)var r=l(o)}for(a&&a(c);n{const{miniCssF:e}=o;o.miniCssF=a=>self.document&&"rtl"===self.document.dir?e(a).replace(/\.css$/,".rtl.css"):e(a)})()})(); \ No newline at end of file diff --git a/charting_library/bundles/studies.0e90d70e9e82a1758f60.js b/charting_library/bundles/studies.0e90d70e9e82a1758f60.js new file mode 100644 index 00000000..03f27274 --- /dev/null +++ b/charting_library/bundles/studies.0e90d70e9e82a1758f60.js @@ -0,0 +1,19 @@ +"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[7539],{52973:(e,t,s)=>{s.r(t),s.d(t,{Sessions:()=>_});var i=s(50151),r=s(19844),l=s(19136),o=s(45530),a=s(67563),n=s(66786),h=s(37103),c=s(40472),u=s(72972);const d=new a.PriceFormatter;class _ extends n.CustomSourceBase{constructor(e,t,s,i){super(e,t),this._studySource=null,this._paneViews=[],this._metaInfo=null,this._destroyed=!1,this._isStarted=!1,this._loadedGraphics=null,this._doubleClickHandler=i,this._properties=s,this._properties.subscribe(this,this._onPropertiesChanged),this._requestAndProcessMetaInfo(),t.timeScale().onReset().subscribe(this,this._clearData),t.timeScale().logicalRangeChanged().subscribe(this,this.updateAllViews.bind(this,(0,c.viewportChangeEvent)())),t.mainSeries().properties().childs().interval.subscribe(this,this._processHibernate)}start(){this._isStarted=!0,this._processHibernate()}restart(){this._clearData(),h.enabled("stop_study_on_restart")&&this.stop(),this.start()}isStarted(){return this._isStarted}stop(){this._isStarted=!1,null!==this._studySource&&this._studySource.stop()}isHoveredEnabled(){return!1}paneViews(e){return this._paneViews}updateAllViews(e){this._paneViews.forEach((t=>t.update(e)))}updateViewsForPane(e,t){this.updateAllViews(t)}destroy(){this._destroyed=!0,null!==this._studySource&&(this._studySource.dataCleared().unsubscribeAll(this),this._studySource.dataUpdated().unsubscribeAll(this),this._studySource.destroy(),this._studySource=null),this._model.timeScale().logicalRangeChanged().unsubscribeAll(this),this._model.timeScale().onReset().unsubscribeAll(this),this._model.mainSeries().properties().childs().interval.unsubscribeAll(this),this._properties.unsubscribeAll(this)}series(){return this._model.mainSeries()}priceScale(){return this.series().priceScale()}graphics(){return this._loadedGraphics||(0,i.ensureNotNull)(this._studySource).graphics()}valueAt(e,t){return null}properties(){return this._properties}graphicsInfo(){return(0,i.ensureNotNull)(this._metaInfo).graphics}firstValue(e){return this._model.mainSeries().firstValue()}formatter(){return d}stateData(){return null!==this._metaInfo?{graphics:(0,o.saveStudyGraphics)(this.graphics(),this._model.timeScale().visibleBarsStrictRange()),metaInfo:this._metaInfo.state()}:null}restoreStateData(e){void 0!==e&&(this._loadStudyGraphics(e.graphics),this._setMetaInfo(new r.StudyMetaInfo(e.metaInfo)),this._createPaneViews())}metaInfo(){return(0,i.ensureNotNull)(this._metaInfo)}async _requestAndProcessMetaInfo(){if(this._model.isSnapshot())return;const e=await(0,u.studyMetaInfoRepository)().findById({type:"java",studyId:"Sessions@tv-basicstudies"});this._destroyed||null===this._loadedGraphics&&(this._setMetaInfo(e),null!==this._metaInfo&&(this._studySource=new l.StudyDataSource(this._model.chartApi(),this._model.mainSeries().seriesSource(),"sessions_",this._metaInfo),this._createPaneViews(),this._studySource.dataCleared().subscribe(this,this.updateAllViews.bind(this,(0,c.sourceChangeEvent)(this.id()))), +this._studySource.dataUpdated().subscribe(this,this.updateAllViews.bind(this,(0,c.sourceChangeEvent)(this.id()))),this._studySource.setInputs({}),this._processHibernate()))}_loadStudyGraphics(e){const t=e.backgrounds;if(void 0!==t){const e=t.findIndex((e=>"inSession"===e.styleId));-1!==e&&t.splice(e,1)}this._loadedGraphics=(0,o.loadStudyGraphics)(e)}_setMetaInfo(e){const t=e.graphics.backgrounds;void 0!==t&&void 0!==t.inSession&&delete t.inSession,this._metaInfo=e}_clearData(){null!==this._studySource&&this._studySource.clearData()}_createPaneViews(){const e={doubleClickHandler:this._doubleClickHandler};(0,o.createGraphicsPaneViews)(this,this._model,e).then((e=>{this._paneViews=e.regularPaneViews,this._model.lightUpdate()}))}_onPropertiesChanged(){this._processHibernate(),this.updateAllViews((0,c.sourceChangeEvent)(this.id()))}_processHibernate(){if(null!==this._studySource){const e=this._canBeHibernated(),t=this._isHibernated(),s=this._studySource.isStarted();!t&&e&&s?this._studySource.stop():!t||e||s||this._studySource.start()}}_canBeHibernated(){if(this._model.mainSeries().isDWM())return!0;const e=this._properties.childs().sessionHighlight.childs(),{preMarket:t,postMarket:s,electronic:i,outOfSession:r}=e.backgrounds.childs(),{sessBreaks:l}=e.vertlines.childs(),o=t.childs().available.value()&&t.childs().visible.value()||s.childs().available.value()&&s.childs().visible.value()||i.childs().available.value()&&i.childs().visible.value()||r.childs().available.value()&&r.childs().visible.value(),a=l.childs().available.value()&&l.childs().visible.value();return!o&&!a}_isHibernated(){return this._isStarted&&(null===this._studySource||!this._studySource.isStarted())}}},96664:(e,t,s)=>{s.r(t),s.d(t,{study_PivotPointsStandard:()=>B});var i=s(50151),r=s(11485);class l extends r.Study{isLinkedToSeries(){return!0}clearData(){this._customData=null,this._indexes=null}restoreData(e,t,s){super.restoreData(e),this._customData=t,this._indexes=s}state(e){const t=super.state(e);return e&&(t.nonSeriesData=this._customData,t.indexes=this._indexes),t}customData(){return this._customData}_setPaneViews(e){this._paneViews=e,this.model().lightUpdate()}_onDataUpdated(e,t,s){null!==t&&(t.indexes_replace?((0,i.assert)("nochange"!==s),this._indexes=s):(this._customData=t.data,"nochange"!==s&&(this._indexes=s))),super._onDataUpdated(e,t,s)}}var o=s(27714),a=s(33350);class n{constructor(e,t,s,i){this._priceAxisFontSize=11,this._prices=[],this._labelWidth=0,this._pixelRatioParams=e,this._recreateCanvasAndContext((0,o.size)({width:0,height:0})),this.reset({font:t,fontSize:s,backColors:i})}destroy(){delete this._canvas,delete this._cache}canvas(){return this._canvas}reset(e){this._renderParams=e,this._prices=[],this._cache.font=e.fontSize+"px "+e.font,this._labelWidth=["P","S1","R1","S2","R2","S3","R3","S4","R4","S5","R5","/"].reduce(((e,t)=>{const s=this._cache.measureText(t).width;return Math.max(s,e)}),0)}rowHeight(){return this._priceAxisFontSize+4}labelRectByIndex(e){return{left:0,top:Math.round(this._topByIndex(e)), +width:Math.round(this._labelWidth+4),height:Math.round(this._renderParams.fontSize+8)}}setPrices(e){let t=!1;const s=(e,t)=>{const s=void 0===e,r=void 0===t;return(!s&&!r||s===r)&&(0,i.ensureDefined)(e).formatted===(0,i.ensureDefined)(t).formatted};if(e.length!==this._prices.length)t=!0;else for(let i=0;i{this._cache.translate(.5,.5),this._cache.font=this._renderParams.fontSize+"px "+this._renderParams.font,this._cache.textBaseline="middle";for(let e=0;e=l||h)){this._visiblePivots.add(o[e]),this._prices=[];for(let s=0;s=t.left&&e.x<=t.left+t.width&&e.y>=t.top&&e.y<=t.top+t.height)return new x.HitTestResult(x.HitTarget.Regular);return null}_drawImpl(e){const t=this._cacheProvider(e),{horizontalPixelRatio:s,verticalPixelRatio:i,context:r}=e;this._drawRects=[];const l=e=>{const l=t.labelRectByIndex(e),o={left:Math.round(this._point.x-l.width+a),top:Math.round(this._point.y-l.height/2),width:l.width,height:l.height};return r.drawImage(t.canvas(),Math.round(l.left*s),Math.round(l.top*i),l.width*s,l.height*i,Math.round(o.left*s),Math.round(o.top*i),o.width*s,o.height*i),this._drawRects.push(o),l.width},o=this._label.split("/");let a=0;for(let e=0;e0&&(a+=l(t+11)/2),a+=l(t)/2}}}function R(e){return"P"===e?e:"S"+e[1]+"/R"+e[1]}function T(e,t,s){const i=t;void 0===e[i]?e[i]={text:s,ids:[R(s)]}:(e[i].text+="/"+s,e[i].ids.push(R(s)))}class A{constructor(e,t){this._pivots=[],this._invalidated=!0,this._renderer=new P.CompositeRenderer,this._model=e,this._source=t,this._cacheProvider=this._source.getCache.bind(this._source)}update(e){this._invalidated=!0}renderer(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._renderer}_updateImpl(){this._renderer.clear();const e=this._source.ownerSource();if(null===e)return;this._source.pricesView().prices(),this._pivots=[];const t=this._source.customData();if(!t||!t.pivots)return;const s=this._source.properties().childs();if(!s.visible.value())return +;const r=t.pivots,l=this._source.indexes(),o=this._model.timeScale(),a=this._source.priceScale(),n=e.firstValue();if(!a||a.isEmpty()||o.isEmpty()||!r||!l||null===n)return;const h=(0,i.ensureNotNull)(o.visibleBarsStrictRange()),c=h.firstBar(),u=h.lastBar();for(let e=0;eu)continue;const h={},d=s.levelsStyle.childs().visibility.childs();d.P.value()&&T(h,r[e].p,"P"),d["S1/R1"].value()&&(T(h,r[e].s1,"S1"),T(h,r[e].r1,"R1")),d["S2/R2"].value()&&(T(h,r[e].s2,"S2"),T(h,r[e].r2,"R2")),d["S3/R3"].value()&&(T(h,r[e].s3,"S3"),T(h,r[e].r3,"R3")),d["S4/R4"].value()&&(T(h,r[e].s4,"S4"),T(h,r[e].r4,"R4")),d["S5/R5"].value()&&(T(h,r[e].s5,"S5"),T(h,r[e].r5,"R5"));const _=o.indexToCoordinate(t),p=o.indexToCoordinate(i);for(const t of Object.keys(h)){const s=parseFloat(t),i=a.priceToCoordinate(s,n);this._pivots.push({x1:_,x2:p,y:i,label:h[t].text,labelIds:h[t].ids,src:r[e]})}}const d=s.levelsStyle.childs().colors,_=s.levelsStyle.childs().widths,p=this._source.visiblePivots();for(let e=0;ethis.processHibernate()))}pricesView(){return this._pricesView}indexes(){return this._indexes}properties(){return this._properties}getCache(e){if(null===this._cache||null==this._cachedPixelRatioParams||(t=e,s=this._cachedPixelRatioParams,t.horizontalPixelRatio!==s.horizontalPixelRatio||t.verticalPixelRatio!==s.verticalPixelRatio)){this._cache&&this._cache.destroy();const t=this._getActualCacheParams(),s={horizontalPixelRatio:e.horizontalPixelRatio,verticalPixelRatio:e.verticalPixelRatio};this._cache=new n(s,t.font,t.fontSize,t.backColors),this._cache.setPrices((0,i.ensureNotNull)(this._pricesView).prices()),this._cachedPixelRatioParams=s,this._cache.reset(t)}var t,s;return this._cache}priceLabelText(e){return this._metaInfo.value().shortDescription+":"+e.toUpperCase()}updateAllViews(e){super.updateAllViews(e),this._pricesView.update()}visiblePivots(){return this._pricesView.visiblePivots()}isVisible(){if(!this.properties().childs().visible.value()||!this.isActualInterval())return!1;const e=["P","S1/R1","S2/R2","S3/R3","S4/R4","S5/R5"],t=this.properties().childs().levelsStyle.childs().visibility;for(let s=0;st)continue;const a=[],n=this.properties().childs().levelsStyle.childs().visibility.childs();n.P.value()&&a.push(r[s].p),n["S1/R1"].value()&&a.push(r[s].s1,r[s].r1),n["S2/R2"].value()&&a.push(r[s].s2,r[s].r2),n["S3/R3"].value()&&a.push(r[s].s3,r[s].r3),n["S4/R4"].value()&&a.push(r[s].s4,r[s].r4),n["S5/R5"].value()&&a.push(r[s].s5,r[s].r5);for(let e=0;e{s.r(t),s.d(t,{study_ScriptWithDataOffset:()=>n});var i=s(50151),r=s(4148),l=s(72187),o=s(11485),a=s(64717);class n extends o.Study{constructor(e,t,s,i,r,o){super(e,t,s,i,r,o),this._underlyingData=new l.PlotList((0,a.studyPlotFunctionMap)(i),a.studyEmptyPlotValuePredicate)}clearData(){super.clearData(),this._underlyingData.clear()}_mergeData(e){this._invalidateLastNonEmptyPlotRowCache();const t=this._underlyingData.firstIndex();this._underlyingData.merge(e),t!==this._underlyingData.firstIndex()&&(this._data=new l.PlotList((0,a.studyPlotFunctionMap)(this._metaInfo.value()),a.studyEmptyPlotValuePredicate));let s=null;const i=this._data.lastIndex()??this._underlyingData.firstIndex(),o=this._underlyingData.lastIndex();if(null!==i&&null!==o)for(const e of this._underlyingData.rangeIterator(i,o))null===s&&(s=e),this._data.add(e.index,(0,r.clone)(e.value));for(const e of this._plotsForStrategyProcessing()){new h(e.strategyIndex,e.targetIndex,i).rebuildData(this._data)}return s}_plotsForStrategyProcessing(){const e=this._metaInfo.value(),t=[];return e.plots.forEach(((s,r)=>{ +if("dataoffset"!==s.type)return;const l=e.plots.findIndex((e=>e.id===s.target));(0,i.assert)(l>=0,`target plot not found for strategy plot ${s.id}`),t.push({strategyIndex:r,targetIndex:l})})),t}}class h{constructor(e,t,s){this._strategyPlotIndex=e,this._targetPlotIndex=t,this._startIndex=s}rebuildData(e){const t=this._targetPlotIndex+1,s=this._strategyPlotIndex+1;let i=null,r=null;const l=this._startIndex??e.firstIndex(),o=e.lastIndex();if(null!==l&&null!==o)for(const{index:a,value:n}of e.rangeIterator(l,o)){const l=n[t],o=n[s]?Math.round(n[s]):null;if(n[t]=null,n[s]=null,!o||o>0)continue;const h=a+o,c={pointIndex:h,value:l};if(r){if(r.pointIndex!==c.pointIndex){if(h>=0){const s=e.valueAt(h);s&&(s[t]=l)}let s=!1;if(i&&r&&(s=i.value<=r.value&&r.value<=l||i.value>=r.value&&r.value>=l),s){if(r.pointIndex>=0){const s=e.valueAt(r.pointIndex);s&&(s[t]=null)}}else i=r;r=c}}else r=c}}}},10635:(e,t,s)=>{s.r(t),s.d(t,{VbPVisibleWrapper:()=>v,VolumeProfileBaseStudy:()=>d,VolumeProfileStudyWithThemedColors:()=>_,VolumeProfileWithPriceRangeStudy:()=>p});var i=s(50151),r=s(22613),l=s(24062);var o=s(36281),a=s(52859);class n extends o.PriceAxisView{constructor(e,t){super(),this._source=e,this._styleId=t}_updateRendererData(e,t,s){e.visible=!1;const i=this._source.priceScale(),r=this._source.properties().childs();if(!i||i.isEmpty()||!r.visible.value())return;const l=this._source.properties().childs().graphics.childs().horizlines?.childs()[this._styleId].childs();if(!(l&&l.visible&&l.visible.value()&&this._isLabelVisibleAccordinglyToProperties()))return;const o=this._source.model().timeScale().logicalRange(),n=this._source.firstValue();if(null===n||null===o)return;const h={price:NaN,time:-1/0},c=this._source.graphics().horizlines().get(this._styleId);if(void 0===c)return;for(const e of c){if(void 0===e.level)continue;const t=o.contains(e.startIndex,!0);t===o.contains(e.endIndex,!0)&&0!==t||h.timenew n(this,e)))}_createStudyPlotPaneView(e){return new c.StudyPlotPaneView(this,this._series,this._model,e,this._needExtendToBarsEnding())}_apiInputs(){return{...super._apiInputs(),mapRightBoundaryToBarStartTime:!!this._needExtendToBarsEnding()||void 0}}_needExtendToBarsEnding(){return void 0!==this.metaInfo().defaults.inputs?.mapRightBoundaryToBarStartTime}}class _ extends d{constructor(e,t,s,i,r,l){t.setThemedColors((0,u.volumeProfileThemedColors)(t.childs().graphics.childs().polygons?.hasChild("histBoxBg"))),super(e,t,s,i,r,l)}}class p extends _{priceRange(e,t,s){if(s.targetPriceScale!==this.priceScale())return null;let r=!1;this.graphics().hhists().forEach(((e,t)=>{r=r||(0,i.ensureDefined)(this.properties().childs().graphics.childs().hhists?.childs()[t]).value()}));const o=function(e,t,s,i){let r=null;return e.forEach((e=>{e.forEach((e=>{const i=e.firstBarTime;null!==i&&i<=s&&e.lastBarTime>=t&&(null===r?r={low:{l:e.priceLow,h:e.priceHigh},high:{h:e.priceHigh}}:(e.priceLow{s.d(t,{volumeProfileThemedColors:()=>_});var i=s(49156);const{colorColdGray200:r,colorColdGray900:l,colorBerryPink400Alpha50:o,colorBerryPink400Alpha75:a,colorSkyBlue400Alpha50:n,colorSkyBlue400Alpha5:h,colorSkyBlue400Alpha75:c,colorSkyBlue500:u}=i.colors,d={val:[l,r],poc:[l,r],vah:[l,r],developingPoc:[l,r],developingVA:[u,u],valuesColor:[l,r],volumeColorUp:[n,n],volumeColorDown:[o,o],valueAreaColorUp:[c,c],valueAreaColorDown:[a,a],histogramBoxColor:[h,h]};function _(e){const t="graphics.horizlines",s="graphics.hhists",i=[{path:`${t}.pocLines.color`,colors:d.poc},{path:`${t}.vahLines.color`,colors:d.vah},{path:`${t}.valLines.color`,colors:d.val},{path:`${s}.histBars2.colors.0`,colors:d.volumeColorUp},{path:`${s}.histBars2.colors.1`,colors:d.volumeColorDown},{path:`${s}.histBars2.valuesColor`,colors:d.valuesColor},{path:`${s}.histBarsVA.colors.0`,colors:d.valueAreaColorUp},{path:`${s}.histBarsVA.colors.1`,colors:d.valueAreaColorDown},{path:`${s}.histBarsVA.valuesColor`,colors:d.valuesColor},{path:"styles.developingPoc.color",colors:d.developingPoc},{path:"styles.developingVAHigh.color",colors:d.developingVA},{path:"styles.developingVALow.color",colors:d.developingVA}];return e&&i.push({path:"graphics.polygons.histBoxBg.color",colors:d.histogramBoxColor}),i}},51106:(e,t,s)=>{s.r(t),s.d(t,{VolumeStudy:()=>l});var i=s(11485),r=s(11542);class l extends i.Study{base(){return 1}destroy(){super.destroy()}showOnTopOnHovering(){return!1} +chartFloatingTooltipView(){return this._model.paneForSource(this)===this._model.mainPane()?null:super.chartFloatingTooltipView()}_titleInParts(e,t,s,i,r,l){const o=super._titleInParts(e,t,s,i,r),a=this._getVolumeUnit();return a&&!l&&(o[0]+=` · ${a}`),o}_skippedTitleInputs(){return super._skippedTitleInputs()}_getVolumeUnit(){const e=this.symbolSource().symbolInfo();return e?function(e){switch(e.volume_type){case"base":return e.base_currency||void 0;case"quote":return e.currency||void 0;case"tick":return r.t(null,void 0,s(24821))}}({...e,currency:e.original_currency_code||e.currency_code}):void 0}}},34771:(e,t,s)=>{s.r(t),s.d(t,{study_Overlay:()=>He});var i=s(50151),r=s(87465),l=s(2072),o=s(49483),a=s(9343),n=s(11485),h=s(17776),c=s(91106),u=s(52746),d=s(95059),_=s(92211),p=s(43337),v=s(60911),y=s(37103),m=s(57025),b=s(36597),S=s(77380),g=s(72187),f=s(5471),w=s(24062),P=s(35727),C=s(80671),x=s(64651),V=s(36281),I=s(97902),R=s(52945),T=s(52859);const A=y.enabled("force_exchange_as_title");class L extends V.PriceAxisView{constructor(e){super(),this._source=e}_updateRendererData(e,t,s){e.visible=!1,t.visible=!1;const r=this._source.lastValueData("close",!1);if(r.noData)return;const l=this._source.model(),o=this._source.priceScale();if(null===o)return;if(!l.isPriceScaleVisible(o))return;const a=l.timeScale().visibleBarsStrictRange(),n=l.mainSeries().bars().lastIndex();if(null===a||null===n)return;if(n<=a.lastBar())s.background=(0,T.resetTransparency)(r.color),s.textColor=this.generateTextColor(r.color),e.borderVisible=!1,t.borderVisible=!1;else{const o=l.backgroundColorAtYPercentFromTop(r.coordinate/(0,i.ensureNotNull)(l.paneForSource(this._source)).height());s.background=o,s.textColor=(0,T.resetTransparency)(r.color),s.borderColor=s.textColor,e.borderVisible=!0,t.borderVisible=!0}s.coordinate=r.coordinate,s.floatCoordinate=r.floatCoordinate;const h=this._source.model().properties().childs().scalesProperties.childs();h.showSeriesLastValue.value()&&(e.text=(0,R.getCurrentModePriceText)(o,r),h.seriesLastValueMode.value()!==I.PriceAxisLastValueMode.LastPriceAndPercentageValue?e.secondLine="":e.secondLine=(0,R.getOppositeModePriceText)(o,r),e.visible=!0),t.text="",h.showSymbolLabels.value()&&(t.text=this._paneText(),t.visible=t.text.length>0)}_paneText(){let e="";const t=this._source.aliasSymbolInfo();return A?e=(0,d.displayedSymbolExchange)(t):this._source.model().properties().childs().scalesProperties.childs().showSymbolLabels.value()&&(e=(0,d.displayedSymbolName)(t)),e}}var B=s(30693);class D extends B.PriceLineAxisView{constructor(e){super(),this._study=e}_value(){return this._study.lastValueData("",!0)}_priceLineColor(e){return e}_lineWidth(){return 1}_isVisible(){const e=this._study.model().properties().childs().scalesProperties.childs().showSeriesLastValue.value();return this._study.properties().childs().showPriceLine.value()&&e}}var k=s(69558),F=s(94119);class N{constructor(e){this._lineRenderer=new F.HorizontalLineRenderer,this._visible=!1,this._source=e}update(){if(this._visible=!1, +!this._source.properties().childs().showPriceLine.value())return;const e=this._source.lastValueData("",!0);e.noData||(this._visible=!0,this._lineRenderer.setData({y:e.coordinate,color:e.color,linewidth:1,linestyle:k.LINESTYLE_DOTTED,visible:this._visible}))}renderer(){return this._visible?this._lineRenderer:null}}var E=s(11946),M=s(78861),O=s(36313),H=s(50335),W=s(11542),U=s(24640),z=s(56265),$=s(3885),G=s(17161),q=s(70859),j=s(63903),Q=s(53660);const Y=G.lastDayChangeAvailable||G.alwaysShowLastPriceAndLastDayChange,K=o.CheckMobile.any(),Z=(0,z.getPercentageFormatter)();var J;!function(e){e[e.Open=0]="Open",e[e.High=1]="High",e[e.Low=2]="Low",e[e.Close=3]="Close",e[e.Source=4]="Source",e[e.LastPrice=5]="LastPrice",e[e.Change=6]="Change",e[e.LastDayChange=7]="LastDayChange"}(J||(J={}));const X=Q.notAvailable,ee=`${X} (${X}%)`;class te{constructor(e,t,i=!0){this._study=e,this._model=t,this._searchNearestLeftValue=i,this._emptyValues=[{title:W.t(null,void 0,s(16610)),visible:!1,value:"",index:0,orderIndex:0,id:"open"},{title:W.t(null,void 0,s(78254)),visible:!1,value:"",index:1,orderIndex:1,id:"high"},{title:W.t(null,void 0,s(65318)),visible:!1,value:"",index:2,orderIndex:2,id:"low"},{title:W.t(null,{context:"input"},s(51408)),visible:!1,value:"",index:3,orderIndex:3,id:"close"},{title:"",visible:!1,value:"",index:4,orderIndex:4,id:"source"},{title:"",visible:!1,value:"",index:5,orderIndex:5,id:"lastPrice"},{title:W.t(null,void 0,s(37276)),visible:!1,value:"",index:6,orderIndex:6,id:"change"},{title:W.t(null,void 0,s(63815)),visible:!1,value:"",index:7,orderIndex:7,id:"lastDayChange"}]}getItems(){return this._emptyValues}getValues(e){const t=this._emptyValues.map((e=>({...e})));if(this._model.timeScale().isEmpty())return t;const s=this._study.data(),i=s.lastIndex();if(0===s.size()||null===i)return t;const r=this._searchNearestLeftValue?f.PlotRowSearchMode.NearestLeft:f.PlotRowSearchMode.Exact,l=s.search(i,r,1);if(null===l)return t;const o=this._showLastPriceAndChangeOnly();if((0,H.isNumber)(e)||(o?e=i:(e=this._model.crosshairSource().appliedIndex(),(0,H.isNumber)(e)||(e=i))),null===e||!(0,H.isNumber)(e))return t;t[0].value=X,t[1].value=X,t[2].value=X,t[3].value=X,t[7].value=ee,t[6].value=ee;const a=s.search(e,r,1),n=this._model.backgroundTopColor().value();if(null===a)return t;const h=a.index,c=a.value,u=c[1],d=c[2],_=c[3],p=c[4];for(const e of t)e.visible=!o;const v=t[4];v.visible=!1;const{barChange:m,lastDayChange:b}=(0,$.changesData)(s,this._study.quotes(),a.value,a.index,l.value),S=(0,j.getPriceValueFormatterForSource)(this._study);if((0,j.shouldBeFormattedAsPercent)(this._study)||(0,j.shouldBeFormattedAsIndexedTo100)(this._study))t[7].value="",t[6].value="";else{const e=this._study.formatter(),s={signPositive:!0};if(void 0!==m){const{currentPrice:i,prevPrice:r,change:l}=m,o=e.formatChange?.(i,r,s)??e.format(l,s);t[6].value=(0,U.forceLTRStr)(`${o} (${Z.format(m.percentChange,s)})`)}if(void 0!==b){const{currentPrice:i,prevPrice:r,change:l,percentChange:o}=b,a=e.formatChange?.(i,r,s)??e.format(l,s);t[7].value=(0, +U.forceLTRStr)(`${a} (${Z.format(o,s)})`)}}let g=null;if(o)t[5].value=null==p?X:S(p),t[5].visible=!0,g=this._getChangeColor(m?.change),t[6].visible=void 0!==m,t[7].visible=void 0!==b||Y;else{t[0].value=null==u?X:S(u),t[1].value=null==d?X:S(d),t[2].value=null==_?X:S(_),t[3].value=null==p?X:S(p),v.value=S(this._study.barFunction()(c)),t[5].visible=!1;const e=this._model.mainSeries().intervalObj().value().is1Tick(),s=21!==this._study.properties().childs().style.value();t[0].visible=!e&&s,t[1].visible=!e,t[2].visible=!e,t[7].visible=void 0!==b||Y,t[6].visible=void 0!==m;const i=this._study.barColorer().barStyle(h,!1),r=i.barBorderColor??i.barColor;g=(0,$.calculateColor)(n,r)}g=(0,T.resetTransparency)((0,$.calculateColor)(n,g));for(const e of t)e.color||(e.color=g);{const e=this._model.properties().childs().paneProperties.childs().legendProperties.childs();t[6].visible&&y.enabled("legend_bar_change_colors_based_on_value")&&e.useBarChangeCustomColors&&(t[6].color=(0,T.resetTransparency)((0,$.calculateColor)(n,this._getChangeColor(m?.change))))}return t[7].visible&&(t[7].color=(0,T.resetTransparency)((0,$.calculateColor)(n,this._getChangeColor(b?.change)))),t}_mobileNonTrackingMode(){return K&&(null===this._model.crosshairSource().pane||(0,E.isLineToolName)(M.tool.value())||null!==this._model.lineBeingEdited())}_showLastPriceAndChangeOnly(){return G.alwaysShowLastPriceAndLastDayChange||this._mobileNonTrackingMode()}_getChangeColor(e){const t=void 0===e||e>=0?q.SeriesBarColorer.upColor(this._study.properties()):q.SeriesBarColorer.downColor(this._study.properties());{const t=this._model.properties().childs().paneProperties.childs().legendProperties.childs();if(y.enabled("legend_bar_change_colors_based_on_value")&&t&&t.useBarChangeCustomColors&&t.useBarChangeCustomColors.value()){const s=void 0===e||e>=0?t.barChangeUpColor&&t.barChangeUpColor.value():t.barChangeDownColor&&t.barChangeDownColor.value();if(s)return s}}return t.barBorderColor??t.barColor}}var se=s(13212);const ie=o.CheckMobile.any();class re extends se.StudyDataWindowView{_updateImpl(){this._header=this._study.title(O.TitleDisplayTarget.DataWindow);let e;this._showLastPriceAndChangeOnly()?e=this._study.data().lastIndex():(e=this._model.crosshairSource().appliedIndex(),(null===e||isNaN(e))&&(e=this._study.data().lastIndex(),y.enabled("use_last_visible_bar_value_in_legend")&&(e=this._model.timeScale().visibleBarsStrictRange()?.lastBar()??NaN)));const t=this._valueProvider.getValues(e);for(let e=0;ee||t),s.showBarChange.weakReference(),s.showSeriesOHLC.weakReference()),this._visibilityProperty.subscribe(this,this.update.bind(this,(0,le.sourceChangeEvent)(e.id())))}areValuesVisible(){return this._visibilityProperty.value()}additional(){return this._additional}destroy(){this._backgroundColorSpawn.destroy(),this._visibilityProperty.destroy()}_updateImpl(){super._updateImpl()}_createValuesProvider(e,t){return new oe(e,t)}}var he=s(69555),ce=s(62802),ue=s(27808),de=s(32399),_e=s(4249),pe=s(46340),ve=s(43501),ye=s(54405),me=s(85630),be=s(88732),Se=s(54370),ge=s(12965);class fe extends ge.StudyStatusProvider{getSplitTitle(){return this._source.titleInParts(O.TitleDisplayTarget.StatusLine,!0,void 0,!1,!1)}text(){return this._source.isActualInterval()?this._source.isFailed()?`${this._source.title(O.TitleDisplayTarget.StatusLine,!0,void 0,!1,!1)}: ${this.sourceStatusText()}`:`${this._source.title(O.TitleDisplayTarget.StatusLine,!0,void 0,!1,!1)} ${this.sourceStatusText()}`:this._source.title(O.TitleDisplayTarget.StatusLine,!0,void 0,!1,!1)}}var we=s(55803),Pe=s(27909);class Ce extends oe{_showSeriesOHLC(){return!0}}var xe=s(28334),Ve=s(11768);class Ie{constructor(e,t){this._study=e,this._model=t,this._valuesProvider=new te(e,t,!1)}getItems(){const e=this._valuesProvider.getItems(),t=this._study.style();return(0,Ve.fillSymbolSourceValuesProviderItemsVisibility)(e,this._study.priceSource(),t,this._model),e[7].visible=!1,e}getValues(e){const t=this._study.data().lastIndex(),s=this._study.data().firstIndex();return null===t||null===s||e>t||ee.realignLineTools(this))),e.mainSeries().onIntervalChanged().subscribe(this,(()=>this._checkStyle())), +this._conflatedChunksBuilder=new we.ConflatedChunksBuilder(this._data,(e=>u.barFunctions[e])),this._symbolInfoWV=(0,ae.createWVFromGetterAndSubscriptions)((()=>this.symbolInfo()),[this.symbolResolved(),this.onStatusChanged()]),(this._aliasSymbolInfoWV||this._symbolInfoWV).subscribe((()=>this._recreatePriceFormattingDependencies())),this._overlayValuesProvider=new te(this,e),this._overlayLegendValuesProvider=new oe(this,e),this._overlayTableViewValuesProvider=new Ie(this,e),this._overlayChartFloatingTooltipValuesProvider=new Ce(this,e),this._symbolSourceWV=(0,Re.combine)((e=>e?this:super.symbolSource()),this._isActingAsSymbolSource.weakReference())}destroy(){this._model.mainSeries().onIntervalChanged().unsubscribeAll(this),this._quotesProvider.destroy(),this._symbolInfoWV.destroy(),this._symbolSourceWV.destroy(),this._aliasSymbolInfoWV?.release(),super.destroy()}isActingAsSymbolSource(){return this._isActingAsSymbolSource.readonly()}precomputedBarStyle(e){return this._precomputedBarStyles.get(e)}setPrecomputedBarStyle(e,t){this._precomputedBarStyles.set(e,t)}properties(){return this._properties}barColorer(){return new q.SeriesBarColorer({data:()=>this.data(),bars:()=>this.data(),nsBars:()=>new g.PlotList,priceScale:()=>(0,i.ensureNotNull)(this.priceScale()),properties:()=>this.properties(),firstValue:()=>this.firstValue(),barFunction:()=>this.barFunction(),lineColorAtYPercentFromTop:e=>this.lineColorAtYPercentFromTop(e)})}symbolParams(){return(0,b.symbolParams)(this)}compareSymbolParams(e){return(0,b.compareSymbolParams)(this,e,this._model.unitConversionEnabled())}async setSymbolParams(e){this._setSymbolParamsInternal(e)}symbol(){return this.properties().childs().inputs.childs().symbol.value()}symbolOrAlias(){const e=this.symbol(),t=this._model.symbolAliasService()?.getAliasByProName(e);return t?.aliasName??e}symbolChanged(){return this.properties().childs().inputs.childs().symbol}onSymbolIntervalChanged(){return this.symbolChanged()}setSymbol(e){this.setSymbolParams({symbol:e})}symbolInfo(){if(!this._resolvedSymbols)return null;const e=this._properties.childs().inputs.childs().symbol.value();if(!e)return null;let t;return t=this._resolvedSymbols[this._getSymbolForResolve(e)]||null,t}symbolInfoWV(){return this._symbolInfoWV.readonly()}aliasSymbolInfo(){return(this._aliasSymbolInfoWV??this._symbolInfoWV??new l.WatchedValue(null)).value()}supportsConflatedChunks(){return!0}conflatedChunks(e,t){return this._conflatedChunksBuilder.conflatedChunks(e,t)}symbolResolved(){return this.symbolsResolved()}symbolResolvingActive(){return this._symbolResolvingActive}symbolHibernated(){return this._symbolHibernated}isVisible(){const e=super.isVisible();return this._symbolHibernated.setValue(!e),e}symbolSameAsCurrent(e){return(0,b.symbolSameAsCurrent)(e,this.symbolInfo())}symbolSameAsResolved(e){return(0,S.symbolSameAsResolved)(e,this._lastResolvedSymbolSource,this.symbol())}priceSource(){const e=this.properties().childs();switch(e.style.value()){case 2:return e.lineStyle.childs().priceSource.value();case 14: +return e.lineWithMarkersStyle.childs().priceSource.value();case 15:return e.steplineStyle.childs().priceSource.value();case 3:return e.areaStyle.childs().priceSource.value();case 10:return e.baselineStyle.childs().priceSource.value();case 13:return e.columnStyle.childs().priceSource.value()}return null}barFunction(){return this._barFunction}quotesProvider(){return this._quotesProvider}quotes(){return this._quotesProvider.quotes()}currency(){return this.properties().childs().currencyId.value()||null}setCurrency(e){this.setSymbolParams({currency:e})}isConvertedToOtherCurrency(){return(0,d.isConvertedToOtherCurrency)(this.symbolInfo())}unit(){return this.properties().childs().unitId.value()||null}setUnit(e){this.setSymbolParams({unit:e})}isConvertedToOtherUnit(){return(0,d.isConvertedToOtherUnit)(this.symbolInfo(),this._model.unitConversionEnabled())}style(){return this.properties().childs().style.value()}setStyle(e){this.setSymbolParams({style:e})}interval(){return this._model.mainSeries().interval()}setInterval(e){}valueAt(e,t){return this.data().search(e)?.value[t]??null}symbolSource(){return this}symbolSourceWV(){return this._symbolSourceWV}barsProvider(){return this}state(e,t){const s=super.state(e,t);this._model.unitConversionEnabled()||delete s.state.unitId;const r=this.symbol();return s.state.inputs.symbol=(0,d.symbolToSaveInState)(this.symbolInfo()??this._model.chartApi().lastSymbolResolveInfo(r),r),e&&((0,i.ensureDefined)(s.data).symbols={___snapshot:this.symbolInfo()||void 0}),s}symbolTitle(e,t,s){return this.title(e,!0,{},!1,t)}title(e,t,s,i,r){const l=this._titleInParts(e,t,s,i,r);return[l[0],...l[1]??[]].join(` ${d.symbolTitleSeparator} `)}titleInParts(e,t,s,i,r){return[this.title(e,t,s,i,r)]}firstValue(){const e=this._model.timeScale().visibleBarsStrictRange();if(null===e)return null;const t=e.firstBar();if(0===this.data().size())return this._ownFirstValue;const s=this.data().search(t,f.PlotRowSearchMode.NearestRight,1);return this._ownFirstValue=null!==s?this._barFunction(s.value,0):null,this._ownFirstValue}lineColorAtYPercentFromTop(e){switch(this.style()){case 2:return this.properties().childs().lineStyle.childs().color.value();case 14:return this.properties().childs().lineWithMarkersStyle.childs().color.value();case 15:return this.properties().childs().steplineStyle.childs().color.value()}return null}lastValueData(e,t,s){const i={noData:!0},l=this.priceScale();if(this._model.timeScale().isEmpty()||null===l||l.isEmpty()||this.data().isEmpty())return i;const o=this._model.timeScale().visibleBarsStrictRange();if(null===o)return i;const a=this.properties().childs();if(!a.visible.value())return i;const n=this.nearestIndex(o.lastBar(),f.PlotRowSearchMode.NearestLeft,1);if(void 0===n)return i;const h=this.firstValue();if(null===h)return i;const c=this._lastNonEmptyPlotRow(4),u=null!==c&&o.contains(c.index),d=null!==c?c.value:null,_=t||u?d:this.data().valueAt(n);if(null===_)return i;const p=this._barFunction(_,2);if(!(0,r.isNumber)(p))return i;const v=l.priceToCoordinate(p,h);let y;switch(a.style.value()){ +case 0:y=_[1]<=_[4]?a.barStyle.childs().upColor.value():a.barStyle.childs().downColor.value();break;case 1:y=_[1]<=_[4]?a.candleStyle.childs().upColor.value():a.candleStyle.childs().downColor.value();break;case 9:y=_[1]<=_[4]?a.hollowCandleStyle.childs().upColor.value():a.hollowCandleStyle.childs().downColor.value();break;case 13:y=_[1]<=_[4]?a.columnStyle.childs().upColor.value():a.columnStyle.childs().downColor.value();break;case 2:y=a.lineStyle.childs().color.value();break;case 14:y=a.lineWithMarkersStyle.childs().color.value();break;case 15:y=a.steplineStyle.childs().color.value();break;case 3:y=a.areaStyle.childs().linecolor.value();break;case 16:y=a.hlcAreaStyle.childs().closeLineColor.value();break;case 10:{const e=a.baselineStyle.childs();y=ve.StudyOverlayDefinitionsViewModel))}_setQuotesSymbol(e){const t=this.symbolInfo(),s=(0,_.extractSymbolNameFromSymbolInfo)(t,e);this._quotesProvider.setQuotesSessionSymbol(s)}_onQuotesUpdate(e,t){!this._legendView||void 0===t.values.change&&void 0===t.values.change_percent||(this._legendView.update((0,le.sourceChangeEvent)(this.id())),this._model.updateSource(this))}_createViews(){this._priceAxisViews=[];const e=new L(this);this._priceAxisViewsBase=[e];const t=new D(this) +;this._priceLinesAxisViews=[t],this._paneViews=[],this._labelPaneViews=[];let s=null,r=null;switch(this.properties().childs().style.value()){case 0:r=new ce.SeriesBarsPaneView(this,this._model);break;case 1:r=new ue.SeriesCandlesPaneView(this,this._model);break;case 9:r=new ye.SeriesHollowCandlesPaneView(this,this._model);break;case 13:r=new me.SeriesColumnsPaneView(this,this._model);break;case 2:case 14:case 15:r=new de.SeriesLinePaneView(this,this._model);break;case 3:r=new _e.SeriesAreaPaneView(this,this._model);break;case 16:r=new pe.SeriesHLCAreaPaneView(this,this._model);break;case 10:{r=new ve.SeriesBaselinePaneView(this,this._model);const e=this.properties().childs().baselineStyle.childs();s=new x.SeriesWaterlinePaneView({paneHeight:()=>(0,i.ensureNotNull)(this.priceScale()).height(),color:()=>e.baselineColor.value(),baseLevelPercentage:()=>e.baseLevelPercentage.value()});break}case 12:r=new be.SeriesHiLoPaneView(this,this._model);break;case 21:r=new xe.SeriesHLCBarsPaneView(this,this._model)}r&&this._paneViews.push(r),null!==s&&this._paneViews.push(s),this._paneViews.push(new N(this)),this._dataWindowView||(this._dataWindowView=new re(this,this._model)),this._legendView||(this._legendView=new ne(this,this._model)),this._statusView||(this._statusView=new C.StudyStatusView(this)),this._floatingTooltipView||(this._floatingTooltipView=new Pe.StudyChartFloatingTooltipView(this,this._model)),this._priceAxisViews=[...this._priceAxisViewsBase],this._labelPaneViews.push(new he.PanePriceAxisView(e,this,this._model))}_createStudyOnServer(){const e=super._createStudyOnServer();return this._realignLineToolsIfParamsChanged(),e}_modifyStudyOnServer(e){super._modifyStudyOnServer(e,0)}_titleInParts(e,t,s,i,r){const l=this.symbolInfo();return[this._getSymbolTitlePart(l),[this._getExchangeTitlePart(l,r),this._getPriceSourceTitlePart(l)].filter((e=>null!==e))]}_mergeData(e){return this._invalidateLastNonEmptyPlotRowCache(),this._conflatedChunksBuilder.mergeData(e)}_clearData(){this._conflatedChunksBuilder.clearData()}_moveData(e){this._conflatedChunksBuilder.moveData(e)}_getSymbolTitlePart(e){if(null===e)return ke?"":(e=>this._model.symbolAliasService()?.getAliasByProName(e)?.aliasName??e)(this.properties().childs().inputs.childs().symbol.value());const t=this._model.symbolAliasService()?.getAliasByProName(e.pro_name)?.aliasName??e.name;if(Be)switch(this._model.mainSeries().symbolTextSourceProxyProperty().value()){case"description":return e.description;case"ticker-and-description":return`${t}, ${e.description}`;case"long-description":return e.long_description??e.description}return t}_getExchangeTitlePart(e,t){return null===e||t?null:(0,d.getSymbolListedExchange)(e)}_getPriceSourceTitlePart(e){return Ne&&!1!==this._model.properties().childs().paneProperties.childs().legendProperties.childs().showPriceSource.value()&&void 0!==e?.price_source_id?this._model.availablePriceSources(this.getSymbolString(this._getSymbolForApi(this.symbol()))).name(e.price_source_id)??null:null}_onAllowExtendTimeScaleChanged(){if(!De)return +;const e=this.isStarted();e&&this.stop(!0);const t=this.properties().childs().allowExtendTimeScale.value();this.properties().childs().inputs.childs().extendTimeScale.setValue(t),e&&this.start(!0)}_setSymbolParamsInternal(e,t){const{symbol:s,currency:i,unit:r,style:l}=e,o=this.properties().childs(),a=o.inputs.childs().symbol.value(),n=o.currencyId.value(),h=o.unitId.value(),c=o.style.value();if(void 0!==s&&o.inputs.childs().symbol.setValueSilently(s),void 0!==i&&o.currencyId.setValueSilently(i),void 0!==r&&o.unitId.setValueSilently(r),void 0!==l&&o.style.setValueSilently(l),t)this._resolvedSymbolsByInput[this.symbol()]=t,this._resolvedSymbols[this._getSymbolForResolve(this.symbol())]=t,this._realignToolsLastParams=null;else{const e=this.symbolInfo();null!==e&&(o.currencyId.setValueSilently((0,d.symbolCurrency)(e)),o.unitId.setValueSilently((0,d.symbolUnit)(e,this._model.unitConversionEnabled())))}o.inputs.childs().symbol.value()!==a&&o.inputs.childs().symbol.fireChanged(),o.currencyId.value()!==n&&o.currencyId.fireChanged(),o.unitId.value()!==h&&o.unitId.fireChanged(),o.style.value()!==c&&o.style.fireChanged(),this._checkStyle(),this._realignLineToolsIfParamsChanged()}_updateBarFunction(){this._barFunction=(0,h.barFunctionByStyle)(this.style(),this.priceSource())}_onMinTickChanged(){this._recreatePriceFormattingDependencies(),this.updateAllViews({type:"global-change"}),this._model.fullUpdate()}_onChartStyleChanged(){this._updateBarFunction(),this._styleToRecover?.originalStyle!==this.style()&&(this._styleToRecover=null)}_checkStyle(){const e=this.style();(0,d.isCloseBasedSymbol)(this.symbolInfo())||this.model().mainSeries().intervalObj().value().is1Tick()?(0,d.isSingleValueBasedStyle)(e)||(this.setStyle(2),this._styleToRecover={correctedStyle:this.style(),originalStyle:e}):null!==this._styleToRecover&&(this.setStyle(this._styleToRecover.originalStyle),this._styleToRecover=null)}_realignLineToolsIfParamsChanged(){let e=null===this._realignToolsLastParams;if(null!==this._realignToolsLastParams){const t=this.compareSymbolParams(this._realignToolsLastParams);e=t.symbolChanged||t.intervalChanged||t.currencyChanged||t.unitChanged}e&&(this._model.realignLineTools(this),this._realignToolsLastParams=this.symbolParams())}}}}]); \ No newline at end of file diff --git a/charting_library/bundles/studies.3ad353a5758b0064f87a.js b/charting_library/bundles/studies.3ad353a5758b0064f87a.js deleted file mode 100644 index 3c103ecb..00000000 --- a/charting_library/bundles/studies.3ad353a5758b0064f87a.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[7539],{52973:(e,t,s)=>{s.r(t),s.d(t,{Sessions:()=>_});var i=s(50151),r=s(19844),l=s(19136),a=s(45530),o=s(67563),n=s(66786),h=s(37103),c=s(40472),u=s(72972);const d=new o.PriceFormatter;class _ extends n.CustomSourceBase{constructor(e,t,s,i){super(e,t),this._studySource=null,this._paneViews=[],this._metaInfo=null,this._destroyed=!1,this._isStarted=!1,this._loadedGraphics=null,this._doubleClickHandler=i,this._properties=s,this._properties.subscribe(this,this._onPropertiesChanged),this._requestAndProcessMetaInfo(),t.timeScale().onReset().subscribe(this,this._clearData),t.timeScale().logicalRangeChanged().subscribe(this,this.updateAllViews.bind(this,(0,c.viewportChangeEvent)())),t.mainSeries().properties().childs().interval.subscribe(this,this._processHibernate)}start(){this._isStarted=!0,this._processHibernate()}restart(){this._clearData(),h.enabled("stop_study_on_restart")&&this.stop(),this.start()}isStarted(){return this._isStarted}stop(){this._isStarted=!1,null!==this._studySource&&this._studySource.stop()}isHoveredEnabled(){return!1}paneViews(e){return this._paneViews}updateAllViews(e){this._paneViews.forEach((t=>t.update(e)))}updateViewsForPane(e,t){this.updateAllViews(t)}destroy(){this._destroyed=!0,null!==this._studySource&&(this._studySource.dataCleared().unsubscribeAll(this),this._studySource.dataUpdated().unsubscribeAll(this),this._studySource.destroy(),this._studySource=null),this._model.timeScale().logicalRangeChanged().unsubscribeAll(this),this._model.timeScale().onReset().unsubscribeAll(this),this._model.mainSeries().properties().childs().interval.unsubscribeAll(this),this._properties.unsubscribeAll(this)}series(){return this._model.mainSeries()}priceScale(){return this.series().priceScale()}graphics(){return this._loadedGraphics||(0,i.ensureNotNull)(this._studySource).graphics()}valueAt(e,t){return null}properties(){return this._properties}graphicsInfo(){return(0,i.ensureNotNull)(this._metaInfo).graphics}firstValue(e){return this._model.mainSeries().firstValue()}formatter(){return d}stateData(){return null!==this._metaInfo?{graphics:(0,a.saveStudyGraphics)(this.graphics(),this._model.timeScale().visibleBarsStrictRange()),metaInfo:this._metaInfo.state()}:null}restoreStateData(e){void 0!==e&&(this._loadStudyGraphics(e.graphics),this._setMetaInfo(new r.StudyMetaInfo(e.metaInfo)),this._createPaneViews())}metaInfo(){return(0,i.ensureNotNull)(this._metaInfo)}async _requestAndProcessMetaInfo(){if(this._model.isSnapshot())return;const e=await(0,u.studyMetaInfoRepository)().findById({type:"java",studyId:"Sessions@tv-basicstudies"});this._destroyed||null===this._loadedGraphics&&(this._setMetaInfo(e),null!==this._metaInfo&&(this._studySource=new l.StudyDataSource(this._model.chartApi(),this._model.mainSeries().seriesSource(),"sessions_",this._metaInfo),this._createPaneViews(),this._studySource.dataCleared().subscribe(this,this.updateAllViews.bind(this,(0,c.sourceChangeEvent)(this.id()))), -this._studySource.dataUpdated().subscribe(this,this.updateAllViews.bind(this,(0,c.sourceChangeEvent)(this.id()))),this._studySource.setInputs({}),this._processHibernate()))}_loadStudyGraphics(e){const t=e.backgrounds;if(void 0!==t){const e=t.findIndex((e=>"inSession"===e.styleId));-1!==e&&t.splice(e,1)}this._loadedGraphics=(0,a.loadStudyGraphics)(e)}_setMetaInfo(e){const t=e.graphics.backgrounds;void 0!==t&&void 0!==t.inSession&&delete t.inSession,this._metaInfo=e}_clearData(){null!==this._studySource&&this._studySource.clearData()}_createPaneViews(){const e={doubleClickHandler:this._doubleClickHandler};(0,a.createGraphicsPaneViews)(this,this._model,e).then((e=>{this._paneViews=e.regularPaneViews,this._model.lightUpdate()}))}_onPropertiesChanged(){this._processHibernate(),this.updateAllViews((0,c.sourceChangeEvent)(this.id()))}_processHibernate(){if(null!==this._studySource){const e=this._canBeHibernated(),t=this._isHibernated(),s=this._studySource.isStarted();!t&&e&&s?this._studySource.stop():!t||e||s||this._studySource.start()}}_canBeHibernated(){if(this._model.mainSeries().isDWM())return!0;const e=this._properties.childs().sessionHighlight.childs(),{preMarket:t,postMarket:s,electronic:i,outOfSession:r}=e.backgrounds.childs(),{sessBreaks:l}=e.vertlines.childs(),a=t.childs().available.value()&&t.childs().visible.value()||s.childs().available.value()&&s.childs().visible.value()||i.childs().available.value()&&i.childs().visible.value()||r.childs().available.value()&&r.childs().visible.value(),o=l.childs().available.value()&&l.childs().visible.value();return!a&&!o}_isHibernated(){return this._isStarted&&(null===this._studySource||!this._studySource.isStarted())}}},96664:(e,t,s)=>{s.r(t),s.d(t,{study_PivotPointsStandard:()=>B});var i=s(50151),r=s(11485);class l extends r.Study{isLinkedToSeries(){return!0}clearData(){this._customData=null,this._indexes=null}restoreData(e,t,s){super.restoreData(e),this._customData=t,this._indexes=s}state(e){const t=super.state(e);return e&&(t.nonSeriesData=this._customData,t.indexes=this._indexes),t}customData(){return this._customData}_setPaneViews(e){this._paneViews=e,this.model().lightUpdate()}_onDataUpdated(e,t,s){null!==t&&(t.indexes_replace?((0,i.assert)("nochange"!==s),this._indexes=s):(this._customData=t.data,"nochange"!==s&&(this._indexes=s))),super._onDataUpdated(e,t,s)}}var a=s(27714),o=s(33350);class n{constructor(e,t,s,i){this._priceAxisFontSize=11,this._prices=[],this._labelWidth=0,this._pixelRatioParams=e,this._recreateCanvasAndContext((0,a.size)({width:0,height:0})),this.reset({font:t,fontSize:s,backColors:i})}destroy(){delete this._canvas,delete this._cache}canvas(){return this._canvas}reset(e){this._renderParams=e,this._prices=[],this._cache.font=e.fontSize+"px "+e.font,this._labelWidth=["P","S1","R1","S2","R2","S3","R3","S4","R4","S5","R5","/"].reduce(((e,t)=>{const s=this._cache.measureText(t).width;return Math.max(s,e)}),0)}rowHeight(){return this._priceAxisFontSize+4}labelRectByIndex(e){return{left:0,top:Math.round(this._topByIndex(e)), -width:Math.round(this._labelWidth+4),height:Math.round(this._renderParams.fontSize+8)}}setPrices(e){let t=!1;const s=(e,t)=>{const s=void 0===e,r=void 0===t;return(!s&&!r||s===r)&&(0,i.ensureDefined)(e).formatted===(0,i.ensureDefined)(t).formatted};if(e.length!==this._prices.length)t=!0;else for(let i=0;i{this._cache.translate(.5,.5),this._cache.font=this._renderParams.fontSize+"px "+this._renderParams.font,this._cache.textBaseline="middle";for(let e=0;e=l||h)){this._visiblePivots.add(a[e]),this._prices=[];for(let s=0;s=t.left&&e.x<=t.left+t.width&&e.y>=t.top&&e.y<=t.top+t.height)return new x.HitTestResult(x.HitTarget.Regular);return null}_drawImpl(e){const t=this._cacheProvider(e),{horizontalPixelRatio:s,verticalPixelRatio:i,context:r}=e;this._drawRects=[];const l=e=>{const l=t.labelRectByIndex(e),a={left:Math.round(this._point.x-l.width+o),top:Math.round(this._point.y-l.height/2),width:l.width,height:l.height};return r.drawImage(t.canvas(),Math.round(l.left*s),Math.round(l.top*i),l.width*s,l.height*i,Math.round(a.left*s),Math.round(a.top*i),a.width*s,a.height*i),this._drawRects.push(a),l.width},a=this._label.split("/");let o=0;for(let e=0;e0&&(o+=l(t+11)/2),o+=l(t)/2}}}function R(e){return"P"===e?e:"S"+e[1]+"/R"+e[1]}function T(e,t,s){const i=t;void 0===e[i]?e[i]={text:s,ids:[R(s)]}:(e[i].text+="/"+s,e[i].ids.push(R(s)))}class A{constructor(e,t){this._pivots=[],this._invalidated=!0,this._renderer=new P.CompositeRenderer,this._model=e,this._source=t,this._cacheProvider=this._source.getCache.bind(this._source)}update(e){this._invalidated=!0}renderer(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._renderer}_updateImpl(){this._renderer.clear();const e=this._source.ownerSource();if(null===e)return;this._source.pricesView().prices(),this._pivots=[];const t=this._source.customData();if(!t||!t.pivots)return;const s=this._source.properties().childs();if(!s.visible.value())return -;const r=t.pivots,l=this._source.indexes(),a=this._model.timeScale(),o=this._source.priceScale(),n=e.firstValue();if(!o||o.isEmpty()||a.isEmpty()||!r||!l||null===n)return;const h=(0,i.ensureNotNull)(a.visibleBarsStrictRange()),c=h.firstBar(),u=h.lastBar();for(let e=0;eu)continue;const h={},d=s.levelsStyle.childs().visibility.childs();d.P.value()&&T(h,r[e].p,"P"),d["S1/R1"].value()&&(T(h,r[e].s1,"S1"),T(h,r[e].r1,"R1")),d["S2/R2"].value()&&(T(h,r[e].s2,"S2"),T(h,r[e].r2,"R2")),d["S3/R3"].value()&&(T(h,r[e].s3,"S3"),T(h,r[e].r3,"R3")),d["S4/R4"].value()&&(T(h,r[e].s4,"S4"),T(h,r[e].r4,"R4")),d["S5/R5"].value()&&(T(h,r[e].s5,"S5"),T(h,r[e].r5,"R5"));const _=a.indexToCoordinate(t),p=a.indexToCoordinate(i);for(const t of Object.keys(h)){const s=parseFloat(t),i=o.priceToCoordinate(s,n);this._pivots.push({x1:_,x2:p,y:i,label:h[t].text,labelIds:h[t].ids,src:r[e]})}}const d=s.levelsStyle.childs().colors,_=s.levelsStyle.childs().widths,p=this._source.visiblePivots();for(let e=0;ethis.processHibernate()))}pricesView(){return this._pricesView}indexes(){return this._indexes}properties(){return this._properties}getCache(e){if(null===this._cache||null==this._cachedPixelRatioParams||(t=e,s=this._cachedPixelRatioParams,t.horizontalPixelRatio!==s.horizontalPixelRatio||t.verticalPixelRatio!==s.verticalPixelRatio)){this._cache&&this._cache.destroy();const t=this._getActualCacheParams(),s={horizontalPixelRatio:e.horizontalPixelRatio,verticalPixelRatio:e.verticalPixelRatio};this._cache=new n(s,t.font,t.fontSize,t.backColors),this._cache.setPrices((0,i.ensureNotNull)(this._pricesView).prices()),this._cachedPixelRatioParams=s,this._cache.reset(t)}var t,s;return this._cache}priceLabelText(e){return this._metaInfo.value().shortDescription+":"+e.toUpperCase()}updateAllViews(e){super.updateAllViews(e),this._pricesView.update()}visiblePivots(){return this._pricesView.visiblePivots()}isVisible(){if(!this.properties().childs().visible.value()||!this.isActualInterval())return!1;const e=["P","S1/R1","S2/R2","S3/R3","S4/R4","S5/R5"],t=this.properties().childs().levelsStyle.childs().visibility;for(let s=0;st)continue;const o=[],n=this.properties().childs().levelsStyle.childs().visibility.childs();n.P.value()&&o.push(r[s].p),n["S1/R1"].value()&&o.push(r[s].s1,r[s].r1),n["S2/R2"].value()&&o.push(r[s].s2,r[s].r2),n["S3/R3"].value()&&o.push(r[s].s3,r[s].r3),n["S4/R4"].value()&&o.push(r[s].s4,r[s].r4),n["S5/R5"].value()&&o.push(r[s].s5,r[s].r5);for(let e=0;e{s.r(t),s.d(t,{study_ScriptWithDataOffset:()=>n});var i=s(50151),r=s(4148),l=s(72187),a=s(11485),o=s(64717);class n extends a.Study{constructor(e,t,s,i,r,a){super(e,t,s,i,r,a),this._underlyingData=new l.PlotList((0,o.studyPlotFunctionMap)(i),o.studyEmptyPlotValuePredicate)}clearData(){super.clearData(),this._underlyingData.clear()}_mergeData(e){this._invalidateLastNonEmptyPlotRowCache();const t=this._underlyingData.firstIndex();this._underlyingData.merge(e),t!==this._underlyingData.firstIndex()&&(this._data=new l.PlotList((0,o.studyPlotFunctionMap)(this._metaInfo.value()),o.studyEmptyPlotValuePredicate));let s=null;const i=this._data.lastIndex()??this._underlyingData.firstIndex(),a=this._underlyingData.lastIndex();if(null!==i&&null!==a)for(const e of this._underlyingData.rangeIterator(i,a))null===s&&(s=e),this._data.add(e.index,(0,r.clone)(e.value));for(const e of this._plotsForStrategyProcessing()){new h(e.strategyIndex,e.targetIndex,i).rebuildData(this._data)}return s}_plotsForStrategyProcessing(){const e=this._metaInfo.value(),t=[];return e.plots.forEach(((s,r)=>{ -if("dataoffset"!==s.type)return;const l=e.plots.findIndex((e=>e.id===s.target));(0,i.assert)(l>=0,`target plot not found for strategy plot ${s.id}`),t.push({strategyIndex:r,targetIndex:l})})),t}}class h{constructor(e,t,s){this._strategyPlotIndex=e,this._targetPlotIndex=t,this._startIndex=s}rebuildData(e){const t=this._targetPlotIndex+1,s=this._strategyPlotIndex+1;let i=null,r=null;const l=this._startIndex??e.firstIndex(),a=e.lastIndex();if(null!==l&&null!==a)for(const{index:o,value:n}of e.rangeIterator(l,a)){const l=n[t],a=n[s]?Math.round(n[s]):null;if(n[t]=null,n[s]=null,!a||a>0)continue;const h=o+a,c={pointIndex:h,value:l};if(r){if(r.pointIndex!==c.pointIndex){if(h>=0){const s=e.valueAt(h);s&&(s[t]=l)}let s=!1;if(i&&r&&(s=i.value<=r.value&&r.value<=l||i.value>=r.value&&r.value>=l),s){if(r.pointIndex>=0){const s=e.valueAt(r.pointIndex);s&&(s[t]=null)}}else i=r;r=c}}else r=c}}}},10635:(e,t,s)=>{s.r(t),s.d(t,{VbPVisibleWrapper:()=>y,VolumeProfileBaseStudy:()=>d,VolumeProfileStudyWithThemedColors:()=>_,VolumeProfileWithPriceRangeStudy:()=>p});var i=s(50151),r=s(22613),l=s(24062);var a=s(36281),o=s(52859);class n extends a.PriceAxisView{constructor(e,t){super(),this._source=e,this._styleId=t}_updateRendererData(e,t,s){e.visible=!1;const i=this._source.priceScale(),r=this._source.properties().childs();if(!i||i.isEmpty()||!r.visible.value())return;const l=this._source.properties().childs().graphics.childs().horizlines?.childs()[this._styleId].childs();if(!(l&&l.visible&&l.visible.value()&&this._isLabelVisibleAccordinglyToProperties()))return;const a=this._source.model().timeScale().logicalRange(),n=this._source.firstValue();if(null===n||null===a)return;const h={price:NaN,time:-1/0},c=this._source.graphics().horizlines().get(this._styleId);if(void 0===c)return;for(const e of c){if(void 0===e.level)continue;const t=a.contains(e.startIndex,!0);t===a.contains(e.endIndex,!0)&&0!==t||h.timenew n(this,e)))}_createStudyPlotPaneView(e){return new c.StudyPlotPaneView(this,this._series,this._model,e,this._needExtendToBarsEnding())}_apiInputs(){return{...super._apiInputs(),mapRightBoundaryToBarStartTime:!!this._needExtendToBarsEnding()||void 0}}_needExtendToBarsEnding(){return void 0!==this.metaInfo().defaults.inputs?.mapRightBoundaryToBarStartTime}}class _ extends d{constructor(e,t,s,i,r,l){t.setThemedColors((0,u.volumeProfileThemedColors)(t.childs().graphics.childs().polygons?.hasChild("histBoxBg"))),super(e,t,s,i,r,l)}}class p extends _{priceRange(e,t,s){if(s.targetPriceScale!==this.priceScale())return null;let r=!1;this.graphics().hhists().forEach(((e,t)=>{r=r||(0,i.ensureDefined)(this.properties().childs().graphics.childs().hhists?.childs()[t]).value()}));const a=function(e,t,s,i){let r=null;return e.forEach((e=>{e.forEach((e=>{const i=e.firstBarTime;null!==i&&i<=s&&e.lastBarTime>=t&&(null===r?r={low:{l:e.priceLow,h:e.priceHigh},high:{h:e.priceHigh}}:(e.priceLow{s.d(t,{volumeProfileThemedColors:()=>_});var i=s(49156);const{colorColdGray200:r,colorColdGray900:l,colorBerryPink400Alpha50:a,colorBerryPink400Alpha75:o,colorSkyBlue400Alpha50:n,colorSkyBlue400Alpha5:h,colorSkyBlue400Alpha75:c,colorSkyBlue500:u}=i.colors,d={val:[l,r],poc:[l,r],vah:[l,r],developingPoc:[l,r],developingVA:[u,u],valuesColor:[l,r],volumeColorUp:[n,n],volumeColorDown:[a,a],valueAreaColorUp:[c,c],valueAreaColorDown:[o,o],histogramBoxColor:[h,h]};function _(e){const t="graphics.horizlines",s="graphics.hhists",i=[{path:`${t}.pocLines.color`,colors:d.poc},{path:`${t}.vahLines.color`,colors:d.vah},{path:`${t}.valLines.color`,colors:d.val},{path:`${s}.histBars2.colors.0`,colors:d.volumeColorUp},{path:`${s}.histBars2.colors.1`,colors:d.volumeColorDown},{path:`${s}.histBars2.valuesColor`,colors:d.valuesColor},{path:`${s}.histBarsVA.colors.0`,colors:d.valueAreaColorUp},{path:`${s}.histBarsVA.colors.1`,colors:d.valueAreaColorDown},{path:`${s}.histBarsVA.valuesColor`,colors:d.valuesColor},{path:"styles.developingPoc.color",colors:d.developingPoc},{path:"styles.developingVAHigh.color",colors:d.developingVA},{path:"styles.developingVALow.color",colors:d.developingVA}];return e&&i.push({path:"graphics.polygons.histBoxBg.color",colors:d.histogramBoxColor}),i}},51106:(e,t,s)=>{s.r(t),s.d(t,{VolumeStudy:()=>l});var i=s(11485),r=s(11542);class l extends i.Study{base(){return 1}destroy(){super.destroy()}showOnTopOnHovering(){return!1} -chartFloatingTooltipView(){return this._model.paneForSource(this)===this._model.mainPane()?null:super.chartFloatingTooltipView()}_titleInParts(e,t,s,i,r,l){const a=super._titleInParts(e,t,s,i,r),o=this._getVolumeUnit();return o&&!l&&(a[0]+=` · ${o}`),a}_skippedTitleInputs(){return super._skippedTitleInputs()}_getVolumeUnit(){const e=this.symbolSource().symbolInfo();return e?function(e){switch(e.volume_type){case"base":return e.base_currency||void 0;case"quote":return e.currency||void 0;case"tick":return r.t(null,void 0,s(24821))}}({...e,currency:e.original_currency_code||e.currency_code}):void 0}}},34771:(e,t,s)=>{s.r(t),s.d(t,{study_Overlay:()=>He});var i=s(50151),r=s(87465),l=s(2072),a=s(49483),o=s(9343),n=s(11485),h=s(17776),c=s(91106),u=s(52746),d=s(95059),_=s(92211),p=s(43337),y=s(60911),v=s(37103),m=s(57025),b=s(36597),S=s(77380),g=s(72187),f=s(5471),w=s(24062),P=s(35727),C=s(80671),x=s(64651),V=s(36281),I=s(97902),R=s(52945),T=s(52859);const A=v.enabled("force_exchange_as_title");class L extends V.PriceAxisView{constructor(e){super(),this._source=e}_updateRendererData(e,t,s){e.visible=!1,t.visible=!1;const r=this._source.lastValueData("close",!1);if(r.noData)return;const l=this._source.model(),a=this._source.priceScale();if(null===a)return;if(!l.isPriceScaleVisible(a))return;const o=l.timeScale().visibleBarsStrictRange(),n=l.mainSeries().bars().lastIndex();if(null===o||null===n)return;if(n<=o.lastBar())s.background=(0,T.resetTransparency)(r.color),s.textColor=this.generateTextColor(r.color),e.borderVisible=!1,t.borderVisible=!1;else{const a=l.backgroundColorAtYPercentFromTop(r.coordinate/(0,i.ensureNotNull)(l.paneForSource(this._source)).height());s.background=a,s.textColor=(0,T.resetTransparency)(r.color),s.borderColor=s.textColor,e.borderVisible=!0,t.borderVisible=!0}s.coordinate=r.coordinate,s.floatCoordinate=r.floatCoordinate;const h=this._source.model().properties().childs().scalesProperties.childs();h.showSeriesLastValue.value()&&(e.text=(0,R.getCurrentModePriceText)(a,r),h.seriesLastValueMode.value()!==I.PriceAxisLastValueMode.LastPriceAndPercentageValue?e.secondLine="":e.secondLine=(0,R.getOppositeModePriceText)(a,r),e.visible=!0),t.text="",h.showSymbolLabels.value()&&(t.text=this._paneText(),t.visible=t.text.length>0)}_paneText(){let e="";const t=this._source.aliasSymbolInfo();return A?e=(0,d.displayedSymbolExchange)(t):this._source.model().properties().childs().scalesProperties.childs().showSymbolLabels.value()&&(e=(0,d.displayedSymbolName)(t)),e}}var B=s(30693);class k extends B.PriceLineAxisView{constructor(e){super(),this._study=e}_value(){return this._study.lastValueData("",!0)}_priceLineColor(e){return e}_lineWidth(){return 1}_isVisible(){const e=this._study.model().properties().childs().scalesProperties.childs().showSeriesLastValue.value();return this._study.properties().childs().showPriceLine.value()&&e}}var D=s(69558),F=s(94119);class N{constructor(e){this._lineRenderer=new F.HorizontalLineRenderer,this._visible=!1,this._source=e}update(){if(this._visible=!1, -!this._source.properties().childs().showPriceLine.value())return;const e=this._source.lastValueData("",!0);e.noData||(this._visible=!0,this._lineRenderer.setData({y:e.coordinate,color:e.color,linewidth:1,linestyle:D.LINESTYLE_DOTTED,visible:this._visible}))}renderer(){return this._visible?this._lineRenderer:null}}var E=s(11946),M=s(78861),O=s(36313),H=s(50335),W=s(11542),U=s(24640),z=s(56265),$=s(3885),G=s(17161),q=s(70859),j=s(63903),Q=s(53660);const Y=G.lastDayChangeAvailable||G.alwaysShowLastPriceAndLastDayChange,K=a.CheckMobile.any(),Z=(0,z.getPercentageFormatter)();var J;!function(e){e[e.Open=0]="Open",e[e.High=1]="High",e[e.Low=2]="Low",e[e.Close=3]="Close",e[e.Source=4]="Source",e[e.LastPrice=5]="LastPrice",e[e.Change=6]="Change",e[e.LastDayChange=7]="LastDayChange"}(J||(J={}));const X=Q.notAvailable,ee=`${X} (${X}%)`;class te{constructor(e,t,i=!0){this._study=e,this._model=t,this._searchNearestLeftValue=i,this._emptyValues=[{title:W.t(null,void 0,s(16610)),visible:!1,value:"",index:0,orderIndex:0,id:"open"},{title:W.t(null,void 0,s(78254)),visible:!1,value:"",index:1,orderIndex:1,id:"high"},{title:W.t(null,void 0,s(65318)),visible:!1,value:"",index:2,orderIndex:2,id:"low"},{title:W.t(null,{context:"input"},s(51408)),visible:!1,value:"",index:3,orderIndex:3,id:"close"},{title:"",visible:!1,value:"",index:4,orderIndex:4,id:"source"},{title:"",visible:!1,value:"",index:5,orderIndex:5,id:"lastPrice"},{title:W.t(null,void 0,s(37276)),visible:!1,value:"",index:6,orderIndex:6,id:"change"},{title:W.t(null,void 0,s(63815)),visible:!1,value:"",index:7,orderIndex:7,id:"lastDayChange"}]}getItems(){return this._emptyValues}getValues(e){const t=this._emptyValues.map((e=>({...e})));if(this._model.timeScale().isEmpty())return t;const s=this._study.data(),i=s.lastIndex();if(0===s.size()||null===i)return t;const r=this._searchNearestLeftValue?f.PlotRowSearchMode.NearestLeft:f.PlotRowSearchMode.Exact,l=s.search(i,r,1);if(null===l)return t;const a=this._showLastPriceAndChangeOnly();if((0,H.isNumber)(e)||(a?e=i:(e=this._model.crosshairSource().appliedIndex(),(0,H.isNumber)(e)||(e=i))),null===e||!(0,H.isNumber)(e))return t;t[0].value=X,t[1].value=X,t[2].value=X,t[3].value=X,t[7].value=ee,t[6].value=ee;const o=s.search(e,r,1),n=this._model.backgroundTopColor().value();if(null===o)return t;const h=o.index,c=o.value,u=c[1],d=c[2],_=c[3],p=c[4];for(const e of t)e.visible=!a;const y=t[4];y.visible=!1;const{barChange:v,lastDayChange:m}=(0,$.changesData)(s,this._study.quotes(),o.value,o.index,l.value),b=(0,j.getPriceValueFormatterForSource)(this._study);if((0,j.shouldBeFormattedAsPercent)(this._study)||(0,j.shouldBeFormattedAsIndexedTo100)(this._study))t[7].value="",t[6].value="";else{const e=this._study.formatter(),s={signPositive:!0};if(void 0!==v){const{currentPrice:i,prevPrice:r,change:l}=v,a=e.formatChange?.(i,r,s)??e.format(l,s);t[6].value=(0,U.forceLTRStr)(`${a} (${Z.format(v.percentChange,s)})`)}if(void 0!==m){const{currentPrice:i,prevPrice:r,change:l,percentChange:a}=m,o=e.formatChange?.(i,r,s)??e.format(l,s);t[7].value=(0, -U.forceLTRStr)(`${o} (${Z.format(a,s)})`)}}let S=null;if(a)t[5].value=null==p?X:b(p),t[5].visible=!0,S=this._getChangeColor(v?.change),t[6].visible=void 0!==v,t[7].visible=void 0!==m||Y;else{t[0].value=null==u?X:b(u),t[1].value=null==d?X:b(d),t[2].value=null==_?X:b(_),t[3].value=null==p?X:b(p),y.value=b(this._study.barFunction()(c)),t[5].visible=!1;const e=this._model.mainSeries().intervalObj().value().is1Tick(),s=21!==this._study.properties().childs().style.value();t[0].visible=!e&&s,t[1].visible=!e,t[2].visible=!e,t[7].visible=void 0!==m||Y,t[6].visible=void 0!==v;const i=this._study.barColorer().barStyle(h,!1),r=i.barBorderColor??i.barColor;S=(0,$.calculateColor)(n,r)}S=(0,T.resetTransparency)((0,$.calculateColor)(n,S));for(const e of t)e.color||(e.color=S);return t[7].visible&&(t[7].color=(0,T.resetTransparency)((0,$.calculateColor)(n,this._getChangeColor(m?.change)))),t}_mobileNonTrackingMode(){return K&&(null===this._model.crosshairSource().pane||(0,E.isLineToolName)(M.tool.value())||null!==this._model.lineBeingEdited())}_showLastPriceAndChangeOnly(){return G.alwaysShowLastPriceAndLastDayChange||this._mobileNonTrackingMode()}_getChangeColor(e){const t=void 0===e||e>=0?q.SeriesBarColorer.upColor(this._study.properties()):q.SeriesBarColorer.downColor(this._study.properties());return t.barBorderColor??t.barColor}}var se=s(13212);const ie=a.CheckMobile.any();class re extends se.StudyDataWindowView{_updateImpl(){this._header=this._study.title(O.TitleDisplayTarget.DataWindow);let e;this._showLastPriceAndChangeOnly()?e=this._study.data().lastIndex():(e=this._model.crosshairSource().appliedIndex(),(null===e||isNaN(e))&&(e=this._study.data().lastIndex(),v.enabled("use_last_visible_bar_value_in_legend")&&(e=this._model.timeScale().visibleBarsStrictRange()?.lastBar()??NaN)));const t=this._valueProvider.getValues(e);for(let e=0;ee||t),s.showBarChange.weakReference(),s.showSeriesOHLC.weakReference()),this._visibilityProperty.subscribe(this,this.update.bind(this,(0,le.sourceChangeEvent)(e.id())))}areValuesVisible(){return this._visibilityProperty.value()}additional(){return this._additional}destroy(){this._backgroundColorSpawn.destroy(),this._visibilityProperty.destroy()}_updateImpl(){super._updateImpl()}_createValuesProvider(e,t){return new ae(e,t)}}var he=s(69555),ce=s(62802),ue=s(27808),de=s(32399),_e=s(4249),pe=s(46340),ye=s(43501),ve=s(54405),me=s(85630),be=s(88732),Se=s(54370),ge=s(12965);class fe extends ge.StudyStatusProvider{getSplitTitle(){return this._source.titleInParts(O.TitleDisplayTarget.StatusLine,!0,void 0,!1,!1)}text(){return this._source.isActualInterval()?this._source.isFailed()?`${this._source.title(O.TitleDisplayTarget.StatusLine,!0,void 0,!1,!1)}: ${this.sourceStatusText()}`:`${this._source.title(O.TitleDisplayTarget.StatusLine,!0,void 0,!1,!1)} ${this.sourceStatusText()}`:this._source.title(O.TitleDisplayTarget.StatusLine,!0,void 0,!1,!1)}}var we=s(55803),Pe=s(27909);class Ce extends ae{_showSeriesOHLC(){return!0}}var xe=s(28334),Ve=s(11768);class Ie{constructor(e,t){this._study=e,this._model=t,this._valuesProvider=new te(e,t,!1)}getItems(){const e=this._valuesProvider.getItems(),t=this._study.style();return(0,Ve.fillSymbolSourceValuesProviderItemsVisibility)(e,this._study.priceSource(),t,this._model),e[7].visible=!1,e}getValues(e){const t=this._study.data().lastIndex(),s=this._study.data().firstIndex();return null===t||null===s||e>t||ee.realignLineTools(this))),e.mainSeries().onIntervalChanged().subscribe(this,(()=>this._checkStyle())),this._conflatedChunksBuilder=new we.ConflatedChunksBuilder(this._data,(e=>u.barFunctions[e])),this._symbolInfoWV=(0,oe.createWVFromGetterAndSubscriptions)((()=>this.symbolInfo()),[this.symbolResolved(),this.onStatusChanged()]),(this._aliasSymbolInfoWV||this._symbolInfoWV).subscribe((()=>this._recreatePriceFormattingDependencies())),this._overlayValuesProvider=new te(this,e),this._overlayLegendValuesProvider=new ae(this,e),this._overlayTableViewValuesProvider=new Ie(this,e),this._overlayChartFloatingTooltipValuesProvider=new Ce(this,e),this._symbolSourceWV=(0,Re.combine)((e=>e?this:super.symbolSource()),this._isActingAsSymbolSource.weakReference())}destroy(){this._model.mainSeries().onIntervalChanged().unsubscribeAll(this),this._quotesProvider.destroy(),this._symbolInfoWV.destroy(),this._symbolSourceWV.destroy(), -this._aliasSymbolInfoWV?.release(),super.destroy()}isActingAsSymbolSource(){return this._isActingAsSymbolSource.readonly()}precomputedBarStyle(e){return this._precomputedBarStyles.get(e)}setPrecomputedBarStyle(e,t){this._precomputedBarStyles.set(e,t)}properties(){return this._properties}barColorer(){return new q.SeriesBarColorer({data:()=>this.data(),bars:()=>this.data(),nsBars:()=>new g.PlotList,priceScale:()=>(0,i.ensureNotNull)(this.priceScale()),properties:()=>this.properties(),firstValue:()=>this.firstValue(),barFunction:()=>this.barFunction(),lineColorAtYPercentFromTop:e=>this.lineColorAtYPercentFromTop(e)})}symbolParams(){return(0,b.symbolParams)(this)}compareSymbolParams(e){return(0,b.compareSymbolParams)(this,e,this._model.unitConversionEnabled())}async setSymbolParams(e){this._setSymbolParamsInternal(e)}symbol(){return this.properties().childs().inputs.childs().symbol.value()}symbolOrAlias(){const e=this.symbol(),t=this._model.symbolAliasService()?.getAliasByProName(e);return t?.aliasName??e}symbolChanged(){return this.properties().childs().inputs.childs().symbol}onSymbolIntervalChanged(){return this.symbolChanged()}setSymbol(e){this.setSymbolParams({symbol:e})}symbolInfo(){if(!this._resolvedSymbols)return null;const e=this._properties.childs().inputs.childs().symbol.value();if(!e)return null;let t;return t=this._resolvedSymbols[this._getSymbolForResolve(e)]||null,t}symbolInfoWV(){return this._symbolInfoWV.readonly()}aliasSymbolInfo(){return(this._aliasSymbolInfoWV??this._symbolInfoWV??new l.WatchedValue(null)).value()}supportsConflatedChunks(){return!0}conflatedChunks(e,t){return this._conflatedChunksBuilder.conflatedChunks(e,t)}symbolResolved(){return this.symbolsResolved()}symbolResolvingActive(){return this._symbolResolvingActive}symbolHibernated(){return this._symbolHibernated}isVisible(){const e=super.isVisible();return this._symbolHibernated.setValue(!e),e}symbolSameAsCurrent(e){return(0,b.symbolSameAsCurrent)(e,this.symbolInfo())}symbolSameAsResolved(e){return(0,S.symbolSameAsResolved)(e,this._lastResolvedSymbolSource,this.symbol())}priceSource(){const e=this.properties().childs();switch(e.style.value()){case 2:return e.lineStyle.childs().priceSource.value();case 14:return e.lineWithMarkersStyle.childs().priceSource.value();case 15:return e.steplineStyle.childs().priceSource.value();case 3:return e.areaStyle.childs().priceSource.value();case 10:return e.baselineStyle.childs().priceSource.value();case 13:return e.columnStyle.childs().priceSource.value()}return null}barFunction(){return this._barFunction}quotesProvider(){return this._quotesProvider}quotes(){return this._quotesProvider.quotes()}currency(){return this.properties().childs().currencyId.value()||null}setCurrency(e){this.setSymbolParams({currency:e})}isConvertedToOtherCurrency(){return(0,d.isConvertedToOtherCurrency)(this.symbolInfo())}unit(){return this.properties().childs().unitId.value()||null}setUnit(e){this.setSymbolParams({unit:e})}isConvertedToOtherUnit(){return(0, -d.isConvertedToOtherUnit)(this.symbolInfo(),this._model.unitConversionEnabled())}style(){return this.properties().childs().style.value()}setStyle(e){this.setSymbolParams({style:e})}interval(){return this._model.mainSeries().interval()}setInterval(e){}valueAt(e,t){return this.data().search(e)?.value[t]??null}symbolSource(){return this}symbolSourceWV(){return this._symbolSourceWV}barsProvider(){return this}state(e,t){const s=super.state(e,t);this._model.unitConversionEnabled()||delete s.state.unitId;const r=this.symbol();return s.state.inputs.symbol=(0,d.symbolToSaveInState)(this.symbolInfo()??this._model.chartApi().lastSymbolResolveInfo(r),r),e&&((0,i.ensureDefined)(s.data).symbols={___snapshot:this.symbolInfo()||void 0}),s}symbolTitle(e,t,s){return this.title(e,!0,{},!1,t)}title(e,t,s,i,r){const l=this._titleInParts(e,t,s,i,r);return[l[0],...l[1]??[]].join(` ${d.symbolTitleSeparator} `)}titleInParts(e,t,s,i,r){return[this.title(e,t,s,i,r)]}firstValue(){const e=this._model.timeScale().visibleBarsStrictRange();if(null===e)return null;const t=e.firstBar();if(0===this.data().size())return this._ownFirstValue;const s=this.data().search(t,f.PlotRowSearchMode.NearestRight,1);return this._ownFirstValue=null!==s?this._barFunction(s.value,0):null,this._ownFirstValue}lineColorAtYPercentFromTop(e){switch(this.style()){case 2:return this.properties().childs().lineStyle.childs().color.value();case 14:return this.properties().childs().lineWithMarkersStyle.childs().color.value();case 15:return this.properties().childs().steplineStyle.childs().color.value()}return null}lastValueData(e,t,s){const i={noData:!0},l=this.priceScale();if(this._model.timeScale().isEmpty()||null===l||l.isEmpty()||this.data().isEmpty())return i;const a=this._model.timeScale().visibleBarsStrictRange();if(null===a)return i;const o=this.properties().childs();if(!o.visible.value())return i;const n=this.nearestIndex(a.lastBar(),f.PlotRowSearchMode.NearestLeft,1);if(void 0===n)return i;const h=this.firstValue();if(null===h)return i;const c=this._lastNonEmptyPlotRow(4),u=null!==c&&a.contains(c.index),d=null!==c?c.value:null,_=t||u?d:this.data().valueAt(n);if(null===_)return i;const p=this._barFunction(_,2);if(!(0,r.isNumber)(p))return i;const y=l.priceToCoordinate(p,h);let v;switch(o.style.value()){case 0:v=_[1]<=_[4]?o.barStyle.childs().upColor.value():o.barStyle.childs().downColor.value();break;case 1:v=_[1]<=_[4]?o.candleStyle.childs().upColor.value():o.candleStyle.childs().downColor.value();break;case 9:v=_[1]<=_[4]?o.hollowCandleStyle.childs().upColor.value():o.hollowCandleStyle.childs().downColor.value();break;case 13:v=_[1]<=_[4]?o.columnStyle.childs().upColor.value():o.columnStyle.childs().downColor.value();break;case 2:v=o.lineStyle.childs().color.value();break;case 14:v=o.lineWithMarkersStyle.childs().color.value();break;case 15:v=o.steplineStyle.childs().color.value();break;case 3:v=o.areaStyle.childs().linecolor.value();break;case 16:v=o.hlcAreaStyle.childs().closeLineColor.value();break;case 10:{const e=o.baselineStyle.childs() -;v=ye.StudyOverlayDefinitionsViewModel))}_setQuotesSymbol(e){const t=this.symbolInfo(),s=(0,_.extractSymbolNameFromSymbolInfo)(t,e);this._quotesProvider.setQuotesSessionSymbol(s)}_onQuotesUpdate(e,t){!this._legendView||void 0===t.values.change&&void 0===t.values.change_percent||(this._legendView.update((0,le.sourceChangeEvent)(this.id())),this._model.updateSource(this))}_createViews(){this._priceAxisViews=[];const e=new L(this);this._priceAxisViewsBase=[e];const t=new k(this);this._priceLinesAxisViews=[t],this._paneViews=[],this._labelPaneViews=[];let s=null,r=null;switch(this.properties().childs().style.value()){case 0:r=new ce.SeriesBarsPaneView(this,this._model);break;case 1:r=new ue.SeriesCandlesPaneView(this,this._model);break;case 9:r=new ve.SeriesHollowCandlesPaneView(this,this._model);break;case 13:r=new me.SeriesColumnsPaneView(this,this._model);break;case 2:case 14:case 15:r=new de.SeriesLinePaneView(this,this._model);break;case 3:r=new _e.SeriesAreaPaneView(this,this._model);break;case 16:r=new pe.SeriesHLCAreaPaneView(this,this._model);break;case 10:{r=new ye.SeriesBaselinePaneView(this,this._model);const e=this.properties().childs().baselineStyle.childs();s=new x.SeriesWaterlinePaneView({paneHeight:()=>(0,i.ensureNotNull)(this.priceScale()).height(), -color:()=>e.baselineColor.value(),baseLevelPercentage:()=>e.baseLevelPercentage.value()});break}case 12:r=new be.SeriesHiLoPaneView(this,this._model);break;case 21:r=new xe.SeriesHLCBarsPaneView(this,this._model)}r&&this._paneViews.push(r),null!==s&&this._paneViews.push(s),this._paneViews.push(new N(this)),this._dataWindowView||(this._dataWindowView=new re(this,this._model)),this._legendView||(this._legendView=new ne(this,this._model)),this._statusView||(this._statusView=new C.StudyStatusView(this)),this._floatingTooltipView||(this._floatingTooltipView=new Pe.StudyChartFloatingTooltipView(this,this._model)),this._priceAxisViews=[...this._priceAxisViewsBase],this._labelPaneViews.push(new he.PanePriceAxisView(e,this,this._model))}_createStudyOnServer(){const e=super._createStudyOnServer();return this._realignLineToolsIfParamsChanged(),e}_modifyStudyOnServer(e){super._modifyStudyOnServer(e,0)}_titleInParts(e,t,s,i,r){const l=this.symbolInfo();return[this._getSymbolTitlePart(l),[this._getExchangeTitlePart(l,r),this._getPriceSourceTitlePart(l)].filter((e=>null!==e))]}_mergeData(e){return this._invalidateLastNonEmptyPlotRowCache(),this._conflatedChunksBuilder.mergeData(e)}_clearData(){this._conflatedChunksBuilder.clearData()}_moveData(e){this._conflatedChunksBuilder.moveData(e)}_getSymbolTitlePart(e){if(null===e)return De?"":(e=>this._model.symbolAliasService()?.getAliasByProName(e)?.aliasName??e)(this.properties().childs().inputs.childs().symbol.value());const t=this._model.symbolAliasService()?.getAliasByProName(e.pro_name)?.aliasName??e.name;if(Be)switch(this._model.mainSeries().symbolTextSourceProxyProperty().value()){case"description":return e.description;case"ticker-and-description":return`${t}, ${e.description}`;case"long-description":return e.long_description??e.description}return t}_getExchangeTitlePart(e,t){return null===e||t?null:(0,d.getSymbolListedExchange)(e)}_getPriceSourceTitlePart(e){return Ne&&!1!==this._model.properties().childs().paneProperties.childs().legendProperties.childs().showPriceSource.value()&&void 0!==e?.price_source_id?this._model.availablePriceSources(this.getSymbolString(this._getSymbolForApi(this.symbol()))).name(e.price_source_id)??null:null}_onAllowExtendTimeScaleChanged(){if(!ke)return;const e=this.isStarted();e&&this.stop(!0);const t=this.properties().childs().allowExtendTimeScale.value();this.properties().childs().inputs.childs().extendTimeScale.setValue(t),e&&this.start(!0)}_setSymbolParamsInternal(e,t){const{symbol:s,currency:i,unit:r,style:l}=e,a=this.properties().childs(),o=a.inputs.childs().symbol.value(),n=a.currencyId.value(),h=a.unitId.value(),c=a.style.value();if(void 0!==s&&a.inputs.childs().symbol.setValueSilently(s),void 0!==i&&a.currencyId.setValueSilently(i),void 0!==r&&a.unitId.setValueSilently(r),void 0!==l&&a.style.setValueSilently(l),t)this._resolvedSymbolsByInput[this.symbol()]=t,this._resolvedSymbols[this._getSymbolForResolve(this.symbol())]=t,this._realignToolsLastParams=null;else{const e=this.symbolInfo();null!==e&&(a.currencyId.setValueSilently((0, -d.symbolCurrency)(e)),a.unitId.setValueSilently((0,d.symbolUnit)(e,this._model.unitConversionEnabled())))}a.inputs.childs().symbol.value()!==o&&a.inputs.childs().symbol.fireChanged(),a.currencyId.value()!==n&&a.currencyId.fireChanged(),a.unitId.value()!==h&&a.unitId.fireChanged(),a.style.value()!==c&&a.style.fireChanged(),this._checkStyle(),this._realignLineToolsIfParamsChanged()}_updateBarFunction(){this._barFunction=(0,h.barFunctionByStyle)(this.style(),this.priceSource())}_onMinTickChanged(){this._recreatePriceFormattingDependencies(),this.updateAllViews({type:"global-change"}),this._model.fullUpdate()}_onChartStyleChanged(){this._updateBarFunction(),this._styleToRecover?.originalStyle!==this.style()&&(this._styleToRecover=null)}_checkStyle(){const e=this.style();(0,d.isCloseBasedSymbol)(this.symbolInfo())||this.model().mainSeries().intervalObj().value().is1Tick()?(0,d.isSingleValueBasedStyle)(e)||(this.setStyle(2),this._styleToRecover={correctedStyle:this.style(),originalStyle:e}):null!==this._styleToRecover&&(this.setStyle(this._styleToRecover.originalStyle),this._styleToRecover=null)}_realignLineToolsIfParamsChanged(){let e=null===this._realignToolsLastParams;if(null!==this._realignToolsLastParams){const t=this.compareSymbolParams(this._realignToolsLastParams);e=t.symbolChanged||t.intervalChanged||t.currencyChanged||t.unitChanged}e&&(this._model.realignLineTools(this),this._realignToolsLastParams=this.symbolParams())}}}}]); \ No newline at end of file diff --git a/charting_library/bundles/sv.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/sv.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index 48926b2f..00000000 --- a/charting_library/bundles/sv.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,7 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:e=>{e.exports={en:["bars"]}},31882:e=>{e.exports={en:["12-hours"],sv:["12-timmars"]}},5797:e=>{e.exports={en:["24-hours"],sv:["24-timmars"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],sv:["Färgsätt candlesticks baserat på senaste stängning"]}},23739:e=>{e.exports={en:["Canvas"]}},24197:e=>{e.exports={en:["Center"],sv:["Centrera"]}},15153:e=>{e.exports={en:["Chart basic styles"],sv:["Basstilar för diagram"]}},45639:e=>{e.exports={en:["Chart values"]}},84831:e=>{e.exports={en:["Close line"],sv:["Stängningslinje"]}},74622:e=>{e.exports={en:["Crosshair"],sv:["Sikte"]}},81849:e=>{e.exports={en:["Currency"],sv:["Valuta"]}},3015:e=>{e.exports={en:["Currency and Unit"],sv:["Valuta och enhet"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],sv:["Justera data för utdelning"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],sv:["Förändringar i avtalens storlek och datum för upphörande"]}},36620:e=>{e.exports={en:["Alerts"],sv:["Alarm"]}},68650:e=>{e.exports={en:["Average close"],sv:["Genomsnittlig stängningskurs"]}},27567:e=>{e.exports={en:["Bottom"],sv:["Botten"]}},3159:e=>{e.exports={en:["Bottom line"],sv:["Bottenlinje"]}},74406:e=>{e.exports={en:["Body"],sv:["Kropp"]}},333:e=>{e.exports={en:["Borders"],sv:["Kanter"]}},79468:e=>{e.exports={en:["Background"],sv:["Bakgrund"]}},10842:e=>{e.exports={en:["Bar change values"],sv:["Stapelvärdesföränding"]}},28975:e=>{e.exports={en:["Base level"],sv:["Basnivå"]}},76473:e=>{e.exports={en:["Bid and ask"],sv:["Köp- och säljpriser"]}},32744:e=>{e.exports={en:["Buttons"],sv:["Knappar"]}},68662:e=>{e.exports={en:["Grid lines"],sv:["Raster"]}},17611:e=>{e.exports={en:["Down bars"],sv:["Nedåtgående staplar"]}},23743:e=>{e.exports={en:["Down color"],sv:["Färg på nedåtgående"]}},48225:e=>{e.exports={en:["Data modification"],sv:["Datamodifikation"]}},84838:e=>{e.exports={en:["Date format"],sv:["Datumformat"]}},42357:e=>{e.exports={en:["Day of week on labels"],sv:["Veckodagar på etiketter"]}},16564:e=>{e.exports={en:["Default"],sv:["Standard"]}},78734:e=>{e.exports={en:["Description"]}},67036:e=>{e.exports={en:["Display inactivity gaps"]}},59777:e=>{e.exports={en:["Electronic trading hours background"]}},69808:e=>{e.exports={en:["Events"],sv:["Evenemang"]}},41129:e=>{e.exports={en:["Fill"],sv:["Fyll"]}},61112:e=>{e.exports={en:["Fill top area"],sv:["Fyll topparea"]}},73185:e=>{e.exports={en:["Fill bottom area"],sv:["Fyll bottenområde"]}},3160:e=>{e.exports={en:["Horizontal"],sv:["Vågrät"]}},61900:e=>{e.exports={en:["Horz only"],sv:["Endast hori."]}},14180:e=>{e.exports={en:["High and low"],sv:["Hög och låg"]}},56359:e=>{e.exports={en:["High line"],sv:["Hög linje"]}},47326:e=>{e.exports={en:["Integer"]}},17854:e=>{e.exports={en:["Interval"],sv:["Intervall"]}},84549:e=>{e.exports={en:["Indicators"],sv:["Indikatorer"]}},78082:e=>{e.exports={en:["Indicators and financials"]}},21429:e=>{e.exports={en:["Inputs"],sv:["Indata"]}},25765:e=>{e.exports={en:["Open market status"], -sv:["Öppen marknadsstatus"]}},34579:e=>{e.exports={en:["Low line"],sv:["Låg linje"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"],sv:["Lång beskrivning"]}},72423:e=>{e.exports={en:["Last day change values"]}},11626:e=>{e.exports={en:["Left"],sv:["Vänster"]}},56982:e=>{e.exports={en:["Lines"],sv:["Linjer"]}},8249:e=>{e.exports={en:["Money"],sv:["Pengar"]}},70937:e=>{e.exports={en:["Margins"],sv:["Marginaler"]}},68833:e=>{e.exports={en:["Middle"],sv:["Mitten"]}},58589:e=>{e.exports={en:["No overlapping labels"]}},60798:e=>{e.exports={en:["None"],sv:["Inga"]}},51019:e=>{e.exports={en:["Navigation"]}},99709:e=>{e.exports={en:["Name"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],sv:["Skalläge (A och L)"]}},93968:e=>{e.exports={en:["Scales"],sv:["Skalor"]}},90275:e=>{e.exports={en:["Scales and lines"]}},30042:e=>{e.exports={en:["Scales placement"],sv:["Placering av skalor"]}},28715:e=>{e.exports={en:["Status line"],sv:["Statusrad"]}},95481:e=>{e.exports={en:["Symbol"]}},53263:e=>{e.exports={en:["Pane"]}},82894:e=>{e.exports={en:["Pane separators"],sv:["Panelseparatörer"]}},86235:e=>{e.exports={en:["Percentage"],sv:["Pocentsats"]}},94408:e=>{e.exports={en:["Pips"]}},60904:e=>{e.exports={en:["Pre/post market"],sv:["För/eftermarknad"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],sv:["Före/efter-marknadstimmar bakgrund"]}},59766:e=>{e.exports={en:["Precision"]}},83811:e=>{e.exports={en:["Previous day close"],sv:["Föregående dags stängning"]}},35082:e=>{e.exports={en:["Price Scale"],sv:["prisskala"]}},27632:e=>{e.exports={en:["Price and percentage value"],sv:["Pris och procentvärde"]}},62142:e=>{e.exports={en:["Price labels & lines"]}},84684:e=>{e.exports={en:["Price source"],sv:["Priskälla"]}},73466:e=>{e.exports={en:["Projection up bars"],sv:["Projicera uppåtgående staplar"]}},77430:e=>{e.exports={en:["Projection candles"],sv:["Projektion av candles"]}},88367:e=>{e.exports={en:["Projection down bars"],sv:["Projicera nedåtgående staplar"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],sv:["Verkliga priser på prisskalan (istället för Heikin-Ashi pris)"]}},50421:e=>{e.exports={en:["Right"],sv:["Höger"]}},62532:e=>{e.exports={en:["Right Margin"],sv:["Högermarginal"]}},41571:e=>{e.exports={en:["Watermark"],sv:["Vattenstämpel"]}},32163:e=>{e.exports={en:["Wick"],sv:["Veke"]}},97118:e=>{e.exports={en:["Top"],sv:["Topp"]}},89349:e=>{e.exports={en:["Top line"],sv:["Topplinje"]}},70320:e=>{e.exports={en:["Text"]}},25485:e=>{e.exports={en:["Text alignment"],sv:["Textjustering"]}},67781:e=>{e.exports={en:["Text orientation"],sv:["Textriktning"]}},20215:e=>{e.exports={en:["Thin bars"],sv:["Tunna candlesticks"]}},70198:e=>{e.exports={en:["Title"],sv:["Titel"]}},29854:e=>{e.exports={en:["Titles"],sv:["Titlar"]}},5791:e=>{e.exports={en:["Ticker"]}},16816:e=>{e.exports={en:["Ticker and description"],sv:["Ticker och beskrivning"]}},24821:e=>{e.exports={ -en:["Ticks"],sv:["Bockar"]}},93965:e=>{e.exports={en:["Time Scale"],sv:["Tidsskala"]}},5591:e=>{e.exports={en:["Time hours format"],sv:["Tidsformat timmar"]}},77073:e=>{e.exports={en:["Timezone"],sv:["Tidszon"]}},76495:e=>{e.exports={en:["Trading"]}},33564:e=>{e.exports={en:["Unit"],sv:["Enhet"]}},23091:e=>{e.exports={en:["Up color"],sv:["Färg på uppåtgående"]}},36957:e=>{e.exports={en:["Up bars"],sv:["Uppåtgående staplar"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],sv:["Använd avräkning så nära daglig intervallängd"]}},37644:e=>{e.exports={en:["Volume"],sv:["Volym"]}},51514:e=>{e.exports={en:["Value"],sv:["Värde"]}},31218:e=>{e.exports={en:["Value according to scale"],sv:["Värde enligt skala"]}},60092:e=>{e.exports={en:["Values"],sv:["Värden"]}},83594:e=>{e.exports={en:["Vert and horz"],sv:["Vert och hori"]}},8402:e=>{e.exports={en:["Vert only"],sv:["Endast vert."]}},69526:e=>{e.exports={en:["Vertical"],sv:["Lodrät"]}},21105:e=>{e.exports={en:["candle"],sv:["stapel"]}},27068:e=>{e.exports={en:["change HLC bars"],sv:["ändra HLC-staplar"]}},21201:e=>{e.exports={en:["change HLC bars color"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],sv:["byt navigeringsknappar för vattenmärkessymbol"]}},96227:e=>{e.exports={en:["change open market status visibility"],sv:["ändra synlighet för öppen marknadsstatus"]}},43231:e=>{e.exports={en:["change average close price line width"],sv:["genomsnittlig avvikelseförändring stängningskurs linjebredd"]}},47026:e=>{e.exports={en:["change average close price line color"],sv:["genomsnittlig avvikelseförändring stängningskurs linjefärg"]}},29281:e=>{e.exports={en:["change area fill color"],sv:["ändra areans fyllnadsfärg"]}},27059:e=>{e.exports={en:["change area line visibility"]}},89346:e=>{e.exports={en:["change area line width"],sv:["ändra areans bredd"]}},29605:e=>{e.exports={en:["change area line color"],sv:["ändra areans linjefärg"]}},56864:e=>{e.exports={en:["change area line style"]}},4640:e=>{e.exports={en:["change area price source"],sv:["ändra areans priskälla"]}},98407:e=>{e.exports={en:["change ask line color"],sv:["ändra linjefärg för säljbud"]}},42190:e=>{e.exports={en:["change base level"],sv:["ändra basnivå"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],sv:["ändra baslinjens nedre linjefärg"]}},85684:e=>{e.exports={en:["change baseline bottom line style"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],sv:["ändra baslinjens nedre linjebredd"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],sv:["ändra färgen på baslinjen för fyllning av det nedre området"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],sv:["ändra färgen på baslinjen för fyllning av det övre området"]}},68609:e=>{e.exports={en:["change baseline price source"],sv:["ändra baslinjens priskälla"]}},69044:e=>{e.exports={en:["change baseline top line color"],sv:["ändra baslinjens övre linjefärg"]}},4425:e=>{e.exports={en:["change baseline top line style"]}},68197:e=>{e.exports={ -en:["change baseline top line width"],sv:["ändra baslinjens övre bredd"]}},33464:e=>{e.exports={en:["change bar up color"],sv:["ändra färg på stapelns övre del"]}},27426:e=>{e.exports={en:["change bar change visibility"],sv:["ändra synlighet för stapeländringar"]}},59622:e=>{e.exports={en:["change bar down color"],sv:["ändra färg på stapelns nedre del"]}},17919:e=>{e.exports={en:["change bid line color"],sv:["ändra linjefärg för bud"]}},32094:e=>{e.exports={en:["change bottom margin"],sv:["ändra bottenmarginal"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],sv:["ändra synlighet för valuta och enhetsetiketter"]}},64003:e=>{e.exports={en:["change currency label visibility"],sv:["ändra synlighet för valutaetiketter"]}},42803:e=>{e.exports={en:["change chart background color"],sv:["ändra diagrammets bakgrundsfärg"]}},41382:e=>{e.exports={en:["change chart background type"],sv:["ändra digrammets bakgrundstyp"]}},79637:e=>{e.exports={en:["change chart values visibility"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],sv:["ändra färgstaplar utifrån det föregående stängningsvärdet"]}},88324:e=>{e.exports={en:["change column up color"],sv:["ändra färg för kolumn upp"]}},93890:e=>{e.exports={en:["change column down color"],sv:["ändra färg för kolumn ner"]}},4727:e=>{e.exports={en:["change column price source"],sv:["ändra kolumn priskälla"]}},50544:e=>{e.exports={en:["change crosshair width"],sv:["ändra bredd för crosshair"]}},92885:e=>{e.exports={en:["change crosshair color"],sv:["ändra färg för crosshair"]}},68418:e=>{e.exports={en:["change crosshair style"],sv:["ändra stil för crosshair"]}},43109:e=>{e.exports={en:["change date format"],sv:["ändra datumformat"]}},30418:e=>{e.exports={en:["change day of week on labels"],sv:["byt dag på etiketter"]}},82063:e=>{e.exports={en:["change decimal places"],sv:["ändra decimalens placering"]}},45397:e=>{e.exports={en:["change extended hours color"],sv:["ändra färg för utökade tider"]}},47393:e=>{e.exports={en:["change electronic trading hours"]}},73844:e=>{e.exports={en:["change grid lines visibility"],sv:["ändra synlighet för rutnätslinjer"]}},61407:e=>{e.exports={en:["change high and low price line color"],sv:["ändra linjefärg för högsta och lägsta kurs"]}},39581:e=>{e.exports={en:["change high and low price line width"],sv:["ändra linjebredd för högsta och lägsta kurs"]}},6026:e=>{e.exports={en:["change high-low body color"],sv:["ändra hög-lågkroppens färg"]}},73021:e=>{e.exports={en:["change high-low body visibility"],sv:["ändra synlighet för hög-lågkroppen"]}},46844:e=>{e.exports={en:["change high-low border color"],sv:["ändra kantlinjefärg för hög-låg"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],sv:["ändra synlighet för kantlinjer"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],sv:["ändra synlighet för hög-lågetiketter"]}},56961:e=>{e.exports={en:["change high-low labels color"],sv:["ändra färg för hög-lågetiketter"]}},21133:e=>{e.exports={en:["change horz grid lines color"], -sv:["ändra horzrutnätets färg"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],sv:["ändra synlighet för indikatortitel"]}},49583:e=>{e.exports={en:["change indicator values visibility"],sv:["ändra synlighet för indikatorvärden"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],sv:["ändra synlighet för indikatorer och finansiella namnetiketter"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],sv:["ändra synlighet för indikatorer och finansiella värdeetiketter"]}},451:e=>{e.exports={en:["change interval watermark visibility"]}},66307:e=>{e.exports={en:["change last day change visibility"]}},91873:e=>{e.exports={en:["change legend background transparency"],sv:["ändra transparens för teckenförklaring"]}},14246:e=>{e.exports={en:["change legend background visibility"],sv:["ändra synlighet för teckenförklaring"]}},88640:e=>{e.exports={en:["change line color"],sv:["ändra linjefärg"]}},28818:e=>{e.exports={en:["change line style"],sv:["Ändra linjeformat"]}},41837:e=>{e.exports={en:["change line price source"],sv:["ändra linjens priskälla"]}},48339:e=>{e.exports={en:["change line width"],sv:["ändra linjebredd"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],sv:["ändra synligheten för rutknapparna"]}},52203:e=>{e.exports={en:["change pane separators color"],sv:["ändra färgen på panelerna"]}},38730:e=>{e.exports={en:["change post market color"],sv:["ändra färg för postmarket"]}},28075:e=>{e.exports={en:["change post market line color"],sv:["ändra linjefärg för postmarket"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],sv:["ändra synligheten av marknadsprislinjerna avseende för- och eftermarknaden"]}},44371:e=>{e.exports={en:["change pre market color"],sv:["ändra färg för premarket"]}},96114:e=>{e.exports={en:["change pre market line color"],sv:["ändra linjefärg för premarket"]}},69814:e=>{e.exports={en:["change previous close price line color"],sv:["ändra färg på föregående stängda prislinje"]}},13660:e=>{e.exports={en:["change previous close price line width"],sv:["ändra linjebredd för tidigare stängningspris"]}},87861:e=>{e.exports={en:["change price line color"],sv:["ändra färg för prislinje"]}},29353:e=>{e.exports={en:["change price line width"],sv:["ändra bredd för prislinje"]}},16241:e=>{e.exports={en:["change range bars style"],sv:["ändra intervall för stil på staplar"]}},65821:e=>{e.exports={en:["change range thin bars"],sv:["ändra räckvidden för tunna staplar"]}},75487:e=>{e.exports={en:["change renko wick down color"],sv:["ändra nedre färg för renko wick"]}},92277:e=>{e.exports={en:["change renko wick up color"],sv:["ändra övre färg för renko wick"]}},79604:e=>{e.exports={en:["change renko wick visibility"],sv:["ändra renko wick synlighet"]}},66021:e=>{e.exports={en:["change replay watermark visibility"]}},82946:e=>{e.exports={en:["change right margin"],sv:["ändra högermarginalen"]}},79545:e=>{e.exports={ -en:["change right margin percentage"],sv:["ändra procentsatsen för högermarginalen"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"]}},78995:e=>{e.exports={en:["change symbol watermark color"],sv:["ändra färg för vattenmärkessymbol"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],sv:["ändra synligheten för vattenmärkessymbol"]}},88167:e=>{e.exports={en:["change symbol description visibility"],sv:["ändra synlighet för symbolbeskrivning"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"]}},12050:e=>{e.exports={en:["change symbol field visibility"],sv:["ändra symbolfältets synlighet"]}},46066:e=>{e.exports={en:["change symbol last value mode"],sv:["ändra symbol för senaste värdeläge"]}},902:e=>{e.exports={en:["change symbol legend format"],sv:["ändra format för teckenförklarimg"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],sv:["ändra skal-lägen knappar synlighet"]}},76131:e=>{e.exports={en:["change scales text color"],sv:["ändra textfärg för skalorna"]}},27792:e=>{e.exports={en:["change scales font size"],sv:["ändra teckenstorlek för skalorna"]}},94997:e=>{e.exports={en:["change scales lines color"],sv:["ändra färg för skalorna"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],sv:["ändra synligheten för sessionsgränser"]}},28175:e=>{e.exports={en:["change sessions breaks width"],sv:["ändra bredd för sessionsgränser"]}},33895:e=>{e.exports={en:["change sessions breaks color"],sv:["ändra färg för sessionsgränser"]}},21641:e=>{e.exports={en:["change sessions breaks style"],sv:["ändra stil för sessionsgränser"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],sv:["ändra visningen av verkliga priser på prisskalan (i stället för Heiken-Ashi-priset)"]}},60834:e=>{e.exports={en:["change thin bars"],sv:["ändra de tunna staplarna"]}},39754:e=>{e.exports={en:["change time hours format"],sv:["ändra tidsformat timmar"]}},74883:e=>{e.exports={en:["change top margin"],sv:["ändra toppmarginal"]}},51250:e=>{e.exports={en:["change unit label visibility"],sv:["ändra synlighet för enhetsetiketter"]}},71805:e=>{e.exports={en:["change vert grid lines color"],sv:["ändra färg på rutnätets linjer"]}},96201:e=>{e.exports={en:["change volume values visibility"],sv:["ändra synlighet för volymvärden"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],sv:["ändra övre kantfärg för {candleType}"]}},36697:e=>{e.exports={en:["change {candleType} up color"],sv:["ändra övre färg för {candleType}"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],sv:["ändra vekens nedre färg för {candleType}"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],sv:["ändra vekens övre färg för {candleType}"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],sv:["ändra synlighet för {candleType}s vekar"]}},60608:e=>{e.exports={ -en:["change {candleType} body visibility"],sv:["ändra synlighet för {candleType} kropp"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],sv:["ändra synlighet för {candleType} kant"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],sv:["ändra nedre kantfärg för {candleType}"]}},64571:e=>{e.exports={en:["change {candleType} down color"],sv:["ändra nedre färg för {candleType}"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],sv:["ändra den nedre färgen på stapelkanten för {chartType}"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],sv:["ändra den övre färgen på stapelkanten för {chartType}"]}},5012:e=>{e.exports={en:["change {chartType} down color"],sv:["ändra {chartType} nedre färg"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],sv:["ändra den övre färgen för projektionsstapeln {chartType}"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],sv:["ändra den nedre färgen för projektionsstapeln {chartType}"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],sv:["ändra den övre färgen för projektionsstapeln {chartType}"]}},6970:e=>{e.exports={en:["change {chartType} up color"],sv:["ändra {chartType} övre färg"]}},66110:e=>{e.exports={en:["change {inputName} property"],sv:["ändra egenskapen {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],sv:["justera uppgifterna för utdelningar"]}},1433:e=>{e.exports={en:["adjust for contract changes"],sv:["justera för kontraktändringar"]}},92598:e=>{e.exports={en:["hollow candles"],sv:["Ihåliga candlesticks"]}},57243:e=>{e.exports={en:["range","ranges"],sv:["Intervall","Intervall"]}},70282:e=>{e.exports={en:["renko"],sv:["Renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],sv:["använd avräkning så nära daglig intervallängd"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/sv.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/sv.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..67eea726 --- /dev/null +++ b/charting_library/bundles/sv.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,7 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:e=>{e.exports={en:["bars"]}},31882:e=>{e.exports={en:["12-hours"],sv:["12-timmars"]}},5797:e=>{e.exports={en:["24-hours"],sv:["24-timmars"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],sv:["Färgsätt candlesticks baserat på senaste stängning"]}},23739:e=>{e.exports={en:["Canvas"]}},24197:e=>{e.exports={en:["Center"],sv:["Centrera"]}},15153:e=>{e.exports={en:["Chart basic styles"],sv:["Basstilar för diagram"]}},45639:e=>{e.exports={en:["Chart values"]}},84831:e=>{e.exports={en:["Close line"],sv:["Stängningslinje"]}},74622:e=>{e.exports={en:["Crosshair"],sv:["Sikte"]}},81849:e=>{e.exports={en:["Currency"],sv:["Valuta"]}},3015:e=>{e.exports={en:["Currency and Unit"],sv:["Valuta och enhet"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],sv:["Justera data för utdelning"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],sv:["Förändringar i avtalens storlek och datum för upphörande"]}},36620:e=>{e.exports={en:["Alerts"],sv:["Alarm"]}},68650:e=>{e.exports={en:["Average close"],sv:["Genomsnittlig stängningskurs"]}},27567:e=>{e.exports={en:["Bottom"],sv:["Botten"]}},3159:e=>{e.exports={en:["Bottom line"],sv:["Bottenlinje"]}},74406:e=>{e.exports={en:["Body"],sv:["Kropp"]}},333:e=>{e.exports={en:["Borders"],sv:["Kanter"]}},79468:e=>{e.exports={en:["Background"],sv:["Bakgrund"]}},10842:e=>{e.exports={en:["Bar change values"],sv:["Stapelvärdesföränding"]}},70817:e=>{e.exports={en:["Bar change color based on value"]}},28975:e=>{e.exports={en:["Base level"],sv:["Basnivå"]}},76473:e=>{e.exports={en:["Bid and ask"],sv:["Köp- och säljpriser"]}},32744:e=>{e.exports={en:["Buttons"],sv:["Knappar"]}},68662:e=>{e.exports={en:["Grid lines"],sv:["Raster"]}},17611:e=>{e.exports={en:["Down bars"],sv:["Nedåtgående staplar"]}},23743:e=>{e.exports={en:["Down color"],sv:["Färg på nedåtgående"]}},48225:e=>{e.exports={en:["Data modification"],sv:["Datamodifikation"]}},84838:e=>{e.exports={en:["Date format"],sv:["Datumformat"]}},42357:e=>{e.exports={en:["Day of week on labels"],sv:["Veckodagar på etiketter"]}},16564:e=>{e.exports={en:["Default"],sv:["Standard"]}},78734:e=>{e.exports={en:["Description"]}},67036:e=>{e.exports={en:["Display inactivity gaps"]}},59777:e=>{e.exports={en:["Electronic trading hours background"]}},69808:e=>{e.exports={en:["Events"],sv:["Evenemang"]}},41129:e=>{e.exports={en:["Fill"],sv:["Fyll"]}},61112:e=>{e.exports={en:["Fill top area"],sv:["Fyll topparea"]}},73185:e=>{e.exports={en:["Fill bottom area"],sv:["Fyll bottenområde"]}},3160:e=>{e.exports={en:["Horizontal"],sv:["Vågrät"]}},61900:e=>{e.exports={en:["Horz only"],sv:["Endast hori."]}},14180:e=>{e.exports={en:["High and low"],sv:["Hög och låg"]}},56359:e=>{e.exports={en:["High line"],sv:["Hög linje"]}},47326:e=>{e.exports={en:["Integer"]}},17854:e=>{e.exports={en:["Interval"],sv:["Intervall"]}},84549:e=>{e.exports={en:["Indicators"],sv:["Indikatorer"]}},78082:e=>{e.exports={en:["Indicators and financials"]}},21429:e=>{e.exports={en:["Inputs"], +sv:["Indata"]}},25765:e=>{e.exports={en:["Open market status"],sv:["Öppen marknadsstatus"]}},34579:e=>{e.exports={en:["Low line"],sv:["Låg linje"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"],sv:["Lång beskrivning"]}},72423:e=>{e.exports={en:["Last day change values"]}},11626:e=>{e.exports={en:["Left"],sv:["Vänster"]}},56982:e=>{e.exports={en:["Lines"],sv:["Linjer"]}},8249:e=>{e.exports={en:["Money"],sv:["Pengar"]}},70937:e=>{e.exports={en:["Margins"],sv:["Marginaler"]}},68833:e=>{e.exports={en:["Middle"],sv:["Mitten"]}},58589:e=>{e.exports={en:["No overlapping labels"]}},60798:e=>{e.exports={en:["None"],sv:["Inga"]}},51019:e=>{e.exports={en:["Navigation"]}},99709:e=>{e.exports={en:["Name"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],sv:["Skalläge (A och L)"]}},93968:e=>{e.exports={en:["Scales"],sv:["Skalor"]}},90275:e=>{e.exports={en:["Scales and lines"]}},30042:e=>{e.exports={en:["Scales placement"],sv:["Placering av skalor"]}},28715:e=>{e.exports={en:["Status line"],sv:["Statusrad"]}},95481:e=>{e.exports={en:["Symbol"]}},53263:e=>{e.exports={en:["Pane"]}},82894:e=>{e.exports={en:["Pane separators"],sv:["Panelseparatörer"]}},86235:e=>{e.exports={en:["Percentage"],sv:["Pocentsats"]}},94408:e=>{e.exports={en:["Pips"]}},60904:e=>{e.exports={en:["Pre/post market"],sv:["För/eftermarknad"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],sv:["Före/efter-marknadstimmar bakgrund"]}},59766:e=>{e.exports={en:["Precision"]}},83811:e=>{e.exports={en:["Previous day close"],sv:["Föregående dags stängning"]}},35082:e=>{e.exports={en:["Price Scale"],sv:["prisskala"]}},27632:e=>{e.exports={en:["Price and percentage value"],sv:["Pris och procentvärde"]}},62142:e=>{e.exports={en:["Price labels & lines"]}},84684:e=>{e.exports={en:["Price source"],sv:["Priskälla"]}},73466:e=>{e.exports={en:["Projection up bars"],sv:["Projicera uppåtgående staplar"]}},77430:e=>{e.exports={en:["Projection candles"],sv:["Projektion av candles"]}},88367:e=>{e.exports={en:["Projection down bars"],sv:["Projicera nedåtgående staplar"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],sv:["Verkliga priser på prisskalan (istället för Heikin-Ashi pris)"]}},50421:e=>{e.exports={en:["Right"],sv:["Höger"]}},62532:e=>{e.exports={en:["Right Margin"],sv:["Högermarginal"]}},41571:e=>{e.exports={en:["Watermark"],sv:["Vattenstämpel"]}},32163:e=>{e.exports={en:["Wick"],sv:["Veke"]}},97118:e=>{e.exports={en:["Top"],sv:["Topp"]}},89349:e=>{e.exports={en:["Top line"],sv:["Topplinje"]}},70320:e=>{e.exports={en:["Text"]}},25485:e=>{e.exports={en:["Text alignment"],sv:["Textjustering"]}},67781:e=>{e.exports={en:["Text orientation"],sv:["Textriktning"]}},20215:e=>{e.exports={en:["Thin bars"],sv:["Tunna candlesticks"]}},70198:e=>{e.exports={en:["Title"],sv:["Titel"]}},29854:e=>{e.exports={en:["Titles"],sv:["Titlar"]}},5791:e=>{e.exports={en:["Ticker"]}},16816:e=>{e.exports={en:["Ticker and description"], +sv:["Ticker och beskrivning"]}},24821:e=>{e.exports={en:["Ticks"],sv:["Bockar"]}},93965:e=>{e.exports={en:["Time Scale"],sv:["Tidsskala"]}},5591:e=>{e.exports={en:["Time hours format"],sv:["Tidsformat timmar"]}},77073:e=>{e.exports={en:["Timezone"],sv:["Tidszon"]}},76495:e=>{e.exports={en:["Trading"]}},33564:e=>{e.exports={en:["Unit"],sv:["Enhet"]}},23091:e=>{e.exports={en:["Up color"],sv:["Färg på uppåtgående"]}},36957:e=>{e.exports={en:["Up bars"],sv:["Uppåtgående staplar"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],sv:["Använd avräkning så nära daglig intervallängd"]}},37644:e=>{e.exports={en:["Volume"],sv:["Volym"]}},51514:e=>{e.exports={en:["Value"],sv:["Värde"]}},31218:e=>{e.exports={en:["Value according to scale"],sv:["Värde enligt skala"]}},60092:e=>{e.exports={en:["Values"],sv:["Värden"]}},83594:e=>{e.exports={en:["Vert and horz"],sv:["Vert och hori"]}},8402:e=>{e.exports={en:["Vert only"],sv:["Endast vert."]}},69526:e=>{e.exports={en:["Vertical"],sv:["Lodrät"]}},21105:e=>{e.exports={en:["candle"],sv:["stapel"]}},27068:e=>{e.exports={en:["change HLC bars"],sv:["ändra HLC-staplar"]}},21201:e=>{e.exports={en:["change HLC bars color"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],sv:["byt navigeringsknappar för vattenmärkessymbol"]}},96227:e=>{e.exports={en:["change open market status visibility"],sv:["ändra synlighet för öppen marknadsstatus"]}},43231:e=>{e.exports={en:["change average close price line width"],sv:["genomsnittlig avvikelseförändring stängningskurs linjebredd"]}},47026:e=>{e.exports={en:["change average close price line color"],sv:["genomsnittlig avvikelseförändring stängningskurs linjefärg"]}},29281:e=>{e.exports={en:["change area fill color"],sv:["ändra areans fyllnadsfärg"]}},27059:e=>{e.exports={en:["change area line visibility"]}},89346:e=>{e.exports={en:["change area line width"],sv:["ändra areans bredd"]}},29605:e=>{e.exports={en:["change area line color"],sv:["ändra areans linjefärg"]}},56864:e=>{e.exports={en:["change area line style"]}},4640:e=>{e.exports={en:["change area price source"],sv:["ändra areans priskälla"]}},98407:e=>{e.exports={en:["change ask line color"],sv:["ändra linjefärg för säljbud"]}},42190:e=>{e.exports={en:["change base level"],sv:["ändra basnivå"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],sv:["ändra baslinjens nedre linjefärg"]}},85684:e=>{e.exports={en:["change baseline bottom line style"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],sv:["ändra baslinjens nedre linjebredd"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],sv:["ändra färgen på baslinjen för fyllning av det nedre området"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],sv:["ändra färgen på baslinjen för fyllning av det övre området"]}},68609:e=>{e.exports={en:["change baseline price source"],sv:["ändra baslinjens priskälla"]}},69044:e=>{e.exports={en:["change baseline top line color"],sv:["ändra baslinjens övre linjefärg"]}},4425:e=>{e.exports={ +en:["change baseline top line style"]}},68197:e=>{e.exports={en:["change baseline top line width"],sv:["ändra baslinjens övre bredd"]}},33464:e=>{e.exports={en:["change bar up color"],sv:["ändra färg på stapelns övre del"]}},14201:e=>{e.exports={en:["change bar change down color"]}},30196:e=>{e.exports={en:["change bar change up color"]}},27426:e=>{e.exports={en:["change bar change visibility"],sv:["ändra synlighet för stapeländringar"]}},59622:e=>{e.exports={en:["change bar down color"],sv:["ändra färg på stapelns nedre del"]}},17919:e=>{e.exports={en:["change bid line color"],sv:["ändra linjefärg för bud"]}},32094:e=>{e.exports={en:["change bottom margin"],sv:["ändra bottenmarginal"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],sv:["ändra synlighet för valuta och enhetsetiketter"]}},64003:e=>{e.exports={en:["change currency label visibility"],sv:["ändra synlighet för valutaetiketter"]}},42803:e=>{e.exports={en:["change chart background color"],sv:["ändra diagrammets bakgrundsfärg"]}},41382:e=>{e.exports={en:["change chart background type"],sv:["ändra digrammets bakgrundstyp"]}},79637:e=>{e.exports={en:["change chart values visibility"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],sv:["ändra färgstaplar utifrån det föregående stängningsvärdet"]}},88324:e=>{e.exports={en:["change column up color"],sv:["ändra färg för kolumn upp"]}},93890:e=>{e.exports={en:["change column down color"],sv:["ändra färg för kolumn ner"]}},4727:e=>{e.exports={en:["change column price source"],sv:["ändra kolumn priskälla"]}},50544:e=>{e.exports={en:["change crosshair width"],sv:["ändra bredd för crosshair"]}},92885:e=>{e.exports={en:["change crosshair color"],sv:["ändra färg för crosshair"]}},68418:e=>{e.exports={en:["change crosshair style"],sv:["ändra stil för crosshair"]}},43109:e=>{e.exports={en:["change date format"],sv:["ändra datumformat"]}},30418:e=>{e.exports={en:["change day of week on labels"],sv:["byt dag på etiketter"]}},82063:e=>{e.exports={en:["change decimal places"],sv:["ändra decimalens placering"]}},45397:e=>{e.exports={en:["change extended hours color"],sv:["ändra färg för utökade tider"]}},47393:e=>{e.exports={en:["change electronic trading hours"]}},73844:e=>{e.exports={en:["change grid lines visibility"],sv:["ändra synlighet för rutnätslinjer"]}},61407:e=>{e.exports={en:["change high and low price line color"],sv:["ändra linjefärg för högsta och lägsta kurs"]}},39581:e=>{e.exports={en:["change high and low price line width"],sv:["ändra linjebredd för högsta och lägsta kurs"]}},6026:e=>{e.exports={en:["change high-low body color"],sv:["ändra hög-lågkroppens färg"]}},73021:e=>{e.exports={en:["change high-low body visibility"],sv:["ändra synlighet för hög-lågkroppen"]}},46844:e=>{e.exports={en:["change high-low border color"],sv:["ändra kantlinjefärg för hög-låg"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],sv:["ändra synlighet för kantlinjer"]}},72399:e=>{e.exports={en:["change high-low labels visibility"], +sv:["ändra synlighet för hög-lågetiketter"]}},56961:e=>{e.exports={en:["change high-low labels color"],sv:["ändra färg för hög-lågetiketter"]}},21133:e=>{e.exports={en:["change horz grid lines color"],sv:["ändra horzrutnätets färg"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],sv:["ändra synlighet för indikatortitel"]}},49583:e=>{e.exports={en:["change indicator values visibility"],sv:["ändra synlighet för indikatorvärden"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],sv:["ändra synlighet för indikatorer och finansiella namnetiketter"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],sv:["ändra synlighet för indikatorer och finansiella värdeetiketter"]}},451:e=>{e.exports={en:["change interval watermark visibility"]}},66307:e=>{e.exports={en:["change last day change visibility"]}},91873:e=>{e.exports={en:["change legend background transparency"],sv:["ändra transparens för teckenförklaring"]}},14246:e=>{e.exports={en:["change legend background visibility"],sv:["ändra synlighet för teckenförklaring"]}},88640:e=>{e.exports={en:["change line color"],sv:["ändra linjefärg"]}},28818:e=>{e.exports={en:["change line style"],sv:["Ändra linjeformat"]}},41837:e=>{e.exports={en:["change line price source"],sv:["ändra linjens priskälla"]}},48339:e=>{e.exports={en:["change line width"],sv:["ändra linjebredd"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],sv:["ändra synligheten för rutknapparna"]}},52203:e=>{e.exports={en:["change pane separators color"],sv:["ändra färgen på panelerna"]}},38730:e=>{e.exports={en:["change post market color"],sv:["ändra färg för postmarket"]}},28075:e=>{e.exports={en:["change post market line color"],sv:["ändra linjefärg för postmarket"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],sv:["ändra synligheten av marknadsprislinjerna avseende för- och eftermarknaden"]}},44371:e=>{e.exports={en:["change pre market color"],sv:["ändra färg för premarket"]}},96114:e=>{e.exports={en:["change pre market line color"],sv:["ändra linjefärg för premarket"]}},69814:e=>{e.exports={en:["change previous close price line color"],sv:["ändra färg på föregående stängda prislinje"]}},13660:e=>{e.exports={en:["change previous close price line width"],sv:["ändra linjebredd för tidigare stängningspris"]}},87861:e=>{e.exports={en:["change price line color"],sv:["ändra färg för prislinje"]}},29353:e=>{e.exports={en:["change price line width"],sv:["ändra bredd för prislinje"]}},16241:e=>{e.exports={en:["change range bars style"],sv:["ändra intervall för stil på staplar"]}},65821:e=>{e.exports={en:["change range thin bars"],sv:["ändra räckvidden för tunna staplar"]}},75487:e=>{e.exports={en:["change renko wick down color"],sv:["ändra nedre färg för renko wick"]}},92277:e=>{e.exports={en:["change renko wick up color"],sv:["ändra övre färg för renko wick"]}},79604:e=>{e.exports={en:["change renko wick visibility"], +sv:["ändra renko wick synlighet"]}},66021:e=>{e.exports={en:["change replay watermark visibility"]}},82946:e=>{e.exports={en:["change right margin"],sv:["ändra högermarginalen"]}},79545:e=>{e.exports={en:["change right margin percentage"],sv:["ändra procentsatsen för högermarginalen"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"]}},78995:e=>{e.exports={en:["change symbol watermark color"],sv:["ändra färg för vattenmärkessymbol"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],sv:["ändra synligheten för vattenmärkessymbol"]}},88167:e=>{e.exports={en:["change symbol description visibility"],sv:["ändra synlighet för symbolbeskrivning"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"]}},12050:e=>{e.exports={en:["change symbol field visibility"],sv:["ändra symbolfältets synlighet"]}},46066:e=>{e.exports={en:["change symbol last value mode"],sv:["ändra symbol för senaste värdeläge"]}},902:e=>{e.exports={en:["change symbol legend format"],sv:["ändra format för teckenförklarimg"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],sv:["ändra skal-lägen knappar synlighet"]}},76131:e=>{e.exports={en:["change scales text color"],sv:["ändra textfärg för skalorna"]}},27792:e=>{e.exports={en:["change scales font size"],sv:["ändra teckenstorlek för skalorna"]}},94997:e=>{e.exports={en:["change scales lines color"],sv:["ändra färg för skalorna"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],sv:["ändra synligheten för sessionsgränser"]}},28175:e=>{e.exports={en:["change sessions breaks width"],sv:["ändra bredd för sessionsgränser"]}},33895:e=>{e.exports={en:["change sessions breaks color"],sv:["ändra färg för sessionsgränser"]}},21641:e=>{e.exports={en:["change sessions breaks style"],sv:["ändra stil för sessionsgränser"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],sv:["ändra visningen av verkliga priser på prisskalan (i stället för Heiken-Ashi-priset)"]}},60834:e=>{e.exports={en:["change thin bars"],sv:["ändra de tunna staplarna"]}},39754:e=>{e.exports={en:["change time hours format"],sv:["ändra tidsformat timmar"]}},74883:e=>{e.exports={en:["change top margin"],sv:["ändra toppmarginal"]}},51250:e=>{e.exports={en:["change unit label visibility"],sv:["ändra synlighet för enhetsetiketter"]}},28142:e=>{e.exports={en:["change use custom bar change colors"]}},71805:e=>{e.exports={en:["change vert grid lines color"],sv:["ändra färg på rutnätets linjer"]}},96201:e=>{e.exports={en:["change volume values visibility"],sv:["ändra synlighet för volymvärden"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],sv:["ändra övre kantfärg för {candleType}"]}},36697:e=>{e.exports={en:["change {candleType} up color"],sv:["ändra övre färg för {candleType}"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],sv:["ändra vekens nedre färg för {candleType}"]}},97546:e=>{ +e.exports={en:["change {candleType} wick up color"],sv:["ändra vekens övre färg för {candleType}"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],sv:["ändra synlighet för {candleType}s vekar"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],sv:["ändra synlighet för {candleType} kropp"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],sv:["ändra synlighet för {candleType} kant"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],sv:["ändra nedre kantfärg för {candleType}"]}},64571:e=>{e.exports={en:["change {candleType} down color"],sv:["ändra nedre färg för {candleType}"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],sv:["ändra den nedre färgen på stapelkanten för {chartType}"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],sv:["ändra den övre färgen på stapelkanten för {chartType}"]}},5012:e=>{e.exports={en:["change {chartType} down color"],sv:["ändra {chartType} nedre färg"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],sv:["ändra den övre färgen för projektionsstapeln {chartType}"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],sv:["ändra den nedre färgen för projektionsstapeln {chartType}"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],sv:["ändra den övre färgen för projektionsstapeln {chartType}"]}},6970:e=>{e.exports={en:["change {chartType} up color"],sv:["ändra {chartType} övre färg"]}},66110:e=>{e.exports={en:["change {inputName} property"],sv:["ändra egenskapen {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],sv:["justera uppgifterna för utdelningar"]}},1433:e=>{e.exports={en:["adjust for contract changes"],sv:["justera för kontraktändringar"]}},92598:e=>{e.exports={en:["hollow candles"],sv:["Ihåliga candlesticks"]}},57243:e=>{e.exports={en:["range","ranges"],sv:["Intervall","Intervall"]}},70282:e=>{e.exports={en:["renko"],sv:["Renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],sv:["använd avräkning så nära daglig intervallängd"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/th.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/th.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index 8ee178c6..00000000 --- a/charting_library/bundles/th.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,7 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:e=>{e.exports={en:["bars"],th:["แท่ง"]}},31882:e=>{e.exports={en:["12-hours"],th:["12 ชั่วโมง"]}},5797:e=>{e.exports={en:["24-hours"],th:["24 ชั่วโมง"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],th:["สีของ Bars อ้างอิงจากราคาปิดก่อนหน้า"]}},23739:e=>{e.exports={en:["Canvas"],th:["ผ้าใบ"]}},24197:e=>{e.exports={en:["Center"],th:["ตรงกลาง"]}},15153:e=>{e.exports={en:["Chart basic styles"],th:["รูปแบบพื้นฐานของชาร์ต"]}},45639:e=>{e.exports={en:["Chart values"],th:["ค่าของชาร์ต"]}},84831:e=>{e.exports={en:["Close line"],th:["เส้นปิด"]}},74622:e=>{e.exports={en:["Crosshair"]}},81849:e=>{e.exports={en:["Currency"],th:["สกุลเงิน"]}},3015:e=>{e.exports={en:["Currency and Unit"],th:["สกุลเงินและหน่วย"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],th:["ปรับข้อมูลสำหรับการปันผล"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],th:["ปรับตามการเปลี่ยนแปลงสัญญา"]}},36620:e=>{e.exports={en:["Alerts"],th:["การแจ้งเตือน"]}},68650:e=>{e.exports={en:["Average close"],th:["เส้นราคาปิดเฉลี่ย"]}},27567:e=>{e.exports={en:["Bottom"],th:["ข้างล่าง"]}},3159:e=>{e.exports={en:["Bottom line"],th:["เส้นด้านล่าง"]}},74406:e=>{e.exports={en:["Body"],th:["บอดี้"]}},333:e=>{e.exports={en:["Borders"],th:["เส้นขอบ"]}},79468:e=>{e.exports={en:["Background"],th:["พื้นหลัง"]}},10842:e=>{e.exports={en:["Bar change values"],th:["ค่าเปลี่ยนแปลงของแท่ง"]}},28975:e=>{e.exports={en:["Base level"],th:["ระดับฐาน"]}},76473:e=>{e.exports={en:["Bid and ask"],th:["เส้น Bid และ Ask"]}},32744:e=>{e.exports={en:["Buttons"],th:["ปุ่ม"]}},68662:e=>{e.exports={en:["Grid lines"],th:["เส้นกริด"]}},17611:e=>{e.exports={en:["Down bars"],th:["แท่งเทียนลง"]}},23743:e=>{e.exports={en:["Down color"],th:["สีของแท่งลง"]}},48225:e=>{e.exports={en:["Data modification"],th:["การแก้ไขข้อมูล"]}},84838:e=>{e.exports={en:["Date format"],th:["รูปแบบวันที่"]}},42357:e=>{e.exports={en:["Day of week on labels"],th:["วันในสัปดาห์บนป้ายกำกับ"]}},16564:e=>{e.exports={en:["Default"],th:["ค่าเริ่มต้น"]}},78734:e=>{e.exports={en:["Description"],th:["คำอธิบาย"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],th:["แสดง gaps ที่ไม่เคลื่อนไหว"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],th:["พื้นหลังชั่วโมงการซื้อขายทางอิเล็กทรอนิกส์"]}},69808:e=>{e.exports={en:["Events"],th:["เหตุการณ์"]}},41129:e=>{e.exports={en:["Fill"],th:["เติม"]}},61112:e=>{e.exports={en:["Fill top area"],th:["เติมพื้นที่ด้านบน"]}},73185:e=>{e.exports={en:["Fill bottom area"],th:["เติมพื้นที่ด้านล่าง"]}},3160:e=>{e.exports={en:["Horizontal"],th:["แนวนอน"]}},61900:e=>{e.exports={en:["Horz only"],th:["แนวนอนเท่านั้น"]}},14180:e=>{e.exports={en:["High and low"],th:["ราคาสูงและต่ำ"]}},56359:e=>{e.exports={en:["High line"],th:["เส้นบน"]}},47326:e=>{e.exports={en:["Integer"],th:["จำนวนเต็ม"]}},17854:e=>{e.exports={en:["Interval"],th:["ช่วงเวลา"]}},84549:e=>{e.exports={en:["Indicators"],th:["อินดิเคเตอร์"]}},78082:e=>{e.exports={en:["Indicators and financials"], -th:["อินดิเคเตอร์และการเงิน"]}},21429:e=>{e.exports={en:["Inputs"],th:["ข้อมูล"]}},25765:e=>{e.exports={en:["Open market status"],th:["สถานะตลาดเปิด"]}},34579:e=>{e.exports={en:["Low line"],th:["เส้นล่าง"]}},14876:e=>{e.exports={en:["Logo"],th:["โลโก้"]}},89315:e=>{e.exports={en:["Long Description"],th:["คำอธิบายแบบยาว"]}},72423:e=>{e.exports={en:["Last day change values"],th:["ค่าการเปลี่ยนแปลงวันล่าสุด"]}},11626:e=>{e.exports={en:["Left"],th:["ซ้าย"]}},56982:e=>{e.exports={en:["Lines"],th:["เส้น"]}},8249:e=>{e.exports={en:["Money"],th:["เงิน"]}},70937:e=>{e.exports={en:["Margins"],th:["ระยะขอบ"]}},68833:e=>{e.exports={en:["Middle"],th:["ตรงกลาง"]}},58589:e=>{e.exports={en:["No overlapping labels"],th:["ไม่มีป้ายที่ทับซ้อนกัน"]}},60798:e=>{e.exports={en:["None"],th:["ไม่มี"]}},51019:e=>{e.exports={en:["Navigation"],th:["ปุ่มนำทาง"]}},99709:e=>{e.exports={en:["Name"],th:["ชื่อ"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],th:["บันทึกตำแหน่งขอบด้านซ้ายของชาร์ตเมื่อเปลี่ยนช่วงเวลา"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],th:["โหมดสเกล (A และ L)"]}},93968:e=>{e.exports={en:["Scales"],th:["มาตราส่วน"]}},90275:e=>{e.exports={en:["Scales and lines"],th:["สเกลและเส้น"]}},30042:e=>{e.exports={en:["Scales placement"],th:["การวางตำแหน่งสเกล"]}},28715:e=>{e.exports={en:["Status line"],th:["บรรทัดสถานะ"]}},95481:e=>{e.exports={en:["Symbol"],th:["สัญลักษณ์"]}},53263:e=>{e.exports={en:["Pane"],th:["หน้าต่างใหม่"]}},82894:e=>{e.exports={en:["Pane separators"],th:["ตัวแยกบานหน้าต่าง"]}},86235:e=>{e.exports={en:["Percentage"],th:["เปอร์เซ็นต์"]}},94408:e=>{e.exports={en:["Pips"],th:["Pip"]}},60904:e=>{e.exports={en:["Pre/post market"],th:["ก่อนตลาดเปิด/หลังตลาดปิด"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],th:["พื้นหลังชั่วโมงก่อนตลาดเปิด/หลังตลาดปิด"]}},59766:e=>{e.exports={en:["Precision"],th:["ความแม่นยำ"]}},83811:e=>{e.exports={en:["Previous day close"],th:["เส้นราคาปิดวันก่อนหน้า"]}},35082:e=>{e.exports={en:["Price Scale"],th:["สเกลราคา"]}},27632:e=>{e.exports={en:["Price and percentage value"],th:["ราคาและค่าเปอร์เซ็นต์"]}},62142:e=>{e.exports={en:["Price labels & lines"],th:["ป้ายราคา & เส้น"]}},84684:e=>{e.exports={en:["Price source"],th:["แหล่งราคา"]}},73466:e=>{e.exports={en:["Projection up bars"]}},77430:e=>{e.exports={en:["Projection candles"]}},88367:e=>{e.exports={en:["Projection down bars"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],th:["ราคาจริงในระดับราคา (แทนที่ราคา Heikin-Ashi)"]}},50421:e=>{e.exports={en:["Right"],th:["ขวา"]}},62532:e=>{e.exports={en:["Right Margin"],th:["ระยะขอบด้านขวา"]}},41571:e=>{e.exports={en:["Watermark"],th:["ลายน้ำ"]}},32163:e=>{e.exports={en:["Wick"],th:["ไส้เทียน"]}},97118:e=>{e.exports={en:["Top"],th:["บน"]}},89349:e=>{e.exports={en:["Top line"],th:["เส้นด้านบน"]}},70320:e=>{e.exports={en:["Text"],th:["ตัวอักษร"]}},25485:e=>{e.exports={en:["Text alignment"],th:["การจัดตำแหน่งตัวอักษร"]}},67781:e=>{e.exports={en:["Text orientation"],th:["การเรียงตัวของตัวอักษร"]}}, -20215:e=>{e.exports={en:["Thin bars"],th:["แท่งบาง"]}},70198:e=>{e.exports={en:["Title"],th:["ชื่อ"]}},29854:e=>{e.exports={en:["Titles"],th:["ชื่อเรื่อง"]}},5791:e=>{e.exports={en:["Ticker"],th:["สัญลักษณ์"]}},16816:e=>{e.exports={en:["Ticker and description"],th:["สัญลักษณ์และคำอธิบาย"]}},24821:e=>{e.exports={en:["Ticks"]}},93965:e=>{e.exports={en:["Time Scale"],th:["สเกลเวลา"]}},5591:e=>{e.exports={en:["Time hours format"],th:["รูปแบบชั่วโมงเวลา"]}},77073:e=>{e.exports={en:["Timezone"],th:["เขตเวลา"]}},76495:e=>{e.exports={en:["Trading"],th:["การซื้อขาย"]}},33564:e=>{e.exports={en:["Unit"],th:["หน่วย"]}},23091:e=>{e.exports={en:["Up color"],th:["สีของแท่งขึ้น"]}},36957:e=>{e.exports={en:["Up bars"],th:["แท่งเทียนขึ้น"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],th:["ใช้ราคาที่ใช้ชำระราคาสำหรับการปิดของช่วงเวลาแบบรายวัน"]}},37644:e=>{e.exports={en:["Volume"],th:["ปริมาณการซื้อขาย"]}},51514:e=>{e.exports={en:["Value"],th:["มูลค่า"]}},31218:e=>{e.exports={en:["Value according to scale"],th:["ค่าตามสเกล"]}},60092:e=>{e.exports={en:["Values"],th:["มูลค่า"]}},83594:e=>{e.exports={en:["Vert and horz"],th:["แนวตั้งและแนวนอน"]}},8402:e=>{e.exports={en:["Vert only"],th:["แนวตั้งเท่านั้น"]}},69526:e=>{e.exports={en:["Vertical"],th:["แนวตั้ง"]}},21105:e=>{e.exports={en:["candle"],th:["แท่งเทียน"]}},27068:e=>{e.exports={en:["change HLC bars"],th:["เปลี่ยนแท่ง HLC"]}},21201:e=>{e.exports={en:["change HLC bars color"],th:["เปลี่ยนสีแท่ง HLC"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],th:["เปลี่ยนการมองเห็นปุ่มนำทาง"]}},96227:e=>{e.exports={en:["change open market status visibility"],th:["เปลี่ยนการมองเห็นสถานะตลาดเปิด"]}},43231:e=>{e.exports={en:["change average close price line width"],th:["เปลี่ยนความกว้างของเส้นราคาปิดเฉลี่ย"]}},47026:e=>{e.exports={en:["change average close price line color"],th:["เปลี่ยนสีเส้นราคาปิดเฉลี่ย"]}},29281:e=>{e.exports={en:["change area fill color"],th:["เปลี่ยนสีพื้นที่ด้านใน"]}},27059:e=>{e.exports={en:["change area line visibility"],th:["เปลี่ยนการมองเห็นพื้นที่ใต้เส้นกราฟ"]}},89346:e=>{e.exports={en:["change area line width"],th:["เปลี่ยนความกว้างพื้นที่ใต้เส้นกราฟ"]}},29605:e=>{e.exports={en:["change area line color"],th:["เปลี่ยนสีพื้นที่ใต้เส้นกราฟ"]}},56864:e=>{e.exports={en:["change area line style"],th:["เปลี่ยนรูปแบบเส้นพื้นที่"]}},4640:e=>{e.exports={en:["change area price source"],th:["เปลี่ยนพื้นที่แหล่งราคา"]}},98407:e=>{e.exports={en:["change ask line color"],th:["เปลี่ยนสีเส้น ask"]}},42190:e=>{e.exports={en:["change base level"],th:["ปรับระดับฐาน"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],th:["เปลี่ยนสีเส้นฐานด้านล่าง"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],th:["เปลี่ยนรูปแบบเส้นฐานด้านล่าง"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],th:["เปลี่ยนความกว้างของเส้นฐานด้านล่าง"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],th:["เปลี่ยนสีพื้นที่ใต้เส้นฐานด้านล่าง"]}},92873:e=>{e.exports={en:["change baseline fill top area color"], -th:["เปลี่ยนสีพื้นที่ใต้เส้นฐานด้านบน"]}},68609:e=>{e.exports={en:["change baseline price source"],th:["เปลี่ยนแหล่งราคาพื้นฐาน"]}},69044:e=>{e.exports={en:["change baseline top line color"],th:["เปลี่ยนสีเส้นฐานด้านบน"]}},4425:e=>{e.exports={en:["change baseline top line style"],th:["เปลี่ยนรูปแบบเส้นฐานด้านบน"]}},68197:e=>{e.exports={en:["change baseline top line width"],th:["เปลี่ยนความกว้างของเส้นฐานด้านบน"]}},33464:e=>{e.exports={en:["change bar up color"],th:["เปลี่ยนสีแท่งขาขึ้น"]}},27426:e=>{e.exports={en:["change bar change visibility"],th:["เปลี่ยนการมองเห็นการเปลี่ยนบาร์"]}},59622:e=>{e.exports={en:["change bar down color"],th:["เปลี่ยนสีแท่งขาลง"]}},17919:e=>{e.exports={en:["change bid line color"],th:["เปลี่ยนสีเส้น bid"]}},32094:e=>{e.exports={en:["change bottom margin"],th:["เปลี่ยนระยะขอบด้านล่าง"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],th:["เปลี่ยนสกุลเงินและการมองเห็นป้ายหน่วย"]}},64003:e=>{e.exports={en:["change currency label visibility"],th:["เปลี่ยนการมองเห็นป้ายสกุลเงิน"]}},42803:e=>{e.exports={en:["change chart background color"],th:["เปลี่ยนสีพื้นหลังชาร์ต"]}},41382:e=>{e.exports={en:["change chart background type"],th:["เปลี่ยนประเภทพื้นหลังของชาร์ต"]}},79637:e=>{e.exports={en:["change chart values visibility"],th:["เปลี่ยนการมองเห็นค่าของชาร์ต"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],th:["เปลี่ยนสีแท่งอ้างอิงจากราคาปิดก่อนหน้า"]}},88324:e=>{e.exports={en:["change column up color"],th:["เปลี่ยนสีคอลัมน์ขึ้น"]}},93890:e=>{e.exports={en:["change column down color"],th:["เปลี่ยนสีคอลัมน์ลง"]}},4727:e=>{e.exports={en:["change column price source"],th:["เปลี่ยนแหล่งที่มาของราคาคอลัมน์"]}},50544:e=>{e.exports={en:["change crosshair width"],th:["เปลี่ยนความกว้าง Crosshair"]}},92885:e=>{e.exports={en:["change crosshair color"],th:["เปลี่ยนสี Crosshair"]}},68418:e=>{e.exports={en:["change crosshair style"],th:["เปลี่ยนรูปแบบ Crosshair"]}},43109:e=>{e.exports={en:["change date format"],th:["เปลี่ยนรูปแบบวันที่"]}},30418:e=>{e.exports={en:["change day of week on labels"],th:["เปลี่ยนวันในสัปดาห์บนป้ายกำกับ"]}},82063:e=>{e.exports={en:["change decimal places"],th:["เปลี่ยนตำแหน่งทศนิยม"]}},45397:e=>{e.exports={en:["change extended hours color"],th:["เปลี่ยนสีช่วงเวลานอกชั่วโมงปกติ"]}},47393:e=>{e.exports={en:["change electronic trading hours"],th:["เปลี่ยนชั่วโมงการซื้อขายทางอิเล็กทรอนิกส์"]}},73844:e=>{e.exports={en:["change grid lines visibility"],th:["เปลี่ยนการมองเห็นเส้นกริด"]}},61407:e=>{e.exports={en:["change high and low price line color"],th:["เปลี่ยนสีเส้นราคาสูงและต่ำ"]}},39581:e=>{e.exports={en:["change high and low price line width"],th:["เปลี่ยนความกว้างของเส้นราคาสูงและต่ำ"]}},6026:e=>{e.exports={en:["change high-low body color"],th:["เปลี่ยนสีพื้นค่าสูง-ต่ำ"]}},73021:e=>{e.exports={en:["change high-low body visibility"],th:["เปลี่ยนการมองเห็นพื้นค่าสูง-ต่ำ"]}},46844:e=>{e.exports={en:["change high-low border color"],th:["เปลี่ยนสีเส้นขอบค่าสูง-ต่ำ"]}},15801:e=>{e.exports={en:["change high-low borders visibility"], -th:["เปลี่ยนการมองเห็นเส้นขอบค่าสูง-ต่ำ"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],th:["เปลี่ยนการมองเห็นป้ายค่าสูง-ต่ำ"]}},56961:e=>{e.exports={en:["change high-low labels color"],th:["เปลี่ยนสีป้ายค่าสูง-ต่ำ"]}},21133:e=>{e.exports={en:["change horz grid lines color"],th:["เปลี่ยนสีเส้นกริดแนวนอน"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],th:["เปลี่ยนการมองเห็นชื่ออินดิเคเตอร์"]}},49583:e=>{e.exports={en:["change indicator values visibility"],th:["เปลี่ยนการมองเห็นค่าอินดิเคเตอร์"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],th:["เปลี่ยนการมองเห็นการใส่อินดิเคเตอร์"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],th:["เปลี่ยนอินดิเคเตอร์และการมองเห็นป้ายชื่อการเงิน"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],th:["เปลี่ยนอินดิเคเตอร์และการมองเห็นฉลากมูลค่าทางการเงิน"]}},451:e=>{e.exports={en:["change interval watermark visibility"],th:["เปลี่ยนการมองเห็นลายน้ำของช่วงเวลา"]}},66307:e=>{e.exports={en:["change last day change visibility"],th:["เปลี่ยนการมองเห็นการเปลี่ยนแปลงวันล่าสุด"]}},91873:e=>{e.exports={en:["change legend background transparency"],th:["เปลี่ยนความโปร่งใสพื้นหลังคำอธิบาย"]}},14246:e=>{e.exports={en:["change legend background visibility"],th:["เปลี่ยนการมองเห็นพื้นหลังคำอธิบาย"]}},88640:e=>{e.exports={en:["change line color"],th:["เปลี่ยนสีเส้น"]}},28818:e=>{e.exports={en:["change line style"],th:["เปลี่ยนรูปแบบเส้น"]}},41837:e=>{e.exports={en:["change line price source"],th:["เปลี่ยนเส้นแหล่งราคา"]}},48339:e=>{e.exports={en:["change line width"],th:["เปลี่ยนความกว้างเส้น"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],th:["เปลี่ยนการมองเห็นปุ่มหน้าต่างเสริม"]}},52203:e=>{e.exports={en:["change pane separators color"],th:["เปลี่ยนสีตัวคั่นบานหน้าต่าง"]}},38730:e=>{e.exports={en:["change post market color"],th:["เปลี่ยนสีหลังตลาดปิด"]}},28075:e=>{e.exports={en:["change post market line color"],th:["เปลี่ยนสีเส้นหลังตลาดปิด"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],th:["เปลี่ยนการมองเห็นเส้นราคาก่อนตลาดเปิด/หลังตลาดปิด"]}},44371:e=>{e.exports={en:["change pre market color"],th:["เปลี่ยนสีก่อนตลาดเปิด"]}},96114:e=>{e.exports={en:["change pre market line color"],th:["เปลี่ยนสีเส้นก่อนตลาดเปิด"]}},69814:e=>{e.exports={en:["change previous close price line color"],th:["เปลี่ยนสีของเส้นราคาปิดก่อนหน้า"]}},13660:e=>{e.exports={en:["change previous close price line width"],th:["เปลี่ยนความกว้างของเส้นราคาปิดก่อนหน้า"]}},87861:e=>{e.exports={en:["change price line color"],th:["เปลี่ยนสีเส้นราคา"]}},29353:e=>{e.exports={en:["change price line width"],th:["เปลี่ยนความกว้างเส้นราคา"]}},16241:e=>{e.exports={en:["change range bars style"],th:["เปลี่ยนรูปแบบเรนจ์บาร์"]}},65821:e=>{e.exports={en:["change range thin bars"],th:["เปลี่ยนช่วงระยะแท่งบาง"]}},75487:e=>{e.exports={en:["change renko wick down color"],th:["เปลี่ยนไส้เทียน renko ขาลง"]}},92277:e=>{e.exports={en:["change renko wick up color"], -th:["เปลี่ยนสีไส้เทียน renko ขาขึ้น"]}},79604:e=>{e.exports={en:["change renko wick visibility"],th:["เปลี่ยนการมองเห็นไส้เทียน renko"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],th:["เปลี่ยนการมองเห็นลายน้ำของการเล่นซ้ำ"]}},82946:e=>{e.exports={en:["change right margin"],th:["เปลี่ยนระยะขอบด้านขวา"]}},79545:e=>{e.exports={en:["change right margin percentage"],th:["เปลี่ยนเปอร์เซ็นต์ระยะขอบขวา"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],th:["เปลี่ยนการมองเห็นลายน้ำของทิกเกอร์สัญลักษณ์"]}},78995:e=>{e.exports={en:["change symbol watermark color"],th:["เปลี่ยนสีลายน้ำของสัญลักษณ์"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],th:["เปลี่ยนการมองเห็นลายน้ำของสัญลักษณ์"]}},88167:e=>{e.exports={en:["change symbol description visibility"],th:["เปลี่ยนการมองเห็นคำอธิบายสัญลักษณ์"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],th:["เปลี่ยนการมองเห็นลายน้ำของคำอธิบายสัญลักษณ์"]}},12050:e=>{e.exports={en:["change symbol field visibility"],th:["เปลี่ยนสัญลักษณ์การมองเห็น"]}},46066:e=>{e.exports={en:["change symbol last value mode"],th:["เปลี่ยนโหมดสัญลักษณ์ค่าสุดท้าย"]}},902:e=>{e.exports={en:["change symbol legend format"],th:["เปลี่ยนรูปแบบคำอธิบายสัญลักษณ์"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],th:["เปลี่ยนบันทึกตำแหน่งขอบด้านซ้ายของชาร์ตเมื่อเปลี่ยนช่วงเวลา"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],th:["เปลี่ยนการมองเห็นปุ่มโหมดสเกล"]}},76131:e=>{e.exports={en:["change scales text color"],th:["เปลี่ยนสีสเกลข้อความ"]}},27792:e=>{e.exports={en:["change scales font size"],th:["เปลี่ยนขนาดสเกลตัวอักษร"]}},94997:e=>{e.exports={en:["change scales lines color"],th:["เปลี่ยนสีสเกลเส้น"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],th:["เปลี่ยนการมองเห็นตัวแบ่งเซสชั่น"]}},28175:e=>{e.exports={en:["change sessions breaks width"],th:["เปลี่ยนความกว้างตัวแบ่งเซสชั่น"]}},33895:e=>{e.exports={en:["change sessions breaks color"],th:["เปลี่ยนสีตัวแบ่งเซสชั่น"]}},21641:e=>{e.exports={en:["change sessions breaks style"],th:["เปลี่ยนรูปแบบตัวแบ่งเซสชั่น"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],th:["เปลี่ยนการแสดงผลราคาจริงบนสเกลราคา (แทนที่ราคาแบบ ไฮเก้น-อะชิ)"]}},60834:e=>{e.exports={en:["change thin bars"],th:["เปลี่ยนแท่งบาง"]}},39754:e=>{e.exports={en:["change time hours format"],th:["เปลี่ยนรูปแบบชั่วโมงเวลา"]}},74883:e=>{e.exports={en:["change top margin"],th:["เปลี่ยนระยะขอบด้านบน"]}},51250:e=>{e.exports={en:["change unit label visibility"],th:["เปลี่ยนการมองเห็นป้ายหน่วย"]}},71805:e=>{e.exports={en:["change vert grid lines color"],th:["เปลี่ยนสีเส้นกริดแนวตั้ง"]}},96201:e=>{e.exports={en:["change volume values visibility"],th:["เปลี่ยนการมองเห็นค่าวอลุ่ม"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],th:["เปลี่ยนสีเส้นขอบ {candleType} ขาขึ้น"]}},36697:e=>{e.exports={en:["change {candleType} up color"],th:["เปลี่ยนสี {candleType} ขาขึ้น"]}}, -48091:e=>{e.exports={en:["change {candleType} wick down color"],th:["เปลี่ยนสีไส้เทียน {candleType} ขาลง"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],th:["เปลี่ยนสีไส้เทียน {candleType} ขาขึ้น"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],th:["เปลี่ยนการมองเห็นไส้เทียน {candleType}"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],th:["เปลี่ยนการมองเห็นพื้น {candleType}"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],th:["เปลี่ยนการมองเห็นเส้นขอบ {candleType}"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],th:["เปลี่ยนสีเส้นขอบ {candleType} ขาลง"]}},64571:e=>{e.exports={en:["change {candleType} down color"],th:["เปลี่ยนสี {candleType} ขาลง"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],th:["เปลี่ยนสีเส้นขอบ {chartType} แท่งขาลง"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],th:["เปลี่ยนสีเส้นขอบ {chartType} แท่งขาขึ้น"]}},5012:e=>{e.exports={en:["change {chartType} down color"],th:["เปลี่ยนสี {chartType} ขาลง"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],th:["เปลี่ยนสีเส้นขอบ {chartType} Projection bar up"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],th:["เปลี่ยนสี {chartType} Projection bar down"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],th:["เปลี่ยนสี {chartType} Projection bar up"]}},6970:e=>{e.exports={en:["change {chartType} up color"],th:["เปลี่ยนสี {chartType} ขาขึ้น"]}},66110:e=>{e.exports={en:["change {inputName} property"],th:["เปลี่ยนคุณสมบัติ {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],th:["ปรับข้อมูลสำหรับการปันผล"]}},1433:e=>{e.exports={en:["adjust for contract changes"],th:["ปรับตามการเปลี่ยนแปลงสัญญา"]}},92598:e=>{e.exports={en:["hollow candles"],th:["แท่งเทียนแบบกลวง"]}},57243:e=>{e.exports={en:["range","ranges"],th:["ช่วง"]}},70282:e=>{e.exports={en:["renko"],th:["Renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],th:["สลับดู gaps ที่ไม่เคลื่อนไหว"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],th:["ใช้ราคาที่ใช้ชำระราคาสำหรับการปิดของช่วงเวลาแบบรายวัน"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],th:["{value} จุดทศนิยม"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/th.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/th.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..f1c80c02 --- /dev/null +++ b/charting_library/bundles/th.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,7 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:e=>{e.exports={en:["bars"],th:["แท่ง"]}},31882:e=>{e.exports={en:["12-hours"],th:["12 ชั่วโมง"]}},5797:e=>{e.exports={en:["24-hours"],th:["24 ชั่วโมง"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],th:["สีของ Bars อ้างอิงจากราคาปิดก่อนหน้า"]}},23739:e=>{e.exports={en:["Canvas"],th:["ผ้าใบ"]}},24197:e=>{e.exports={en:["Center"],th:["ตรงกลาง"]}},15153:e=>{e.exports={en:["Chart basic styles"],th:["รูปแบบพื้นฐานของชาร์ต"]}},45639:e=>{e.exports={en:["Chart values"],th:["ค่าของชาร์ต"]}},84831:e=>{e.exports={en:["Close line"],th:["เส้นปิด"]}},74622:e=>{e.exports={en:["Crosshair"]}},81849:e=>{e.exports={en:["Currency"],th:["สกุลเงิน"]}},3015:e=>{e.exports={en:["Currency and Unit"],th:["สกุลเงินและหน่วย"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],th:["ปรับข้อมูลสำหรับการปันผล"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],th:["ปรับตามการเปลี่ยนแปลงสัญญา"]}},36620:e=>{e.exports={en:["Alerts"],th:["การแจ้งเตือน"]}},68650:e=>{e.exports={en:["Average close"],th:["เส้นราคาปิดเฉลี่ย"]}},27567:e=>{e.exports={en:["Bottom"],th:["ข้างล่าง"]}},3159:e=>{e.exports={en:["Bottom line"],th:["เส้นด้านล่าง"]}},74406:e=>{e.exports={en:["Body"],th:["บอดี้"]}},333:e=>{e.exports={en:["Borders"],th:["เส้นขอบ"]}},79468:e=>{e.exports={en:["Background"],th:["พื้นหลัง"]}},10842:e=>{e.exports={en:["Bar change values"],th:["ค่าเปลี่ยนแปลงของแท่ง"]}},70817:e=>{e.exports={en:["Bar change color based on value"]}},28975:e=>{e.exports={en:["Base level"],th:["ระดับฐาน"]}},76473:e=>{e.exports={en:["Bid and ask"],th:["เส้น Bid และ Ask"]}},32744:e=>{e.exports={en:["Buttons"],th:["ปุ่ม"]}},68662:e=>{e.exports={en:["Grid lines"],th:["เส้นกริด"]}},17611:e=>{e.exports={en:["Down bars"],th:["แท่งเทียนลง"]}},23743:e=>{e.exports={en:["Down color"],th:["สีของแท่งลง"]}},48225:e=>{e.exports={en:["Data modification"],th:["การแก้ไขข้อมูล"]}},84838:e=>{e.exports={en:["Date format"],th:["รูปแบบวันที่"]}},42357:e=>{e.exports={en:["Day of week on labels"],th:["วันในสัปดาห์บนป้ายกำกับ"]}},16564:e=>{e.exports={en:["Default"],th:["ค่าเริ่มต้น"]}},78734:e=>{e.exports={en:["Description"],th:["คำอธิบาย"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],th:["แสดง gaps ที่ไม่เคลื่อนไหว"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],th:["พื้นหลังชั่วโมงการซื้อขายทางอิเล็กทรอนิกส์"]}},69808:e=>{e.exports={en:["Events"],th:["เหตุการณ์"]}},41129:e=>{e.exports={en:["Fill"],th:["เติม"]}},61112:e=>{e.exports={en:["Fill top area"],th:["เติมพื้นที่ด้านบน"]}},73185:e=>{e.exports={en:["Fill bottom area"],th:["เติมพื้นที่ด้านล่าง"]}},3160:e=>{e.exports={en:["Horizontal"],th:["แนวนอน"]}},61900:e=>{e.exports={en:["Horz only"],th:["แนวนอนเท่านั้น"]}},14180:e=>{e.exports={en:["High and low"],th:["ราคาสูงและต่ำ"]}},56359:e=>{e.exports={en:["High line"],th:["เส้นบน"]}},47326:e=>{e.exports={en:["Integer"],th:["จำนวนเต็ม"]}},17854:e=>{e.exports={en:["Interval"],th:["ช่วงเวลา"]}},84549:e=>{e.exports={en:["Indicators"],th:["อินดิเคเตอร์"]}},78082:e=>{ +e.exports={en:["Indicators and financials"],th:["อินดิเคเตอร์และการเงิน"]}},21429:e=>{e.exports={en:["Inputs"],th:["ข้อมูล"]}},25765:e=>{e.exports={en:["Open market status"],th:["สถานะตลาดเปิด"]}},34579:e=>{e.exports={en:["Low line"],th:["เส้นล่าง"]}},14876:e=>{e.exports={en:["Logo"],th:["โลโก้"]}},89315:e=>{e.exports={en:["Long Description"],th:["คำอธิบายแบบยาว"]}},72423:e=>{e.exports={en:["Last day change values"],th:["ค่าการเปลี่ยนแปลงวันล่าสุด"]}},11626:e=>{e.exports={en:["Left"],th:["ซ้าย"]}},56982:e=>{e.exports={en:["Lines"],th:["เส้น"]}},8249:e=>{e.exports={en:["Money"],th:["เงิน"]}},70937:e=>{e.exports={en:["Margins"],th:["ระยะขอบ"]}},68833:e=>{e.exports={en:["Middle"],th:["ตรงกลาง"]}},58589:e=>{e.exports={en:["No overlapping labels"],th:["ไม่มีป้ายที่ทับซ้อนกัน"]}},60798:e=>{e.exports={en:["None"],th:["ไม่มี"]}},51019:e=>{e.exports={en:["Navigation"],th:["ปุ่มนำทาง"]}},99709:e=>{e.exports={en:["Name"],th:["ชื่อ"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],th:["บันทึกตำแหน่งขอบด้านซ้ายของชาร์ตเมื่อเปลี่ยนช่วงเวลา"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],th:["โหมดสเกล (A และ L)"]}},93968:e=>{e.exports={en:["Scales"],th:["มาตราส่วน"]}},90275:e=>{e.exports={en:["Scales and lines"],th:["สเกลและเส้น"]}},30042:e=>{e.exports={en:["Scales placement"],th:["การวางตำแหน่งสเกล"]}},28715:e=>{e.exports={en:["Status line"],th:["บรรทัดสถานะ"]}},95481:e=>{e.exports={en:["Symbol"],th:["สัญลักษณ์"]}},53263:e=>{e.exports={en:["Pane"],th:["หน้าต่างใหม่"]}},82894:e=>{e.exports={en:["Pane separators"],th:["ตัวแยกบานหน้าต่าง"]}},86235:e=>{e.exports={en:["Percentage"],th:["เปอร์เซ็นต์"]}},94408:e=>{e.exports={en:["Pips"],th:["Pip"]}},60904:e=>{e.exports={en:["Pre/post market"],th:["ก่อนตลาดเปิด/หลังตลาดปิด"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],th:["พื้นหลังชั่วโมงก่อนตลาดเปิด/หลังตลาดปิด"]}},59766:e=>{e.exports={en:["Precision"],th:["ความแม่นยำ"]}},83811:e=>{e.exports={en:["Previous day close"],th:["เส้นราคาปิดวันก่อนหน้า"]}},35082:e=>{e.exports={en:["Price Scale"],th:["สเกลราคา"]}},27632:e=>{e.exports={en:["Price and percentage value"],th:["ราคาและค่าเปอร์เซ็นต์"]}},62142:e=>{e.exports={en:["Price labels & lines"],th:["ป้ายราคา & เส้น"]}},84684:e=>{e.exports={en:["Price source"],th:["แหล่งราคา"]}},73466:e=>{e.exports={en:["Projection up bars"]}},77430:e=>{e.exports={en:["Projection candles"]}},88367:e=>{e.exports={en:["Projection down bars"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],th:["ราคาจริงในระดับราคา (แทนที่ราคา Heikin-Ashi)"]}},50421:e=>{e.exports={en:["Right"],th:["ขวา"]}},62532:e=>{e.exports={en:["Right Margin"],th:["ระยะขอบด้านขวา"]}},41571:e=>{e.exports={en:["Watermark"],th:["ลายน้ำ"]}},32163:e=>{e.exports={en:["Wick"],th:["ไส้เทียน"]}},97118:e=>{e.exports={en:["Top"],th:["บน"]}},89349:e=>{e.exports={en:["Top line"],th:["เส้นด้านบน"]}},70320:e=>{e.exports={en:["Text"],th:["ตัวอักษร"]}},25485:e=>{e.exports={en:["Text alignment"],th:["การจัดตำแหน่งตัวอักษร"]}},67781:e=>{e.exports={ +en:["Text orientation"],th:["การเรียงตัวของตัวอักษร"]}},20215:e=>{e.exports={en:["Thin bars"],th:["แท่งบาง"]}},70198:e=>{e.exports={en:["Title"],th:["ชื่อ"]}},29854:e=>{e.exports={en:["Titles"],th:["ชื่อเรื่อง"]}},5791:e=>{e.exports={en:["Ticker"],th:["สัญลักษณ์"]}},16816:e=>{e.exports={en:["Ticker and description"],th:["สัญลักษณ์และคำอธิบาย"]}},24821:e=>{e.exports={en:["Ticks"]}},93965:e=>{e.exports={en:["Time Scale"],th:["สเกลเวลา"]}},5591:e=>{e.exports={en:["Time hours format"],th:["รูปแบบชั่วโมงเวลา"]}},77073:e=>{e.exports={en:["Timezone"],th:["เขตเวลา"]}},76495:e=>{e.exports={en:["Trading"],th:["การซื้อขาย"]}},33564:e=>{e.exports={en:["Unit"],th:["หน่วย"]}},23091:e=>{e.exports={en:["Up color"],th:["สีของแท่งขึ้น"]}},36957:e=>{e.exports={en:["Up bars"],th:["แท่งเทียนขึ้น"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],th:["ใช้ราคาที่ใช้ชำระราคาสำหรับการปิดของช่วงเวลาแบบรายวัน"]}},37644:e=>{e.exports={en:["Volume"],th:["ปริมาณการซื้อขาย"]}},51514:e=>{e.exports={en:["Value"],th:["มูลค่า"]}},31218:e=>{e.exports={en:["Value according to scale"],th:["ค่าตามสเกล"]}},60092:e=>{e.exports={en:["Values"],th:["มูลค่า"]}},83594:e=>{e.exports={en:["Vert and horz"],th:["แนวตั้งและแนวนอน"]}},8402:e=>{e.exports={en:["Vert only"],th:["แนวตั้งเท่านั้น"]}},69526:e=>{e.exports={en:["Vertical"],th:["แนวตั้ง"]}},21105:e=>{e.exports={en:["candle"],th:["แท่งเทียน"]}},27068:e=>{e.exports={en:["change HLC bars"],th:["เปลี่ยนแท่ง HLC"]}},21201:e=>{e.exports={en:["change HLC bars color"],th:["เปลี่ยนสีแท่ง HLC"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],th:["เปลี่ยนการมองเห็นปุ่มนำทาง"]}},96227:e=>{e.exports={en:["change open market status visibility"],th:["เปลี่ยนการมองเห็นสถานะตลาดเปิด"]}},43231:e=>{e.exports={en:["change average close price line width"],th:["เปลี่ยนความกว้างของเส้นราคาปิดเฉลี่ย"]}},47026:e=>{e.exports={en:["change average close price line color"],th:["เปลี่ยนสีเส้นราคาปิดเฉลี่ย"]}},29281:e=>{e.exports={en:["change area fill color"],th:["เปลี่ยนสีพื้นที่ด้านใน"]}},27059:e=>{e.exports={en:["change area line visibility"],th:["เปลี่ยนการมองเห็นพื้นที่ใต้เส้นกราฟ"]}},89346:e=>{e.exports={en:["change area line width"],th:["เปลี่ยนความกว้างพื้นที่ใต้เส้นกราฟ"]}},29605:e=>{e.exports={en:["change area line color"],th:["เปลี่ยนสีพื้นที่ใต้เส้นกราฟ"]}},56864:e=>{e.exports={en:["change area line style"],th:["เปลี่ยนรูปแบบเส้นพื้นที่"]}},4640:e=>{e.exports={en:["change area price source"],th:["เปลี่ยนพื้นที่แหล่งราคา"]}},98407:e=>{e.exports={en:["change ask line color"],th:["เปลี่ยนสีเส้น ask"]}},42190:e=>{e.exports={en:["change base level"],th:["ปรับระดับฐาน"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],th:["เปลี่ยนสีเส้นฐานด้านล่าง"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],th:["เปลี่ยนรูปแบบเส้นฐานด้านล่าง"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],th:["เปลี่ยนความกว้างของเส้นฐานด้านล่าง"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],th:["เปลี่ยนสีพื้นที่ใต้เส้นฐานด้านล่าง"]}},92873:e=>{ +e.exports={en:["change baseline fill top area color"],th:["เปลี่ยนสีพื้นที่ใต้เส้นฐานด้านบน"]}},68609:e=>{e.exports={en:["change baseline price source"],th:["เปลี่ยนแหล่งราคาพื้นฐาน"]}},69044:e=>{e.exports={en:["change baseline top line color"],th:["เปลี่ยนสีเส้นฐานด้านบน"]}},4425:e=>{e.exports={en:["change baseline top line style"],th:["เปลี่ยนรูปแบบเส้นฐานด้านบน"]}},68197:e=>{e.exports={en:["change baseline top line width"],th:["เปลี่ยนความกว้างของเส้นฐานด้านบน"]}},33464:e=>{e.exports={en:["change bar up color"],th:["เปลี่ยนสีแท่งขาขึ้น"]}},14201:e=>{e.exports={en:["change bar change down color"]}},30196:e=>{e.exports={en:["change bar change up color"]}},27426:e=>{e.exports={en:["change bar change visibility"],th:["เปลี่ยนการมองเห็นการเปลี่ยนบาร์"]}},59622:e=>{e.exports={en:["change bar down color"],th:["เปลี่ยนสีแท่งขาลง"]}},17919:e=>{e.exports={en:["change bid line color"],th:["เปลี่ยนสีเส้น bid"]}},32094:e=>{e.exports={en:["change bottom margin"],th:["เปลี่ยนระยะขอบด้านล่าง"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],th:["เปลี่ยนสกุลเงินและการมองเห็นป้ายหน่วย"]}},64003:e=>{e.exports={en:["change currency label visibility"],th:["เปลี่ยนการมองเห็นป้ายสกุลเงิน"]}},42803:e=>{e.exports={en:["change chart background color"],th:["เปลี่ยนสีพื้นหลังชาร์ต"]}},41382:e=>{e.exports={en:["change chart background type"],th:["เปลี่ยนประเภทพื้นหลังของชาร์ต"]}},79637:e=>{e.exports={en:["change chart values visibility"],th:["เปลี่ยนการมองเห็นค่าของชาร์ต"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],th:["เปลี่ยนสีแท่งอ้างอิงจากราคาปิดก่อนหน้า"]}},88324:e=>{e.exports={en:["change column up color"],th:["เปลี่ยนสีคอลัมน์ขึ้น"]}},93890:e=>{e.exports={en:["change column down color"],th:["เปลี่ยนสีคอลัมน์ลง"]}},4727:e=>{e.exports={en:["change column price source"],th:["เปลี่ยนแหล่งที่มาของราคาคอลัมน์"]}},50544:e=>{e.exports={en:["change crosshair width"],th:["เปลี่ยนความกว้าง Crosshair"]}},92885:e=>{e.exports={en:["change crosshair color"],th:["เปลี่ยนสี Crosshair"]}},68418:e=>{e.exports={en:["change crosshair style"],th:["เปลี่ยนรูปแบบ Crosshair"]}},43109:e=>{e.exports={en:["change date format"],th:["เปลี่ยนรูปแบบวันที่"]}},30418:e=>{e.exports={en:["change day of week on labels"],th:["เปลี่ยนวันในสัปดาห์บนป้ายกำกับ"]}},82063:e=>{e.exports={en:["change decimal places"],th:["เปลี่ยนตำแหน่งทศนิยม"]}},45397:e=>{e.exports={en:["change extended hours color"],th:["เปลี่ยนสีช่วงเวลานอกชั่วโมงปกติ"]}},47393:e=>{e.exports={en:["change electronic trading hours"],th:["เปลี่ยนชั่วโมงการซื้อขายทางอิเล็กทรอนิกส์"]}},73844:e=>{e.exports={en:["change grid lines visibility"],th:["เปลี่ยนการมองเห็นเส้นกริด"]}},61407:e=>{e.exports={en:["change high and low price line color"],th:["เปลี่ยนสีเส้นราคาสูงและต่ำ"]}},39581:e=>{e.exports={en:["change high and low price line width"],th:["เปลี่ยนความกว้างของเส้นราคาสูงและต่ำ"]}},6026:e=>{e.exports={en:["change high-low body color"],th:["เปลี่ยนสีพื้นค่าสูง-ต่ำ"]}},73021:e=>{e.exports={en:["change high-low body visibility"], +th:["เปลี่ยนการมองเห็นพื้นค่าสูง-ต่ำ"]}},46844:e=>{e.exports={en:["change high-low border color"],th:["เปลี่ยนสีเส้นขอบค่าสูง-ต่ำ"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],th:["เปลี่ยนการมองเห็นเส้นขอบค่าสูง-ต่ำ"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],th:["เปลี่ยนการมองเห็นป้ายค่าสูง-ต่ำ"]}},56961:e=>{e.exports={en:["change high-low labels color"],th:["เปลี่ยนสีป้ายค่าสูง-ต่ำ"]}},21133:e=>{e.exports={en:["change horz grid lines color"],th:["เปลี่ยนสีเส้นกริดแนวนอน"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],th:["เปลี่ยนการมองเห็นชื่ออินดิเคเตอร์"]}},49583:e=>{e.exports={en:["change indicator values visibility"],th:["เปลี่ยนการมองเห็นค่าอินดิเคเตอร์"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],th:["เปลี่ยนการมองเห็นการใส่อินดิเคเตอร์"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],th:["เปลี่ยนอินดิเคเตอร์และการมองเห็นป้ายชื่อการเงิน"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],th:["เปลี่ยนอินดิเคเตอร์และการมองเห็นฉลากมูลค่าทางการเงิน"]}},451:e=>{e.exports={en:["change interval watermark visibility"],th:["เปลี่ยนการมองเห็นลายน้ำของช่วงเวลา"]}},66307:e=>{e.exports={en:["change last day change visibility"],th:["เปลี่ยนการมองเห็นการเปลี่ยนแปลงวันล่าสุด"]}},91873:e=>{e.exports={en:["change legend background transparency"],th:["เปลี่ยนความโปร่งใสพื้นหลังคำอธิบาย"]}},14246:e=>{e.exports={en:["change legend background visibility"],th:["เปลี่ยนการมองเห็นพื้นหลังคำอธิบาย"]}},88640:e=>{e.exports={en:["change line color"],th:["เปลี่ยนสีเส้น"]}},28818:e=>{e.exports={en:["change line style"],th:["เปลี่ยนรูปแบบเส้น"]}},41837:e=>{e.exports={en:["change line price source"],th:["เปลี่ยนเส้นแหล่งราคา"]}},48339:e=>{e.exports={en:["change line width"],th:["เปลี่ยนความกว้างเส้น"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],th:["เปลี่ยนการมองเห็นปุ่มหน้าต่างเสริม"]}},52203:e=>{e.exports={en:["change pane separators color"],th:["เปลี่ยนสีตัวคั่นบานหน้าต่าง"]}},38730:e=>{e.exports={en:["change post market color"],th:["เปลี่ยนสีหลังตลาดปิด"]}},28075:e=>{e.exports={en:["change post market line color"],th:["เปลี่ยนสีเส้นหลังตลาดปิด"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],th:["เปลี่ยนการมองเห็นเส้นราคาก่อนตลาดเปิด/หลังตลาดปิด"]}},44371:e=>{e.exports={en:["change pre market color"],th:["เปลี่ยนสีก่อนตลาดเปิด"]}},96114:e=>{e.exports={en:["change pre market line color"],th:["เปลี่ยนสีเส้นก่อนตลาดเปิด"]}},69814:e=>{e.exports={en:["change previous close price line color"],th:["เปลี่ยนสีของเส้นราคาปิดก่อนหน้า"]}},13660:e=>{e.exports={en:["change previous close price line width"],th:["เปลี่ยนความกว้างของเส้นราคาปิดก่อนหน้า"]}},87861:e=>{e.exports={en:["change price line color"],th:["เปลี่ยนสีเส้นราคา"]}},29353:e=>{e.exports={en:["change price line width"],th:["เปลี่ยนความกว้างเส้นราคา"]}},16241:e=>{e.exports={en:["change range bars style"],th:["เปลี่ยนรูปแบบเรนจ์บาร์"]}},65821:e=>{e.exports={en:["change range thin bars"], +th:["เปลี่ยนช่วงระยะแท่งบาง"]}},75487:e=>{e.exports={en:["change renko wick down color"],th:["เปลี่ยนไส้เทียน renko ขาลง"]}},92277:e=>{e.exports={en:["change renko wick up color"],th:["เปลี่ยนสีไส้เทียน renko ขาขึ้น"]}},79604:e=>{e.exports={en:["change renko wick visibility"],th:["เปลี่ยนการมองเห็นไส้เทียน renko"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],th:["เปลี่ยนการมองเห็นลายน้ำของการเล่นซ้ำ"]}},82946:e=>{e.exports={en:["change right margin"],th:["เปลี่ยนระยะขอบด้านขวา"]}},79545:e=>{e.exports={en:["change right margin percentage"],th:["เปลี่ยนเปอร์เซ็นต์ระยะขอบขวา"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],th:["เปลี่ยนการมองเห็นลายน้ำของทิกเกอร์สัญลักษณ์"]}},78995:e=>{e.exports={en:["change symbol watermark color"],th:["เปลี่ยนสีลายน้ำของสัญลักษณ์"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],th:["เปลี่ยนการมองเห็นลายน้ำของสัญลักษณ์"]}},88167:e=>{e.exports={en:["change symbol description visibility"],th:["เปลี่ยนการมองเห็นคำอธิบายสัญลักษณ์"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],th:["เปลี่ยนการมองเห็นลายน้ำของคำอธิบายสัญลักษณ์"]}},12050:e=>{e.exports={en:["change symbol field visibility"],th:["เปลี่ยนสัญลักษณ์การมองเห็น"]}},46066:e=>{e.exports={en:["change symbol last value mode"],th:["เปลี่ยนโหมดสัญลักษณ์ค่าสุดท้าย"]}},902:e=>{e.exports={en:["change symbol legend format"],th:["เปลี่ยนรูปแบบคำอธิบายสัญลักษณ์"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],th:["เปลี่ยนบันทึกตำแหน่งขอบด้านซ้ายของชาร์ตเมื่อเปลี่ยนช่วงเวลา"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],th:["เปลี่ยนการมองเห็นปุ่มโหมดสเกล"]}},76131:e=>{e.exports={en:["change scales text color"],th:["เปลี่ยนสีสเกลข้อความ"]}},27792:e=>{e.exports={en:["change scales font size"],th:["เปลี่ยนขนาดสเกลตัวอักษร"]}},94997:e=>{e.exports={en:["change scales lines color"],th:["เปลี่ยนสีสเกลเส้น"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],th:["เปลี่ยนการมองเห็นตัวแบ่งเซสชั่น"]}},28175:e=>{e.exports={en:["change sessions breaks width"],th:["เปลี่ยนความกว้างตัวแบ่งเซสชั่น"]}},33895:e=>{e.exports={en:["change sessions breaks color"],th:["เปลี่ยนสีตัวแบ่งเซสชั่น"]}},21641:e=>{e.exports={en:["change sessions breaks style"],th:["เปลี่ยนรูปแบบตัวแบ่งเซสชั่น"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],th:["เปลี่ยนการแสดงผลราคาจริงบนสเกลราคา (แทนที่ราคาแบบ ไฮเก้น-อะชิ)"]}},60834:e=>{e.exports={en:["change thin bars"],th:["เปลี่ยนแท่งบาง"]}},39754:e=>{e.exports={en:["change time hours format"],th:["เปลี่ยนรูปแบบชั่วโมงเวลา"]}},74883:e=>{e.exports={en:["change top margin"],th:["เปลี่ยนระยะขอบด้านบน"]}},51250:e=>{e.exports={en:["change unit label visibility"],th:["เปลี่ยนการมองเห็นป้ายหน่วย"]}},28142:e=>{e.exports={en:["change use custom bar change colors"]}},71805:e=>{e.exports={en:["change vert grid lines color"],th:["เปลี่ยนสีเส้นกริดแนวตั้ง"]}},96201:e=>{e.exports={en:["change volume values visibility"], +th:["เปลี่ยนการมองเห็นค่าวอลุ่ม"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],th:["เปลี่ยนสีเส้นขอบ {candleType} ขาขึ้น"]}},36697:e=>{e.exports={en:["change {candleType} up color"],th:["เปลี่ยนสี {candleType} ขาขึ้น"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],th:["เปลี่ยนสีไส้เทียน {candleType} ขาลง"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],th:["เปลี่ยนสีไส้เทียน {candleType} ขาขึ้น"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],th:["เปลี่ยนการมองเห็นไส้เทียน {candleType}"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],th:["เปลี่ยนการมองเห็นพื้น {candleType}"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],th:["เปลี่ยนการมองเห็นเส้นขอบ {candleType}"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],th:["เปลี่ยนสีเส้นขอบ {candleType} ขาลง"]}},64571:e=>{e.exports={en:["change {candleType} down color"],th:["เปลี่ยนสี {candleType} ขาลง"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],th:["เปลี่ยนสีเส้นขอบ {chartType} แท่งขาลง"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],th:["เปลี่ยนสีเส้นขอบ {chartType} แท่งขาขึ้น"]}},5012:e=>{e.exports={en:["change {chartType} down color"],th:["เปลี่ยนสี {chartType} ขาลง"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],th:["เปลี่ยนสีเส้นขอบ {chartType} Projection bar up"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],th:["เปลี่ยนสี {chartType} Projection bar down"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],th:["เปลี่ยนสี {chartType} Projection bar up"]}},6970:e=>{e.exports={en:["change {chartType} up color"],th:["เปลี่ยนสี {chartType} ขาขึ้น"]}},66110:e=>{e.exports={en:["change {inputName} property"],th:["เปลี่ยนคุณสมบัติ {inputName}"]}},18077:e=>{e.exports={en:["adjust data for dividends"],th:["ปรับข้อมูลสำหรับการปันผล"]}},1433:e=>{e.exports={en:["adjust for contract changes"],th:["ปรับตามการเปลี่ยนแปลงสัญญา"]}},92598:e=>{e.exports={en:["hollow candles"],th:["แท่งเทียนแบบกลวง"]}},57243:e=>{e.exports={en:["range","ranges"],th:["ช่วง"]}},70282:e=>{e.exports={en:["renko"],th:["Renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],th:["สลับดู gaps ที่ไม่เคลื่อนไหว"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],th:["ใช้ราคาที่ใช้ชำระราคาสำหรับการปิดของช่วงเวลาแบบรายวัน"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],th:["{value} จุดทศนิยม"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/tr.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/tr.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index 608840ca..00000000 --- a/charting_library/bundles/tr.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,8 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:e=>{e.exports={en:["bars"],tr:["çubuklar"]}},31882:e=>{e.exports={en:["12-hours"],tr:["12-saat"]}},5797:e=>{e.exports={en:["24-hours"],tr:["24-saat"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],tr:["Önceki kapanışa göre çubuk rengi"]}},23739:e=>{e.exports={en:["Canvas"],tr:["Kanvas"]}},24197:e=>{e.exports={en:["Center"],tr:["Orta"]}},15153:e=>{e.exports={en:["Chart basic styles"],tr:["Basit grafik stilleri"]}},45639:e=>{e.exports={en:["Chart values"],tr:["Grafik değerleri"]}},84831:e=>{e.exports={en:["Close line"],tr:["Kapanış çizgisi"]}},74622:e=>{e.exports={en:["Crosshair"],tr:["Artı işareti"]}},81849:e=>{e.exports={en:["Currency"],tr:["Döviz"]}},3015:e=>{e.exports={en:["Currency and Unit"],tr:["Para Birimi ve Birim"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],tr:["Verileri temettülere göre düzelt"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],tr:["Sözleşme değişikliklerine göre ayarla"]}},36620:e=>{e.exports={en:["Alerts"],tr:["Alarmlar"]}},68650:e=>{e.exports={en:["Average close"],tr:["Ortalama kapanış"]}},27567:e=>{e.exports={en:["Bottom"],tr:["Alt"]}},3159:e=>{e.exports={en:["Bottom line"],tr:["Alt çizgi"]}},74406:e=>{e.exports={en:["Body"],tr:["Temel hat"]}},333:e=>{e.exports={en:["Borders"],tr:["Kenarlar"]}},79468:e=>{e.exports={en:["Background"],tr:["Arkaplan"]}},10842:e=>{e.exports={en:["Bar change values"],tr:["Çubuk Değişim Değeri"]}},28975:e=>{e.exports={en:["Base level"],tr:["Temel seviye"]}},76473:e=>{e.exports={en:["Bid and ask"],tr:["Alım ve Satım"]}},32744:e=>{e.exports={en:["Buttons"],tr:["Tuşlar"]}},68662:e=>{e.exports={en:["Grid lines"],tr:["Kılavuz çizgileri"]}},17611:e=>{e.exports={en:["Down bars"],tr:["Düşüş Çubukları"]}},23743:e=>{e.exports={en:["Down color"],tr:["Düşüş Rengi"]}},48225:e=>{e.exports={en:["Data modification"],tr:["Veri değişimi"]}},84838:e=>{e.exports={en:["Date format"],tr:["Tarih biçimi"]}},42357:e=>{e.exports={en:["Day of week on labels"],tr:["Zaman çizelgesi etiketlerinde haftanın günleri"]}},16564:e=>{e.exports={en:["Default"],tr:["Varsayılan"]}},78734:e=>{e.exports={en:["Description"],tr:["Açıklama"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],tr:["Etkinlik dışı boşlukları göster"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],tr:["Elektronik işlem saatleri arka planı"]}},69808:e=>{e.exports={en:["Events"],tr:["Olaylar"]}},41129:e=>{e.exports={en:["Fill"],tr:["Doldur"]}},61112:e=>{e.exports={en:["Fill top area"],tr:["Üst alanı doldurun"]}},73185:e=>{e.exports={en:["Fill bottom area"],tr:["Alt alanı doldur"]}},3160:e=>{e.exports={en:["Horizontal"],tr:["Yatay"]}},61900:e=>{e.exports={en:["Horz only"],tr:["Sadece yatay"]}},14180:e=>{e.exports={en:["High and low"],tr:["Yüksek ve düşük"]}},56359:e=>{e.exports={en:["High line"],tr:["Yüksek çizgi"]}},47326:e=>{e.exports={en:["Integer"],tr:["Tamsayı"]}},17854:e=>{e.exports={en:["Interval"],tr:["Aralık"]}},84549:e=>{e.exports={en:["Indicators"],tr:["Göstergeler"]}}, -78082:e=>{e.exports={en:["Indicators and financials"],tr:["Göstergeler ve finansallar"]}},21429:e=>{e.exports={en:["Inputs"],tr:["Girdiler"]}},25765:e=>{e.exports={en:["Open market status"],tr:["Açık piyasa durumu"]}},34579:e=>{e.exports={en:["Low line"],tr:["Düşük çizgisi"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"],tr:["Uzun Açıklama"]}},72423:e=>{e.exports={en:["Last day change values"],tr:["Son gün değişim değerleri"]}},11626:e=>{e.exports={en:["Left"],tr:["Sol"]}},56982:e=>{e.exports={en:["Lines"],tr:["Çizgiler"]}},8249:e=>{e.exports={en:["Money"],tr:["Para"]}},70937:e=>{e.exports={en:["Margins"],tr:["Marjlar"]}},68833:e=>{e.exports={en:["Middle"],tr:["Orta"]}},58589:e=>{e.exports={en:["No overlapping labels"],tr:["Örtüşen Etiketleri Gösterme"]}},60798:e=>{e.exports={en:["None"],tr:["Hiçbiri"]}},51019:e=>{e.exports={en:["Navigation"],tr:["Navigasyon"]}},99709:e=>{e.exports={en:["Name"],tr:["Adı"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],tr:["Aralığı değiştirirken grafiğin sol kenar konumunu kaydet"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],tr:["Skala modları (A ve L)"]}},93968:e=>{e.exports={en:["Scales"],tr:["Ölçekler"]}},90275:e=>{e.exports={en:["Scales and lines"],tr:["Ölçekler ve çizgiler"]}},30042:e=>{e.exports={en:["Scales placement"],tr:["Ölçekleri yerleştirme"]}},28715:e=>{e.exports={en:["Status line"],tr:["Durum çizgisi"]}},95481:e=>{e.exports={en:["Symbol"],tr:["Sembol"]}},53263:e=>{e.exports={en:["Pane"],tr:["Bölme"]}},82894:e=>{e.exports={en:["Pane separators"],tr:["Bölme ayırıcıları"]}},86235:e=>{e.exports={en:["Percentage"],tr:["Yüzde"]}},94408:e=>{e.exports={en:["Pips"],tr:["Pip"]}},60904:e=>{e.exports={en:["Pre/post market"],tr:["Piyasa Öncesi/Sonrası"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],tr:["Piyasa saatleri öncesi/sonrası arka planı"]}},59766:e=>{e.exports={en:["Precision"],tr:["Hassasiyet"]}},83811:e=>{e.exports={en:["Previous day close"],tr:["Önceki Gün Kapanışı"]}},35082:e=>{e.exports={en:["Price Scale"],tr:["Fiyat Ölçeği"]}},27632:e=>{e.exports={en:["Price and percentage value"],tr:["Fiyat ve yüzdelik değeri"]}},62142:e=>{e.exports={en:["Price labels & lines"],tr:["Fiyat etiketleri ve çizgileri"]}},84684:e=>{e.exports={en:["Price source"],tr:["Fiyat Kaynağı"]}},73466:e=>{e.exports={en:["Projection up bars"],tr:["Artış çubuğun projeksiyonu"]}},77430:e=>{e.exports={en:["Projection candles"],tr:["Projeksiyon mumları"]}},88367:e=>{e.exports={en:["Projection down bars"],tr:["Düşüş çubuğun projeksiyonu"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],tr:["Fiyat ölçeğinde gerçek fiyatlar (Heikin-Ashi fiyatı yerine)"]}},50421:e=>{e.exports={en:["Right"],tr:["Sağ"]}},62532:e=>{e.exports={en:["Right Margin"],tr:["Sağ Kenar Boşluğu"]}},41571:e=>{e.exports={en:["Watermark"],tr:["Filigran"]}},32163:e=>{e.exports={en:["Wick"],tr:["Fitil"]}},97118:e=>{e.exports={en:["Top"],tr:["Üst"]}},89349:e=>{e.exports={en:["Top line"],tr:["Üst çizgi"]}}, -70320:e=>{e.exports={en:["Text"],tr:["Metin"]}},25485:e=>{e.exports={en:["Text alignment"],tr:["Metin hizalama"]}},67781:e=>{e.exports={en:["Text orientation"],tr:["Metin yönü"]}},20215:e=>{e.exports={en:["Thin bars"],tr:["İnce çubuklar"]}},70198:e=>{e.exports={en:["Title"],tr:["Başlık"]}},29854:e=>{e.exports={en:["Titles"],tr:["Başlıklar"]}},5791:e=>{e.exports={en:["Ticker"],tr:["Sembol"]}},16816:e=>{e.exports={en:["Ticker and description"],tr:["Sembol ve açıklama"]}},24821:e=>{e.exports={en:["Ticks"],tr:["Fiyat adımı"]}},93965:e=>{e.exports={en:["Time Scale"],tr:["Zaman Ölçeği"]}},5591:e=>{e.exports={en:["Time hours format"],tr:["Saat biçimi"]}},77073:e=>{e.exports={en:["Timezone"],tr:["Zaman dilimi"]}},76495:e=>{e.exports={en:["Trading"],tr:["İşlem"]}},33564:e=>{e.exports={en:["Unit"],tr:["Birim"]}},23091:e=>{e.exports={en:["Up color"],tr:["Artış Rengi"]}},36957:e=>{e.exports={en:["Up bars"],tr:["Artış çubukları"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],tr:["Günlük aralıkta kapanış olarak uzlaşma fiyatını kullan"]}},37644:e=>{e.exports={en:["Volume"],tr:["Hacim"]}},51514:e=>{e.exports={en:["Value"],tr:["Değer"]}},31218:e=>{e.exports={en:["Value according to scale"],tr:["Ölçeğe göre değer"]}},60092:e=>{e.exports={en:["Values"],tr:["Değerler"]}},83594:e=>{e.exports={en:["Vert and horz"],tr:["Dik ve yatay"]}},8402:e=>{e.exports={en:["Vert only"],tr:["Sadece dikey"]}},69526:e=>{e.exports={en:["Vertical"],tr:["Dikey"]}},21105:e=>{e.exports={en:["candle"],tr:["mum"]}},27068:e=>{e.exports={en:["change HLC bars"],tr:["HLC çubuk değiştir"]}},21201:e=>{e.exports={en:["change HLC bars color"],tr:["HLC çubuklarının rengini değiştir"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],tr:["gezinme düğmelerinin görünürlüğünü değiştir"]}},96227:e=>{e.exports={en:["change open market status visibility"],tr:["açık piyasa durumu görünürlüğünü değiştir"]}},43231:e=>{e.exports={en:["change average close price line width"],tr:["ortalama kapanış fiyatı çizgi genişliğini değiştir"]}},47026:e=>{e.exports={en:["change average close price line color"],tr:["ortalama kapanış fiyatı çizgi rengini değiştir"]}},29281:e=>{e.exports={en:["change area fill color"],tr:["alan dolgu rengini değiştir"]}},27059:e=>{e.exports={en:["change area line visibility"],tr:["alan çizgisi görünürlüğünü değiştirme"]}},89346:e=>{e.exports={en:["change area line width"],tr:["alan çizgi genişliğini değiştir"]}},29605:e=>{e.exports={en:["change area line color"],tr:["alan çizgi rengini değiştir"]}},56864:e=>{e.exports={en:["change area line style"],tr:["alan çizgisi stilini değiştir"]}},4640:e=>{e.exports={en:["change area price source"],tr:["alan fiyat kaynağını değiştir"]}},98407:e=>{e.exports={en:["change ask line color"],tr:["al satırı rengini değiştir"]}},42190:e=>{e.exports={en:["change base level"],tr:["taban seviyesini değiştir"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],tr:["taban çizgisi alt çizgi rengini değiştir"]}},85684:e=>{e.exports={en:["change baseline bottom line style"], -tr:["taban çizgisi alt çizgi stilini değiştir"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],tr:["taban çizgisi alt çizgi genişliğini değiştir"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],tr:["taban çizgisi dolgu alt alanı rengini değiştir"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],tr:["taban çizgisi dolgu üst alan rengini değiştir"]}},68609:e=>{e.exports={en:["change baseline price source"],tr:["temel fiyat kaynağını değiştir"]}},69044:e=>{e.exports={en:["change baseline top line color"],tr:["taban çizgisi üst çizgi rengini değiştir"]}},4425:e=>{e.exports={en:["change baseline top line style"],tr:["taban çizgisi üst çizgi stilini değiştir"]}},68197:e=>{e.exports={en:["change baseline top line width"],tr:["taban çizgisi üst çizgi genişliğini değiştir"]}},33464:e=>{e.exports={en:["change bar up color"],tr:["çubuğun üst rengini değiştir"]}},27426:e=>{e.exports={en:["change bar change visibility"],tr:["çubuk değiştirme görünürlüğünü değiştir"]}},59622:e=>{e.exports={en:["change bar down color"],tr:["çubuğun alt rengini değiştir"]}},17919:e=>{e.exports={en:["change bid line color"],tr:["sat satırı rengini değiştir"]}},32094:e=>{e.exports={en:["change bottom margin"],tr:["alt kenar boşluğunu değiştir"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],tr:["para birimi ve birim etiketleri görünürlüğünü değiştir"]}},64003:e=>{e.exports={en:["change currency label visibility"],tr:["para birimi etiketi görünürlüğünü değiştir"]}},42803:e=>{e.exports={en:["change chart background color"],tr:["grafik arka plan rengini değiştir"]}},41382:e=>{e.exports={en:["change chart background type"],tr:["grafik arka plan türünü değiştir"]}},79637:e=>{e.exports={en:["change chart values visibility"],tr:["grafik değerleri görünürlüğünü değiştir"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],tr:["önceki kapanışa göre renk çubuklarını değiştir"]}},88324:e=>{e.exports={en:["change column up color"],tr:["yukarı sütun rengini değiştir"]}},93890:e=>{e.exports={en:["change column down color"],tr:["aşağı sütun rengini değiştir"]}},4727:e=>{e.exports={en:["change column price source"],tr:["sütun fiyat kaynağını değiştir"]}},50544:e=>{e.exports={en:["change crosshair width"],tr:["artı işareti genişliğini değiştir"]}},92885:e=>{e.exports={en:["change crosshair color"],tr:["artı işareti rengini değiştir"]}},68418:e=>{e.exports={en:["change crosshair style"],tr:["artı stilini değiştir"]}},43109:e=>{e.exports={en:["change date format"],tr:["tarih biçimini değiştir"]}},30418:e=>{e.exports={en:["change day of week on labels"],tr:["zaman çizelgesi etiketlerinde haftanın gününü değiştir"]}},82063:e=>{e.exports={en:["change decimal places"],tr:["ondalık basamakları değiştir"]}},45397:e=>{e.exports={en:["change extended hours color"],tr:["uzatılmış saat rengini değiştir"]}},47393:e=>{e.exports={en:["change electronic trading hours"],tr:["elektronik işlem saatlerini değiştir"]}},73844:e=>{e.exports={en:["change grid lines visibility"], -tr:["kılavuz çizgilerinin görünürlüğünü değiştirme"]}},61407:e=>{e.exports={en:["change high and low price line color"],tr:["yüksek ve düşük fiyat çizgilerinin rengini değiştir"]}},39581:e=>{e.exports={en:["change high and low price line width"],tr:["yüksek ve düşük fiyat çizgilerinin genişliğini değiştir"]}},6026:e=>{e.exports={en:["change high-low body color"],tr:["yüksek-düşük orta rengi değiştir"]}},73021:e=>{e.exports={en:["change high-low body visibility"],tr:["yüksek-düşük gövde görünürlüğünü değiştir"]}},46844:e=>{e.exports={en:["change high-low border color"],tr:["yüksek-düşük kenar rengi değiştir"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],tr:["yüksek-alt sınır görünürlüğünü değiştir"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],tr:["yüksek-düşük etiket görünümü değiştir"]}},56961:e=>{e.exports={en:["change high-low labels color"],tr:["yüksek-düşük etiket rengi değiştir"]}},21133:e=>{e.exports={en:["change horz grid lines color"],tr:["yatay ızgara çizgilerinin rengini değiştir"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],tr:["gösterge başlıklarının görünürlüğünü değiştir"]}},49583:e=>{e.exports={en:["change indicator values visibility"],tr:["gösterge değerleri görünürlüğünü değiştir"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],tr:["gösterge girdileri görünürlüğünü değiştir"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],tr:["göstergeleri ve finansal isim etiketlerinin görünürlüğünü değiştir"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],tr:["göstergeleri ve finansal değer etiketlerinin görünürlüğünü değiştir"]}},451:e=>{e.exports={en:["change interval watermark visibility"],tr:["aralık filigran görünürlüğünü değiştir"]}},66307:e=>{e.exports={en:["change last day change visibility"],tr:["değişim son gün değişim görünürlük"]}},91873:e=>{e.exports={en:["change legend background transparency"],tr:["efsane arka plan şeffaflığını değiştir"]}},14246:e=>{e.exports={en:["change legend background visibility"],tr:["efsane arka plan görünürlüğünü değiştir"]}},88640:e=>{e.exports={en:["change line color"],tr:["çizgi rengini değiştir"]}},28818:e=>{e.exports={en:["change line style"],tr:["çizgi stilini değiştir"]}},41837:e=>{e.exports={en:["change line price source"],tr:["çizgi fiyatı kaynağını değiştir"]}},48339:e=>{e.exports={en:["change line width"],tr:["çizgi genişliğini değiştir"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],tr:["bölme düğmelerinin görünürlüğünü değiştir"]}},52203:e=>{e.exports={en:["change pane separators color"],tr:["bölme ayırıcıların rengini değiştir"]}},38730:e=>{e.exports={en:["change post market color"],tr:["pazar sonrası rengini değiştir"]}},28075:e=>{e.exports={en:["change post market line color"],tr:["piyasa sonrası çizgi rengini değiştir"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],tr:["piyasa öncesi/sonrası fiyat çizgilerinin görünürlüğünü değiştir"]}},44371:e=>{e.exports={ -en:["change pre market color"],tr:["piyasa öncesi rengini değiştir"]}},96114:e=>{e.exports={en:["change pre market line color"],tr:["piyasa öncesi çizgi rengini değiştir"]}},69814:e=>{e.exports={en:["change previous close price line color"],tr:["önceki kapanış fiyatı satırı rengi değiştir"]}},13660:e=>{e.exports={en:["change previous close price line width"],tr:["önceki kapanış fiyat satırı genişliğini değiştir"]}},87861:e=>{e.exports={en:["change price line color"],tr:["fiyat satırı rengini değiştir"]}},29353:e=>{e.exports={en:["change price line width"],tr:["fiyat satırı genişliğini değiştir"]}},16241:e=>{e.exports={en:["change range bars style"],tr:["aralık çubukları stilini değiştir"]}},65821:e=>{e.exports={en:["change range thin bars"],tr:["ince çubuk aralığı değiştir"]}},75487:e=>{e.exports={en:["change renko wick down color"],tr:["renko fitil aşağı rengi değiştir"]}},92277:e=>{e.exports={en:["change renko wick up color"],tr:["renko fitil rengi değiştir"]}},79604:e=>{e.exports={en:["change renko wick visibility"],tr:["renko fitil görünümünü değiştir"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],tr:["tekrar oynatma filigran görünürlüğünü değiştir"]}},82946:e=>{e.exports={en:["change right margin"],tr:["sağ kenar boşluğunu değiştir"]}},79545:e=>{e.exports={en:["change right margin percentage"],tr:["sağ kenar boşluğu yüzdesini değiştir"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],tr:["sembol kodu filigran görünürlüğünü değiştir"]}},78995:e=>{e.exports={en:["change symbol watermark color"],tr:["sembol filigran rengini değiştir"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],tr:["sembol filigran görünürlüğünü değiştir"]}},88167:e=>{e.exports={en:["change symbol description visibility"],tr:["sembol açıklama görünürlüğünü değiştir"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],tr:["sembol açıklaması filigran görünürlüğünü değiştir"]}},12050:e=>{e.exports={en:["change symbol field visibility"],tr:["sembol alanı görünürlüğünü değiştirme"]}},46066:e=>{e.exports={en:["change symbol last value mode"],tr:["sembol son değer modunu değiştir"]}},902:e=>{e.exports={en:["change symbol legend format"],tr:["sembol açıklama biçimini değiştir"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],tr:["aralığı değiştirirken grafik sol kenar konumunu değiştir"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],tr:["ölçek modlarını değiştirme düğmeleri görünürlük"]}},76131:e=>{e.exports={en:["change scales text color"],tr:["ölçek metin rengini değiştir"]}},27792:e=>{e.exports={en:["change scales font size"],tr:["ölçek yazı tipi boyutunu değiştir"]}},94997:e=>{e.exports={en:["change scales lines color"],tr:["ölçek çizgi rengini değiştir"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],tr:["oturumları aralık görünürlüğü değiştir"]}},28175:e=>{e.exports={en:["change sessions breaks width"],tr:["oturum aralık genişliği değiştir"]}},33895:e=>{e.exports={ -en:["change sessions breaks color"],tr:["oturum aralık rengini değiştir"]}},21641:e=>{e.exports={en:["change sessions breaks style"],tr:["oturum aralık stilini değiştir"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],tr:["fiyat ölçeğinde gerçek fiyatların görüntüsünü değiştir (Heiken-Ashi fiyatı yerine)"]}},60834:e=>{e.exports={en:["change thin bars"],tr:["ince çubukları değiştir"]}},39754:e=>{e.exports={en:["change time hours format"],tr:["saat biçimini değiştir"]}},74883:e=>{e.exports={en:["change top margin"],tr:["üst kenar boşluğunu değiştir"]}},51250:e=>{e.exports={en:["change unit label visibility"],tr:["birim etiketi görünürlüğünü değiştir"]}},71805:e=>{e.exports={en:["change vert grid lines color"],tr:["dikey ızgara çizgilerinin rengini değiştir"]}},96201:e=>{e.exports={en:["change volume values visibility"],tr:["hacim değerleri görünürlüğünü değiştir"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],tr:["{candleType} yukarı kenar rengi değiştir"]}},36697:e=>{e.exports={en:["change {candleType} up color"],tr:["{candleType} rengi değiştir"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],tr:["{candleType} fitil rengi değiştir"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],tr:["{candleType} fitil rengini değiştir"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],tr:["{candleType} fitil görünürlüğünü değiştir"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],tr:["{candleType} gövde görünümü değiştir"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],tr:["{candleType} sınır görünürlüğünü değiştir"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],tr:["{candleType} alt kenar rengi değiştir"]}},64571:e=>{e.exports={en:["change {candleType} down color"],tr:["{candleType} alt rengi değiştir"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],tr:["{chartType} kenarlık çubuğu rengi değiştir"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],tr:["{chartType} kenarlık çubuğu rengi değiştir"]}},5012:e=>{e.exports={en:["change {chartType} down color"],tr:["{chartType} aşağı rengi değiştir"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],tr:["{chartType} projeksiyon sınır çubuğu rengi değiştir"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],tr:["{chartType} projeksiyon çubuğu rengi değiştir"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],tr:["{chartType} projeksiyon çubuğunun rengi değiştir"]}},6970:e=>{e.exports={en:["change {chartType} up color"],tr:["{chartType} rengi değiştir"]}},66110:e=>{e.exports={en:["change {inputName} property"],tr:["{inputName} özelliğini değiştir"]}},18077:e=>{e.exports={en:["adjust data for dividends"],tr:["temettü verilerini ayarlayın"]}},1433:e=>{e.exports={en:["adjust for contract changes"],tr:["sözleşme değişikliklerini ayarla"]}},92598:e=>{e.exports={en:["hollow candles"], -tr:["İçi Boş Mumlar"]}},57243:e=>{e.exports={en:["range","ranges"],tr:["aralık","aralık"]}},70282:e=>{e.exports={en:["renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],tr:["etkinlik dışı boşlukları aç/kapat"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],tr:["günlük aralıkta kapanış olarak uzlaşma fiyatını kullan"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],tr:["{value} ondalık","{value} ondalık"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/tr.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/tr.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..d8543490 --- /dev/null +++ b/charting_library/bundles/tr.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,8 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:e=>{e.exports={en:["bars"],tr:["çubuklar"]}},31882:e=>{e.exports={en:["12-hours"],tr:["12-saat"]}},5797:e=>{e.exports={en:["24-hours"],tr:["24-saat"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],tr:["Önceki kapanışa göre çubuk rengi"]}},23739:e=>{e.exports={en:["Canvas"],tr:["Kanvas"]}},24197:e=>{e.exports={en:["Center"],tr:["Orta"]}},15153:e=>{e.exports={en:["Chart basic styles"],tr:["Basit grafik stilleri"]}},45639:e=>{e.exports={en:["Chart values"],tr:["Grafik değerleri"]}},84831:e=>{e.exports={en:["Close line"],tr:["Kapanış çizgisi"]}},74622:e=>{e.exports={en:["Crosshair"],tr:["Artı işareti"]}},81849:e=>{e.exports={en:["Currency"],tr:["Döviz"]}},3015:e=>{e.exports={en:["Currency and Unit"],tr:["Para Birimi ve Birim"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],tr:["Verileri temettülere göre düzelt"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],tr:["Sözleşme değişikliklerine göre ayarla"]}},36620:e=>{e.exports={en:["Alerts"],tr:["Alarmlar"]}},68650:e=>{e.exports={en:["Average close"],tr:["Ortalama kapanış"]}},27567:e=>{e.exports={en:["Bottom"],tr:["Alt"]}},3159:e=>{e.exports={en:["Bottom line"],tr:["Alt çizgi"]}},74406:e=>{e.exports={en:["Body"],tr:["Temel hat"]}},333:e=>{e.exports={en:["Borders"],tr:["Kenarlar"]}},79468:e=>{e.exports={en:["Background"],tr:["Arkaplan"]}},10842:e=>{e.exports={en:["Bar change values"],tr:["Çubuk Değişim Değeri"]}},70817:e=>{e.exports={en:["Bar change color based on value"]}},28975:e=>{e.exports={en:["Base level"],tr:["Temel seviye"]}},76473:e=>{e.exports={en:["Bid and ask"],tr:["Alım ve Satım"]}},32744:e=>{e.exports={en:["Buttons"],tr:["Tuşlar"]}},68662:e=>{e.exports={en:["Grid lines"],tr:["Kılavuz çizgileri"]}},17611:e=>{e.exports={en:["Down bars"],tr:["Düşüş Çubukları"]}},23743:e=>{e.exports={en:["Down color"],tr:["Düşüş Rengi"]}},48225:e=>{e.exports={en:["Data modification"],tr:["Veri değişimi"]}},84838:e=>{e.exports={en:["Date format"],tr:["Tarih biçimi"]}},42357:e=>{e.exports={en:["Day of week on labels"],tr:["Zaman çizelgesi etiketlerinde haftanın günleri"]}},16564:e=>{e.exports={en:["Default"],tr:["Varsayılan"]}},78734:e=>{e.exports={en:["Description"],tr:["Açıklama"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],tr:["Etkinlik dışı boşlukları göster"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],tr:["Elektronik işlem saatleri arka planı"]}},69808:e=>{e.exports={en:["Events"],tr:["Olaylar"]}},41129:e=>{e.exports={en:["Fill"],tr:["Doldur"]}},61112:e=>{e.exports={en:["Fill top area"],tr:["Üst alanı doldurun"]}},73185:e=>{e.exports={en:["Fill bottom area"],tr:["Alt alanı doldur"]}},3160:e=>{e.exports={en:["Horizontal"],tr:["Yatay"]}},61900:e=>{e.exports={en:["Horz only"],tr:["Sadece yatay"]}},14180:e=>{e.exports={en:["High and low"],tr:["Yüksek ve düşük"]}},56359:e=>{e.exports={en:["High line"],tr:["Yüksek çizgi"]}},47326:e=>{e.exports={en:["Integer"],tr:["Tamsayı"]}},17854:e=>{e.exports={en:["Interval"],tr:["Aralık"]}}, +84549:e=>{e.exports={en:["Indicators"],tr:["Göstergeler"]}},78082:e=>{e.exports={en:["Indicators and financials"],tr:["Göstergeler ve finansallar"]}},21429:e=>{e.exports={en:["Inputs"],tr:["Girdiler"]}},25765:e=>{e.exports={en:["Open market status"],tr:["Açık piyasa durumu"]}},34579:e=>{e.exports={en:["Low line"],tr:["Düşük çizgisi"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"],tr:["Uzun Açıklama"]}},72423:e=>{e.exports={en:["Last day change values"],tr:["Son gün değişim değerleri"]}},11626:e=>{e.exports={en:["Left"],tr:["Sol"]}},56982:e=>{e.exports={en:["Lines"],tr:["Çizgiler"]}},8249:e=>{e.exports={en:["Money"],tr:["Para"]}},70937:e=>{e.exports={en:["Margins"],tr:["Marjlar"]}},68833:e=>{e.exports={en:["Middle"],tr:["Orta"]}},58589:e=>{e.exports={en:["No overlapping labels"],tr:["Örtüşen Etiketleri Gösterme"]}},60798:e=>{e.exports={en:["None"],tr:["Hiçbiri"]}},51019:e=>{e.exports={en:["Navigation"],tr:["Navigasyon"]}},99709:e=>{e.exports={en:["Name"],tr:["Adı"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],tr:["Aralığı değiştirirken grafiğin sol kenar konumunu kaydet"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],tr:["Skala modları (A ve L)"]}},93968:e=>{e.exports={en:["Scales"],tr:["Ölçekler"]}},90275:e=>{e.exports={en:["Scales and lines"],tr:["Ölçekler ve çizgiler"]}},30042:e=>{e.exports={en:["Scales placement"],tr:["Ölçekleri yerleştirme"]}},28715:e=>{e.exports={en:["Status line"],tr:["Durum çizgisi"]}},95481:e=>{e.exports={en:["Symbol"],tr:["Sembol"]}},53263:e=>{e.exports={en:["Pane"],tr:["Bölme"]}},82894:e=>{e.exports={en:["Pane separators"],tr:["Bölme ayırıcıları"]}},86235:e=>{e.exports={en:["Percentage"],tr:["Yüzde"]}},94408:e=>{e.exports={en:["Pips"],tr:["Pip"]}},60904:e=>{e.exports={en:["Pre/post market"],tr:["Piyasa Öncesi/Sonrası"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],tr:["Piyasa saatleri öncesi/sonrası arka planı"]}},59766:e=>{e.exports={en:["Precision"],tr:["Hassasiyet"]}},83811:e=>{e.exports={en:["Previous day close"],tr:["Önceki Gün Kapanışı"]}},35082:e=>{e.exports={en:["Price Scale"],tr:["Fiyat Ölçeği"]}},27632:e=>{e.exports={en:["Price and percentage value"],tr:["Fiyat ve yüzdelik değeri"]}},62142:e=>{e.exports={en:["Price labels & lines"],tr:["Fiyat etiketleri ve çizgileri"]}},84684:e=>{e.exports={en:["Price source"],tr:["Fiyat Kaynağı"]}},73466:e=>{e.exports={en:["Projection up bars"],tr:["Artış çubuğun projeksiyonu"]}},77430:e=>{e.exports={en:["Projection candles"],tr:["Projeksiyon mumları"]}},88367:e=>{e.exports={en:["Projection down bars"],tr:["Düşüş çubuğun projeksiyonu"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],tr:["Fiyat ölçeğinde gerçek fiyatlar (Heikin-Ashi fiyatı yerine)"]}},50421:e=>{e.exports={en:["Right"],tr:["Sağ"]}},62532:e=>{e.exports={en:["Right Margin"],tr:["Sağ Kenar Boşluğu"]}},41571:e=>{e.exports={en:["Watermark"],tr:["Filigran"]}},32163:e=>{e.exports={en:["Wick"],tr:["Fitil"]}},97118:e=>{e.exports={en:["Top"],tr:["Üst"]}}, +89349:e=>{e.exports={en:["Top line"],tr:["Üst çizgi"]}},70320:e=>{e.exports={en:["Text"],tr:["Metin"]}},25485:e=>{e.exports={en:["Text alignment"],tr:["Metin hizalama"]}},67781:e=>{e.exports={en:["Text orientation"],tr:["Metin yönü"]}},20215:e=>{e.exports={en:["Thin bars"],tr:["İnce çubuklar"]}},70198:e=>{e.exports={en:["Title"],tr:["Başlık"]}},29854:e=>{e.exports={en:["Titles"],tr:["Başlıklar"]}},5791:e=>{e.exports={en:["Ticker"],tr:["Sembol"]}},16816:e=>{e.exports={en:["Ticker and description"],tr:["Sembol ve açıklama"]}},24821:e=>{e.exports={en:["Ticks"],tr:["Fiyat adımı"]}},93965:e=>{e.exports={en:["Time Scale"],tr:["Zaman Ölçeği"]}},5591:e=>{e.exports={en:["Time hours format"],tr:["Saat biçimi"]}},77073:e=>{e.exports={en:["Timezone"],tr:["Zaman dilimi"]}},76495:e=>{e.exports={en:["Trading"],tr:["İşlem"]}},33564:e=>{e.exports={en:["Unit"],tr:["Birim"]}},23091:e=>{e.exports={en:["Up color"],tr:["Artış Rengi"]}},36957:e=>{e.exports={en:["Up bars"],tr:["Artış çubukları"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],tr:["Günlük aralıkta kapanış olarak uzlaşma fiyatını kullan"]}},37644:e=>{e.exports={en:["Volume"],tr:["Hacim"]}},51514:e=>{e.exports={en:["Value"],tr:["Değer"]}},31218:e=>{e.exports={en:["Value according to scale"],tr:["Ölçeğe göre değer"]}},60092:e=>{e.exports={en:["Values"],tr:["Değerler"]}},83594:e=>{e.exports={en:["Vert and horz"],tr:["Dik ve yatay"]}},8402:e=>{e.exports={en:["Vert only"],tr:["Sadece dikey"]}},69526:e=>{e.exports={en:["Vertical"],tr:["Dikey"]}},21105:e=>{e.exports={en:["candle"],tr:["mum"]}},27068:e=>{e.exports={en:["change HLC bars"],tr:["HLC çubuk değiştir"]}},21201:e=>{e.exports={en:["change HLC bars color"],tr:["HLC çubuklarının rengini değiştir"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],tr:["gezinme düğmelerinin görünürlüğünü değiştir"]}},96227:e=>{e.exports={en:["change open market status visibility"],tr:["açık piyasa durumu görünürlüğünü değiştir"]}},43231:e=>{e.exports={en:["change average close price line width"],tr:["ortalama kapanış fiyatı çizgi genişliğini değiştir"]}},47026:e=>{e.exports={en:["change average close price line color"],tr:["ortalama kapanış fiyatı çizgi rengini değiştir"]}},29281:e=>{e.exports={en:["change area fill color"],tr:["alan dolgu rengini değiştir"]}},27059:e=>{e.exports={en:["change area line visibility"],tr:["alan çizgisi görünürlüğünü değiştirme"]}},89346:e=>{e.exports={en:["change area line width"],tr:["alan çizgi genişliğini değiştir"]}},29605:e=>{e.exports={en:["change area line color"],tr:["alan çizgi rengini değiştir"]}},56864:e=>{e.exports={en:["change area line style"],tr:["alan çizgisi stilini değiştir"]}},4640:e=>{e.exports={en:["change area price source"],tr:["alan fiyat kaynağını değiştir"]}},98407:e=>{e.exports={en:["change ask line color"],tr:["al satırı rengini değiştir"]}},42190:e=>{e.exports={en:["change base level"],tr:["taban seviyesini değiştir"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],tr:["taban çizgisi alt çizgi rengini değiştir"]}},85684:e=>{ +e.exports={en:["change baseline bottom line style"],tr:["taban çizgisi alt çizgi stilini değiştir"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],tr:["taban çizgisi alt çizgi genişliğini değiştir"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],tr:["taban çizgisi dolgu alt alanı rengini değiştir"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],tr:["taban çizgisi dolgu üst alan rengini değiştir"]}},68609:e=>{e.exports={en:["change baseline price source"],tr:["temel fiyat kaynağını değiştir"]}},69044:e=>{e.exports={en:["change baseline top line color"],tr:["taban çizgisi üst çizgi rengini değiştir"]}},4425:e=>{e.exports={en:["change baseline top line style"],tr:["taban çizgisi üst çizgi stilini değiştir"]}},68197:e=>{e.exports={en:["change baseline top line width"],tr:["taban çizgisi üst çizgi genişliğini değiştir"]}},33464:e=>{e.exports={en:["change bar up color"],tr:["çubuğun üst rengini değiştir"]}},14201:e=>{e.exports={en:["change bar change down color"]}},30196:e=>{e.exports={en:["change bar change up color"]}},27426:e=>{e.exports={en:["change bar change visibility"],tr:["çubuk değiştirme görünürlüğünü değiştir"]}},59622:e=>{e.exports={en:["change bar down color"],tr:["çubuğun alt rengini değiştir"]}},17919:e=>{e.exports={en:["change bid line color"],tr:["sat satırı rengini değiştir"]}},32094:e=>{e.exports={en:["change bottom margin"],tr:["alt kenar boşluğunu değiştir"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],tr:["para birimi ve birim etiketleri görünürlüğünü değiştir"]}},64003:e=>{e.exports={en:["change currency label visibility"],tr:["para birimi etiketi görünürlüğünü değiştir"]}},42803:e=>{e.exports={en:["change chart background color"],tr:["grafik arka plan rengini değiştir"]}},41382:e=>{e.exports={en:["change chart background type"],tr:["grafik arka plan türünü değiştir"]}},79637:e=>{e.exports={en:["change chart values visibility"],tr:["grafik değerleri görünürlüğünü değiştir"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],tr:["önceki kapanışa göre renk çubuklarını değiştir"]}},88324:e=>{e.exports={en:["change column up color"],tr:["yukarı sütun rengini değiştir"]}},93890:e=>{e.exports={en:["change column down color"],tr:["aşağı sütun rengini değiştir"]}},4727:e=>{e.exports={en:["change column price source"],tr:["sütun fiyat kaynağını değiştir"]}},50544:e=>{e.exports={en:["change crosshair width"],tr:["artı işareti genişliğini değiştir"]}},92885:e=>{e.exports={en:["change crosshair color"],tr:["artı işareti rengini değiştir"]}},68418:e=>{e.exports={en:["change crosshair style"],tr:["artı stilini değiştir"]}},43109:e=>{e.exports={en:["change date format"],tr:["tarih biçimini değiştir"]}},30418:e=>{e.exports={en:["change day of week on labels"],tr:["zaman çizelgesi etiketlerinde haftanın gününü değiştir"]}},82063:e=>{e.exports={en:["change decimal places"],tr:["ondalık basamakları değiştir"]}},45397:e=>{e.exports={en:["change extended hours color"],tr:["uzatılmış saat rengini değiştir"]}}, +47393:e=>{e.exports={en:["change electronic trading hours"],tr:["elektronik işlem saatlerini değiştir"]}},73844:e=>{e.exports={en:["change grid lines visibility"],tr:["kılavuz çizgilerinin görünürlüğünü değiştirme"]}},61407:e=>{e.exports={en:["change high and low price line color"],tr:["yüksek ve düşük fiyat çizgilerinin rengini değiştir"]}},39581:e=>{e.exports={en:["change high and low price line width"],tr:["yüksek ve düşük fiyat çizgilerinin genişliğini değiştir"]}},6026:e=>{e.exports={en:["change high-low body color"],tr:["yüksek-düşük orta rengi değiştir"]}},73021:e=>{e.exports={en:["change high-low body visibility"],tr:["yüksek-düşük gövde görünürlüğünü değiştir"]}},46844:e=>{e.exports={en:["change high-low border color"],tr:["yüksek-düşük kenar rengi değiştir"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],tr:["yüksek-alt sınır görünürlüğünü değiştir"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],tr:["yüksek-düşük etiket görünümü değiştir"]}},56961:e=>{e.exports={en:["change high-low labels color"],tr:["yüksek-düşük etiket rengi değiştir"]}},21133:e=>{e.exports={en:["change horz grid lines color"],tr:["yatay ızgara çizgilerinin rengini değiştir"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],tr:["gösterge başlıklarının görünürlüğünü değiştir"]}},49583:e=>{e.exports={en:["change indicator values visibility"],tr:["gösterge değerleri görünürlüğünü değiştir"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],tr:["gösterge girdileri görünürlüğünü değiştir"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],tr:["göstergeleri ve finansal isim etiketlerinin görünürlüğünü değiştir"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],tr:["göstergeleri ve finansal değer etiketlerinin görünürlüğünü değiştir"]}},451:e=>{e.exports={en:["change interval watermark visibility"],tr:["aralık filigran görünürlüğünü değiştir"]}},66307:e=>{e.exports={en:["change last day change visibility"],tr:["değişim son gün değişim görünürlük"]}},91873:e=>{e.exports={en:["change legend background transparency"],tr:["efsane arka plan şeffaflığını değiştir"]}},14246:e=>{e.exports={en:["change legend background visibility"],tr:["efsane arka plan görünürlüğünü değiştir"]}},88640:e=>{e.exports={en:["change line color"],tr:["çizgi rengini değiştir"]}},28818:e=>{e.exports={en:["change line style"],tr:["çizgi stilini değiştir"]}},41837:e=>{e.exports={en:["change line price source"],tr:["çizgi fiyatı kaynağını değiştir"]}},48339:e=>{e.exports={en:["change line width"],tr:["çizgi genişliğini değiştir"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],tr:["bölme düğmelerinin görünürlüğünü değiştir"]}},52203:e=>{e.exports={en:["change pane separators color"],tr:["bölme ayırıcıların rengini değiştir"]}},38730:e=>{e.exports={en:["change post market color"],tr:["pazar sonrası rengini değiştir"]}},28075:e=>{e.exports={en:["change post market line color"],tr:["piyasa sonrası çizgi rengini değiştir"]}}, +91978:e=>{e.exports={en:["change pre/post market price lines visibility"],tr:["piyasa öncesi/sonrası fiyat çizgilerinin görünürlüğünü değiştir"]}},44371:e=>{e.exports={en:["change pre market color"],tr:["piyasa öncesi rengini değiştir"]}},96114:e=>{e.exports={en:["change pre market line color"],tr:["piyasa öncesi çizgi rengini değiştir"]}},69814:e=>{e.exports={en:["change previous close price line color"],tr:["önceki kapanış fiyatı satırı rengi değiştir"]}},13660:e=>{e.exports={en:["change previous close price line width"],tr:["önceki kapanış fiyat satırı genişliğini değiştir"]}},87861:e=>{e.exports={en:["change price line color"],tr:["fiyat satırı rengini değiştir"]}},29353:e=>{e.exports={en:["change price line width"],tr:["fiyat satırı genişliğini değiştir"]}},16241:e=>{e.exports={en:["change range bars style"],tr:["aralık çubukları stilini değiştir"]}},65821:e=>{e.exports={en:["change range thin bars"],tr:["ince çubuk aralığı değiştir"]}},75487:e=>{e.exports={en:["change renko wick down color"],tr:["renko fitil aşağı rengi değiştir"]}},92277:e=>{e.exports={en:["change renko wick up color"],tr:["renko fitil rengi değiştir"]}},79604:e=>{e.exports={en:["change renko wick visibility"],tr:["renko fitil görünümünü değiştir"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],tr:["tekrar oynatma filigran görünürlüğünü değiştir"]}},82946:e=>{e.exports={en:["change right margin"],tr:["sağ kenar boşluğunu değiştir"]}},79545:e=>{e.exports={en:["change right margin percentage"],tr:["sağ kenar boşluğu yüzdesini değiştir"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],tr:["sembol kodu filigran görünürlüğünü değiştir"]}},78995:e=>{e.exports={en:["change symbol watermark color"],tr:["sembol filigran rengini değiştir"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],tr:["sembol filigran görünürlüğünü değiştir"]}},88167:e=>{e.exports={en:["change symbol description visibility"],tr:["sembol açıklama görünürlüğünü değiştir"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],tr:["sembol açıklaması filigran görünürlüğünü değiştir"]}},12050:e=>{e.exports={en:["change symbol field visibility"],tr:["sembol alanı görünürlüğünü değiştirme"]}},46066:e=>{e.exports={en:["change symbol last value mode"],tr:["sembol son değer modunu değiştir"]}},902:e=>{e.exports={en:["change symbol legend format"],tr:["sembol açıklama biçimini değiştir"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],tr:["aralığı değiştirirken grafik sol kenar konumunu değiştir"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],tr:["ölçek modlarını değiştirme düğmeleri görünürlük"]}},76131:e=>{e.exports={en:["change scales text color"],tr:["ölçek metin rengini değiştir"]}},27792:e=>{e.exports={en:["change scales font size"],tr:["ölçek yazı tipi boyutunu değiştir"]}},94997:e=>{e.exports={en:["change scales lines color"],tr:["ölçek çizgi rengini değiştir"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"], +tr:["oturumları aralık görünürlüğü değiştir"]}},28175:e=>{e.exports={en:["change sessions breaks width"],tr:["oturum aralık genişliği değiştir"]}},33895:e=>{e.exports={en:["change sessions breaks color"],tr:["oturum aralık rengini değiştir"]}},21641:e=>{e.exports={en:["change sessions breaks style"],tr:["oturum aralık stilini değiştir"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],tr:["fiyat ölçeğinde gerçek fiyatların görüntüsünü değiştir (Heiken-Ashi fiyatı yerine)"]}},60834:e=>{e.exports={en:["change thin bars"],tr:["ince çubukları değiştir"]}},39754:e=>{e.exports={en:["change time hours format"],tr:["saat biçimini değiştir"]}},74883:e=>{e.exports={en:["change top margin"],tr:["üst kenar boşluğunu değiştir"]}},51250:e=>{e.exports={en:["change unit label visibility"],tr:["birim etiketi görünürlüğünü değiştir"]}},28142:e=>{e.exports={en:["change use custom bar change colors"]}},71805:e=>{e.exports={en:["change vert grid lines color"],tr:["dikey ızgara çizgilerinin rengini değiştir"]}},96201:e=>{e.exports={en:["change volume values visibility"],tr:["hacim değerleri görünürlüğünü değiştir"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],tr:["{candleType} yukarı kenar rengi değiştir"]}},36697:e=>{e.exports={en:["change {candleType} up color"],tr:["{candleType} rengi değiştir"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],tr:["{candleType} fitil rengi değiştir"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],tr:["{candleType} fitil rengini değiştir"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],tr:["{candleType} fitil görünürlüğünü değiştir"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],tr:["{candleType} gövde görünümü değiştir"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],tr:["{candleType} sınır görünürlüğünü değiştir"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],tr:["{candleType} alt kenar rengi değiştir"]}},64571:e=>{e.exports={en:["change {candleType} down color"],tr:["{candleType} alt rengi değiştir"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],tr:["{chartType} kenarlık çubuğu rengi değiştir"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],tr:["{chartType} kenarlık çubuğu rengi değiştir"]}},5012:e=>{e.exports={en:["change {chartType} down color"],tr:["{chartType} aşağı rengi değiştir"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],tr:["{chartType} projeksiyon sınır çubuğu rengi değiştir"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],tr:["{chartType} projeksiyon çubuğu rengi değiştir"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],tr:["{chartType} projeksiyon çubuğunun rengi değiştir"]}},6970:e=>{e.exports={en:["change {chartType} up color"],tr:["{chartType} rengi değiştir"]}},66110:e=>{e.exports={en:["change {inputName} property"],tr:["{inputName} özelliğini değiştir"]} +},18077:e=>{e.exports={en:["adjust data for dividends"],tr:["temettü verilerini ayarlayın"]}},1433:e=>{e.exports={en:["adjust for contract changes"],tr:["sözleşme değişikliklerini ayarla"]}},92598:e=>{e.exports={en:["hollow candles"],tr:["İçi Boş Mumlar"]}},57243:e=>{e.exports={en:["range","ranges"],tr:["aralık","aralık"]}},70282:e=>{e.exports={en:["renko"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],tr:["etkinlik dışı boşlukları aç/kapat"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],tr:["günlük aralıkta kapanış olarak uzlaşma fiyatını kullan"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],tr:["{value} ondalık","{value} ondalık"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/vi.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/vi.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index 6a155246..00000000 --- a/charting_library/bundles/vi.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,8 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:n=>{n.exports={en:["bars"],vi:["thanh"]}},31882:n=>{n.exports={en:["12-hours"],vi:["12-giờ"]}},5797:n=>{n.exports={en:["24-hours"],vi:["24-giờ"]}},23111:n=>{n.exports={en:["Color bars based on previous close"],vi:["Các thanh màu dựa trên đóng cửa phiên trước"]}},23739:n=>{n.exports={en:["Canvas"]}},24197:n=>{n.exports={en:["Center"],vi:["Trung tâm"]}},15153:n=>{n.exports={en:["Chart basic styles"],vi:["Kiểu cơ bản của biểu đồ"]}},45639:n=>{n.exports={en:["Chart values"],vi:["Giá trị biểu đồ"]}},84831:n=>{n.exports={en:["Close line"],vi:["Đường giá đóng cửa"]}},74622:n=>{n.exports={en:["Crosshair"],vi:["Đường chữ thập"]}},81849:n=>{n.exports={en:["Currency"],vi:["Tiền tệ"]}},3015:n=>{n.exports={en:["Currency and Unit"],vi:["Tiền tệ và đơn vị"]}},93020:n=>{n.exports={en:["Adjust data for dividends"],vi:["Điều chỉnh dữ liệu cho Cổ tức"]}},68921:n=>{n.exports={en:["Adjust for contract changes"],vi:["Điều chỉnh để thay đổi hợp đồng"]}},36620:n=>{n.exports={en:["Alerts"],vi:["Cảnh báo"]}},68650:n=>{n.exports={en:["Average close"],vi:["Đóng cửa trung bình"]}},27567:n=>{n.exports={en:["Bottom"],vi:["Đáy"]}},3159:n=>{n.exports={en:["Bottom line"],vi:["Đường thấp nhất"]}},74406:n=>{n.exports={en:["Body"],vi:["Thân"]}},333:n=>{n.exports={en:["Borders"],vi:["Đường viền"]}},79468:n=>{n.exports={en:["Background"],vi:["Hình nền"]}},10842:n=>{n.exports={en:["Bar change values"],vi:["Các giá trị thay đổi thanh"]}},28975:n=>{n.exports={en:["Base level"],vi:["Cấp Cơ sở"]}},76473:n=>{n.exports={en:["Bid and ask"],vi:["Giá mua và bán"]}},32744:n=>{n.exports={en:["Buttons"],vi:["Nút"]}},68662:n=>{n.exports={en:["Grid lines"],vi:["Đường lưới"]}},17611:n=>{n.exports={en:["Down bars"],vi:["Thanh dưới"]}},23743:n=>{n.exports={en:["Down color"],vi:["Giảm Màu"]}},48225:n=>{n.exports={en:["Data modification"],vi:["Điều chỉnh dữ liệu"]}},84838:n=>{n.exports={en:["Date format"],vi:["Định dạng Ngày"]}},42357:n=>{n.exports={en:["Day of week on labels"],vi:["Ngày trong tuần trên nhãn"]}},16564:n=>{n.exports={en:["Default"],vi:["Mặc định"]}},78734:n=>{n.exports={en:["Description"],vi:["Mô tả"]}},67036:n=>{n.exports={en:["Display inactivity gaps"],vi:["Hiển thị khoảng không không hoạt động"]}},59777:n=>{n.exports={en:["Electronic trading hours background"],vi:["Nền giờ giao dịch điện tử"]}},69808:n=>{n.exports={en:["Events"],vi:["Các sự kiện"]}},41129:n=>{n.exports={en:["Fill"],vi:["Điền vào"]}},61112:n=>{n.exports={en:["Fill top area"],vi:["Vùng Khớp lệnh nhiều nhất"]}},73185:n=>{n.exports={en:["Fill bottom area"],vi:["Điền vào Khu vực thấp nhất"]}},3160:n=>{n.exports={en:["Horizontal"],vi:["Ngang"]}},61900:n=>{n.exports={en:["Horz only"],vi:["Chỉ theo phương ngang"]}},14180:n=>{n.exports={en:["High and low"],vi:["Cao và thấp"]}},56359:n=>{n.exports={en:["High line"],vi:["Đường giá cao"]}},47326:n=>{n.exports={en:["Integer"],vi:["Số nguyên"]}},17854:n=>{n.exports={en:["Interval"],vi:["Khoảng thời gian"]}},84549:n=>{n.exports={en:["Indicators"],vi:["Các chỉ báo"]} -},78082:n=>{n.exports={en:["Indicators and financials"],vi:["Chỉ báo và chỉ số tài chính"]}},21429:n=>{n.exports={en:["Inputs"],vi:["Các đầu vào"]}},25765:n=>{n.exports={en:["Open market status"],vi:["Trạng thái thị trường mở"]}},34579:n=>{n.exports={en:["Low line"],vi:["Đường giá thấp"]}},14876:n=>{n.exports={en:["Logo"]}},89315:n=>{n.exports={en:["Long Description"],vi:["Mô tả Dài"]}},72423:n=>{n.exports={en:["Last day change values"],vi:["Giá trị thay đổi ngày gần nhất"]}},11626:n=>{n.exports={en:["Left"],vi:["Bên trái"]}},56982:n=>{n.exports={en:["Lines"],vi:["Đường"]}},8249:n=>{n.exports={en:["Money"],vi:["Tiền"]}},70937:n=>{n.exports={en:["Margins"],vi:["Ký quỹ"]}},68833:n=>{n.exports={en:["Middle"],vi:["Giữa"]}},58589:n=>{n.exports={en:["No overlapping labels"],vi:["Không có Nhãn chồng chéo"]}},60798:n=>{n.exports={en:["None"],vi:["Không"]}},51019:n=>{n.exports={en:["Navigation"],vi:["Điều hướng"]}},99709:n=>{n.exports={en:["Name"],vi:["Tên"]}},8852:n=>{n.exports={en:["Save chart left edge position when changing interval"],vi:["Lưu vị thế ở cạnh trái biểu đồ khi thay đổi khoảng thời gian"]}},26204:n=>{n.exports={en:["Scale modes (A and L)"],vi:["Chế độ thang (A và L)"]}},93968:n=>{n.exports={en:["Scales"],vi:["Các tỷ lệ"]}},90275:n=>{n.exports={en:["Scales and lines"],vi:["Thang và dòng"]}},30042:n=>{n.exports={en:["Scales placement"],vi:["Vị trí căn chỉnh"]}},28715:n=>{n.exports={en:["Status line"],vi:["Dòng trạng thái"]}},95481:n=>{n.exports={en:["Symbol"],vi:["Mã"]}},53263:n=>{n.exports={en:["Pane"],vi:["Ngăn"]}},82894:n=>{n.exports={en:["Pane separators"],vi:["Ngăn phân cách"]}},86235:n=>{n.exports={en:["Percentage"],vi:["Tỷ lệ phần trăm"]}},94408:n=>{n.exports={en:["Pips"]}},60904:n=>{n.exports={en:["Pre/post market"],vi:["Trước/sau giờ mở cửa"]}},88327:n=>{n.exports={en:["Pre/post market hours background"],vi:["Nền thị trường trước/sau giờ mở cửa"]}},59766:n=>{n.exports={en:["Precision"],vi:["Độ chính xác"]}},83811:n=>{n.exports={en:["Previous day close"],vi:["Đóng cửa ngày hôm trước"]}},35082:n=>{n.exports={en:["Price Scale"],vi:["Thang Giá"]}},27632:n=>{n.exports={en:["Price and percentage value"],vi:["Giá trị Giá và Phần trăm"]}},62142:n=>{n.exports={en:["Price labels & lines"],vi:["Nhãn & dòng giá"]}},84684:n=>{n.exports={en:["Price source"],vi:["Nguồn giá"]}},73466:n=>{n.exports={en:["Projection up bars"],vi:["Chiếu thanh lên"]}},77430:n=>{n.exports={en:["Projection candles"],vi:["Nến chiếu"]}},88367:n=>{n.exports={en:["Projection down bars"],vi:["Chiếu thanh xuống"]}},6160:n=>{n.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],vi:["Giá thực trên thang giá (thay vì giá Heikin-Ashi)"]}},50421:n=>{n.exports={en:["Right"],vi:["Phải"]}},62532:n=>{n.exports={en:["Right Margin"],vi:["Lề Phải"]}},41571:n=>{n.exports={en:["Watermark"],vi:["Chữ mờ"]}},32163:n=>{n.exports={en:["Wick"],vi:["Bóng nến"]}},97118:n=>{n.exports={en:["Top"],vi:["Trên đầu"]}},89349:n=>{n.exports={en:["Top line"],vi:["Đường cao nhất"]}},70320:n=>{n.exports={en:["Text"],vi:["Văn bản"]}},25485:n=>{ -n.exports={en:["Text alignment"],vi:["Căn chỉnh chữ"]}},67781:n=>{n.exports={en:["Text orientation"],vi:["Chiều của chữ"]}},20215:n=>{n.exports={en:["Thin bars"],vi:["Thanh mỏng"]}},70198:n=>{n.exports={en:["Title"],vi:["Tiêu đề"]}},29854:n=>{n.exports={en:["Titles"],vi:["Tiêu đề"]}},5791:n=>{n.exports={en:["Ticker"]}},16816:n=>{n.exports={en:["Ticker and description"],vi:["Ticker và mô tả"]}},24821:n=>{n.exports={en:["Ticks"]}},93965:n=>{n.exports={en:["Time Scale"],vi:["Thang Thời gian"]}},5591:n=>{n.exports={en:["Time hours format"],vi:["Định dạng thời gian"]}},77073:n=>{n.exports={en:["Timezone"],vi:["Múi giờ"]}},76495:n=>{n.exports={en:["Trading"],vi:["Giao dịch"]}},33564:n=>{n.exports={en:["Unit"],vi:["Đơn vị"]}},23091:n=>{n.exports={en:["Up color"],vi:["Tăng Màu"]}},36957:n=>{n.exports={en:["Up bars"],vi:["Thanh trên"]}},49545:n=>{n.exports={en:["Use settlement as close on daily interval"],vi:["Sử dụng giải quyết càng gần vào khoảng thời gian hàng ngày"]}},37644:n=>{n.exports={en:["Volume"],vi:["Khối lượng"]}},51514:n=>{n.exports={en:["Value"],vi:["Giá trị"]}},31218:n=>{n.exports={en:["Value according to scale"],vi:["Giá trị theo Tỷ lệ"]}},60092:n=>{n.exports={en:["Values"],vi:["Giá trị"]}},83594:n=>{n.exports={en:["Vert and horz"],vi:["Theo phương thẳng đứng và phương ngang"]}},8402:n=>{n.exports={en:["Vert only"],vi:["Chỉ theo phương thẳng đứng"]}},69526:n=>{n.exports={en:["Vertical"],vi:["Dọc"]}},21105:n=>{n.exports={en:["candle"],vi:["ký hiệu hình nến"]}},27068:n=>{n.exports={en:["change HLC bars"],vi:["thay đổi các thanh HLC"]}},21201:n=>{n.exports={en:["change HLC bars color"],vi:["thay đổi màu thanh HLC"]}},3311:n=>{n.exports={en:["change navigation buttons visibility"],vi:["thay đổi khả năng hiển thị của các nút điều hướng"]}},96227:n=>{n.exports={en:["change open market status visibility"],vi:["thay đổi trạng thái mở cửa thị trường"]}},43231:n=>{n.exports={en:["change average close price line width"],vi:["thay đổi bề rộng đường giá trung bình tại thời điểm đóng cửa"]}},47026:n=>{n.exports={en:["change average close price line color"],vi:["thay đổi màu đường giá trung bình tại thời điểm đóng cửa"]}},29281:n=>{n.exports={en:["change area fill color"],vi:["thay đổi màu sắc khu vực"]}},27059:n=>{n.exports={en:["change area line visibility"],vi:["thay đổi khả năng hiển thị đường viền khu vực"]}},89346:n=>{n.exports={en:["change area line width"],vi:["thay đổi độ rộng đường diện tích"]}},29605:n=>{n.exports={en:["change area line color"],vi:["thay đổi màu sắc đường diện tích"]}},56864:n=>{n.exports={en:["change area line style"],vi:["thay đổi kiểu đường viền vùng biểu đồ"]}},4640:n=>{n.exports={en:["change area price source"],vi:["thay đổi nguồn giá diện tích"]}},98407:n=>{n.exports={en:["change ask line color"],vi:["điều chỉnh màu sắc dòng bán"]}},42190:n=>{n.exports={en:["change base level"],vi:["thay đổi cấp độ cơ bản"]}},71785:n=>{n.exports={en:["change baseline bottom line color"],vi:["thay đổi màu đường cơ sở dưới"]}},85684:n=>{n.exports={en:["change baseline bottom line style"], -vi:["thay đổi kiểu đường kẻ đáy đường cơ sở"]}},56175:n=>{n.exports={en:["change baseline bottom line width"],vi:["thay đổi độ rộng đường cơ sở dưới"]}},97216:n=>{n.exports={en:["change baseline fill bottom area color"],vi:["thay đổi màu đường cơ sở khu vực dưới"]}},92873:n=>{n.exports={en:["change baseline fill top area color"],vi:["thay đổi màu đường cơ sở khu vực trên"]}},68609:n=>{n.exports={en:["change baseline price source"],vi:["thay đổi nguồn giá đường cơ sở"]}},69044:n=>{n.exports={en:["change baseline top line color"],vi:["thay đổi màu đường cơ sở trên"]}},4425:n=>{n.exports={en:["change baseline top line style"],vi:["thay đổi kiểu đường kẻ đỉnh đường cơ sở"]}},68197:n=>{n.exports={en:["change baseline top line width"],vi:["thay đổi độ rộng đường cơ sở trên"]}},33464:n=>{n.exports={en:["change bar up color"],vi:["tăng màu thanh lên"]}},27426:n=>{n.exports={en:["change bar change visibility"],vi:["thay đổi đếm ngược để thanh hiển thị đóng"]}},59622:n=>{n.exports={en:["change bar down color"],vi:["giảm màu thanh xuống"]}},17919:n=>{n.exports={en:["change bid line color"],vi:["điều chỉnh màu sắc dòng mua"]}},32094:n=>{n.exports={en:["change bottom margin"],vi:["thay đổi lề dưới"]}},63119:n=>{n.exports={en:["change currency and unit labels visibility"],vi:["thay đổi đơn vị tiền tệ và khả năng hiển thị nhãn đơn vị"]}},64003:n=>{n.exports={en:["change currency label visibility"],vi:["thay đổi khả năng hiển thị nhãn tiền tệ"]}},42803:n=>{n.exports={en:["change chart background color"],vi:["thay đổi màu nền biểu đồ"]}},41382:n=>{n.exports={en:["change chart background type"],vi:["thay đổi loại nền biểu đồ"]}},79637:n=>{n.exports={en:["change chart values visibility"],vi:["thay đổi khả năng hiển thị giá trị biểu đồ"]}},43090:n=>{n.exports={en:["change color bars based on previous close"],vi:["thay đổi thanh màu dựa trên lần đóng trước đó"]}},88324:n=>{n.exports={en:["change column up color"],vi:["thay đổi màu cột lên"]}},93890:n=>{n.exports={en:["change column down color"],vi:["thay đổi màu cột xuống"]}},4727:n=>{n.exports={en:["change column price source"],vi:["thay đổi nguồn giá cột"]}},50544:n=>{n.exports={en:["change crosshair width"],vi:["thay đổi độ rộng đường chéo"]}},92885:n=>{n.exports={en:["change crosshair color"],vi:["thay đổi màu đường chéo"]}},68418:n=>{n.exports={en:["change crosshair style"],vi:["thay đổi kiểu chéo"]}},43109:n=>{n.exports={en:["change date format"],vi:["thay đổi định dạng ngày"]}},30418:n=>{n.exports={en:["change day of week on labels"],vi:["thay đổi ngày trong tuần trên nhãn"]}},82063:n=>{n.exports={en:["change decimal places"],vi:["thay đổi chữ số thập phân"]}},45397:n=>{n.exports={en:["change extended hours color"],vi:["thay đổi màu giờ kéo dài"]}},47393:n=>{n.exports={en:["change electronic trading hours"],vi:["thay đổi giờ giao dịch điện tử"]}},73844:n=>{n.exports={en:["change grid lines visibility"],vi:["thay đổi việc hiển thị các đường lưới ô vuông"]}},61407:n=>{n.exports={en:["change high and low price line color"],vi:["thay đổi màu đường giá cao và thấp"]}},39581:n=>{ -n.exports={en:["change high and low price line width"],vi:["thay đổi chiều rộng đường cao và thấp"]}},6026:n=>{n.exports={en:["change high-low body color"],vi:["thay đổi màu sắc nội dung cao-thấp"]}},73021:n=>{n.exports={en:["change high-low body visibility"],vi:["thay đổi khả năng hiển thị nội dung từ cao xuống thấp"]}},46844:n=>{n.exports={en:["change high-low border color"],vi:["thay đổi màu sắc đường viền cao-thấp"]}},15801:n=>{n.exports={en:["change high-low borders visibility"],vi:["thay đổi hiển thị đường viền cao-thấp"]}},72399:n=>{n.exports={en:["change high-low labels visibility"],vi:["thay đổi hiển thị nhãn cao-thấp"]}},56961:n=>{n.exports={en:["change high-low labels color"],vi:["thay đổi màu sắc nhãn cao-thấp"]}},21133:n=>{n.exports={en:["change horz grid lines color"],vi:["thay đổi màu sắc đường lưới ngang"]}},63050:n=>{n.exports={en:["change indicator titles visibility"],vi:["thay đổi trạng thái hiển thị tiêu đề chỉ số"]}},49583:n=>{n.exports={en:["change indicator values visibility"],vi:["thay đổi trạng thái hiển thị giá trị chỉ số"]}},75663:n=>{n.exports={en:["change indicator inputs visibility"],vi:["thay đổi khả năng hiển thị đầu vào chỉ báo"]}},35111:n=>{n.exports={en:["change indicators and financials name labels visibility"],vi:["thay đổi các chỉ số và tài chính tên nhãn khả năng hiển thị"]}},71161:n=>{n.exports={en:["change indicators and financials value labels visibility"],vi:["thay đổi các chỉ số và tài chính giá trị nhãn khả năng hiển thị"]}},451:n=>{n.exports={en:["change interval watermark visibility"],vi:["thay đổi khả năng hiển thị hình dấu mờ của khoảng thời gian"]}},66307:n=>{n.exports={en:["change last day change visibility"],vi:["thay đổi khả năng hiển thị của thay đổi ngày gần nhất"]}},91873:n=>{n.exports={en:["change legend background transparency"],vi:["thay đổi độ rõ ràng của nền chú thích"]}},14246:n=>{n.exports={en:["change legend background visibility"],vi:["thay đổi hiển thị nền chú thích"]}},88640:n=>{n.exports={en:["change line color"],vi:["thay đổi màu sắc đường"]}},28818:n=>{n.exports={en:["change line style"],vi:["Thay đổi Kiểu đường kẻ"]}},41837:n=>{n.exports={en:["change line price source"],vi:["thay đổi đường nguồn giá"]}},48339:n=>{n.exports={en:["change line width"],vi:["thay đổi độ rộng của đường"]}},18378:n=>{n.exports={en:["change pane buttons visibility"],vi:["thay đổi khả năng hiển thị của các nút ngăn"]}},52203:n=>{n.exports={en:["change pane separators color"],vi:["thay đổi màu ngăn phân cách"]}},38730:n=>{n.exports={en:["change post market color"],vi:["thay đổi màu sắc sau khi kết thúc phiên giao dịch"]}},28075:n=>{n.exports={en:["change post market line color"],vi:["thay đổi màu sắc đường sau khi kết thúc phiên giao dịch"]}},91978:n=>{n.exports={en:["change pre/post market price lines visibility"],vi:["thay đổi khả năng hiển thị đường giá thị trường trước/sau"]}},44371:n=>{n.exports={en:["change pre market color"],vi:["điều chỉnh màu trước khi mở cửa thị trường"]}},96114:n=>{n.exports={en:["change pre market line color"], -vi:["điều chỉnh màu sắc đường trước khi thị trường mở"]}},69814:n=>{n.exports={en:["change previous close price line color"],vi:["điều chỉnh màu sắc dòng giá đóng cửa trước đó"]}},13660:n=>{n.exports={en:["change previous close price line width"],vi:["điều chỉnh độ rộng đường giá đóng cửa trước đó"]}},87861:n=>{n.exports={en:["change price line color"],vi:["điều chỉnh màu sắc dòng giá"]}},29353:n=>{n.exports={en:["change price line width"],vi:["điều chỉnh độ rộng dòng giá"]}},16241:n=>{n.exports={en:["change range bars style"],vi:["thay đổi kiểu thanh phạm vi"]}},65821:n=>{n.exports={en:["change range thin bars"],vi:["thay đổi phạm vi thanh mỏng"]}},75487:n=>{n.exports={en:["change renko wick down color"],vi:["giảm mức hiển thị wick của biểu đồ renko"]}},92277:n=>{n.exports={en:["change renko wick up color"],vi:["tăng mức hiển thị wick của biểu đồ renko"]}},79604:n=>{n.exports={en:["change renko wick visibility"],vi:["thay đổi mức hiển thị wick của biểu đồ renko"]}},66021:n=>{n.exports={en:["change replay watermark visibility"],vi:["thay đổi khả năng hiển thị hình dấu mờ của thanh phát lại"]}},82946:n=>{n.exports={en:["change right margin"],vi:["thay đổi lề phải"]}},79545:n=>{n.exports={en:["change right margin percentage"],vi:["thay đổi tỷ lệ phần trăm lề phải"]}},18099:n=>{n.exports={en:["change symbol tiker watermark visibility"],vi:["thay đổi khả năng hiển thị hình dấu mờ của mã chứng khoán mã giao dịch"]}},78995:n=>{n.exports={en:["change symbol watermark color"],vi:["thay đổi màu sắc hình mờ của mã"]}},73227:n=>{n.exports={en:["change symbol watermark visibility"],vi:["thay đổi mức hiển thị hình mờ của mã"]}},88167:n=>{n.exports={en:["change symbol description visibility"],vi:["thay đổi tính năng mô tả biểu tượng"]}},65838:n=>{n.exports={en:["change symbol description watermark visibility"],vi:["thay đổi khả năng hiển thị hình dấu mờ của mô tả mã giao dịch"]}},12050:n=>{n.exports={en:["change symbol field visibility"],vi:["thay đổi việc hiển thị trường mã giao dịch"]}},46066:n=>{n.exports={en:["change symbol last value mode"],vi:["thay đổi giá trị cuối cùng của mã"]}},902:n=>{n.exports={en:["change symbol legend format"],vi:["thay đổi dạng chú thích mã"]}},77408:n=>{n.exports={en:["change save chart left edge position when changing interval"],vi:["thay đổi lưu vị thế ở cạnh trái biểu đồ khi thay đổi khoảng thời gian"]}},69023:n=>{n.exports={en:["change scale modes buttons visibility"],vi:["hiển thị các nút thang thay đổi"]}},76131:n=>{n.exports={en:["change scales text color"],vi:["thay đổi màu văn bản tỷ lệ"]}},27792:n=>{n.exports={en:["change scales font size"],vi:["thay đổi cỡ chữ tỷ lệ"]}},94997:n=>{n.exports={en:["change scales lines color"],vi:["thay đổi màu của các đường tỉ lệ"]}},60067:n=>{n.exports={en:["change sessions breaks visibility"],vi:["thay đổi khả năng hiển thị phiên"]}},28175:n=>{n.exports={en:["change sessions breaks width"],vi:["thay đổi phiên làm gián đoạn độ rộng"]}},33895:n=>{n.exports={en:["change sessions breaks color"],vi:["thay đổi phiên làm gián đoạn màu sắc"]}}, -21641:n=>{n.exports={en:["change sessions breaks style"],vi:["thay đổi kiểu phiên"]}},16660:n=>{n.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],vi:["thay đổi hiển thị giá thực trên thang giá (thay vì giá Heiken-Ashi)"]}},60834:n=>{n.exports={en:["change thin bars"],vi:["thay đổi thanh mỏng"]}},39754:n=>{n.exports={en:["change time hours format"],vi:["đổi định dạng thời gian"]}},74883:n=>{n.exports={en:["change top margin"],vi:["thay đổi lề trên"]}},51250:n=>{n.exports={en:["change unit label visibility"],vi:["thay đổi khả năng hiển thị nhãn đơn vị"]}},71805:n=>{n.exports={en:["change vert grid lines color"],vi:["thay đổi màu đường lưới dọc"]}},96201:n=>{n.exports={en:["change volume values visibility"],vi:["thay đổi trạng thái hiển thị khối lượng"]}},17214:n=>{n.exports={en:["change {candleType} up border color"],vi:["thay đổi màu đường viền trên {candleType}"]}},36697:n=>{n.exports={en:["change {candleType} up color"],vi:["thay đổi màu phía trên {candleType}"]}},48091:n=>{n.exports={en:["change {candleType} wick down color"],vi:["thay đổi màu ký tự wick dưới {candleType}"]}},97546:n=>{n.exports={en:["change {candleType} wick up color"],vi:["thay đổi màu ký tự wick trên {candleType}"]}},94750:n=>{n.exports={en:["change {candleType} wick visibility"],vi:["thay đổi mức hiển thị wick, một ký tự hình cây nến dài {candleType}"]}},60608:n=>{n.exports={en:["change {candleType} body visibility"],vi:["thay đổi mức hiển thị phần thân {candleType}"]}},11114:n=>{n.exports={en:["change {candleType} border visibility"],vi:["thay đổi màu đường viền {candleType}"]}},20291:n=>{n.exports={en:["change {candleType} down border color"],vi:["thay đổi màu đường viền dưới {candleType}"]}},64571:n=>{n.exports={en:["change {candleType} down color"],vi:["thay đổi màu phía dưới {candleType}"]}},23053:n=>{n.exports={en:["change {chartType} border bar down color"],vi:["thay đổi màu thanh viền dưới {chartType}"]}},28394:n=>{n.exports={en:["change {chartType} border bar up color"],vi:["thay đổi màu thanh viền trên {chartType}"]}},5012:n=>{n.exports={en:["change {chartType} down color"],vi:["thay đổi màu dưới {chartType}"]}},42826:n=>{n.exports={en:["change {chartType} projection border bar up color"],vi:["thay đổi màu viền thanh chiếu {chartType}"]}},72545:n=>{n.exports={en:["change {chartType} projection bar down color"],vi:["thay đổi màu thanh chiếu dưới {chartType}"]}},85032:n=>{n.exports={en:["change {chartType} projection bar up color"],vi:["thay đổi màu thanh chiếu trên {chartType}"]}},6970:n=>{n.exports={en:["change {chartType} up color"],vi:["thay đổi màu trên {chartType}"]}},66110:n=>{n.exports={en:["change {inputName} property"],vi:["thay đổi thuộc tính {inputName}"]}},18077:n=>{n.exports={en:["adjust data for dividends"],vi:["Điều chỉnh dữ liệu cho Cổ tức"]}},1433:n=>{n.exports={en:["adjust for contract changes"],vi:["Điều chỉnh để thay đổi hợp đồng"]}},92598:n=>{n.exports={en:["hollow candles"],vi:["Biểu đồ nến Hollow"]}},57243:n=>{n.exports={en:["range","ranges"],vi:["phạm vi"]}}, -70282:n=>{n.exports={en:["renko"],vi:["Renko"]}},18917:n=>{n.exports={en:["toggle inactivity gaps"],vi:["bật/tắt khoảng không không hoạt động"]}},92978:n=>{n.exports={en:["use settlement as close on daily interval"],vi:["Sử dụng giải quyết đóng tại khoảng thời gian hàng ngày"]}},59644:n=>{n.exports={en:["{value} decimal","{value} decimals"],vi:["{value} số thập phân"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/vi.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/vi.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..c619e61f --- /dev/null +++ b/charting_library/bundles/vi.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,8 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:n=>{n.exports={en:["bars"],vi:["thanh"]}},31882:n=>{n.exports={en:["12-hours"],vi:["12-giờ"]}},5797:n=>{n.exports={en:["24-hours"],vi:["24-giờ"]}},23111:n=>{n.exports={en:["Color bars based on previous close"],vi:["Các thanh màu dựa trên đóng cửa phiên trước"]}},23739:n=>{n.exports={en:["Canvas"]}},24197:n=>{n.exports={en:["Center"],vi:["Trung tâm"]}},15153:n=>{n.exports={en:["Chart basic styles"],vi:["Kiểu cơ bản của biểu đồ"]}},45639:n=>{n.exports={en:["Chart values"],vi:["Giá trị biểu đồ"]}},84831:n=>{n.exports={en:["Close line"],vi:["Đường giá đóng cửa"]}},74622:n=>{n.exports={en:["Crosshair"],vi:["Đường chữ thập"]}},81849:n=>{n.exports={en:["Currency"],vi:["Tiền tệ"]}},3015:n=>{n.exports={en:["Currency and Unit"],vi:["Tiền tệ và đơn vị"]}},93020:n=>{n.exports={en:["Adjust data for dividends"],vi:["Điều chỉnh dữ liệu cho Cổ tức"]}},68921:n=>{n.exports={en:["Adjust for contract changes"],vi:["Điều chỉnh để thay đổi hợp đồng"]}},36620:n=>{n.exports={en:["Alerts"],vi:["Cảnh báo"]}},68650:n=>{n.exports={en:["Average close"],vi:["Đóng cửa trung bình"]}},27567:n=>{n.exports={en:["Bottom"],vi:["Đáy"]}},3159:n=>{n.exports={en:["Bottom line"],vi:["Đường thấp nhất"]}},74406:n=>{n.exports={en:["Body"],vi:["Thân"]}},333:n=>{n.exports={en:["Borders"],vi:["Đường viền"]}},79468:n=>{n.exports={en:["Background"],vi:["Hình nền"]}},10842:n=>{n.exports={en:["Bar change values"],vi:["Các giá trị thay đổi thanh"]}},70817:n=>{n.exports={en:["Bar change color based on value"]}},28975:n=>{n.exports={en:["Base level"],vi:["Cấp Cơ sở"]}},76473:n=>{n.exports={en:["Bid and ask"],vi:["Giá mua và bán"]}},32744:n=>{n.exports={en:["Buttons"],vi:["Nút"]}},68662:n=>{n.exports={en:["Grid lines"],vi:["Đường lưới"]}},17611:n=>{n.exports={en:["Down bars"],vi:["Thanh dưới"]}},23743:n=>{n.exports={en:["Down color"],vi:["Giảm Màu"]}},48225:n=>{n.exports={en:["Data modification"],vi:["Điều chỉnh dữ liệu"]}},84838:n=>{n.exports={en:["Date format"],vi:["Định dạng Ngày"]}},42357:n=>{n.exports={en:["Day of week on labels"],vi:["Ngày trong tuần trên nhãn"]}},16564:n=>{n.exports={en:["Default"],vi:["Mặc định"]}},78734:n=>{n.exports={en:["Description"],vi:["Mô tả"]}},67036:n=>{n.exports={en:["Display inactivity gaps"],vi:["Hiển thị khoảng không không hoạt động"]}},59777:n=>{n.exports={en:["Electronic trading hours background"],vi:["Nền giờ giao dịch điện tử"]}},69808:n=>{n.exports={en:["Events"],vi:["Các sự kiện"]}},41129:n=>{n.exports={en:["Fill"],vi:["Điền vào"]}},61112:n=>{n.exports={en:["Fill top area"],vi:["Vùng Khớp lệnh nhiều nhất"]}},73185:n=>{n.exports={en:["Fill bottom area"],vi:["Điền vào Khu vực thấp nhất"]}},3160:n=>{n.exports={en:["Horizontal"],vi:["Ngang"]}},61900:n=>{n.exports={en:["Horz only"],vi:["Chỉ theo phương ngang"]}},14180:n=>{n.exports={en:["High and low"],vi:["Cao và thấp"]}},56359:n=>{n.exports={en:["High line"],vi:["Đường giá cao"]}},47326:n=>{n.exports={en:["Integer"],vi:["Số nguyên"]}},17854:n=>{n.exports={en:["Interval"], +vi:["Khoảng thời gian"]}},84549:n=>{n.exports={en:["Indicators"],vi:["Các chỉ báo"]}},78082:n=>{n.exports={en:["Indicators and financials"],vi:["Chỉ báo và chỉ số tài chính"]}},21429:n=>{n.exports={en:["Inputs"],vi:["Các đầu vào"]}},25765:n=>{n.exports={en:["Open market status"],vi:["Trạng thái thị trường mở"]}},34579:n=>{n.exports={en:["Low line"],vi:["Đường giá thấp"]}},14876:n=>{n.exports={en:["Logo"]}},89315:n=>{n.exports={en:["Long Description"],vi:["Mô tả Dài"]}},72423:n=>{n.exports={en:["Last day change values"],vi:["Giá trị thay đổi ngày gần nhất"]}},11626:n=>{n.exports={en:["Left"],vi:["Bên trái"]}},56982:n=>{n.exports={en:["Lines"],vi:["Đường"]}},8249:n=>{n.exports={en:["Money"],vi:["Tiền"]}},70937:n=>{n.exports={en:["Margins"],vi:["Ký quỹ"]}},68833:n=>{n.exports={en:["Middle"],vi:["Giữa"]}},58589:n=>{n.exports={en:["No overlapping labels"],vi:["Không có Nhãn chồng chéo"]}},60798:n=>{n.exports={en:["None"],vi:["Không"]}},51019:n=>{n.exports={en:["Navigation"],vi:["Điều hướng"]}},99709:n=>{n.exports={en:["Name"],vi:["Tên"]}},8852:n=>{n.exports={en:["Save chart left edge position when changing interval"],vi:["Lưu vị thế ở cạnh trái biểu đồ khi thay đổi khoảng thời gian"]}},26204:n=>{n.exports={en:["Scale modes (A and L)"],vi:["Chế độ thang (A và L)"]}},93968:n=>{n.exports={en:["Scales"],vi:["Các tỷ lệ"]}},90275:n=>{n.exports={en:["Scales and lines"],vi:["Thang và dòng"]}},30042:n=>{n.exports={en:["Scales placement"],vi:["Vị trí căn chỉnh"]}},28715:n=>{n.exports={en:["Status line"],vi:["Dòng trạng thái"]}},95481:n=>{n.exports={en:["Symbol"],vi:["Mã"]}},53263:n=>{n.exports={en:["Pane"],vi:["Ngăn"]}},82894:n=>{n.exports={en:["Pane separators"],vi:["Ngăn phân cách"]}},86235:n=>{n.exports={en:["Percentage"],vi:["Tỷ lệ phần trăm"]}},94408:n=>{n.exports={en:["Pips"]}},60904:n=>{n.exports={en:["Pre/post market"],vi:["Trước/sau giờ mở cửa"]}},88327:n=>{n.exports={en:["Pre/post market hours background"],vi:["Nền thị trường trước/sau giờ mở cửa"]}},59766:n=>{n.exports={en:["Precision"],vi:["Độ chính xác"]}},83811:n=>{n.exports={en:["Previous day close"],vi:["Đóng cửa ngày hôm trước"]}},35082:n=>{n.exports={en:["Price Scale"],vi:["Thang Giá"]}},27632:n=>{n.exports={en:["Price and percentage value"],vi:["Giá trị Giá và Phần trăm"]}},62142:n=>{n.exports={en:["Price labels & lines"],vi:["Nhãn & dòng giá"]}},84684:n=>{n.exports={en:["Price source"],vi:["Nguồn giá"]}},73466:n=>{n.exports={en:["Projection up bars"],vi:["Chiếu thanh lên"]}},77430:n=>{n.exports={en:["Projection candles"],vi:["Nến chiếu"]}},88367:n=>{n.exports={en:["Projection down bars"],vi:["Chiếu thanh xuống"]}},6160:n=>{n.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],vi:["Giá thực trên thang giá (thay vì giá Heikin-Ashi)"]}},50421:n=>{n.exports={en:["Right"],vi:["Phải"]}},62532:n=>{n.exports={en:["Right Margin"],vi:["Lề Phải"]}},41571:n=>{n.exports={en:["Watermark"],vi:["Chữ mờ"]}},32163:n=>{n.exports={en:["Wick"],vi:["Bóng nến"]}},97118:n=>{n.exports={en:["Top"],vi:["Trên đầu"]}},89349:n=>{n.exports={en:["Top line"], +vi:["Đường cao nhất"]}},70320:n=>{n.exports={en:["Text"],vi:["Văn bản"]}},25485:n=>{n.exports={en:["Text alignment"],vi:["Căn chỉnh chữ"]}},67781:n=>{n.exports={en:["Text orientation"],vi:["Chiều của chữ"]}},20215:n=>{n.exports={en:["Thin bars"],vi:["Thanh mỏng"]}},70198:n=>{n.exports={en:["Title"],vi:["Tiêu đề"]}},29854:n=>{n.exports={en:["Titles"],vi:["Tiêu đề"]}},5791:n=>{n.exports={en:["Ticker"]}},16816:n=>{n.exports={en:["Ticker and description"],vi:["Ticker và mô tả"]}},24821:n=>{n.exports={en:["Ticks"]}},93965:n=>{n.exports={en:["Time Scale"],vi:["Thang Thời gian"]}},5591:n=>{n.exports={en:["Time hours format"],vi:["Định dạng thời gian"]}},77073:n=>{n.exports={en:["Timezone"],vi:["Múi giờ"]}},76495:n=>{n.exports={en:["Trading"],vi:["Giao dịch"]}},33564:n=>{n.exports={en:["Unit"],vi:["Đơn vị"]}},23091:n=>{n.exports={en:["Up color"],vi:["Tăng Màu"]}},36957:n=>{n.exports={en:["Up bars"],vi:["Thanh trên"]}},49545:n=>{n.exports={en:["Use settlement as close on daily interval"],vi:["Sử dụng giải quyết càng gần vào khoảng thời gian hàng ngày"]}},37644:n=>{n.exports={en:["Volume"],vi:["Khối lượng"]}},51514:n=>{n.exports={en:["Value"],vi:["Giá trị"]}},31218:n=>{n.exports={en:["Value according to scale"],vi:["Giá trị theo Tỷ lệ"]}},60092:n=>{n.exports={en:["Values"],vi:["Giá trị"]}},83594:n=>{n.exports={en:["Vert and horz"],vi:["Theo phương thẳng đứng và phương ngang"]}},8402:n=>{n.exports={en:["Vert only"],vi:["Chỉ theo phương thẳng đứng"]}},69526:n=>{n.exports={en:["Vertical"],vi:["Dọc"]}},21105:n=>{n.exports={en:["candle"],vi:["ký hiệu hình nến"]}},27068:n=>{n.exports={en:["change HLC bars"],vi:["thay đổi các thanh HLC"]}},21201:n=>{n.exports={en:["change HLC bars color"],vi:["thay đổi màu thanh HLC"]}},3311:n=>{n.exports={en:["change navigation buttons visibility"],vi:["thay đổi khả năng hiển thị của các nút điều hướng"]}},96227:n=>{n.exports={en:["change open market status visibility"],vi:["thay đổi trạng thái mở cửa thị trường"]}},43231:n=>{n.exports={en:["change average close price line width"],vi:["thay đổi bề rộng đường giá trung bình tại thời điểm đóng cửa"]}},47026:n=>{n.exports={en:["change average close price line color"],vi:["thay đổi màu đường giá trung bình tại thời điểm đóng cửa"]}},29281:n=>{n.exports={en:["change area fill color"],vi:["thay đổi màu sắc khu vực"]}},27059:n=>{n.exports={en:["change area line visibility"],vi:["thay đổi khả năng hiển thị đường viền khu vực"]}},89346:n=>{n.exports={en:["change area line width"],vi:["thay đổi độ rộng đường diện tích"]}},29605:n=>{n.exports={en:["change area line color"],vi:["thay đổi màu sắc đường diện tích"]}},56864:n=>{n.exports={en:["change area line style"],vi:["thay đổi kiểu đường viền vùng biểu đồ"]}},4640:n=>{n.exports={en:["change area price source"],vi:["thay đổi nguồn giá diện tích"]}},98407:n=>{n.exports={en:["change ask line color"],vi:["điều chỉnh màu sắc dòng bán"]}},42190:n=>{n.exports={en:["change base level"],vi:["thay đổi cấp độ cơ bản"]}},71785:n=>{n.exports={en:["change baseline bottom line color"],vi:["thay đổi màu đường cơ sở dưới"]}}, +85684:n=>{n.exports={en:["change baseline bottom line style"],vi:["thay đổi kiểu đường kẻ đáy đường cơ sở"]}},56175:n=>{n.exports={en:["change baseline bottom line width"],vi:["thay đổi độ rộng đường cơ sở dưới"]}},97216:n=>{n.exports={en:["change baseline fill bottom area color"],vi:["thay đổi màu đường cơ sở khu vực dưới"]}},92873:n=>{n.exports={en:["change baseline fill top area color"],vi:["thay đổi màu đường cơ sở khu vực trên"]}},68609:n=>{n.exports={en:["change baseline price source"],vi:["thay đổi nguồn giá đường cơ sở"]}},69044:n=>{n.exports={en:["change baseline top line color"],vi:["thay đổi màu đường cơ sở trên"]}},4425:n=>{n.exports={en:["change baseline top line style"],vi:["thay đổi kiểu đường kẻ đỉnh đường cơ sở"]}},68197:n=>{n.exports={en:["change baseline top line width"],vi:["thay đổi độ rộng đường cơ sở trên"]}},33464:n=>{n.exports={en:["change bar up color"],vi:["tăng màu thanh lên"]}},14201:n=>{n.exports={en:["change bar change down color"]}},30196:n=>{n.exports={en:["change bar change up color"]}},27426:n=>{n.exports={en:["change bar change visibility"],vi:["thay đổi đếm ngược để thanh hiển thị đóng"]}},59622:n=>{n.exports={en:["change bar down color"],vi:["giảm màu thanh xuống"]}},17919:n=>{n.exports={en:["change bid line color"],vi:["điều chỉnh màu sắc dòng mua"]}},32094:n=>{n.exports={en:["change bottom margin"],vi:["thay đổi lề dưới"]}},63119:n=>{n.exports={en:["change currency and unit labels visibility"],vi:["thay đổi đơn vị tiền tệ và khả năng hiển thị nhãn đơn vị"]}},64003:n=>{n.exports={en:["change currency label visibility"],vi:["thay đổi khả năng hiển thị nhãn tiền tệ"]}},42803:n=>{n.exports={en:["change chart background color"],vi:["thay đổi màu nền biểu đồ"]}},41382:n=>{n.exports={en:["change chart background type"],vi:["thay đổi loại nền biểu đồ"]}},79637:n=>{n.exports={en:["change chart values visibility"],vi:["thay đổi khả năng hiển thị giá trị biểu đồ"]}},43090:n=>{n.exports={en:["change color bars based on previous close"],vi:["thay đổi thanh màu dựa trên lần đóng trước đó"]}},88324:n=>{n.exports={en:["change column up color"],vi:["thay đổi màu cột lên"]}},93890:n=>{n.exports={en:["change column down color"],vi:["thay đổi màu cột xuống"]}},4727:n=>{n.exports={en:["change column price source"],vi:["thay đổi nguồn giá cột"]}},50544:n=>{n.exports={en:["change crosshair width"],vi:["thay đổi độ rộng đường chéo"]}},92885:n=>{n.exports={en:["change crosshair color"],vi:["thay đổi màu đường chéo"]}},68418:n=>{n.exports={en:["change crosshair style"],vi:["thay đổi kiểu chéo"]}},43109:n=>{n.exports={en:["change date format"],vi:["thay đổi định dạng ngày"]}},30418:n=>{n.exports={en:["change day of week on labels"],vi:["thay đổi ngày trong tuần trên nhãn"]}},82063:n=>{n.exports={en:["change decimal places"],vi:["thay đổi chữ số thập phân"]}},45397:n=>{n.exports={en:["change extended hours color"],vi:["thay đổi màu giờ kéo dài"]}},47393:n=>{n.exports={en:["change electronic trading hours"],vi:["thay đổi giờ giao dịch điện tử"]}},73844:n=>{n.exports={ +en:["change grid lines visibility"],vi:["thay đổi việc hiển thị các đường lưới ô vuông"]}},61407:n=>{n.exports={en:["change high and low price line color"],vi:["thay đổi màu đường giá cao và thấp"]}},39581:n=>{n.exports={en:["change high and low price line width"],vi:["thay đổi chiều rộng đường cao và thấp"]}},6026:n=>{n.exports={en:["change high-low body color"],vi:["thay đổi màu sắc nội dung cao-thấp"]}},73021:n=>{n.exports={en:["change high-low body visibility"],vi:["thay đổi khả năng hiển thị nội dung từ cao xuống thấp"]}},46844:n=>{n.exports={en:["change high-low border color"],vi:["thay đổi màu sắc đường viền cao-thấp"]}},15801:n=>{n.exports={en:["change high-low borders visibility"],vi:["thay đổi hiển thị đường viền cao-thấp"]}},72399:n=>{n.exports={en:["change high-low labels visibility"],vi:["thay đổi hiển thị nhãn cao-thấp"]}},56961:n=>{n.exports={en:["change high-low labels color"],vi:["thay đổi màu sắc nhãn cao-thấp"]}},21133:n=>{n.exports={en:["change horz grid lines color"],vi:["thay đổi màu sắc đường lưới ngang"]}},63050:n=>{n.exports={en:["change indicator titles visibility"],vi:["thay đổi trạng thái hiển thị tiêu đề chỉ số"]}},49583:n=>{n.exports={en:["change indicator values visibility"],vi:["thay đổi trạng thái hiển thị giá trị chỉ số"]}},75663:n=>{n.exports={en:["change indicator inputs visibility"],vi:["thay đổi khả năng hiển thị đầu vào chỉ báo"]}},35111:n=>{n.exports={en:["change indicators and financials name labels visibility"],vi:["thay đổi các chỉ số và tài chính tên nhãn khả năng hiển thị"]}},71161:n=>{n.exports={en:["change indicators and financials value labels visibility"],vi:["thay đổi các chỉ số và tài chính giá trị nhãn khả năng hiển thị"]}},451:n=>{n.exports={en:["change interval watermark visibility"],vi:["thay đổi khả năng hiển thị hình dấu mờ của khoảng thời gian"]}},66307:n=>{n.exports={en:["change last day change visibility"],vi:["thay đổi khả năng hiển thị của thay đổi ngày gần nhất"]}},91873:n=>{n.exports={en:["change legend background transparency"],vi:["thay đổi độ rõ ràng của nền chú thích"]}},14246:n=>{n.exports={en:["change legend background visibility"],vi:["thay đổi hiển thị nền chú thích"]}},88640:n=>{n.exports={en:["change line color"],vi:["thay đổi màu sắc đường"]}},28818:n=>{n.exports={en:["change line style"],vi:["Thay đổi Kiểu đường kẻ"]}},41837:n=>{n.exports={en:["change line price source"],vi:["thay đổi đường nguồn giá"]}},48339:n=>{n.exports={en:["change line width"],vi:["thay đổi độ rộng của đường"]}},18378:n=>{n.exports={en:["change pane buttons visibility"],vi:["thay đổi khả năng hiển thị của các nút ngăn"]}},52203:n=>{n.exports={en:["change pane separators color"],vi:["thay đổi màu ngăn phân cách"]}},38730:n=>{n.exports={en:["change post market color"],vi:["thay đổi màu sắc sau khi kết thúc phiên giao dịch"]}},28075:n=>{n.exports={en:["change post market line color"],vi:["thay đổi màu sắc đường sau khi kết thúc phiên giao dịch"]}},91978:n=>{n.exports={en:["change pre/post market price lines visibility"], +vi:["thay đổi khả năng hiển thị đường giá thị trường trước/sau"]}},44371:n=>{n.exports={en:["change pre market color"],vi:["điều chỉnh màu trước khi mở cửa thị trường"]}},96114:n=>{n.exports={en:["change pre market line color"],vi:["điều chỉnh màu sắc đường trước khi thị trường mở"]}},69814:n=>{n.exports={en:["change previous close price line color"],vi:["điều chỉnh màu sắc dòng giá đóng cửa trước đó"]}},13660:n=>{n.exports={en:["change previous close price line width"],vi:["điều chỉnh độ rộng đường giá đóng cửa trước đó"]}},87861:n=>{n.exports={en:["change price line color"],vi:["điều chỉnh màu sắc dòng giá"]}},29353:n=>{n.exports={en:["change price line width"],vi:["điều chỉnh độ rộng dòng giá"]}},16241:n=>{n.exports={en:["change range bars style"],vi:["thay đổi kiểu thanh phạm vi"]}},65821:n=>{n.exports={en:["change range thin bars"],vi:["thay đổi phạm vi thanh mỏng"]}},75487:n=>{n.exports={en:["change renko wick down color"],vi:["giảm mức hiển thị wick của biểu đồ renko"]}},92277:n=>{n.exports={en:["change renko wick up color"],vi:["tăng mức hiển thị wick của biểu đồ renko"]}},79604:n=>{n.exports={en:["change renko wick visibility"],vi:["thay đổi mức hiển thị wick của biểu đồ renko"]}},66021:n=>{n.exports={en:["change replay watermark visibility"],vi:["thay đổi khả năng hiển thị hình dấu mờ của thanh phát lại"]}},82946:n=>{n.exports={en:["change right margin"],vi:["thay đổi lề phải"]}},79545:n=>{n.exports={en:["change right margin percentage"],vi:["thay đổi tỷ lệ phần trăm lề phải"]}},18099:n=>{n.exports={en:["change symbol tiker watermark visibility"],vi:["thay đổi khả năng hiển thị hình dấu mờ của mã chứng khoán mã giao dịch"]}},78995:n=>{n.exports={en:["change symbol watermark color"],vi:["thay đổi màu sắc hình mờ của mã"]}},73227:n=>{n.exports={en:["change symbol watermark visibility"],vi:["thay đổi mức hiển thị hình mờ của mã"]}},88167:n=>{n.exports={en:["change symbol description visibility"],vi:["thay đổi tính năng mô tả biểu tượng"]}},65838:n=>{n.exports={en:["change symbol description watermark visibility"],vi:["thay đổi khả năng hiển thị hình dấu mờ của mô tả mã giao dịch"]}},12050:n=>{n.exports={en:["change symbol field visibility"],vi:["thay đổi việc hiển thị trường mã giao dịch"]}},46066:n=>{n.exports={en:["change symbol last value mode"],vi:["thay đổi giá trị cuối cùng của mã"]}},902:n=>{n.exports={en:["change symbol legend format"],vi:["thay đổi dạng chú thích mã"]}},77408:n=>{n.exports={en:["change save chart left edge position when changing interval"],vi:["thay đổi lưu vị thế ở cạnh trái biểu đồ khi thay đổi khoảng thời gian"]}},69023:n=>{n.exports={en:["change scale modes buttons visibility"],vi:["hiển thị các nút thang thay đổi"]}},76131:n=>{n.exports={en:["change scales text color"],vi:["thay đổi màu văn bản tỷ lệ"]}},27792:n=>{n.exports={en:["change scales font size"],vi:["thay đổi cỡ chữ tỷ lệ"]}},94997:n=>{n.exports={en:["change scales lines color"],vi:["thay đổi màu của các đường tỉ lệ"]}},60067:n=>{n.exports={en:["change sessions breaks visibility"], +vi:["thay đổi khả năng hiển thị phiên"]}},28175:n=>{n.exports={en:["change sessions breaks width"],vi:["thay đổi phiên làm gián đoạn độ rộng"]}},33895:n=>{n.exports={en:["change sessions breaks color"],vi:["thay đổi phiên làm gián đoạn màu sắc"]}},21641:n=>{n.exports={en:["change sessions breaks style"],vi:["thay đổi kiểu phiên"]}},16660:n=>{n.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],vi:["thay đổi hiển thị giá thực trên thang giá (thay vì giá Heiken-Ashi)"]}},60834:n=>{n.exports={en:["change thin bars"],vi:["thay đổi thanh mỏng"]}},39754:n=>{n.exports={en:["change time hours format"],vi:["đổi định dạng thời gian"]}},74883:n=>{n.exports={en:["change top margin"],vi:["thay đổi lề trên"]}},51250:n=>{n.exports={en:["change unit label visibility"],vi:["thay đổi khả năng hiển thị nhãn đơn vị"]}},28142:n=>{n.exports={en:["change use custom bar change colors"]}},71805:n=>{n.exports={en:["change vert grid lines color"],vi:["thay đổi màu đường lưới dọc"]}},96201:n=>{n.exports={en:["change volume values visibility"],vi:["thay đổi trạng thái hiển thị khối lượng"]}},17214:n=>{n.exports={en:["change {candleType} up border color"],vi:["thay đổi màu đường viền trên {candleType}"]}},36697:n=>{n.exports={en:["change {candleType} up color"],vi:["thay đổi màu phía trên {candleType}"]}},48091:n=>{n.exports={en:["change {candleType} wick down color"],vi:["thay đổi màu ký tự wick dưới {candleType}"]}},97546:n=>{n.exports={en:["change {candleType} wick up color"],vi:["thay đổi màu ký tự wick trên {candleType}"]}},94750:n=>{n.exports={en:["change {candleType} wick visibility"],vi:["thay đổi mức hiển thị wick, một ký tự hình cây nến dài {candleType}"]}},60608:n=>{n.exports={en:["change {candleType} body visibility"],vi:["thay đổi mức hiển thị phần thân {candleType}"]}},11114:n=>{n.exports={en:["change {candleType} border visibility"],vi:["thay đổi màu đường viền {candleType}"]}},20291:n=>{n.exports={en:["change {candleType} down border color"],vi:["thay đổi màu đường viền dưới {candleType}"]}},64571:n=>{n.exports={en:["change {candleType} down color"],vi:["thay đổi màu phía dưới {candleType}"]}},23053:n=>{n.exports={en:["change {chartType} border bar down color"],vi:["thay đổi màu thanh viền dưới {chartType}"]}},28394:n=>{n.exports={en:["change {chartType} border bar up color"],vi:["thay đổi màu thanh viền trên {chartType}"]}},5012:n=>{n.exports={en:["change {chartType} down color"],vi:["thay đổi màu dưới {chartType}"]}},42826:n=>{n.exports={en:["change {chartType} projection border bar up color"],vi:["thay đổi màu viền thanh chiếu {chartType}"]}},72545:n=>{n.exports={en:["change {chartType} projection bar down color"],vi:["thay đổi màu thanh chiếu dưới {chartType}"]}},85032:n=>{n.exports={en:["change {chartType} projection bar up color"],vi:["thay đổi màu thanh chiếu trên {chartType}"]}},6970:n=>{n.exports={en:["change {chartType} up color"],vi:["thay đổi màu trên {chartType}"]}},66110:n=>{n.exports={en:["change {inputName} property"],vi:["thay đổi thuộc tính {inputName}"]}},18077:n=>{ +n.exports={en:["adjust data for dividends"],vi:["Điều chỉnh dữ liệu cho Cổ tức"]}},1433:n=>{n.exports={en:["adjust for contract changes"],vi:["Điều chỉnh để thay đổi hợp đồng"]}},92598:n=>{n.exports={en:["hollow candles"],vi:["Biểu đồ nến Hollow"]}},57243:n=>{n.exports={en:["range","ranges"],vi:["phạm vi"]}},70282:n=>{n.exports={en:["renko"],vi:["Renko"]}},18917:n=>{n.exports={en:["toggle inactivity gaps"],vi:["bật/tắt khoảng không không hoạt động"]}},92978:n=>{n.exports={en:["use settlement as close on daily interval"],vi:["Sử dụng giải quyết đóng tại khoảng thời gian hàng ngày"]}},59644:n=>{n.exports={en:["{value} decimal","{value} decimals"],vi:["{value} số thập phân"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/zh.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/zh.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index 06e3033f..00000000 --- a/charting_library/bundles/zh.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,6 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:e=>{e.exports={en:["bars"],zh:["根K线"]}},31882:e=>{e.exports={en:["12-hours"],zh:["12小时"]}},5797:e=>{e.exports={en:["24-hours"],zh:["24小时"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],zh:["K线颜色基于前一收盘价"]}},23739:e=>{e.exports={en:["Canvas"],zh:["版面"]}},24197:e=>{e.exports={en:["Center"],zh:["中心"]}},15153:e=>{e.exports={en:["Chart basic styles"],zh:["图表基本样式"]}},45639:e=>{e.exports={en:["Chart values"],zh:["图表值"]}},84831:e=>{e.exports={en:["Close line"],zh:["收盘价线"]}},74622:e=>{e.exports={en:["Crosshair"],zh:["十字线"]}},81849:e=>{e.exports={en:["Currency"],zh:["货币"]}},3015:e=>{e.exports={en:["Currency and Unit"],zh:["货币和单位"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],zh:["调整股息数据"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],zh:["根据合约变更调整"]}},36620:e=>{e.exports={en:["Alerts"],zh:["警报"]}},68650:e=>{e.exports={en:["Average close"],zh:["平均收盘价"]}},27567:e=>{e.exports={en:["Bottom"],zh:["底部"]}},3159:e=>{e.exports={en:["Bottom line"],zh:["下边框线"]}},74406:e=>{e.exports={en:["Body"],zh:["主体"]}},333:e=>{e.exports={en:["Borders"],zh:["边框"]}},79468:e=>{e.exports={en:["Background"],zh:["背景"]}},10842:e=>{e.exports={en:["Bar change values"],zh:["K线变化值"]}},28975:e=>{e.exports={en:["Base level"],zh:["基准位"]}},76473:e=>{e.exports={en:["Bid and ask"],zh:["Bid和Ask"]}},32744:e=>{e.exports={en:["Buttons"],zh:["按钮"]}},68662:e=>{e.exports={en:["Grid lines"],zh:["网格线"]}},17611:e=>{e.exports={en:["Down bars"],zh:["下跌烛线"]}},23743:e=>{e.exports={en:["Down color"],zh:["下跌颜色"]}},48225:e=>{e.exports={en:["Data modification"],zh:["数据修改"]}},84838:e=>{e.exports={en:["Date format"],zh:["日期格式"]}},42357:e=>{e.exports={en:["Day of week on labels"],zh:["标签上的星期几"]}},16564:e=>{e.exports={en:["Default"],zh:["系统预设"]}},78734:e=>{e.exports={en:["Description"],zh:["描述"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],zh:["显示不活动的跳空"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],zh:["电子交易时段背景"]}},69808:e=>{e.exports={en:["Events"],zh:["事件"]}},41129:e=>{e.exports={en:["Fill"],zh:["填充"]}},61112:e=>{e.exports={en:["Fill top area"],zh:["上填充色"]}},73185:e=>{e.exports={en:["Fill bottom area"],zh:["下填充色"]}},3160:e=>{e.exports={en:["Horizontal"],zh:["横式"]}},61900:e=>{e.exports={en:["Horz only"],zh:["仅水平"]}},14180:e=>{e.exports={en:["High and low"],zh:["高点和低点"]}},56359:e=>{e.exports={en:["High line"],zh:["最高价线"]}},47326:e=>{e.exports={en:["Integer"],zh:["整数"]}},17854:e=>{e.exports={en:["Interval"],zh:["周期"]}},84549:e=>{e.exports={en:["Indicators"],zh:["指标"]}},78082:e=>{e.exports={en:["Indicators and financials"],zh:["指标和财务数据"]}},21429:e=>{e.exports={en:["Inputs"],zh:["输入"]}},25765:e=>{e.exports={en:["Open market status"],zh:["开市状态"]}},34579:e=>{e.exports={en:["Low line"],zh:["最低价线"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"],zh:["详细描述"]}},72423:e=>{e.exports={en:["Last day change values"],zh:["最后一天变化值"]}},11626:e=>{e.exports={en:["Left"],zh:["左"]}},56982:e=>{e.exports={en:["Lines"], -zh:["线条"]}},8249:e=>{e.exports={en:["Money"],zh:["资金"]}},70937:e=>{e.exports={en:["Margins"],zh:["利润率"]}},68833:e=>{e.exports={en:["Middle"],zh:["中间"]}},58589:e=>{e.exports={en:["No overlapping labels"],zh:["无重叠标签"]}},60798:e=>{e.exports={en:["None"],zh:["无"]}},51019:e=>{e.exports={en:["Navigation"],zh:["导航"]}},99709:e=>{e.exports={en:["Name"],zh:["名称"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],zh:["改变周期时保存图表左边缘位置"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],zh:["坐标模式(A和L)"]}},93968:e=>{e.exports={en:["Scales"],zh:["坐标"]}},90275:e=>{e.exports={en:["Scales and lines"],zh:["坐标和线条"]}},30042:e=>{e.exports={en:["Scales placement"],zh:["坐标放置"]}},28715:e=>{e.exports={en:["Status line"],zh:["状态行"]}},95481:e=>{e.exports={en:["Symbol"],zh:["商品代码"]}},53263:e=>{e.exports={en:["Pane"],zh:["窗格"]}},82894:e=>{e.exports={en:["Pane separators"],zh:["窗格分隔符"]}},86235:e=>{e.exports={en:["Percentage"],zh:["百分比"]}},94408:e=>{e.exports={en:["Pips"],zh:["点数"]}},60904:e=>{e.exports={en:["Pre/post market"],zh:["盘前/盘后市场"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],zh:["盘前/盘后市场时段背景"]}},59766:e=>{e.exports={en:["Precision"],zh:["精确度"]}},83811:e=>{e.exports={en:["Previous day close"],zh:["前一天收盘"]}},35082:e=>{e.exports={en:["Price Scale"],zh:["价格坐标"]}},27632:e=>{e.exports={en:["Price and percentage value"],zh:["价格和百分比值"]}},62142:e=>{e.exports={en:["Price labels & lines"],zh:["价格标签和价格线"]}},84684:e=>{e.exports={en:["Price source"],zh:["价格源"]}},73466:e=>{e.exports={en:["Projection up bars"],zh:["预测上涨烛线"]}},77430:e=>{e.exports={en:["Projection candles"],zh:["投影蜡烛"]}},88367:e=>{e.exports={en:["Projection down bars"],zh:["预测下跌烛线"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],zh:["价格坐标上的实际价格(而不是Heikin-Ashi价格)"]}},50421:e=>{e.exports={en:["Right"],zh:["右"]}},62532:e=>{e.exports={en:["Right Margin"],zh:["右边距"]}},41571:e=>{e.exports={en:["Watermark"],zh:["水印"]}},32163:e=>{e.exports={en:["Wick"],zh:["影线"]}},97118:e=>{e.exports={en:["Top"],zh:["顶部"]}},89349:e=>{e.exports={en:["Top line"],zh:["上边框线"]}},70320:e=>{e.exports={en:["Text"],zh:["文本"]}},25485:e=>{e.exports={en:["Text alignment"],zh:["文字对齐"]}},67781:e=>{e.exports={en:["Text orientation"],zh:["文字方向"]}},20215:e=>{e.exports={en:["Thin bars"],zh:["细K线"]}},70198:e=>{e.exports={en:["Title"],zh:["标题"]}},29854:e=>{e.exports={en:["Titles"],zh:["标题"]}},5791:e=>{e.exports={en:["Ticker"],zh:["商品代码"]}},16816:e=>{e.exports={en:["Ticker and description"],zh:["商品和描述"]}},24821:e=>{e.exports={en:["Ticks"],zh:["ticks"]}},93965:e=>{e.exports={en:["Time Scale"],zh:["时间坐标"]}},5591:e=>{e.exports={en:["Time hours format"],zh:["时间小时格式"]}},77073:e=>{e.exports={en:["Timezone"],zh:["时区"]}},76495:e=>{e.exports={en:["Trading"],zh:["交易"]}},33564:e=>{e.exports={en:["Unit"],zh:["单位"]}},23091:e=>{e.exports={en:["Up color"],zh:["上涨颜色"]}},36957:e=>{e.exports={en:["Up bars"],zh:["上涨烛线"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],zh:["使用结算价作为日图收盘价"]}},37644:e=>{e.exports={en:["Volume"],zh:["成交量"]}}, -51514:e=>{e.exports={en:["Value"],zh:["值"]}},31218:e=>{e.exports={en:["Value according to scale"],zh:["根据坐标值"]}},60092:e=>{e.exports={en:["Values"],zh:["数值"]}},83594:e=>{e.exports={en:["Vert and horz"],zh:["垂直和水平"]}},8402:e=>{e.exports={en:["Vert only"],zh:["仅垂直"]}},69526:e=>{e.exports={en:["Vertical"],zh:["竖式"]}},21105:e=>{e.exports={en:["candle"],zh:["蜡烛"]}},27068:e=>{e.exports={en:["change HLC bars"],zh:["更改美国线"]}},21201:e=>{e.exports={en:["change HLC bars color"],zh:["更改HLC K线颜色"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],zh:["更改导航按钮可见性"]}},96227:e=>{e.exports={en:["change open market status visibility"],zh:["更改开市状态可见性"]}},43231:e=>{e.exports={en:["change average close price line width"],zh:["更改平均收盘价线宽度"]}},47026:e=>{e.exports={en:["change average close price line color"],zh:["更改平均收盘价线颜色"]}},29281:e=>{e.exports={en:["change area fill color"],zh:["更改面积填充颜色"]}},27059:e=>{e.exports={en:["change area line visibility"],zh:["更新区域线可见性"]}},89346:e=>{e.exports={en:["change area line width"],zh:["更改面积线条宽度"]}},29605:e=>{e.exports={en:["change area line color"],zh:["更改面积线条颜色"]}},56864:e=>{e.exports={en:["change area line style"],zh:["更改区域线样式"]}},4640:e=>{e.exports={en:["change area price source"],zh:["更改面积价格来源"]}},98407:e=>{e.exports={en:["change ask line color"],zh:["更改ask线颜色"]}},42190:e=>{e.exports={en:["change base level"],zh:["更改基础水平"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],zh:["更改基准线底线颜色"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],zh:["更改基准线底线样式"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],zh:["更改基准线底线宽度"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],zh:["更改基准线填充底部区域颜色"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],zh:["更改基准线填充顶部区域颜色"]}},68609:e=>{e.exports={en:["change baseline price source"],zh:["更改基准线价格来源"]}},69044:e=>{e.exports={en:["change baseline top line color"],zh:["更改基准线顶线颜色"]}},4425:e=>{e.exports={en:["change baseline top line style"],zh:["更改基准线顶线样式"]}},68197:e=>{e.exports={en:["change baseline top line width"],zh:["更改基准线顶线宽度"]}},33464:e=>{e.exports={en:["change bar up color"],zh:["更改上涨K线颜色"]}},27426:e=>{e.exports={en:["change bar change visibility"],zh:["更改K线涨跌可见性"]}},59622:e=>{e.exports={en:["change bar down color"],zh:["更改K线下跌颜色"]}},17919:e=>{e.exports={en:["change bid line color"],zh:["更改bid线颜色"]}},32094:e=>{e.exports={en:["change bottom margin"],zh:["更改下边距"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],zh:["更改货币和单位标签的可见性"]}},64003:e=>{e.exports={en:["change currency label visibility"],zh:["更改货币标签可见性"]}},42803:e=>{e.exports={en:["change chart background color"],zh:["更改图表背景颜色"]}},41382:e=>{e.exports={en:["change chart background type"],zh:["更改图表背景类型"]}},79637:e=>{e.exports={en:["change chart values visibility"],zh:["更改图表数值可见性"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],zh:["根据前一个收盘价更改K线颜色"]}},88324:e=>{e.exports={en:["change column up color"],zh:["更改向上列的颜色"]}},93890:e=>{e.exports={en:["change column down color"], -zh:["更改向下列的颜色"]}},4727:e=>{e.exports={en:["change column price source"],zh:["更改列价格来源"]}},50544:e=>{e.exports={en:["change crosshair width"],zh:["更改十字准线宽度"]}},92885:e=>{e.exports={en:["change crosshair color"],zh:["更改十字准线颜色"]}},68418:e=>{e.exports={en:["change crosshair style"],zh:["更改十字准线样式"]}},43109:e=>{e.exports={en:["change date format"],zh:["更改日期格式"]}},30418:e=>{e.exports={en:["change day of week on labels"],zh:["更改标签上的星期几"]}},82063:e=>{e.exports={en:["change decimal places"],zh:["更改小数位"]}},45397:e=>{e.exports={en:["change extended hours color"],zh:["更改延长时段颜色"]}},47393:e=>{e.exports={en:["change electronic trading hours"],zh:["更改电子交易时段"]}},73844:e=>{e.exports={en:["change grid lines visibility"],zh:["更改网格线可见性"]}},61407:e=>{e.exports={en:["change high and low price line color"],zh:["更改高低价线颜色"]}},39581:e=>{e.exports={en:["change high and low price line width"],zh:["更改高低价线宽度"]}},6026:e=>{e.exports={en:["change high-low body color"],zh:["更改高-低实体颜色"]}},73021:e=>{e.exports={en:["change high-low body visibility"],zh:["更改高-低实体可见性"]}},46844:e=>{e.exports={en:["change high-low border color"],zh:["更改高-低边框颜色"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],zh:["更改高-低边框可见性"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],zh:["更改高-低标签可见性"]}},56961:e=>{e.exports={en:["change high-low labels color"],zh:["更改高-低标签颜色"]}},21133:e=>{e.exports={en:["change horz grid lines color"],zh:["更改水平网格线颜色"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],zh:["更改指标标题可见性"]}},49583:e=>{e.exports={en:["change indicator values visibility"],zh:["更改指标值的可见性"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],zh:["更改指标输入可见性"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],zh:["更改指标和财务名称标签可见性"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],zh:["更改指标和财务值标签可见性"]}},451:e=>{e.exports={en:["change interval watermark visibility"],zh:["更改周期水印可见性"]}},66307:e=>{e.exports={en:["change last day change visibility"],zh:["更改最后一天变化可见性"]}},91873:e=>{e.exports={en:["change legend background transparency"],zh:["更改图例背景透明度"]}},14246:e=>{e.exports={en:["change legend background visibility"],zh:["更改图例背景可见性"]}},88640:e=>{e.exports={en:["change line color"],zh:["更改线条颜色"]}},28818:e=>{e.exports={en:["change line style"],zh:["更改线条样式"]}},41837:e=>{e.exports={en:["change line price source"],zh:["更改线条价格来源"]}},48339:e=>{e.exports={en:["change line width"],zh:["更改线条宽度"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],zh:["更改窗格按钮可见性"]}},52203:e=>{e.exports={en:["change pane separators color"],zh:["更改窗格分隔符颜色"]}},38730:e=>{e.exports={en:["change post market color"],zh:["更改盘后市场颜色"]}},28075:e=>{e.exports={en:["change post market line color"],zh:["更改盘后市场线条颜色"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],zh:["更改盘前/盘后市场价格线的可见性"]}},44371:e=>{e.exports={en:["change pre market color"],zh:["更改盘前市场颜色"]}},96114:e=>{e.exports={en:["change pre market line color"],zh:["更改盘前市场线条颜色"]}},69814:e=>{e.exports={ -en:["change previous close price line color"],zh:["更改前一根收盘价线颜色"]}},13660:e=>{e.exports={en:["change previous close price line width"],zh:["更改前一根收盘价线宽度"]}},87861:e=>{e.exports={en:["change price line color"],zh:["更改价格线颜色"]}},29353:e=>{e.exports={en:["change price line width"],zh:["更改价格线宽度"]}},16241:e=>{e.exports={en:["change range bars style"],zh:["更改范围K线样式"]}},65821:e=>{e.exports={en:["change range thin bars"],zh:["更改范围细K线"]}},75487:e=>{e.exports={en:["change renko wick down color"],zh:["更改renko下影线颜色"]}},92277:e=>{e.exports={en:["change renko wick up color"],zh:["更改renko下影线颜色"]}},79604:e=>{e.exports={en:["change renko wick visibility"],zh:["更改renko影线的可见性"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],zh:["更改回放水印可见性"]}},82946:e=>{e.exports={en:["change right margin"],zh:["更改右边距"]}},79545:e=>{e.exports={en:["change right margin percentage"],zh:["更改右边距百分比"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],zh:["更改商品标签水印可见性"]}},78995:e=>{e.exports={en:["change symbol watermark color"],zh:["更改商品水印颜色"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],zh:["更改商品水印可见性"]}},88167:e=>{e.exports={en:["change symbol description visibility"],zh:["更改商品描述可见性"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],zh:["更改商品描述水印可见性"]}},12050:e=>{e.exports={en:["change symbol field visibility"],zh:["更改商品字段可见性"]}},46066:e=>{e.exports={en:["change symbol last value mode"],zh:["更改商品最新值模式"]}},902:e=>{e.exports={en:["change symbol legend format"],zh:["更改商品图例格式"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],zh:["改变周期时更改保存图表左边缘位置"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],zh:["更改坐标模式按钮可见性"]}},76131:e=>{e.exports={en:["change scales text color"],zh:["更改坐标文本颜色"]}},27792:e=>{e.exports={en:["change scales font size"],zh:["更改坐标字体大小"]}},94997:e=>{e.exports={en:["change scales lines color"],zh:["更改坐标线条颜色"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],zh:["更改交易时段分隔可见性"]}},28175:e=>{e.exports={en:["change sessions breaks width"],zh:["更改交易时段分隔宽度"]}},33895:e=>{e.exports={en:["change sessions breaks color"],zh:["更改交易时段分隔颜色"]}},21641:e=>{e.exports={en:["change sessions breaks style"],zh:["更改交易时段分隔样式"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],zh:["更改价格坐标上的实际价格显示(而不是Heiken-Ashi价格)"]}},60834:e=>{e.exports={en:["change thin bars"],zh:["更改细K线"]}},39754:e=>{e.exports={en:["change time hours format"],zh:["更改时间小时格式"]}},74883:e=>{e.exports={en:["change top margin"],zh:["更改上边距"]}},51250:e=>{e.exports={en:["change unit label visibility"],zh:["更改单位标签可见性"]}},71805:e=>{e.exports={en:["change vert grid lines color"],zh:["更改垂直网格线颜色"]}},96201:e=>{e.exports={en:["change volume values visibility"],zh:["更改成交量值的可见性"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],zh:["更改{candleType}上边框颜色"]}},36697:e=>{e.exports={en:["change {candleType} up color"],zh:["更改{candleType}上涨颜色"]}},48091:e=>{e.exports={ -en:["change {candleType} wick down color"],zh:["更改{candleType}下影线颜色"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],zh:["更改{candleType}上影线颜色"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],zh:["更改{candleType}影线的可见性"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],zh:["更改{candleType}实体可见性"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],zh:["更改{candleType}边框可见性"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],zh:["更改{candleType}下边框颜色"]}},64571:e=>{e.exports={en:["change {candleType} down color"],zh:["更改{candleType}向下颜色"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],zh:["更改{chartType}边框K线下跌颜色"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],zh:["更改{chartType}边框K线上涨颜色"]}},5012:e=>{e.exports={en:["change {chartType} down color"],zh:["更改{chartType}向下颜色"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],zh:["更改{chartType}投影边框K线上涨颜色"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],zh:["更改{chartType}投影K线下跌颜色"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],zh:["更改{chartType}投影K线上涨颜色"]}},6970:e=>{e.exports={en:["change {chartType} up color"],zh:["更改{chartType}上涨颜色"]}},66110:e=>{e.exports={en:["change {inputName} property"],zh:["更改{inputName}属性"]}},18077:e=>{e.exports={en:["adjust data for dividends"],zh:["调整股息数据"]}},1433:e=>{e.exports={en:["adjust for contract changes"],zh:["根据合约变更调整"]}},92598:e=>{e.exports={en:["hollow candles"],zh:["空心K线图"]}},57243:e=>{e.exports={en:["range","ranges"],zh:["范围"]}},70282:e=>{e.exports={en:["renko"],zh:["砖形图"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],zh:["切换不活动的跳空"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],zh:["使用结算价作为日图收盘价"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],zh:["{value}小数"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/zh.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/zh.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..5d8cfcdd --- /dev/null +++ b/charting_library/bundles/zh.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,6 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:e=>{e.exports={en:["bars"],zh:["根K线"]}},31882:e=>{e.exports={en:["12-hours"],zh:["12小时"]}},5797:e=>{e.exports={en:["24-hours"],zh:["24小时"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],zh:["K线颜色基于前一收盘价"]}},23739:e=>{e.exports={en:["Canvas"],zh:["版面"]}},24197:e=>{e.exports={en:["Center"],zh:["中心"]}},15153:e=>{e.exports={en:["Chart basic styles"],zh:["图表基本样式"]}},45639:e=>{e.exports={en:["Chart values"],zh:["图表值"]}},84831:e=>{e.exports={en:["Close line"],zh:["收盘价线"]}},74622:e=>{e.exports={en:["Crosshair"],zh:["十字线"]}},81849:e=>{e.exports={en:["Currency"],zh:["货币"]}},3015:e=>{e.exports={en:["Currency and Unit"],zh:["货币和单位"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],zh:["调整股息数据"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],zh:["根据合约变更调整"]}},36620:e=>{e.exports={en:["Alerts"],zh:["警报"]}},68650:e=>{e.exports={en:["Average close"],zh:["平均收盘价"]}},27567:e=>{e.exports={en:["Bottom"],zh:["底部"]}},3159:e=>{e.exports={en:["Bottom line"],zh:["下边框线"]}},74406:e=>{e.exports={en:["Body"],zh:["主体"]}},333:e=>{e.exports={en:["Borders"],zh:["边框"]}},79468:e=>{e.exports={en:["Background"],zh:["背景"]}},10842:e=>{e.exports={en:["Bar change values"],zh:["K线变化值"]}},70817:e=>{e.exports={en:["Bar change color based on value"]}},28975:e=>{e.exports={en:["Base level"],zh:["基准位"]}},76473:e=>{e.exports={en:["Bid and ask"],zh:["Bid和Ask"]}},32744:e=>{e.exports={en:["Buttons"],zh:["按钮"]}},68662:e=>{e.exports={en:["Grid lines"],zh:["网格线"]}},17611:e=>{e.exports={en:["Down bars"],zh:["下跌烛线"]}},23743:e=>{e.exports={en:["Down color"],zh:["下跌颜色"]}},48225:e=>{e.exports={en:["Data modification"],zh:["数据修改"]}},84838:e=>{e.exports={en:["Date format"],zh:["日期格式"]}},42357:e=>{e.exports={en:["Day of week on labels"],zh:["标签上的星期几"]}},16564:e=>{e.exports={en:["Default"],zh:["系统预设"]}},78734:e=>{e.exports={en:["Description"],zh:["描述"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],zh:["显示不活动的跳空"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],zh:["电子交易时段背景"]}},69808:e=>{e.exports={en:["Events"],zh:["事件"]}},41129:e=>{e.exports={en:["Fill"],zh:["填充"]}},61112:e=>{e.exports={en:["Fill top area"],zh:["上填充色"]}},73185:e=>{e.exports={en:["Fill bottom area"],zh:["下填充色"]}},3160:e=>{e.exports={en:["Horizontal"],zh:["横式"]}},61900:e=>{e.exports={en:["Horz only"],zh:["仅水平"]}},14180:e=>{e.exports={en:["High and low"],zh:["高点和低点"]}},56359:e=>{e.exports={en:["High line"],zh:["最高价线"]}},47326:e=>{e.exports={en:["Integer"],zh:["整数"]}},17854:e=>{e.exports={en:["Interval"],zh:["周期"]}},84549:e=>{e.exports={en:["Indicators"],zh:["指标"]}},78082:e=>{e.exports={en:["Indicators and financials"],zh:["指标和财务数据"]}},21429:e=>{e.exports={en:["Inputs"],zh:["输入"]}},25765:e=>{e.exports={en:["Open market status"],zh:["开市状态"]}},34579:e=>{e.exports={en:["Low line"],zh:["最低价线"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"],zh:["详细描述"]}},72423:e=>{e.exports={en:["Last day change values"],zh:["最后一天变化值"]}},11626:e=>{e.exports={ +en:["Left"],zh:["左"]}},56982:e=>{e.exports={en:["Lines"],zh:["线条"]}},8249:e=>{e.exports={en:["Money"],zh:["资金"]}},70937:e=>{e.exports={en:["Margins"],zh:["利润率"]}},68833:e=>{e.exports={en:["Middle"],zh:["中间"]}},58589:e=>{e.exports={en:["No overlapping labels"],zh:["无重叠标签"]}},60798:e=>{e.exports={en:["None"],zh:["无"]}},51019:e=>{e.exports={en:["Navigation"],zh:["导航"]}},99709:e=>{e.exports={en:["Name"],zh:["名称"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],zh:["改变周期时保存图表左边缘位置"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],zh:["坐标模式(A和L)"]}},93968:e=>{e.exports={en:["Scales"],zh:["坐标"]}},90275:e=>{e.exports={en:["Scales and lines"],zh:["坐标和线条"]}},30042:e=>{e.exports={en:["Scales placement"],zh:["坐标放置"]}},28715:e=>{e.exports={en:["Status line"],zh:["状态行"]}},95481:e=>{e.exports={en:["Symbol"],zh:["商品代码"]}},53263:e=>{e.exports={en:["Pane"],zh:["窗格"]}},82894:e=>{e.exports={en:["Pane separators"],zh:["窗格分隔符"]}},86235:e=>{e.exports={en:["Percentage"],zh:["百分比"]}},94408:e=>{e.exports={en:["Pips"],zh:["点数"]}},60904:e=>{e.exports={en:["Pre/post market"],zh:["盘前/盘后市场"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],zh:["盘前/盘后市场时段背景"]}},59766:e=>{e.exports={en:["Precision"],zh:["精确度"]}},83811:e=>{e.exports={en:["Previous day close"],zh:["前一天收盘"]}},35082:e=>{e.exports={en:["Price Scale"],zh:["价格坐标"]}},27632:e=>{e.exports={en:["Price and percentage value"],zh:["价格和百分比值"]}},62142:e=>{e.exports={en:["Price labels & lines"],zh:["价格标签和价格线"]}},84684:e=>{e.exports={en:["Price source"],zh:["价格源"]}},73466:e=>{e.exports={en:["Projection up bars"],zh:["预测上涨烛线"]}},77430:e=>{e.exports={en:["Projection candles"],zh:["投影蜡烛"]}},88367:e=>{e.exports={en:["Projection down bars"],zh:["预测下跌烛线"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],zh:["价格坐标上的实际价格(而不是Heikin-Ashi价格)"]}},50421:e=>{e.exports={en:["Right"],zh:["右"]}},62532:e=>{e.exports={en:["Right Margin"],zh:["右边距"]}},41571:e=>{e.exports={en:["Watermark"],zh:["水印"]}},32163:e=>{e.exports={en:["Wick"],zh:["影线"]}},97118:e=>{e.exports={en:["Top"],zh:["顶部"]}},89349:e=>{e.exports={en:["Top line"],zh:["上边框线"]}},70320:e=>{e.exports={en:["Text"],zh:["文本"]}},25485:e=>{e.exports={en:["Text alignment"],zh:["文字对齐"]}},67781:e=>{e.exports={en:["Text orientation"],zh:["文字方向"]}},20215:e=>{e.exports={en:["Thin bars"],zh:["细K线"]}},70198:e=>{e.exports={en:["Title"],zh:["标题"]}},29854:e=>{e.exports={en:["Titles"],zh:["标题"]}},5791:e=>{e.exports={en:["Ticker"],zh:["商品代码"]}},16816:e=>{e.exports={en:["Ticker and description"],zh:["商品和描述"]}},24821:e=>{e.exports={en:["Ticks"],zh:["ticks"]}},93965:e=>{e.exports={en:["Time Scale"],zh:["时间坐标"]}},5591:e=>{e.exports={en:["Time hours format"],zh:["时间小时格式"]}},77073:e=>{e.exports={en:["Timezone"],zh:["时区"]}},76495:e=>{e.exports={en:["Trading"],zh:["交易"]}},33564:e=>{e.exports={en:["Unit"],zh:["单位"]}},23091:e=>{e.exports={en:["Up color"],zh:["上涨颜色"]}},36957:e=>{e.exports={en:["Up bars"],zh:["上涨烛线"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"], +zh:["使用结算价作为日图收盘价"]}},37644:e=>{e.exports={en:["Volume"],zh:["成交量"]}},51514:e=>{e.exports={en:["Value"],zh:["值"]}},31218:e=>{e.exports={en:["Value according to scale"],zh:["根据坐标值"]}},60092:e=>{e.exports={en:["Values"],zh:["数值"]}},83594:e=>{e.exports={en:["Vert and horz"],zh:["垂直和水平"]}},8402:e=>{e.exports={en:["Vert only"],zh:["仅垂直"]}},69526:e=>{e.exports={en:["Vertical"],zh:["竖式"]}},21105:e=>{e.exports={en:["candle"],zh:["蜡烛"]}},27068:e=>{e.exports={en:["change HLC bars"],zh:["更改美国线"]}},21201:e=>{e.exports={en:["change HLC bars color"],zh:["更改HLC K线颜色"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],zh:["更改导航按钮可见性"]}},96227:e=>{e.exports={en:["change open market status visibility"],zh:["更改开市状态可见性"]}},43231:e=>{e.exports={en:["change average close price line width"],zh:["更改平均收盘价线宽度"]}},47026:e=>{e.exports={en:["change average close price line color"],zh:["更改平均收盘价线颜色"]}},29281:e=>{e.exports={en:["change area fill color"],zh:["更改面积填充颜色"]}},27059:e=>{e.exports={en:["change area line visibility"],zh:["更新区域线可见性"]}},89346:e=>{e.exports={en:["change area line width"],zh:["更改面积线条宽度"]}},29605:e=>{e.exports={en:["change area line color"],zh:["更改面积线条颜色"]}},56864:e=>{e.exports={en:["change area line style"],zh:["更改区域线样式"]}},4640:e=>{e.exports={en:["change area price source"],zh:["更改面积价格来源"]}},98407:e=>{e.exports={en:["change ask line color"],zh:["更改ask线颜色"]}},42190:e=>{e.exports={en:["change base level"],zh:["更改基础水平"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],zh:["更改基准线底线颜色"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],zh:["更改基准线底线样式"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],zh:["更改基准线底线宽度"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],zh:["更改基准线填充底部区域颜色"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],zh:["更改基准线填充顶部区域颜色"]}},68609:e=>{e.exports={en:["change baseline price source"],zh:["更改基准线价格来源"]}},69044:e=>{e.exports={en:["change baseline top line color"],zh:["更改基准线顶线颜色"]}},4425:e=>{e.exports={en:["change baseline top line style"],zh:["更改基准线顶线样式"]}},68197:e=>{e.exports={en:["change baseline top line width"],zh:["更改基准线顶线宽度"]}},33464:e=>{e.exports={en:["change bar up color"],zh:["更改上涨K线颜色"]}},14201:e=>{e.exports={en:["change bar change down color"]}},30196:e=>{e.exports={en:["change bar change up color"]}},27426:e=>{e.exports={en:["change bar change visibility"],zh:["更改K线涨跌可见性"]}},59622:e=>{e.exports={en:["change bar down color"],zh:["更改K线下跌颜色"]}},17919:e=>{e.exports={en:["change bid line color"],zh:["更改bid线颜色"]}},32094:e=>{e.exports={en:["change bottom margin"],zh:["更改下边距"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],zh:["更改货币和单位标签的可见性"]}},64003:e=>{e.exports={en:["change currency label visibility"],zh:["更改货币标签可见性"]}},42803:e=>{e.exports={en:["change chart background color"],zh:["更改图表背景颜色"]}},41382:e=>{e.exports={en:["change chart background type"],zh:["更改图表背景类型"]}},79637:e=>{e.exports={en:["change chart values visibility"],zh:["更改图表数值可见性"]}},43090:e=>{e.exports={ +en:["change color bars based on previous close"],zh:["根据前一个收盘价更改K线颜色"]}},88324:e=>{e.exports={en:["change column up color"],zh:["更改向上列的颜色"]}},93890:e=>{e.exports={en:["change column down color"],zh:["更改向下列的颜色"]}},4727:e=>{e.exports={en:["change column price source"],zh:["更改列价格来源"]}},50544:e=>{e.exports={en:["change crosshair width"],zh:["更改十字准线宽度"]}},92885:e=>{e.exports={en:["change crosshair color"],zh:["更改十字准线颜色"]}},68418:e=>{e.exports={en:["change crosshair style"],zh:["更改十字准线样式"]}},43109:e=>{e.exports={en:["change date format"],zh:["更改日期格式"]}},30418:e=>{e.exports={en:["change day of week on labels"],zh:["更改标签上的星期几"]}},82063:e=>{e.exports={en:["change decimal places"],zh:["更改小数位"]}},45397:e=>{e.exports={en:["change extended hours color"],zh:["更改延长时段颜色"]}},47393:e=>{e.exports={en:["change electronic trading hours"],zh:["更改电子交易时段"]}},73844:e=>{e.exports={en:["change grid lines visibility"],zh:["更改网格线可见性"]}},61407:e=>{e.exports={en:["change high and low price line color"],zh:["更改高低价线颜色"]}},39581:e=>{e.exports={en:["change high and low price line width"],zh:["更改高低价线宽度"]}},6026:e=>{e.exports={en:["change high-low body color"],zh:["更改高-低实体颜色"]}},73021:e=>{e.exports={en:["change high-low body visibility"],zh:["更改高-低实体可见性"]}},46844:e=>{e.exports={en:["change high-low border color"],zh:["更改高-低边框颜色"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],zh:["更改高-低边框可见性"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],zh:["更改高-低标签可见性"]}},56961:e=>{e.exports={en:["change high-low labels color"],zh:["更改高-低标签颜色"]}},21133:e=>{e.exports={en:["change horz grid lines color"],zh:["更改水平网格线颜色"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],zh:["更改指标标题可见性"]}},49583:e=>{e.exports={en:["change indicator values visibility"],zh:["更改指标值的可见性"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],zh:["更改指标输入可见性"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],zh:["更改指标和财务名称标签可见性"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],zh:["更改指标和财务值标签可见性"]}},451:e=>{e.exports={en:["change interval watermark visibility"],zh:["更改周期水印可见性"]}},66307:e=>{e.exports={en:["change last day change visibility"],zh:["更改最后一天变化可见性"]}},91873:e=>{e.exports={en:["change legend background transparency"],zh:["更改图例背景透明度"]}},14246:e=>{e.exports={en:["change legend background visibility"],zh:["更改图例背景可见性"]}},88640:e=>{e.exports={en:["change line color"],zh:["更改线条颜色"]}},28818:e=>{e.exports={en:["change line style"],zh:["更改线条样式"]}},41837:e=>{e.exports={en:["change line price source"],zh:["更改线条价格来源"]}},48339:e=>{e.exports={en:["change line width"],zh:["更改线条宽度"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],zh:["更改窗格按钮可见性"]}},52203:e=>{e.exports={en:["change pane separators color"],zh:["更改窗格分隔符颜色"]}},38730:e=>{e.exports={en:["change post market color"],zh:["更改盘后市场颜色"]}},28075:e=>{e.exports={en:["change post market line color"],zh:["更改盘后市场线条颜色"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"], +zh:["更改盘前/盘后市场价格线的可见性"]}},44371:e=>{e.exports={en:["change pre market color"],zh:["更改盘前市场颜色"]}},96114:e=>{e.exports={en:["change pre market line color"],zh:["更改盘前市场线条颜色"]}},69814:e=>{e.exports={en:["change previous close price line color"],zh:["更改前一根收盘价线颜色"]}},13660:e=>{e.exports={en:["change previous close price line width"],zh:["更改前一根收盘价线宽度"]}},87861:e=>{e.exports={en:["change price line color"],zh:["更改价格线颜色"]}},29353:e=>{e.exports={en:["change price line width"],zh:["更改价格线宽度"]}},16241:e=>{e.exports={en:["change range bars style"],zh:["更改范围K线样式"]}},65821:e=>{e.exports={en:["change range thin bars"],zh:["更改范围细K线"]}},75487:e=>{e.exports={en:["change renko wick down color"],zh:["更改renko下影线颜色"]}},92277:e=>{e.exports={en:["change renko wick up color"],zh:["更改renko下影线颜色"]}},79604:e=>{e.exports={en:["change renko wick visibility"],zh:["更改renko影线的可见性"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],zh:["更改回放水印可见性"]}},82946:e=>{e.exports={en:["change right margin"],zh:["更改右边距"]}},79545:e=>{e.exports={en:["change right margin percentage"],zh:["更改右边距百分比"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],zh:["更改商品标签水印可见性"]}},78995:e=>{e.exports={en:["change symbol watermark color"],zh:["更改商品水印颜色"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],zh:["更改商品水印可见性"]}},88167:e=>{e.exports={en:["change symbol description visibility"],zh:["更改商品描述可见性"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],zh:["更改商品描述水印可见性"]}},12050:e=>{e.exports={en:["change symbol field visibility"],zh:["更改商品字段可见性"]}},46066:e=>{e.exports={en:["change symbol last value mode"],zh:["更改商品最新值模式"]}},902:e=>{e.exports={en:["change symbol legend format"],zh:["更改商品图例格式"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],zh:["改变周期时更改保存图表左边缘位置"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],zh:["更改坐标模式按钮可见性"]}},76131:e=>{e.exports={en:["change scales text color"],zh:["更改坐标文本颜色"]}},27792:e=>{e.exports={en:["change scales font size"],zh:["更改坐标字体大小"]}},94997:e=>{e.exports={en:["change scales lines color"],zh:["更改坐标线条颜色"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],zh:["更改交易时段分隔可见性"]}},28175:e=>{e.exports={en:["change sessions breaks width"],zh:["更改交易时段分隔宽度"]}},33895:e=>{e.exports={en:["change sessions breaks color"],zh:["更改交易时段分隔颜色"]}},21641:e=>{e.exports={en:["change sessions breaks style"],zh:["更改交易时段分隔样式"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],zh:["更改价格坐标上的实际价格显示(而不是Heiken-Ashi价格)"]}},60834:e=>{e.exports={en:["change thin bars"],zh:["更改细K线"]}},39754:e=>{e.exports={en:["change time hours format"],zh:["更改时间小时格式"]}},74883:e=>{e.exports={en:["change top margin"],zh:["更改上边距"]}},51250:e=>{e.exports={en:["change unit label visibility"],zh:["更改单位标签可见性"]}},28142:e=>{e.exports={en:["change use custom bar change colors"]}},71805:e=>{e.exports={en:["change vert grid lines color"],zh:["更改垂直网格线颜色"]}},96201:e=>{e.exports={ +en:["change volume values visibility"],zh:["更改成交量值的可见性"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],zh:["更改{candleType}上边框颜色"]}},36697:e=>{e.exports={en:["change {candleType} up color"],zh:["更改{candleType}上涨颜色"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],zh:["更改{candleType}下影线颜色"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],zh:["更改{candleType}上影线颜色"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],zh:["更改{candleType}影线的可见性"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],zh:["更改{candleType}实体可见性"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],zh:["更改{candleType}边框可见性"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],zh:["更改{candleType}下边框颜色"]}},64571:e=>{e.exports={en:["change {candleType} down color"],zh:["更改{candleType}向下颜色"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],zh:["更改{chartType}边框K线下跌颜色"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],zh:["更改{chartType}边框K线上涨颜色"]}},5012:e=>{e.exports={en:["change {chartType} down color"],zh:["更改{chartType}向下颜色"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],zh:["更改{chartType}投影边框K线上涨颜色"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],zh:["更改{chartType}投影K线下跌颜色"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],zh:["更改{chartType}投影K线上涨颜色"]}},6970:e=>{e.exports={en:["change {chartType} up color"],zh:["更改{chartType}上涨颜色"]}},66110:e=>{e.exports={en:["change {inputName} property"],zh:["更改{inputName}属性"]}},18077:e=>{e.exports={en:["adjust data for dividends"],zh:["调整股息数据"]}},1433:e=>{e.exports={en:["adjust for contract changes"],zh:["根据合约变更调整"]}},92598:e=>{e.exports={en:["hollow candles"],zh:["空心K线图"]}},57243:e=>{e.exports={en:["range","ranges"],zh:["范围"]}},70282:e=>{e.exports={en:["renko"],zh:["砖形图"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],zh:["切换不活动的跳空"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],zh:["使用结算价作为日图收盘价"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],zh:["{value}小数"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/zh_TW.1550.c851f7f3d80aa5a0a934.js b/charting_library/bundles/zh_TW.1550.c851f7f3d80aa5a0a934.js deleted file mode 100644 index bf92be42..00000000 --- a/charting_library/bundles/zh_TW.1550.c851f7f3d80aa5a0a934.js +++ /dev/null @@ -1,6 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{80587:e=>{e.exports={en:["bars"],zh_TW:["根K棒"]}},31882:e=>{e.exports={en:["12-hours"],zh_TW:["12小時"]}},5797:e=>{e.exports={en:["24-hours"],zh_TW:["24小時"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],zh_TW:["K線顏色基於前一收盤價"]}},23739:e=>{e.exports={en:["Canvas"],zh_TW:["版面"]}},24197:e=>{e.exports={en:["Center"],zh_TW:["中心"]}},15153:e=>{e.exports={en:["Chart basic styles"],zh_TW:["圖表基本樣式"]}},45639:e=>{e.exports={en:["Chart values"],zh_TW:["圖表值"]}},84831:e=>{e.exports={en:["Close line"],zh_TW:["收盤價線"]}},74622:e=>{e.exports={en:["Crosshair"],zh_TW:["十字準線"]}},81849:e=>{e.exports={en:["Currency"],zh_TW:["貨幣"]}},3015:e=>{e.exports={en:["Currency and Unit"],zh_TW:["貨幣和單位"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],zh_TW:["調整股息數據"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],zh_TW:["調整合約變更"]}},36620:e=>{e.exports={en:["Alerts"],zh_TW:["快訊"]}},68650:e=>{e.exports={en:["Average close"],zh_TW:["平均收盤價"]}},27567:e=>{e.exports={en:["Bottom"],zh_TW:["底部"]}},3159:e=>{e.exports={en:["Bottom line"],zh_TW:["下邊框線"]}},74406:e=>{e.exports={en:["Body"],zh_TW:["主體"]}},333:e=>{e.exports={en:["Borders"],zh_TW:["邊框"]}},79468:e=>{e.exports={en:["Background"],zh_TW:["背景"]}},10842:e=>{e.exports={en:["Bar change values"],zh_TW:["K棒漲跌值"]}},28975:e=>{e.exports={en:["Base level"],zh_TW:["基準水位"]}},76473:e=>{e.exports={en:["Bid and ask"],zh_TW:["買入價和賣出價"]}},32744:e=>{e.exports={en:["Buttons"],zh_TW:["按鈕"]}},68662:e=>{e.exports={en:["Grid lines"],zh_TW:["網格線"]}},17611:e=>{e.exports={en:["Down bars"],zh_TW:["下跌燭線"]}},23743:e=>{e.exports={en:["Down color"],zh_TW:["下跌顏色"]}},48225:e=>{e.exports={en:["Data modification"],zh_TW:["數據修改"]}},84838:e=>{e.exports={en:["Date format"],zh_TW:["日期格式"]}},42357:e=>{e.exports={en:["Day of week on labels"],zh_TW:["標籤上的星期幾"]}},16564:e=>{e.exports={en:["Default"],zh_TW:["系統預設"]}},78734:e=>{e.exports={en:["Description"],zh_TW:["描述"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],zh_TW:["顯示不活躍區間"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],zh_TW:["電子交易時段背景"]}},69808:e=>{e.exports={en:["Events"],zh_TW:["事件"]}},41129:e=>{e.exports={en:["Fill"],zh_TW:["填充"]}},61112:e=>{e.exports={en:["Fill top area"],zh_TW:["上填充色"]}},73185:e=>{e.exports={en:["Fill bottom area"],zh_TW:["下填充色"]}},3160:e=>{e.exports={en:["Horizontal"],zh_TW:["橫式"]}},61900:e=>{e.exports={en:["Horz only"],zh_TW:["僅水平"]}},14180:e=>{e.exports={en:["High and low"],zh_TW:["高價和低價"]}},56359:e=>{e.exports={en:["High line"],zh_TW:["最高價線"]}},47326:e=>{e.exports={en:["Integer"],zh_TW:["整數"]}},17854:e=>{e.exports={en:["Interval"],zh_TW:["週期"]}},84549:e=>{e.exports={en:["Indicators"],zh_TW:["技術指標"]}},78082:e=>{e.exports={en:["Indicators and financials"],zh_TW:["指標和財務數據"]}},21429:e=>{e.exports={en:["Inputs"],zh_TW:["輸入"]}},25765:e=>{e.exports={en:["Open market status"],zh_TW:["開市狀態"]}},34579:e=>{e.exports={en:["Low line"],zh_TW:["最低價線"]}},14876:e=>{e.exports={en:["Logo"]}},89315:e=>{e.exports={en:["Long Description"],zh_TW:["詳細描述"] -}},72423:e=>{e.exports={en:["Last day change values"],zh_TW:["最後一天變化值"]}},11626:e=>{e.exports={en:["Left"],zh_TW:["左"]}},56982:e=>{e.exports={en:["Lines"],zh_TW:["線條"]}},8249:e=>{e.exports={en:["Money"],zh_TW:["資金"]}},70937:e=>{e.exports={en:["Margins"],zh_TW:["利益率"]}},68833:e=>{e.exports={en:["Middle"],zh_TW:["中間"]}},58589:e=>{e.exports={en:["No overlapping labels"],zh_TW:["無重疊標籤"]}},60798:e=>{e.exports={en:["None"],zh_TW:["沒有任何"]}},51019:e=>{e.exports={en:["Navigation"],zh_TW:["導航"]}},99709:e=>{e.exports={en:["Name"],zh_TW:["名稱"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],zh_TW:["更改週期時,儲存圖表左邊緣位置"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],zh_TW:["坐標模式(A和L)"]}},93968:e=>{e.exports={en:["Scales"],zh_TW:["刻度"]}},90275:e=>{e.exports={en:["Scales and lines"],zh_TW:["比例和線條"]}},30042:e=>{e.exports={en:["Scales placement"],zh_TW:["刻度放置"]}},28715:e=>{e.exports={en:["Status line"],zh_TW:["狀態列"]}},95481:e=>{e.exports={en:["Symbol"],zh_TW:["商品"]}},53263:e=>{e.exports={en:["Pane"],zh_TW:["窗格"]}},82894:e=>{e.exports={en:["Pane separators"],zh_TW:["窗格分隔符號"]}},86235:e=>{e.exports={en:["Percentage"],zh_TW:["百分比"]}},94408:e=>{e.exports={en:["Pips"],zh_TW:["點數"]}},60904:e=>{e.exports={en:["Pre/post market"],zh_TW:["盤前/盤後市場"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],zh_TW:["盤前/盤後市場時段背景"]}},59766:e=>{e.exports={en:["Precision"],zh_TW:["精確度"]}},83811:e=>{e.exports={en:["Previous day close"],zh_TW:["前一天收盤價"]}},35082:e=>{e.exports={en:["Price Scale"],zh_TW:["價格刻度"]}},27632:e=>{e.exports={en:["Price and percentage value"],zh_TW:["價格和百分比值"]}},62142:e=>{e.exports={en:["Price labels & lines"],zh_TW:["價格標籤和價格線"]}},84684:e=>{e.exports={en:["Price source"],zh_TW:["價格來源"]}},73466:e=>{e.exports={en:["Projection up bars"],zh_TW:["預測上漲燭線"]}},77430:e=>{e.exports={en:["Projection candles"],zh_TW:["投影K線"]}},88367:e=>{e.exports={en:["Projection down bars"],zh_TW:["預測下跌燭線"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],zh_TW:["價格刻度上的實際價格(而不是平均K線價格)"]}},50421:e=>{e.exports={en:["Right"],zh_TW:["右"]}},62532:e=>{e.exports={en:["Right Margin"],zh_TW:["右邊距"]}},41571:e=>{e.exports={en:["Watermark"],zh_TW:["浮水印"]}},32163:e=>{e.exports={en:["Wick"],zh_TW:["燭芯"]}},97118:e=>{e.exports={en:["Top"],zh_TW:["頂部"]}},89349:e=>{e.exports={en:["Top line"],zh_TW:["上邊框線"]}},70320:e=>{e.exports={en:["Text"],zh_TW:["文字"]}},25485:e=>{e.exports={en:["Text alignment"],zh_TW:["文字對齊"]}},67781:e=>{e.exports={en:["Text orientation"],zh_TW:["文字方向"]}},20215:e=>{e.exports={en:["Thin bars"],zh_TW:["自動調整K棒寬度"]}},70198:e=>{e.exports={en:["Title"],zh_TW:["標題"]}},29854:e=>{e.exports={en:["Titles"],zh_TW:["標題"]}},5791:e=>{e.exports={en:["Ticker"],zh_TW:["商品代碼"]}},16816:e=>{e.exports={en:["Ticker and description"],zh_TW:["商品和描述"]}},24821:e=>{e.exports={en:["Ticks"]}},93965:e=>{e.exports={en:["Time Scale"],zh_TW:["時間刻度"]}},5591:e=>{e.exports={en:["Time hours format"],zh_TW:["時間小時格式"]}},77073:e=>{e.exports={en:["Timezone"],zh_TW:["時區"]}},76495:e=>{e.exports={en:["Trading"], -zh_TW:["交易"]}},33564:e=>{e.exports={en:["Unit"],zh_TW:["單位"]}},23091:e=>{e.exports={en:["Up color"],zh_TW:["上漲顏色"]}},36957:e=>{e.exports={en:["Up bars"],zh_TW:["上漲燭線"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],zh_TW:["使用結算價做為日圖的收盤價"]}},37644:e=>{e.exports={en:["Volume"],zh_TW:["成交量"]}},51514:e=>{e.exports={en:["Value"],zh_TW:["價格"]}},31218:e=>{e.exports={en:["Value according to scale"],zh_TW:["根據坐標值"]}},60092:e=>{e.exports={en:["Values"],zh_TW:["數值"]}},83594:e=>{e.exports={en:["Vert and horz"],zh_TW:["垂直和水平"]}},8402:e=>{e.exports={en:["Vert only"],zh_TW:["僅垂直"]}},69526:e=>{e.exports={en:["Vertical"],zh_TW:["直式"]}},21105:e=>{e.exports={en:["candle"],zh_TW:["燭線"]}},27068:e=>{e.exports={en:["change HLC bars"],zh_TW:["更改美國線"]}},21201:e=>{e.exports={en:["change HLC bars color"],zh_TW:["變更HLC K線顏色"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],zh_TW:["更改導航按鈕可見性"]}},96227:e=>{e.exports={en:["change open market status visibility"],zh_TW:["更改開盤狀態可見性"]}},43231:e=>{e.exports={en:["change average close price line width"],zh_TW:["改變平均收盤價線的寬度"]}},47026:e=>{e.exports={en:["change average close price line color"],zh_TW:["改變平均收盤價線的顏色"]}},29281:e=>{e.exports={en:["change area fill color"],zh_TW:["更改面積填充顏色"]}},27059:e=>{e.exports={en:["change area line visibility"],zh_TW:["更改區域線可見性"]}},89346:e=>{e.exports={en:["change area line width"],zh_TW:["更改面積線條寬度"]}},29605:e=>{e.exports={en:["change area line color"],zh_TW:["更改面積線條顏色"]}},56864:e=>{e.exports={en:["change area line style"],zh_TW:["變更區域線條樣式"]}},4640:e=>{e.exports={en:["change area price source"],zh_TW:["更改面積價格來源"]}},98407:e=>{e.exports={en:["change ask line color"],zh_TW:["更改ask線顏色"]}},42190:e=>{e.exports={en:["change base level"],zh_TW:["更改基礎水平"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],zh_TW:["更改基準線底線顏色"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],zh_TW:["變更基線底線樣式"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],zh_TW:["更改基準線底線寬度"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],zh_TW:["更改基準線填充底部區域顏色"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],zh_TW:["更改基準線填充頂部區域顏色"]}},68609:e=>{e.exports={en:["change baseline price source"],zh_TW:["更改基準線價格來源"]}},69044:e=>{e.exports={en:["change baseline top line color"],zh_TW:["更改基準線頂線顏色"]}},4425:e=>{e.exports={en:["change baseline top line style"],zh_TW:["變更基線頂線樣式"]}},68197:e=>{e.exports={en:["change baseline top line width"],zh_TW:["更改基準線頂線寬度"]}},33464:e=>{e.exports={en:["change bar up color"],zh_TW:["更改上漲K線顏色"]}},27426:e=>{e.exports={en:["change bar change visibility"],zh_TW:["更改K線漲跌可見性"]}},59622:e=>{e.exports={en:["change bar down color"],zh_TW:["更改下跌K線顏色"]}},17919:e=>{e.exports={en:["change bid line color"],zh_TW:["更改bid線顏色"]}},32094:e=>{e.exports={en:["change bottom margin"],zh_TW:["更改下邊距"]}},63119:e=>{e.exports={en:["change currency and unit labels visibility"],zh_TW:["更改貨幣和單位標籤的可見性"]}},64003:e=>{e.exports={en:["change currency label visibility"],zh_TW:["更改貨幣標籤可見性"]}},42803:e=>{ -e.exports={en:["change chart background color"],zh_TW:["更改圖表背景顏色"]}},41382:e=>{e.exports={en:["change chart background type"],zh_TW:["更改圖表背景類型"]}},79637:e=>{e.exports={en:["change chart values visibility"],zh_TW:["更改圖表數值可見性"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],zh_TW:["根據前一個收盤價更改K線顏色"]}},88324:e=>{e.exports={en:["change column up color"],zh_TW:["更改向上列的顏色"]}},93890:e=>{e.exports={en:["change column down color"],zh_TW:["更改向下列的顏色"]}},4727:e=>{e.exports={en:["change column price source"],zh_TW:["更改列價格來源"]}},50544:e=>{e.exports={en:["change crosshair width"],zh_TW:["更改十字準線寬度"]}},92885:e=>{e.exports={en:["change crosshair color"],zh_TW:["更改十字準線顏色"]}},68418:e=>{e.exports={en:["change crosshair style"],zh_TW:["更改十字準線樣式"]}},43109:e=>{e.exports={en:["change date format"],zh_TW:["更改日期格式"]}},30418:e=>{e.exports={en:["change day of week on labels"],zh_TW:["更改標籤上的星期幾"]}},82063:e=>{e.exports={en:["change decimal places"],zh_TW:["更改小數位"]}},45397:e=>{e.exports={en:["change extended hours color"],zh_TW:["更改延長時段顏色"]}},47393:e=>{e.exports={en:["change electronic trading hours"],zh_TW:["更改電子交易時段"]}},73844:e=>{e.exports={en:["change grid lines visibility"],zh_TW:["更改網格線可見性"]}},61407:e=>{e.exports={en:["change high and low price line color"],zh_TW:["改變高價和低價線的顏色"]}},39581:e=>{e.exports={en:["change high and low price line width"],zh_TW:["改變高價和低價線的寬度"]}},6026:e=>{e.exports={en:["change high-low body color"],zh_TW:["更改高低圖實體顏色"]}},73021:e=>{e.exports={en:["change high-low body visibility"],zh_TW:["更改高低圖實體可見性"]}},46844:e=>{e.exports={en:["change high-low border color"],zh_TW:["更改高低圖邊框顏色"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],zh_TW:["更改高低圖邊框可見性"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],zh_TW:["更改高低圖標籤可見性"]}},56961:e=>{e.exports={en:["change high-low labels color"],zh_TW:["更改高低圖標籤顏色"]}},21133:e=>{e.exports={en:["change horz grid lines color"],zh_TW:["更改水平網格線顏色"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],zh_TW:["更改指標標題可見性"]}},49583:e=>{e.exports={en:["change indicator values visibility"],zh_TW:["更改指標值可見性"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],zh_TW:["變更指標輸入可見性"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],zh_TW:["更改指標和財務數據名稱標籤可見性"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],zh_TW:["更改指標和財務數據值標籤可見性"]}},451:e=>{e.exports={en:["change interval watermark visibility"],zh_TW:["更改時間週期浮水印可見性"]}},66307:e=>{e.exports={en:["change last day change visibility"],zh_TW:["更改最後一天變化可見性"]}},91873:e=>{e.exports={en:["change legend background transparency"],zh_TW:["更改圖例背景透明度"]}},14246:e=>{e.exports={en:["change legend background visibility"],zh_TW:["更改圖例背景可見性"]}},88640:e=>{e.exports={en:["change line color"],zh_TW:["更改線條顏色"]}},28818:e=>{e.exports={en:["change line style"],zh_TW:["改變線條樣式"]}},41837:e=>{e.exports={en:["change line price source"],zh_TW:["更改線條價格來源"]}},48339:e=>{e.exports={en:["change line width"],zh_TW:["更改線條寬度"]}},18378:e=>{ -e.exports={en:["change pane buttons visibility"],zh_TW:["更改窗格按鈕可見性"]}},52203:e=>{e.exports={en:["change pane separators color"],zh_TW:["改變窗格分隔符號顏色"]}},38730:e=>{e.exports={en:["change post market color"],zh_TW:["更改盤後市場顏色"]}},28075:e=>{e.exports={en:["change post market line color"],zh_TW:["更改盤後市場線條顏色"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],zh_TW:["更改盤前/盤後市場價格線的可見性"]}},44371:e=>{e.exports={en:["change pre market color"],zh_TW:["更改盤前市場顏色"]}},96114:e=>{e.exports={en:["change pre market line color"],zh_TW:["更改盤前市場線條顏色"]}},69814:e=>{e.exports={en:["change previous close price line color"],zh_TW:["更改前一根收盤價線顏色"]}},13660:e=>{e.exports={en:["change previous close price line width"],zh_TW:["更改前一根收盤價線寬度"]}},87861:e=>{e.exports={en:["change price line color"],zh_TW:["更改價格線顏色"]}},29353:e=>{e.exports={en:["change price line width"],zh_TW:["更改價格線寬度"]}},16241:e=>{e.exports={en:["change range bars style"],zh_TW:["更改範圍K線樣式"]}},65821:e=>{e.exports={en:["change range thin bars"],zh_TW:["更改範圍K線寬度"]}},75487:e=>{e.exports={en:["change renko wick down color"],zh_TW:["更改磚形圖下影線顏色"]}},92277:e=>{e.exports={en:["change renko wick up color"],zh_TW:["更改磚形圖上影線顏色"]}},79604:e=>{e.exports={en:["change renko wick visibility"],zh_TW:["更改磚形圖影線可見性"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],zh_TW:["更改重播浮水印可見性"]}},82946:e=>{e.exports={en:["change right margin"],zh_TW:["更改右邊距"]}},79545:e=>{e.exports={en:["change right margin percentage"],zh_TW:["更改右邊距百分比"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],zh_TW:["更改商品標籤浮水印可見性"]}},78995:e=>{e.exports={en:["change symbol watermark color"],zh_TW:["更改商品浮水印顏色"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],zh_TW:["更改商品浮水印可見性"]}},88167:e=>{e.exports={en:["change symbol description visibility"],zh_TW:["更改商品描述可見性"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],zh_TW:["更改商品描述浮水印可見性"]}},12050:e=>{e.exports={en:["change symbol field visibility"],zh_TW:["更改商品欄位可見性"]}},46066:e=>{e.exports={en:["change symbol last value mode"],zh_TW:["更改商品最新值模式"]}},902:e=>{e.exports={en:["change symbol legend format"],zh_TW:["更改商品圖例格式"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],zh_TW:["更改週期時,變更儲存圖表左邊緣位置"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],zh_TW:["更改坐標模式按鈕的可見性"]}},76131:e=>{e.exports={en:["change scales text color"],zh_TW:["更改刻度文字顏色"]}},27792:e=>{e.exports={en:["change scales font size"],zh_TW:["更改刻度字體大小"]}},94997:e=>{e.exports={en:["change scales lines color"],zh_TW:["更改刻度線條顏色"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],zh_TW:["更改交易時段分隔可見性"]}},28175:e=>{e.exports={en:["change sessions breaks width"],zh_TW:["更改交易時段分隔寬度"]}},33895:e=>{e.exports={en:["change sessions breaks color"],zh_TW:["更改交易時段分隔顏色"]}},21641:e=>{e.exports={en:["change sessions breaks style"],zh_TW:["更改交易時段分隔樣式"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"], -zh_TW:["更改價格坐標上的實際價格顯示(而不是Heiken-Ashi價格)"]}},60834:e=>{e.exports={en:["change thin bars"],zh_TW:["更改K線寬度"]}},39754:e=>{e.exports={en:["change time hours format"],zh_TW:["更改時間格式"]}},74883:e=>{e.exports={en:["change top margin"],zh_TW:["更改上邊距"]}},51250:e=>{e.exports={en:["change unit label visibility"],zh_TW:["更改單位標籤可見性"]}},71805:e=>{e.exports={en:["change vert grid lines color"],zh_TW:["更改垂直網格線顏色"]}},96201:e=>{e.exports={en:["change volume values visibility"],zh_TW:["更改成交量值可見性"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],zh_TW:["更改{candleType}上漲邊框顏色"]}},36697:e=>{e.exports={en:["change {candleType} up color"],zh_TW:["更改{candleType}上漲顏色"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],zh_TW:["更改{candleType}下影線顏色"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],zh_TW:["更改{candleType}上影線顏色"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],zh_TW:["更改{candleType}影線可見性"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],zh_TW:["更改{candleType}實體可見性"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],zh_TW:["更改{candleType}邊框可見性"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],zh_TW:["更改{candleType}下跌邊框顏色"]}},64571:e=>{e.exports={en:["change {candleType} down color"],zh_TW:["更改{candleType}下跌顏色"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],zh_TW:["更改{chartType}邊框下跌顏色"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],zh_TW:["更改{chartType}邊框上漲顏色"]}},5012:e=>{e.exports={en:["change {chartType} down color"],zh_TW:["更改{chartType}下跌顏色"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],zh_TW:["更改{chartType}投影邊框上漲顏色"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],zh_TW:["更改{chartType}投影K線下跌顏色"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],zh_TW:["更改{chartType}投影K線上漲顏色"]}},6970:e=>{e.exports={en:["change {chartType} up color"],zh_TW:["更改{chartType}上漲顏色"]}},66110:e=>{e.exports={en:["change {inputName} property"],zh_TW:["更改{inputName}屬性"]}},18077:e=>{e.exports={en:["adjust data for dividends"],zh_TW:["調整股息數據"]}},1433:e=>{e.exports={en:["adjust for contract changes"],zh_TW:["調整合約變更"]}},92598:e=>{e.exports={en:["hollow candles"],zh_TW:["空心K線"]}},57243:e=>{e.exports={en:["range","ranges"],zh_TW:["範圍"]}},70282:e=>{e.exports={en:["renko"],zh_TW:["磚形圖"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],zh_TW:["切換不活躍區間"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],zh_TW:["使用結算價做為日圖的收盤價"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],zh_TW:["{value}小數"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/zh_TW.5418.a83f813002bd38e42f5c.js b/charting_library/bundles/zh_TW.5418.a83f813002bd38e42f5c.js new file mode 100644 index 00000000..98cd438a --- /dev/null +++ b/charting_library/bundles/zh_TW.5418.a83f813002bd38e42f5c.js @@ -0,0 +1,6 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5418],{80587:e=>{e.exports={en:["bars"],zh_TW:["根K棒"]}},31882:e=>{e.exports={en:["12-hours"],zh_TW:["12小時"]}},5797:e=>{e.exports={en:["24-hours"],zh_TW:["24小時"]}},23111:e=>{e.exports={en:["Color bars based on previous close"],zh_TW:["K線顏色基於前一收盤價"]}},23739:e=>{e.exports={en:["Canvas"],zh_TW:["版面"]}},24197:e=>{e.exports={en:["Center"],zh_TW:["中心"]}},15153:e=>{e.exports={en:["Chart basic styles"],zh_TW:["圖表基本樣式"]}},45639:e=>{e.exports={en:["Chart values"],zh_TW:["圖表值"]}},84831:e=>{e.exports={en:["Close line"],zh_TW:["收盤價線"]}},74622:e=>{e.exports={en:["Crosshair"],zh_TW:["十字準線"]}},81849:e=>{e.exports={en:["Currency"],zh_TW:["貨幣"]}},3015:e=>{e.exports={en:["Currency and Unit"],zh_TW:["貨幣和單位"]}},93020:e=>{e.exports={en:["Adjust data for dividends"],zh_TW:["調整股息數據"]}},68921:e=>{e.exports={en:["Adjust for contract changes"],zh_TW:["調整合約變更"]}},36620:e=>{e.exports={en:["Alerts"],zh_TW:["快訊"]}},68650:e=>{e.exports={en:["Average close"],zh_TW:["平均收盤價"]}},27567:e=>{e.exports={en:["Bottom"],zh_TW:["底部"]}},3159:e=>{e.exports={en:["Bottom line"],zh_TW:["下邊框線"]}},74406:e=>{e.exports={en:["Body"],zh_TW:["主體"]}},333:e=>{e.exports={en:["Borders"],zh_TW:["邊框"]}},79468:e=>{e.exports={en:["Background"],zh_TW:["背景"]}},10842:e=>{e.exports={en:["Bar change values"],zh_TW:["K棒漲跌值"]}},70817:e=>{e.exports={en:["Bar change color based on value"]}},28975:e=>{e.exports={en:["Base level"],zh_TW:["基準水位"]}},76473:e=>{e.exports={en:["Bid and ask"],zh_TW:["買入價和賣出價"]}},32744:e=>{e.exports={en:["Buttons"],zh_TW:["按鈕"]}},68662:e=>{e.exports={en:["Grid lines"],zh_TW:["網格線"]}},17611:e=>{e.exports={en:["Down bars"],zh_TW:["下跌燭線"]}},23743:e=>{e.exports={en:["Down color"],zh_TW:["下跌顏色"]}},48225:e=>{e.exports={en:["Data modification"],zh_TW:["數據修改"]}},84838:e=>{e.exports={en:["Date format"],zh_TW:["日期格式"]}},42357:e=>{e.exports={en:["Day of week on labels"],zh_TW:["標籤上的星期幾"]}},16564:e=>{e.exports={en:["Default"],zh_TW:["系統預設"]}},78734:e=>{e.exports={en:["Description"],zh_TW:["描述"]}},67036:e=>{e.exports={en:["Display inactivity gaps"],zh_TW:["顯示不活躍區間"]}},59777:e=>{e.exports={en:["Electronic trading hours background"],zh_TW:["電子交易時段背景"]}},69808:e=>{e.exports={en:["Events"],zh_TW:["事件"]}},41129:e=>{e.exports={en:["Fill"],zh_TW:["填充"]}},61112:e=>{e.exports={en:["Fill top area"],zh_TW:["上填充色"]}},73185:e=>{e.exports={en:["Fill bottom area"],zh_TW:["下填充色"]}},3160:e=>{e.exports={en:["Horizontal"],zh_TW:["橫式"]}},61900:e=>{e.exports={en:["Horz only"],zh_TW:["僅水平"]}},14180:e=>{e.exports={en:["High and low"],zh_TW:["高價和低價"]}},56359:e=>{e.exports={en:["High line"],zh_TW:["最高價線"]}},47326:e=>{e.exports={en:["Integer"],zh_TW:["整數"]}},17854:e=>{e.exports={en:["Interval"],zh_TW:["週期"]}},84549:e=>{e.exports={en:["Indicators"],zh_TW:["技術指標"]}},78082:e=>{e.exports={en:["Indicators and financials"],zh_TW:["指標和財務數據"]}},21429:e=>{e.exports={en:["Inputs"],zh_TW:["輸入"]}},25765:e=>{e.exports={en:["Open market status"],zh_TW:["開市狀態"]}},34579:e=>{e.exports={en:["Low line"],zh_TW:["最低價線"]}},14876:e=>{e.exports={en:["Logo"] +}},89315:e=>{e.exports={en:["Long Description"],zh_TW:["詳細描述"]}},72423:e=>{e.exports={en:["Last day change values"],zh_TW:["最後一天變化值"]}},11626:e=>{e.exports={en:["Left"],zh_TW:["左"]}},56982:e=>{e.exports={en:["Lines"],zh_TW:["線條"]}},8249:e=>{e.exports={en:["Money"],zh_TW:["資金"]}},70937:e=>{e.exports={en:["Margins"],zh_TW:["利益率"]}},68833:e=>{e.exports={en:["Middle"],zh_TW:["中間"]}},58589:e=>{e.exports={en:["No overlapping labels"],zh_TW:["無重疊標籤"]}},60798:e=>{e.exports={en:["None"],zh_TW:["沒有任何"]}},51019:e=>{e.exports={en:["Navigation"],zh_TW:["導航"]}},99709:e=>{e.exports={en:["Name"],zh_TW:["名稱"]}},8852:e=>{e.exports={en:["Save chart left edge position when changing interval"],zh_TW:["更改週期時,儲存圖表左邊緣位置"]}},26204:e=>{e.exports={en:["Scale modes (A and L)"],zh_TW:["坐標模式(A和L)"]}},93968:e=>{e.exports={en:["Scales"],zh_TW:["刻度"]}},90275:e=>{e.exports={en:["Scales and lines"],zh_TW:["比例和線條"]}},30042:e=>{e.exports={en:["Scales placement"],zh_TW:["刻度放置"]}},28715:e=>{e.exports={en:["Status line"],zh_TW:["狀態列"]}},95481:e=>{e.exports={en:["Symbol"],zh_TW:["商品"]}},53263:e=>{e.exports={en:["Pane"],zh_TW:["窗格"]}},82894:e=>{e.exports={en:["Pane separators"],zh_TW:["窗格分隔符號"]}},86235:e=>{e.exports={en:["Percentage"],zh_TW:["百分比"]}},94408:e=>{e.exports={en:["Pips"],zh_TW:["點數"]}},60904:e=>{e.exports={en:["Pre/post market"],zh_TW:["盤前/盤後市場"]}},88327:e=>{e.exports={en:["Pre/post market hours background"],zh_TW:["盤前/盤後市場時段背景"]}},59766:e=>{e.exports={en:["Precision"],zh_TW:["精確度"]}},83811:e=>{e.exports={en:["Previous day close"],zh_TW:["前一天收盤價"]}},35082:e=>{e.exports={en:["Price Scale"],zh_TW:["價格刻度"]}},27632:e=>{e.exports={en:["Price and percentage value"],zh_TW:["價格和百分比值"]}},62142:e=>{e.exports={en:["Price labels & lines"],zh_TW:["價格標籤和價格線"]}},84684:e=>{e.exports={en:["Price source"],zh_TW:["價格來源"]}},73466:e=>{e.exports={en:["Projection up bars"],zh_TW:["預測上漲燭線"]}},77430:e=>{e.exports={en:["Projection candles"],zh_TW:["投影K線"]}},88367:e=>{e.exports={en:["Projection down bars"],zh_TW:["預測下跌燭線"]}},6160:e=>{e.exports={en:["Real prices on price scale (instead of Heikin-Ashi price)"],zh_TW:["價格刻度上的實際價格(而不是平均K線價格)"]}},50421:e=>{e.exports={en:["Right"],zh_TW:["右"]}},62532:e=>{e.exports={en:["Right Margin"],zh_TW:["右邊距"]}},41571:e=>{e.exports={en:["Watermark"],zh_TW:["浮水印"]}},32163:e=>{e.exports={en:["Wick"],zh_TW:["燭芯"]}},97118:e=>{e.exports={en:["Top"],zh_TW:["頂部"]}},89349:e=>{e.exports={en:["Top line"],zh_TW:["上邊框線"]}},70320:e=>{e.exports={en:["Text"],zh_TW:["文字"]}},25485:e=>{e.exports={en:["Text alignment"],zh_TW:["文字對齊"]}},67781:e=>{e.exports={en:["Text orientation"],zh_TW:["文字方向"]}},20215:e=>{e.exports={en:["Thin bars"],zh_TW:["自動調整K棒寬度"]}},70198:e=>{e.exports={en:["Title"],zh_TW:["標題"]}},29854:e=>{e.exports={en:["Titles"],zh_TW:["標題"]}},5791:e=>{e.exports={en:["Ticker"],zh_TW:["商品代碼"]}},16816:e=>{e.exports={en:["Ticker and description"],zh_TW:["商品和描述"]}},24821:e=>{e.exports={en:["Ticks"]}},93965:e=>{e.exports={en:["Time Scale"],zh_TW:["時間刻度"]}},5591:e=>{e.exports={en:["Time hours format"],zh_TW:["時間小時格式"]}},77073:e=>{e.exports={en:["Timezone"], +zh_TW:["時區"]}},76495:e=>{e.exports={en:["Trading"],zh_TW:["交易"]}},33564:e=>{e.exports={en:["Unit"],zh_TW:["單位"]}},23091:e=>{e.exports={en:["Up color"],zh_TW:["上漲顏色"]}},36957:e=>{e.exports={en:["Up bars"],zh_TW:["上漲燭線"]}},49545:e=>{e.exports={en:["Use settlement as close on daily interval"],zh_TW:["使用結算價做為日圖的收盤價"]}},37644:e=>{e.exports={en:["Volume"],zh_TW:["成交量"]}},51514:e=>{e.exports={en:["Value"],zh_TW:["價格"]}},31218:e=>{e.exports={en:["Value according to scale"],zh_TW:["根據坐標值"]}},60092:e=>{e.exports={en:["Values"],zh_TW:["數值"]}},83594:e=>{e.exports={en:["Vert and horz"],zh_TW:["垂直和水平"]}},8402:e=>{e.exports={en:["Vert only"],zh_TW:["僅垂直"]}},69526:e=>{e.exports={en:["Vertical"],zh_TW:["直式"]}},21105:e=>{e.exports={en:["candle"],zh_TW:["燭線"]}},27068:e=>{e.exports={en:["change HLC bars"],zh_TW:["更改美國線"]}},21201:e=>{e.exports={en:["change HLC bars color"],zh_TW:["變更HLC K線顏色"]}},3311:e=>{e.exports={en:["change navigation buttons visibility"],zh_TW:["更改導航按鈕可見性"]}},96227:e=>{e.exports={en:["change open market status visibility"],zh_TW:["更改開盤狀態可見性"]}},43231:e=>{e.exports={en:["change average close price line width"],zh_TW:["改變平均收盤價線的寬度"]}},47026:e=>{e.exports={en:["change average close price line color"],zh_TW:["改變平均收盤價線的顏色"]}},29281:e=>{e.exports={en:["change area fill color"],zh_TW:["更改面積填充顏色"]}},27059:e=>{e.exports={en:["change area line visibility"],zh_TW:["更改區域線可見性"]}},89346:e=>{e.exports={en:["change area line width"],zh_TW:["更改面積線條寬度"]}},29605:e=>{e.exports={en:["change area line color"],zh_TW:["更改面積線條顏色"]}},56864:e=>{e.exports={en:["change area line style"],zh_TW:["變更區域線條樣式"]}},4640:e=>{e.exports={en:["change area price source"],zh_TW:["更改面積價格來源"]}},98407:e=>{e.exports={en:["change ask line color"],zh_TW:["更改ask線顏色"]}},42190:e=>{e.exports={en:["change base level"],zh_TW:["更改基礎水平"]}},71785:e=>{e.exports={en:["change baseline bottom line color"],zh_TW:["更改基準線底線顏色"]}},85684:e=>{e.exports={en:["change baseline bottom line style"],zh_TW:["變更基線底線樣式"]}},56175:e=>{e.exports={en:["change baseline bottom line width"],zh_TW:["更改基準線底線寬度"]}},97216:e=>{e.exports={en:["change baseline fill bottom area color"],zh_TW:["更改基準線填充底部區域顏色"]}},92873:e=>{e.exports={en:["change baseline fill top area color"],zh_TW:["更改基準線填充頂部區域顏色"]}},68609:e=>{e.exports={en:["change baseline price source"],zh_TW:["更改基準線價格來源"]}},69044:e=>{e.exports={en:["change baseline top line color"],zh_TW:["更改基準線頂線顏色"]}},4425:e=>{e.exports={en:["change baseline top line style"],zh_TW:["變更基線頂線樣式"]}},68197:e=>{e.exports={en:["change baseline top line width"],zh_TW:["更改基準線頂線寬度"]}},33464:e=>{e.exports={en:["change bar up color"],zh_TW:["更改上漲K線顏色"]}},14201:e=>{e.exports={en:["change bar change down color"]}},30196:e=>{e.exports={en:["change bar change up color"]}},27426:e=>{e.exports={en:["change bar change visibility"],zh_TW:["更改K線漲跌可見性"]}},59622:e=>{e.exports={en:["change bar down color"],zh_TW:["更改下跌K線顏色"]}},17919:e=>{e.exports={en:["change bid line color"],zh_TW:["更改bid線顏色"]}},32094:e=>{e.exports={en:["change bottom margin"],zh_TW:["更改下邊距"]}},63119:e=>{e.exports={ +en:["change currency and unit labels visibility"],zh_TW:["更改貨幣和單位標籤的可見性"]}},64003:e=>{e.exports={en:["change currency label visibility"],zh_TW:["更改貨幣標籤可見性"]}},42803:e=>{e.exports={en:["change chart background color"],zh_TW:["更改圖表背景顏色"]}},41382:e=>{e.exports={en:["change chart background type"],zh_TW:["更改圖表背景類型"]}},79637:e=>{e.exports={en:["change chart values visibility"],zh_TW:["更改圖表數值可見性"]}},43090:e=>{e.exports={en:["change color bars based on previous close"],zh_TW:["根據前一個收盤價更改K線顏色"]}},88324:e=>{e.exports={en:["change column up color"],zh_TW:["更改向上列的顏色"]}},93890:e=>{e.exports={en:["change column down color"],zh_TW:["更改向下列的顏色"]}},4727:e=>{e.exports={en:["change column price source"],zh_TW:["更改列價格來源"]}},50544:e=>{e.exports={en:["change crosshair width"],zh_TW:["更改十字準線寬度"]}},92885:e=>{e.exports={en:["change crosshair color"],zh_TW:["更改十字準線顏色"]}},68418:e=>{e.exports={en:["change crosshair style"],zh_TW:["更改十字準線樣式"]}},43109:e=>{e.exports={en:["change date format"],zh_TW:["更改日期格式"]}},30418:e=>{e.exports={en:["change day of week on labels"],zh_TW:["更改標籤上的星期幾"]}},82063:e=>{e.exports={en:["change decimal places"],zh_TW:["更改小數位"]}},45397:e=>{e.exports={en:["change extended hours color"],zh_TW:["更改延長時段顏色"]}},47393:e=>{e.exports={en:["change electronic trading hours"],zh_TW:["更改電子交易時段"]}},73844:e=>{e.exports={en:["change grid lines visibility"],zh_TW:["更改網格線可見性"]}},61407:e=>{e.exports={en:["change high and low price line color"],zh_TW:["改變高價和低價線的顏色"]}},39581:e=>{e.exports={en:["change high and low price line width"],zh_TW:["改變高價和低價線的寬度"]}},6026:e=>{e.exports={en:["change high-low body color"],zh_TW:["更改高低圖實體顏色"]}},73021:e=>{e.exports={en:["change high-low body visibility"],zh_TW:["更改高低圖實體可見性"]}},46844:e=>{e.exports={en:["change high-low border color"],zh_TW:["更改高低圖邊框顏色"]}},15801:e=>{e.exports={en:["change high-low borders visibility"],zh_TW:["更改高低圖邊框可見性"]}},72399:e=>{e.exports={en:["change high-low labels visibility"],zh_TW:["更改高低圖標籤可見性"]}},56961:e=>{e.exports={en:["change high-low labels color"],zh_TW:["更改高低圖標籤顏色"]}},21133:e=>{e.exports={en:["change horz grid lines color"],zh_TW:["更改水平網格線顏色"]}},63050:e=>{e.exports={en:["change indicator titles visibility"],zh_TW:["更改指標標題可見性"]}},49583:e=>{e.exports={en:["change indicator values visibility"],zh_TW:["更改指標值可見性"]}},75663:e=>{e.exports={en:["change indicator inputs visibility"],zh_TW:["變更指標輸入可見性"]}},35111:e=>{e.exports={en:["change indicators and financials name labels visibility"],zh_TW:["更改指標和財務數據名稱標籤可見性"]}},71161:e=>{e.exports={en:["change indicators and financials value labels visibility"],zh_TW:["更改指標和財務數據值標籤可見性"]}},451:e=>{e.exports={en:["change interval watermark visibility"],zh_TW:["更改時間週期浮水印可見性"]}},66307:e=>{e.exports={en:["change last day change visibility"],zh_TW:["更改最後一天變化可見性"]}},91873:e=>{e.exports={en:["change legend background transparency"],zh_TW:["更改圖例背景透明度"]}},14246:e=>{e.exports={en:["change legend background visibility"],zh_TW:["更改圖例背景可見性"]}},88640:e=>{e.exports={en:["change line color"],zh_TW:["更改線條顏色"]}},28818:e=>{e.exports={en:["change line style"], +zh_TW:["改變線條樣式"]}},41837:e=>{e.exports={en:["change line price source"],zh_TW:["更改線條價格來源"]}},48339:e=>{e.exports={en:["change line width"],zh_TW:["更改線條寬度"]}},18378:e=>{e.exports={en:["change pane buttons visibility"],zh_TW:["更改窗格按鈕可見性"]}},52203:e=>{e.exports={en:["change pane separators color"],zh_TW:["改變窗格分隔符號顏色"]}},38730:e=>{e.exports={en:["change post market color"],zh_TW:["更改盤後市場顏色"]}},28075:e=>{e.exports={en:["change post market line color"],zh_TW:["更改盤後市場線條顏色"]}},91978:e=>{e.exports={en:["change pre/post market price lines visibility"],zh_TW:["更改盤前/盤後市場價格線的可見性"]}},44371:e=>{e.exports={en:["change pre market color"],zh_TW:["更改盤前市場顏色"]}},96114:e=>{e.exports={en:["change pre market line color"],zh_TW:["更改盤前市場線條顏色"]}},69814:e=>{e.exports={en:["change previous close price line color"],zh_TW:["更改前一根收盤價線顏色"]}},13660:e=>{e.exports={en:["change previous close price line width"],zh_TW:["更改前一根收盤價線寬度"]}},87861:e=>{e.exports={en:["change price line color"],zh_TW:["更改價格線顏色"]}},29353:e=>{e.exports={en:["change price line width"],zh_TW:["更改價格線寬度"]}},16241:e=>{e.exports={en:["change range bars style"],zh_TW:["更改範圍K線樣式"]}},65821:e=>{e.exports={en:["change range thin bars"],zh_TW:["更改範圍K線寬度"]}},75487:e=>{e.exports={en:["change renko wick down color"],zh_TW:["更改磚形圖下影線顏色"]}},92277:e=>{e.exports={en:["change renko wick up color"],zh_TW:["更改磚形圖上影線顏色"]}},79604:e=>{e.exports={en:["change renko wick visibility"],zh_TW:["更改磚形圖影線可見性"]}},66021:e=>{e.exports={en:["change replay watermark visibility"],zh_TW:["更改重播浮水印可見性"]}},82946:e=>{e.exports={en:["change right margin"],zh_TW:["更改右邊距"]}},79545:e=>{e.exports={en:["change right margin percentage"],zh_TW:["更改右邊距百分比"]}},18099:e=>{e.exports={en:["change symbol tiker watermark visibility"],zh_TW:["更改商品標籤浮水印可見性"]}},78995:e=>{e.exports={en:["change symbol watermark color"],zh_TW:["更改商品浮水印顏色"]}},73227:e=>{e.exports={en:["change symbol watermark visibility"],zh_TW:["更改商品浮水印可見性"]}},88167:e=>{e.exports={en:["change symbol description visibility"],zh_TW:["更改商品描述可見性"]}},65838:e=>{e.exports={en:["change symbol description watermark visibility"],zh_TW:["更改商品描述浮水印可見性"]}},12050:e=>{e.exports={en:["change symbol field visibility"],zh_TW:["更改商品欄位可見性"]}},46066:e=>{e.exports={en:["change symbol last value mode"],zh_TW:["更改商品最新值模式"]}},902:e=>{e.exports={en:["change symbol legend format"],zh_TW:["更改商品圖例格式"]}},77408:e=>{e.exports={en:["change save chart left edge position when changing interval"],zh_TW:["更改週期時,變更儲存圖表左邊緣位置"]}},69023:e=>{e.exports={en:["change scale modes buttons visibility"],zh_TW:["更改坐標模式按鈕的可見性"]}},76131:e=>{e.exports={en:["change scales text color"],zh_TW:["更改刻度文字顏色"]}},27792:e=>{e.exports={en:["change scales font size"],zh_TW:["更改刻度字體大小"]}},94997:e=>{e.exports={en:["change scales lines color"],zh_TW:["更改刻度線條顏色"]}},60067:e=>{e.exports={en:["change sessions breaks visibility"],zh_TW:["更改交易時段分隔可見性"]}},28175:e=>{e.exports={en:["change sessions breaks width"],zh_TW:["更改交易時段分隔寬度"]}},33895:e=>{e.exports={en:["change sessions breaks color"],zh_TW:["更改交易時段分隔顏色"]}},21641:e=>{e.exports={ +en:["change sessions breaks style"],zh_TW:["更改交易時段分隔樣式"]}},16660:e=>{e.exports={en:["change the display of real prices on price scale (instead of Heiken-Ashi price)"],zh_TW:["更改價格坐標上的實際價格顯示(而不是Heiken-Ashi價格)"]}},60834:e=>{e.exports={en:["change thin bars"],zh_TW:["更改K線寬度"]}},39754:e=>{e.exports={en:["change time hours format"],zh_TW:["更改時間格式"]}},74883:e=>{e.exports={en:["change top margin"],zh_TW:["更改上邊距"]}},51250:e=>{e.exports={en:["change unit label visibility"],zh_TW:["更改單位標籤可見性"]}},28142:e=>{e.exports={en:["change use custom bar change colors"]}},71805:e=>{e.exports={en:["change vert grid lines color"],zh_TW:["更改垂直網格線顏色"]}},96201:e=>{e.exports={en:["change volume values visibility"],zh_TW:["更改成交量值可見性"]}},17214:e=>{e.exports={en:["change {candleType} up border color"],zh_TW:["更改{candleType}上漲邊框顏色"]}},36697:e=>{e.exports={en:["change {candleType} up color"],zh_TW:["更改{candleType}上漲顏色"]}},48091:e=>{e.exports={en:["change {candleType} wick down color"],zh_TW:["更改{candleType}下影線顏色"]}},97546:e=>{e.exports={en:["change {candleType} wick up color"],zh_TW:["更改{candleType}上影線顏色"]}},94750:e=>{e.exports={en:["change {candleType} wick visibility"],zh_TW:["更改{candleType}影線可見性"]}},60608:e=>{e.exports={en:["change {candleType} body visibility"],zh_TW:["更改{candleType}實體可見性"]}},11114:e=>{e.exports={en:["change {candleType} border visibility"],zh_TW:["更改{candleType}邊框可見性"]}},20291:e=>{e.exports={en:["change {candleType} down border color"],zh_TW:["更改{candleType}下跌邊框顏色"]}},64571:e=>{e.exports={en:["change {candleType} down color"],zh_TW:["更改{candleType}下跌顏色"]}},23053:e=>{e.exports={en:["change {chartType} border bar down color"],zh_TW:["更改{chartType}邊框下跌顏色"]}},28394:e=>{e.exports={en:["change {chartType} border bar up color"],zh_TW:["更改{chartType}邊框上漲顏色"]}},5012:e=>{e.exports={en:["change {chartType} down color"],zh_TW:["更改{chartType}下跌顏色"]}},42826:e=>{e.exports={en:["change {chartType} projection border bar up color"],zh_TW:["更改{chartType}投影邊框上漲顏色"]}},72545:e=>{e.exports={en:["change {chartType} projection bar down color"],zh_TW:["更改{chartType}投影K線下跌顏色"]}},85032:e=>{e.exports={en:["change {chartType} projection bar up color"],zh_TW:["更改{chartType}投影K線上漲顏色"]}},6970:e=>{e.exports={en:["change {chartType} up color"],zh_TW:["更改{chartType}上漲顏色"]}},66110:e=>{e.exports={en:["change {inputName} property"],zh_TW:["更改{inputName}屬性"]}},18077:e=>{e.exports={en:["adjust data for dividends"],zh_TW:["調整股息數據"]}},1433:e=>{e.exports={en:["adjust for contract changes"],zh_TW:["調整合約變更"]}},92598:e=>{e.exports={en:["hollow candles"],zh_TW:["空心K線"]}},57243:e=>{e.exports={en:["range","ranges"],zh_TW:["範圍"]}},70282:e=>{e.exports={en:["renko"],zh_TW:["磚形圖"]}},18917:e=>{e.exports={en:["toggle inactivity gaps"],zh_TW:["切換不活躍區間"]}},92978:e=>{e.exports={en:["use settlement as close on daily interval"],zh_TW:["使用結算價做為日圖的收盤價"]}},59644:e=>{e.exports={en:["{value} decimal","{value} decimals"],zh_TW:["{value}小數"]}}}]); \ No newline at end of file diff --git a/charting_library/charting_library.cjs.js b/charting_library/charting_library.cjs.js index 8d376aab..a7afe8ed 100644 --- a/charting_library/charting_library.cjs.js +++ b/charting_library/charting_library.cjs.js @@ -1 +1 @@ -"use strict";var e,t,i,o,r,n,a,s,l,d,c,h,g,u,C,p,S,m,y,T,_,b,P,L,w,A,f,v,I,O,R,D,x,k,V,F,W,E,M,B,N,U,H,j,z,G,$,J,K,q,Z,Q,Y,X,ee,te,ie,oe,re,ne,ae,se,le,de,ce,he,ge,ue,Ce,pe,Se,me,ye,Te,_e,be,Pe,Le,we,Ae,fe,ve,Ie,Oe,Re,De;function xe(e,t){const i={...e};for(const o in t)"object"!=typeof e[o]||null===e[o]||Array.isArray(e[o])?void 0!==t[o]&&(i[o]=t[o]):i[o]=xe(e[o],t[o]);return i}exports.ActionId=void 0,(e=exports.ActionId||(exports.ActionId={})).UnknownAction="UnknownAction",e.Spinner="Spinner",e.Loading="Loading",e.AlertAdd="Alert.Add",e.AlertEdit="Alert.Edit",e.AlertsClone="Alerts.Clone",e.AlertsRemove="Alerts.Remove",e.AlertsRemoveAll="Alerts.RemoveAll",e.AlertsRemoveFiltered="Alerts.RemoveFiltered",e.AlertsRemoveAllInactive="Alerts.RemoveAllInactive",e.AlertsRemoveAllWatchlistInactive="Alerts.RemoveAllWatchlistInactive",e.AlertsRemoveFires="Alerts.RemoveFires",e.AlertsRestart="Alerts.Restart",e.AlertsRestartAllInactive="Alerts.RestartAllInactive",e.AlertsRestartFilteredInactive="Alerts.RestartFilteredInactive",e.AlertsStop="Alerts.Stop",e.AlertsStopAll="Alerts.StopAll",e.AlertsStopFilteredActive="Alerts.StopFilteredActive",e.AlertsExportFiresToCSV="Alerts.ExportFiresToCSV",e.AlertsLogClear="AlertsLog.Clear",e.AlertsLogRemoveFiltered="AlertsLog.RemoveFiltered",e.ChartAddIndicatorToAllCharts="Chart.AddIndicatorToAllCharts",e.ChartAddSymbolToWatchList="Chart.AddSymbolToWatchList",e.ChartAlertLabelToggleExtendLines="Chart.AlertLabel.ToggleExtendLines",e.ChartApplyIndicatorsToAllCharts="Chart.ApplyIndicatorsToAllCharts",e.ChartIndicatorApplyChildIndicator="Chart.Indicator.ApplyChildIndicator",e.ChartIndicatorApplyFinancials="Chart.Indicator.ApplyFinancials",e.ChartIndicatorAbout="Chart.Indicator.About",e.ChartIndicatorPineLogs="Chart.Indicator.PineLogs",e.ChartIndicatorPineSource="Chart.Indicator.PineSource",e.ChartIndicatorAddFavorites="Chart.Indicator.AddFavorites",e.ChartChangeTimeZone="Chart.ChangeTimeZone",e.ChartClipboardCopyPrice="Chart.Clipboard.CopyPrice",e.ChartClipboardCopyLineTools="Chart.Clipboard.CopyLineTools",e.ChartClipboardCopySource="Chart.Clipboard.CopySource",e.ChartClipboardPasteSource="Chart.Clipboard.PasteSource",e.ChartCrosshairLockVerticalCursor="Chart.Crosshair.LockVerticalCursor",e.ChartCrosshairPlusButtonDrawHorizontalLine="Chart.Crosshair.PlusButton.DrawHorizontalLine",e.ChartCustomActionId="Chart.CustomActionId",e.ChartDialogsShowChangeInterval="Chart.Dialogs.ShowChangeInterval",e.ChartDialogsShowChangeSymbol="Chart.Dialogs.ShowChangeSymbol",e.ChartDialogsShowCompareOrAddSymbol="Chart.Dialogs.ShowCompareOrAddSymbol",e.ChartDialogsShowGeneralSettings="Chart.Dialogs.ShowGeneralSettings",e.ChartDialogsShowGeneralSettingsLegendTab="Chart.Dialogs.ShowGeneralSettings.LegendTab",e.ChartDialogsShowGeneralSettingsSymbolTab="Chart.Dialogs.ShowGeneralSettings.SymbolTab",e.ChartDialogsShowGeneralScalesTab="Chart.Dialogs.ShowGeneralSettings.ScalesTab",e.ChartDialogsShowGeneralSettingsEventsTab="Chart.Dialogs.ShowGeneralSettings.EventsTab",e.ChartDialogsShowGeneralSettingsAlertsTab="Chart.Dialogs.ShowGeneralSettings.AlertsTab",e.ChartDialogsShowGoToDate="Chart.Dialogs.ShowGoToDate",e.ChartDialogsShowInsertIndicators="Chart.Dialogs.ShowInsertIndicators",e.ChartDialogsShowInsertFinancials="Chart.Dialogs.ShowInsertFinancials",e.ChartDialogsShowInsertSeasonals="Chart.Dialogs.ShowInsertSeasonals",e.ChartDialogsShowInsertStockBonds="Chart.Dialogs.ShowInsertStockBonds",e.ChartDialogsShowInsertAnalysis="Chart.Dialogs.ShowInsertAnalysis",e.ChartDialogsShowInsertTechnicals="Chart.Dialogs.ShowInsertTechnicals",e.ChartDialogsShowInsertForecast="Chart.Dialogs.ShowInsertForecast",e.ChartDialogsShowInsertOptions="Chart.Dialogs.ShowInsertOptions",e.ChartDetailsMetricsActionId="Chart.Dialogs.DetailsMetrics",e.ChartDialogsShowInsertEconomyIndicators="Chart.Dialogs.ShowInsertEconomyIndicators",e.ChartDialogsShowSymbolInfo="Chart.Dialogs.ShowSymbolInfo",e.ChartDrawingToolbarToggleVisibility="Chart.DrawingToolbar.ToggleVisibility",e.ChartExternalActionId="Chart.ExternalActionId",e.ChartFavoriteDrawingToolsToolbarHide="Chart.FavoriteDrawingToolsToolbar.Hide",e.ChartIndicatorShowSettingsDialog="Chart.Indicator.ShowSettingsDialog",e.ChartLegendToggleLastDayChangeValuesVisibility="Chart.Legend.ToggleLastDayChangeValuesVisibility",e.ChartLinkingGroupSync="Chart.LinkingGroupSync",e.ChartLinkingGroupSyncChangeGroup="Chart.LinkingGroupSync.ChangeGroup",e.ChartLegendToggleBarChangeValuesVisibility="Chart.Legend.ToggleBarChangeValuesVisibility",e.ChartLegendTogglePriceSourceVisibility="Chart.Legend.TogglePriceSourceVisibility",e.ChartLegendToggleIndicatorArgumentsVisibility="Chart.Legend.ToggleIndicatorArgumentsVisibility",e.ChartLegendToggleIndicatorTitlesVisibility="Chart.Legend.ToggleIndicatorTitlesVisibility",e.ChartLegendToggleIndicatorValuesVisibility="Chart.Legend.ToggleIndicatorValuesVisibility",e.ChartLegendToggleOhlcValuesVisibility="Chart.Legend.ToggleOhlcValuesVisibility",e.ChartLegendToggleOpenMarketStatusVisibility="Chart.Legend.ToggleOpenMarketStatusVisibility",e.ChartLegendToggleSymbolVisibility="Chart.Legend.ToggleSymbolVisibility",e.ChartLegendToggleVolumeVisibility="Chart.Legend.ToggleVolumeVisibility",e.ChartLines="Chart.Lines",e.ChartLinesToggleBidAskLinesVisibility="Chart.Lines.ToggleBidAskLinesVisibility",e.ChartLinesToggleHighLowLinesVisibility="Chart.Lines.ToggleHighLowLinesVisibility",e.ChartLinesToggleAverageLineVisibility="Chart.Lines.ToggleAverageLineVisibility",e.ChartLinesTogglePrePostMarketPriceLineVisibility="Chart.Lines.TogglePrePostMarketPriceLineVisibility",e.ChartLinesToggleSeriesPrevCloseLineVisibility="Chart.Lines.ToggleSeriesPrevCloseLineVisibility",e.ChartLinesToggleSeriesPriceLineVisibility="Chart.Lines.ToggleSeriesPriceLineVisibility",e.ChartLineToolBarsPatternToggleFlipped="Chart.LineTool.BarsPattern.ToggleFlipped",e.ChartLineToolBarsPatternToggleMirrored="Chart.LineTool.BarsPattern.ToggleMirrored",e.ChartLineToolRiskRewardReverse="Chart.LineTool.RiskReward.Reverse",e.ChartLineToolClone="Chart.LineTool.Clone",e.ChartLineToolCreateLimitOrderFromState="Chart.LineTool.CreateLimitOrderFromState",e.ChartLineToolElliotChangeDegreeProperty="Chart.LineTool.Elliot.ChangeDegreeProperty",e.ChartLineToolNoSync="Chart.LineTool.NoSync",e.ChartLineToolPitchforkChangeTypeToInside="Chart.LineTool.Pitchfork.ChangeTypeToInside",e.ChartLineToolPitchforkChangeTypeToModifiedSchiff="Chart.LineTool.Pitchfork.ChangeTypeToModifiedSchiff",e.ChartLineToolPitchforkChangeTypeToOriginal="Chart.LineTool.Pitchfork.ChangeTypeToOriginal",e.ChartLineToolPitchforkChangeTypeToSchiff="Chart.LineTool.Pitchfork.ChangeTypeToSchiff",e.ChartLineToolSyncInLayout="Chart.LineTool.SyncInLayout",e.ChartLineToolSyncGlobally="Chart.LineTool.SyncGlobally",e.ChartLineToolTemplates="Chart.LineTool.Templates",e.ChartLineToolTemplatesApply="Chart.LineTool.Templates.Apply",e.ChartLineToolTemplatesApplyDefaults="Chart.LineTool.Templates.ApplyDefaults",e.ChartLineToolTemplatesSaveAs="Chart.LineTool.Templates.SaveAs",e.ChartLineToolToolbarChangeFontSizeProperty="Chart.LineTool.Toolbar.ChangeFontSizeProperty",e.ChartLineToolToolbarChangeLineStyleToDashed="Chart.LineTool.Toolbar.ChangeLineStyleToDashed",e.ChartLineToolToolbarChangeLineStyleToDotted="Chart.LineTool.Toolbar.ChangeLineStyleToDotted",e.ChartLineToolToolbarChangeLineStyleToSolid="Chart.LineTool.Toolbar.ChangeLineStyleToSolid",e.ChartMarksToggleVisibility="Chart.Marks.ToggleVisibility",e.ChartMoveChartInLayout="Chart.MoveChartInLayout",e.ChartMoveChartInLayoutBack="Chart.MoveChartInLayout.Back",e.ChartMoveChartInLayoutForward="Chart.MoveChartInLayout.Forward",e.ChartTpoResetAllMergesAndSplits="Chart.TPO.ResetAllMergesAndSplits",e.ChartTpoSplitBlock="Chart.TPO.SplitBlock",e.ChartTpoMergeBlock="Chart.TPO.MergeBlock",e.ChartObjectTreeShow="Chart.ObjectTree.Show",e.ChartDataWindowShow="Chart.DataWindow.Show",e.ChartPaneControlsDeletePane="Chart.PaneControls.DeletePane",e.ChartPaneControlsMaximizePane="Chart.PaneControls.MaximizePane",e.ChartPaneControlsMinimizePane="Chart.PaneControls.MinimizePane",e.ChartPaneControlsMovePaneDown="Chart.PaneControls.MovePaneDown",e.ChartPaneControlsMovePaneUp="Chart.PaneControls.MovePaneUp",e.ChartPaneControlsCollapsePane="Chart.PaneControls.CollapsePane",e.ChartPaneControlsRestorePane="Chart.PaneControls.RestorePane",e.ChartPriceScaleLabels="Chart.PriceScale.Labels",e.ChartPriceScaleLabelsToggleBidAskLabelsVisibility="Chart.PriceScale.Labels.ToggleBidAskLabelsVisibility",e.ChartPriceScaleLabelsToggleHighLowPriceLabelsVisibility="Chart.PriceScale.Labels.ToggleHighLowPriceLabelsVisibility",e.ChartPriceScaleLabelsToggleAveragePriceLabelVisibility="Chart.PriceScale.Labels.ToggleAveragePriceLabelVisibility",e.ChartPriceScaleLabelsToggleIndicatorsNameLabelsVisibility="Chart.PriceScale.Labels.ToggleIndicatorsNameLabelsVisibility",e.ChartPriceScaleLabelsToggleIndicatorsValueLabelsVisibility="Chart.PriceScale.Labels.ToggleIndicatorsValueLabelsVisibility",e.ChartPriceScaleLabelsTogglePrePostMarketLabelsVisibility="Chart.PriceScale.Labels.TogglePrePostMarketLabelsVisibility",e.ChartPriceScaleLabelsToggleNoOverlappingLabelsVisibility="Chart.PriceScale.Labels.ToggleNoOverlappingLabelsVisibility",e.ChartPriceScaleLabelsToggleSeriesLastValueVisibility="Chart.PriceScale.Labels.ToggleSeriesLastValueVisibility",e.ChartPriceScaleLabelsToggleSymbolNameLabelsVisibility="Chart.PriceScale.Labels.ToggleSymbolNameLabelsVisibility",e.ChartPriceScaleLabelsToggleSymbolPrevCloseValueVisibility="Chart.PriceScale.Labels.ToggleSymbolPrevCloseValueVisibility",e.ChartPriceScaleMergeAllScales="Chart.PriceScale.MergeAllScales",e.ChartPriceScaleMergeAllScalesToLeft="Chart.PriceScale.MergeAllScalesToLeft",e.ChartPriceScaleMergeAllScalesToRight="Chart.PriceScale.MergeAllScalesToRight",e.ChartPriceScaleMoveToLeft="Chart.PriceScale.MoveToLeft",e.ChartPriceScaleMoveToRight="Chart.PriceScale.MoveToRight",e.ChartPriceScaleReset="Chart.PriceScale.Reset",e.ChartPriceScaleToggleAddOrderPlusButtonVisibility="Chart.PriceScale.ToggleAddOrderPlusButtonVisibility",e.ChartPriceScaleToggleAutoScale="Chart.PriceScale.ToggleAutoScale",e.ChartPriceScaleToggleAutoScaleSeriesOnly="Chart.PriceScale.ToggleAutoScaleSeriesOnly",e.ChartPriceScaleToggleCountdownToBarCloseVisibility="Chart.PriceScale.ToggleCountdownToBarCloseVisibility",e.ChartPriceScaleToggleIndexedTo100="Chart.PriceScale.ToggleIndexedTo100",e.ChartPriceScaleToggleInvertScale="Chart.PriceScale.ToggleInvertScale",e.ChartPriceScaleToggleLogarithmic="Chart.PriceScale.ToggleLogarithmic",e.ChartPriceScaleTogglePercentage="Chart.PriceScale.TogglePercentage",e.ChartPriceScaleToggleRegular="Chart.PriceScale.ToggleRegular",e.ChartRedo="Chart.Redo",e.ChartRemoveAllIndicators="Chart.RemoveAllIndicators",e.ChartRemoveAllIndicatorsAndLineTools="Chart.RemoveAllIndicatorsAndLineTools",e.ChartRemoveAllLineTools="Chart.RemoveAllLineTools",e.ChartScalesReset="Chart.Scales.Reset",e.ChartScalesToggleLockPriceToBarRatio="Chart.Scales.ToggleLockPriceToBarRatio",e.ChartScrollToLineTool="Chart.ScrollToLineTool",e.ChartSelectedObjectHide="Chart.SelectedObject.Hide",e.ChartSelectedObjectRemove="Chart.SelectedObject.Remove",e.ChartSelectedObjectShow="Chart.SelectedObject.Show",e.ChartSelectedObjectShowSettingsDialog="Chart.SelectedObject.ShowSettingsDialog",e.ChartSelectedObjectInsertRowTable="Chart.SelectedObject.InsertRowTable",e.ChartSelectedObjectInsertColumnTable="Chart.SelectedObject.InsertColumnTable",e.ChartSelectedObjectRemoveRowTable="Chart.SelectedObject.RemoveRowTable",e.ChartSelectedObjectRemoveColumnTable="Chart.SelectedObject.RemoveColumnTable",e.ChartSelectedObjectToggleLocked="Chart.SelectedObject.ToggleLocked",e.ChartSelectedObjectToggleAnchored="Chart.SelectedObject.ToggleAnchored",e.ChartSeriesPriceScaleToggleAutoScale="Chart.Series.PriceScale.ToggleAutoScale",e.ChartSeriesPriceScaleToggleIndexedTo100="Chart.Series.PriceScale.ToggleIndexedTo100",e.ChartSeriesPriceScaleToggleInvertPriceScale="Chart.Series.PriceScale.ToggleInvertPriceScale",e.ChartSeriesPriceScaleToggleLogarithmic="Chart.Series.PriceScale.ToggleLogarithmic",e.ChartSeriesPriceScaleTogglePercentage="Chart.Series.PriceScale.TogglePercentage",e.ChartSeriesPriceScaleToggleRegular="Chart.Series.PriceScale.ToggleRegular",e.ChartSessionBreaksToggleVisibility="Chart.SessionBreaks.ToggleVisibility",e.ChartSetSession="Chart.SetSession",e.ChartSourceChangePriceScale="Chart.Source.ChangePriceScale",e.ChartSourceMergeDown="Chart.Source.MergeDown",e.ChartSourceMergeUp="Chart.Source.MergeUp",e.ChartSourceMoveToNoScale="Chart.Source.MoveToNoScale",e.ChartSourceMoveToOtherScale="Chart.Source.MoveToOtherScale",e.ChartSourceMoveToPane="Chart.Source.MoveToPane",e.ChartSourceUnmergeDown="Chart.Source.UnmergeDown",e.ChartSourceUnmergeUp="Chart.Source.UnmergeUp",e.ChartSourceVisualOrder="Chart.Source.VisualOrder",e.ChartSourceVisualOrderBringForward="Chart.Source.VisualOrder.BringForward",e.ChartSourceVisualOrderBringToFront="Chart.Source.VisualOrder.BringToFront",e.ChartSourceVisualOrderSendBackward="Chart.Source.VisualOrder.SendBackward",e.ChartSourceVisualOrderSendToBack="Chart.Source.VisualOrder.SendToBack",e.ChartSourceResetInputPoints="Chart.Source.ResetInputPoints",e.ChartOpenTableView="Chart.OpenTableView",e.ChartThemeApply="Chart.Theme.Apply",e.ChartThemeApplyCustom="Chart.Theme.Apply.Custom",e.ChartThemeSaveAs="Chart.Theme.SaveAs",e.ChartTimeScaleReset="Chart.TimeScale.Reset",e.ChartUndo="Chart.Undo",e.ChartShowAllIdeas="Chart.ShowAllIdeas",e.ChartShowIdeasOfFollowedUsers="Chart.ShowIdeasOfFollowedUsers",e.ChartShowMyIdeasOnly="Chart.ShowMyIdeasOnly",e.ChartToggleVisibilityAllLineTools="Chart.ToggleVisibility.AllLineTools",e.ChartToggleVisibilityContinuousContractSwitch="Chart.ToggleVisibility.ContinuousContractSwitch",e.ChartToggleVisibilityContractExpiration="Chart.ToggleVisibility.ContractExpiration",e.ChartToggleVisibilityDividends="Chart.ToggleVisibility.Dividends",e.ChartToggleVisibilityEarnings="Chart.ToggleVisibility.Earnings",e.ChartToggleVisibilityEconomicEvents="Chart.ToggleVisibility.EconomicEvents",e.ChartToggleVisibilitySplits="Chart.ToggleVisibility.Splits",e.ChartToggleVisibilityLatestNewsAndMinds="Chart.ToggleVisibility.LatestNewsAndMinds",e.ChartToggleVisibilityKeyFactsToday="Chart.ToggleVisibility.KeyFactsToday",e.ChartSourceIntervalsVisibility="Chart.Source.IntervalsVisibility",e.ChartSourceIntervalsVisibilityCurrentAndAbove="Chart.Source.IntervalsVisibility.CurrentAndAbove",e.ChartSourceIntervalsVisibilityCurrentAndBelow="Chart.Source.IntervalsVisibility.CurrentAndBelow",e.ChartSourceIntervalsVisibilityOnlyCurrent="Chart.Source.IntervalsVisibility.Current",e.ChartSourceIntervalsVisibilityAll="Chart.Source.IntervalsVisibility.All",e.NoteCreate="Note.Create",e.NoteEdit="Note.Edit",e.NoteRemove="Note.Remove",e.ObjectsTreeCreateGroup="ObjectsTree.CreateGroup",e.ObjectsTreeRemoveItem="ObjectsTree.RemoveItem",e.ObjectsTreeRenameItem="ObjectsTree.RenameItem",e.ObjectsTreeToggleItemLocked="ObjectsTree.ToggleItemLocked",e.ObjectsTreeToggleItemVisibility="ObjectsTree.ToggleItemVisibility",e.PineEditorConsoleCopyMessage="PineEditor.Console.CopyMessage",e.PineEditorConsoleToggleVisibility="PineEditor.Console.ToggleVisibility",e.PineEditorConsoleClear="PineEditor.Console.Clear",e.ScreenerColumnRemove="Screener.Column.Remove",e.ScreenerFilterChange="Screener.Filter.Change",e.ScreenerFilterReset="Screener.Filter.Reset",e.ScreenerToggleVisibilityCurrency="Screener.ToggleVisibility.Currency",e.ScreenerToggleVisibilityDescription="Screener.ToggleVisibility.Description",e.ScreenerToggleVisibilityRating="Screener.ToggleVisibility.Rating",e.ScreenerToggleVisibilitySymbolType="Screener.ToggleVisibility.SymbolType",e.TradingAddOrder="Trading.AddOrder",e.TradingCancelOrder="Trading.CancelOrder",e.TradingClosePosition="Trading.ClosePosition",e.TradingCustomActionId="Trading.CustomActionId",e.TradingDOMPlaceLimitOrder="Trading.DOMPlaceLimitOrder",e.TradingDOMPlaceMarketOrder="Trading.DOMPlaceMarketOrder",e.TradingDOMPlaceStopLimitOrder="Trading.DOMPlaceStopLimitOrder",e.TradingDOMPlaceStopOrder="Trading.DOMPlaceStopOrder",e.TradingEditOrder="Trading.EditOrder",e.TradingModifyPosition="Trading.ModifyPosition",e.TradingReversePosition="Trading.ReversePosition",e.TradingSellBuyButtonsToggleVisibility="Trading.SellBuyButtonsToggleVisibility",e.TradingTradeFromChart="Trading.TradeFromChart",e.TradingNoOverlapMode="Trading.NoOverlapMode",e.TradingShowSelectBrokerPanel="Trading.ShowSelectBrokerPanel",e.TradingOrderTitle="Trading.OrderTitle",e.TradingPositionTitle="Trading.PositionTitle",e.WatchlistActions="Watchlist.Actions",e.WatchlistAddSelectedSymbolsToCompare="Watchlist.AddSelectedSymbolsToCompare ",e.WatchlistAddSymbolToCompare="Watchlist.AddSymbolToCompare",e.WatchlistAddSymbolToSection="Watchlist.AddSymbolToSection",e.WatchlistChangeFlaggedGroupColor="Watchlist.ChangeFlaggedGroupColor",e.WatchlistAddSymbol="Watchlist.AddSymbol",e.WatchlistCreate="Watchlist.Create",e.WatchlistAddSelectedSymbols="Watchlist.AddSelectedSymbols",e.WatchlistAddSelectedSymbolsLists="Watchlist.AddSelectedSymbols.Lists",e.WatchlistGetDisplayedTickerDescription="Watchlist.GetDisplayedTickerDescription",e.WatchlistCreateSection="Watchlist.CreateSection",e.WatchlistFlagSelectedSymbols="Watchlist.FlagSelectedSymbols",e.WatchlistFlagSymbol="Watchlist.FlagSymbol",e.WatchlistOpenSymbolChart="Watchlist.OpenSymbolChart",e.WatchlistOpenSymbolOverview="Watchlist.OpenSymbolOverview",e.WatchlistRemoveSection="Watchlist.RemoveSection",e.WatchlistRemoveSymbol="Watchlist.RemoveSymbol",e.WatchlistRenameSection="Watchlist.RenameSection",e.WatchlistUnflagAllSymbols="Watchlist.UnflagAllSymbols",e.WatchlistUnflagSelectedSymbols="Watchlist.UnflagSelectedSymbols",e.WatchlistUnflagSymbol="Watchlist.UnflagSymbol",function(e){e.extractErrorReason=function(e){return e.params[1]}}(t||(t={})),function(e){e.Default="default",e.FullSingleSession="full_single_session"}(i||(i={})),exports.TimeFrameType=void 0,(o=exports.TimeFrameType||(exports.TimeFrameType={})).PeriodBack="period-back",o.TimeRange="time-range",function(e){e.PeriodBack="period-back",e.TimeRange="time-range"}(r||(r={})),exports.MarketStatus=void 0,(n=exports.MarketStatus||(exports.MarketStatus={})).Open="market",n.Pre="pre_market",n.Post="post_market",n.Close="out_of_session",n.Holiday="holiday",exports.MenuItemType=void 0,(a=exports.MenuItemType||(exports.MenuItemType={})).Separator="separator",a.Action="action",exports.ClearMarksMode=void 0,(s=exports.ClearMarksMode||(exports.ClearMarksMode={}))[s.All=0]="All",s[s.BarMarks=1]="BarMarks",s[s.TimeScaleMarks=2]="TimeScaleMarks",exports.LineStudyPlotStyle=void 0,(l=exports.LineStudyPlotStyle||(exports.LineStudyPlotStyle={}))[l.Line=0]="Line",l[l.Histogram=1]="Histogram",l[l.Cross=3]="Cross",l[l.Area=4]="Area",l[l.Columns=5]="Columns",l[l.Circles=6]="Circles",l[l.LineWithBreaks=7]="LineWithBreaks",l[l.AreaWithBreaks=8]="AreaWithBreaks",l[l.StepLine=9]="StepLine",l[l.StepLineWithDiamonds=10]="StepLineWithDiamonds",l[l.StepLineWithBreaks=11]="StepLineWithBreaks",exports.StudyPlotType=void 0,(d=exports.StudyPlotType||(exports.StudyPlotType={})).Line="line",d.Colorer="colorer",d.BarColorer="bar_colorer",d.BgColorer="bg_colorer",d.TextColorer="text_colorer",d.OhlcColorer="ohlc_colorer",d.CandleWickColorer="wick_colorer",d.CandleBorderColorer="border_colorer",d.UpColorer="up_colorer",d.DownColorer="down_colorer",d.Shapes="shapes",d.Chars="chars",d.Arrows="arrows",d.Data="data",d.DataOffset="dataoffset",d.OhlcOpen="ohlc_open",d.OhlcHigh="ohlc_high",d.OhlcLow="ohlc_low",d.OhlcClose="ohlc_close",function(e){e.AlertCondition="alertcondition"}(c||(c={})),exports.StudyPlotDisplayTarget=void 0,(h=exports.StudyPlotDisplayTarget||(exports.StudyPlotDisplayTarget={}))[h.None=0]="None",h[h.Pane=1]="Pane",h[h.DataWindow=2]="DataWindow",h[h.PriceScale=4]="PriceScale",h[h.StatusLine=8]="StatusLine",h[h.All=15]="All",function(e){e[e.None=0]="None",e[e.Pane=1]="Pane",e[e.DataWindow=2]="DataWindow",e[e.PriceScale=4]="PriceScale",e[e.StatusLine=8]="StatusLine",e[e.All=15]="All"}(g||(g={})),exports.OhlcStudyPlotStyle=void 0,(u=exports.OhlcStudyPlotStyle||(exports.OhlcStudyPlotStyle={})).OhlcBars="ohlc_bars",u.OhlcCandles="ohlc_candles",function(e){e.Auto="auto",e.Tiny="tiny",e.Small="small",e.Normal="normal",e.Large="large",e.Huge="huge"}(C||(C={})),exports.StudyInputType=void 0,(p=exports.StudyInputType||(exports.StudyInputType={})).Integer="integer",p.Float="float",p.Price="price",p.Bool="bool",p.Text="text",p.Symbol="symbol",p.Session="session",p.Source="source",p.Resolution="resolution",p.Time="time",p.BarTime="bar_time",p.Color="color",p.Textarea="text_area",function(e){e[e.None=0]="None",e[e.DataWindow=2]="DataWindow",e[e.StatusLine=8]="StatusLine",e[e.All=15]="All"}(S||(S={})),function(e){e.InitialCapital="initial_capital",e.Currency="currency",e.DefaultQTYValue="default_qty_value",e.DefaultQTYType="default_qty_type",e.Pyramiding="pyramiding",e.ComissionValue="commission_value",e.ComissionType="commission_type",e.BacktestFillLimitsAssumtion="backtest_fill_limits_assumption",e.Slippage="slippage",e.CalcOnOrderFills="calc_on_order_fills",e.CalcOnEveryTick="calc_on_every_tick",e.MarginLong="margin_long",e.MarginShort="margin_short",e.UseBarMagnifier="use_bar_magnifier",e.ProcessOrdersOnClose="process_orders_on_close",e.FillOrdersOnStandardOHLC="fill_orders_on_standard_ohlc"}(m||(m={})),function(e){e.Fixed="fixed",e.CashPerOrder="cash_per_order",e.PercentOfEquity="percent_of_equity"}(y||(y={})),function(e){e.Percent="percent",e.CashPerContract="cash_per_contract",e.CashPerOrder="cash_per_order"}(T||(T={})),function(e){e.FirstBar="first_visible_bar_time",e.LastBar="last_visible_bar_time",e.Realtime="subscribeRealtime"}(_||(_={})),function(e){e.FgColor="__chart_fgcolor",e.BgColor="__chart_bgcolor"}(b||(b={})),exports.StudyTargetPriceScale=void 0,(P=exports.StudyTargetPriceScale||(exports.StudyTargetPriceScale={}))[P.Right=0]="Right",P[P.Left=1]="Left",P[P.NoScale=2]="NoScale",function(e){e[e.Right=0]="Right",e[e.Left=1]="Left",e[e.None=2]="None"}(L||(L={})),exports.FilledAreaType=void 0,(w=exports.FilledAreaType||(exports.FilledAreaType={})).TypePlots="plot_plot",w.TypeHlines="hline_hline",function(e){e[e.StopLoss=0]="StopLoss",e[e.TrailingStop=1]="TrailingStop",e[e.GuaranteedStop=2]="GuaranteedStop"}(A||(A={})),function(e){e.Futures="futures",e.Options="options",e.Others="others",e.FutureAndOptions="futureAndOptions"}(f||(f={})),function(e){e.PerContract="contract",e.Fixed="fixed",e.Percent="percent",e.Disabled="disabled"}(v||(v={})),function(e){e.Stocks="stocks",e.Futures="futures",e.Forex="forex",e.Crypto="crypto",e.Others="others"}(I||(I={})),function(e){e.Symbol="symbol"}(O||(O={})),function(e){e[e.Critical=0]="Critical",e[e.Informational=1]="Informational"}(R||(R={})),function(e){e[e.PopUp=0]="PopUp",e[e.Notification=1]="Notification"}(D||(D={})),function(e){e.Quantity="qty",e.OrderSide="side",e.Price="price",e.Duration="duration",e.Brackets="brackets",e.StopLossType="slType"}(x||(x={})),function(e){e[e.CONNECTED=1]="CONNECTED",e[e.CONNECTING=2]="CONNECTING",e[e.DISCONNECTED=3]="DISCONNECTED",e[e.ERROR=4]="ERROR"}(k||(k={})),exports.ConnectionStatus=void 0,(V=exports.ConnectionStatus||(exports.ConnectionStatus={}))[V.Connected=1]="Connected",V[V.Connecting=2]="Connecting",V[V.Disconnected=3]="Disconnected",V[V.Error=4]="Error",function(e){e[e.LIMIT=1]="LIMIT",e[e.MARKET=2]="MARKET",e[e.STOP=3]="STOP",e[e.STOPLIMIT=4]="STOPLIMIT"}(F||(F={})),exports.OrderType=void 0,(W=exports.OrderType||(exports.OrderType={}))[W.Limit=1]="Limit",W[W.Market=2]="Market",W[W.Stop=3]="Stop",W[W.StopLimit=4]="StopLimit",function(e){e[e.BUY=1]="BUY",e[e.SELL=-1]="SELL"}(E||(E={})),exports.Side=void 0,(M=exports.Side||(exports.Side={}))[M.Buy=1]="Buy",M[M.Sell=-1]="Sell",function(e){e[e.CANCELED=1]="CANCELED",e[e.FILLED=2]="FILLED",e[e.INACTIVE=3]="INACTIVE",e[e.PLACING=4]="PLACING",e[e.REJECTED=5]="REJECTED",e[e.WORKING=6]="WORKING"}(B||(B={})),function(e){e[e.ALL=0]="ALL",e[e.CANCELED=1]="CANCELED",e[e.FILLED=2]="FILLED",e[e.INACTIVE=3]="INACTIVE",e[e.REJECTED=5]="REJECTED",e[e.WORKING=6]="WORKING"}(N||(N={})),exports.OrderStatus=void 0,(U=exports.OrderStatus||(exports.OrderStatus={}))[U.Canceled=1]="Canceled",U[U.Filled=2]="Filled",U[U.Inactive=3]="Inactive",U[U.Placing=4]="Placing",U[U.Rejected=5]="Rejected",U[U.Working=6]="Working",exports.OrderStatusFilter=void 0,(H=exports.OrderStatusFilter||(exports.OrderStatusFilter={}))[H.All=0]="All",H[H.Canceled=1]="Canceled",H[H.Filled=2]="Filled",H[H.Inactive=3]="Inactive",H[H.Rejected=5]="Rejected",H[H.Working=6]="Working",function(e){e[e.Order=1]="Order",e[e.Position=2]="Position"}(j||(j={})),function(e){e[e.ORDER=1]="ORDER",e[e.POSITION=2]="POSITION"}(z||(z={})),exports.ParentType=void 0,(G=exports.ParentType||(exports.ParentType={}))[G.Order=1]="Order",G[G.Position=2]="Position",G[G.IndividualPosition=3]="IndividualPosition",function(e){e[e.StopLoss=0]="StopLoss",e[e.TakeProfit=1]="TakeProfit",e[e.TrailingStop=2]="TrailingStop",e[e.GuaranteedStop=3]="GuaranteedStop"}($||($={})),function(e){e[e.LIMITPRICE=1]="LIMITPRICE",e[e.STOPPRICE=2]="STOPPRICE",e[e.TAKEPROFIT=3]="TAKEPROFIT",e[e.STOPLOSS=4]="STOPLOSS"}(J||(J={})),exports.OrderTicketFocusControl=void 0,(K=exports.OrderTicketFocusControl||(exports.OrderTicketFocusControl={}))[K.LimitPrice=1]="LimitPrice",K[K.StopPrice=2]="StopPrice",K[K.TakeProfit=3]="TakeProfit",K[K.StopLoss=4]="StopLoss",K[K.Quantity=5]="Quantity",function(e){e[e.ERROR=0]="ERROR",e[e.SUCCESS=1]="SUCCESS"}(q||(q={})),exports.NotificationType=void 0,(Z=exports.NotificationType||(exports.NotificationType={}))[Z.Error=0]="Error",Z[Z.Success=1]="Success",function(e){e[e.Demo=1]="Demo",e[e.Real=0]="Real"}(Q||(Q={})),exports.OrderOrPositionMessageType=void 0,(Y=exports.OrderOrPositionMessageType||(exports.OrderOrPositionMessageType={})).Information="information",Y.Warning="warning",Y.Error="error",function(e){e.Demo="demo",e.Live="live"}(X||(X={})),function(e){e[e.LogOut=0]="LogOut",e[e.FailedRestoring=1]="FailedRestoring",e[e.Offline=2]="Offline",e[e.APIError=3]="APIError",e[e.TwoFactorRequired=4]="TwoFactorRequired",e[e.CancelAuthorization=5]="CancelAuthorization",e[e.TimeOutForAuthorization=6]="TimeOutForAuthorization",e[e.OauthError=7]="OauthError",e[e.BrokenConnection=8]="BrokenConnection",e[e.Reconnect=9]="Reconnect",e[e.FailedSignIn=10]="FailedSignIn"}(ee||(ee={})),function(e){e[e.None=0]="None",e[e.Pips=1]="Pips",e[e.Ticks=2]="Ticks"}(te||(te={})),function(e){e.Halted="HALTED",e.NotShortable="NOT-SHORTABLE",e.HardToBorrow="HARD-TO-BORROW"}(ie||(ie={})),function(e){e[e.Limit=1]="Limit",e[e.Stop=2]="Stop"}(oe||(oe={})),function(e){e.Disallowed="disallowed",e.Allowed="allowed",e.AllowedWithWarning="allowed_with_warning"}(re||(re={})),function(e){e.PlaceOrder="place_order",e.ModifyOrder="modify_order",e.CancelOrder="cancel_order",e.CancelMultipleOrders="cancel_multiple_orders",e.ModifyPosition="modify_position",e.ClosePosition="close_position",e.ModifyIndividualPosition="modify_individual_position",e.CloseIndividualPosition="close_individual_position",e.CloseNetPosition="close_net_position"}(ne||(ne={})),exports.StandardFormatterName=void 0,(ae=exports.StandardFormatterName||(exports.StandardFormatterName={})).Date="date",ae.DateOrDateTime="dateOrDateTime",ae.Default="default",ae.Fixed="fixed",ae.FixedInCurrency="fixedInCurrency",ae.VariablePrecision="variablePrecision",ae.FormatQuantity="formatQuantity",ae.FormatPrice="formatPrice",ae.FormatPriceForexSup="formatPriceForexSup",ae.FormatPriceInCurrency="formatPriceInCurrency",ae.IntegerSeparated="integerSeparated",ae.LocalDate="localDate",ae.LocalDateOrDateTime="localDateOrDateTime",ae.Percentage="percentage",ae.Pips="pips",ae.Profit="profit",ae.ProfitInInstrumentCurrency="profitInInstrumentCurrency",ae.ProfitInPercent="profitInPercent",ae.Side="side",ae.PositionSide="positionSide",ae.Status="status",ae.Symbol="symbol",ae.Text="text",ae.Type="type",ae.MarginPercent="marginPercent",ae.Empty="empty",exports.OverridePriceAxisLastValueMode=void 0,(se=exports.OverridePriceAxisLastValueMode||(exports.OverridePriceAxisLastValueMode={}))[se.LastPriceAndPercentageValue=0]="LastPriceAndPercentageValue",se[se.LastValueAccordingToScale=1]="LastValueAccordingToScale",exports.OverrideLineStyle=void 0,(le=exports.OverrideLineStyle||(exports.OverrideLineStyle={}))[le.Solid=0]="Solid",le[le.Dotted=1]="Dotted",le[le.Dashed=2]="Dashed",function(e){e[e.Offline=0]="Offline",e[e.Resolving=1]="Resolving",e[e.Loading=2]="Loading",e[e.Ready=3]="Ready",e[e.InvalidSymbol=4]="InvalidSymbol",e[e.Snapshot=5]="Snapshot",e[e.EOD=6]="EOD",e[e.Pulse=7]="Pulse",e[e.Delayed=8]="Delayed",e[e.DelayedSteaming=9]="DelayedSteaming",e[e.NoBars=10]="NoBars",e[e.Replay=11]="Replay",e[e.Error=12]="Error",e[e.CalculationError=13]="CalculationError",e[e.UnsupportedResolution=14]="UnsupportedResolution"}(de||(de={})),function(e){e[e.Markers=0]="Markers",e[e.Stepline=1]="Stepline",e[e.Simple=2]="Simple"}(ce||(ce={})),exports.ChartStyle=void 0,(he=exports.ChartStyle||(exports.ChartStyle={}))[he.Bar=0]="Bar",he[he.Candle=1]="Candle",he[he.Line=2]="Line",he[he.Area=3]="Area",he[he.Renko=4]="Renko",he[he.Kagi=5]="Kagi",he[he.PnF=6]="PnF",he[he.LineBreak=7]="LineBreak",he[he.HeikinAshi=8]="HeikinAshi",he[he.HollowCandle=9]="HollowCandle",he[he.Baseline=10]="Baseline",he[he.Range=11]="Range",he[he.HiLo=12]="HiLo",he[he.Column=13]="Column",he[he.LineWithMarkers=14]="LineWithMarkers",he[he.Stepline=15]="Stepline",he[he.HLCArea=16]="HLCArea",he[he.VolFootprint=17]="VolFootprint",he[he.TPO=18]="TPO",he[he.VolCandle=19]="VolCandle",he[he.SVP=20]="SVP",he[he.HLCBars=21]="HLCBars",exports.TimeHoursFormat=void 0,(ge=exports.TimeHoursFormat||(exports.TimeHoursFormat={})).TwentyFourHours="24-hours",ge.TwelveHours="12-hours",function(e){e[e.Initial=2]="Initial",e[e.SeriesZOrderIsAlwaysZero=3]="SeriesZOrderIsAlwaysZero",e[e.Current=3]="Current"}(ue||(ue={})),exports.PlDisplay=void 0,(Ce=exports.PlDisplay||(exports.PlDisplay={}))[Ce.Money=0]="Money",Ce[Ce.Pips=1]="Pips",Ce[Ce.Percentage=2]="Percentage",exports.TradedGroupHorizontalAlignment=void 0,(pe=exports.TradedGroupHorizontalAlignment||(exports.TradedGroupHorizontalAlignment={}))[pe.Left=0]="Left",pe[pe.Center=1]="Center",pe[pe.Right=2]="Right",exports.PlDisplay.Money,exports.PlDisplay.Money,exports.TradedGroupHorizontalAlignment.Right,function(e){e[e.Background=0]="Background",e[e.Foreground=1]="Foreground",e[e.Topmost=2]="Topmost"}(Se||(Se={})),function(e){e[e.Unavailable=0]="Unavailable",e[e.AvailableReadonlyAlwaysDisabled=1]="AvailableReadonlyAlwaysDisabled",e[e.AvailableReadonlyAlwaysEnabled=2]="AvailableReadonlyAlwaysEnabled",e[e.Available=3]="Available"}(me||(me={})),function(e){e[e.ViewportChangeUserAction=0]="ViewportChangeUserAction",e[e.DataUpdate=1]="DataUpdate",e[e.SeriesRestart=2]="SeriesRestart",e[e.SeriesCompleted=3]="SeriesCompleted",e[e.StudyCreation=4]="StudyCreation"}(ye||(ye={})),function(e){e[e.Chart=0]="Chart"}(Te||(Te={})),exports.VisibilityType=void 0,(_e=exports.VisibilityType||(exports.VisibilityType={})).AlwaysOn="alwaysOn",_e.VisibleOnMouseOver="visibleOnMouseOver",_e.AlwaysOff="alwaysOff",exports.PriceScaleMode=void 0,(be=exports.PriceScaleMode||(exports.PriceScaleMode={}))[be.Normal=0]="Normal",be[be.Log=1]="Log",be[be.Percentage=2]="Percentage",be[be.IndexedTo100=3]="IndexedTo100",exports.SeriesType=void 0,(Pe=exports.SeriesType||(exports.SeriesType={}))[Pe.Bars=0]="Bars",Pe[Pe.Candles=1]="Candles",Pe[Pe.Line=2]="Line",Pe[Pe.Area=3]="Area",Pe[Pe.HeikenAshi=8]="HeikenAshi",Pe[Pe.HollowCandles=9]="HollowCandles",Pe[Pe.Baseline=10]="Baseline",Pe[Pe.HiLo=12]="HiLo",Pe[Pe.Column=13]="Column",Pe[Pe.LineWithMarkers=14]="LineWithMarkers",Pe[Pe.Stepline=15]="Stepline",Pe[Pe.HLCArea=16]="HLCArea",Pe[Pe.VolCandle=19]="VolCandle",Pe[Pe.HLCBars=21]="HLCBars",Pe[Pe.Renko=4]="Renko",Pe[Pe.Kagi=5]="Kagi",Pe[Pe.PointAndFigure=6]="PointAndFigure",Pe[Pe.LineBreak=7]="LineBreak",function(e){e.Value="_seriesId"}(Le||(Le={})),function(e){e[e.InvalidSymbol=0]="InvalidSymbol",e[e.ReplayUnsupported=1]="ReplayUnsupported",e[e.UnsupportedDepth=2]="UnsupportedDepth",e[e.UnsupportedIntradyReplay=3]="UnsupportedIntradyReplay"}(we||(we={})),exports.HHistDirection=void 0,(Ae=exports.HHistDirection||(exports.HHistDirection={})).LeftToRight="left_to_right",Ae.RightToLeft="right_to_left",function(e){e.Relative="relative",e.Absolute="absolute"}(fe||(fe={})),function(e){e.UpDown="Up/Down",e.Total="Total",e.Delta="Delta"}(ve||(ve={})),exports.MarkLocation=void 0,(Ie=exports.MarkLocation||(exports.MarkLocation={})).AboveBar="AboveBar",Ie.BelowBar="BelowBar",Ie.Top="Top",Ie.Bottom="Bottom",Ie.Right="Right",Ie.Left="Left",Ie.Absolute="Absolute",Ie.AbsoluteUp="AbsoluteUp",Ie.AbsoluteDown="AbsoluteDown",function(e){e.Left="left",e.Center="center",e.Right="right"}(Oe||(Oe={})),function(e){e.Top="top",e.Middle="middle",e.Bottom="bottom"}(Re||(Re={})),exports.LineStyle=void 0,(De=exports.LineStyle||(exports.LineStyle={}))[De.Solid=0]="Solid",De[De.Dotted=1]="Dotted",De[De.Dashed=2]="Dashed";const ke={width:800,height:500,interval:"1D",timezone:"Etc/UTC",container:"",library_path:"",locale:"en",widgetbar:{details:!1,watchlist:!1,news:!1,datawindow:!1,watchlist_settings:{default_symbols:[]}},overrides:{"mainSeriesProperties.showCountdown":!1},studies_overrides:{},trading_customization:{position:{},order:{}},brokerConfig:{configFlags:{}},fullscreen:!1,autosize:!1,disabled_features:[],enabled_features:[],debug:!1,logo:{},time_frames:[{text:"5y",resolution:"1W"},{text:"1y",resolution:"1W"},{text:"6m",resolution:"120"},{text:"3m",resolution:"60"},{text:"1m",resolution:"30"},{text:"5d",resolution:"5"},{text:"1d",resolution:"1"}],client_id:"0",user_id:"0",charts_storage_api_version:"1.0",favorites:{intervals:[],chartTypes:[],indicators:[],drawingTools:[]}},Ve=JSON.parse('[{"iso":"en","dir":"ltr","language":"en"},{"iso":"en","dir":"ltr","language":"en"},{"iso":"de","dir":"ltr","language":"de"},{"iso":"fr","dir":"ltr","language":"fr"},{"iso":"ca","dir":"ltr","language":"ca_ES"},{"iso":"es","dir":"ltr","language":"es"},{"iso":"it","dir":"ltr","language":"it"},{"iso":"pl","dir":"ltr","language":"pl"},{"iso":"hu","dir":"ltr","language":"hu_HU"},{"iso":"sv","dir":"ltr","language":"sv"},{"iso":"tr","dir":"ltr","language":"tr"},{"iso":"ru","dir":"ltr","language":"ru"},{"iso":"pt","dir":"ltr","language":"pt"},{"iso":"id","dir":"ltr","language":"id_ID"},{"iso":"ms","dir":"ltr","language":"ms_MY"},{"iso":"th","dir":"ltr","language":"th"},{"iso":"vi","dir":"ltr","language":"vi"},{"iso":"ja","dir":"ltr","language":"ja"},{"iso":"ko","dir":"ltr","language":"ko"},{"iso":"zh-Hans","dir":"ltr","language":"zh"},{"iso":"zh-Hant","dir":"ltr","language":"zh_TW"},{"iso":"ar","dir":"rtl","language":"ar"},{"iso":"he","dir":"rtl","language":"he_IL"}]');let Fe=!1;function We(){return"CL v30.2.0 (internal id 889635ab5e3bd31aa685c07ac870cfe4d0f7caca @ 2025-12-22T14:43:22.549Z)"}const Ee=class{constructor(e){if(this._id=`tradingview_${(1048576*(1+Math.random())|0).toString(16).substring(1)}`,this._ready=!1,this._readyHandlers=[],this._onWindowResize=this._autoResizeChart.bind(this),!e.datafeed)throw new Error("Datafeed is not defined");e.overrides?.["mainSeriesProperties.priceAxisProperties.lockScale"]&&(console.warn("mainSeriesProperties.priceAxisProperties.lockScale can not be set to true within the widget constructor"),delete e.overrides["mainSeriesProperties.priceAxisProperties.lockScale"]),this._options=xe(ke,e);"dark"===(this._options.theme||"light").toLowerCase()&&void 0===this._options.loading_screen&&(this._options.loading_screen={backgroundColor:"#131722"}),(this._options.debug||this._options.debug_broker)&&(Fe||(Fe=!0,console.log("Using CL v30.2.0 (internal id 889635ab5e3bd31aa685c07ac870cfe4d0f7caca @ 2025-12-22T14:43:22.549Z)"))),this._innerWindowLoaded=new Promise((e=>{this._innerWindowResolver=e})),this._create()}setDebugMode(e){this._innerAPI().setDebugMode(e)}onChartReady(e){this._ready?e.call(this):this._readyHandlers.push(e)}headerReady(){return this._innerWindowLoaded.then((()=>this._innerWindow().headerReady()))}onGrayedObjectClicked(e){this._doWhenInnerApiLoaded((t=>{t.onGrayedObjectClicked(e)}))}onShortcut(e,t){this._doWhenInnerWindowLoaded((i=>{i.createShortcutAction(e,t)}))}subscribe(e,t){this._doWhenInnerApiLoaded((i=>{i.subscribe(e,t)}))}unsubscribe(e,t){this._doWhenInnerApiLoaded((i=>{i.unsubscribe(e,t)}))}chart(e){return this._innerAPI().chart(e)}getLanguage(){return this._options.locale}setSymbol(e,t,i){this._innerAPI().changeSymbol(e,t,i)}remove(){window.removeEventListener("resize",this._onWindowResize),this._readyHandlers.splice(0,this._readyHandlers.length),delete window[this._id],this._iFrame.parentNode&&this._iFrame.parentNode.removeChild(this._iFrame)}closePopupsAndDialogs(){this._doWhenInnerApiLoaded((e=>{e.closePopupsAndDialogs()}))}selectLineTool(e,t){return this._innerAPI().selectLineTool(e,t)}selectedLineTool(){return this._innerAPI().selectedLineTool()}save(e,t){this._innerAPI().saveChart(e,t)}async load(e,t){return this._innerAPI().loadChart({json:e,extendedData:t})}getSavedCharts(e){this._innerAPI().getSavedCharts(e)}loadChartFromServer(e){return this._innerAPI().loadChartFromServer(e)}saveChartToServer(e,t,i){this._innerAPI().saveChartToServer(e,t,i)}removeChartFromServer(e,t){this._innerAPI().removeChartFromServer(e,t)}onContextMenu(e){this._doWhenInnerApiLoaded((t=>{t.onContextMenu(e)}))}createButton(e){return this._innerWindow().createButton(e)}removeButton(e){this._innerWindow().removeButton(e)}createDropdown(e){return this._innerWindow().createDropdown(e)}showNoticeDialog(e){this._doWhenInnerApiLoaded((t=>{t.showNoticeDialog(e)}))}showConfirmDialog(e){this._doWhenInnerApiLoaded((t=>{t.showConfirmDialog(e)}))}showLoadChartDialog(){this._innerAPI().showLoadChartDialog()}showSaveAsChartDialog(){this._innerAPI().showSaveAsChartDialog()}symbolInterval(){return this._innerAPI().getSymbolInterval()}mainSeriesPriceFormatter(){return this._innerAPI().mainSeriesPriceFormatter()}getIntervals(){return this._innerAPI().getIntervals()}getStudiesList(){return this._innerAPI().getStudiesList()}getStudyInputs(e){return this._innerAPI().getStudyInputs(e)}getStudyStyles(e){return this._innerAPI().getStudyStyles(e)}addCustomCSSFile(e){this._innerWindow().addCustomCSSFile(e)}applyOverrides(e){this._options=xe(this._options,{overrides:e}),this._doWhenInnerWindowLoaded((t=>{t.applyOverrides(e)}))}applyTradingCustomization(e){return new Promise(((t,i)=>{this._doWhenInnerWindowLoaded((o=>{o.applyTradingCustomization(e).then(t).catch(i)}))}))}applyStudiesOverrides(e){this._doWhenInnerWindowLoaded((t=>{t.applyStudiesOverrides(e)}))}watchList(){return this._innerAPI().watchlist()}news(){return this._innerAPI().news()}widgetbar(){return this._innerAPI().widgetbar()}activeChart(){return this._innerAPI().activeChart()}activeChartIndex(){return this._innerAPI().activeChartIndex()}setActiveChart(e){return this._innerAPI().setActiveChart(e)}chartsCount(){return this._innerAPI().chartsCount()}layout(){return this._innerAPI().layout()}setLayout(e){this._innerAPI().setLayout(e)}layoutName(){return this._innerAPI().layoutName()}resetLayoutSizes(e){this._innerAPI().resetLayoutSizes(e)}setLayoutSizes(e,t){this._innerAPI().setLayoutSizes(e,t)}changeTheme(e,t){return this._innerWindow().changeTheme(e,t)}getTheme(){return this._innerWindow().getTheme()}takeScreenshot(){this._doWhenInnerApiLoaded((e=>{e.takeScreenshot()}))}lockAllDrawingTools(){return this._innerAPI().lockAllDrawingTools()}hideAllDrawingTools(){return this._innerAPI().hideAllDrawingTools()}drawOnAllChartsEnabled(){return this._innerAPI().drawOnAllChartsEnabled()}drawOnAllCharts(e){this._innerAPI().drawOnAllCharts(e)}magnetEnabled(){return this._innerAPI().magnetEnabled()}magnetMode(){return this._innerAPI().magnetMode()}undoRedoState(){return this._innerAPI().undoRedoState()}setIntervalLinkingEnabled(e){this._innerAPI().setIntervalLinkingEnabled(e)}setDateRangeLinkingEnabled(e){this._innerAPI().setDateRangeLinkingEnabled(e)}setTimeFrame(e){this._innerAPI().setTimeFrame(e)}symbolSync(){return this._innerAPI().symbolSync()}intervalSync(){return this._innerAPI().intervalSync()}crosshairSync(){return this._innerAPI().crosshairSync()}timeSync(){return this._innerAPI().timeSync()}dateRangeSync(){return this._innerAPI().dateRangeSync()}setFeatureEnabled(e,t){this._innerAPI().setFeatureEnabled(e,t)}getAllFeatures(){return this._innerWindow().getAllFeatures()}clearUndoHistory(){return this._innerAPI().clearUndoHistory()}undo(){return this._innerAPI().undo()}redo(){return this._innerAPI().redo()}startFullscreen(){this._innerAPI().startFullscreen()}exitFullscreen(){this._innerAPI().exitFullscreen()}takeClientScreenshot(e){return this._innerAPI().takeClientScreenshot(e)}navigationButtonsVisibility(){return this._innerWindow().getNavigationButtonsVisibility()}paneButtonsVisibility(){return this._innerWindow().getPaneButtonsVisibility()}dateFormat(){return this._innerWindow().getDateFormat()}timeHoursFormat(){return this._innerWindow().getTimeHoursFormat()}currencyAndUnitVisibility(){return this._innerWindow().getCurrencyAndUnitVisibility()}supportedChartTypes(){return this._innerAPI().supportedChartTypes()}watermark(){return this._innerAPI().watermark()}customSymbolStatus(){return this._innerWindow().customSymbolStatus()}setCSSCustomProperty(e,t){if(!1===e.startsWith("--"))throw new Error("customPropertyName should begin with a double hyphen");this._innerWindow().document.body.style.setProperty(e,t)}getCSSCustomPropertyValue(e){if(!1===e.startsWith("--"))throw new Error("customPropertyName should begin with a double hyphen");const t=this._innerWindow().document.body,i=t.style.getPropertyValue(e);if(i)return i;return getComputedStyle(t).getPropertyValue(e)}unloadUnusedCharts(){this._innerAPI().unloadUnusedCharts()}async customThemes(){return this._innerWindow().customThemes()}resetCache(){this._innerAPI().resetCache()}linking(){return this._innerAPI().linking}_innerAPI(){return this._innerWindow().tradingViewApi}_innerWindow(){return this._iFrame.contentWindow}_doWhenInnerWindowLoaded(e){this._ready?e(this._innerWindow()):this._innerWindowLoaded.then((()=>{e(this._innerWindow())}))}_doWhenInnerApiLoaded(e){this._doWhenInnerWindowLoaded((t=>{t.doWhenApiIsReady((()=>e(this._innerAPI())))}))}_autoResizeChart(){this._options.fullscreen&&(this._iFrame.style.height=window.innerHeight+"px",Me&&setTimeout((()=>{this._iFrame.style.height=window.innerHeight+"px"}),30))}async _create(){const e=this._options.enabled_features?.includes("iframe_loading_same_origin")??!1,t=e||(this._options.enabled_features?.includes("iframe_loading_compatibility_mode")??!1),i=e&&(this._options.enabled_features?.includes("iframe_loading_root_path")??!1),[o,r]=this._render(!t,e,i),n=this._options.container,a="string"==typeof n?document.getElementById(n):n;if(null===a)throw new Error(`There is no such element - #${this._options.container}`);a.innerHTML=o,this._iFrame=a.querySelector(`#${this._id}`);const s=this._iFrame;e&&await this._innerWindowEvent("sameOriginLoad"),t&&(s.contentWindow?(s.contentWindow.document.open(),s.contentWindow.document.write(r),s.contentWindow.document.close()):console.warn("Unable to locate contentWindow for the created iframe. Please try disabling the `iframe_loading_compatibility_mode` featureset.")),this._innerWindow().addEventListener("innerWindowLoad",(e=>{e.detail.received=!0,function(e,t){if(void 0===e)throw new Error(`${t} is undefined`);return e}(this._innerWindowResolver,"_innerWindowResolver")()}),{once:!0}),(this._options.autosize||this._options.fullscreen)&&(s.style.width="100%",this._options.fullscreen||(s.style.height="100%")),window.addEventListener("resize",this._onWindowResize),this._onWindowResize(),this._innerWindowLoaded.then((()=>{try{this._innerWindow().widgetReady((()=>{this._ready=!0;for(const e of this._readyHandlers)try{e.call(this)}catch(e){console.error(e)}this._innerWindow().initializationFinished()}))}catch(e){if(e instanceof Error&&/widgetReady is not a function/.test(e.message))throw new Error(`There was an error when loading the library. Usually this error means the library failed to load its static files. Check that the library files are available at ${window.location.host}/${this._options.library_path||""} or correct the library_path option.`)}}))}_innerWindowEvent(e){return new Promise((t=>{this._innerWindow().addEventListener(e,t,{once:!0})}))}_render(e,t,i){const o=window;if(o[this._id]={datafeed:this._options.datafeed,customFormatters:this._options.custom_formatters,brokerFactory:this._options.broker_factory,overrides:this._options.overrides,studiesOverrides:this._options.studies_overrides,tradingCustomization:this._options.trading_customization,disabledFeatures:this._options.disabled_features,enabledFeatures:this._options.enabled_features,brokerConfig:this._options.broker_config||this._options.brokerConfig,restConfig:this._options.restConfig,favorites:this._options.favorites,logo:this._options.logo,numeric_formatting:this._options.numeric_formatting,rss_news_feed:this._options.rss_news_feed,rss_news_title:this._options.rss_news_title,newsProvider:this._options.news_provider,loadLastChart:this._options.load_last_chart,saveLoadAdapter:this._options.save_load_adapter,loading_screen:this._options.loading_screen,settingsAdapter:this._options.settings_adapter,getCustomIndicators:this._options.custom_indicators_getter,additionalSymbolInfoFields:this._options.additional_symbol_info_fields,headerWidgetButtonsMode:this._options.header_widget_buttons_mode,customTranslateFunction:this._options.custom_translate_function,symbolSearchComplete:this._options.symbol_search_complete,contextMenu:this._options.context_menu,settingsOverrides:this._options.settings_overrides,timeframe:this._options.timeframe,customTimezones:this._options.custom_timezones,customChartDescriptionFunction:this._options.custom_chart_description_function,customThemes:this._options.custom_themes,imageStorageAdapter:this._options.image_storage_adapter},this._options.saved_data)o[this._id].chartContent={json:this._options.saved_data},this._options.saved_data_meta_info&&(o[this._id].chartContentExtendedData=this._options.saved_data_meta_info);else if(!this._options.load_last_chart&&!this._options.symbol)throw new Error("Symbol is not defined: either 'symbol' or 'load_last_chart' option must be set");if(this._options.library_path&&!this._options.library_path.endsWith("/")&&console.warn("library_path option should contain a trailing forward slash"),this._options.locale){const e=encodeURIComponent(this._options.locale);Ve.findIndex((t=>t.language===e))>=0||(console.warn("locale isn't supported. Using default of `en`."),this._options.locale="en")}const r=(this._options.theme||"light").toLowerCase(),n=function(e,t,i){const o=new URL(`${e||""}`,location.href).href,r=JSON.parse('["bundles/runtime.06e455b5bc27a2ed7f94.js","bundles/__LANG__.938.5f20502c9172fdac1c7f.js","bundles/481.7c6283292170510c91f1.css","bundles/8971.352a74bc5eebf8040884.js","bundles/library.022b0cac58461bba6f17.js"]'),n=encodeURIComponent(t),a="light"!==i.toLowerCase()?"dark":"light",s=Ve.find((e=>e.language===n))??{iso:"en",dir:"ltr"},l=`lang="${s.iso}" dir="${s.dir}" data-theme="${a}" class="theme-${a}"`,d=`\n${function(e,t,i){if(void 0===e)return"";const o=[],r=[];for(const n of e)n.endsWith(".js")?o.push(`